Losing string contents if int is passed torough DynamicToString

In My use casse, I passed a int literal to Std.string, which accepts type dynamic, and later passed as std.String to extern function where the param was used in cout, I ws able to see that nothing get logged, when I added a cout in the original location of the int var it had been logged

This was in the following project ttps://github.com/neimanpinchas/haxe_civet_web
After testing with a mnimal example that was working I figure out it is because of an issue with abstract I made to convert a string to const char *
THe following line is losing string contents
	cout << "as number" << port << endl;
	cout << "as string" << Std::string(port) << endl;
	cout << "as c_str" << _CxxConvert::StdString_Impl_::_new(Std::string(port)) << endl;
	_StartWeb(_CxxConvert::StdString_Impl_::_new(Std::string(port))); // << here

Haxe implementation of abstract
typedef ConstCharStar=cxx.ConstCharPtr;
typedef Star<T>=cxx.Ptr<T>;
abstract StdString(cxx.ConstCharPtr) to cxx.ConstCharPtr{
    public function new(s:String){
        this=cxx.ConstCharPtr.fromString(s);
    }
    @:from
    public static function ofString(s:String) {
        return new StdString(s);
    }
    @:to
    public function toConstCharStar():ConstCharStar{
        return this;
    }

}

C++ output
const char* _CxxConvert::StdString_Impl_::_new(std::string s) {
	const char* this1 = s.c_str();

	return this1;
}

const char* _CxxConvert::StdString_Impl_::ofString(std::string s) {
	return _CxxConvert::StdString_Impl_::_new(s);
}

ConstCharStar _CxxConvert::StdString_Impl_::toConstCharStar(const char* this1) {
	return this1;
}


”Moftin” is listed in the drop-down menu

Description:
"Moftin" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Moftin" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Moftin, SATU MARE".


Swift example, multiple file loggers

Does anyone have a swift example on how to use multiple file loggers.  At times, I only want to log to one file and then to a different file.  There's a stack overflow posting here (http://stackoverflow.com/questions/12921740/cocoalumberjack-filelogger-logging-to-multiple-files) but it's in objective C and they don't show how to write to different files.  There's a subtle example but it's not clear.

Did you check here?

yes, and i don't see anything helpful there.  just trying to see if it's possible to log to different log files.  i'm sure it can be done but no viable swift example present.  just something about formatters and contexts that doesn't make sense

Not sure if I'm going about this the right way.  I came close to what I wanted.  The only this is...the informational log is logging everything and the warning log is logging errors and warnings.  The error log is logging fine.  I know I'm not setting up something right.  From what I can tell, maybe I need to set a context somewhere or something?  But there's no swift example.
//Configure the logging?
let logsDirectoryURL = getDocumentsDirectoryURL()?.URLByAppendingPathComponent("logs")
let infoLog = NSURL(string: "infoLogs", relativeToURL: logsDirectoryURL!)
let errorLog = NSURL(string: "errorLogs", relativeToURL:  logsDirectoryURL!)
let warnLog = NSURL(string: "warnLogs", relativeToURL:  logsDirectoryURL!)
    let infoLogManager = DDLogFileManagerDefault(logsDirectory: infoLog!.path!)
    let errorLogManager = DDLogFileManagerDefault(logsDirectory: errorLog!.path!)
    let warnLogManager = DDLogFileManagerDefault(logsDirectory: warnLog!.path!)

    let infoFileLogger = DDFileLogger(logFileManager: infoLogManager)
    let errorFileLogger = DDFileLogger(logFileManager: errorLogManager)
    let warnFileLogger = DDFileLogger(logFileManager: warnLogManager)

    DDLog.addLogger(infoFileLogger, withLevel: DDLogLevel.Info)
    DDLog.addLogger(errorFileLogger, withLevel: DDLogLevel.Error)
    DDLog.addLogger(warnFileLogger, withLevel: DDLogLevel.Warning)

    DDLogInfo("Some informational text")
    DDLogError("An error occurred.")
    DDLogWarn("A warning")

was able to figure this out....delete if possible

It is better to leave it here for other users that may have the same question.
It would be even better if you shared your solution here too ;)

I'm pretty sure, everyone else would figure it out faster than me.    I was trying to have a separate file for warnings, info, errors, etc.   But I don't need that really, so I am using it the way the documentation suggest.  Although I doubt it will help anyone, here is a swift snippet.  (I am using AFDateHelper by the way)
class CustomLoggingFormatter : NSObject, DDLogFormatter{

    //Not going to worry about thread safety for NSDateFormatter for now

    func formatLogMessage(logMessage: DDLogMessage!) -> String! {

        var logLevel : String!

        switch logMessage.flag { //You can create your own logging level but not necessary here

        case DDLogFlag.Info: logLevel = "[INFORMATIONAL] :" ; break;
        case DDLogFlag.Debug: logLevel = "[DEBUG] :"; break;
        case DDLogFlag.Warning: logLevel = "[WARNING] :"; break;
        case DDLogFlag.Error: logLevel = "[ERROR] :";break;
        default : logLevel = "[VERBOSE] :";break;
        }

        return "\(NSDate().toString(format: DateFormat.Custom("yyyy/MM/dd HH:mm:ss:SSS")))) \(logLevel)  \(logMessage.message)"

    }
}

//Earlier created a directory named 'Logs' in the 'Documents' folder
let logsDirectoryURL = getDocumentsDirectoryURL()?.URLByAppendingPathComponent("logs")
        let logFileManager = DDLogFileManagerDefault(logsDirectory: logsDirectoryURL!.path!)
        let logFile = DDFileLogger(logFileManager: logFileManager)
        logFile.logFormatter = CustomLoggingFormatter()
        DDLog.addLogger(logFile)

The docs say:  You'll also notice there is a context method/ivar. Now, by default, the log context of every message is zero. However, this can easily be customized.
If anyone knows how to do this is swift, an example would be appreciated.  Thanks

Thanks for the contribution!


PSRAM type selection missing for S3

S3 introduces a new type of PSRAM (OPTI). There is currently no option to select the FLASH PSRAM type combinations with Platformio settings. https://github.com/espressif/arduino-esp32/discussions/6197#discussioncomment-2295761
@maxgerhardt do you have a idea how to implement nicely?

The way I see it, you have 3 different PSRAM types as folders in https://github.com/espressif/arduino-esp32/tree/esp32-s3-support/tools/sdk/esp32s3, which are
The boards.txt hardcodes then this setting for each board

esp32s3.build.flash_type=qspi
esp32s3.build.psram_type=qspi
esp32s3.build.memory_type={build.flash_type}_{build.psram_type}
...
esp32s3box.build.memory_type=qspi_opi

The platform.txt is then using that option in a -L flag

"-L{compiler.sdk.path}/{build.memory_type}"

However, https://github.com/espressif/arduino-esp32/blob/esp32-s3-support/tools/platformio-build-esp32s3.py#L298 hardcodes the used library include path as
    LIBPATH=[
        join(FRAMEWORK_DIR, "tools", "sdk", "esp32s3", "lib"),
        join(FRAMEWORK_DIR, "tools", "sdk", "esp32s3", "ld"),
        join(FRAMEWORK_DIR, "tools", "sdk", "esp32s3", "qspi_qspi")
    ],

So I would suggest adding another field in the PlatformIO board definitions, e.g. in the build.arduino object which is currently
https://github.com/Jason2866/platform-espressif32/blob/e104e061389306d8eb8b4a63176ea141150b447a/boards/esp32-s3-devkitc-1.json#L1-L5
to e.g. to
{
  "build": {
    "arduino":{
      "ldscript": "esp32s3_out.ld",
      "memory_type": "qspi_opi"
    },

and then adapt the build script part above accordingly
    LIBPATH=[
        join(FRAMEWORK_DIR, "tools", "sdk", "esp32s3", "lib"),
        join(FRAMEWORK_DIR, "tools", "sdk", "esp32s3", "ld"),
        join(FRAMEWORK_DIR, "tools", "sdk", "esp32s3", env.BoardConfig().get("build.arduino.memory_type", "qspi_qspi"))
    ],

So the fallback is, if the option does not exist, regular QSPI (flash), otherwise the option as declared by build.arudino.memory_type.

Thx, a lot! Looks great. @me-no-dev can we do it this way?

yes we can. There is one thing though... I have not finalized the OPI options yet and it seems that e will need more than just that define for them. PSRAM will need to be enabled on boot by IDF instead of Arduino, so besides that setting, another one to show that psram is booted will be needed.

Mhh, what is speaking against always enabling PSRAM in sdkconfig with
CONFIG_ESP32_SPIRAM_SUPPORT=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=y

We do this in our fork and it works well. We check in our project (could be done in Arduino too) if PSRAM workaround is needed and disable PSRAM when the needed workaround code is not there. By doing this for many esp32 devices PSRAM support is enabled without user has to do anything. We have no issues since we do this.

We could test this approach first in our fork. The only change for this would be the change in the build script of the S3 (which is backwards compatible).

psram is enabled, but not initialized by IDF. It's the later initialization of OPI psram when flash is QSPI that is the problem. All other options we can init in Arduino on boot

Closing since it is implemented now as suggested from @maxgerhardt
Thx!


Mapped TopicSubscription args

This should be enough to correctly expose the rest of the arguments of the topic subscription.

Oh, so this is Autogenrated? I haven't touch the go files before. And haven't play with that.

/run-acceptance-tests

@thomas11 Hi, glad you found this PR worth merging. Cheers.


Bug: SQLAlchemy intellisense does not autocomplete for ORM. For example "db.Model.Integer"

Hello,
This issue appears occurs in the latest version of VSCode on Win10.
Vscode does not appear to autocomplete methods from SQLAlchemy (and maybe other Python ORM modules as well). (This issue was improperly closed from: https://github.com/Microsoft/vscode-python/issues/292  and there is no fix).
Example Python Code to demonstrate:
@@@File: flask-sqlalchemy-test-app.py@@@

# ORM model class:
class TestModel(db.Model):
    id = db.Column(db.Integer,primary_key=True)
    name = db. <---- When you press 'dot' here, the Intellisense Autocomplete does not show "db.Column"

Demonstration of Bug:

I think it is because Intellisense doesnt do ORM python autocompletion like other editors (ATOM does do this correctly).

Column is not there since it is dynamically added to the SQlAchemy db instance in here - https://github.com/pallets-eco/flask-sqlalchemy/blob/main/src/flask_sqlalchemy/init.py#L765 which does this https://github.com/pallets-eco/flask-sqlalchemy/blob/main/src/flask_sqlalchemy/init.py#L103
basically, the code dynamically add all top level symbols of sqlalchemy, sqlalchemy.orm under db instance. currently we don't support such dynamic behaviors.
the ATOM you referring. do they actually run the python code to provide auto complete? can you provide more detail so we can take a look?

Closing old issue. If this is still a problem, please reopen with the information requested. thanks

In my experience, the most effective solution for flask sqlalchemy autocomplete is by installing flask-sqlalchemy-stubs package, a method I've found to be particularly insightful.
If this resolves your issue, feel free to explore concise solutions through my book https://pythonalliance.gumroad.com/l/ayuze where you can uncover efficient one line fixes.


Do not close when click outside of the menu

Hello.
Is there a way to prevent the menu from closing when the user touch outside of it ?

I am facing same issue. Do you have any solution to close menu when user tap outside of Menu?


custom wake word model in JS

Hi,
will cognitive service speech SDK (Node or JavaScript) support custom wake word model in future?
Thanks

Hi there,
Thanks for reaching out.
Currently there are no plans to add this. Could you tell us more about the scenario you are working on? Perhaps there is another way to achieve your goals.

After further investigation, it turns out there ARE plans! However no release has the work item attached to it yet so I do not know when it would be available.

@chschrae I would activate the registration only when a specific keyword is "heard"


[helm create] Add hpa boilerplate

Adds hpa boilerplate with following properties which imho are most sane:

disabled by default
if enabled:

1 to 100 replicas by default
80% cpu average threshold by default
commented out and thus disabled 80% memory average threshold

Fixes #7369

bump

bump

Hi @hickeyma, as per @scottrigby's approval I think this is good to merge now. 🙏

My pleasure @hickeyma!


oxen: Bad CPU type in executable

Oxen installed on my i5 MacMini from 2018 via homebrew, then oxen init yields:
oxen: Bad CPU type in executable
Seems there's advice online as to how Apple silicon users may encounter this in the transition years (https://medium.com/@jithmisha/fix-for-macbook-air-m1-m2-bad-cpu-type-in-executable-error-3719a0a1cb6), but not much advice on legacy ARM64 users now transition is in the past.

cargo build after a Git clone, makes an exe for me that doesn't have the bad-CPU warning.

Thanks for the link! We're adding some more OSX builds to our CI pipeline, will have in the next homebrew release

Added builds for x86_64 and OSX 11,12,13 to homebrew install


Note problems when using CommonJS.

Oh, sorry, I meant we should fix this instead of documenting bad behavior. :)
I'd probably argue that this is just a bug and I agree that two require('Raven') calls shouldn't break things.

Something seems fishy about this. require-ing a module shouldn't invoke that module twice. It is executed once, and the exported value is stored for a subsequent require.
Is it possible to get some example code exhibiting this phenomenon?

@benvinegar Related to this? https://github.com/getsentry/raven-js/blob/master/template/_footer.js#L1-L3

Or are you saying, that this would never get invoked twice?

Or are you saying, that this would never get invoked twice?

It shouldn't. But I'm dumb / could be wrong.

We've made a bunch of CommonJS improvements in 2.0. Since this ticket doesn't report any concrete problems we can check against, I'm going to close this ticket.

Oh, I see, the problem is in the diff:

If you load and install Raven using commonJS you should be aware that multiple require's will overwrite the window.Raven instance and thus give you a Raven instance that is not configured.

And yeah, this is fixed.

Thanks :)
2016-01-12 7:54 GMT+01:00 Ben Vinegar<EMAIL_ADDRESS>
Oh, I see, the problem is in the diff:
If you load and install Raven using commonJS you should be aware that
multiple require's will overwrite the window.Raven instance and thus give
you a Raven instance that is not configured.
And yeah, this is fixed.
—
Reply to this email directly or view it on GitHub
https://github.com/getsentry/raven-js/pull/409#issuecomment-170817045.

--

Tarjei Huse
Mobil: 920 63 413


Fix WebView crash related to hardware acceleration

Description
LEARNER-7295
The problem is caused when a WebView is placed inside a ScrollView or NestedScrollView while hardware acceleration is enabled.
This is likely a bug with how ScrollView calculates the width and height of a WebView inside it and assigns a very large number.
Arbitrarily large views can't be put into hardware layers. Hardware layers are backed by textures, and GPU drivers have a predefined maximum size for textures.
For more info:
https://bugs.chromium.org/p/chromium/issues/detail?id=578150

@farhan-arshad-dev plz review

CourseCombinedInfoFragment should be renamed to AnnouncementsFragment
fragment_course_combined_info should be renamed to fragment_announcements

Ready for another pass @farhan


Unable to get Subscription context from lambda Custom Auth

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v14.21.3
Amplify CLI Version
12.8.2
What operating system are you using?
Ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
Hi i need to add a custom layer of auth to my Schema, It works correctly with mutatations but I dont get all the context for subscriptions. For example:
When I call with a mutation i et this context:
    "authorizationToken": "ExampleAUTHtoken123123123",
    "requestContext": {
        "apiId": "aaaaaa123123123example123",
        "accountId": "111122223333",
        "requestId": "f4081827-1111-4444-5555-5cf4695f339f",
        "queryString": "mutation CreateEvent {...}\n\nquery MyQuery {...}\n",
        "operationName": "MyQuery",
        "variables": {}
    },
    "requestHeaders": {
      <application request headers>
    }
} ```

But when i do a subsciption I get:

```{
    "authorizationToken": "ExampleAUTHtoken123123123",
    "requestContext": {
        "apiId": "aaaaaa123123123example123",
        "accountId": "111122223333",
        "requestId": "9e66e10a-53d7-4a63-9e56-62f069b29c25",
        "queryString": "",
        "operationName": "Deepdish:Connect",
        "variables": {}
    }
}

Notice that the queryString and variables are empty, so I cant get information about what specific user operation is. I also tried to create a pipeline resolver and add another lambda function after the auth, just in case I can get the information on the next step (after the auth is done) but my lambda function is not beeing executed 😦
Is there a way to get all the conext or to execute a pipeline resolver that invokes a lambda in an specific step for a subsciption?
Thanks for your help
Expected behavior
When I recieve a subscription the field "queryString" should be populated with the query, and the field "variables" should be populated with the variables.
Reproduction steps

Create a schema
Add subscriptions to the model
Add customAuth to the model
Access a subscription using custom auth
Try to read the queryString and variables values from inside the lambda function

Project Identifier
No response
Log output

# Put your logs below this line

Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Hi, this is the context I get in the AWS lambda using custom auth, not inside the VTL resolvers. I assume this lambda is invoked before any vtl resolver. I also try to override the resolver of the subcription using a pipeline resolver with a lambda function to do the same thing, but it seems lambda functions doesn't work with subscriptions inside pipelines resolvers.

Where are printing this context object?

I'm printing it inside the lambda selected for the custom auth.

Can you try accessing ctx object on the service side?

I guess I should be able to print it inside the vtls, but those vtls are executed after the lambda, so it doesn't work for auth as its executed after the lambda auth have been resolved, and I can't use another lambda inside a subscription resolver.

Hey 👋 , This issue is being closed due to inactivity. If you are still experiencing the same problem and need further assistance, please feel free to leave a comment. This will enable us to reopen the issue and provide you with the necessary support.


Lecture 33 Video: Last Example: predict Function body Error for intercept Variable (Moderate/High)

In the Lecture 33 video, for the last example where we code up the body of the predict function, you code the calculation of the intercept variable as "intercept = mean_X - slope * mean_X". The bolded "X" should be "Y".

Good catch, @asheynis. I added the following note to the Loom video description/summary:

Update: The code for the intercept at 17:20 is incorrect. It should be mean_Y - slope * mean_X.

I'll leave this issue open until next week for those who still need to go through the video.


[Snyk] Upgrade axios from 0.24.0 to 0.26.0

Snyk has created this PR to upgrade axios from 0.24.0 to 0.26.0.

As this is a private repository, Snyk-bot does not have access. Therefore, this PR has been created automatically, but appears to have been created by a real user.
:sparkles: Snyk has automatically assigned this pull request, set who gets assigned.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 2 versions ahead of your current version.
The recommended version was released 2 months ago, on 2022-02-13.

Release notes

Package name: axios

0.26.0 - 2022-02-130.26.0 (February 13, 2022)
Fixes and Functionality:

Fixed The timeoutErrorMessage property in config not work with Node.js (#3581)
Added errors to be displayed when the query parsing process itself fails (#3961)
Fix/remove url required (#4426)
Update follow-redirects dependency due to Vulnerability (#4462)
Bump karma from 6.3.11 to 6.3.14 (#4461)
Bump follow-redirects from 1.14.7 to 1.14.8 (#4473)

0.25.0 - 2022-01-180.25.0 (January 18, 2022)
Breaking changes:

Fixing maxBodyLength enforcement (#3786)
Don't rely on strict mode behaviour for arguments (#3470)
Adding error handling when missing url (#3791)
Update isAbsoluteURL.js removing escaping of non-special characters (#3809)
Use native Array.isArray() in utils.js (#3836)
Adding error handling inside stream end callback (#3967)

Fixes and Functionality:

Added aborted even handler (#3916)
Header types expanded allowing boolean and number types (#4144)
Fix cancel signature allowing cancel message to be undefined (#3153)
Updated type checks to be formulated better (#3342)
Avoid unnecessary buffer allocations (#3321)
Adding a socket handler to keep TCP connection live when processing long living requests (#3422)
Added toFormData helper function (#3757)
Adding responseEncoding prop type in AxiosRequestConfig (#3918)

Internal and Tests:

Adding axios-test-instance to ecosystem (#3786)
Optimize the logic of isAxiosError (#3546)
Add tests and documentation to display how multiple inceptors work (#3564)
Updating follow-redirects to version 1.14.7 (#4379)

Documentation:

Fixing changelog to show corrext pull request (#4219)
Update upgrade guide for https proxy setting (#3604)

Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:

Jay
Rijk van Zanten
Kohta Ito
Brandon Faulkner
Stefano Magni
enofan
Andrey Pechkurov
Doowonee
Emil Broman
Remco Haszing
Black-Hole
Wolfram Kriesing
Andrew Ovens
Paulo Renato
Ben Carp
Hirotaka Tagawa
狼族小狈
C. Lewis
Felipe Carvalho
Daniel
Gustavo Sales

0.24.0 - 2021-10-250.24.0 (October 25, 2021)
Breaking changes:

Revert: change type of AxiosResponse to any, please read lengthy discussion here: (#4141) pull request: (#4186)

Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:

Jay
Rodry
Remco Haszing
Isaiah Thomason

    from axios GitHub release notes

Commit messages

Package name: axios

c9aca75 Releasing v0.26.0
3f842e0 Merge branch 'master' of github.com:axios/axios
2f1e818 Merge branch 'cookieMr-master'
95295f6 Fixed conflict in package lock
b3aa79e Bump follow-redirects from 1.14.7 to 1.14.8 (#4473)
d660e29 Revert "Fixed isFormData predicate; (#4413)" (#4472)
447a24d Bump karma from 6.3.11 to 6.3.14 (#4461)
c5bdbd4 Update follow-redirects dependency due to Vurnerbility
73e3bdb Fixed isFormData predicate; (#4413)
cc86c6c Fix/remove url required (#4426)
1163588 Added errors to be displayed when the query parsing process itself fails. (#3961)
4461761 Fixed The timeoutErrorMessage property in config not work with Node.js (fixes #3580) (#3581)
5c5cbdf Removed cancel token request test till debugging on FireFox can be done
63dfce8 Releasing v0.25
dccaeb1 Updated changelog for release
51f3ccb Updating follow-redirects with security updates (#4379)
ccc9516 Fixing removing package-lock from gitignore (#4346)
ea0d9c6 Adding error handling inside stream end callback (#3967)
4fbf61d Adding responseEncoding prop type in AxiosRequestConfig (#3918)
a76571a Use native `Array.isArray()` in `utils.js` (#3836)
a8cd75a Update isAbsoluteURL.js (#3809)
9579290 Adding error handling when missing url (#3791)
9964815 toFormData helper function (#3757)
c00c4dd Fixing maxBodyLength enforcement (#3786)

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
👩💻 Set who automatically gets assigned
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Affected package has been already updated.


Update Makefile so that it uses python3.9

This PR introduces a change to force Python 3.9 to install the venv, and avoiding a problem where python3 had to be a correct version which is not the default in many cases.

Codecov Report

Merging #320 (f1dbb2f) into main (50ce232) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #320   +/-   ##
=======================================
  Coverage   94.20%   94.20%
=======================================
  Files          47       47
  Lines        4623     4623
=======================================
  Hits         4355     4355
  Misses        268      268

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

I extended this with PR #322 fixing a couple of small issues that I noticed during my onboarding.


Render elements on screen

Hi, In this pull request I added the following features:

Added function to fetch API data
Added function to render HTML nodes on screen

Great job, William!
This branch is ready to merge 🌮 👍


[SDL-0273] Widgets processing for WEB_VIEW template

https://adc.luxoft.com/jira/browse/FORDTCN-6816
ATF Test Scripts to check the creation of widget when application has active WEB_VIEW template
This PR is [ready] for review.
Summary

Processing the creation of widget which do not duplicate main window when application has active WEB_VIEW template
Processing the creation of widget which duplicate main window
Processing of RPCs for widgets which do not duplicate main window
Processing of RPCs for widget which duplicate main window

ATF version
[develop]
CLA

[x] I have signed the CLA

@aderiabin thank you for review. Please check in c20607e


Please add a changelog

There has been a lot of confusion around this package and the other, non-official, Mailgun package but now that things seem to be settling, it'd be great if you could add a changelog so people can see what's going on with updates.
I just noticed that a minor version was released – version 3.4.0 – but without digging through commits and looking for myself, I can't see any information about what's changed so I'm definitely not eager to update.
It'd be great if you could add a changelog.md or provide details in Releases and keep these updated.
Thanks for your time. Have a nice day!

Any chance we'll get something like this, @olexandr-mazepa? I don't particularly like tagging people directly, asking for things, but there's been yet another minor version since I created this issue and there's no indication anywhere as to what's changed.

Hello @darrylyoung
I saw this issue and I really like your idea of adding a changelog to the repo but unfortunately, I didn't have enough time to investigate general practices and set up some automation for this before the last publish.
I would be grateful if you can share some useful articles or even create a PR for this if you are interested in it.
Otherwise, I will add this as soon I will have the capacity to do that.

Hi, @olexandr-mazepa. 👋
Thanks for the quick reply. I totally understand if you don't have the time at the moment but I'm glad to hear that you're interested in doing it when you can, though.
For now, these could help:

Keep a Changelog
Example using GitHub Releases — Prisma
Example using CHANGELOG.md — Apollo Client

It's personal preference which way you go — and you can see that both examples are nice and clean — so I guess it doesn't matter as long as the format is consistent enough.
Thanks for all of your work here. Have a great week and take care.

@darrylyoung
This PR https://github.com/mailgun/mailgun-js/pull/173 added auto-generation of the changelog.
You can find the changelog here.
Thank you for your time and help.

Great! Thanks, @olexandr-mazepa. Have a nice day.

Wanted to point out that the dashboard still shows the same.


Update CoffeeScript

There's some deprecated stuff in the specs, which I thought should be addressed in a separate PR, but these are all good to go…
@aki77 I would be happy to take this project off your hands if you don't fancy maintaining it any more?


Getting started with youtube video

Add Victor and Cody's Introduction to MLCube youtube video to the documentation home page.

changes already merged.


Use webpack resolve alias to get hot reloading 🔥

This was a fun, fun one!
I tried using Yarn Workspaces to get our development environment (doctocat) in sync with the src folder so that we can make changes in src and see the updates immediately in the docs, but because we are prebuilding our files and our main is set to dist, I couldn't get updates to propagate to the Gatsby site without running the build again 😿 The build takes a loooong time so I figured it wouldn't be worth it to find out a way to build the code after every change.
I took a step back, and realized we could probably just use relative imports to the src folder, and added a webpack resolve alias to make it even simpler 💯 Any references to @primer/components in development point to the src folder, and in production they point to the published package.
I would assume that you'd be able to use relative imports in production, but for some reason they didn't work and that's why I'm pointing to the published package instead. Might be a limitation of Gatsby? (We were doing this in our old docs site just fine?)
ANYWAYS - I think this should work for now 🎉

@dmarcey @colebemis I think my latest commit will fix all our problems, hopes, and dreams ✨ 😹


Encryption and Decryption

Prerequisites

[X] I am a GSSoC-22 Participant
[X] I checked to make sure that this issue has not already been filed

Description
As we also know whenever we send data it gets encrypted and when it reaches the right person he has some special key he use to decrypt it and read the original message.
simply we are going to build the encryption and decryption project.

Tech Stack
C++

Can assign only 3 issues at a time.

closed with #551


Unhandled 'error' event

>swagger2pdf -s api.json -o dump\
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: spawn http-server ENOENT
    at exports._errnoException (util.js:1020:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

>npm -v
5.3.0
>node -v
v6.11.2
>swagger2pdf -v
1.0.7

Please check this issue: link. http-server issue shall be cannot reproduced anymore since latest version.

I am also seeing this error, and yes I have installed http-server and other packages globally.   I am posting the command run from PowerShell on a Windows 7 system but I have tried from the normal command prompt and from several different directories and get the same error:
PS C:> swagger2pdf -s ./swagger.json -o ./
events.js:182
throw er; // Unhandled 'error' event
^
Error: spawn http-server ENOENT
at _errnoException (util.js:1019:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
at onErrorNT (internal/child_process.js:374:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
PS C:> npm -v
5.5.1
PS C:> node -v
v8.6.0
PS C:> swagger2pdf -v
1.0.7

I got this error as well.

Same issue here
W7 with GitBash
npm 5.6.1
node 9.8.1
http-server 0.11.1 installed locally and globally
swagger-spec-to-pdf 1.0.7

@odupuy @DenisBabarykin @betsyerickson I had the same issue. My fix was to install swagger-spec-to-pdf locally, and use that:

cd node_modules/swagger-spec-to-pdf
npm install (installs http-server local to swagger-spec-to-pdf)
bin/swagger2pdf -s ../../swagger.json -o ../../docs run using local install of swagger-spec-to-pdf and resources at project root

Hope that helps!


Multisignature support for P-Chain

This PR allows multisignature wallets to own and spend UTXOs on the P-Chain.
A multisignature wallet is defined as follows:

Alias (or fake address) that is an owner of the assets on the P-Chain. Private key of this address is unknown.
Addresses - the list of the addresses of the owners of the multisignature wallet
Threshold - number of the signatures from the owners to consider the multisignature is valid.

In the scope of this PR we can only add definition of the multisignature wallets into the genesis config (genesis_columbus.go file).
columbusGenesisConfigJSON = `{
  ...
  "initialMultisigAddresses": [
	{
		"Alias": "NuWdjBkNsazjctduX39RRot9Z1c5q3FWv",
		"Addresses": [
			"415VVfAvZzpAN9V6PwvxmZjuJjGqaQmAV",
			"95MT2a1aZTnRr8fX49EsLcoqW3dDp1Bt2",
			"N5bBN6Pv9Kh8v4pMnnWLw1GAGnL1EMNL5"
		],
		"Threshold": 2
	}
  ],
  ...

NOTE: All addresses above are encoded (as the ShortID.String() method) in CB58 Encoding with the checksum.
No specific P-Chain encoding is used as we anticipate to extend mu;tisignature support on the other chains (X-Chain).
NOTE: The order of the multisig Addresses stored in the database might be different as defined in the genesis as OutputOwners assumes they are sorted (see: SortShortIDs(ids []ShortID) of the ids module).
Implemenation details
UTXO owned by a multisignature wallet is indistinguishable from any other UTXO owned by a regular wallet.
It's OutputOwners should contain a Threshold = 1 and Addrs: [ <multisig alias> ].
Spending such UTXO works the same way: e.g. the rest of transaction's inputs is created as output UTXO owned by the multisignature wallet.
The only difference is where the actual signatures are validated. The OutputOwners property of multisig owned UTXO is replaced by the actual multisig definition of the owners (the Threshold and Addresses) and gets validated as the multiowner UTXO.
Signing of the multisig transaction
This PR does not provides support to sign transactions which spend multisig owned UTXOs. We beleive it should be done off-chain. For the testing purposes I just modified the actual Out of the avax.UTXO with the information of the multisig definition and pass it for signing:
// pseudocode
out = utxo.Out
inner1, ok1 := out.(*secp256k1fx.TransferOutput)
inner1.OutputOwners = secp256k1fx.OutputOwners{
	Threshold: multisig.Threshold,
	Addrs:     multisig.Addresses,
}
...
inputf, psigners, err := m.keyChain.Spend(utxo.Out, time)

Performsnce implication
Multisignature data is fetched from the database everytime the transaction is semantically verified. I don't implement the caching layer as it's done for the UTXOs.
The reason I believe caching does not help here is I'm assuming that multisig addresses will be a small fraction of the UTXO owners. Therefore there will be more cache misses resolving to the database read than the actual cache reads.

@pnowosie : do you think that there should be some validation consideration for the InitialMultisigAddresses in the
genesis.go#validateConfig() method?

@pnowosie : do you think that there should be some validation consideration for the InitialMultisigAddresses in the genesis.go#validateConfig() method?

While addresses are parsed they are considered OK.
However maybe Threshold should be in range. Thanks - I'll add

@knikos added validation at unparsed_config.go#Parse 2a7a1f4023ca2b71fc619c39a919debeb1784580
It went there because genesis validateConfig is not called when the config is read from the columbusGenesisConfigJSON variable (as we did). At parse level it should catch all config sources.

Awaiting merge of #28

@pnowosie

please rebase to the new chain4travel branch
look at genesis branch for camino genesis state (not completed)
fix linter warnings
outsource tests into own files.

Closing because of follow-up in #89


[Request to add feature]: Automatically refresh summary

Option 1: When I click this button, I can automatically summarize the remaining 5 pieces of information
Alternatively, option 2: Use scrolling to automatically and continuously update summary summaries [just like displaying new articles in Freshrss]

Thanks for your great idea :)
I want to make a change of summary page, which should have those options:

time range such as 3 days, 7 days or custom day range.
category to summarize.
as you mention, it could summarize more news on the summary page by clicking a button.

thanks

Thanks for your great idea :)
I want to make a change of summary page, which should have those options:

time range such as 3 days, 7 days or custom day range.
category to summarize.
as you mention, it could summarize more news on the summary page by clicking a button.

Thank you for your approval


Add Terms and Conditions for Website Listings

Added a link to the PDF in the disclaimer:

Build preview:

https://os-website-git-listings-toc-open-sats.vercel.app/apply/to-be-listed

To be reviewed by Legal.

@dergigi I wonder if it would give us a stronger/better legal standing if the applicant had to necessarily click and open a pop-up window with the "Terms and Conditions" and then click again to accept the terms and conditions from within the pop-up window, before clicking to submit the application. Obviously the applicant can still not read the full thing, we sort of give them an extra push to actually read the terms and conditions before submitting an application.

Whatever we implement, it won't be popups. We could do a checkbox to tick but afaik, legally speaking, the above is enough.


Fix left menu tab spacing in French

Describe the bug
When setting the platform to French, when logged, the left menu looks like this:

So the text of the tab button overflow out of the menu, left and right.

If looks like the problem is back

Hum, I cannot reproduce it today. I'll let you know when I know how to reproduce it exactly.


How to know if there are no elements in the datasource?

I think there should be a flag either in the adapter or the datasource which flags if there are no items in the datasource (and BOF and EOF is reached). This is useful for displaying something default in the place of the scroller.
I'm currently tracking this myself in my implementation of datasource's GET function. However, I think this should come out of the box because it is information tracked somewhere already in the adapter presumably.

BOF/EOF properties on the adapter? can put it in a PR?

This is included in v1.5.1.
I did open buffer eof/bof properties via getEOF()/getBOF() methods on the Adapter.


Buffer is not defined

What's the work around?
ReferenceError: Buffer is not defined
    at hdkey.js:7:23

It works when I add the import to a local copy of the source:
import { Buffer } from 'buffer';
const MASTER_SECRET = Buffer.from("Bitcoin seed", "utf8");

Actually we use esbuild and this package is used in an extension that includes all the necessary configuration to prevent errors like those that occur in your environment. You can find this configuration here: https://github.com/Nintondo/extension/blob/main/build.ts


feat(reports): support benchmark deep links

This PR enables support for deeplinking to certain benchmarks, example:
before:
https://reports.risczero.com/benchmarks
(can't link to any specific benchmark)
now:
https://reports-and-benchmarks-git-nahoc-bench-deep-link-risczero.vercel.app/benchmarks/Linux-nvidia_rtx_3090_ti
(goes to Linux NVIDIA RTX 3090 ti)
https://reports-and-benchmarks-git-nahoc-bench-deep-link-risczero.vercel.app/benchmarks/Linux-g6.xlarge#Linux-g6.xlarge-composite
(scrolls to the composite chart)

Nice! I guess this is just for the "benchmarks" & "application benchmarks" at this stage?


Open a closed tab

What's the Problem?
It is very necessary to add a new function "Open a closed tab"
Solution/Idea
It is very necessary to add a new function "Open a closed tab"
Alternatives
no ....
Priorities

Capability
Priority

This proposal will allow developers to accomplish W
Must

This proposal will allow end users to accomplish X
Should

This proposal will allow developers to accomplish Y
Could

This proposal will allow end users to accomplish Z
Won't

Files Version
Версия: <IP_ADDRESS> OS Version: 10.0.22000.258
Windows Version
Windows 11 Pro 21H2 22000.258
Additional comment
need ...

Ctrl+Shift+T should reopen closed tabs, but perhaps we can add a browser-like "history".


increase helper function lambda timeout

Issue #, if available:
Closes #57
Description of changes:
increase lambda timeout to 15 min
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

skipping code review for this trivial change


make copy component

the same component is in <Input /> and <Typography />
Its a button with a copy icon, when you click it turns to a checkmark icon and copies the text to the clipboard

make this into a component
replace it in the Input and Typo components

wow shit you did it already, dam! nice


[ENH] Change assertions in integrity validation to exceptions

Context
We would like to enable validation for HNSW index on load
Changes
Assertions in the integrity validation code is updated to exceptions, so that upstream Rust code can handle the error. The only assertion left unchanged should always be true regardless the validation passes or fails.

#24  👈 (View in Graphite)
master

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

Note: 3.7 is failing because of missing build images. The upstream is failing as well on the same test. I remove it here to pass the CI.


feat: bump sinon to latest stable version

SUMMARY
While debugging a unit test I noticed we're on an ancient version of sinon (4.5.0, released over 2 years ago). To make sure the problem isn't related to the old version of the library, I bumped sinon to the latest stable (9.0.2, released 2 months ago) and fixed breaking changes caused by renaming of spy.reset() to spy.resetHistory() .
TEST PLAN
CI
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

Codecov Report

Merging #9926 into master will decrease coverage by 0.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #9926      +/-   ##
==========================================
- Coverage   71.22%   71.00%   -0.23%
==========================================
  Files         585      184     -401
  Lines       30871    18004   -12867
  Branches     3239        0    -3239
==========================================
- Hits        21989    12783    -9206
+ Misses       8773     5221    -3552
+ Partials      109        0     -109

Flag
Coverage Δ

#cypress
?

#javascript
?

#python
71.00% <ø> (-0.42%)
:arrow_down:

Impacted Files
Coverage Δ

superset/views/database/mixins.py
58.92% <0.00%> (-21.43%)
:arrow_down:

superset/utils/cache.py
48.00% <0.00%> (-20.00%)
:arrow_down:

superset/db_engine_specs/mysql.py
78.26% <0.00%> (-13.05%)
:arrow_down:

superset/views/database/validators.py
77.77% <0.00%> (-5.56%)
:arrow_down:

superset/views/tags.py
35.13% <0.00%> (-4.11%)
:arrow_down:

superset/views/database/api.py
83.90% <0.00%> (-3.45%)
:arrow_down:

superset/views/sql_lab.py
59.06% <0.00%> (-3.29%)
:arrow_down:

superset/cli.py
36.72% <0.00%> (-3.14%)
:arrow_down:

superset/db_engine_specs/postgres.py
97.29% <0.00%> (-2.71%)
:arrow_down:

superset/views/database/views.py
86.84% <0.00%> (-2.64%)
:arrow_down:

... and 424 more

Continue to review full report at Codecov.

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


Add test: nested projects with same name have different identities

Because by default, the 'group' is derived from the project path, the identity differs even if if GA from the IncludeBuildCoordinates is used as identity.
Confirms that there is no problem here after the changes from #916.
See:
https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin/pull/916#discussion_r1244109793

Thanks for the feedback. Fixed.


about number of object categories

Excuse me!
It's a grate job, Tanks for what you contribute.
The paper say that HICO-DET has 80 objects,but  num_classes is 91 in /models/hoitr.py   345 lines.Why set it like this？
And could you tell me how to get  'hico_train_retag_hoitr.odgt' from hico-det datasets' file?
thank you very much!

we have just updated the repo, supporting V-COCO and HOI-A,

Because the 80-category-coco ids is incontinuity, ranging from 1 to 90. We set it to 91 for simplicity though there are some 'blank' index.
we introduced the annotation format in readme.

OK,Thanks for your answer!
------------------ 原始邮件 ------------------
发件人:                                                                                "bbepoch/HoiTransformer"                                                                                @.>;
发送时间: 2021年7月2日(星期五) 下午5:32
@.>;
<EMAIL_ADDRESS>主题: Re: [bbepoch/HoiTransformer] about number of object categories (#12)
we have just updated the repo, supporting V-COCO and HOI-A,
Because the 80-category-coco ids is incontinuity, ranging from 1 to 90. We set it to 91 for simplicity though there are some 'blank' index.
we introduced the annotation format in readme.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

we have just updated the repo, supporting V-COCO and HOI-A,

Because the 80-category-coco ids is incontinuity, ranging from 1 to 90. We set it to 91 for simplicity though there are some 'blank' indices.
we introduced the annotation format in readme.

为什么是91而不是90呢？+1是因为空集吗？但是在最后分类层的时候又加了一次1，输出维度变成92了。


Games open automatically.

Any game I click on on the roblox website opens immediately not allowing me to browse servers or look for smaller ones. Also can't use private servers.

Would you be able to capture a video showing the issue?
I use the extension myself and it doesn't run the game unless an appropriate link is opened.

https://user-images.githubusercontent.com/107886055/177650608-bbec9030-c29e-4d84-a5fa-8333b02bfad7.mp4

Hey!
Thanks for a quick follow-up. I see what the problem is. Would you be able to update me with a link that is opened on clicking game icon? (Right click + copy link and paste it here so I can see what the parameters are)

https://www.roblox.com/games/537413528/Build-A-Boat-For-Treasure?gameSetTypeId=100000003&homePageSessionInfo=2ba34878-ea6b-452a-ac98-a57aeff9f485&numberOfLoadedTiles=1&page=homePage&placeId=537413528&position=0&sortPos=0&universeId=210851291

Hey @throwaway1243743852
A potential patch has been published to both Firefox and Google store. Please let me know whether the issue is still happening.

It is working now

Thanks for confirmation!


SUBMARINE-255. [PoC] Rename the submitter package name

What is this PR for?

rename the package org.apache.submarine.runtime.tony to org.apache.submarine.server.submitter.yarn
rename the package org.apache.submarine.runtime.yarnservice to org.apache.submarine.server.submitter.yarnservice
update the conf in mini-submarine
update the mini-submarine's doc

What type of PR is it?
[Refactoring]
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-255
How should this be tested?
https://travis-ci.org/jiwq/hadoop-submarine/builds/601290863
Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

Thanks @jiwq and @liuxunorg
LGTM


chore(deps): update common-dev-assets digest to fbd3a9c

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
fab8ad4 -> fbd3a9c

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

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

GitHub release
v4.1.0

Your semantic-release bot :package::rocket:


Update MAPL to v2.12.3

MAPL v2.11.0 does not build on M1 Mac, complaining about Unknown processor. This should be fixed with a newer version of MAPL. A request for MAPL v2.12.3 was made, so let's do it here too.
https://github.com/NOAA-EMC/hpc-stack/issues/460

I have one more thing to try. The failure is happening in ESMA_CMake and I see a newer release that says it has support for M1 Mac.

@climbfuji there's also this patch in MAPL that points to the issue.
    # Patch to configure Apple M1 chip in x86_64 Rosetta 2 emulator mode
    patch('esma_cmake_apple_m1.patch', when='@:2.8.1')

I think we still need that patch. The M1 fix is for native aarch64, and not Rosetta.


[ci] Define machines to run the CI with Jenkins params

@jenkins-cscs retry all

@jenkins-cscs retry all

@jenkins-cscs retry daint


Global crypto provider

This PR moves the crypto provider setting and the "support unsigned" one from account settings to global.
This is a working state, but it's still an intermediate PR:

there is now a "Cryptography" setting in both account and global settings, which is confusing
there is no migration, so users have to set the global crypto provider setting anew after the update

To make things a little clearer, a toast is displayed when the account setting is clicked while no crypto provider is configured that informs the user to check their global settings.

I consider this PR done. The above mentioned issues will be solved in follow-up PRs:

the "Cryptography" settings in account will be removed when the setting is moved into identities
migration will be sidestepped in a PR that adds a workflow for configuring crypto provider when an encrypted message is viewed while none is configured

Selecting "" as key in account settings doesn't seem to have any effect. The crypto UI is still displayed for this account. And messages encrypted for the previously selected key are still decrypted.

the key is only selected for signing, decryption works for any key that k9 is allowed to use. that behavior didn't change in this PR, but it's one of the things that will change in upcoming PRs.

LGTM 👍


Support Tigris pushdowns for numbers

Description
Closes #1755.

Readiness checklist

[ ] I added unit tests for new functionality or bug fixes.
[ ] I added integration tests for new functionality or bug fixes.
[ ] I added compatibility tests for new functionality or bug fixes.
[ ] I made spot refactorings.
[ ] I updated user documentation.
[ ] I ran task all, and it passed.
[ ] I added/updated comments for both exported and unexported top-level declarations (functions, types, etc).
[ ] I checked comments rendering with task godocs.
[ ] I ensured that the title is good enough for the changelog.
[ ] (for maintainers only) I set Reviewers (@FerretDB/core), Assignee, Labels, Project and project's Sprint fields.
[ ] I marked all done items in this checklist.

This PR is halted, the current state is that it works for most cases, but there are a few edge cases as the fact that filtering the "" doesn't return the empty strings (maybe the tigris bug?), or float comparisons on big numbers (though we don't expect the float comparison will work correctly)


add captcha public forms

add captchas to supporter register and login-form.
this feature should be configured as active/inactive by using yaml´s.

requires dev-container update so that ext-gd is available.
direct usage of google-service is not acceptable.
https://github.com/Gregwar/CaptchaBundle will be used instead^^


change preview in S2_product from TCI to PVI

See #84 for details
Your checklist for this pull request
Please review the guidelines for contributing to this repository.

[ ] Check the commit's or even all commits' message styles matches our requested structure.
[ ] Check your code additions will fail neither code linting checks nor unit test.

Description
Please describe your pull request.

Thank you!

Thanks, this look good 🙏

I am doing all the testing on Gitlab, so I will add what's needed, thanks a lot!

You're welcome!

@floriandeboissieu 0.19.4 has been uploaded to conda-forge, you'll be able to access it in a few minutes/hours 😉

Thanks!


Job is not submited if app-name label exceeds 63 characters

@liyinan926 After #459 fix Issue still exists. I guess, now these labels are the problem
--conf spark.kubernetes.driver.label.sparkoperator.k8s.io/app-name
--conf spark.kubernetes.executor.label.sparkoperator.k8s.io/app-name

when I remove them, job starts with long name.

The values of these two labels are the name of the SparkApplication. I believe object names and label values shared the same length limit, so if the name is within the limit, these two labels should be fine.

@liyinan926 Does it mean that we have this 63 char limit for CR names?

Yes.

@liyinan926 So I guess now it makes sense to limit application name length in CRD?

@liyinan926 So I guess now it makes sense to limit application name length in CRD?

Yes, we have to limit names to <= 63 characters.

Actually I just realized that we don't necessarily need the name label. To select the right pods of a particular submission of a SparkApplication, we can use a combination of the UID of the SparkApplication and the submission ID previously added. The name label can be converted to an annotation for use cases where the app name is needed.

@liyinan926 Will it be straight forward to restrict the name length from CRD itself? Otherwise, this may have adverse effect at other place, such as mentioned above.

@amukhopad Can you submit your PR for upstream for json schema validation for > 63 chars?


submenus open only when the little icon is tapped

When I tap on the parent menu words the whole menu closes but when I tap on the icon arrow it opens. I have tried to change different settings but nothing has worked. Is there something I must change within the code?
My website: http://www.guardamg.com/fl/

Did you try to set "allowParentLinks" to "false"?
https://github.com/ComputerWolf/SlickNav#options


DataMigrationUtility.exe doesn't work

Module: 01
Lab/Demo: 1.3
Task: 2.1
Step: 03
Description of issue
DataMigrationUtility.exe doesn't work.
https://github.com/MicrosoftLearning/PL-200-Power-Platform-Functional-Consultant/blob/master/Allfiles/Labs/ConfigurationMigration/

I have tested this and the Configuration Migration Tool runs in an ALH environment.

Closing due to inability to replicate.

I has double-click on DataMigrationUtility.exe but it not work. Anyone help me

First raise a new issue and not update a closed one
Are you using a lab environment provided by an Authorized Lab Hoster? If so which one?
Workaround
Download and install the Power Platform CLI https://aka.ms/PowerAppsCLI
Then use the command pac tool cmt


KeyableMap constructor error

Hi I get this error message when trying to run the files in jshell. Why does KeyableMap need to have a construtor with no arguments?

Or did u happen to not close a curly bracket? }

Are you trying to instantiate a KeyableMap with a constructor that does not take in any arguments? The Course and Student constructors are supposed to take in a String, so if you do super(String) it wouldnt work if you don't have the right constructor in KeyableMap

the error does not mean that you need to have a constructor with no arguments, just that there are no constructors available for the arguments that u are calling the constructor with. you might want to check your constructors to see if there is one to fit your arguments

Thanks everyone for your help :)


[bug] Adding seeds to seed vault counts as loss

as brought up in this comment

will be fixed by https://github.com/runelite/plugin-hub/pull/5089 . will close this when it merges


Models for target with test data only

What are the models (are there any?) provided by adapt which use source data to predict target data but without any training data from the target?

Using the naming conventions from this chart (https://adapt-python.github.io/adapt/map.html), this question is in regard to SrcOnly domain adaptation.

This is regression, by the way. Both source and target share the same features.
So for example, Xs has 10,000 samples with 100 features, Xs_y is 10,000 x 1.
The target contains labeled test data. For example, Xt has 100 samples x 100 features, Xt_y is 100 x 1.
The goal is to transfer knowledge from a model trained on Xs, Xs_y to predict Xt, Xt_y. As there is no training data in the target, the only available prediction would be to directly test a traditional ML model trained on Xs, Xt_y on the target.

Hi @davidshumway,
If you have no target data available, i.e. neither Xt nor yt, yes your best "transfer" possibility is to fit your ML model on the source data, i.e. "SrcOnly"
Transfer learning and domain adaptation algorithms assume that you have some clues about what is your target, either a set of target inputs Xt or a little set of both inputs and labels Xt, yt.
If you want to improve your model trained on source whithout any clue about the target, you can look at "generalization" algorithms and regularization techniques.
In the case where your source dataset Xs, ys is composed of several different sources (Xs_1, ..., Xs_n), (ys_1, ..., ys_n) and you suppose that your target will look like one of them, you can still use some algorithms of adapt, as DANN or DeepCORAL to find some common representation space for (Xs_1, ..., Xs_n).
Best,

Very interesting. Thank you, @antoinedemathelin. In this case, perhaps as a
baseline a traditional classifier could be trained on source data and then
tested on the target.
In a little different direction, another dataset might contain a lot of
target data but only independent variables, ie no dependent variable
(assuming one dependent variable in the source). For example, there might
be 20 years of weather data for a particular city but the city has no PM2
data whereas other cities (sources) have both weather and PM2 data.
On Wed, Aug 31, 2022, 5:28 AM antoinedemathelin @.***>
wrote:

Hi @davidshumway https://github.com/davidshumway,
If you have no target data available, i.e. neither Xt nor yt, yes your
best "transfer" possibility is to fit your ML model on the source data,
i.e. "SrcOnly"
Transfer learning and domain adaptation algorithms assume that you have
some clues about what is your target, either a set of target inputs Xt or
a little set of both inputs and labels Xt, yt.
If you want to improve your model trained on source whithout any clue
about the target, you can look at "generalization" algorithms and
regularization techniques.
In the case where your source dataset Xs, ys is composed of several
different sources (Xs_1, ..., Xs_n), (ys_1, ..., ys_n) and you suppose
that your target will look like one of them, you can still use some
algorithms of adapt, as DANN or DeepCORAL to find some common
representation space for (Xs_1, ..., Xs_n).
Best,
—
Reply to this email directly, view it on GitHub
https://github.com/adapt-python/adapt/issues/68#issuecomment-1232758458,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5WLV24F54WIPMDVU5G2ETV34XUXANCNFSM577HTPGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @davidshumway,
I am not sure to understand your problem, what is the variable you want to predict in your example?
If, let's say you want to predict PM2 based on the weather data, then you can use unsupervised domain adaptation to match the source and target weather features.
Best,


Add Power Support ppc64le

Added power support for the travis.yml file with ppc64le. This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing.

Lazy cache is using org instead of com as per below, please convert to travis-ci.com as org is getting deprecated in few weeks.
https://travis-ci.org/github/jonschlinkert/lazy-cache/builds/750980729
I have used com and the jobs ran good as per below.
https://travis-ci.com/github/nagesh4193/lazy-cache/builds/210179337


[Enhancement] check be version before update replica verison in fe

In finishTransaction, before update replica's version in FE, check if be's real version is larger or equal to it.
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[x] 3.0
[x] 2.5
[ ] 2.4

@Mergifyio backport branch-3.1

@Mergifyio backport branch-3.0

@Mergifyio backport branch-2.5


Add archived filter to compare environments

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit to check linting
[x] I have filled in the "Changes" section below?
[x] I have filled in the "How did you test this code" section below?

Changes
Adds an archived filter to the compare page.

How did you test this code?
Used the compare feature in production.

@kyle-ssg this doesn't seem to be working too well for me in the Uffizzi preview environment. I've noticed a couple of issues so far:

In a project where there are 2 flags and 2 environments, one archived and one not, when there is a difference between the enabled state of the non-archived flag, I just get a blank screen when I try to compare the 2 environments.
In the same project, if there are no differences between the features in each of the environments, I don't see the archived button.

I'm going to try to verify this in a second project to confirm it happens every time but I wanted to write down the reproduction steps first.

Yep, confirmed that this is reproducible in a fresh project following the exact steps as above.
The compare UI without the archived button (when there aren't any changes):

Blank screen (when there are changes):

This looked to be a pre-existing issue attempting to compare to exactly matching environments. Should be fixed @matthewelwell


Azure Active Directory - switch directory

Hello guys,
I have two azure AD`s also I use azure DevOps service and I need to switch directory.
I read the article Switch to another Azure Active Directory all is clear.
All requirements were met according the link

AAD-1 has a user<EMAIL_ADDRESS>Type member, CUID (ea08550-7a3d-4c8e-bcfe-d93e2a2ce9e4)
AAD-2 has a user<EMAIL_ADDRESS>Type member, CUID (ju8ecb48-b974-4959-8735-43a9e5297ec7)
User<EMAIL_ADDRESS>is a part of Project Collection Administrator group (in Organization settings).

I login to my Azure Devops organization and I have tried to switch directory from AAD-2 to AAD-1.
I get this:
Your organization "Name" failed to connect to the AAD-1 Azure Active Directory.

The requesting identity (CUID 336fb57e-ec04-7fa6-be8d-254f4fb6c641) does not have permission to access the tenant (e440184-c314-4dc9-wd344- a4112eq5621e).

Obviously there is not enough rights to this CUID (336fb57e-ec04-7fa6-be8d-254f4fb6c641)
My question.
What is that identity CUID (336fb57e-ec04-7fa6-be8d-254f4fb6c641)???
I have tried to search this ID in a both AADs and couldn't find anything.
Could you please help me to understand what I missed.

Thanks for your question. It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation. Here are a couple of options where you might consider asking your question:

Azure DevOps on Stack Overflow
Azure DevOps Support Bot

I am closing this issue now.  You are welcome to @ mention me for any followup.
We hope to hear from you again.


Wrong default color for disabled state

According to the docs the default color in disabled state should be grey (150, 150, 150).
However, it is black by default.
Manually setting defaults using qta.set_defaults(color_disabled=QColor(150, 150, 150)) works as expected.

This might be a bug in PySide 6.5, using the wrong colors for disabled widgets when dark mode is enabled in Windows.
https://bugreports.qt.io/browse/QTBUG-114821

Thank you @maflAT for the feedback and sorry for the late response! I think the latest versions of PySide6 (6.5.3/6.6.0) should have fixed this (at least from checking the Qt bug report). Let us know if are able to reproduce this with the latest PySide6 bindings!

Yes, it's fixed in the latest PySide release.


jvb: allow to specify jvb service's ipFamilyPolicy

Services with type LoadBalancer on dual stack clusters require this field in order to be assigned a v6 address: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#service-type-loadbalancer

Hello @roobre!
Thank you for this addition. Can you please add a description for this new value to the README.md as well?

Hey @spijet, sure! Do you use any tooling to generate the readme? Or should I add the new parameter by hand? Thanks!

I do it at hand at the moment. Thank you for the suggestion, I'll look at helm-docs when I have time! :)
(maybe I should look at how the peeps over at Bitnami generate their READMEs as well…)

LGTM, merging. Thank you! ❤


Simple macro to launch GPU kernels

Summary
A simple GPU macro to launch GPU kernels. This folds the number computation for the number of CUDA blocks underneath the macro instead of requiring the caller to compute that before calling FVSAND_GPU_LAUNCH_FUNC

This looks great George. Maybe we rename n_blocks as n_threads?
Jay
On Wed, Sep 15, 2021, 4:44 PM George Zagaris @.***>
wrote:

@.**** commented on this pull request.
In src/fvsand_cuda.h
https://github.com/jsitaraman/fvsand/pull/4#discussion_r709650162:

@@ -39,6 +39,20 @@ inline const char* gpuGetErrorString(gpuError_t err) { return cudaGetErrorString
#define FVSAND_GPU_LAUNCH_FUNC(func, blocks, threads, sharedmem, stream, ...)
func<<<blocks, threads, sharedmem, stream>>>(VA_ARGS);

+constexpr int FVSAND_BLOCK_SIZE = 1024;
+#define FVSAND_GPU_KERNEL_LAUNCH(func, N, ... )
+{                                                                             \

constexpr int SHARED_MEM  = 0;                                              \
constexpr int CUDA_STREAM = 0;                                              \
const int n_blocks = ( N + FVSAND_BLOCK_SIZE-1 ) / FVSAND_BLOCK_SIZE ;      \

The intent with this macro is to encapsulate the code for computing the
number of cuda blocks inside the macro instead of repeating that at the
call site where the kernel is launched.
Would this simplify how kernels are launched throughout the code?
This can be expanded upon to take in lambdas, or even write something like
a for_all routine to do this. We could consider doing this as part of the
hackathon. If nothing else, we could get more appreciation of what
programming models like RAJA and Kokkos work underneath.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/jsitaraman/fvsand/pull/4#pullrequestreview-755711535,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACH3YMANSMLCFULIIST6LWTUCEVXJANCNFSM5EDQKZSQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Ok that makes sense. So n_blocks is  the number of threads per block, yes ?
On Thu, Sep 16, 2021 at 4:30 AM George Zagaris @.***>
wrote:

This looks great George. Maybe we rename n_blocks as n_threads? Jay
The number of threads in this case would be n_blocks * FVSAND_BLOCK_SIZE.
So, n_blocks makes more sense to me intuitively, i.e., * the number of
blocks of thread size FVSAND_BLOCK_SIZE *. Does that make sense?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/jsitaraman/fvsand/pull/4#issuecomment-920820153, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACH3YMGKQPLICA77ETWAYRDUCHIMNANCNFSM5EDQKZSQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I merge all of these changes and steve tran's changes into the main branch
today.
Jay
On Thu, Sep 16, 2021 at 8:52 AM @.***> wrote:

Ok that makes sense. So n_blocks is  the number of threads per block, yes ?
On Thu, Sep 16, 2021 at 4:30 AM George Zagaris @.***>
wrote:

This looks great George. Maybe we rename n_blocks as n_threads? Jay
The number of threads in this case would be n_blocks * FVSAND_BLOCK_SIZE.
So, n_blocks makes more sense to me intuitively, i.e., * the number of
blocks of thread size FVSAND_BLOCK_SIZE *. Does that make sense?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/jsitaraman/fvsand/pull/4#issuecomment-920820153, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACH3YMGKQPLICA77ETWAYRDUCHIMNANCNFSM5EDQKZSQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Ok that makes sense. So n_blocks is the number of threads per block, yes ?
It's actually the total number of blocks. The number of threads per block is given by the FVSAND_BLOCK_SIZE constant, which is currently set at 1024.  I think having it as a global constant is fine, but, we may want to set to 512 or 256. That's also something that we can play with during the hackathon.


Fix windows path finding

https://stackoverflow.com/questions/17736215/universal-path-to-chrome-exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe
I think the "Uninstall" key might be more robust. If it didn't exist, users would have a hard time uninstalling Chrome. The following keys give you the install location, you'll need to append "\chrome.exe" to get the full path to the executable:
Chrome:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome\InstallLocation
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome\InstallLocation
Chrome Canary:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome SxS\InstallLocation
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome SxS\InstallLocation
https://github.com/karma-runner/karma-chrome-launcher/blob/master/index.js

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe
(Default)    REG_SZ    C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Path    REG_SZ    C:\Program Files (x86)\Google\Chrome\Application

reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe" tmp.reg
The operation completed successfully.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe]
@="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
"Path"="C:\Program Files (x86)\Google\Chrome\Application"

https://stackoverflow.com/questions/89228/how-do-i-execute-a-program-or-call-a-system-command
Here is a summary of ways to call external programs, including their advantages and disadvantages:
os.system passes the command and arguments to your system's shell. This is nice because you can actually run multiple commands at once in this manner and set up pipes and input/output redirection. For example:
os.system("some_command < input_file | another_command > output_file")
However, while this is convenient, you have to manually handle the escaping of shell characters such as spaces, et cetera. On the other hand, this also lets you run commands which are simply shell commands and not actually external programs.
os.popen will do the same thing as os.system except that it gives you a file-like object that you can use to access standard input/output for that process. There are 3 other variants of popen that all handle the i/o slightly differently. If you pass everything as a string, then your command is passed to the shell; if you pass them as a list then you don't need to worry about escaping anything. Example:
print(os.popen("ls -l").read())
subprocess.Popen. This is intended as a replacement for os.popen, but has the downside of being slightly more complicated by virtue of being so comprehensive. For example, you'd say:
print subprocess.Popen("echo Hello World", shell=True, stdout=subprocess.PIPE).stdout.read()
instead of
print os.popen("echo Hello World").read()
but it is nice to have all of the options there in one unified class instead of 4 different popen functions. See the documentation.
subprocess.call. This is basically just like the Popen class and takes all of the same arguments, but it simply waits until the command completes and gives you the return code. For example:
return_code = subprocess.call("echo Hello World", shell=True)
subprocess.run. Python 3.5+ only. Similar to the above but even more flexible and returns a CompletedProcess object when the command finishes executing.
os.fork, os.exec, os.spawn are similar to their C language counterparts, but I don't recommend using them directly.
The subprocess module should probably be what you use.
Finally, please be aware that for all methods where you pass the final command to be executed by the shell as a string and you are responsible for escaping it. There are serious security implications if any part of the string that you pass can not be fully trusted. For example, if a user is entering some/any part of the string. If you are unsure, only use these methods with constants. To give you a hint of the implications consider this code:
print subprocess.Popen("echo %s " % user_input, stdout=PIPE).stdout.read()
and imagine that the user enters something "my mama didnt love me && rm -rf /" which could erase the whole filesystem.

print subprocess.Popen("echo %s " % user_input, stdout=PIPE).stdout.read()


I installed SDWebImage

but it occurred errors
thanks for your answer

What version of CocoaPods? Does it help if you upgrade to the latest one? (0.39)

if you remove this library's pod does it work?

The version of CocoaPods is (0.39) but i got the errors
i removed this library's pod, but my project didn't works

Since it's not working even without this pod then it has something else to do with your pod/project, right?

This looks like an issue with CocoaPods itself. Maybe it is damaged or there is an issue with ruby. Please make sure those 2 are properly installed (maybe try reinstalling them).

Thanks bpoplauschi  I solved the problem. It is an issue with ruby

:+1:


Support for dynamic type

Had to make my component look ugly because I wanted to leverage this library but it throws and error if I use a prop.
At the markup level I apply a type to the form component and apply some conditionals if it's a password. It doesn't makes sense in my particular case to hard code each type along the way.
I assume this was a conscious decision but wanted to raise this point and possibly start a discussion around this because it's the one thing preventing me from using this plugin full scale (I love it btw, excellent job).

This plugin is getting re-written at the moment and getting under @vuejs namespace on NPM so it will no longer be updated, that are unfortunately no plans yet to support dynamic type for <input /> element because it creates a huge overhead, however, I will add exception for one specific case - ternary type with text & password so this will work:
const el = <input type={condition ? 'text' : 'password'} />

But that's the only thing supported only because text and password work exactly the same (there is difference with checkbox and radio), sorry for inconvenience but it's really hard to support any jsx expression in input's type

Okay, sweet. I ended up using it anyways and running through the conditionals. I have no idea what kind of hoops you have to jump through to make this all work but of course appreciate the plugin to support v-model.
https://vimeo.com/268623150


[ UNIVERSAL PIPELINE UPDATE] Oregon, Louisiana, Maine

Background
Three additional states have been added to the universal pipeline: Oregon, Louisiana, and Maine
The UP config list needs to be updated on simplereport.gov and
an announcement email needs to go out to senders in that state.
Action requested
Updates are needed in the following areas:

[x] Update the list of UP states on the static site config. Refer to this PR for an example.
[ ] Generate the list of admin emails senders in that state for product to make an announcement using the sendOrgAdminEmailCSV mutation. You can refer to this doc for help on how to perform the mutation. Notify product once this list is generated so they can continue with the email campaign.

@jayna-SkylightDigital the static site list has been updated here. However, I can't generate a list of emails without CDC access so that will need to be done by another engineer


Including auxillary data computed by evaluate with genomes/fitnesses

Hello,
I am currently working with Dr. Schuman in a course, and I am trying to use LEAP to develop RNGs with the Diehard test as a fitness function. Now, the Diehard battery spits out a different value(s) for each test, so I am aggregating these scores and using them as the fitness function. However, I want to preserve each individual value when I get the genome/fitness back, for my own purposes. How can I do this? I have already tried overriding equivalent/worse_than or returning a custom object with overriden __lt__ and __eq__ methods; in both cases, the ScalarProblem class just tries to interpret the returned fitness as a float regardless.
Thanks.

Nevermind, changing from leap_ec.binary_rep.problems.ScalarProblem to leap_ec.problem.Problem solves this issue.


Error adding access list. (413)

I get this error when is adding the access list

Yeah, that's a request too large error.. I guess it went over the limit allowed in the NPM admin API.
I'll try to open an issue there see if there's a way to expand it.
How large is your IP file ?

I have the same problem, no solution yet?

Same error here, 27mb file.
Maybe there is a way to split the rules based on file size and create more than one rule?

Splitting the files would be great if npm allow to use more than one access rule per domain

Ah, I did not knew that ;(

Yes unfortunately, this is kind of a limitation of the API npm allows at the moment..

Good afternoon, have you found a solution to this problem?

any update on this?

any update on this?

No

I did implement a workaround for me, by modifying the nginxproxymanager database directly. for anyone interested here my changes:
replace line 64 in file add-npm-geofilter.py:
npmclient.add_access_list(args.npm_accesslist_name, token, existing_rule_id, *access_rule_list)
with this code:
import sqlite3
import datetime

# Create a connection object
connection = sqlite3.connect("/path/to/nginxproxymanager/database.sqlite")

# Create a cursor object
cursor = connection.cursor()

# Execute a CREATE TABLE statement
cursor.execute(f"DELETE FROM access_list_client WHERE access_list_id = {existing_rule_id}")

for row in access_rule_list:
    query_value_meta = '{}'
    cursor.execute(f"INSERT INTO access_list_client (created_on, modified_on, access_list_id, address, directive, meta) VALUES ('{datetime.datetime.now()}', '{datetime.datetime.now()}', {existing_rule_id}, '{row.address}', '{row.directive}', '{query_value_meta}')")

# Commit the transaction
connection.commit()
print("synced to DB")

# Close the connection
connection.close()

(replace "/path/to/nginxproxymanager/database.sqlite" with the path to your nginxproxymanager sqlite database)


Ransomware

I testet this rat on a VM. I wanted to test the ransomware feature. The encrypting works Perfectly but the decrypting does not work. After I've Encrypted the Files I pressed on Decrypt on the rat panel. It said Password so i put in a password but when i tried to do put the password in the decrypter it said "Wrong Password"
pls tell me how tis works :)

you should find the password at client folder
---Original---
From: @.>
Date: Sat, Aug 14, 2021 22:14 PM
To: @.>;
Cc: @.***>;
Subject: [qwqdanchun/DcRat] Randomware (#49)
I testet this rat on a VM. I wanted to test the ransomware feature. The encrypting works Perfectly but the decrypting does not work. After I've Encrypted the Files I pressed on Decrypt on the rat panel. It said Password so i put in a password but when i tried to do put the password in the decrypter it said "Wrong Password"
pls tell me how tis works :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

thx


coding-conventions: include the preceding upstream version

Description of changes
The only thing that seems clear after all the versioning discussions is that we do want the previous upstream-assigned version in the beginning when packaging something untagged.
Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
N/A Tested basic functionality of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

So we closed the RFC now and that's the compromise? Also I didn't know about this until 5 minutes ago which is concerning because I am belonging to the group of most active people in this repo and didn't notice this reviewer relevant change for 3 weeks.

Should we update unstableGitUpdater to handle and preserve version numbers done like the new convention? Right now it will revert them to not include the latest upstream tag (if one exists)

Yes. It already has option for the previous proposal so it should be as easy as turning it on by default and tweaking the format slightly.


Add docs and CI

This is very much work in progress and targets mostly the docstrings of the SOFA sub-package and the CI for docs generation.

I created a menu structure for the SOFA sub-package and extracted all functions with a tiny shell script.
The formatting is already nice but the cross references are still missing. I also need to check all the doc strings to convert references of C functions to Julia ones.
I think it would be a good idea to rename this repository to Astrometry.jl to signal that it's a Julia package 🙂 We also need to set up the CI for the documentation building. Let me know if you need any help with that!
Here is a screenshot of the current docs page:

Btw. there are still duplicate entries for a couple of functions which I will of course take care of ;) this is due to the somewhat sloppy regex I wrote to extract functions. Easy fix...

Thanks Tamas. I'm at the AAS Meeting this week, so will get to this request when I return.
Many of the functions return values using NamedTuples as does the SOFA and ERFA packages. The key names of each function need to be checked to ensure they are consistent with those packages and among the functions in the package. If you have time to take a look at that, that would be great.

I looked a little bit into it and noticed that some functions are still missing (like eraApcX from the erfa package). Those will be added as well I guess?

Ah wait, I think I start to understand the naming scheme ;)
iauAtciqn -> atciqn
eraApco13 -> apco13
Sorry for my ignorance but I could not figure out yet why the iau or era prefixes are omitted. It's also a bit too early yet 😁

The Julia package is based on SOFA, so I guess I have missed a few additional ERFA functions. I'll take a look.
Yes, SOFA and ERFA have different function name prefixes, which, of course, I have dropped from the Julia version.


does useSortable support different draggable types?

It isn't entirely clear from the Docs, but currently in Multiple Containers - Basic Setup is it also possible to sort the droppable(container) as well? Thereby achieving a Kanban like app?

I'm wondering if it's possible to use dnd-kit to replicate this behavior?
i.e. boards can be sorted and combined, board items can also be sorted and combined.

As for your first question,you can nest multiple levels of <DndContext> providers. To make the columns also sortable, all that is needed is also wrapping the columns in a second <DndContext> provider and <SortableContext>. I've been planning to add this functionality to the stories, just have not gotten around to it yet.
As for combining items, this is possible but you will have to put in some work to get it done. Refer to this issue to learn more #114

Noted and thank you!

@clauderic in such a case, in order to render the appropriate dray overlay, one should conditionally render according to custom sortable data (example below)? Or is there simpler way?
// Item.tsx
const { ... } = useSortable({ id, data: { type: "item"} });

// Column.tsx
const { ... } = useSortable({ id, data: { type: "column"} });

// Main.tsx
const dragOverlay = () => {
  const type = draggedItem?.data.current?.type;

  if (type === "column") {
    return <Column ... />;
  }

  if (type === "item") {
    return <Item ... />;
  }

  return null;
};

return (
  <DndContext>
    <SortableContext items={columnIds}>
      ...
      <NestedSortableContext items={itemIds}>...</...>
      ...
    </SortableContext>
    <DragOverlay>{dragOverlay}</DragOverlay>
  </DndContext>
);

Hey @ranbena, the example you have above is the way to currently do it, but it doesn't lead to the greatest separation of concerns.
The main reasons why rendering the <DragOverlay> component within a component that uses useSortable isn't recommended is that the DragOverlay component should not unmount while dragging, so if you have items that shift from one column to another while dragging (which causes them to unmount and re-mount), that's a no-go.
Currently, the <DragOverlay> component doesn't support being conditionally rendered because of how the drop animation works. That could be fixed by introducing an onDropAnimationComplete prop on <DragOverlay> to unmount it after the drop animation has completed though.

The main reasons why rendering the  component within a component that uses useSortable isn't recommended is that you should only have a single instance of DragOverlay mounted at a time, and the DragOverlay component should not unmount while dragging, so if you have items that shift from one column to another while dragging (which causes them to unmount and re-mount), that's a no-go.

Whoops, it's a typo - it's actually <SortableItem> and <SortableColumn> that implement useSortable, not <Item> and <Column>. Of course, the DragOverlay should not render a sortable component.

Currently, the  component doesn't support being conditionally rendered because of how the drop animation works. That could be fixed by introducing an onDropAnimationComplete prop on  to unmount it after the drop animation has completed though.

Not sure I understand what scenario can yield a problem. (I've already implemented this and it does work perfectly)

@ranbena I was referring to this type of pattern:
function SortableItem({id, type}) {
  const {active} = useSortable({
    id,
    data: {
      type,
    }
  });

  return (
    <>
      <Item />
      <DragOverlay>
        {active?.data.current?.type === type ? <Item /> : null}
      </DragOverlay>
    </>
  );
}

It's not recommended because:

You should only have a single instance of DragOverlay mounted at a time (assumptions in the library, performance reasons)
The DragOverlay component should ideally not unmount while dragging; if SortableItem is unmounted and moved to a different column while dragging, that assumption will be broken.

Oh I understand.
I implemented a single DndContext and single DragOverlay that encompass all the sortables within the kanban.

@ranbena Glad you got it working! Is there any code you can share? I'm trying to make a kanban-type board as well. Currently I can reorder the parent columns and the reorder the children within the parent. But when I reorder the parents, the children don't move with its parent.

@ranbena thank you! This is helpful although in your sandbox, the items don't get reordered, just dragged around.

Yeah I skipped that part to make the code more readable where it counts 😎

I just finished implementing a working example of multiple containers with sortable columns in the official stories: https://5fc05e08a4a65d0021ae0bf2-rvnnplhsjm.chromatic.com/?path=/story/presets-sortable-multiple-containers--basic-setup
https://user-images.githubusercontent.com/1416436/132930538-3d8c5b99-a9de-4bde-8919-3bb724126437.mp4
It allowed me to find a couple bugs along the way too 😄

@clauderic  thank you. That is exactly what I need. Can you please share code for it?


Add rake task velum:create_user

This rake task takes two parameters: an email and a password, and will
create a user entry in the Velum database so it's possible to login and
work with it.

Validations on the model will be executed and the user won't be created if the model validations aren't met. Should we print the validation errors in case this happens?

Validations on the model will be executed and the user won't be created if the model validations aren't met. Should we print the validation errors in case this happens?

not necessarily IMO, i leave it up to you

Validations on the model will be executed and the user won't be created if the model validations aren't met. Should we print the validation errors in case this happens?

I agree with @MaximilianMeister. Let's keep things simple, we can always add them later on.

@flavio Should we backport this patch to 1.0?

Sorry, but I don't see how this is any more straightforward than using rails/runner, as most of the work is just getting anything to run on the container:
CID="$(docker ps | grep velum-dashboard | cut -f1 -d' ')"
CMD="bundle exec rails runner \"User.create(email: \\\"${ADMIN_EMAIL}\\\", password: \\\"${ADMIN_PASSWORD}\\\")\""
docker exec -it $CID bash -c "VELUM_DB_PASSWORD=\"$(cat /var/lib/misc/infra-secrets/mariadb-velum-password)\" ${CMD}"

The thing you guys can do that makes it easier for us is to provide a script at the host-level; but we already have the above code to do that, so I think this issue/FATE can be closed based on the above snippet, unless you can provide a cleaner solution to do this from the host.

@bear454 Well, certainly it doesn't make it easier or more straightforward from the host point of view, but I think it's a nice to have because is a generator that we maintain, so the people wanting to create a user account don't need to mess with the Rails API directly or our implementation, what makes it a better fit for external usage.
Also wanted to comment that you don't need to do docker exec -it $CID bash -c "VELUM_DB_PASSWORD=\"$(cat /var/lib/misc/infra-secrets/mariadb-velum-password)\" ${CMD}", you can do docker exec -it $CID entrypoint.sh "${CMD}" and you should be good to go.
From that snippet I'm also wondering if double quotes are going to work in the password field.
I agree on having a wrapper on the host so it's straightforward to make this kind of calls, however that doesn't invalidate the fact that a rake task is better fit for external usages because we maintain it and it will work if we modify our internal schema, or if the rails API change for whatever reason, for example.

👍


Adds Service Bundle contract document

This document captures a detailed description of the existing contract between a Service Bundle and the Automation Broker.
Please review how accurately this represents the current relationship between a Service Bundle and the Automation Broker as implemented today. Please do not (yet) review the technical merits of this design. Once this document is reviewed and accepted as an accurate representation of reality, a next step will be to review the design on technical grounds and look for opportunities to improve it.

As a reminder, let's please keep review within scope of making this reflect the current reality, and not let the discussion run away to a myriad of desired changes to how things work. I am also eager to have those discussions, but we'll benefit from first articulating a well-defined frame of reference.
I appreciate the feedback so far and will make a round of edits this morning. Thanks!

This is valuable to document, so not questioning its place in here, but do for my own edification, do we have a use-case for APB authors to interact with these files directly? The majority of the time, they just serve to authenticate the SA to do the APB work, no?

@eriknelson I agree they should be documented even though the APB author might not interact with them directly, but it could help them understand why some things might not be working for them.


Update readme

This PR:

Removes the coveralls plugin
Updates the readme

Please @raulraja could you take a look? Thanks

LGTM!


bug: Can't open oil, if path contains sharp symbol (#)

Did you check the docs and existing issues?

[X] I have read the docs
[X] I have searched the existing issues

Neovim version (nvim -v)
v0.9.0
Operating system/version
Arch Linux, zsh
Describe the bug
If path to current working directory contains sharp symbol(#), I get error:
Error executing Lua callback: /oil.nvim/lua/oil/init.lua:351: Vim:E194: No alternate file name to substitute for '#'. [C]: in function 'edit'
And oil won't open
Steps To Reproduce

mkdir #
cd #
nvim
:Oil

Expected Behavior
Open Oil
Directory structure
No response
Repro
local select = function(params)
	local oil = require("oil")
	oil.select(params)
	vim.cmd.wincmd({ args = { "p" } })
	oil.close()
	vim.cmd.wincmd({ args = { "p" } })
end

local vertical_split = function()
	select({ vertical = true })
end

local split = function()
	select({ horizontal = true })
end

require("oil").setup({
	view_options = {
		show_hidden = true,
	},
	keymaps = {
		["<CR>"] = "actions.select",
		["<C-v>"] = vertical_split,
		["<C-s>"] = split,
		["<Leader>v"] = "actions.select_vsplit",
		["<Leader>s"] = "actions.select_split",
		["<C-p>"] = "actions.preview",
		["<Esc>"] = "actions.close",
		["-"] = "actions.parent",
		["_"] = "actions.open_cwd",
		["`"] = "actions.cd",
		["~"] = "actions.tcd",
		["g."] = "actions.toggle_hidden",
	},
})

Did you check the bug with a clean config?

[X] I have confirmed that the bug reproduces with nvim -u repro.lua using the repro.lua file above.

This was because oil is using :edit under the hood, and :edit will auto expand # to be the alternate buffer name. Should be fixed now!

Yes, It works, thanks!


UI update

Tested on a real nanos and all seems good.
Clang static analyzer issues will be fixed in #17


Fix Cygwin compatibility

I just tried to build with Cygwin and had not problems with the unpatched code.

I just tried to build with Cygwin (64 bit, tesseract + training) and had not problems with the unpatched code.

hmmm....
@matzeri?

On 16/06/2016 18:13, Amit Dovev wrote:

I just tried to build with Cygwin (64 bit, tesseract + training) and
had not problems with the unpatched code.

hmmm....
@matzeri https://github.com/matzeri?

It builds (now, it failed before) but the result is
a hybrid cygwin/windows program not a cygwin program.
Current tesseract binary
$ cygcheck /usr/bin/cygtesseract-3.dll |grep -v '^    '
E:\cygwin64\bin\cygtesseract-3.dll
E:\cygwin64\bin\cygwin1.dll
E:\cygwin64\bin\cyglept-5.dll
E:\cygwin64\bin\cyggcc_s-seh-1.dll
E:\cygwin64\bin\cygstdc++-6.dll
Building from HEAD without patches
$ cygcheck api/.libs/cygtesseract-3.dll |grep -v '^   '
E:\cyg_pub\devel\tesseract\prove2\tesseract-3.05.00dev_build\api.libs\cygtesseract-3.dll
E:\cygwin64\bin\cygwin1.dll
E:\cygwin64\bin\cyglept-5.dll
E:\cygwin64\bin\cyggcc_s-seh-1.dll
E:\cygwin64\bin\cygstdc++-6.dll
C:\Windows\system32\WS2_32.dll

@matzeri
The patch for training/pango_font_info.cpp is different from yours. Please have a look at it and test it.

@stweil

T_WIN is set to false by default, so this line could simply be removed (if false is the correct value).

Fixed. Thanks.

@stweil
Please confirm that this PR compiles with Cygwin 64, including training tools.

The build with Cygwin64 fails for the training tools:
training/pango_font_info.cpp: In member function 'bool tesseract::PangoFontInfo::ParseFontDescription(const PangoFontDescription*)':
training/pango_font_info.cpp:227:46: error: 'strcasestr' was not declared in this scope
   is_fraktur_ = (strcasestr(family, "Fraktur") != NULL);

Defining _GNU_SOURCE fixes the build failure.

It builds with this additional patch:
diff --git a/training/pango_font_info.cpp b/training/pango_font_info.cpp
index e9e6d73..8bc56a0 100644
--- a/training/pango_font_info.cpp
+++ b/training/pango_font_info.cpp
@@ -25,10 +25,13 @@
 #if (defined __MINGW32__) || (defined __CYGWIN__)
 // workaround for stdlib.h and putenv
 #undef __STRICT_ANSI__
-#endif

 #if (defined __MINGW32__)
 #include "strcasestr.h"
+#else
+/* needed for strcasestr in string.h */
+#define _GNU_SOURCE
+#endif
 #endif

 #include <stdlib.h>

@Shreeshrii reported that this patch https://github.com/amitdo/text2tif/commit/0473f14f, which is same as the the above patch works on Cygwin...
I'll change it anyway.

Something went wrong with the update. I'll try again soon.