Gradient of numpy.maximum

The gradient of numpy.maximum is inconsistent:
autograd.grad(numpy.maximum, 0)(1., 1.) returns 1.0
autograd.grad(numpy.maximum, 1)(1., 1.) returns 0.0
I do realise that the gradient of the maximum function is discontinuous at this point (when the two arguments are equal), but since the function is symmetric, it would make sense for the gradients to be symmetric as well.  The former behaviour (returning 1.0) is probably more helpful, e.g. in the case of gradient descent.

I think this behavior is only in older versions of autograd; can you try upgrading?
Here's the current behavior (on master and I believe also on the current pip version):
In [3]: grad(np.maximum, 0)(1., 1.)
Out[3]: 0.5

In [4]: grad(np.maximum, 1)(1., 1.)
Out[4]: 0.5

See #141 and Dougal's fix on that issue.

I have v1.1.9 installed, which is the current pip version.
I'm running this with Python 3.5.2 (Anaconda 4.1.1), numpy 1.12.0, on Windows 64-bit.

Thanks for checking! I just pushed 1.10 to pip. Can you upgrade and try again? If there's still a problem, it might be possible that you have two versions of autograd installed.

I just upgraded numpy and autograd, but I'm still getting the old behaviour.  I also checked autograd.path after importing it, and it's using the new version.

Oh, I think you might have forgotten import autograd.numpy as np:
In [1]: from autograd import grad

In [2]: grad(np.maximum, 0)(1., 1.)
Out[2]: 1.0

In [3]: grad(np.maximum, 1)(1., 1.)
/Users/mattjj/packages/autograd/autograd/core.py:16: UserWarning: Output seems independent of input.
  warnings.warn("Output seems independent of input.")
Out[3]: array(0.0)

In [4]: import autograd.numpy as np

In [5]: grad(np.maximum, 0)(1., 1.)
Out[5]: 0.5

In [6]: grad(np.maximum, 1)(1., 1.)
Out[6]: 0.5

Thank you!  I missed that line in the tutorial.


Implement requirements UI and levelbar from packets

Setup code to make the requirement UI work again with non-downloaded maps, also setup code to make the right list and main levelbar work with maps from beatmap packets

there's one thing that I haven't done yet, in BeatmapLevelSelectionViewPatcher.cs because the beatmap level provider doesn't provide valid BeatmapLevels like the game expects, so I cna't just pass it into the LevelBar


Don't allow service to start before meeting dependencies.

I have just installed LND. With Bitcoin service still doing sync and no Bitcoin Proxy installed.
At this stage:
I was able to configure LND - That's OK
And I was able to start the LND service - That should not be allowed.

The solution would be to not allow user to start service if not all dependencies are met and if for some reason user want's to run that service add "force run" option (if necessary)
Worth considering:
Inform user that some services are still doing something like bitcoin has not finished syncing the blockchain and in case of LND some functions will be limited or don't work at all.

This is an intentional design choice in 0.3.0.
The only scenario where we prohibit an app from starting on the grounds that its dependencies aren't met is if there is a "critical" dependency on the application. This is because if you configure LND against an external bitcoind, you want to be able to start lnd without bitcoind being installed.
That said, something about the behavior you observed was unintuitive to you, and that itself is an issue. Can you elaborate on your thought process that led you to believe this was an issue that needed to be fixed?

The intentional design choice is good it just has to be extended a bit.
The ability to start service or not allow starting at all should be determined at the configuration stage.
The default (easy) auto config expects working Bitcoin and Bitcoin Proxy services if any or both are not operational starting the service should not be allowed.

@dr-bonez I think it may be sensible to make a change here such that if a service holds onto active package pointers that it should inherit the requirement that those services be in the started state.

This is because if you configure LND against an external bitcoind, you want to be able to start lnd without bitcoind being installed.

This is not why, actually. The config pointer system already handles this and if you are using an external bitcoind, there will not be any dependency error.
We allow you to start the service because there is nothing wrong with doing so, and may be a more convenient workflow. We still inform you that something is wrong with the service, similar to if you were running the service and it was failing a health check. Preventing a service from running while having an issue with a dependency can have all sorts of undesirable cascading effects.
The fact that this was not intuitive to you is still an issue, however. What this tells me is that the messaging around dependency errors is insufficient. Perhaps the start button should be yellow, and present a warning dialog in this state. Perhaps the running status should be replaced with a running with errors status when dependency errors are present or health checks are falling.
Please weigh in @MattDHill

For 0.3.0, I will add a warning alert when attempting to start a service with a dependency error.
For a later release, @dr-bonez  and I agree it would be nice to have a "severity" attribute on health checks and dependencies that the UI can use to message things properly.

Was a corresponding ticket cut describing the future improvements needed? I don't want to lose the pointer to this.

No, I described the fix in my precious comment and then merged the fix to 0.3.0 and closed the ticket.

For a later release, @dr-bonez and I agree it would be nice to have a "severity" attribute on health checks and dependencies that the UI can use to message things properly.

Do you wish to track this part though?

Ah, I understand now. I read future as feature. Yes, I have a note to cut a ticket for that, just didn't get around to it yet.


fixed noremap adding same mapping over and over and not adding other mappings

Why

What changed

I noticed that noremap was adding a lot of remappings... and they were the same one! Upon closer inspection I realized the problem was that each time a matching mapping was found (the if on line 776 of vim.js) the mapping was added at the top of the defaultKeymap list while it was being iterated, which resulted in the iteration going back to the same element, noticing it still matches and adding it again.
This had an additional negative side effect of never adding the other mappings that match.
I then designed a test case to demonstrate that this bug was causing undesired effects, and implemented a solution by delaying the addition of the newMappings until after the iteration is over.

Thank you!


[BEAM-9865] Cleanup Jenkins WS on successful jobs

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
 Isn't that a problem in case of some possible investigations in the future?
We may implement something like this, WDYT?

With that change, all workspaces will be always cleared, just after the build. Isn't that a problem in case of some possible investigations in the future?
We may implement something like this, WDYT?

I wasn't aware that you were working on this bug. The ws-cleanup plugin can be configured not to clean up after failures. However, I don't recall the last time I needed to ssh into a workspace because I needed to look at the files.

No worries, I didn't actively work on this bug yet, just had some thoughts.
I have no strong opinion here, both approaches are fine if access to the workspace isn't needed.

run seed job

run seed job

R: @damgad

run seed job

run rat precommit

Run Spotless PreCommit

run seed job

run seed job

run rat precommit

Run Spotless PreCommit

Finally verified that this works:
17:54:20 [WS-CLEANUP] Deleting project workspace...
17:54:20 [WS-CLEANUP] Deferred wipeout is used...
17:54:20 [WS-CLEANUP] done

https://ci-beam.apache.org/job/beam_PreCommit_RAT_Phrase/71/console
Also ssh-ed into machine and verified workspace dir was not there.

Run Spotless PreCommit

R: @damgad

LGTM, however, I'm not a committer and can't merge :)

Since you pointed me here, the problem is that there are important transparent caches in the workspace, such as the maven dep downloads. It is slow and wasteful for all parties to hit maven central on every build, but more importantly it is flaky.
TBH "pure" caches could/should probably live outside the workspace. I think the Gradle dep cache must be, or we'd see huge flakiness of Gradle jobs. We can clone --depth 1 to eliminate the costs of the repo history. But I kind of agree with the simple approach of wiping out the workspace to keep it simple and not depend on details of what happens in the workspace. The issue is we need to get the replacement in place first. I think setting up the .m2 to be outside the workspace is the move in this case.

Turns out the flaky process in question sets .m2 to a subdirectory of a wiped out temp dir. Once that is fixed, we'll still need an outside-the-workspace location for the cache to avoid it being wiped out.


Removed broken link from free-programming-books-de

What does this PR do?
Remove resource(s)
For resources
Description
Removed 'Einstieg in Visual Basic 2010' from free-programming-books-de.md
Why is this valuable (or not)?

The link was broken.
The book cannot be found on the site anymore.
A more recent publication is already enlisted in the file.

How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

duplicate of #7324

Ok Cool! Sorry, didn't notice that one.


Replaced Force Directed Graph Challenge

Pre-Submission Checklist

[X] Your pull request targets the staging branch of FreeCodeCamp.
[X] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[X] You have only one commit (if not, squash them into one commit).
[X] All new and existing tests pass the command npm run test-challenges. Use git commit --amend to amend any fixes.

Type of Change

[ ] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[X] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[X] Tested changes locally.
[X] Closes currently open issue (replace XXXX with an issue no): Closes #8722

Description

The challenge "Show Relationships with a Force Directed Graph" asks campers to build a force directed graph based off relationships derived from the Camper News Feed. The Camper News Feed was recently removed, breaking existing solutions to the challenge.
This pull request replaces the challenge with a new one based on a dataset hosted on github.
The new challenge, "Show National Contiguity with a Force Directed Graph", uses countries as nodes, and these nodes are linked if the countries share a national border. The flag icons are loaded from a spritesheet generated at https://www.flag-sprites.com/. The dataset, hosted at https://github.com/DealPete/forceDirected, was adapted from a dataset downloaded from the Correlates of War Project (http://www.correlatesofwar.org/).
No libraries other than d3 were used.

cc/ @FreeCodeCamp/issue-moderators @QuincyLarson

@DealPete Thanks for the PR, please make the changes, amend the commit and we are good to go.

:sparkles: :sparkles: LGTM. :sparkles: :sparkles:
Thanks @DealPete ! Lots of hard work has gone into this.


Fetch content automatically

Maybe every 10 seconds?

Hey, @taniuchis just opened #54 to address this! Let us know anything that may concern you :) thanks!


[hevce][refactored] Enabled HEVCe refactored code path for Linux SKL

Signed-off-by: Andrey Larionov<EMAIL_ADDRESS>

ES done it in PR https://github.com/Intel-Media-SDK/MediaSDK/pull/1858

what is ES?
#1858 looks better. Thank you.


Roll engine 426ea8dba6ea..f8e7453f1106 (3 commits)

git@github.com:flutter/engine.git/compare/426ea8dba6ea...f8e7453f1106
git log 426ea8dba6ea..f8e7453f1106 --no-merges --oneline
2019-08-15<EMAIL_ADDRESS>Roll fuchsia/sdk/core/linux-amd64 from pCY3J... to _fvZN... (flutter/engine#11020)
2019-08-15<EMAIL_ADDRESS>Roll src/third_party/skia c061d31c2415..319fd3d7bcb4 (9 commits) (flutter/engine#11018)
2019-08-15<EMAIL_ADDRESS>Roll src/third_party/dart e35e8833ee..e35e8833ee (0 commits)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (stuartmorgan@google.com), and stop
the roller if necessary.

Trybots failed. These were the failed builds: https://cirrus-ci.com/task/5140154346373120

Commit queue failed; closing this roll.


Feature 2021/04/ create docs

Install read the docs to mange the documentation.

Merge this PR as it's just documentation.


Rename "delete repository" to "remove repository"

Like this you don't need that lenghty description, because actually you are not deleting a github repo, but instead remove the local clone from your phone.

I think the description is still good to have, as it gives you a second chance to think whether you really want to remove the repository or not.


Bog Witch Update

The mod is not working after the Bog Witch Update.
List of mods ON

In game error

Thanks for the report.  Fixed in v0.3.8


Live

Test

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
5
link
:white_check_mark:

msteams-platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage.md
92
15
link
:white_check_mark:

msteams-platform/bots/how-to/conversations/conversation-messages.md
91
19
link
:white_check_mark:

msteams-platform/bots/how-to/conversations/send-proactive-messages.md
95
8
link
:white_check_mark:

msteams-platform/concepts/device-capabilities/media-capabilities.md
98
3
link
:white_check_mark:

msteams-platform/graph-api/meeting-transcripts/api-transcripts.md
100
0
link
:white_check_mark:

msteams-platform/graph-api/meeting-transcripts/fetch-id.md
97
4
link
:white_check_mark:

msteams-platform/graph-api/meeting-transcripts/overview-transcripts.md
99
4
link
:white_check_mark:

msteams-platform/mstdd-landing.yml
100
0
link
:white_check_mark:

msteams-platform/sbs-gs-bot.yml
91
37
link
:white_check_mark:

msteams-platform/sbs-gs-javascript.yml
91
40
link
:white_check_mark:

msteams-platform/sbs-gs-msgext.yml
90
46
link
:white_check_mark:

msteams-platform/sbs-inmeeting-document-signing.yml
86
33
link
:white_check_mark:

msteams-platform/sbs-send-proactive.yml
88
9
link
:white_check_mark:

msteams-platform/toolkit/add-single-sign-on.md
92
10
link
:white_check_mark:

msteams-platform/toolkit/debug-background-process.md
98
3
link
:white_check_mark:

msteams-platform/toolkit/debug-local.md
93
10
link
:white_check_mark:

msteams-platform/toolkit/debug-overview.md
95
9
link
:white_check_mark:

msteams-platform/whats-new.md
92
36
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Learn Build status updates of commit 0bf9d4c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

msteams-platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage.md
:white_check_mark:Succeeded
View

msteams-platform/assets/images/apps-in-meetings/shared-meeting-stage-edit-review-component.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/appsettings.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/apps-icon.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/bot-name.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/create-new-bot.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/debug.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/dependencies.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/developer-portal-intro.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/enter-proactive-message.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/meeting-token-generator-admincenter_1.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/new-secret.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/ngrok-base-url1.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/overview-page.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/preview-teams.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/proactivebot-project1.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/proactive-confirm.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/proactive-helo1.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/proactive-helo-in-adaptive-card.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/proactive-message.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/proactive-reply.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/secret.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/select-adaptive cards.PNG
:white_check_mark:Succeeded
View

msteams-platform/assets/images/proactive-scenario/select-add.PNG
:white_check_mark:Succeeded
View

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Refactor the gradle code to a plugin

https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/632
https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/634
The configuration namespace is now changed - I moved the configuration to ev3.pref. Paths can be overriden via ev3.paths.

Apparently it is a bad idea to reset the source branch to be on par with the destination one. I have compacted the history a bit.

Tested somewhat advanced configuration:
import java.nio.file.Paths

// Project configuration
ev3.pref {

    // Main class //
    mainClass = "example.programming.HelloWorld"

    // Brick connection parameters //
    brickHost = "<IP_ADDRESS>"
    brickUser = "robot"
    brickPassword = "maker"

    // Library section //
    libOpenCV = false
    libRXTX = false
    libCustom += "file:///path/to/a.jar"

    // Commands preceding Java //
    useSudo = false
    useTime = true
    useBrickrun = false

    // Java flags //

    jvmFlags += "-Xms64m"
    jvmFlags += "-Xmx64m"

    //jvmFlags += "-Xlog:gc*=info:stderr"
    jvmFlags += "-XX:+UseSerialGC"
    //jvmFlags += "-XX:+UseParallelGC"
    //jvmFlags += "-XX:+UseG1GC"

    jvmFlags += "-Xshare:on"
    jvmFlags += "-noverify"
    //jvmFlags += "-Djava.security.egd=file:/dev/./urandom"
    //jvmFlags += "-Dcom.sun.management.jmxremote=true"
    //jvmFlags += "-Dcom.sun.management.jmxremote.port=7091"
    //jvmFlags += "-Dcom.sun.management.jmxremote.authenticate=false"
    //jvmFlags += "-Dcom.sun.management.jmxremote.ssl=false"

    // JAR behaviour //
    slimJar = true
    useEmbeddedPaths = false
}

ev3.paths {
    wrapperDir = "/home/robot"
    libraryDir = "/home/robot/java/libraries"
    programDir = "/home/robot/java/programs"
    splashDir  = "/home/robot/java/splashes"
    opencvJar  = "/usr/share/java/opencv.jar"
    rxtxJar    = "/usr/share/java/RXTXcomm.jar"
}

ev3.build {
    splashPath = { proj ->
        return Paths.get("/home/kuba/common_splash.txt")
    }

    templateWrapper = { proj ->
        return """
#!/bin/sh
/bin/true
cat ${proj.ev3.brickSplashPath()}
exec ${proj.ev3.getJavaCommand(true)}
"""
    }

    uploads = { proj ->
        return [
            [Paths.get(proj.projectDir.getAbsolutePath(), "mysterious_data_file.bin"), "/home/robot/mysterious_data_file.bin", 0755],
        ]
    }
}

Notes:
The main variable should be brick, not ev3. (ev3, brickpi, pistorms)
ev3.paths should be hidden. It is the default configuration. Transparent configuration
ev3.upload the same idea
The user only should upgrade brick.pref

The main variable should be brick, not ev3. (ev3, brickpi, pistorms)

Oki, that's right, I was thinking only about ev3.

ev3.paths should be hidden. It is the default configuration. Transparent configuration

It is hidden by default - it doesn't have to be specified at all. However if the user is clever enough, they can find that there exists a brick.paths block.

ev3.upload the same idea

If you mean ev3.build, that is also intended for more advanced users. I believe these options can all be useful.

splashPath allows the user to change the default <projectDir>/gradle/splash.txt splash path,
templateWrapper allows the user to customize the shell script wrapper,
uploads allows the user to add something to upload with the program.

None of these is required, they are defaulted. I added them because with moving the functionality to a plugin, we lose a possibility to hack something directly into the build code, so this tries to compensate for it.

The user only should upgrade brick.pref

Yup, this was only an example of what is possible. The config.gradle in this PR can remain. In fact, the ultra-minimum config is the following, because the rest of the options have a sane default.

brick.pref {
    mainClass = "example.opencv.HelloWorldCV"
    brickHost = "<IP_ADDRESS>"
}

Now ev3 should be successfully changed to brick.

Before we merge this PR, we maybe should release the plugin as a non- SNAPSHOT version.


logo design

Hi. I am a graphic designer. I volunteer to design a logo for open source projects. I can design it for you to use it in the readme file. What dou you say?

oh hi! sure! sounds great!
if you use any text:
Webwork.tools
infominer33/web-work


Backend reformatting (AlignmentRecordLayout)

Removed references to track or TrackLayout in AlignmentRecordLayout and MismatchLayout. AlignmentRecordLayout now returns a Map[String, Array[ReadJson]] of AlignmentRecord information, which maps each sample ID to an array of ReadJsons (which include selective information about the CalculatedAlignmentRecord, including mismatches) and filters by sampleIDs passed into the AlignmentRecordLayout object as well.
AlignmentRecordLayoutSuite tests and VizReads have also been changed to support the new format.

Can one of the admins verify this patch?


StorageInfo.path related crash when creating class inheriting from MapTileProviderBasic

Issue Type
[ ] Question
[x] Bug
[ ] Improvement
Description and/or steps/code to reproduce the problem
I was on master for quite a while (8ac87620a9d7adbd477886983d68c4a7c05375a9) and my classes got created ok.
I upgraded to 84c0e1fef9d4b484dca647d30ca5fd15f46e5c31 and got the below crash (in Nexus 9 API 28 emulator).
Possibly related to f27c7a473a13820d248b53f5c994687a4c228e65 ?
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.skunkwx.pasniak.cc/com.skunkwx.pasniak.cc.ui.activity.fullscreenactivity.FullscreenActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String org.osmdroid.tileprovider.util.StorageUtils$StorageInfo.path' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:193)
	at android.app.ActivityThread.main(ActivityThread.java:6669)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.NullPointerException: Attempt to read from field 'java.lang.String org.osmdroid.tileprovider.util.StorageUtils$StorageInfo.path' on a null object reference
	at org.osmdroid.config.DefaultConfigurationProvider.getOsmdroidBasePath(DefaultConfigurationProvider.java:253)
	at org.osmdroid.config.DefaultConfigurationProvider.getOsmdroidTileCache(DefaultConfigurationProvider.java:278)
	at org.osmdroid.config.DefaultConfigurationProvider.getOsmdroidTileCache(DefaultConfigurationProvider.java:272)
	at org.osmdroid.tileprovider.modules.SqlTileWriter.getDb(SqlTileWriter.java:736)
	at org.osmdroid.tileprovider.modules.SqlTileWriter.<init>(SqlTileWriter.java:82)
	at org.osmdroid.tileprovider.MapTileProviderBasic.<init>(MapTileProviderBasic.java:89)
	at org.osmdroid.tileprovider.MapTileProviderBasic.<init>(MapTileProviderBasic.java:70)
	at org.osmdroid.tileprovider.MapTileProviderBasic.<init>(MapTileProviderBasic.java:63)
	at org.osmdroid.tileprovider.MapTileProviderBasic.<init>(MapTileProviderBasic.java:56)
	at com.skunkwx.pasniak.cc.map.tiles.MapTileProviderCustom.<init>(MapTileProviderCustom.kt:9)
..

On a my laptop with AS 4.0/Emulator tiles are found ok, on my hardware tablet there is no crash but no tile appear...
Environment
If it's a bug, version(s) of android this affects:
Api 28
Version of osmdroid the issue relates to:
6.1.7-SNAPSHOT (84c0e1fef9d4b484dca647d30ca5fd15f46e5c31)

For which Android API versions does it crash? work? doesn't crash but doesn't display anything?

The crash stack is on 28 (I could repro immediately anytime).  Corrrection: the real device works (it just restarted at 0,0 lat/lon, which confused me).

This occurs if the app (on that particular VM) has no permission to write in onCreate stack. Here mapview gets created and so is the tilecache:
MapView(ctx, MapTileProviderCustom(ctx) /* inherits MapTileProviderBasic*/)

But I have tested fresh installs and they worked well (on all VMs at hand and this is not a new one): a handler for onRequestPermissionsResult asks user for permissions to write. If permission is granted I set location with MapViewWrapper.setCacheLocation(File())
Am I supposed to do this differently now?

@cbalster What do you think of that?f

Below is patch which made it work again (i.e no exception when app Storage is off, on 28).
Index: osmdroid-android/src/main/java/org/osmdroid/tileprovider/modules/MapTileFileArchiveProvider.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- osmdroid-android/src/main/java/org/osmdroid/tileprovider/modules/MapTileFileArchiveProvider.java	(revision 84c0e1fef9d4b484dca647d30ca5fd15f46e5c31)
+++ osmdroid-android/src/main/java/org/osmdroid/tileprovider/modules/MapTileFileArchiveProvider.java	(date<PHONE_NUMBER>000)
@@ -176,16 +176,18 @@

           // path should be optionally configurable
           File cachePaths = Configuration.getInstance().getOsmdroidBasePath();
-          final File[] files = cachePaths.listFiles();
-          if (files != null) {
-               for (final File file : files) {
-                    final IArchiveFile archiveFile = ArchiveFileFactory.getArchiveFile(file);
-                    if (archiveFile != null) {
-                   		 archiveFile.setIgnoreTileSource(ignoreTileSource);
-                         mArchiveFiles.add(archiveFile);
-                    }
-               }
-          }
+          if (cachePaths != null) {
+			  final File[] files = cachePaths.listFiles();
+			  if (files != null) {
+				  for (final File file : files) {
+					  final IArchiveFile archiveFile = ArchiveFileFactory.getArchiveFile(file);
+					  if (archiveFile != null) {
+						  archiveFile.setIgnoreTileSource(ignoreTileSource);
+						  mArchiveFiles.add(archiveFile);
+					  }
+				  }
+			  }
+		  }
 	}

 	private synchronized InputStream getInputStream(final long pMapTileIndex,
Index: osmdroid-android/src/main/java/org/osmdroid/config/DefaultConfigurationProvider.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- osmdroid-android/src/main/java/org/osmdroid/config/DefaultConfigurationProvider.java	(revision 84c0e1fef9d4b484dca647d30ca5fd15f46e5c31)
+++ osmdroid-android/src/main/java/org/osmdroid/config/DefaultConfigurationProvider.java	(date<PHONE_NUMBER>000)
@@ -249,11 +249,14 @@

     @Override
     public File getOsmdroidBasePath(Context context) {
-        if (osmdroidBasePath==null)
-            osmdroidBasePath = new File(StorageUtils.getBestWritableStorage(context).path, "osmdroid");
         try {
-            osmdroidBasePath.mkdirs();
-        }catch (Exception ex){
+            if (osmdroidBasePath==null) {
+                StorageUtils.StorageInfo storageInfo = StorageUtils.getBestWritableStorage(context);
+                String pathToStorage = storageInfo.path;
+                osmdroidBasePath = new File(pathToStorage, "osmdroid");
+                osmdroidBasePath.mkdirs();
+            }
+        } catch (Exception ex){
             Log.d(IMapView.LOGTAG, "Unable to create base path at " + osmdroidBasePath, ex);
             //IO/permissions issue
             //trap for android studio layout editor and some for certain devices

Don't hesitate to create a PR.

Yeah, this is related and probably the case I described at the end in the original PR: https://github.com/osmdroid/osmdroid/pull/1571
The tl:dr is: You have to make sure the first use of getOsmdroidBasePath() / getOsmdroidTileCache() in your codepath is one with the context supplied, so: getOsmdroidBasePath(Context) / getOsmdroidTileCache(Context). Otherwise on API29 and above it cannot be guaranteed that any path is found. If you just instantiate a MapView this done for you by the hacky workaround, but if you use custom TileProviders, things get a little more tricky. The safe way is to just call the method with context before instantiating any mapview or TileProviders.
I took a quick look at you PR and without diving into the code, I'd say this covers your use case and prevents the crash and still works since you're setting the path manually afterwards. I'm not 100% sure this doesn't have any side effects in other use cases, but unfortunately I don't have the time right now to take a closer look.
As mentioned in the original PR this can only be solved by re-designing the storage detection mechanism to only work with a context - ideally at the same time moving away from the static singleton approach for the Configuration. But this will be a breaking change.

I've just merged the PR.
@cbalster @pasniak Obviously the idea was to fix the current issue (and to do it quickly), but if you guys have suggestions for a cleaner next version please create a new issue, where we have time to discuss the different solutions - and their possible drawbacks.


Unexpected background shadow when  is displayed

https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=52630. May not be a Flutter bug, filing so we have a mirror issue just in case we need to help investigate.

I believe this is working as intended. Flutter is drawing a shadow for elevated surfaces. The elevation for Ask was 200, which resulted in a shadow that was cast widely around it. When I reduced it to 10, it was much more pleasant.
See https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=52630 which I marked as closed.

Sweet! Thanks for closing the loop here, too! Closing.


update ansible comparison statements

updated some statements regarding differences/similarities to ansible
Changes introduced with this PR
updated statements comparing to ansible.

By contributing to this repository, I agree to the contribution guidelines.

applied changes from code review


fix buffer protocol name being 'normalized'

Fixes #11

Thank you for your feedback and contribution! Ready to merge.


Rendering web view with react/preact

Hi, I've been trying to render a React/Preact component to sketch-module-web-view and was running into a bit of trouble. I've managed to get the webview to render the html file but can't figure out exactly how to reference the required JS to render my React component.
my-component.html situated in /plugin.sketchplugin/Contents/Resources/

  <title>Preferences</title>

my-component.js situated in /Resources/
import { render, Component } from 'preact';

class MyComponent extends Component {

  render() {
    return (

My Component

    )
  }

}

render(<MyComponent />, document.getElementById('container'));

Is this possible at all with the plugin? Thanks!

Nevermind, was missing a transform-jsx-command in my .babelrc!


Game fails to start, suspected mod compatibility

attached is a list of mods used and the screen shown by the game on startup
https://imgur.com/a/huXeGrf
the mod seems to work with another group of mods, though with this group, it freezes on startup
sorry if you are unable to identify the error due to a lack of logs provided, i've tried manually crashing the game, but a crash log cannot be generated

I tried to launch the newest builds with the list of mods provided, everything seems to be loading fine.
Try this build for 1.17 or this build for 1.18.
If the same issue occurs, please provide a log - it does not need to be a crash log, as the game technically does not crash, a regular log (latest.log) contains all the details required.
Closing for now, as I cannot reproduce.

thank you so much! i'll download the artifact and test it out


Overshoot animation on panel expand

Is there a way to add a overshoot animation when the panel expands?
Something like in the gif below:

Not currently, feel free to submit a PR if you get it to work.

Awesome! Thanks.


Fix isLocalRun check in PulsarAdminTool

Motivation
I was trying to debug a sink connector locally using sinks localrun command and seems the condition isLocalRun was not checked properly because args was shifted at the beginning of the main method without changing the initial cmdPos in a previous PR https://github.com/apache/pulsar/commit/232b32439687995dd3102d8c281cf50b7b91e0bf#diff-c349b18c29ddc6c10d7665a454c001515325943ea1f3315d07b3155f50b1ccafR281.
Modifications
Initialize cmdPos at 0 rather than 1.

@eolivelli PTAL


Keyboard not showing in the TextInput when pressing back button

Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
Keyboard appear first time and then if we press back button, the keyboard goes as usual but it will not shows up if i press again

React Native version:
.
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
1.import TextInput from 'react-native' and use it
2.
Expected Results
Describe what you expected to happen.
Snack, code example, screenshot, or link to a repository:
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
You may provide a screenshot of the application if you think it is relevant to your bug report.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

I have the same problem. Android 8 and earlier

Tested in Android 7 and 9 . Both have same problem

There is a very ugly but working solution. Use onPressIn. In which to do blur first, and then focus immediately.
But of course I want something better

It works great!, but sometimes it has performance issues. Hope the next version will resolve this.

same problem with react-native: 0.64.x =/

still unresolved at 0.65 =/

There is a very ugly but working solution. Use onPressIn. In which to do blur first, and then focus immediately.
But of course I want something better

as a temporary solution, it works

Still unresolved at 0.66.3 on android 6, 7, 8

I tested 0.63.4 and it works fine on all Android versions

Still unresolved at 0.68.2 on Android 11.0

Still unresolved at 0.68.1, but only happens on Android 7, this can be easily reproduced in rn_tester

u can try this
`import { useState, useEffect, useRef } from "react";
import { Keyboard, TextInput, View } from "react-native";
export default function TextInputC(): JSX.Element {
const [keyboardStatus, setKeyboardStatus] = useState('');
useEffect(() => {
const showSubscription = Keyboard.addListener('keyboardDidShow', () => setKeyboardStatus('display'));
const hideSubscription = Keyboard.addListener('keyboardDidHide', () => setKeyboardStatus('none'));
return () => {
showSubscription.remove();
hideSubscription.remove();
};
}, []);
const textInputRef = useRef(null);
const checkKeyboards = () => {
if(keyboardStatus === "none") textInputRef.current?.blur()
    return true
};

return(
    <View style={{backgroundColor:"grey", borderRadius:5}}>
        <TextInput
            ref={textInputRef}
            onPressIn={checkKeyboards}
            placeholder='What do you think about this...'
            placeholderTextColor={"white"}
            multiline={true}
            style={{backgroundColor:"grey",margin:5,height:100,textAlignVertical:"top",color:"white"}}
        />
    </View>
)

}`

u can try tgis
import { useState, useEffect, useRef } from "react";
import { Keyboard, TextInput, View } from "react-native";

export default function TextInputC(): JSX.Element {
    const [keyboardStatus, setKeyboardStatus] = useState('');
    useEffect(() => {
        const showSubscription = Keyboard.addListener('keyboardDidShow', () => setKeyboardStatus('display'));
        const hideSubscription = Keyboard.addListener('keyboardDidHide', () => setKeyboardStatus('none'));
        return () => {
            showSubscription.remove();
            hideSubscription.remove();
        };
    }, []);
    const textInputRef = useRef<TextInput>(null);
    const checkKeyboards = () => {
        if(keyboardStatus === "none") textInputRef.current?.blur()

        return true
    };

    return(
        <View style={{backgroundColor:"grey", borderRadius:5}}>
            <TextInput
                ref={textInputRef}
                onPressIn={checkKeyboards}
                placeholder='What do you think about this...'
                placeholderTextColor={"white"}
                multiline={true}
                style={{backgroundColor:"grey",margin:5,height:100,textAlignVertical:"top",color:"white"}}
            />
        </View>
    )
}

Do you still experience this issue?
I have four years of experience maintaining facebook/react-native and I specialize in the Text and TextInput components. I currently have 58 facebook/react-native PRs.
If you still experience this issue, I will prepare a patched release with the fix.
Thanks a lot

Description
Keyboard appear first time and then if we press back button, the keyboard goes as usual but it will not shows up if i press again
Steps to reproduce
https://github.com/facebook/react-native/assets/101851338/519602a7-c213-44c8-b0a6-2a8b5266b2c2
Code Example
import { View, TextInput} from "react-native";
import { useState } from "react";

export default function SearchInput() {
  const [input, setInput] = useState('')
  return (
    <View style={styles.container}>

      <TextInput
        value={input}
        onChangeText={(text) => setInput(text)}
        placeholder="Ask me anything..."
      />
    </View>
  )
}

expected outcome
The keyboard to be displayed when the user taps on it regardless of if its the first time or not

Was someone able to find the cause and fix of this problem, it would be great if you share here!!

Here's how I got it to work:
const inputRef = useRef(null); // Attach a ref to the TextInput

// Delay the focus by 50ms to allow modal to complete its render
useFocusEffect(() => {
    setTimeout(() => inputRef.current?.focus(), 50)
})

return (
    <TextInput
       ref={inputRef} // Attach ref
       autoFocus={false}  // Set autoFocus to false
    />
)

I'm not sure if this is the correct way to do it, but it seems that the modal animation in some way interferes with the keyboard showing. So delaying the TextInput focus slightly allows the keyboard to render without hindrance.
Note:  This does not negatively impact iOS rendering in any way.
More discussion here:  stackoverflow


refactor(katana): refactor state

Stack:

#631
#629
#628
#627
#626 ⬅
#625
#624
#623

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

✓ Commit merged in pull request #631


It would be stopped when the scene was more then 2 lines in safari , while take a long time ,all the scene will be appear

Thanks for reporting @wang125309 👍
With what version of Safari did you notice this? Was it on a mobile phone? Could you reproduce it in other browsers or Safari is only browser concerned? Could you share the code you used?
If you have an online link to share with me, it would be super awesome 💪

Im so sorry, I almost forgot that, maybe I used other modules or I was give up writing that. My safari version maybe 11.0.1 and on mobile phone the problems may be more ~ thx

I'm afraid I'll have to close this issue as I am unable to reproduce it. Do not hesitate to reopen if you're still having any trouble 👍


Hint the correct integer type for casts

The naming scheme for integers in bpftrace is different from C: int becomes int32, unsigned char becomes uint8. It might cause confusion for first time users to not have these basic types. They would not be able to pretty print the value of a counter(), if they can't cast it to an integer.
This PR adds a hint for type casts, suggesting the name of the bpftrace integer type matching the C type.
Checklist

[x] Language changes are updated in man/adoc/bpftrace.adoc
[x] User-visible and non-trivial changes updated in CHANGELOG.md
[x] The new behaviour is covered by tests

Should this hint be for type cast only? In SemanticAnalyser::visit(Cast &cast)?
Or should it be also for resolving the type in SemanticAnalyser::resolve_struct_type(SizedType &type, const location &loc)?

Should this hint be for type cast only? In SemanticAnalyser::visit(Cast &cast)?
Or should it be also for resolving any type? In SemanticAnalyser::resolve_struct_type(SizedType &type, const location &loc)?

Good question. IMHO it should be for resolving any type. This would include our new variable declaration syntax e.g. hint on let $x: int;

Sorry if I'm missing something, but how do integer type hints apply to resolve_struct_type()? resolve_struct_type() only errors if inner_type->IsRecordTy(), which integers are not.

My bad, its error message also appear alongside the cast error and I thought resolve_struct_type() was called on all types.

Also please add some semantic analysis tests. Would be good to check that output is formatted how we expect (and so it doesn't regress)

Added 🙂

Good question. IMHO it should be for resolving any type. This would include our new variable declaration syntax e.g. hint on let $x: int;

The problem is that the type rule in the syntax is strict and won't even accept an invalid type! For instance, trying your let $x: int gives me the following parser error:
stdin:1:17-21: ERROR: syntax error, unexpected identifier, expecting struct or integer type or builtin type or sized type
BEGIN { let $x: int; }
                ~~~~

So hinting on let will require adding custom error message to our parser, or changing the type rule to accept identifier and catching the type issue in semantic_analyser.

Sorry if I'm missing something, but how do integer type hints apply to resolve_struct_type()? resolve_struct_type() only errors if inner_type->IsRecordTy(), which integers are not.

I think @ttreyer demonstrated how this is happening in the newly added semantic tests. And I believe it's because of this line in the parser: https://github.com/bpftrace/bpftrace/blob/master/src/parser.yy#L619

This is an improvement so I'm fine to merge. That being said, I feel like the hint should go into the first error message and not the second.

I agree, it would be easier to understand.
Let's make an issue about types being in the lexer (or update #3488), make a note to improve this PR hints and add hint for typed let.


Can't install MAGMA Server

When i run the Magma Server with this Command ("docker run -d -v /home/lib/leipziginblocks/magma_server:/data -e TZ=Europe/Berlin -e TYPE=MAGMA -p 25565:25565 -p 25575:25575 -e EULA=TRUE -e MEMORY=6G -e ENABLE_RCON=true -e RCON_PASSWORD=Password --name mc-server itzg/minecraft-server:java8
e1109db65d8eea04e8e6214bcd76bd3cfc08baef9a4e0aaa37f64c2984c80d77") it gave me this error
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x   12 1000     1000          4096 Mar  4 09:10 /data'
[init] Resolved version given LATEST into 1.16.5
[init] Resolving type given MAGMA
curl: (22) The requested URL returned error: 500
[init] ERROR unable to download version 1.16.5 of Magma
[init]       Check https://magmafoundation.org/ for available versions
Why?
How can i solve it

If the Magma URL is returning a 500 status code then that's a problem on their end. Please report an issue with Magma.
FYI https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500

Their API server is still broken by confirming with curl:
> curl -v https://api.magmafoundation.org/api/resources/Magma/1.16.5/stable/latest/download
*   Trying <IP_ADDRESS>:443...
* TCP_NODELAY set
* Connected to api.magmafoundation.org (<IP_ADDRESS>) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=api.magmafoundation.org
*  start date: Jan 13 14:10:48 2021 GMT
*  expire date: Apr 13 14:10:48 2021 GMT
*  subjectAltName: host "api.magmafoundation.org" matched cert's "api.magmafoundation.org"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55d44fac2670)
> GET /api/resources/Magma/1.16.5/stable/latest/download HTTP/2
> Host: api.magmafoundation.org
> user-agent: curl/7.68.0
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 500
< server: nginx/1.17.8
< date: Sat, 06 Mar 2021 02:49:09 GMT
< content-type: text/html; charset=utf-8
< content-length: 14
< x-powered-by: Express
< access-control-allow-origin: *
< etag: W/"e-I1dfNaUh6cJh0nSsTLKcLwWyYaw"
< vary: Accept-Encoding
< strict-transport-security: max-age=15724800; includeSubDomains
<
* Connection #0 to host api.magmafoundation.org left intact
Internal Error

Their API docs page also fails with 500:

Hey i'm one of the magma devs I will have a look what's wrong with the API
Our own website uses the API aswell and dousn't seem to have any issues

Hey i'm one of the magma devs I will have a look what's wrong with the API

Thanks. FWIW I just tried the curl above and I'm still getting a 500.

Our api has changed last week. The image has to be updated

@patchint You're already using java8 variant, so docker-compose pull will grab the latest.


chore: Final Deno integration

Figure out correct installation steps for npm users
Figure out correct execute steps for npm users
Document everything in README
Automatic publishing and versioning

So I am just going to try and use dnt to generate an npm package from the deno module. This will give me the dx I want without losing out on the consumability of the package.

This is going to go on hold for now I think I will wait a bit longer for the ecosystem to evolve. For a CLI you need something that's easily available so dnt has to be the way to go.


NFC: Code simplification

Simplify some XLA tests.
@cheshire

A fix for the ARM CI build failure is underway.

A fix for the ARM CI build failure is underway.

Great. But up to now, this didn't prevented the merge. My PR was still being merged.
Fixing the ARM CI will save us many useless emails, thanks!


Text Selection does not work as expected.

Attach (recommended) or Link to PDF file here: https://mozilla.github.io/pdf.js/web/viewer.html
Configuration:

Web browser and its version: Edge
Operating system and its version: win10
PDF.js version:
Is a browser extension: false

Steps to reproduce the problem:

Select ink editor
Draw anything
Scroll to last page
Draw anything
Cancel select ink editor
Scroll to first page
Text Selection does not work

What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Inkeditor Canvas is overlapping the page
Screencast from 2023-12-04 16-16-46.webm


Feature request: !coffee

Det er omtrent den mest brugte feature.

Done (should be part of the general 'bar' feature set later on)


Calculating doesn't work

Calculating doesn't work as I can't figure out how to get the value of the input boxes, but it still receives the choice of operation, as it shows "Error" when nothing is selected.

If anyone finds a fix for this please open a pull request.


[DOC-5351] Update language for private previews

[DOC-5351]
Previews
TBD
Testing

[x] Local build
[x] Link check

This change is


Can't submit library

I am seeing this today when trying to submit a new library.
File #73093867 accepted : 302383 bytes written
Processing file....
Invalid response : 'Error : Cannot serialize [file_open,out.txt]
Called from C:\HaxeToolkit\haxe\std/haxe/Serializer.hx line 515
Called from C:\HaxeToolkit\haxe\std/haxe/Serializer.hx line 534
Called from C:\HaxeToolkit\haxe\std/haxe/remoting/HttpConnection.hx line 105
Called from C:\HaxeToolkit\haxe\std/haxe/remoting/HttpConnection.hx line 81
Called from tools/haxelib/Repo.hx line 41
Called from tools/haxelib/Repo.hx line 317
Called from tools/haxelib/Repo.hx line 323
Called from ? line 1
Called from /usr/lib/haxe/std/neko/vm/Module.hx line 52
Called from Tora.hx line 340
Called from /usr/lib/haxe/std/neko/vm/Loader.hx line 154
Called from /usr/lib/haxe/std/neko/vm/Loader.hx line 132
Called from Tora.hx line 486'

Can you try again, please? It seems I had left some debug code in the build.
On Fri, Apr 3, 2015 at 1:30 PM, Adi<EMAIL_ADDRESS>wrote:

I am seeing this today when trying to submit a new library.
File #73093867 accepted : 302383 bytes written
Processing file....
Invalid response : 'Error : Cannot serialize [file_open,out.txt]
Called from C:\HaxeToolkit\haxe\std/haxe/Serializer.hx line 515
Called from C:\HaxeToolkit\haxe\std/haxe/Serializer.hx line 534
Called from C:\HaxeToolkit\haxe\std/haxe/remoting/HttpConnection.hx line
105
Called from C:\HaxeToolkit\haxe\std/haxe/remoting/HttpConnection.hx line 81
Called from tools/haxelib/Repo.hx line 41
Called from tools/haxelib/Repo.hx line 317
Called from tools/haxelib/Repo.hx line 323
Called from ? line 1
Called from /usr/lib/haxe/std/neko/vm/Module.hx line 52
Called from Tora.hx line 340
Called from /usr/lib/haxe/std/neko/vm/Loader.hx line 154
Called from /usr/lib/haxe/std/neko/vm/Loader.hx line 132
Called from Tora.hx line 486'
—
Reply to this email directly or view it on GitHub
https://github.com/HaxeFoundation/haxelib/issues/198.

Works now :+1:
Thanks.

Now for 3.3.0-rc1
Reopen?
Sending data....
File #37709025 accepted : 25900 bytes written
Processing file....
Error: Invalid response : 'Error : Cannot serialize [file_open,/var/www/html/files/3.0/hotmem-0,0,2.zip]
Called from /usr/share/haxe/std/haxe/Serializer.hx line 522
Called from /usr/share/haxe/std/haxe/Serializer.hx line 541
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 108
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 84
Called from haxelib/server/Repo.hx line 43
Called from haxelib/server/Repo.hx line 355
Called from haxelib/server/Repo.hx line 361
Called from ? line 1
Called from D:\Projects\haxe/std/neko/vm/Module.hx line 52
Called from Tora.hx line 333
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 154
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 132
Called from Tora.hx line 479'

This is still happening for Haxe 3.2.1, is there something I'm missing?
'''
File #19866523 accepted : 38992 bytes written
Processing file....
Invalid response : 'Error : Cannot serialize [file_open,/var/www/html/files/3.0/traceryhx-1,0,1.zip]
Called from /usr/share/haxe/std/haxe/Serializer.hx line 522
Called from /usr/share/haxe/std/haxe/Serializer.hx line 541
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 108
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 84
Called from haxelib/server/Repo.hx line 43
Called from haxelib/server/Repo.hx line 355
Called from haxelib/server/Repo.hx line 361
Called from ? line 1
Called from D:\Projects\haxe/std/neko/vm/Module.hx line 52
Called from Tora.hx line 333
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 154
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 132
Called from Tora.hx line 479'
'''

I'm getting a similar error like this, I'm using Haxe 3.2.1. I managed to submit the package the first time correctly, but now it won't allow me to update the package.
Sending data....
File #19866523 accepted : 38992 bytes written
Processing file....
Invalid response : 'Error : Cannot serialize [file_open,/var/www/html/files/3.0/traceryhx-1,0,1.zip]
Called from /usr/share/haxe/std/haxe/Serializer.hx line 522
Called from /usr/share/haxe/std/haxe/Serializer.hx line 541
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 108
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 84
Called from haxelib/server/Repo.hx line 43
Called from haxelib/server/Repo.hx line 355
Called from haxelib/server/Repo.hx line 361
Called from ? line 1
Called from D:\Projects\haxe/std/neko/vm/Module.hx line 52
Called from Tora.hx line 333
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 154
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 132
Called from Tora.hx line 479'

@eliasku @chiguire
Thanks for reporting. Would you upload the zip files to dropbox and paste the link here? We need to reproduce the issue in order to fix it.

@andyli
hxease.zip
hotmem.zip

Thank you, Andy, here's the link
https://www.dropbox.com/s/mpu22temlfhnk8a/traceryhx.zip?dl=0
2016-09-03 9:24 GMT+01:00 Andy Li<EMAIL_ADDRESS>
@eliasku https://github.com/eliasku @chiguire
https://github.com/chiguire
Thanks for reporting. Would you upload the zip files to dropbox and paste
the link here? We need to reproduce the issue in order to fix it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HaxeFoundation/haxelib/issues/198#issuecomment-244534259,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACEtz3dGV1_PIAf3J8r7DChyU6566UMks5qmS7LgaJpZM4D5vYs
.

ditto:
haxelib submit farcek.zip
Password :
Sending data....
File #99411991 accepted : 5463 bytes written
Processing file....
Invalid response : 'Error : Cannot serialize [file_open,/var/www/html/files/3.0/farcek-1,5,0.zip]
Called from /usr/share/haxe/std/haxe/Serializer.hx line 522
Called from /usr/share/haxe/std/haxe/Serializer.hx line 541
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 108
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 84
Called from haxelib/server/Repo.hx line 43
Called from haxelib/server/Repo.hx line 359
Called from haxelib/server/Repo.hx line 365
Called from ? line 1
Called from D:\Projects\haxe/std/neko/vm/Module.hx line 52
Called from Tora.hx line 333
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 154
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 132
Called from Tora.hx line 479'

https://www.dropbox.com/s/plz7tk28z3h8yjp/farcek.zip?dl=0

It seems that it's not looking into the good directory, which should be (path/to/haxelib/files/....) - and I think it's not in /var/www/ is it?

Same story:
Sending data....
File #97840920 accepted : 128671 bytes written
Processing file....
Error: Invalid response : 'Error : Cannot serialize [file_open,/var/www/html/files/3.0/hxbolts-1,0,2.zip]
Called from /usr/share/haxe/std/haxe/Serializer.hx line 522
Called from /usr/share/haxe/std/haxe/Serializer.hx line 541
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 108
Called from /usr/share/haxe/std/haxe/remoting/HttpConnection.hx line 84
Called from haxelib/server/Repo.hx line 43
Called from haxelib/server/Repo.hx line 359
Called from haxelib/server/Repo.hx line 365
Called from ? line 1
Called from D:\Projects\haxe/std/neko/vm/Module.hx line 52
Called from Tora.hx line 333
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 154
Called from D:\Projects\haxe/std/neko/vm/Loader.hx line 132
Called from Tora.hx line 479'

http://temp.zame-dev.org/pub/hxbolts.zip

I can reproduce it by trying to update an existed version of jQueryExtern. Investigating now.
@ncannasse The path is correct. It is a symlink to the haxelib folder inside the container.

Should be fixed now. Please check!

works!

Ah just super. Thanks!


Mutex & Safe access to FatDriver

Hello!
I am a total n00b in Rust. I like your project, and I thought I could somewhat improve my Rust skills by fixing one of your TODOs. Hence this simple mutex for safe access to structures.
Feel free to diss my code. I'll try to make this mutex somewhat more complex and safe, as soon as time allows it.

Ehi @malandrakisgeo great job!
This is something I should have done sooner but never got into it.
The goal is to make Felix completely memory safe in the future, and this is the first step into it!
Thank you!


What about to make a pagination as independent component

Hello @ratiw
I see you have created pagination as separated component. What do you think about making it independent? Because pagination can be used with another list (component), not just a datatable component. I think it have to be separated repository and package.
Also I think vuetable must not include such methods like gotoPreviousPage(), gotoNextPage(), gotoPage(). They are methods for pagination component.
Thanks for great work

Since vuetable relies on server data pretty much, I think these methods are useful. Most people use pagination together with a table and in this case the pagination is very suited. I agree that having it as a separate component would clean up some code, but then it becomes harder to use vuetable with pagination since you have to configure 2 separate components and make them work.

@itelmenko That has crossed my mind when I was porting vue-table (the first version) to Vuetable-2.
Component-wise, I feel like it should be a separate package, but this might introduce a major breaking change. So, it should wait until the next major release and I'll probably revise all the code and we might revisited this issue again.
And like @cristijora said, convenient and usability will also be factored into the decision.

but this might introduce a major breaking change

I have an idea. We can make separated pagination package based on current vue-pagination. But vue-pagination will work also, but marked as deprecated. So we will not have a breaking change. And we will have separated component for correct new code.

I think these methods are useful.

Yes, the are useful. But they must be in pagination component. Not in the vuetable component.

but then it becomes harder to use vuetable

I believe we can do it simple


Add the credential caching

This is still a WIP, I'll be adding tests and making changes to it. I just committed it before I left work. Thanks for all the tips!


URL change request for JuliaWGPU repositories

moving from dvijaha to JuliaWGPU organization

All checks passed. Anything else I should be doing here ? Should I reach out to someone ?

Looks good. Verified that @arhik is the only public member of https://github.com/dvijaha org.


Runtime assert with invalid dependency

Tested with rustc 1.2
Reproducer:
$ cat Cargo.toml
[package]
name = "cargo-error"
version = "0.1.0"

[dependencies.foo]
git = "file:.."
$ cargo run
thread '<main>' panicked at 'assertion failed: index.end <= self.len()', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/slice.rs:547

Looks like this is caused by https://github.com/servo/rust-url/issues/124


apriltag: 3.4.0-1 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository apriltag to 3.4.0-1:

upstream repository: https://github.com/AprilRobotics/apriltag.git
release repository: https://github.com/ros2-gbp/apriltag-release.git
distro file: rolling/distribution.yaml
bloom version: 0.11.2
previous version for package: 3.2.0-6

Rolling is currently in transition to Ubuntu 24.04. The metadata created by bloom is platform specific and will need to be regenerated once the transition has been completed. It will not be necessary for you to tag a new source release, re-running bloom once Rolling has been updated will be sufficient to create a release targeting Rolling on 24.04.


Add output message for invalid inputs.

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

"No, there are no negative Roman Numerals, nor is there a Roman Numeral for zero. " such type of message will be displayed when user gives 0 or -ve no. as input

i would like to work on this issue


ModuleNotFoundError: No module named 'NCFS'

Getting ModuleNotFoundError while using the package.
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [20], in <module>
----> 1 from NCFS import NCFS
      3 X, y = NCFS.toy_dataset()
      4 feature_select = NCFS.NCFS()

ModuleNotFoundError: No module named 'NCFS'

Similar error while running generate_results.py.
Traceback (most recent call last):
  File ".../ncfs/tests/generate_results.py", line 13, in <module>
    from NCFS import NCFS
ModuleNotFoundError: No module named 'NCFS'

The package is already installed using pip.
> python --version
3.9.1
> pip --version
pip 22.0.3 from .../.pyenv/versions/3.9.1/lib/python3.9/site-packages/pip (python 3.9)

Closing as this fixes on my end. Feel free to open again if you are still running into issues.


Perimeter profile

New profile utilisation library containing definition for perimeter profile (referencing MagmaWorks.Geometry therefore separate from rest) along with conversions form known profile types

@tlmnrnhrdt hello world


.Net: Content Filters

We have created a custom GPT called Controlled GPT, that allows end customers to configure the GPT to call external API using C# code (this does not use ChatGPT plugins).  The API response is fed back to Azure Open AI instances for determining an appropriate response using semantic kernel.
However, when Azure Open AI content filtering gets triggered, semantic kernel fails to provide a response.  In the below example while the user asked for the weather and got a response using an external API, but when the user asked for news, and the information was fetched from BBC rss news feed without any issues, it triggered a Content filtering as shown below:
The prompt was filtered due to triggering Azure OpenAI’s content filtering system.
Reason: This prompt contains content flagged as Violence (medium)

The news item that triggered this response was
CCTV appears to show Diddy beating girlfriend in hotel

See below for more full chat interaction but ideally the content filtering should remove the offending content and provide the rest as response, or it should replace that entire line with asterisks and provide the rest of the response.
This is a classic case where neither we (who provide the GPT application) nor my end customer (Microsoft customers) have control over the news provided by BBC or for that matter any news feed since the customers are consuming the data.
While the content filtering is absolutely necessary, the content filter should flag the content and still provide a response as opposed to just giving no response since the functionality of the application using AI might be completely affected due to this abrupt response behavior of the content filtering system.
See Example Question and Instruction below which ended up triggering the Content filtering.
You Are an AI Assistant that follows these Instructions : Based on the user question you will answer the user question using the information presented inside oneshot Learning Data, if the one shot learning data contains information in a different language, go ahead and provide an appropriate answer either in English. If you do not have the information you need, then respond with NOANSWER

User: [User]:
Hello there, What are your capabilities?
[Assistant]:
 Hello! As an AI assistant, I can help with a variety of tasks. Here are some of my capabilities:

1. Answering general knowledge questions: I can provide information on a wide range of topics, from history and science to culture and entertainment.

2. Assisting with tasks: I can help you set reminders, manage your schedule, and perform other administrative tasks.

3. Providing weather forecasts: If you ask about the weather in any city around the world, I can provide a forecast.

4. Delivering news updates: I can fetch the latest top news from the BBC feed.

5. Engaging in conversation: I can chat with you about a variety of topics, maintaining a smooth and interactive conversation flow.

Please note that there are certain topics I won't respond to, including sensitive topics, biased or controversial topics, security and harmful activities, and medical advice.
[User]:
Get me the current weather esp when it will rain in chennai
[Assistant]:
 Based on the provided weather forecast, it is expected to have patchy rain nearby in Chennai at 20:00 on 2024-05-18. The temperature at that time will be around 30.5°C. Please note that weather conditions can change rapidly, so it's always a good idea to check closer to the time.

 |-----[User]----|
 get me the latest news

### One Shot Information Start ###

<---[Assistant]----->
Here is the Latest News From BBC Feed
Israels army says three hostages bodies recovered
More Northern Lights soon as Sun storms strengthen
CCTV appears to show Diddy beating girlfriend in hotel
Regiment cleared 40 years after Falklands ship bombing
Why the BBC could track down a people-smuggling kingpin before the police

### One Shot Information End ###

Hi @hexaeight !
I assume you enabled content filters in Azure AI Studio, is that correct? If that's a case, Semantic Kernel will receive a response with error status code and all available details, and if original data is not included, then it should be extended on Azure side, if that's possible of course.
But if you want more control over this process, for example you want to enable content filtering and still be able to return a response to the user with flag, we have an example how to achieve this with Semantic Kernel Filters and Azure AI Content Safety service:

Code example
Azure AI Content Safety documentation

Prompt render filter will allow to intercept prompt rendering operation and get rendered prompt, which you can check. Function invocation filter will allow to intercept function invocation and get a result, which you can also check for content safety. Your data will be flagged, but you can still return it to the end user.
Let me know if this can cover your scenario. Thanks!

I assume you enabled content filters in Azure AI Studio  - Yes that is correct.
if that's a case, Semantic Kernel will receive a response with error status code - this is what is happening
if original data is not included, then it should be extended on Azure side, if that's possible of course. - what does this mean? extended on azure side?
Right now after the content was flagged it was sent for a review...
But if you want more control over this process, for example you want to enable content filtering and still be able to return a response to the user with flag, we have an example how to achieve this with Semantic Kernel Filters and Azure AI Content Safety service:

Thanks for the above links but my point was Azure Open AI should moderate the flagged content by removing it and provide a response normally (I am seeing this as a feature request) since as a developer who integrates sematic kernel for end customers, I don't want to ask them another endpoint for their moderation service and then intercept their request through my code and give them the response since some of our end customers were not happy (frowned upon us and asked us if we will be intercepting and reading their response between the frontend and the AI)  - so ideally Azure AI should strip the flagged content and give a modified response normally rather than asking developers to add one more layer of processing using content filters.
Either way this is a feature request and my two cents, if this is not possible to accommodate that is fine, I will point my customers to this ticket so that they are aware Azure Open AI does not yet provide a way to strip the flagged content and provide a moderated response.
Thanks once again

what does this mean? extended on azure side?

Apologies for not being clear, I meant this feature should be added on Azure OpenAI side by responsible team. I'm not sure if this repo is a right place for such feature request, but maybe we can reroute it to the right team. @markwallace-microsoft @matthewbolanos do you know what is the process here?
@hexaeight Thanks for reporting this issue!

@hexaeight To get support for this issue follow this procedure:

Go to the Azure Portal.
Find your content safety resource.
Submit a customer ticket.


Providing data to to WebApp upon open

Is is possible to provide arbitrary data to a WebApp that is opened using either an inline button or menu button? Ideally I would like my bot to provide a full list of contacts to my WebApp when it is opened in this way. Alternatively once the WebApp is open is could request a list of contacts from the bot if that is possible.

Yes, it is possible to provide arbitrary data to a WebApp in Telegram, but there are specific ways to do this:

Using Query Parameters: When you create a WebApp object and set its URL, you can include query parameters in the URL that the WebApp can read upon loading. For example, you could serialize your list of contacts into a query string and append it to the URL.
webApp := &telebot.WebApp{
    URL: "https://your-webapp-url.com?contacts=" + url.QueryEscape(serializedContacts),
}

In this case, serializedContacts would be a string that represents your contacts in a URL-friendly format (like JSON, encoded in Base64, etc.).

WebApp to Bot Communication: Once the WebApp is open, it can communicate with the bot to request data. This is typically done using the WebAppData object, which can be sent to the bot when the user performs certain actions in the WebApp. However, this is more of a way for the WebApp to send data back to the bot, not for the bot to send data to the WebApp.

Fetching Data from the Bot: If the WebApp needs to fetch data after it has been opened, you would need to implement an API endpoint in your bot's server that the WebApp can call to retrieve the contacts. The WebApp would make a standard web request to this endpoint, and your bot would respond with the list of contacts.
For security reasons, you should authenticate these requests to ensure that only your WebApp can request sensitive data like contacts.

Answered via getonboardai.com


2 keyboards  on the same system

Hi if I have 2 keyboards how do I set them up?
I can see one keyboard, and the other keyboard also works but I don't see it in the home assistant integration
What do I have to do to see it too?

The HA integration exposes partitions, not keyboards.

Ok thanks
בתאריך יום ה׳, 19 בדצמ׳ 2024 ב-13:57 מאת On Freund @.***

:

The HA integration exposes partitions, not keyboards.
—
Reply to this email directly, view it on GitHub
https://github.com/OnFreund/pyrisco/issues/23#issuecomment-2553549666,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALPOXPLEY4LLXDQH7VQFHCD2GKYCFAVCNFSM6AAAAABLGVBQTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJTGU2DSNRWGY
.
You are receiving this because you authored the thread.Message ID:
@.***>


Ember client ignores timeout

I'm facing some unexpected behavior which might be a bug or might require some documentation if that's what is intended.
When setting timeout to infinite, timeout is ignored and the default timeout (45s) is used instead.
You can reproduce this problem using:
Listen on a port using netcat or something similar:
nc -l 8080

Then run this code snippet:
//> using dep "org.http4s::http4s-ember-client:0.23.19"

import cats.effect._
import org.http4s.syntax.all._
import org.http4s.client.dsl.io._
import org.http4s.Method.GET
import org.http4s.ember.client.EmberClientBuilder
import scala.concurrent.duration._
import fs2.Stream
import fs2.Stream._

object Issue extends IOApp.Simple {
  private val buildClient = EmberClientBuilder
    .default[IO]
    .withTimeout(Duration.Inf)
    .build

  val client = resource(buildClient)
    .flatMap(_.stream(GET(uri"http://localhost:8080")))
    .flatMap(_.body.through(fs2.text.utf8.decode))
    .printlns

  def run: IO[Unit] = client.compile.drain

}

You need to increase all the timeouts. You may be hitting this one.
https://github.com/http4s/http4s/blob/b22f722d23eabd6fc3e5e95c69166b454ee15ca3/ember-client/shared/src/main/scala/org/http4s/ember/client/EmberClientBuilder.scala#L137-L139

Oh, my bad, sorry!
Thank you for the fast response, apparently I need some rest after making such a silly mistake :sweat_smile:

No problem, it's not very obvious at all :)


Warn users that their platform token will not work with databases

Warning is sent to stderr, so things like:

Should work.

From those sentences, which one do you think is the easiest to understand?

authenticate to Turso
authenticate to Turso API
authenticate to Turso platform

I'd rather avoid mentioning the CLI, since we may expose our API directly in the short term.
Also mentioning both API and the platform makes me a bit confused.

Agree with Athos that this token is not just for the CLI, it can be used for direct API access.
Maybe a small rewording:
"... authenticate accesses to Turso's API, including the Turso CLI."
?

If I'm coming to Turso fresh, I wouldn't really know that "Turso's API" refers to the platform API rather than the client library APIs.  They could both easily be referred to as "Turso's API" in casual conversation.
Also I don't think anyone is using the platform API directly at all, right?  So today, for consumers, it really is just the CLI in practice, until we actually document and encourage use of the platform API directly.
If we want to future-proof this, we should probably come up with a formal name for the platform API and start using it consistently.  It could be simply "the Turso platform API".  That would be more distinct from "the Turso database API" that someone might have in mind.

@CodingDoug there are already some people using the API extra-officially, and we want to encourage more.

I think Turso Platform API is okay.

I've reworded the message a bit to mention turso platform API.
Also added info about the token kind in the cmd description, thanks for the suggestion, Doug.


Force quotes on non-expression time grains on Postgres

Due to time grains being rendered as literal columns in sqla/models.py, engine-specific quoting logic is not applied. This causes mixed-case columns to fail on Postgres in timeseries graphs if a time grain is applied. There have been attempts to fix this by forcing quotes in the time grain; however, this caused time grains on expressions to stop working (see #3844 for context). This PR introduces a function in db_engine_specs.py to handle rendering of the expression being passed to the time grain, which for Postgres forces quotes around the column name. This has been tested to work in all scenarios:

expression with time grain
expression without time grain
column with time grain
column without time grain

Fixes #5886
Before:

After:

Codecov Report

Merging #6897 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #6897      +/-   ##
==========================================
+ Coverage   63.84%   63.85%   +<.01%
==========================================
  Files         418      418
  Lines       20444    20449       +5
  Branches     2225     2225
==========================================
+ Hits        13052    13057       +5
  Misses       7262     7262
  Partials      130      130

Impacted Files
Coverage Δ

superset/db_engine_specs.py
54.06% <100%> (+0.24%)
:arrow_up:

superset/connectors/sqla/models.py
81.55% <100%> (+0.03%)
:arrow_up:

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 bd9a2c1...5422063. Read the comment docs.

Unit tests please!

Added test cases for expression, lower_case and MixedCase column names that mimic what's going on in get_timestamp_expression()in sqla/models.py.

@villebro, thanks a lot for sorting this quoting issue out comprehensively

FYI @mistercrunch rebased to resolve conflicts


Update leds_old.md

Highlighted GPIO21

What is the point of this change? leds_old is an obsolete article (new current article is leds). I believe an info bar on this fact should be placed on top of the article, btw.

'leds' is different, it's about how to code led stripe not how to connect it. The connection describes only in 'leds_old'. So my changes concern about how to connect.


have plans to make this lib work on Flutter Windows

I'm currently developing an App Flutter for windows, where I need to send commands to a linux server via SSH, this commands will make the server mount a network share and copy backup files to this share, I'm trying to do this with this SSH lib https://github.com/TerminalStudio/dartssh
I currently have this code:
class SshService {
  final Uri uri;
  final String user;
  final String pass;
  SSHClient client;
  bool isConnected = false;
  StreamController<String> outStream;

  SshService({
    this.uri,//ssh://<IP_ADDRESS>:22
    this.user,
    this.pass,
  });

  Future<dynamic> connnect() {
    var completer = Completer<bool>();
    outStream = StreamController<String>.broadcast();
    try {
      client = SSHClient(
        hostport: uri,//ssh://<IP_ADDRESS>:22
        login: user,
        print: print,
        termWidth: 80,
        termHeight: 25,
        termvar: 'xterm-256color',
        getPassword: () => utf8.encode(pass),
        response: (transport, data) async {
          //print('SshService@response: ${utf8.decode(data)}');
          outStream.add(utf8.decode(data));
        },
        success: () {
          isConnected = true;
          Future.delayed(Duration(seconds: 1)).then((value) => completer.complete());
          print('SshService@success');
        },
        disconnected: () {
          print('SshService@disconnected');
          isConnected = false;
        },
      );
    } catch (e, s) {
      print('SshService@connnect $e $s');
      //completer.complete();
      completer.completeError(e, s);
    }
    return completer.future;
  }

  Future<String> sendCommand(String cmd) async {
    var completer = Completer<String>();
    try {
      client.sendChannelData(utf8.encode(cmd));
      var isEnd = false;
      var result = '';
      outStream.stream.listen((data) {
        //isaque.neves@laravel:/var/www/dart$
        result += data;
        if (data.trim().endsWith('\$')) {
          //print('stream.listen $data');
          if (isEnd == false) {
            isEnd = true;
            completer.complete(result);
          }
        }
      });
    } catch (e, s) {
      print('SshService@sendCommand $e $s');
      completer.completeError(e, s);
    }
    return completer.future;
  }

  void close() {
    client?.disconnect('terminate');
    outStream?.close();
  }
}

but it doesn't seem quite right

This package currently doesn't support desktop operating systems. I haven't used Windows much for quite a while now, but can you use the Linux subsystem to call ssh directly using Process.run?

@insinfo I'd be very interested to see your Flutter package when it's ready. Using libssh directly through FFI is a much better solution that I've looked at some, but haven't had the time to get to yet. Let us know if we can help with development and testing efforts.

@jda258
I just published libssh_binding I haven't had a lot of time to document and write tests, but it's working fine for me in production, I use it for a server backup application called "fsbackup" which I'm also writing will be open source in my internal testing i'm getting the same performance if not better than native scp, i'll be glad to get any help with documentation or improvements.
https://pub.dev/packages/libssh_binding
https://github.com/insinfo/fsbackup


SSLCertVerificationError exceptions with PySNC 1.1.0 and 1.1.1

Hello,
PySNC 1.1.0 and 1.1.1 seem to be causing ssl.SSLCertVerificationError when SSL is being intercepted in an enterprise environment.
Upgrading to Python 3.11 does not help. Locking PySNC to 1.0.7 does resolve the issue.
{"pysnc":"1.1.0","severity":"INFO"}
Traceback (most recent call last):
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/home/gokeefe/.pyenv/versions/3.9.13/lib/python3.9/ssl.py", line 501, in wrap_socket
    return self.sslsocket_class._create(
  File "/home/gokeefe/.pyenv/versions/3.9.13/lib/python3.9/ssl.py", line 1041, in _create
    self.do_handshake()
  File "/home/gokeefe/.pyenv/versions/3.9.13/lib/python3.9/ssl.py", line 1310, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/requests/adapters.py", line 487, in send
    resp = conn.urlopen(
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='gokeefe.service-now.com', port=443): Max retries exceeded with url: /api/now/table/sc_task?sysparm_query=assignment_group%3D117db1491bdd7b408f04caad1e4bcbcd%5EORassignment_group%3Db697561adb1017807037572e5e9619b7%5Eactive%3Dtrue%5EORDERBYopened_at&sysparm_limit=100&sysparm_offset=0&sysparm_display_value=all&sysparm_exclude_reference_link=true&sysparm_suppress_pagination_header=true (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gokeefe/gitlab/devops/devops-automation/automated-reports/servicenow-active-tasks-report/./main.py", line 168, in <module>
    main(start_time)
  File "/home/gokeefe/gitlab/devops/devops-automation/automated-reports/servicenow-active-tasks-report/./main.py", line 123, in main
    gr.query()
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/pysnc/record.py", line 453, in query
    response = self._client.table_api.list(self)
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/pysnc/client.py", line 194, in list
    return self._send(req)
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/pysnc/client.py", line 176, in _send
    r = self.session.send(request, stream=stream)
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/home/gokeefe/.local/share/virtualenvs/servicenow-active-tasks-report-AWneSsyF/lib/python3.9/site-packages/requests/adapters.py", line 518, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='gokeefe.service-now.com', port=443): Max retries exceeded with url: /api/now/table/sc_task?sysparm_query=assignment_group%3D117db1491bdd7b408f04caad1e4bcbcd%5EORassignment_group%3Db697561adb1017807037572e5e9619b7%5Eactive%3Dtrue%5EORDERBYopened_at&sysparm_limit=100&sysparm_offset=0&sysparm_display_value=all&sysparm_exclude_reference_link=true&sysparm_suppress_pagination_header=true (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)')))

hm, has to be a default behavior of a newer requests. I didn't technically change anything there.
@gokeefe are you setting ServiceNowClient(..., verify=False) ?

Hi @vetsin,
It's actually installing the same requests version, 2.29.0, whether I'm using v1.0.7, 1.1.0, or 1.1.1, and I have the $REQUESTS_CA_BUNDLE environment variable set to point the requests module at a certificate bundle that trusts the interception certificate.
I am not setting verify to False, and would prefer not to have to for obvious reasons.

@gokeefe are you setting a proxy? The only change on this between 1.0.7 and 1.1.x is you can toggle verify even if you dont use a proxy...
Can you print(client.session.verify) to see if they are any different between the two versions?

With 1.0.7, client.session.verify returns True.
With 1.1.2, client.session.verify also returns True.
On that note, if I initialize the client with ServiceNowClient(..., verify=path_to_bundle), where path_to_bundle is the full path to a certificate bundle containing the interception certificate, it works fine. Not sure what changed after 1.0.7, but something seems to be causing requests to ignore the $REQUEST_CA_BUNDLE environment variable.

Awesome, thanks @vetsin

@gokeefe can you validate that 1.1.3 fixes your issue?

@vetsin seems to be working, thanks!


Fix AvoidInternalURLs throw warnings at SDDL

Thanks Quoc. I've changed the count to check both 3 and 4.

looks good.

Looks good to me too.

Thanks!


Payu Money payment gateway close for use

Payu Money payment gateway close for use
payu money ka use band karna hai

Only Razor Pay rakhna hai


Add quay.io credentials to github secrets

If we want to build and push the containers to quay.io automatically we will have to add credentials to this repo using secrets:
DOCKER_REGISTRY_PASSWORD and DOCKER_REGISTRY_USERNAME

will solve https://github.com/galaxyproject/training-material/actions/runs/281868100

@bedroesb can we do this? Does it not time out?

the ones that time out are commented out ... :)

cool, can do :+1:

ok, set up the secrets and restarted the jobs, starting to see green check marks, thanks @bedroesb ! :+1:

thats great!


When I click the EON device in Workbench, nothing happens. I've tried uninstalling, etc but console never appears

[ ] Your Workbench.app version is 0.1.5. Please verify you're using the latest Workbench.app version
[ ] I have searched the issues of this repo and believe that this is not a duplicate

Any relevant information from devtools? (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):

Issue

Workbench version: undefined "0.1.5"

OS ARCH VERSION: darwin x64 15.6.0

Electron: 2.0.17  LANG: undefined

SHELL: /bin/bash   TERM: undefined

 ~/.workbench.js contents

          {
  "eonSshKeyPath": "",
  "config": {
    "shell": "/bin/bash"
  },
  "keymaps": {},
  "windowBounds": {
    "width": 800,
    "height": 800
  },
  "clientId": "1d334150-4885-11ea-9de2-75100c47fd88"
}

Found the problem.  Can't use private key in "/.ssh" directory.
Backup .ssh dir, "remove all" keys in EON, reinstall WB

Added pub keys to github, pasted priv keys to openpilot_rsa in .ssh, and added git username to c2,  and workbench shows the EON IP, but when I click on it nothing happens. Before it used to give the error permission denied. OP v0.8.3

Be sure to follow the pinned instructions in the official OP Discord's #installation-help channel.

Have done all of that... and it still does nothing. I have tried to uninstall and deleted the folder from appdata and reinstalled as well. Same network w. <IP_ADDRESS>

Tonight, I happen to meet with the same situation. Later, I found I can however access c2 from another computer, with the ssh keys at the first set.  I haven't check it but it seems to me that workbench reconizes only the first set of ssh keys in my case. May be someone can check it out.


rpm built from source can't be installed on centos 7.4

I build rpm from source
rpmbuild -ta openssl-1.0.2q.tar.gz

get three rpms:

openssl-1.0.2q-1.x86_64.rpm
openssl-devel-1.0.2q-1.x86_64.rpm
openssl-doc-1.0.2q-1.x86_64.rpm

then, I install two:
yum install openssl-1.0.2q-1.x86_64.rpm openssl-devel-1.0.2q-1.x86_64.rpm

failed:
Transaction check error:
  file /usr/lib64/pkgconfig/openssl.pc conflicts between attempted installs of openssl-devel-1:1.0.2q-1.x86_64 and openssl-1:1.0.2q-1.x86_64

I think the possible reason is this:
%files
%defattr(0644,root,root,0755)
%doc CHANGES CHANGES.SSLeay LICENSE NEWS README

%attr(0755,root,root) %{_bindir}/*
%attr(0755,root,root) %{_libdir}/*.so*
%attr(0755,root,root) %{_libdir}/engines/*.so*
%attr(0755,root,root) %{_libdir}/pkgconfig/*
%attr(0755,root,root) %{openssldir}/misc/*
%attr(0644,root,root) %{_mandir}/man[157]/*

%config %attr(0644,root,root) %{openssldir}/openssl.cnf
%dir %attr(0755,root,root) %{openssldir}/certs
%dir %attr(0755,root,root) %{openssldir}/misc
%dir %attr(0750,root,root) %{openssldir}/private

%files devel
%defattr(0644,root,root,0755)
%doc CHANGES CHANGES.SSLeay LICENSE NEWS README

%attr(0644,root,root) %{_libdir}/*.a
%attr(0644,root,root) %{_libdir}/pkgconfig/openssl.pc
%attr(0644,root,root) %{_includedir}/openssl/*
%attr(0644,root,root) %{_mandir}/man[3]/*

both openssl-1.0.2q-1-x86_64.rpm and openssl-devel-1.0.2q-x86_64.rpm contain the file
%{_libdir}/pkgconfig/openssl.pc

This is not an issue for the CentOS maintainers, because rpmbuild -ta openssl-1.0.2q.tar.gz isn't the way that CentOS ever uses to build RPM packages. This is more an OpenSSL upstream issue, because rpmbuild -ta uses actually openssl-1.0.2q/openssl.spec of upstream openssl-1.0.2q.tar.gz. But let me add that this spec file doesn't have a good style as per Fedora/RHEL/CentOS packaging policies.

@mattcaswell, sorry for being contrary, but the 1.0.2 branch still has a spec file.
It's largely unmaintained and should really be thrown away if you ask me.
(this issue shows exactly the reason that it was the right move to abandon all attempts at packaging specs with 1.1.0. It's simply not our job)

I would +1 a PR removing it.

Is that acceptable in a release branch?  If it is, a PR will be coming up.

Since this is 1.0.2 only, and 1.0.2 is in security-fix only mode this won't be fixed.


Timezone, read messages for Xpm X pm and X:XX combinations and reply with popular timezones

@eddiejaoude I'm onto this issue already 🗡
Would it be better if the bot had a !reminder or some action e.g. !reminder Harsh Kapadia's live stream on https://youtube.com/whatevers/?fakelink=123123 @ 15:00 EST then it prods you nearer the time to your LOCAL timezone? 😱

I like that idea too, but I think that is a separate feature. Because not everyone will want the reminder, so each user can set a remind if they wish. The idea I was thinking was just to be part of the conversation, easier to read for everyone.
I really like your idea, but I think a reminder feature would be great 👍

Silly idea, not that constructive ;) but I guess you could have a "DIE HARD LIVESTREAM FAN" role as suggested in #74 `@DieHardLiveStreamFans Get yourself a brew because in 10 mins the show is about to begin!"

I created #81 for the reminder command.
I like that idea @DieHardLiveStreamFans 👍


Fix for error generated when using RandomHorizontalFlip with seed

Added flip.with_counter = True at line 61 of flip.py, which fixes the error which occurs as described in #5 .
This is a very small change-- but added it just in case.

Hi @SreeHarshaNelaturu , thank you for the fix. It's merged now.


BUG: linear-mixed-effects feature names beginning with numeral cause patsy error!

forum xref

fixed by #102