Exception occured while updating the wurst compiler

Latest version of wurst updater
updating compiler that was 2 versions old

Please report this crash with the following info:
Version: <IP_ADDRESS>-jenkins-WurstSetup-65
java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
	at java.awt.EventQueue.invokeAndWait(Unknown Source)
	at java.awt.EventQueue.invokeAndWait(Unknown Source)
	at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
	at global.Log.print(Log.kt:11)
	at global.InstallationManager$handleUpdate$1.invoke(InstallationManager.kt:103)
	at global.InstallationManager$handleUpdate$1.invoke(InstallationManager.kt:21)
	at workers.DownloadWithProgressWorker.done(DownloadWithProgressWorker.kt:56)
	at javax.swing.SwingWorker$5.run(Unknown Source)
	at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
	at sun.swing.AccumulativeRunnable.run(Unknown Source)
	at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
	at javax.swing.Timer.fireActionPerformed(Unknown Source)
	at javax.swing.Timer$DoPostEvent.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

pls try again

Seems to be fixed!


fix(vi.fn): update to set initial implementation through normal logic (fixes #3260)

Fixes: #3260
The issue currently with vi.fn and providing an initial mock implementation (i.e. vi.fn(() => true)) is that the provided implementation does not get set by the enhanceSpy wrapping. This means that while stub is extended to provide the supporting functions that are added by enhanceSpy, the state of implementation is left undefined.
We could go down the path of adding extra parameters and such to enhanceSpy, but if we simply call mockImplementation during vi.fn we can follow the existing logic and have consistent behaviour, allowing the mocked implementation to follow the behaviour we expect.
I've added a test for both the provided implementation and no-implementation cases, as well as updated the other testing / snapshots to reflect this change.
Would love to hear your thoughts or feedback on this :)

Let's rename default fn to spy, so it doesn't change snapshots. Otherwise looks good

Done :)


fixes avatar_url

Fixes the avatar url for discord.py

display_avatar.url does not work on discord.py


oc sync --dev fails when user is a normal authenticated user

Created a none admin user user1
This user can self-provision namespaces but only using oc new-project my-project not oc create ns my-project
The CLI should create a project for the user when using OCP, and create ns when using IKS
csantana@cloudshell:~/app$ oc sync $USERNAME-dev --dev
Setting up namespace user1-dev and serviceAccount default
⠇ Creating namespace: user1-devError preparing namespace { Error: namespaces is forbidden: User "user1" cannot create resource "namespaces" in API group "" at the cluster scope
    at _request (/home/csantana/.npm/lib/node_modules/@ibmgaragecloud/cloud-native-toolkit-cli/node_modules/kubernetes-client/backends/request/client.js:231:25)
    at Request.request [as _callback] (/home/csantana/.npm/lib/node_modules/@ibmgaragecloud/cloud-native-toolkit-cli/node_modules/kubernetes-client/backends/request/client.js:168:14)
    at Request.self.callback (/home/csantana/.npm/lib/node_modules/@ibmgaragecloud/cloud-native-toolkit-cli/node_modules/request/request.js:185:22)
    at Request.emit (events.js:198:13)
    at Request.<anonymous> (/home/csantana/.npm/lib/node_modules/@ibmgaragecloud/cloud-native-toolkit-cli/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:198:13)
    at IncomingMessage.<anonymous> (/home/csantana/.npm/lib/node_modules/@ibmgaragecloud/cloud-native-toolkit-cli/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:286:20)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12) code: 403, statusCode: 403 }

The minimum access a developer user should have for oc pipeline on the project he is admin, is to be able read configmaps, secrets, pipelines, and tasks from the tools namespace.
In addition, should be able to read crds (type)
Here is a script we use for the workshop to setup the toolkit group that developer get added
https://github.com/ibm-garage-cloud/cloud-native-toolkit-workshop/blob/main/scripts/12-ocp-group-toolkit.sh

this is fixed now


Create sample for Management - NetworkInterface

Be sure to include the following operations.
get (withId)
updateNSG

The very (fantastic sample)[https://github.com/Azure-Samples/network-go-manage-network-interface].


Add a sample for googleapis.bigquery.v2.jobs.query and queryParameters use case

Expected Behavior
Could you please add a sample for bigquery request using queryParameters[] and googleapis.bigquery.v2.jobs.query  ?
After many tries, i'm still not able to use a query with a variable named : @table_suffix.
My query is quite simple as we can do using an other client library :
        const sqlQuery = `SELECT * FROM \`project_id.dataset.*\` WHERE _TABLE_SUFFIX = @table_suffix LIMIT 5`;

        const options = {
            query: sqlQuery,
            location: 'EU',
            params: { table_suffix: 'events_intraday_20211202' },
        };

if i follow the snippet i should use "queryParameters" parameters but if i check the documentation of the object "QueryRequest" i should use queryParameters[]
https://cloud.google.com/workflows/docs/reference/googleapis/bigquery/v2/jobs/query#subworkflow_snippet
https://cloud.google.com/workflows/docs/reference/googleapis/bigquery/v2/Overview#queryrequest
I try this
- init:
    assign:
    - table_suffix: "events_intraday_20211202"
    - project_id: ${sys.get_env("GOOGLE_CLOUD_PROJECT_ID")}
    - query: "SELECT * FROM `project_id.dataset.*` WHERE _TABLE_SUFFIX = @table_suffix LIMIT 5"

- query:
    call: googleapis.bigquery.v2.jobs.query
    args:
        projectId: ${project_id}
        body:
            query: ${query}
            useLegacySql: false
            queryParameters[]:
                name: "table_suffix"
                parameterType:
                    type: "string"
                parameterValue:
                    value: "events_intraday_20211202"
    result: queryResult
- documentFound:
    return: ${queryResult}

I will appreciate your help.

Finally, found it.
Could probably help others with same question.
- query:
    call: googleapis.bigquery.v2.jobs.query
    args:
        projectId: ${project_id}
        body:
            query: ${query}
            useLegacySql: false
            queryParameters:
                -
                    name: "table_suffix"
                    parameterType:
                        type: "STRING"
                    parameterValue:
                        value: "events_intraday_20211202"
    result: queryResult


Add support to compile with dotty

Enables support to compile with dotty (thx @liufengyun for the tip)
@julienrf WDYT?

I'm about to completely rewrite sbt-dotty to make cross-compilation much easier, so I wouldn't merge this now.

Sure, NP! @julienrf feel free to close it and if you would agree we can make a note with this workaround somewhere, for anyone wanting to play with dotty & strawman until the sbt-dotty update!
Thx @smarter

Thanks @biboudis.
I suggest to wait for @smarter’s changes.

Also, the CI does not know how to resolve dotty. I guess we will have to upgrade the environment in which travis-ci runs. Unless there are some public releases of dotty (@smarter?).

I guess we will have to upgrade the environment in which travis-ci runs

can't we just add a resolver in build.sbt?

Dotty nightlies are published to maven central: https://repo1.maven.org/maven2/ch/epfl/lamp/dotty_2.11/

Will turn green after #59 gets merged!
Cheers!


Allow custom window icons in Lwjgl3

This is an alternate to #4177. I fixed some bugs it had, simplified usage, and added the ability to set icons in the window configuration, so different windows can have different icons.

Don't know why the PR Check fails.

I've messed up my PR with incorrect rebasing. Will fix tomorrow.

Added setTitle and setIcon methods to Lwjgl3Window. Also fixed a GLFW window size limits bug with a work-around, since I was in the area.

I mangled my fork and had to fix it, sorry. See #4261 instead.


[Template] Add more information in sample.env about what resource is needed and where to get the values

Packages impacted by this PR
sdk/template/template
Issues associated with this PR

https://github.com/Azure/azure-sdk-for-js/issues/20439

Describe the problem that is addressed by this PR
While working on Migrate Template project to use CoreV2 #19748, I noticed that the sample.env file does not provide information on what resource to create in order to run the recordings, tests, and samples.
This PR adds more comments on the sample.env file to specify that an App Configuration resource is needed and other env variables too.
Checklists

[X] Added impacted package name to the issue description
[X] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[X] Added a changelog (if necessary)

This commit adds more comments on the sample.env file to specify that an App Configuration resource is needed and other env variables too.


some question

Hi, thanks for your sharing!
I am confused about this code
EP_HS[-(EP_HL+1)] = list(state)
the latest state is not placed at the end of the queue. is different from buffer?
Thank you. Regards!

Have you successfully reproduced the project? I encountered a problem when calling the test environment in GAZEBO. Can you give me some advice?


A series of Public swagger update (modification)

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-js

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

Automation for azure-sdk-for-go

Automation for azure-sdk-for-java

Can one of the admins verify this patch?

@Yiliu-microsoft Please make sure to fix all checks as well

Automation for azure-sdk-for-net
A PR has been created for you:
https://github.com/azure/azure-sdk-for-net/pull/6429
.NET SDK Commits:
https://github.com/adxsdknet/azure-sdk-for-net/pull/6429/commits/0d8ebe7c0f2c3fa3ce0672be21080b30e737c3a0

@shahabhijeet All these changes are again to support oneOf scenario. The reason we are changing types to object is so our customers can parametrize those properties. Our UI and backend already allow this, only SDK-s are pending.

@shahabhijeet and @KrisBash Could you please help get this PR in? It contains a lot of features that our customers are waiting for and we need to release our SDKs.

@KrisBash This is the PR that we need merged. Can you please finish reviewing this one? I will follow up with Yi to close any others, if they are irrelevant.

FYI, you can add bzip to https://github.com/Azure/azure-rest-api-specs/blob/master/custom-words.txt if you want the spellcheck to pass. The other issue it was flagging in a different PR was fixed in master

@Yiliu-microsoft  Can you please follow up on Nick's suggestion and add bzip to the file he mentioned in this PR? Let's get our build clean.

@KrisBash @shahabhijeet  We need to release this new SDK with Powershell release that is going out on 6/18.
Can you please help as we have a lot of customers waiting for the features in this PR?


Transfer to the SimPEG organization.

This should allow us to collaborate on things.
@jcapriot @sgkang @bsmithyman

!

FIN.

This was aborted due to complications with travis. I will leave it here for now.


Assertion Error when using fetchAllMembers = true

Please describe the problem you are having in as much detail as possible:
Error resulting from using the client option fetchAllMembers: true
 AssertionError [ERR_ASSERTION]: An invalid error message key was used: Members didn't arrive in time..
     at message (/home/pedall-dev/g4m3r/node_modules/komada/node_modules/discord.js/src/errors/DJSError.js:40:3)
     at DiscordjsError (/home/pedall-dev/g4m3r/node_modules/komada/node_modules/discord.js/src/errors/DJSError.js:16:13)
    at client.setTimeout (/home/pedall-dev/g4m3r/node_modules/komada/node_modules/discord.js/src/structures/Guild.js:533:16)
     at Timeout.setTimeout [as _onTimeout] (/home/pedall-dev/g4m3r/node_modules/komada/node_modules/discord.js/src/client/Client.js:450:7)
     at ontimeout (timers.js:488:11)
     at tryOnTimeout (timers.js:323:5)
     at Timer.listOnTimeout (timers.js:283:5)

Include a reproducible code sample here, if possible:

Further details:

discord.js version: master v12.0.0-dev
node.js version: 8.1.0
Operating system: Ubuntu 16.04 (and Mac OS Sierra and High Sierra PB)
Priority this issue should have – please be realistic and elaborate if possible:
should be high priority since thats a common option to be used and it makes the bots crash / restart
[ ] I found this issue while running code on a user account

[x] I have also tested the issue on latest master, commit hash:

This error is fixed in my data store PR, I'll add it into master also.

Thank you a lot. Can you tell when it’s in master so I can test if it’s gone? ;)

Is there any chance you could give an estimation when this will be merged into the master branch?
Or is there a specific commit hash I could use in the meantime so that error does not make my bot restart 500 times a day :laughing:

it will be fixed when #1695 is merged

i gave it another try, since #1695 is merged into master now.
this is the latest error im getting:
[07:10:02] - error: [C 0] Uncaught Exception:
 TypeError: Cannot match against 'undefined' or 'null'.
    at Guild.fetchMembers (C:\Coding\g4m3r\node_modules\komada\node_modules\discord.js\src\structures\Guild.js:508:15)
    at promises.client.guilds.map.g (C:\Coding\g4m3r\node_modules\komada\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:141:54)
    at Map.map (C:\Coding\g4m3r\node_modules\komada\node_modules\discord.js\src\util\Collection.js:300:47)
    at WebSocketConnection.checkIfReady (C:\Coding\g4m3r\node_modules\komada\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:141:43)
    at GuildCreateHandler.handle (C:\Coding\g4m3r\node_modules\komada\node_modules\discord.js\src\client\websocket\packets\handlers\GuildCreate.js:13:31)
    at WebSocketPacketManager.handle (C:\Coding\g4m3r\node_modules\komada\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:102:65)
    at WebSocketConnection.onPacket (C:\Coding\g4m3r\node_modules\komada\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:331:35)
    at WebSocketConnection.onMessage (C:\Coding\g4m3r\node_modules\komada\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:293:22)
    at WebSocket.onMessage (C:\Coding\g4m3r\node_modules\komada\node_modules\ws\lib\EventTarget.js:101:16)
    at emitOne (events.js:115:13)
    at WebSocket.emit (events.js:210:7)
    at Receiver._receiver.onmessage (C:\Coding\g4m3r\node_modules\komada\node_modules\ws\lib\WebSocket.js:146:47)
    at Receiver.dataMessage (C:\Coding\g4m3r\node_modules\komada\node_modules\ws\lib\Receiver.js:380:14)
    at Receiver.getData (C:\Coding\g4m3r\node_modules\komada\node_modules\ws\lib\Receiver.js:330:12)
    at Receiver.startLoop (C:\Coding\g4m3r\node_modules\komada\node_modules\ws\lib\Receiver.js:165:16)
    at Receiver.add (C:\Coding\g4m3r\node_modules\komada\node_modules\ws\lib\Receiver.js:139:10)
    at TLSSocket._ultron.on (C:\Coding\g4m3r\node_modules\komada\node_modules\ws\lib\WebSocket.js:142:22)
    at emitOne (events.js:115:13)
    at TLSSocket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:252:12)
    at readableAddChunk (_stream_readable.js:239:11)
    at TLSSocket.Readable.push (_stream_readable.js:197:10)
    at TLSWrap.onread (net.js:589:20)

@pedall fixed

ill retest it later, thanx so much for the fast reaction :-)

works now.


socket/communicate: restart Unix socket when the deserialize fails

        // XXX: “If this returns an Error, `reader` may be in an invalid state”.
        // what the heck does that mean.
        bincode::deserialize_from(timeout_socket).map_err(|e| {

https://github.com/target/lorri/pull/81#discussion_r295205662

I think that means the socket is tainted and should be restarted, since a read may resume in a weird spot in the data stream.

This should be easy to solve.

Since we switched to varlink, this is not relevant anymore.


Missing inner resize of Hyper-V Machine connected via VMConnect.exe in enhanced mode

Environment
Windows build number: Version 10.0.18363.900
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce
You need a Hyper-V Machine running Windows 10 (same build number as mentioned above) and connect via VMConnect in enhanced mode.
Expected behavior
FancyZones should resize the resolution of the guest operationg system (as it would to, when manually resizing the VMConnect window). May be there is an event missing, that must be send to the target window?
Actual behavior
When resizing the window via PowerToys Fancy Zones the guest is not resized properly (the VMConnect window itself will be resized). Manual resize of the VMConnect window resizes the gust operating system properly.
Video

Hi @Huseriato
thank you for reporting the issue, this may be something depending on the way the VMConnect window processes the resize event. We will have to investigate if FZ can somehow trigger the internal resize of the window.

@Huseriato
is this still happening with 0.23? https://github.com/microsoft/PowerToys/releases/download/v0.23.0/PowerToysSetup-0.23.0-x64.exe

I will test this in monday and report you the current behaviour.

This is also still happening. I tested both bugs reported by me in the same go.

@enricogior, would like it if we could prioritize this for either .27 or .29.  Going to assign to .29

@crutkas
we may try to send a window resize event to the application to force it to redraw itself.

Different issue, but the root cause may be the same https://github.com/microsoft/PowerToys/issues/5673

Different issue, but the root cause may be the same https://github.com/microsoft/PowerToys/issues/5673

I have tried several workarounds but none worked.
We might not be able to fix it. I also noticed that Windows Snap is also not working, it doesn't even move the window.
@crutkas
can you escalate this to the Hyper-V team?

I have tried several workarounds but none worked.
We might not be able to fix it. I also noticed that Windows Snap is also not working, it doesn't even move the window.
@crutkas
can you escalate this to the Hyper-V team?

I'm wondering about this. GridMove  can handle this correctly. It's a project that's not maintained for several years and has none of this resizing issues. May be you can find the magic there?

I'm wondering about this. GridMove  can handle this correctly. It's a project that's not maintained for several years and has none of this resizing issues. May be you can find the magic there?

@Huseriato
did you get GridMove to work for you? I tried it and it works for regular windows, but it didn't move the VM for me.
I also tried to use the same API used by AUtoHotkey to resize a window, and it resized the external frame but not the content.

@Huseriato
did you get GridMove to work for you? I tried it and it works for regular windows, but it didn't move the VM for me.
I also tried to use the same API used by AUtoHotkey to resize a window, and it resized the external frame but not the content.

@crutkas
this is not something we can fix, can you escalate it to the Hyper-V team?

@crutkas
this is not something we can fix, can you escalate it to the Hyper-V team?

@enricogior reached out to one person with you on the CC

@enricogior reached out to one person with you on the CC

Added to https://github.com/microsoft/PowerToys/wiki/Application-Compatibility


[Support] API-availability-tests: Don't assert for >0 successes.

What
It's enough for this to assert that no failures occurred.
By asserting for >0 successes, it means that this job can't be
re-triggered in the event of a failure to unblock the pipeline as the
cf-deploy job won't be running, and the re-run of this will therefore
make 0 requests.
How to review
Code review. Verify that my rationale makes sense.
Who can review
Not me.

Instead of removing the assertion should we make sure that at least we run the tests for a minimum amount of time or request number? I feel that would be safer.

If I understand this change correctly .... this would mean that re-triggering this job will always cause it to pass, so long as the cf-deploy job completed successfully.
Andras' idea about ensuring a minimum number of requests have occurred before monitor.Stop() gets called sounds like a good move.

Fair enough, I'm going to close this for now, as other options are more work and should probably be covered by a story.


OpenSprites is not working correctly

This is due to a DDOS attack on Namecheap's DNS servers.
This is an issue outside of our control and no changes should be made to code to rectify it.

Um... isn't it?

It seems to be working fine (just a bit on the slow side)

The issue should now be resolved, but may return without warning.


Issue #102: Replace hardcoded value

Replaced a hardcoded number with a call to the config file.
Description

Replaced a magic number in server/store/requests.js with a call to server/config/index.js
Related Issue

Issue
Motivation and Context

Placing constants in a config file makes the code more maintainable, and easier to refactor.
How Has This Been Tested?

The changes pass the tests, and do not break the server. When the ttl was printed to the console,
it matched the expected result of 43200.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Hi @Peachball,
Thank you for taking the time to contribute to open source :octocat:
Your code looks great. One comment though, there is another instance of that hardcoded value further down in the same file on line 30 (https://github.com/Peachball/missioncontrol/blob/386bd63f8d21fde74018815d410179758f5241cf/server/store/requests.js#L30). Can you replace that one as well?
👍

One more thing
require('../config/index.js'); can actually be shortened to require('../config');
Node.js assumes index.js automatically.

I've changed the require and the other hardcoded value.

Thank you so much @Peachball
And congratulations on joining the world of open source 🍾
Please join us in our gitter channel where we discuss DAV, and more opportunities to get involved with open source :octocat:


Export letsencrypt certificates

Hello,
Can you add a link to download each certificate generated by letsencrypt? It's usefull to put it in adguard for exemple DNS-over-TLS.
privkey.pem  : the private key for your certificate.
fullchain.pem: the certificate file used in most server software.
Thes files are located in letsencrypt/live/npm-XX/
Thank you in advance.

I would also like to be able to link to the cert folder based on the site name. Its useful for npm to handle renewal for certs for services other than web.
I can see where the numbered folders map to but having site name folders would ease configuration. Also concerned numbering may change, breaking cert paths.

Same here.
I use NPM on my Synology. I need to import the generate certificate for use it with Drive Client (desktop app).
The Drive App is not using a web protocol.

First of all great project, really top-notch!
This feature would be helpful, as I'm using wildcard certs which I wish I could export from the UI.

If you have many sites and many ssl certs, it's difficult to discern which npm-[0-9]* folder contains the certificates you want.
I iterate through the nom folders and run openssl x509 -noout -subject -in cert.pem but it's sub-optimal.

Duplicate of https://github.com/jc21/nginx-proxy-manager/issues/404

+1, would love this too ! ;)
Thank you ^^

I solved this with a python script to copy out the certs to named folders. Not very well tested.
import sqlite3
import os
import glob
npmdir='/data/stacks/proxy/data'
certsdir='/data/ssl_certs/archive'
reldir='../archive'
files=['cert','chain','fullchain','privkey']
if not os.geteuid()==0:
sys.exit('This script must be run as root!')
con = sqlite3.connect(npmdir+'/database.sqlite')
cur = con.cursor()
for row in cur.execute('SELECT id,domain_names FROM certificate'):
certiddir='npm-'+str(row[0])
src=certsdir+'/'+certiddir
domainlist = list(row[1].replace('','_').strip('"[]').split(','))
recent = str(len(glob.glob(certsdir+'/'+certiddir+'/cert.pem')))
for domain in domainlist:
dst='/data/ssl_certs/live/'+domain
os.mkdir(dst)
for file in files:
srcfile=str(src+'/'+file+recent+'.pem')
dstfile=str(dst+'/'+file+'.pem')
print(srcfile, dstfile)
os.link(srcfile, dstfile)

Can you advice, how i can register a certificate without gui to Nginx Proxy manager?
My DNS provider does not support DNS challenge for NPM, but there is a script what can get me the certificate.
If I could save it in the NPM folder somewhere and NPM web gui would recognize it it would be awesome.

I would also like to see this. I need to copy the SSL certificates over to mailcows SSL folder.
A better cert folder naming would be useful for building a script that does what I need.

Hi all,
here a small script for retrieving latest Fullchain and Privatekey from NPM.
Usefull for example for Adguardhome certificates renewal:
#!/bin/bash

# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
LIGHTGRAY='\033[0;37m'
DARKGRAY='\033[1;30m'
LIGHTRED='\033[1;31m'
LIGHTGREEN='\033[1;32m'
YELLOW='\033[1;33m'
LIGHTBLUE='\033[1;34m'
LIGHTPURPLE='\033[1;35m'
LIGHTCYAN='\033[1;36m'
WHITE='\033[1;37m'

echo -e "${YELLOW}\n
1       abc.xyz
5       a.abc.xyz
6       b.abc.xyz
7       c.abc.xyz
8       d.abc.xyz
9       e.abc.xyz
10      f.abc.xyz
11      g.abc.xyz
12      h.abc.xyz
13      i.abc.xyz
14      j.abc.xyz
18      k.abc.xyz
19      l.abc.xyz
20      m.abc.xyz
22      n.abc.xyz
23      o.abc.xyz
30      p.abc.xyz
31      q.abc.xyz
32      r.abc.xyz
33      s.abc.xyz
34      t.abc.xyz
35      u.abc.xyz
36      v.abc.xyz
37      w.abc.xyz
38      x.abc.xyz
39      y.abc.xyz
49      z.abc.xyz\n\n${NOCOLOR}"

# Ask the user for thecert number
echo certificat number ?
read varname
echo -e "${BLUE} FULLCHAIN:\n\n"
cat "$(ls -rt /etc/letsencrypt/archive/npm-$varname/fullchain* | tail -n1)"
echo -e "${NOCOLOR}\n\n "
echo -e "\n ${GREEN} PRIVATE:\n\n"
cat "$(ls -rt /etc/letsencrypt/archive/npm-$varname/privkey* | tail -n1)"
echo -e "${NOCOLOR}\n\n "

certificates numbers found in /data/database.sqlite
hope this can be useful

@Balya Thanks for your suggestion!
I run Prosody as a chat server (not on the NGINX Proxy Manager machine) and also need to transfer the certs to Prosody. I found the numbering scheme you use above not reliable, especially when making NPM configuration changes. So I opted for actually reading the relevant parts of NPM’s .conf files. (Excuse my bad Python…)
#!/usr/bin/python3
import re
import os
from pathlib import Path
from paramiko import SSHClient
from scp import SCPClient
from paramiko import AutoAddPolicy, RSAKey, SSHClient

proxy_hosts_dir = '/home/admin/npm/data/nginx/proxy_host'
archive_dir = '/home/admin/npm/letsencrypt/live'
target_host = 'chat.mydomain.net'
host_file = ''

for filename in os.listdir(proxy_hosts_dir):
    file = os.path.join(proxy_hosts_dir, filename)
    if os.path.isfile(file) and filename.endswith('.conf'):
        with open(file) as f:
            content = f.read();
            m = re.search(r'server_name\s+(.*);', content)
            if m:
              s = m.group(1).split()
              basename = ('_').join(s).replace("*", "x")
              if target_host in s:
                f = re.search(r'ssl_certificate\s+/etc/letsencrypt/live(.*);', content)
                if f:
                  fullchain = archive_dir + f.group(1)
                p = re.search(r'ssl_certificate_key\s+/etc/letsencrypt/live(.*);', content)
                if p:
                  privkey = archive_dir + p.group(1)

client = SSHClient()
client.load_system_host_keys()
client.set_missing_host_key_policy(AutoAddPolicy())
client.connect('prosody', username='myusername')
sftp = client.open_sftp()
sftp.put(fullchain, '/home/myusername/certs/' + target_host + '.fullchain.pem')
sftp.put(privkey, '/home/myusername/certs/' + target_host + '.privkey.pem')
sftp.close()

This script I run via root’s crontab on the NPM machine every night at 3:00 a.m. like so:
0 3 * * * /home/admin/bin/ssl-chat.py

And on the Prosody machine, since it can’t reload correctly, at 3:10 a.m., also via root’s crontab:
10 3 * * * prosodyctl --root cert import chat.mydomain.net /home/myusername/certs/

Works well so far. Maybe this can help others, too.

If i use your script and edit the paths and username etc. i get this Error:
Traceback (most recent call last):
File "/root/./turn-ssl.sh", line 36, in
sftp.put(fullchain, '/opt/coturn/cert/' + target_host + '.fullchain.pem')
NameError: name 'fullchain' is not defined
No idea, how i can solve it

I tried to write a sample script to export certificates from Nginx Proxy Manager for use with mailcow mail server. You can adapt it to use with any application. https://github.com/LazyGatto/npm-cert-export

This is my take on it; one VM with NPM container (<IP_ADDRESS>)- another VM with a ZNC bouncer from where the bash script is run in a cron job from the root user, every 90 days. First execution is on the 25th of September 2023.
If you go to SSL Certificates in NPM, you can see which #number the certificate it is listed as (/home/yoyo/podman/npm/letsencrypt/live/npm-13) when you download it manually.
Cron:
crontab -e 0 0 25 9 */90 /root/fullchain_download.sh
I am running the ZNC bouncer as a regular user (wwhite) as a systems service (systemctl --user start container-znc.service) and I had some issues writing the files in to the shared directory with podman from that user. Therefore I opted to copy the root user's public key in to .ssh/authorized_keys on the yoyo user running NPM on the other machine.
#!/bin/bash

# Server details
SERVER_IP="<IP_ADDRESS>"
SSH_USER="yoyo"
REMOTE_DIR="/home/yoyo/podman/npm/letsencrypt/live/npm-13"

# Local directory
LOCAL_TMP="/home/wwhite/tmp"
LOCAL_ZNC="/home/wwhite/podman/znc"

# List of file names to download
FULLCHAIN="fullchain.pem"
PRIVKEY="privkey.pem"
FILES=("$FULLCHAIN" "$PRIVKEY")

echo "Attempting to connect to $SERVER_IP"

for FILE in "${FILES[@]}"; do
    scp "$SSH_USER@$SERVER_IP:$REMOTE_DIR/$FILE" "$LOCAL_TMP/"
    echo "$FILE downloaded to $LOCAL_TMP"
done

echo "Combining keys"
cat "$LOCAL_TMP/$PRIVKEY" > "$LOCAL_TMP/znc.pem"
cat "$LOCAL_TMP/$FULLCHAIN" >> "$LOCAL_TMP/znc.pem"

echo "Privkey and fullchain is combined to znc.pem"

mv "$LOCAL_TMP/znc.pem" "$LOCAL_ZNC"

echo "The combined znc.pem is moved in to the appropriate directory"

# Clean up process

rm $LOCAL_TMP/$FULLCHAIN
echo "Removed the temporary $FULLCHAIN"

rm $LOCAL_TMP/$PRIVKEY
echo "Removed the temporary $PRIVKEY"

chmod 0600 $LOCAL_ZNC/znc.pem
echo "Permission 0600 znc.pem"


🎉 feat: Improve the site

Various improvements to the site
Each commit expalins their purpose, I didn't want to make separate PRs for everything.
I already have enough PRs open 😅

Nice @BlankParticle, thank you!
I just removed the images from your PRs because it does not follow the design.
Additionally, I also removed the switch color mode to only use the user preference, it allows us to simplify the code and to dynamically load themed code highlight


feat(cli): add db get subcommand

Add db get subcommand to get info of a specific table.
This is a draft, so i would like to have some other guidance on how to use seek_exact, considered that it should be also used as method for db list, as specified in #612
Fixes #1023

lmk if you're gonna take this on in the next days, else would like to complete/close

Sorry I can't, currently OOO, have no access to my workstation.

sounds good - closing for now to clean things up and we'll take over or we can revisit hwen ur back


issues/339: Send Allow http header when we respond with http 405 status code.

This is mandated by the spec

Fixes: https://github.com/komuw/ong/issues/339

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.02% :tada:

Comparison is base (c20db72) 74.96% compared to head (585d136) 74.98%.

:exclamation: Current head 585d136 differs from pull request most recent head ede9964. Consider uploading reports for the commit ede9964 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #345      +/-   ##
==========================================
+ Coverage   74.96%   74.98%   +0.02%
==========================================
  Files          44       44
  Lines        4965     4970       +5
==========================================
+ Hits         3722     3727       +5
  Misses        995      995
  Partials      248      248

Files Changed
Coverage Δ

middleware/middleware.go
99.11% <100.00%> (+0.01%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Feature Request: run different cell code languages in the same Notebook

It's something you are working on it? For example, It would be really usefull to be able to run in the same notebook SQL and Powershell code...
Thank!

We're tracking this with #9580. Have heard this feedback from multiple avenues, so it's something that we'll be pursuing!

We're tracking this with #9580. Have heard this feedback from multiple avenues, so it's something that we'll be pursuing!


Breaking: Upgrade autosize plugin to version 3.

The child of #1725 and #1739.

@vogdb I guess you didn't want to close this?

Oops. I didn't. Thanks for reminding.

@vogdb please merge upstream

Closing in favor of Closing in favor of https://github.com/cargomedia/cm/pull/1890


is it possible to set DataChannel bandwidth up/down limit?

I Found a wiki of how to set bandwidth on audio and video stream
But is it also possible to set it for the DataChannel as well and control upload/download speed?
i tried adding b=AS after a a=mid:data but it's still sending me data faster then what i'm able to handle

Can this https://github.com/muaz-khan/RTCMultiConnection/wiki/Bandwidth-Management help you?

@jimmywarting I don't think SCTP spec has this option.
b=AS or x-google-min-bitrate= seems applies only to RTP streams/packets. (a=fmtp:VP9)


vue-resource

Opening the discussion on this.
We are aiming for something that will be sugar for REST apis, and not necessarily different transport adaptors, REST / Socket / localStorage / Firebase etc
Roadmap states if something solid exists, use instead or build on top of. Are there any solid examples out there?

What's the current status and what about https://github.com/pagekit/pagekit/tree/develop/vendor/assets/vue-resource?

@bart there's no official implementation at the moment. We might move pagekit's implementation here in the future.

Kk, so I will standing by. Thanks so far!

@bart vue-resource 0.1.0 is now available.

:+1:

Wow, that was fast. Thanks a lot @steffans


entrypoint missing from schema

According to the merge logic, there should be an entrypoint parameter.
However, the entrypoint parameter is missing from the base schema

The entrypoint property is only valid for Features, hence, you can find it here.

From ^, looks like there was a confusions as there is no ✔ for the entrypoint row under devcontainer.json. Hence, it does not exist for devcontainer.json
Feel free to reopen if you have any other doubts.
// cc @bamurtaugh I wonder if we should update the website with a note on ✓ and how to read the table.


To review: populate image_list_updates with default values when it is empty

Explore whether it is necessary to include image_list_updates=[{"zarr_url": "/some/path"}], when editing an existing image, or whether this could be the default in case no image_list_updates is provided.

Some edge cases I spotted as part of #1435

If the task returned no image_list_updates but it does return some image_list_removals, then we should not proceed as described in the current issue (otherwise we would likely hit the problem of being simultaneously updating and deleting the same images).
If the task returned no images, then we use filtered_images instead of task_output.image_list_updates. Some of these images may have an origin set, which is obviously different from their zarr_url. If a task actually produced such a task_output.image_list_updates, this would be raised as an error (because modifying an image and setting a non-trivial origin for it is not allowed). But if we are in the scenario described in this current issue, this check should be skipped.

For 2, discussion we just had: If we just provide the zarr_urls (instead of the full image objects), we avoid this issue.


fix(f3): Change the F3 HeadLookback parameter to 4

Summary of changes

This PR ports https://github.com/filecoin-project/lotus/pull/12648/files to Forest
Changes introduced in this pull request:

Reference issue to close (if applicable)

Closes #4944
Other information and links

Change checklist

[x] I have performed a self-review of my own code,
[x] I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
[x] I have added tests that prove my fix is effective or that my feature works (if possible),
[x] I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

What does this param do?

That will significantly reduce the chance that F3 causes EC to fork. https://github.com/filecoin-project/go-f3/issues/716


How can i filter this data please help me

Please answer these questions before submitting your issue.

Why do you submit this issue?
[x] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?
How do I filter data like "Mysql/JDBI/Statement/executeQuery" as shown：

Bug

Which version of SkyWalking, OS and JRE?
SkyWalking 6.6.0
jre 8

Which company or project?

What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.

Requirement or improvement

Please describe about your requirements or improvement suggestions.

I enabled custom trace ignore and added the following configuration according to the optional plugin documentation
trace.ignore_path=Mysql/JDBI/Statement/executeQuery
But nothing works

Sorry, i added apm-trace-ignore-plugin.config and it's ok


System.Data.SqlClient.SqlException: Invalid object name 'ApiClaims'

Hi,
I cannot seem to view my well known config page and when I look at the logs, I get the ff:
System.Data.SqlClient.SqlException: Invalid object name 'ApiClaims'
017-05-25 12:55:22.891 +01:00 [Fatal] Unhandled exception: "System.Data.SqlClient.SqlException: Invalid object name 'ApiClaims'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)    at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)    at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()    at System.Data.SqlClient.SqlDataReader.get_MetaData()    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)    at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, String executeMethod, IReadOnlyDictionary2 parameterValues, Boolean closeConnection)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteReader(IRelationalConnection connection, IReadOnlyDictionary2 parameterValues)    at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable.Enumerator.BufferlessMoveNext(Boolean buffer)    at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](Func2 operation, Func2 verifySucceeded, TState state)    at Microsoft.EntityFrameworkCore.Query.Internal.IncludeCollectionIterator.<GetRelatedValues>d__4.MoveNext()    at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()    at System.Collections.Generic.List1..ctor(IEnumerable1 collection)    at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryBuffer.Include(QueryContext queryContext, Object entity, IReadOnlyList1 navigationPath, IReadOnlyList1 relatedEntitiesLoaders, Int32 currentNavigationIndex, Boolean queryStateManager)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryBuffer.Include(QueryContext queryContext, Object entity, IReadOnlyList1 navigationPath, IReadOnlyList1 relatedEntitiesLoaders, Boolean queryStateManager)
at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_Include>d__301.MoveNext()    at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_Include>d__301.MoveNext()
at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_Include>d__301.MoveNext()    at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__152.MoveNext()
at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.MoveNext()    at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source, Int32& length)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source)    at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at IdentityServer4.EntityFramework.Stores.ResourceStore.GetAllResources()
at IdentityServer4.Stores.IResourceStoreExtensions.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at IdentityServer4.Endpoints.DiscoveryEndpoint.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at IdentityServer4.Hosting.IdentityServerMiddleware.d__3.MoveNext()
ClientConnectionId:ddd7858d-2a7e-438f-801c-08176d0d9aac
Error Number:208,State:1,Class:16"
Not sure where this is coming from.
Please find attached my project if you can tell me where I have gone wrong
IdentityServer.zip

Does the EF quickstart sample work for you?

Hi,
I am using .net core 1.1.0 on vs2015 so I can't load the quick start
project due to config issues. I decided to recreate it however had problems
with creating the operational n configuration context. I chose to implement
the way I did which was a pain :( .... eventually it worked but then
noticed I couldn't view the well known config page. I checked the logs and
shared with you.
On Thu, 25 May 2017 at 14:05, Brock Allen<EMAIL_ADDRESS>wrote:

Does the EF quickstart sample work for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IdentityServer/IdentityServer4.Samples/issues/169#issuecomment-304005351,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM3RAf06e2u1PDWdq9w7jrXCb8opCoD1ks5r9XyigaJpZM4NmUt4
.

Ok, VS2015 is not a supported environment from Microsoft and thus we can't support you trying to use that environment either. So, sorry -- not really sure what the issue is then. If you ever can show a problem in the working sample code, then we can look into it.

I did attach my project!!! Did you not get it?
On Thu, 25 May 2017 at 14:29, Brock Allen<EMAIL_ADDRESS>wrote:

Ok, VS2015 is not a supported environment from Microsoft and thus we can't
support you trying to use that environment either. So, sorry -- not really
sure what the issue is then. If you ever can show a problem in the working
sample code, then we can look into it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IdentityServer/IdentityServer4.Samples/issues/169#issuecomment-304010110,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM3RATCp02o77UoVe3m6OsU_3Pog-udEks5r9YIfgaJpZM4NmUt4
.

Sorry, I won't be debugging your code. You will have to figure it out, and I suggested starting with our working sample and comparing what's different to your solution. If you need commercial support, you can contact us here: identityserver.io/

Sure thing no problem
On Thu, 25 May 2017 at 14:36, Brock Allen<EMAIL_ADDRESS>wrote:

Sorry, I won't be debugging your code. You will have to figure it out, and
I suggested starting with our working sample and comparing what's different
to your solution. If you need commercial support, you can contact us here:
identityserver.io/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IdentityServer/IdentityServer4.Samples/issues/169#issuecomment-304011684,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM3RAYajVgN3JM_d7Vt1Q70d68bNJkmZks5r9YPngaJpZM4NmUt4
.

I get the exact same error but instead of ApiClaims it's Client.  I've used the demo solution and I made zero changes to it while following the steps found here

Never mind, I got mine working.  I doubt anyone else will need this help but if you are a noob with EF like me these steps might help:
First delete the data folder in the QuickstartIdentityServer project
Then from the command line and from the root of the same project folder run the following 2 commands:
dotnet ef migrations add InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb
and
dotnet ef migrations add InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -o Data/Migrations/IdentityServer/ConfigurationDb
Then just run the project.


Suite Teardown stop on keyword error

Hello,
I'm facing an issue on Suite Teardown. From what I read in the documentation, the teardown should always been run:

But I just discover than, in case of keyword issue (not a test failure) it is not the case. Here a simple example inspired from my test suite:
*** Settings ***

Suite Setup         Setup
Suite Teardown      Release

Force Tags          robot:recursive-continue-on-failure
Default Tags        all

*** Test Cases ***

Test1
    Log  test1

*** Keywords ***
Setup
    Log  setup

Release
    SubRelease
    Log  Release 4

SubRelease
    Log  release 1
    Set Test variable   ${toto}   4
    Log  Release 3

Here the result

I know that do a Set Test variable in a teardown is a mistake but still, teardown should not continue ?
Thank you.
Best regards,
Maxime

You are right that execution in general continues after failures in teardowns, but there's an exception to that rule that execution is not continued after syntax errors. To be honest I'm not sure is that a good exception and we could consider changing that. I am, however, sure that using Set Test Variable outside a test shouldn't be considered a syntax error. I can easily change that and then execution will continue in this particular case. If you believe execution should continue also after syntax errors, please submit a separate issue about that.


Don't log warning messages when it doesn't need to

This SDK can be enabled by the environments config. So when it's not enabled in the current environment, it shouldn't log any messages.

Codecov Report

Merging #1000 into master will decrease coverage by 0.45%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1000      +/-   ##
==========================================
- Coverage   97.78%   97.32%   -0.46%
==========================================
  Files          46       46
  Lines        2163     2128      -35
==========================================
- Hits         2115     2071      -44
- Misses         48       57       +9

Impacted Files
Coverage Δ

spec/raven/instance_spec.rb
100.00% <100.00%> (+0.52%)
:arrow_up:

...ations/rails/overrides/debug_exceptions_catcher.rb
70.58% <0.00%> (-29.42%)
:arrow_down:

...s/rails/overrides/debug_exceptions_catcher_spec.rb
88.88% <0.00%> (-11.12%)
:arrow_down:

lib/raven/integrations/rails/active_job.rb
96.42% <0.00%> (-3.58%)
:arrow_down:

spec/raven/integrations/sidekiq_spec.rb
96.90% <0.00%> (-0.16%)
:arrow_down:

spec/raven/event_spec.rb
97.55% <0.00%> (-0.09%)
:arrow_down:

spec/raven/json_spec.rb
100.00% <0.00%> (ø)

spec/raven/processors/cookies_spec.rb
100.00% <0.00%> (ø)

spec/raven/processors/post_data_spec.rb
100.00% <0.00%> (ø)

spec/raven/processors/http_headers_spec.rb
100.00% <0.00%> (ø)

... and 1 more

Continue to review full report at Codecov.

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


Change font color of TabItem header

After trying what was suggested in issue #195, I have been unable to alter the font color of a Tab Item Header, and would appreciate any help provided.

This issue was closed... What was the resolution?

Based on the fact that I can't seem to do what was suggested as a fix: There wasn't one...


Add license information

Hello!
I found link to this project from https://hackaday.com/2020/11/16/vectron-adds-basic-and-christmas-tree-control/
Could you please add information about license of this repository — is it allowed to copy, change and use code in any purpose?
It would be great to see any popular open source license.

I added an MIT license to the repo.  Have fun!

@nickbild , great, thank you!


Paxel's cannot strip logs

It would be nice if the paxels could strip logs. Only the axes can do it currently.

And also paxels don't make path on dirt
like every mod adding paxels always forgot to add this tool features

Finally got around to addressing this :).  It'll be fixed in the next version


Evenly distributed time ticks on X axis type: enhancement

I have a number of points randomly distributed along x axis and I think it's a commonly useful to draw time ticks evenly,
for example 10:00 10:10 10:20...
or 1pm 2pm 3pm...
or 20 jan 25 jan 30 jan 5 feb..
keeping the ability in the same time to draw major ticks of bigger scale. I made SO question but there isn't answer for few days, looks like it's impossible currently.
https://stackoverflow.com/questions/48456854/chart-js-how-to-align-x-ticks
Sorry I see no option to assign type here, possibly lack of carma.

@cosinus90 I think the issue is that you've used the v2.0 API but included v1 which is substantially different.
I updated your codepen to v2 and it works better https://codepen.io/anon/pen/NyGeEo

@etimberg probably I haven't exactly described this, English  is not my native language.  I need time ticks (for example in this codepen): 12:00 12:30 13:00 13:30 14:00 ...
They should not be linked to data points which are distributed randomly. And looks like current version doesn't provide such feature.
Codepen that you have fixed still draws ticks linked to data points.

@cosinus90 removing source: 'labels' and setting unitStepSize: 0.5 achieves what you're looking for. https://codepen.io/anon/pen/ZrQjXr

Oh great, thank you!


SymlinkTask  Fatal Error

Hello,
I´ve used the new symlink task, but there is an error. The method getAbsolutPath are not exist.
PHP Fatal error:  Call to undefined method Mage\Task\BuiltIn\Filesystem\SymlinkTask::getAbsolutPath() in /.../vendor/magephp/magallanes/Mage/Task/BuiltIn/Filesystem/SymlinkTask.php on line 65
Thanks for this great project

Thanks for submitting this issue. Actually, I've noticed about that mistake and already fix on my local machine. A new major version will be updated tonight.
I'm updating the documentation for this tool.
Sorry for any inconvenience you've had and my English also.

Please update to the latest version. And also check the new documentation here: https://magephp.github.io/
Thanks.


Remove overhead in Gen.oneOf(vararg Gen)

Previous implementation creates too much junk too easily. I just bumped into this piece of code when learning this framework. The newline at the EOF is added by Github web editor. I can't remove it without cloning the entire repo.

My fault

My fault


Getting java.io.Exception error=2 upon compilation

Hello,
First let me thank you for your hard work and dedication to this project.
It keeps getting better and better :).
I recently changed from sbt 0.11.0 to 0.11.2.
I installed it in my local computer and in my server.
My local installation ran fine and dandy but I seem to be getting an error on my server instance upon compilation:
[error] {file:/home/jaime/../}../compile:compile: java.io.IOException: Cannot run program "javac": java.io.IOException: error=2, No
such file or directory
[error] Total time: 16 s, completed Dec 21, 2011 1:07:33 PM

posting my Build.scala and plugin/build.sbt to verify I'm not doing anything silly.
[Build.scala]
import sbt._
object Build extends sbt.Build {
import Dependencies._
lazy val myProject = Project(
"..",
file("."),
settings = basicSettings ++ WebPlugin.webSettings ++ Seq(
libraryDependencies ++= Seq(
Compile.akkaActor,
Compile.sprayServer,
Compile.sprayJson,
Compile.subcut,
Compile.h2,
Compile.scalaquery,
Compile.scalaz,
Test.specs2,
Container.jettyWebApp,
Container.akkaSlf4j,
Container.slf4j,
Container.logback
)
)
)
lazy val basicSettings = Defaults.defaultSettings ++ Seq(
organization  := "com.example",
version       := "0.1.2",
scalaVersion  := "2.9.1",
mainClass 	  := Some("cc.spray.connectors.Initializer"),
scalacOptions := Seq("-deprecation", "-encoding", "utf8"),
resolvers     ++= Dependencies.resolutionRepos
)
}
object Dependencies {
val resolutionRepos = Seq(
"Akka Repository" at "http://akka.io/repository/",
ScalaToolsSnapshots,
"Scala Tools Snapshot" at "http://scala-tools.org/repo-releases/",
"Scala Tools Snapshot" at "http://scala-tools.org/repo-snapshots/"
)
object V {
val akka    = "1.3-RC4"
val spray   = "0.8.0-RC2"
val specs2  = "1.6.1"
val jetty   = "8.0.3.v20111011"
val slf4j   = "1.6.1"
val logback = "0.9.29"
val sJson 	= "1.0.1"
val sprayCan= "0.9.1"
val sprayClient="0.8.0-RC3"
val sQuery  = "0.9.5"
val h2 		= "1.2.140"
}
object Compile {
val akkaActor   = "se.scalablesolutions.akka" %  "akka-actor"      % V.akka    % "compile"
val sprayServer = "cc.spray"                  %  "spray-server"    % V.spray   % "compile"
val sprayJson	= "cc.spray.json" 			  %  "spray-json_2.9.1" 	   % V.sJson   % "compile"
val spraycan 	= "cc.spray.can" 			  %  "spray-can_2.9.1" 	   % V.sprayCan   % "compile"
val scalaquery  = "org.scalaquery" 			  % "scalaquery_2.9.0-1" % "0.9.5" % "compile"
val h2 			= "com.h2database" 			  % "h2" 				% "1.2.140" % "compile"
val subcut		= "org.scala-tools.subcut" 	  % "subcut_2.9.1" 			% "1.0-SNAPSHOT" % "compile"
val scalaz 		= "org.scalaz" 				  % "scalaz-core_2.9.1" 		% "6.0.3" % "compile"
}
object Test {
val specs2      = "org.specs2"                %% "specs2"          % V.specs2  % "test"
}
object Container {
val jettyWebApp = "org.eclipse.jetty"         %  "jetty-webapp"    % V.jetty   % "container"
val akkaSlf4j   = "se.scalablesolutions.akka" %  "akka-slf4j"      % V.akka
val slf4j       = "org.slf4j"                 %  "slf4j-api"       % V.slf4j
val logback     = "ch.qos.logback"            %  "logback-classic" % V.logback
}
}
[plugin/build.sbt]
resolvers += "Web plugin repo" at "http://siasia.github.com/maven2"
libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" % (v + "-0.2.10"))
resolvers += Classpaths.typesafeResolver
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse" % "1.5.0")

The error was mine: forgot to put the java env variables in the server.
Disregard this


Make registration place a pulldown?

In the PDF form, the applicant checks off "county" or "city" and fills in the blank:

This is unnecessary for an HTML form. Just make this a pulldown where they select their locality?

That will make it possible to embed the GNIS ID, too. (That's the federal standard for  IDs identifying places.) We use GNIS IDs as the key for registrars, with each GNIS ID corresponding to the specified locality.

Missed this earlier, but that makes sense.


Error: Downloaded binary does not contain the binary specified in configuration - acm

package.json
not able to figure this error out at all
have followed the steps step by step
and the url given in the url field in the package.json in goBinary defineity works cause i can download from it
Any help as to how to resolve this error

you need to change the name of the binary in .goreleaser.yml to the same as in goBinary.name in package.json


Warnings when running on Linux

When running buzz:
$ cargo run
    Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/buzz`

(.:12707): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed

(.:12707): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed

(.:12707): GLib-GIO-CRITICAL **: g_dbus_connection_emit_signal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed

(.:12707): GLib-GIO-CRITICAL **: g_dbus_connection_emit_signal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed

(.:12707): GLib-GIO-CRITICAL **: g_dbus_connection_emit_signal: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed

(.:12707): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

I got the same problem

This seems to still be an issue in 0.4.0. Not sure why?


Address space occupied and fork failing on Cygwin

I am using oh-my-zsh in Cygwin and just today it began to act unexpectedly.
I have ran upgrade_oh_my_zsh, and that did not fix the problem.
Messages almost all seem to either involve an address space being occupied or a fork failing.
Is there anything else I can post to help resolve this issue?
When opening Cygwin:
$fg_bold[green]${PWD/#$HOME/~}$reset_color$(git_prompt_info) ⌚ $fg_bold[red]15:18:48$reset_color
$ vim .zshrc
      0 [main] zsh 8416 child_info_fork::abort: address space needed by 'terminfo.dll' (0x3A0000) is already occupied
zsh: fork failed: resource temporarily unavailable

Instead of my expected prompt:
Expected
~ ⌚ 15:27:01
$

Actual
$fg_bold[green]${PWD/#$HOME/~}$reset_color$(git_prompt_info) ⌚ $fg_bold[red]15:23:33$reset_color
$ [cursor here]

Sometimes running simple commands such as ls will output this and not expected output at all:
      0 [main] zsh 2880 child_info_fork::abort: address space needed by 'terminfo.dll' (0x3B0000) is already occupied
git_prompt_info:3: fork failed: resource temporarily unavailable

Are you using babun? This looks like a cygwin issue, ask over there...

@mcornella I am not using babun as far as I know.
I only use Cygwin and I did not update Cygwin before this behavior, only ohmyzsh.

This doesn't sound like an Oh My Zsh specific issue. Your zsh is messed up. Sounds like something is injecting code in to your zsh process and it's not working out. Googling for this comes up with people talking about various antivirus programs causing this on Cygwin, which sounds plausible.
Have a look at your antivirus software & settings, and check whether your computer has been owned by malware.

@apjanke, it looks like my issue stemmed from Windows Defender. However, after not doing anything else, everything seems to be working as expected.
I guess that's Windows.


Unable to match requests (sometimes? Only on Python 3?)

I have been getting "Could not find a matching Swagger operation for GET request api/v1/users" from one of my ... experiments.
After digging in to it a bit, I found that the problem was either that route_info['route'].path in tween.py:get_op_for_request() unexpectedly does not start with a "/", or that the map used in the Spec from bravado_core unexpectedly does start the requests with a "/".
This is with Python 3.5.0, pyramid 1.5.7, pyramid-swagger 2.2.2, bravado-core 3.1.1

Hey Thorsten,
Sounds like this might just be a mismatch between your specific request URI and the swagger spec for your service. Can you post your full api-docs.json spec as well as the method you were using to query the service (a simple curl works)?

The Swagger spec is below. With the proper credential, a command
curl -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJleHAiOjE0NDc4MTk3ODcsImlhdCI6MTQ0NzgwODk4Nywic3ViIjoxLCJuYmYiOjE0NDc4MDg5ODd9.AAQQvvH4zWn6Ow4O6VC4nQA_2SdnHMIQCxwfoP8jQxz19n1Z3tZkh2NvjntIbFMou4Gk-tIQAa4bD0_4lI8TwV-BAU2mFv0-TnkzjTJ2CHdWYTJhdIFlj7ezQLsbH2cQUNuhc_901Edn5soYBZQQ1Vtt9DNbuoFe3SEsxbBbjEJn-aPy" https://protalk.ngrok.io/api/v1/users

will fail. Based on the spec that ... should not be the case, I believe.
Thorsten
{
  "swagger": "2.0",
  "info": {
    "title": "Messaging",
    "description": "Backend for secure messaging application",
    "termsOfService": "https://protalk.ngrok.io/terms/",
    "contact": {
      "name": "Support",
      "url": "https://protalk.ngrok.io/support/",
      "email"<EMAIL_ADDRESS>    },
    "license": {
      "name": "Proprietary",
      "url": "https://protalk.ngrok.io/license"
    },
    "version": "1.0.0"
  },
  "host": "protalk.ngrok.io",
  "basePath": "/api/v1",
  "schemes": ["https"],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "responses": {
    "NotFound": {
      "description": "Entity not found.",
      "schema": {
        "$ref": "#/definitions/Error"
      }
    },
    "AuthenticationRequired": {
      "description": "Authentication is required to do that.",
      "schema": {
        "$ref": "#/definitions/Error"
      }
    }
  },
  "securityDefinitions": {
    "messaging_auth": {
      "type": "oauth2",
      "tokenUrl": "https://protalk.ngrok.io/auth/login",
      "flow": "password",
      "scopes": {
      }
    }
  },
  "paths": {
    "/users": {
      "get": {
        "summary": "Get a list of users.",
        "description": "Retrieve a list of all users from the server.",
        "security": [
          {
            "messaging_auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of users",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/User"
              }
            }
          },
          "401": {
            "$ref": "#/responses/AuthenticationRequired"
          },
          "default": {
            "description": "Unexpected error",
            "schema": {
              "$ref": "#/definitions/Error"
            }
          }
        }
      }
    },
    "/users/{userId}": {
      "get": {
        "summary": "Get details about user.",
        "description": "Fetch all details for a single user identified by the passed in userId.",
        "operationId": "getUserById",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "description": "User to fetch",
            "required": true,
            "type": "integer",
            "format": "int64"
          }
        ],
        "responses": {
          "200": {
            "description": "Information about user",
            "schema": {
              "$ref": "#/definitions/User"
            },
            "examples": {
              "application/json": {
                "userId": 1,
                "username": "user",
                "firstname": "John",
                "lastname": "Doe",
                "email"<EMAIL_ADDRESS>              }
            }
          },
          "401": {
            "$ref": "#/responses/AuthenticationRequired"
          },
          "404": {
            "$ref": "#/responses/NotFound"
          },
          "default": {
            "description": "Unexpected error",
            "schema": {
              "$ref": "#/definitions/Error"
            }
          }
        },
        "security": [
          {
            "messaging_auth": []
          }
        ]
      }
    }
  },
  "definitions": {
    "User": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "integer"
        },
        "username": {
          "type": "string"
        },
        "firstname": {
          "type": "string"
        },
        "lastname": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      },
      "required": [
        "userId"
      ],
      "example": {
        "userId": 1,
        "username": "user",
        "firstname": "John",
        "lastname": "Doe",
        "email"<EMAIL_ADDRESS>      }
    },
    "Error": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string"
        }
      },
      "required": [
        "message"
      ],
      "example": {
        "message": "User not found."
      }
    }
  }
}

Interesting. My educated guess is that we're failing to interpret your spec's use of basePath properly. You're doing it right, so that is probably just a library support issue.
I see support for this behavior in bravado-core, so I'm unsure why this is failing as written.
@analogue: any ideas here?
@tholo: can you try again without using the basePath feature so we can at least narrow this down to that as an issue?

FWIW if I modify tween.py:get_op_for_request() to add a leading '/' if none are present, that does make things work. It just seems ... like the wrong way to fix it. I will try to see what happens if I do not use basePath but fully prefix things.

So removing basePath and specifying /api/v1/users instead of just /users (with basePath) in paths gives me the same error...
Specifically, the paths section now starts out with:
  "paths": {
    "/api/v1/users": {
      "get": {

and there is no basePath setting. The curl command from before gives the exact same error message.

So trying to reproduce:
requirements.txt
pyramid==1.5.7
pyramid-swagger==2.2.2
bravado-core==3.1.1
ipython==1.2.1

ipython
In[2]: from bravado_core.spec import Spec
In[3]: import json
In[4]: s = Spec.from_dict(json.loads(open('swagger.json').read()))
In[5]: s.get_op_for_request('GET', '/api/v1/users')
Out[5]: Operation(get_users)

I'd be suspect of this snippet in tween.py
def get_op_for_request(request, route_info, spec):
    """
    Find out which operation in the Swagger schema corresponds to the given
    pyramid request.

    :type request: :class:`pyramid.request.Request`
    :type route_info: dict (usually has 'match' and 'route' keys)
    :type spec: :class:`bravado_core.spec.Spec`
    :rtype: :class:`bravado_core.operation.Operation`
    :raises: RequestValidationError when a matching Swagger operation is not
        found.
    """
    # pyramid.urldispath.Route
    route = route_info['route']
    if hasattr(route, 'path'):
        op = spec.get_op_for_request(request.method, route.path)
        if op is not None:
            return op
    raise PathNotMatchedError(
        "Could not find a matching Swagger operation for {0} request {1}"
        .format(request.method, request.url))

Can you set a breakpoint and dump the attrs of request and route?

Let's see what request and route looks like... Note that this is without using basePath still, tho that seems to have changed … nothing.
{'_headers': <webob.headers.EnvironHeaders object at 0x109479198>,
 'environ': {'HTTP_ACCEPT': '*/*',
             'HTTP_AUTHORIZATION': 'Bearer '
                                   'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJleHAiOjE0NDc4MTk3ODcsImlhdCI6MTQ0NzgwODk4Nywic3ViIjoxLCJuYmYiOjE0NDc4MDg5ODd9.AAQQvvH4zWn6Ow4O6VC4nQA_2SdnHMIQCxwfoP8jQxz19n1Z3tZkh2NvjntIbFMou4Gk-tIQAa4bD0_4lI8TwV-BAU2mFv0-TnkzjTJ2CHdWYTJhdIFlj7ezQLsbH2cQUNuhc_901Edn5soYBZQQ1Vtt9DNbuoFe3SEsxbBbjEJn-aPy',
             'HTTP_HOST': 'protalk.ngrok.io',
             'HTTP_USER_AGENT': 'curl/7.43.0',
             'HTTP_X_FORWARDED_FOR': '<IP_ADDRESS>',
             'PATH_INFO': '/api/v1/users',
             'QUERY_STRING': '',
             'REMOTE_ADDR': '<IP_ADDRESS>',
             'REQUEST_METHOD': 'GET',
             'SCRIPT_NAME': '',
             'SERVER_NAME': 'localhost',
             'SERVER_PORT': '6543',
             'SERVER_PROTOCOL': 'HTTP/1.1',
             'SERVER_SOFTWARE': 'waitress',
             'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>,
             'wsgi.file_wrapper': <class 'waitress.buffers.ReadOnlyFileBasedBuffer'>,
             'wsgi.input': <_io.BytesIO object at 0x109473db0>,
             'wsgi.multiprocess': False,
             'wsgi.multithread': True,
             'wsgi.run_once': False,
             'wsgi.url_scheme': 'https',
             'wsgi.version': (1, 0)},
 'invoke_subrequest': <bound method Router.invoke_subrequest of <pyramid.router.Router object at 0x108eff5c0>>,
 'registry': <Registry messaging>,
 'tm': <transaction._manager.ThreadTransactionManager object at 0x1065191c8>}

and
{'factory': <class 'messaging.views.api.users.UserCollection'>,
 'generate': <function _compile_route.<locals>.generator at 0x109455378>,
 'match': <function _compile_route.<locals>.matcher at 0x109455400>,
 'name': 'rest-UserCollection',
 'path': 'api/v1/users',
 'pattern': 'api/v1/users',
 'predicates': [],
 'pregenerator': None}

For good measure I also dumped the Spec:_request_to_op_map:
{('delete', '/api/v1/users/{userId}'): Operation(deleteUser),
 ('get', '/api/v1/users'): Operation(get_users),
 ('get', '/api/v1/users/{userId}'): Operation(getUserById),
 ('post', '/api/v1/users'): Operation(post_users),
 ('put', '/api/v1/users/{userId}'): Operation(updateUser)}

So your route.path is not prefixed with a /.  When I run my pyramid app, my route.path is prefixed with a /.  Wonder why that is?

I don't know. But that is why I initially said that I could add that in in get_op_for_request (but that that felt like the wrong way to go about it)...

Python 2.7 makes no difference. I do wonder, tho... I am also using rest_toolkit (0.7 right now, since newer requires Pyramid>=1.6a), maybe it does ... funky stuff when setting up routes, and that is where this whole issues originates...

That does not appear to be it, either... Here's what proutes says:
Name                                  Pattern                   View                                                                           Method
----                                  -------                   ----                                                                           ------
pyramid_swagger.swagger20.api_docs    /swagger.json             pyramid_swagger.api.view_for_swagger_dot_json                                  *
rest-UserCollection                   /api/v1/users             pyramid.config.views.<pyramid.config.views.MultiView object at 0x109206a58>    *
rest-UserCollection                   /api/v1/users             rest_toolkit.views.default_options_view                                        OPTIONS
rest-UserCollection                   /api/v1/users             rest_toolkit.views.default_delete_view                                         DELETE
rest-UserCollection                   /api/v1/users             rest_toolkit.views.default_get_view                                            GET
rest-UserCollection                   /api/v1/users             rest_toolkit.views.default_patch_view                                          PATCH
rest-UserCollection                   /api/v1/users             rest_toolkit.views.default_post_view                                           POST
rest-UserCollection                   /api/v1/users             rest_toolkit.views.default_put_view                                            PUT
rest-UserResource                     /api/v1/users/{userId}    pyramid.config.views.<pyramid.config.views.MultiView object at 0x109212208>    *
rest-UserResource                     /api/v1/users/{userId}    rest_toolkit.views.default_options_view                                        OPTIONS
rest-UserResource                     /api/v1/users/{userId}    rest_toolkit.views.default_delete_view                                         DELETE
rest-UserResource                     /api/v1/users/{userId}    rest_toolkit.views.default_get_view                                            GET
rest-UserResource                     /api/v1/users/{userId}    rest_toolkit.views.default_patch_view                                          PATCH
rest-UserResource                     /api/v1/users/{userId}    rest_toolkit.views.default_post_view                                           POST
rest-UserResource                     /api/v1/users/{userId}    rest_toolkit.views.default_put_view                                            PUT

If the missing leading / on route.path is the only problem, it may be OK to accept both forms when matching to an operation because of this verbage.  FYI, route.pattern is effectively route.path according to this code. I'm certainly no pyramid expert - someone else want to chime in on this?  @striglia ?

Which is basically what I accomplished by adding it, if not there, in tween.py:get_op_for_request. Which makes things work, at any rate, I just … didn't like it.

Well this got fascinating/ridiculous in a hurry. Something I clearly haven't seen before is going on.... @tholo perhaps we should just pastebin a minimal pyramid app that reproduces this problem? Something like one endpoint with no arguments, and the associated Swagger spec?

The plot thickens (again?)...
I think this may be in part due to me using config.include(..., prefix='/api/v1') to build things... Still investigating as I build a minimal app to reproduce things...

The minimal app required to reproduce the problem looks like:
from pyramid.config import Configurator
from pyramid.view import view_config

@view_config(route_name='users', renderer='json')
def get_users(request):
    return []

def main(global_config, **settings):
    """This function returns a Pyramid WSGI application."""
    settings['pyramid_swagger.exclude_paths'] = [
        r'^/swagger.json',
    ]

    config = Configurator(settings=settings)
    config.include('pyramid_swagger')
    config.include(__name__, route_prefix='/api/v1')
    return config.make_wsgi_app()

def includeme(config):
    config.add_route('users', '/users')
    config.scan()

Requirements for that looks like:
pyramid
pyramid_swagger
waitress

So, this appears to actually be a Pyramid issue. Further simplification of test:
from pyramid.config import Configurator

def main(global_config, **settings):
    """This function returns a Pyramid WSGI application."""
    config = Configurator(settings=settings)
    config.add_route('home', '/some/path')
    config.include(__name__, route_prefix='/api/v1')
    return config.make_wsgi_app()

def includeme(config):
    config.add_route('users', '/users')

if __name__ == '__main__':
    app = main({}, settings={})

    print(app.routes_mapper.routes['home'].path)
    print(app.routes_mapper.routes['users'].path)

And the result of executing that is:
/some/path
api/v1/users

This is now reported as Pylons/pyramid#2143

Awesome. Thanks for all the digging here, and hopefully that ticket will solve the issue.
If you can think of any generally useful improvements we can make on the pyramid_swagger side to clear up issues like this, feel free to file an issue.

I believe this was fixed on our side in #151. Can anyone confirm?

That was almost exactly the same as my workaround, and does indeed fix the issue for me.


Support env_file

This would be a killer feature for container-transform.

Nice! Good progress, but PR #50 omits env-file from ECS when provided (since ECS doesn't support env-file, totally understandable). What do you think about reading in env-file and converting line entries to environment members?

I'd rather not enable unsupported features, add as few surprises as possible, and keep the tool simple to maintain and understand.
While it is a manual step, you could still script the dumping an env file to your compose:
cat <<EOF >app.env
TERM=xterm
CT_INPUT_TYPE=compose
CT_OUTPUT_TYPE=ecs
EOF
cat app.env | sed -e 's/=/: /g' >> docker-compose.yml

No worries, thanks for the consideration and snippet.


Update pktmon-syntax.md

The next version of the tool is now out with modified syntax and functionality so I updated the documentation to reflect the changes

@george-guirguis : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Looks pretty good to me otherwise, could not point to anything else worth mentioning so far.

I’m going to open a new/separate PR to make these changes.  The numbering of the steps got a little messed up here. I’ll let you know when it’s done and then you can delete this PR. Please don't merge these changes.

@george-guirguis : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@george-guirguis please delete this PR - I made these changes in a separate PR that will merge sometime today.

@george-guirguis these changes are now live (published via another PR): https://docs.microsoft.com/en-us/windows-server/networking/technologies/pktmon/pktmon-syntax
So you can delete this PR now.

@george-guirguis : I will proceed to close this PR, based on the information provided by @khdownie above that this information is already published. Feel free to delete your PR branch if you want.
#please-close


[npm - WARN peerDependencies] The peer dependency tap@* included from tap-only will...

During the installation, I got these warnings about the TAP@ dependency not being future proof...

I have a very little clue of node or npm and its dependencies. Far from an expert here, It's more of an experiment for me than anything... So I'm not sure if this is an issue exactly, but I thought I create a record of it, in case you need to track it. And if you have any advice for me and if I need to do anything that can fix this. (installing npm 3 ?)

That's a bug, I've just pushed a new version and it should deploy in the next few minutes.
tap-only should have been a dev dep, and not a production dep - which explains why you're seeing the exception.
Thanks for raising the issue and getting my eyes on this!


[Question] Can I remove invalid code from the eventmesh-runtime module?

Search before asking

[X] I had searched in the issues and found no similar issues.

Question
There is a lot of invalid code in the EventMesh-Runtime module, for example:

Located in:
1.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util package.
2.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch: EventMeshConsumeConcurrentlyContext.java and EventMeshMessageListenerConcurrently.java
3.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain under this package has a few class is commented.
4.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer package.
5.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor package.
6.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/ClientGroupWrapper.java
7.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/rebalance/EventmeshRebalanceImpl.java
8.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/ClientAckContext.java
9.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java
10.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/SessionPusher.java
11.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/SessionSender.java
12.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/Session.java
13.eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task package
Suggestion: Delete invalid code.

let me do that.

让我这样做。

OK.


Support for the Hyper key

The Hyper key is absent in the list of glfw keys. It's commonly used on *nix systems as an extra modifier key. xev and e.g. emacs catch it as it's own proper key, and the latter allows you to bind stuff to it.
I use the terminal app kitty, which behaves strangely on hyper key presses, because, according to the author, glfw  doesn't recognize it. Any change that Hyper could be added to glfw? One of the most common use cases for a Hyper key is window management, so people tend to press it often, making it annoying that glfw based apps are (apparently) confused when they catch it.

Is this not the "Super" GLFW_MOD_SUPER key?

@unphased Hyper is actually distinct from Super. I didn't know about it either, but it has apparently been on physical keyboards in the past.

Don't think so. Looking at the docs, GLFW_MOD_SUPER seems to refer to the Super key, which is what Linux (and maybe others) calls the windows/apple/command key. For example, Kitty (my application that uses glwf) does at some level differentiate the two  (and so does xev):
$ kitty --debug-keyboard
# pressing my "Hyper" key, which I've mapped to caps-lock in .Xmodmap
Press xkb_keycode: 0x42 clean_sym: Hyper_L composed_sym: Hyper_L mods: none glfw_fallback_key: 280 (CAPS LOCK) xkb_key: 65509 (Caps_Lock)
# Pressing my left super key
Press xkb_keycode: 0x85 clean_sym: Super_L composed_sym: Super_L mods: none glfw_key: 343 (LEFT SUPER) xkb_key: 65515 (Super_L)

This is interesting and new to me. @rien333 What keyboard do you use? Is this key being emulated by a modifier key combination?

Just a basic keyboard on my laptop, no noteworthy keys. As I already hinted at above, I'm using X11 to remap my caps lock to the hyper key (see the last link I included in my examples above). Under Linux it's a proper modifier of it's own, see e.g. the last two examples I've included. Hence, it's not emulated using a combination of other modifiers, as is needed in macOS.

This should be straightforward enough to add. I will look at a Linux implementation this coming week.

Update: It's easy enough to add Hyper as a key (to get press/release events), but unfortunately not so simple to add it as a modifier... By default (on Debian at least) Hyper seems to be mapped to the same modifier bit as Super (mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)), so unless I've missed something, there's no way to distinguish them once they reach glfw.
That means we need to add code to query the map to determine if Hyper is even detectable, and if so, which modifier bit to use for it. We should probably also be doing that for Alt, NumLock, and Super rather than assuming the defaults always apply... ugh.
@rien333 Could you share the output of xmodmap -pm?

My xmodmap:
$ xmodmap -pm
xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_L (0xcc),  Meta_L (0xcd)
mod2        Alt_R (0x6c)
mod3        Hyper_L (0x42),  Hyper_L (0xcf)
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

. By default (on Debian at least) Hyper seems to be mapped to the same modifier bit as Super (mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)), so unless I've missed something, there's no way to distinguish them once they reach glfw.

So glfw only sees mod1--5, and not the key codes or key events? I know some apps, like sxkhd, differentiate between mod*X* and key presses like hyper, super, etc., but I'm not sure how all that is handled under the hood (which ofc might not apply to glfw anyway).

Also this is my .Xmodmap file if you want to reproduce my setup (not sure if you actually can btw)

Many thanks; that's plenty of information for me to reproduce your setup. I thought mod3 looked like the most likely candidate, but I am absolutely certain that someone out there will have it mapped differently.

So glfw only sees mod1--5, and not the key codes or key events?

That's how the code currently works (https://github.com/glfw/glfw/blob/master/src/x11_window.c#L182), but I'll look into whether there is a better way to achieve what needs to be done.

That's how the code currently works (https://github.com/glfw/glfw/blob/master/src/x11_window.c#L182), but I'll look into whether there is a better way to achieve what needs to be done.

I'm probably already telling you stuff you already know, but inspecting xev output and the X11 docs show the only thing that distinguishes Hyper_L from either modX or other keypresses  is it's keysym property. Currently, translateState() uses the state property of an XKeyEvent instead. As you said, state only distinguishes between various mod masks. Alternatively,  checking the keycode also doesn't work, because this shows 66 in my case, which is the keycode for caps lock.
$ xev
KeyPress event, serial 33, synthetic NO, window 0x1c00001,
    root 0x169, subw 0x0, time 44697234, (640,1145), root:(682,1212),
    # state 0x20 equals mod3, keycode 66 equals caps lock
    state 0x20, keycode 66 (keysym 0xffed, Hyper_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

Hence, if you want to support alternative modifiers, the way to go seems to extract the keysym property from the XKeyEvent.  sxkhd has a similar approach.

Update: It's easy enough to add Hyper as a key (to get press/release events), but unfortunately not so simple to add it as a modifier...

I'm not sure if this is a good idea, but given that my only reason for opening this issue is that kitty (an glfw-based app) behaves weirdly when it receives an unknown modifier like Hyper, would it be possible to (maybe only for the time being) just completely ignore unknown modifiers/the Hyper key? Maybe by not sending a fallback key?

@rien333 note that kitty forked glfw and did a rewrite of the keyboard handling to handle more cases than what glfw does by default.. So I think the problem should be fixed on kitty's side not here. But regarding the hyper it might still be a good idea to add it to glfw for other apps!


Minor adjustment to settings docs

I was playing with the settings contrib module, and was confuse by the template implementation:
{{ settings.app_label.SocialMediaSettings.instagram }}
took me a while to realise app_label was the name of the app containing the specific settings model. Updated the docs to make this clear.

Thanks! Merged in 5e589d6376fee8ed15f64db2f2d229eec4b1bc09 (with a slight wording tweak).


Allow regex matching

Allow regex operator, something like ~: would work?
Or this can be provided by the like clause?
(column): %(value)%

Like already implemented.


Warning fixes

This fixes various unused/uninitialized warnings, a circular require, ambiguous splat warnings, and strips some trailing whitespace to boot.
A couple warnings were somewhat concerning, mainly the unused variables in the RbVmomi::VIM::VirtualMachine#add_delta_disk_layer_on_all_disks and I'm not 100 percent sure there aren't some required side effects happening there.
Also, the VIM::HostSystem#cli_info method is defined twice, each with a different implementation. I'm not sure which one is the correct version.
Lastly, there's a @loader variable that's uninitialized, but I'm still pondering the best approach for fixing it.

Thanks @djberg96! :tada:


Publish a paper on The Journal of Open Source Software

Publish a paper of the repo at https://joss.theoj.org/

Let's chat about it on a call


Broken link in documentation

Hi, just a small note to say that there's a broken link in the hyper docs:
http://hyper.rs/hyper/hyper/header/struct.ContentType.html
The "Mime" in pub struct ContentType(pub Mime); points to hyperium.github.io rather than hyper.rs, and clicking it returns a 404 GitHub Pages page. It's being set by this line. I'm not sure what the consequences of changing that link will be, but just thought I'd point it out.

Seems this isn't an issue anymore.


RNGs for reproducible output

Pull Request Test Coverage Report for Build 54

0 of 57 (0.0%) changed or added relevant lines in 6 files are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage remained the same at 0.0%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/types/location.jl
0
1
0.0%

src/misc/deployment.jl
0
2
0.0%

src/file/file_io.jl
0
3
0.0%

src/types/raster.jl
0
6
0.0%

src/misc/rand.jl
0
13
0.0%

src/file/gen_sim_files.jl
0
32
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/types/raster.jl
1
0.0%

src/file/gen_sim_files.jl
1
0.0%

Totals

Change from base Build 53:
0.0%

Covered Lines:
0

Relevant Lines:
2928

💛  - Coveralls


Add type hints to schema_backup

About this change - What it does

Add type hints to schema_backup.
Add TypedDict to describe configuration.
Fix non-functioning overload of json_encode.
anonymize_avro_schema_message() is updated to adhere to the interface stipulated by SchemaBackup.create(), i.e. must accept None.

What comes to overloading json_encode using binary flag, my opinion is that having two functions, one for binary and one for non-binary json encoding would be better than overloading same named function.

I don't have a strong opinion either way, but the overload was currently not setup in a way that properly distinguishes the return type on the binary argument (Literal is required to make that work). I think that's why I'm able to remove two type-ignore comments where it's used.
An unrelated, but tangential thing is I've looked at some of the backup code, and I suspect we make a few unnecessary conversions between str/bytes there. In that case at least, I think we should be able to deal almost exclusively with bytes.
I personally think the overload in itself is fine, but wouldn't be against a refactor that splits it up.


Is this crate unmaintained? Is a new maintainer needed?

This crate is useful, but missing some minor features. Several pull requests have been open for years without merging?
Would love not to fork, but actually to breath life into this crate?

I have forked this already since I needed some things (and plan to add more), don't mind merging here.

@IovoslavIovchev It seems like there are potentially a few people interested in contributing.
I'd be interested in collaborating as a maintainer and working to get a codegen_v2 published on crates.io.
@frederikhors @theoparis @MicroJoe seem like they might also be interested.
Since you volunteered first, I'll start grabbing the relevant / useful MRs I'm tracking and raising them against your repo.

@Carter12s I actually haven't considered whether it's better to have my fork published as a new crate (as so far it has been fine to have it as a git dependency). Ideally, we could resurrect this project and maintain here, but I don't really mind it moving over to the fork and continuing the work there.
Before we do any of that, however, I wanna ping @carllerche to see what his plans for this project are. Should we proceed with the fork?
It goes without saying, if we were to move the project to my fork, anyone who might be interested is welcome to open issues and contribute.

I also have a project that is using this crate, so it would be nice to have a way forward since there are some subtle issues I noticed in the code generation + having useful traits for which I'd like to open some PRs. It looks like there is enough interest here in maintaining/improving the crate, which is nice :).

I remember asking @carllerche a while back to see if he'd want to transfer ownership to anyone, but he basically told me that's not an option. Not sure if things are different now, but I think forking is the only viable option @IovoslavIovchev, so I suggest you go ahead and publish it under a different name.

@IovoslavIovchev Hi! I'm a novice dev and I'm pretty new to both open source and Rust.
I'd love to help out and contribute - what's the current status and plans for your fork?

A little update from me, I have been adding the changes I need, but I don't consider them worthy of a new version yet. Once I do, I will publish under the new name (I was thinking about codegen2 but it's already taken). If you check on crates.io, you can see a couple alternative names for this crate, both based on this code base. The two (there may be more) I have found:

rust-codegen, which currently has 2 commits, and you can clearly see it is this project's code from the LICENSE file. I don't see any other changes there.
codegen2, which has some changes but it's been stale for a while

Sorry for delay here @IovoslavIovchev
But I finally got around to updating my crate that depends on this.
I've open a pile of issues with associated merge requests on your fork and collected what seem like the high value pull requests on this repo and mirrored them there.
Would love to get some of these merged down so we can release a new version of the crate under a new name, my reccomendation is codebuilder (there is a typosquat on code_builder but I still like the name).

Good news!
I was able to get a hold of @andrewleverette and have been added as an owner of the crate on crates.io, so whenever myself and @IovoslavIovchev are able to get another release together will be able to publish it to the existing crate as 0.1.4 (or likely 0.2.0)

Awesome news, @Carter12s! Apologies for the delay, I am only now getting back to this project. I have started looking at the opened issues, and expect to have some MRs merged either tonight or tomorrow.

This is such a useful crate. Would be great if an update could be done.

v0.2.0 was sucessfully published with many of the pending updates over the last 2 years and is availible on crates.io
Development has moved over to https://gitlab.com/IovoslavIovchev/codegen as the primary active fork.

I'm going to leave this issue open for people who find this repository and wonder where development is.

This is such great news!

Thanks for maintaining the crate! Maybe a comment could be added the original issue text? Unless someone reads the whole discussion it looks like the crate is unmaintained

@Carter12s Can you add a warning to Readme so people can see the fork

I actually can't... We got crates.io access to be able to publish new versions, but the reason maintenance moved to gitlab is none of current maintainers have access to this repo.