Internal Server Error?

Whenever I try to paste a new team, it gives me an Internal Server Error.

I don't know why this is happening, as I don't think my format is off. I pasted it directly from Pokemon Showdown.
This was the team I was trying to paste:
Razor (Excadrill) (M) @ Focus Sash
Ability: Mold Breaker
EVs: 252 Atk / 4 Def / 252 Spe
Jolly Nature

Stealth Rock
Rock Slide
Earthquake
Iron Head

Breezepelt (Weavile) (M) @ Choice Band
Ability: Pressure
EVs: 252 Atk / 4 SpD / 252 Spe
Jolly Nature

Icicle Crash
Knock Off
Ice Shard
Pursuit

Haikili (Tapu Koko) @ Shuca Berry
Ability: Electric Surge
EVs: 252 SpA / 4 SpD / 252 Spe
Timid Nature

Thunderbolt
Defog
U-turn
Hidden Power [Ice]

Riptide (Gyarados) (M) @ Flyinium Z
Ability: Moxie
EVs: 252 Atk / 4 SpD / 252 Spe
Jolly Nature

Dragon Dance
Bounce
Waterfall
Earthquake

Arcane (Alakazam-Mega) (M) @ Alakazite
Ability: Magic Guard
EVs: 4 Def / 252 SpA / 252 Spe
Timid Nature
IVs: 0 Atk

Psychic
Focus Blast
Shadow Ball
Hidden Power [Fire]

Hawkeye (Hawlucha) (M) @ Electric Seed
Ability: Unburden
EVs: 96 HP / 252 Atk / 36 SpD / 124 Spe
Adamant Nature

Acrobatics
Swords Dance
High Jump Kick
Roost

Is this just me, or is there an issue with the site? Thank you for reading, and have a fantastic day!

Hi @NylaTheWolf,
Thanks for filing this, and sorry I didn't get back to you earlier. This was a known issue with PokePaste v2, and it should be fixed now that I've deployed v3.
If you're still running into this, please let me know and re-open.

It's cool!
Alrighty, thanks so much!
On Sun, Jul 29, 2018 at 8:07 AM, felixphew<EMAIL_ADDRESS>wrote:

Closed #67 https://github.com/felixphew/pokepaste/issues/67.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/felixphew/pokepaste/issues/67#event-1758863872, or mute
the thread
https://github.com/notifications/unsubscribe-auth/An3GHz1m6KCNTgRjtE0c0JYUzbJl-vcdks5uLaWCgaJpZM4VjrsZ
.


[Task] Upgrade Verax to V8 and V9

In order to upgrade the Verax protocol, we should follow a few steps.
V8 on Linea Sepolia

[x] Upgrade the Linea Sepolia instance to V8 (corresponding to branch release/8
[x] Test the Linea Sepolia instance extensively:

[x] Attest from a previous Portal
[x] Register a new Portal, a new Schema, a new Module from a previous Issuer
[x] Register a new Portal, a new Schema, a new Module from a newly added Issuer
[x] Replace / Revoke an Attestation

[x] Deploy V8 of the contracts npm package

V9 on Linea Sepolia

[ ] Identify the scope for V9
[ ] Create the corresponding release/9 branch
[ ] Upgrade the Linea Sepolia instance to V9 (corresponding to branch release/9
[ ] Test the Linea Sepolia instance extensively:

[ ] Attest from a previous Portal
[ ] Register a new Portal, a new Schema, a new Module from a previous Issuer
[ ] Register a new Portal, a new Schema, a new Module from a newly added Issuer
[ ] Replace / Revoke an Attestation

[ ] Deploy V9 of the contracts npm package

V9 everywhere

[ ] Upgrade the testnet instances (Arbitrum Sepolia, Base Sepolia, BSC Testnet) to V9
[ ] Upgrade the mainnet instances (Linea, Arbitrum, Arbitrum Nova, Base, BSC) to V9

Pending a community vote


Allow automerge

Either integrate the https://github.com/peter-evans/enable-pull-request-automerge project, or output the PR number such that this the enable-pull-request-automerge action can be tacked on after update-flake-lock

I think I'd prefer just exposing the PR number. Since we use https://github.com/peter-evans/create-pull-request/ under the good, and that action exposes the PR number, it shouldn't be too difficult to re-expose that for you to use with the automerge action :)
I think I'll be able to take a look at this soon.

I've opened https://github.com/DeterminateSystems/update-flake-lock/pull/28 that exposes a pull-request-number output, as well as documented how to use it in the README. Please take a look and let me know if that satisfies your needs!


Page for user to create new opening period with basic info

Will do unit tests in a separate pull request

This has required lots of coding 😅
Good job 👍
Few small comments.
I noticed also moderate axe-issue in the console:

moderate: Page must contain a level-one heading https://dequeuniversity.com/rules/axe/3.5/page-has-heading-one?application=axeAPI

[ ] Fix this accessibility problem by introducing a h1 element in the loader


Send CNRM email to naisd

With the new format for CNRM service account names, we need to receive the correct name in naisd.
Possible solution: add a cnrmSA field to the message passed to naisd containing the entire SA email

done


fix(core): Use Verify from go-header pkg in CoreExchange

We should have been using the high-level Verify check from go-header inside of the CoreExchange instead of the ExtendedHeader-based implementation of Verify.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ade25d7) 51.29% compared to head (0d0674f) 51.30%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3077   +/-   ##
=======================================
  Coverage   51.29%   51.30%
=======================================
  Files         177      177
  Lines       11151    11151
=======================================
+ Hits         5720     5721    +1
  Misses       4935     4935
+ Partials      496      495    -1

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


Validation errors are overridden with HTTP 500

Hey, I'm not sure what would be the best approach for this but I don't think the current status quo is correct either.
Let's say there's a route
  fastify.get('/someroute', {
    schema: {
      querystring: {
        type: 'object',
        properties: {
          dob: { type: 'string', format: 'date' },
        },
        required: ['dob']
      }
    }
  }, (req, res) => {
    return res.send('foo')
  })

Now, if with fastify-sentry I try to call this route with an invalid date of birth, I'm getting {"statusCode":500,"error":"Internal Server Error","message":"Something went wrong"}. Without fastify-sentry I get the more sensible {"statusCode":400,"error":"Bad Request","message":"querystring/dob must match format \"date\""}
IMO these format errors should be fully excluded from fastify-sentry and returned to the client as is.
Seems like one approach (described here https://www.fastify.io/docs/latest/Reference/Validation-and-Serialization/#validation-messages-with-other-validation-libraries) would be to check if validation property exists on the error, and in those cases let it pass through

Hi @wyozi! :wave:
We're on vacation right now but we'll come back at you at the start of the next week :)

@simonecorsi no worries, have a great vacation :)

Hi @wyozi , I agree with you and I like the approach you suggested. I'll try to put something together and get back to you. Thanks for reporting this 😉

:tada: This issue has been resolved in version 4.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix the background theme

Hello, could you please assign me for this issue?

Hello, please assign this to me.

I have a great idea for this. But maybe, I'm too late.

@BhaktaGopal Can you please assign me with this I would like to work on this.

@BhaktaGopal  Please assign me this issue, I'm an experienced Full stack developer, specifically in UI/UX. You can expect the modification soon!

@mateusabelli ,@doctype-Melvin
Both of you can work on it and the better will be merged


Logstash 1.5 support

The plugin doesn't necessarily seem to be 1.5 compatible.

As per #8, I've not yet had time to investigate this. But it is on my todo list.

Looks pretty simple - seems like it just needs a Gemfile, gemspec and ideally a few tests, and it should just work.
For reference the following links have the information required

https://github.com/logstash-plugins/logstash-output-example/
https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_output_plugin.html

c790a645f266ed1ce13cb4a53706c0a985050517 adds untested v1.5 support. Ran out of time over lunch. Will continue this later.

v1.5 support has been added, and it's now installable through the normal bin/plugin install logstash-output-jdbc method.
I've tested it in my environment with SQLite and SQL Server. If you have an opportunity to test and provide feedback for any other JDBC drivers, that would be good :smile:


Disable form for Whitehall content

Editing artefacts in Panopticon has no purpose anymore, since Whitehall will override any changes made in this database. To make this clear to publishers and developers this commit removes the form for whitehall-owned artefacts entirely.
Before

After

👏


Move ticket generators out of CASImpl

Closes https://github.com/Jasig/cas/issues/1143
Introduces 4 new interfaces to manage the creation of ticket objects. The 4 interfaces are dedicated to PTs, STs, PGTs, and TGTs, and there are default implementations for each. Implementations are all encapsulated via a factory pattern inside CASImpl, and all other settings/objects are moved out of CASImpl.

ProxyTicketFactory -> DefaultProxyTicketFactory
TicketGrantingTicketFactory -> DefaultTicketGrantingTicketFactory
ProxyGrantingTicketFactory -> DefaultProxyGrantingTicketFactory
ServiceTicketFactory -> DefaultServiceTicketFactory

Factories are automatically registered inside DefaultTicketFactory. CASImpl only interacts with this object to locate the factory, and then asks the factory to create the object.
Example:
final ProxyTicketFactory factory = this.ticketFactory.get(ProxyTicket.class);
final ProxyTicket proxyTicket = factory.create(proxyGrantingTicketObject, service);
this.ticketRegistry.addTicket(proxyTicket);

The API this way is clearer and readable. The 6 classes above are the ones that should be reviewed. Most functionality is the same and is borrowed from CASImpl, refactored.

One additional side-benefit of this PR is that now, we conceptually can allow PGTs and PTs to have their own expiration policy. They are set to match TGT and ST's  but technically it's possible to treat PGTs like Oauth tokens that would be long lived.

A small comment, but a big :+1:  A good step towards clean design for the CAS core!


Parcellation requests: trigeminal ganglion, trigeminal nuclei, facial nuclei, central pattern generator

A model provider has a model of "the sensorimotor peripheral whisker system, modeling trigeminal ganglion, trigeminal nuclei, facial nuclei, and central pattern generator neuronal populations".  [Associated paper]
It is for mouse, but since this is a model, I don't know if we can use a specific mouse parcellation, I think UBERONParcellation would be fine.
Here's what I've found in UBERON:
trigeminal ganglion - http://purl.obolibrary.org/obo/UBERON_0001675
trigeminal nuclear complex - http://purl.obolibrary.org/obo/UBERON_0007641
trigeminal sensory nucleus - http://purl.obolibrary.org/obo/UBERON_0004132
facial nucleus - http://purl.obolibrary.org/obo/UBERON_0000127 (but I'm not sure this is what the provider is referring to)
There are some similar terms in the openMINDS instances library, but these specific terms seem to be missing.

@apdavison we may not have the full UBERON anatomical entities yet registered in openMINDS. If they are in UBERON but not found in openMINDS we can add them.
Note: I fully agree with the approach of using UBERON here in the model curation process. I would only use a specific brain atlas in these cases if they actually made use of it.

TODO if not yet in UBERONParcellation ADD:

trigeminal ganglion - http://purl.obolibrary.org/obo/UBERON_0001675
trigeminal nuclear complex - http://purl.obolibrary.org/obo/UBERON_0007641
trigeminal sensory nucleus - http://purl.obolibrary.org/obo/UBERON_0004132
facial nucleus - http://purl.obolibrary.org/obo/UBERON_0000127


async lsp finder

async lsp finder enhance for some language servers with very slow performance, close #33

As this is kinda hard to try out, but I'm curious and lazy. :grimacing:
Would this meant the window gets renders instantly and then the results get inserted when they arrive? :thinking:

No, getting the results and window rendering are executed sequentially. I wrapped them into a new thread, which means that neither the request result nor the window rendering will block the current behavior.

Hmm okay. And how does that help? :thinking:
I mean when I call any function of this plugin I'm await a result. It is not like I'm triggering it and continue doing other stuff. Don't you?
But anyway, async features are mostly very cool. And despite it might not be too helpful it is nice to have. :+1:

Yes, when we use finder. We hope to wait for the result, but for some server pyls and so on, they may take 2s-5s to get a response, which will bring a very bad experience. Using a new thread will reduce the response time.

Would this meant the window gets renders instantly and then the results get inserted when they arrive?

It’s not difficult to do, but the result will look strange, because we got the window but haven’t got a response yet,Insert contents into window when the result is obtained. Also for servers with poor performance, we may see the result inserted 2s after the window appears.

Yes, when we use finder. We hope to wait for the result, but for some server pyls and so on, they may take 2s-5s to get a response, which will bring a very bad experience. Using a new thread will reduce the response time.

Yes but we would wait anyway right? So it is not like after one second I still have no result, I continue to write. Because either I was in need of some information or I wanted to navigate. But anyway, cool feature.

It’s not difficult to do, but the result will look strange, because we got the window but haven’t got a response yet,Insert contents into window when the result is obtained. Also for servers with poor performance, we may see the result inserted 2s after the window appears.

Well we could do it like in any web-application: put a progress indicator. This could a pretty ugly text or advanced stuff like a spinner. I know for example that wilder.nvim has a spinner. And I could imagine that this would make this plugin look sick. :rainbow:

The purpose of using a new thread is only to reduce some of the time to get a response, although the improvement is not big, because the performance is all on the language server side, not for users to continue other things, when users use finder, they are all to wait for the results. So I think this shouldn’t be a problem
Using a spin may be good, it looks good, I will try it when I have time, interesting ideas


create bake handbook direction

Issue:  #315

add main sections titles with numbering (f.exH1, H2) ,
create Handbook Outline with title and objectives containing main section titles,
fix headers in nested sections (the headers numbering don't correspond with sections depth in the content)
Corresponding recipe draft PR: https://github.com/openstax/recipes/pull/69

@kswanson33 I omitted the problem with using clipboard on objectives strings in  bake_handbook_objectives method we were discuss on slack by pushing them to an array and use it in the same iteration by include it in  bake_first_section_title_and_objectives method . It is a little different approach. Let me know what do you think about it :slightly_smiling_face:


[ArPow] dev builds fail to clone in WSL Ubuntu 20.04 LTS

This was reported at https://github.com/dotnet/msbuild/pull/6387#pullrequestreview-667250899.
Repro steps:

Get a working Ubuntu 20.04 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64) WSL environment.
sudo apt-get update
sudo apt-get install git
cd /home
sudo git clone https://github.com/MichaelSimons/msbuild.git
sudo git checkout ArPow-Stage1
sudo ./build.sh -c Release --restore --build --pack /p:ArcadeBuildFromSource=true -bl

Results:
git-clone-to-dir.sh fails.
Downloading 'https://dot.net/v1/dotnet-install.sh'
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.

dotnet-install: Downloading primary link https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100-preview.2.21155.3/dotnet-sdk-6.0.100-preview.2.21155.3-linux-x64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100-preview.2.21155.3/dotnet-sdk-6.0.100-preview.2.21155.3-linux-x64.tar.gz
dotnet-install: Adding to current process PATH: `/repos/msbuild/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Note that the script does not resolve dependencies during installation.
dotnet-install: To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.
Some command line switches were read from the auto-response file "MSBuild.rsp". To disable this file, use the "-noAutoResponse" switch.
/repos/msbuild/.dotnet/sdk/6.0.100-preview.2.21155.3/MSBuild.dll /nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/repos/msbuild/.dotnet/sdk/6.0.100-preview.2.21155.3/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/repos/msbuild/.dotnet/sdk/6.0.100-preview.2.21155.3/dotnet.dll -maxcpucount /m -verbosity:m /v:minimal /bl:/repos/msbuild/artifacts/log/Release/ToolsetRestore.binlog /clp:Summary /clp:ErrorsOnly;NoSummary /nr:true /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=false /p:__ToolsetLocationOutputFile=/repos/msbuild/artifacts/toolset/6.0.0-beta.21227.1.txt /t:__WriteToolsetLocation /warnaserror /repos/msbuild/artifacts/toolset/restore.proj
/repos/msbuild/.dotnet/sdk/6.0.100-preview.2.21155.3/MSBuild.dll /nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/repos/msbuild/.dotnet/sdk/6.0.100-preview.2.21155.3/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/repos/msbuild/.dotnet/sdk/6.0.100-preview.2.21155.3/dotnet.dll -maxcpucount /m -verbosity:m /v:minimal /bl:/repos/msbuild/artifacts/log/Release/Build.binlog /clp:Summary /nr:true /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=false /p:Configuration=Release /p:RepoRoot=/repos/msbuild /p:Restore=true /p:Build=true /p:Rebuild=false /p:Test=false /p:Pack=true /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=false /p:ArcadeBuildFromSource=true /warnaserror /root/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.21227.1/tools/Build.proj
  Cloning repository at: /repos/msbuild/ -> /repos/msbuild/artifacts/source-build/self/src/ ...
/root/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.21227.1/tools/SourceBuild/SourceBuildArcadeBuild.targets(123,5): error MSB3073: The command "/root/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.21227.1/tools/SourceBuild/git-clone-to-dir.sh  --source "/repos/msbuild/" --dest "/repos/msbuild/artifacts/source-build/self/src/" --copy-wip --clean" exited with code 1. [/root/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.21227.1/tools/Build.proj]

Build FAILED.

/root/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.21227.1/tools/SourceBuild/SourceBuildArcadeBuild.targets(123,5): error MSB3073: The command "/root/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.21227.1/tools/SourceBuild/git-clone-to-dir.sh  --source "/repos/msbuild/" --dest "/repos/msbuild/artifacts/source-build/self/src/" --copy-wip --clean" exited with code 1. [/root/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.21227.1/tools/Build.proj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.83
Build failed with exit code 1. Check errors above.

Expected Results:
Build should succeed.
Notes
I verified this works in a WSL Debian Buster environment.

[Triage] Closing as obsolete.


Swift Utility package for OData v4

ODataSwift is simple utility swift wrapper to generate OData Query V4 that works on iOS and OS X.
Makes using ODataSwift builder pattern APIs extremely easy  and much more palatable to use in Swift

We think, this pull request is important for iOS developer who are profoundly looking for odata in Swift. It would be great if you guys review the pull request as soon as possible.


Bootstrap all contributors

I used the all contributors cli to try and catch up with the contributors.
I did my best to go through the repo and see who had done what, but its likely that I have missed something so please do point out who/what I have missed.

Seeing this in action.... do we need contributors in both the README and contributors.md, or would just one do?

My thinking for going with both is, the repo is the 'front page' for interacting with the specification, but the site is the 'front page' for people consuming the specification. If you only did one you could miss some of your audience.

Do we need to think about acknowledging contributions from institutions, or are we happy with just individual GitHub users?

That's a good point. Fundamentally, all contributors works with GitHub accounts. Maybe we need something extra to recognise the contributions and support from institutions? Also, people contributing without directly touching the repository?

That's a good point. Fundamentally, all contributors works with GitHub accounts. Maybe we need something extra to recognise the contributions and support from institutions? Also, people contributing without directly touching the repository?

I can't think of anything automated, so we might have to manually add them in the Contributors section of the README. I would support merging this PR and thinking of some boilerplate text to add contributors i.e. does the contribution come from a survey?

I can't think of anything automated, so we might have to manually add them in the Contributors section of the README. I would support merging this PR and opening up an issue to get some boilerplate text to add contributors i.e. does the contribution come from a survey?

That sounds good to me.
Responses to the survey are anonymous, but we should at the very least have a note thanking everyone who completed the survey and engaged with us for their contributions.
@manics Are you also happy to merge these changes? Then I can open a new issue for capturing institutional, survey contributions?

@all-contributors please add @arronlacey for review


Wrap text in Trouble Diagnostics?

Apologies if this is a dumb question, but I couldn't find a good answer while searching.
Is it possible to wrap the text in the trouble diagnostics?
Here's an example where wrapping the text would make things much easier to read without having to scroll.

Thanks!

It's just vim buffer so you can do :set wrap. It doesn't look pretty though.

It seems like Trouble disabled this option by default. Is there a way to override this? Thanks!

You can press "K" (shift-k) to see a popup with the full text

I think this can be archived using autocmd. Since the file name is Trouble I tried the following but didn't work:
au BufRead,BufNewFile Trouble setlocal wrap linebreak	" Line wrap in Trouble files

If anyone has an idea on how to make it work, please, let me know!

I would love to have as an option that Trouble buffers always wrap text

I've opened a PR to add this feature here

Development on the main branch is EOL.
Trouble has been rewritten and will be merged in main soon.
This issue/feature either no longer exists or has been implemented on dev.
For more info, see https://github.com/folke/trouble.nvim/tree/dev


RaspberryPi, python 3.9.2 and asyncio-mqtt-0.14.0 getting ImportError on 'Concatenate' from 'typing_extensions'

Hi,
I am testing  asyncio-mqtt on a raspberrypi but that should not really matter, but I am getting the following error:
File "./main.py", line 23, in <module>
   import asyncio_mqtt as aiomqtt
 File "/.local/lib/python3.9/site-packages/asyncio_mqtt/__init__.py", line 3, in <module>
   from .client import Client, ProtocolVersion, ProxySettings, TLSParameters, Will
 File ".local/lib/python3.9/site-packages/asyncio_mqtt/client.py", line 33, in <module>
   from typing_extensions import Concatenate, ParamSpec
ImportError: cannot import name 'Concatenate' from 'typing_extensions' (/usr/lib/python3/dist-packages/typing_extensions.py)

Since I am on  Python 3.9.2 ,  typing_extensions is already installed so I am a bit confused.

Not sure why but I had to update type-extensions
pip install -Iv typing-extensions

Thanks for reporting.
It has been fixed in 2575d21.


Directory traversal vulnerability

We have an application running on a  Win 10 IoT Core raspberry pi using restup.  But it was flagged with a vulnerability from a scan from IT.
Basically if you send something like this from Postman.  It returns the contents of the C:\windows\win.ini file.
GET:
<IP_ADDRESS>:80/../../../../../../../../../../windows/win.ini
Is there any way to prevent it from going beyond the root of the application?  I didn't see anything in the documentation that indicated such an option.  I'm not sure if it allows writes/POSTs to those folders but IT is on my case about blocking this vulnerability.

Hi Versacall,
That's definitely a bug, it should not allow you to get files below the basePath that is specified.
What you could do to get around this is either copying the StaticFileRouteHandler class or creating a wrapper around StaticFileRouteHandler that throws an exception when a . or .. is specified in the request uri.
The proper fix should:

resolve the filePath to a full absolute path (so without . and .. in the file path)
check that the filePath starts with the basePath, if not, return a bad response

Are you willing / able to attempt fixing this? If not I can probably implement & push a fix this week.
Cheers,
Jark

Yeah, I reviewed the StaticFileRouteHandler class and see what you mean.  I'll clone the repo and try out the fix.  If it works I'll try and push up the changes if you want. (From this account, I have 2 GitHub accounts which is confusing)

I fixed the issue and made pull request #139.


Update protect-access.md with remote host Docker version requirement

Proposed changes
Update docs, expanding the note to include the minimum Docker version
that needs to be installed on the remote host.
This makes the existing error message more transparent:

please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host

In general, our docs reflect currently supported versions of docker; docker 18.09 has reached EOL more than three years ago; did you run into this issue on an even older version? (as those versions are no longer supported)

Understood., closing issue.  Unfortunately we are slow to upgrade and have not completed the migration to 18.09; which is where we ran into this.


Replace Touch controllers with hand models?

Any possibility to replace the Touch controller models with hands? I believe this is part of various SDKs, and could also allow hand gestures (pointing fingers, open/closed hands, etc.). No other change to UX would be necessary.
This would increase immersion tremendously. I don't know if this is a feature request for the HSVR mod or the underlying VRgin code.
Otherwise, the .6 version is working excellently.

This is definitely something I'd like to implement.
The current version actually already comes with hand models that were included for the Leap Motion support. In theory, I could just use them for a representation. The hands that come with the Oculus SDK would also be cool, but since I'm using OpenVR that's out of reach.
I'll look into it when I have some time on my ... hands.

It would be great even for Vive Wands. Seeing hands is definitely more immersive than seeing controllers.

By the way, I actually built a feature into Play Club VR that lets you control the hands of the person you're impersonating. Was just a quick hack, though.

Yeah, interaction in Play Club is cool. I hope there will be maestro mode in Honey Select one day. =)


Cannot set the value of read-only property 'sourceDirectories' for task ':app:jacocoTestReport'

When adding task in build.gradle and syncing, Im getting below error:
A problem occurred evaluating project ':app'.
> Cannot set the value of read-only property 'sourceDirectories' for task ':app:jacocoTestReport' of type org.gradle.testing.jacoco.tasks.JacocoReport.

What im doing wrong ?

For anyone who comes across this from a google, change
sourceDirectories = files([mainSrc])
to
sourceDirectories.from = files([mainSrc])

I definitely need to update this repo...

thanks @DamienDennehy

Updated the Java and Kotlin branches to latest stable tools


fix: Bot publish to azure failed in cross train step

Description
the recognizer file is end with .dialog, in azurepublish plugin will regard them as dialog.
The bf-lu package version is updated in other PR, we need to preserve the old version. We didn't update the plugin's build logic

filter the recognizer file
update the bf-lu to old version

Task Item
closes #4636

Screenshots

Coverage increased (+0.002%) to 55.168% when pulling cfcf41cbe789bbdde5de3dba752b17557636977e on lei9444:azurepublish into 5e9576e35f9d6920006fa5a832b48efbeea4025f on microsoft:main.


[5.1] Reconnect if lost connection during PDO instantiation

#10146

#10146

Already fix styleci issue.
This issue is tightly-related with specified database implement. Perhaps it can be tested by a mocked PDO connection, and it will only throw a Exception('Some database gone away');, but it doesn't make any sense.
Do you have any suggestion ?

Going to hold off on this pending more reports from the community.

@taylorotwell https://github.com/laravel/framework/issues/10204

Please rebase this.

Please rebase this.


V3 0 release

Independent SMS, Voice and Verify APIs with tests
Getters/Setters to extract/rewrite custom attributes
PSD2 Verification support
Dropping support for Python 2.7
Roadmap to better error handling

Closing on this side - once it's merged on the Vonage side, push master and the tag to this repo to keep them in sync (up until the Vonage repo has the namespace change)


umap.plot.connectivity and Seurat in R

Hi, the recent development of umap 0.4 is fantastic. I noticed that umap.plot.connectivity can plot gorgeous figures in python.
Currently, I am using Seurat (a single cell package in R) and wonder whether we could use umap.plot.connectivity in R or how to extract (and order) related matrix from Seurat object (ex. Matrix <- Seurat.object@assay$RNA@count and label <- Seurat.object$Cell_type) and then use it in python to perform umap.plot.connectivity.

And it could much better if umap.plot.connectivity could use the umap from Seaurat directely (Umap <- Seurat.object@reductions$umap@cell.embeddings).

I'm afraid that I have little expertise with R or Seurat, so you would likely be better off contacting the Seurat developers for an idea of how to get that to work. Sorry I can't be more help.

@lmcinnes thanks to your early reply. Are you familiar with Scanpy in python? I could transform my Seurat object in R into Scanpy object (adata that contains UMAP in obsm - X_umap) in python.
>>> adata
AnnData object with n_obs 脳 n_vars = 2730 脳 3451
    obs: 'paul15_clusters'
    uns: 'iroot', 'pca', 'neighbors', 'umap'
    obsm: 'X_pca', 'X_umap'
    varm: 'PCs'
    obsp: 'distances', 'connectivities'


Parameter in SELECT or JOIN

I know this isn't ideal, but I have a query where it basically is joining up a lookup table and the $child_pk var could be any number of a few strings like email, url, etc.  I'd like to join on that field and have it be a variable so I'm not rewriting the same query so I have it as:
LEFT JOIN $child_mod ON child_id = $child_pk
If I change it to LEFT JOIN $child_mod ON child_id = ? and add a parameter to the query $db->select($strSQL, [$child_pk]) style then I get an error of "ERROR: invalid input syntax for type integer" as I suspect it is doing ON child_id = 'email' instead of ON child_id = email as it parses out that $child_pk is a string.
Is there any way around this, or is it best to leave LEFT JOIN $child_mod ON child_id = $child_pk and run it through a custom function for security's sake before I call the select?  I figure I probably should run it through a check of some sort anyways as it's likely to show up in an AJAX call, but wasn't sure if there was a better way to handle this in PHP-DB.
Thanks.

Thank you!
This is a good example of what one might want to do with more dynamic queries, and of the challenges that come with that.
Right now, the only solution is indeed your own sanitization or escaping, although you are right that you should probably use an explicit allow list to check which tables and columns you want to support.
In the long term, the only elegant solution here is a full query builder that lets you assemble your queries from dynamically from scratch, for all clauses of a statement.
Let’s keep this open until we have a query builder here.


error while running bam2cns

I am running bam2cns to generate consensus from bam file generated using bwa and illumina data, and i am getting following error in Seq.pm
Use of uninitialized value $cigar[1] in string eq at /Downloads/proovread/bin/../lib/Sam/Seq.pm line 290,  line 3768977
.
.
Sam::Seq::State_matrixEmpty Cigar at /Downloads/proovread/bin/../lib/Sam/Seq.pm line 313,  line 3768977.
Please help me how can i solve this error?
Thank You

There seems to be a problem with parsing your bam file. Can you try and filter and remove unmapped and secondary/supplementary alignments first?
samtools view -bF 2308 my.bam -o my-filtered.bam

Thank You, removing secondary alignments worked for me.
Actually i am following this thread https://www.biostars.org/p/155236/
I have successfully run bam2cns, and now i have cns.fq file of size around 5 Gb, and to run this file with SeqFilter howmuch minimum memory is required, because i am running it in my server having 1 TB RAM and it is getting killed.
How can i run the command with big genome size?
Thank You

You will have to use another tool for trimming low quality regions. SeqFilter is not built to handle sequences of that size. Sorry...


IncorrectOperationException is thrown during quick-fix preview for some inspections

Related to https://github.com/hammer-tools/php-hammer/issues/10#issuecomment-1768638064

In copy @brazenvoid

Thank you for your time in reporting this issue. The fix has been implemented in version 0.26.0 and is available through the Releases page. This update will be available on the Jetbrains Market in approximately three days if you prefer to wait.
In response to your report:

The issue has been identified and resolved. Basically, when a quick-fix preview was initiated (often hidden or by user), an exception was thrown because the preview attempted to modify a real element instead of a copy.


An error ocurred while starting the kernel

<!---   *** BEFORE SUBMITTING: PASTE CLIPBOARD HERE TO COMPLETE YOUR REPORT ***   ---!>

An error ocurred while starting the kernel
The error is:

Traceback (most recent call last):
File "D:\anaconda\lib\site‑packages\spyder\plugins\ipythonconsole.py", line 1572, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle)
File "D:\anaconda\lib\site‑packages\jupyter_client\manager.py", line 240, in start_kernel
self.write_connection_file()
File "D:\anaconda\lib\site‑packages\jupyter_client\connect.py", line 547, in write_connection_file
kernel_name=self.kernel_name
File "D:\anaconda\lib\site‑packages\jupyter_client\connect.py", line 212, in write_connection_file
with secure_write(fname) as f:
File "D:\anaconda\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\anaconda\lib\site‑packages\jupyter_client\connect.py", line 102, in secure_write
with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\fakerone\\AppData\\Roaming\\jupyter\\runtime\\kernel‑c65991a48e66.json'

打开spyder时报的错，请问是什么原因，怎么解决？谢谢大神们！

Please open the Anaconda Prompt and run there
conda update anaconda
conda update jupyter_client

That should fix this problem.


nixos/postgresql: add upgradeFrom option

Closing in favor of #117 (this change of base seems to have confused github).


Adding Egyptian Arabic to the list of translations

Egyptian Arabic is a dialect of the Arabic language. It is always a delight for Egyptians to read since it is easier and more understandable.

Hey @Roshanjossey, I appreciate you merging this.
I am a bit confused. I think the translation matches Readme.md file, what part should be updated?

Hi @MichaelKMalak, I've pointed out 2 places where translation is different. If you look through again, you'll find more differences.

Okay, I will edit them now 👍


ios disribution build erro

Describe the issue
when I build the ios though developer certificates, successed and exported the ipa finnally. but instead of distribution certificates, failed and notice me ' ''VpnExtension.appex" requires a provisioning profile with the Network Extensions and App Groups features'. I checked my certificates seriously, certain included this two features. how to reslove it?
Environment

OS: macos 10.14.5
Yarn 1.16.0
Node.js 12.4.0

Additional context
the following is build log:
Running command: xcodebuild -exportArchive -archivePath Outline.xcarchive -exportOptionsPlist /Users/xxx/Downloads/vpn_clients/outline-client/platforms/ios/exportOptions.plist -exportPath /Users/xxx/Downloads/vpn_clients/outline-client/platforms/ios/build/device
2019-06-24 14:27:45.433 xcodebuild[83193:3434895] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/wr/qrbpz36s505b_2xm4p06m1mh0000gn/T/Outline_2019-06-24_14-27-45.433.xcdistributionlogs'.
error: exportArchive: "VpnExtension.appex" requires a provisioning profile with the Network Extensions and App Groups features.
Error Domain=IDEProvisioningErrorDomain Code=9 ""VpnExtension.appex" requires a provisioning profile with the Network Extensions and App Groups features." UserInfo={NSLocalizedDescription="VpnExtension.appex" requires a provisioning profile with the Network Extensions and App Groups features., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
error: exportArchive: "Outline.app" requires a provisioning profile with the Network Extensions and App Groups features.
Error Domain=IDEProvisioningErrorDomain Code=9 ""Outline.app" requires a provisioning profile with the Network Extensions and App Groups features." UserInfo={NSLocalizedDescription="Outline.app" requires a provisioning profile with the Network Extensions and App Groups features., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
** EXPORT FAILED **

hello. Have you solved the problem?


Fixed #32191 -- b64encode (& compress) messages to stay RFC compliant.

@craigiansmith Do you think you could give that a review?

LGTM. I have left a few comments. One in particular: what if django users are accessing cookie messages in the browser using Javascript? In that case, clearly explaining and testing how to access the message using Javascript would be important.

I wonder if and how often people are actually doing that; also running zlib in the browser might be fun for a few :)

In CookieStorage._encode the docstring reads in part:

Since the data will be retrieved from the client-side, the encoded data
also contains a hash to ensure that the data was not tampered with.

There are JS ports of zlib to use to decompress on front-end, but perhaps as well as documenting the change we need to provide the option not to compress messages.

but perhaps as well as documenting the change we need to provide the option not to compress messages.

I'd rather not. The only option would be a setting and there will be much resistance to add a new setting for this…

Superseded by #13800.


Rendering Overviewer Maps

I am trying to generate Google Maps-style maps with the Overviewer Mod in a CubicChunks generated world (build-the-earth.net project). The mod is not compatible with CC.. I forked the Overviewer project and am trying to make the necessary changes there.
Can someone point me in the right direction on what are the main differences between .3dr files versus the default .mca files?
So far I have seen that the naming schema of .3dr files is "-1.-1.-1.3dr" instead of "r.-1.-1.mca" so it looks like they have 3 coordinates instead of 2. I don't know much else about the serialization in these files.
Is there a tool to read the files in cleartext?
Thanks in advance

There is no such tool currently. But I provided a good explanation of the data format somewhere in a github issue for Amulet map editor (I will look it up and find it tomorrow).

I've noticed there is a CubicChunksConverter tool, could I use this to convert the CC map to vanilla? Would the heights remain preserved?

The explanation Barteks2x was talking about is here
The converter outputs 256 tall slices of a world, so unless the overviewer mod supports dimension stacking in some way, it wouldn't work


Make release script more idempotent and reliable

These changes ease the release process and further dev/testing by third parties like myself.
Please let me know if I'm missing some crucial bits from your release process. What I found is that strictly following the CONTRIBUTING.md guidelines, the prepare-release.sh script does not work reliably for non-master branches and different states where i.e node_modules might be missing or there's folders listed in .gitignore which will not be added without git add -f.

Might be actually worth ditching this script altogether and just include instructions or another script that uses GH-CLI instead?: https://cli.github.com/manual/gh_release_create
What do maintainers think?

Hi @brainstorm
I don't quite get your intention on this change. The release script is meant to be used to make the release process of releasing the official action easy. I don't expect anyone but the maintainers to run it. Why would you need to run this script in your local dev/testing? I think for testing locally running npm build should be enough to test the locally built version of the action. This is how CI runs work eg. here

Those changes were a year ago now, wow!... IIRC my intention was to allow me to release the GHA on my own fork. But nevermind, definitely not useful right now, closing.


Add the location of the service we are calling to the API error logs

This will make it a bit easier to find which service failed when investigating machine failures. Currently you need to look around for other logs that specify which region the machine is in, which is annoying.
Ideally in the future we have some sort of ID from the service to be able to easily identify logs on the service side.

/gcbrun


UserUpdated doesn't trigger on username and avatar changes. Nor does UserPresence

Voltana said
"They give username changes to us through presence updated, but it's not a part of presence"
I'd personally like it to trigger on UserUpdated : )

I'll review this in a few hours. I'm taking today to bang out several issues.


chore(http)!: remove prelude

Remove the http prelude.
Continued from #1257 and #1265.

Codecov Report

Merging #1273 (e008245) into next (006424b) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             next    #1273      +/-   ##
==========================================
+ Coverage   30.91%   30.93%   +0.02%
==========================================
  Files         361      361
  Lines       14291    14291
==========================================
+ Hits         4418     4421       +3
+ Misses       9873     9870       -3

Impacted Files
Coverage Δ

http/src/request/mod.rs
78.57% <ø> (ø)

http/src/routing/route.rs
6.06% <0.00%> (ø)

http/src/routing/route_display.rs
10.74% <0.00%> (+0.57%)
:arrow_up:

Continue to review full report at Codecov.

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


Add support for user-specified timeout and retry options in the client.

Sailthru customer support suggests retrying on transient failures when
talking to sailthru.  This adds support to the client library to make
it easy to do so.  We retry on connection timeouts and all 5xx
errors.  We do not retry on read timeouts since it's not safe for
POSTs, which are not idempotent (it would be ok for GETs, but that's a
TODO for another day).
Test Plan:
I couldn't figure out how to write an automated test for this since
requests hides all the retry logic from us.  (I didn't want to mock
the internals of the requests module since I felt that was brittle.)
But I did create a local server with a route that always returns a
500, and supports only GET and not POST (so it gives a 500 for GET and
a 403 for POST).  I then did
>>> import sailthru
>>> c = sailthru.SailthruClient('key', 'secret', api_url='http://localhost:8080', retries=3, timeout=5)
>>> print c.api_get('crash', '').is_ok()
None

and looked in the server-logs and saw the /crash url was hit 4 times.
I then did
>>> print c.api_post('crash', '').is_ok()
None

and looked in the server-logs and saw the endpoint was only hit 1 time
this time.
I then added a route to my server that waits before it responds, and
did
>>> print c.api_post('sleep', '').is_ok()
None

and timed that it took 5 seconds for this to run.

(Oops, sorry, I'll be doing this later but want to get it reviewed locally first!)


Bug in met_util.py function reformat_fields_for_met

Bug occurs when there is "extra" information to describe the variable. If the last variable listed in the conf file has associated extra information, the field isn't closed correctly (has a , at the end) and MET throws a syntax error. See below the snippet of code below.
if extra:
extra_str = extra + '; },'
name_level_extra_list.append(extra_str)
else:
# End the text for this field. If this is the last field,
# end the dictionary appropriately.
if var == all_vars_list[-1]:
# This is the last field, terminate it appropriately.
name_level_extra_list.append('}')
else:
name_level_extra_list.append('}, ')

The bug has been fixed and feature_108 branch merged into develop.


[CLOSED] Add cmdlet to export diagnostic file for use on adfshelp.microsoft.com

 Issue by msalim
Friday Jul 13, 2018 at 23:20 GMT
Originally opened as https://github.com/Microsoft/adfsManagementTools/pull/12

msalim included the following code: https://github.com/Microsoft/adfsManagementTools/pull/12/commits

 Comment by msftclas
Friday Jul 13, 2018 at 23:20 GMT

 All CLA requirements met.


Many aliases don't work

Many aliases defined in lib.typ are not present in #codly-languages.
This works:
#import "@preview/codly-languages:0.1.1": *
#codly-languages.at("cs")

This does not (dictionary does not contain key "vimscript" and no default value was specified):
#import "@preview/codly-languages:0.1.1": *
#codly-languages.at("vimscript")

Thanks for sharing. I'll look into this.

Should be fixed by this: https://github.com/swaits/typst-collection/commit/0d84c91d6eb2ee0fb68ae45e41a1bc1f63774708
And will be live once this gets merged: https://github.com/typst/packages/pull/1356
Please reopen if that doesn't fix it for you.


Determine terminal character size in a font-agnostic way

Integrated terminal master issue: #143
The width/height of the terminal is currently based on a hard coded character size, this needs to be based on the character size in the monospace font being used.

Fixed in https://github.com/Microsoft/vscode/pull/6998, thanks @kisstkondoros!


NextJS functionality: Multi zones

Is your feature request related to a problem? Please describe.
We would like to make a switch from Vercel to AWS Amplify with our NextJS application.
But, we found a blocker - Amplify doesn't support NextJS functionality: multi-zones.
https://nextjs.org/docs/advanced-features/multi-zones
Describe the solution you'd like
There could be an easy deployment of multi zones on Amplify.
Additional context

@arianaamx can you not use re-writes with custom domains to give your end customer the same experience?

Are Amplify redirects and rewrites a solution?


feat: allow use as a singleton

This might make things even easier to get started?  It exports a singleton version of verified fetch that creates the backing Helia node on the first fetch access, transparent to the user.
import { verifiedFetch } from '@helia/verified-fetch'

const response = await verifiedFetch('ipfs://Qmfoo')

console.info(await response.json())

It's not in this PR but maybe we'd want to allow some config:
import { verifiedFetch } from '@helia/verified-fetch'

const response = await verifiedFetch('ipfs://Qmfoo', {
  gateways: ['https://...']
})

console.info(await response.json())

Calling this twice with different gateways might result in an error.
import { verifiedFetch } from '@helia/verified-fetch'

const response1 = await verifiedFetch('ipfs://Qmfoo', {
  gateways: ['https://foo...']
})

const response2 = await verifiedFetch('ipfs://Qmfoo', {
  gateways: ['https://bar...']
})
// Error: Only one set of gateways/routers may be specified, please use `createVerifiedFetch` for more flexibility

It's not in this PR but maybe we'd want to allow some config:

I think we should leave the singleton to the most basic, unconfigurable, usecase and have users use createVerifiedFetch if they want to customize gateways, so that we don't have to muck around with error and edge-cases or confusion on the second options argument.


WIA supported user agents

I'm on the ADFS team at Microsoft.  I get these calls all the time.  In my opinion, we should have something in this article about adding Chrome to the WIA supported user agents list in ADFS.  That would of saved me 2 hours today.  It was working in IE the whole time.  The customer kept testing with Chrome.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: cae6d9d8-4a22-f41e-a43f-b88816ae4519
Version Independent ID: aad0e220-49d9-b9bc-10b7-ea0155af1d96
Content: AD FS Troubleshooting - Integrated Windows Authentication
Content Source: WindowsServerDocs/identity/ad-fs/troubleshooting/ad-fs-tshoot-iwa.md
Product: windows-server
Technology: ad-fs
GitHub Login: @billmath
Microsoft Alias: billmath

Hi @MichaelHall001,
Please send an internal email to the Windows Server Content Team and reference this GH issue.
Thanks,
Ingrid


Added code to delay triggering events until after browser loads

I have tried this within index.js, but it looks like its not working.
document.addEventListener('DOMContentLoaded', function(event) {
    // init profile here
});

The following works though:
window.addEventListener("load", function () {
// init profile here
}

What are your thoughts on using this? AFAIK this load event should be fired after the entire document including all sub-resources have finished loading.


Player keeps moving when using movementEnabled: false

When using an element like:
<a-entity camera kinematic-body />

And I programmatically set
setAttribute('universal-controls', 'movementEnabled: false')

The player keeps rolling at the speed it was travelling before. You have to stop the player completely before disabling movement. It'd be better if the player rolled to a stop even if you have movementEnabled set to false.

Thanks! Yeah I agree decelerating but ignoring new input seems best.


Add Feed RecyclerView with LoadingView

https://github.com/GoodTripProject/GoodTrip/assets/112244451/d9d4a536-50ca-47e4-af29-0ac9ea64e850


Add salmonskinroll's address to split reward list

Add salomskinroll's address to split reward list.

A new build of 6f17d8123b5a03c395d8150b11fc3bf54b6bb164 has completed succesfully!
Binaries available at https://build.nav.community/binaries/add_salmonskinroll_splitreward_address


Support all Pulumi Languages

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details
Currently pulumi-cdk only directly supports Typescript:

Note: Currently, the Pulumi CDK Adapter preview is available only for TypeScript/JavaScript users.
(via README)

It would be nice if all Pulumi languages were supported.
This is presumptively made difficult by CDK being based on jsii, which means all of the CDK implementation languages have a ts/js dependency.
Affected area/feature
pulumi-cdk

Thanks @fitzoh for raising an issue to track this.
In prior discussions, we imagined that it may be possible to use JSII itself to project the current library as a multi-language package usable in other CDK languages.  We may still need to make the conversion functions for Pulumi Output to/from CDK Token be implemented uniquely for each language, but we believe something along these lines should be able to make this work.
Definitely something we'd love to add.
Out of curiosity - is there a specific Pulumi/CDK language you are looking to use?

Out of curiosity - is there a specific Pulumi/CDK language you are looking to use?

Currently using Python for both CDK and Pulumi

I'm also curious about support for other languages. Are there any plans for this year to support other languages than TS? I'm interested specifically in Python. Being able to use L2/L3 constructs would be a game changer.

Support for other languages will certainly be most welcomed. We have an existing set of CDK stacks written in Python that we're slowly migrating to Pulumi. It would have made a huge difference for us had pulumi-cdk been available for other languages (such as Python).

Looking into this a little I think we should be able to use JSII to do the bulk of the work. JSII will generate an internal JSII node service and a public API in the language SDK. The language SDK will simply proxy to the JSII node service. We would then only have to maintain a handwritten SDK interface in each language which proxies to the JSII node service.

Python please!


Soft delete & Blocked FileTypes

Added: soft deletion of document in Cosmosdb (updating delete column)
Added: blocked fileTypes in docAPI

Hi, is there anything to work on this?
As I want to contribute and a beginner.
Not sure really is this the right place to comment.


WinRM and Kerberos

Hello Guys,
Can you please guide me in setting up WinRB to work with Kerberos authentication. I am able to get it work with Basic and Unencrypted authentication. But I really need to have Kerberos authentication for production infrastructure.
Really appreciate all your help.
Regards,
Saurabh

Can someone please assist ?

You can use the Kerberos library supported by the OS where you're running this gem. You should validate you have the library properly configured using its own procedures and tools.
Once you have that working then simply instantiate a WinRM service object as in the readme:
winrm = WinRM::WinRMWebService.new('http://mywinrmhost:5985/wsman', :kerberos, :realm => 'example.com')

It would be really helpful if you can guide me in the right direction for getting Kerberos to work. Really appreciate any help you can provide.

Have you followed the instructions for winrm over https as outlined here: https://support.microsoft.com/en-us/kb/2019527 ?
I haven't had any success in my environment with getting this working on https/5986, but I haven't had much time to devote to researching the issue.
I don't think this is an issue with the winrm gem, but rather an issue with the complexities of secured environments and how they communicate - my apologies to anyone if there is a better method for communicating other than github, and I'm simply unaware of it.
Kerb authentication works fine over http/5985, but the https portion I haven't solved.

On Dec 14, 2015, at 8:02 PM, Saurabh N. Deshpande<EMAIL_ADDRESS>wrote:
It would be really helpful if you can guide me in the right direction for getting Kerberos to work. Really appreciate any help you can provide.
—
Reply to this email directly or view it on GitHub.

Thanks a lot. I will give this a try.


using LoginKit on Objective-C project

dears
i want to using it on Obc-C project.
but, It seems that there is a problem with the operation.
can u check this case?
thank you
p.s.

Hi!
LoginKit is Swift only. But I will possibly look into supporting Obj-C in the future.
Thanks!


run  fuchsia.sh  error

log------
zhang@lp:/mnt/g/ijk/fuchsia/code$ ./fuchsia.sh
: not foundh: 2: ./fuchsia.sh: clear
: not foundh: 3: ./fuchsia.sh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libsdl1.2-dev' instead of 'libsdl-dev'
E: Unable to locate package build-essential
: not foundh: 8: ./fuchsia.sh:
mkdir: cannot create directory ‘/mnt/g/ijk/fuchsia/code/fuchsia\r’: No such file or directory
mkdir: cannot create directory ‘/mnt/g/ijk/fuchsia/code/fuchsia\r’: No such file or directory
mkdir: cannot create directory ‘/mnt/g/ijk/fuchsia/code/fuchsia\r’: No such file or directory
./fuchsia.sh: 11: cd: can't cd to fuchsia
ERROR: cannot find .jiri_root
ERROR: jiri: unknown command "update\r"
Command jiri is a multi-purpose tool for multi-repo development.

This seems like a Fuchsia related issue, not Dart. I'm not sure which Fuchsia project this would belong to, but check where you received the Fuchsia code from and file an issue there.

There is no fuchsia.sh in the Dart or Fuchsia repos. Maybe it would be better to try to get help with what you're trying to do on Fuchsia's IRC channel?


fix(fe/src/dashboard): optional chaining for possibly nullable parent attribute in LayoutItem type

fix(fe/src/dashboard): optional chaining for possibly nullable parent attribute in LayoutItem type
SUMMARY

Add null checks via optional chaining for parent attribute of LayoutItem type. This has been done in the past, this PR is to roll out for remaining usages and re-type the attribute to be Partial.
Fixes #30418
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

CI should all pass
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Change in package-lock.json is due to Dependabot's version bump without running npm ci by itself.

Hello, could this PR be considered for the next release (I don't have permission to add labels)? I don't see it in the latest release, 4.1.1. This looks like a non-breaking change to me and think it should be appropriate for a patch or minor release.
For further context on the impact of this change, please refer to the issue I raised at the end of September here.
Thanks

@sadpandajoe what do you think about this PR as a candidate for 4.1.2?  I didn't want to add it to the board without your input.  Not urgent, if you have a way to bookmark it for consideration in 4.1.2 this doesn't need a fast response.

@sadpandajoe what do you think about this PR as a candidate for 4.1.2? I didn't want to add it to the board without your input. Not urgent, if you have a way to bookmark it for consideration in 4.1.2 this doesn't need a fast response.

@sfirke feel free to add things to the board as things that are fixes could go in when we cut the release.

Thanks @sadpandajoe !  FYI @Stanhoucke I added it to the 4.1.2 project board here: https://github.com/orgs/apache/projects/437/views/1  It should get evaluated at the 4.1.2 cutting and if appropriate, cherried into the release.

That's great, thanks @sfirke


Error in bind_user method

Hi. There may be a bug in bind_user method.
The code self.get_object_details(user=username, dn_only=True) returns a string in python3,  so user_dn should be a string and doesn't have decode method.
My test environment : python3.5  openldap  flask-simpleldap-1.1.0  pyldap-<IP_ADDRESS>

I got exactly the same problem!
python3.5

Same here on Python 3.4.3
From Traceback:
conn.simple_bind_s(user_dn.decode('utf-8'), password)
AttributeError: 'str' object has no attribute 'decode'

Same here...
File "/usr/local/lib/python3.5/dist-packages/flask_simpleldap/__init__.py", line 152, in bind_user

conn.simple_bind_s(user_dn.decode('utf-8'), password)

AttributeError: 'str' object has no attribute 'decode'

I can only get it to work with python2.7 instead of python 3.5.

Fixed in version 1.1.2.


Backport for 2.7.4

Backport of:

https://github.com/kubev2v/forklift/pull/1184
https://github.com/kubev2v/forklift/pull/1168

I have by accident included MTV-1645 Change default network annotation I removed it from 2.7 branch


"TypeError: no implicit conversion of nil into Hash" when upgrading to Rails 5

Hello,
After upgrading to Rails 5, I am seeing "TypeError: no implicit conversion of nil into Hash" error messages.
I traced the error to this line - https://github.com/ordinaryzelig/minispec-metadata/blob/master/lib/minispec-metadata/describe.rb#L37:
super_describe_metadata.merge(@describe_metadata)
So @describe_metadata is nil at times. If I change this line to:
super_describe_metadata.merge(@describe_metadata || {})
then the error does not appear.
I'll put the fix in a Pull Request.

What version of ruby, minispec-metadata, minitest, and rails are you using? I tried to reproduce your error but couldn't get it to pop up. Here's what I'm using:
ruby 2.4.0
minispec-metadata 3.2.1
minitest 5.10.1
rails 5.1.0
Any chance you could make a blank rails app and reproduce it for me?

@ordinaryzelig I'll try!

Hey @ordinaryzelig, finally I've been able to isolate and reproduce the error in a minimal Rails app.
https://github.com/fredngo/minispec-metadata-issue-12
Sorry that it took a while, this was extracted from a very large codebase. I've made the Rails app as tiny as possible in order to make it as easy as possible for you to take a look.
I've added you as a collaborator on that repo.
I've left all the details you need in order to reproduce the error in the README file.
Let me know what you think!

Awesome! Thanks for taking the time to do that. Huge help. I'll take a look soon.

@fredngo released new version. I tried it locally with the repo that you created, and it worked. Give it a try and let me know if it works for you too.

Awesome, will try soon!

It works for me, time to close this up. Thanks @ordinaryzelig !

Great. Thank you too.


Feature suggestion: Timezone override

One user mentioned they keep their device in UTC, but would like to use Trail Sense in their timezone. Allowing a custom timezone would allow them to do that, but it may be a lot of work to implement (I'm not sure how common this scenario is, more research needed).

Unfortunately, the amount of effort required to implement this is too large compared to the number of impacted users / use case.


Make minimum volume capacity configurable

I'm getting this error when requesting a volume <1Gi:
 GRPC error: rpc error: code = InvalidArgument desc = Invalid input: required bytes is smaller than 1G
From what I can tell this is defaulting to a 1Gi minimum size if a custom range is not provided, but I cannot see a way for a user to configure the value. Is a 1Gi minimum volume size a limitation of Synology or is it possible to just add another flag to override it? Happy to raise a PR if its just a case of passing in a new value.
https://github.com/SynologyOpenSource/synology-csi/blob/53cefcbc02878dd6982bc5f0666930f782694abe/pkg/driver/controllerserver.go#L46-L48

hi @hotpheex,
Yes, the 1Gi minimum size is a limitation of Synology LUNs, as specified in the documentation.
In Synology DSM, the minimum size for a LUN is 1GB(Gi), and the minimum quota for a shared folder is 1MB(Mi).
In the current implementation of synology-csi, we have standardized the minimum volume size to 1GB.
Perhaps a better approach would be allowing file protocols, such as SMB and NFS, to set the size smaller than 1Gi (but at least 1Mi).
Certainly appreciate your raising a PR! The earlier suggestion is something you might consider. Thank you in advance for your contribution!


Add new help articles to sql migration dashboard

This PR adds new articles to the help section of the dashboard.

@rchlkm looks good. Added a comment for a typo

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 48.28%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
14788

Relevant Lines:
29081

💛  - Coveralls

@rchlkm - code looks good. The screenshot above still has the typo. As long as the typo is good, please proceed.


Added Dockerfile for whois

I tried to use Alpine, but whois can't work.
I'll try to use scratch :D

nah dont worry!
On Fri, Jun 3, 2016 at 10:45 AM Airton Zanon<EMAIL_ADDRESS>wrote:

I tried to use Alpine, but whois can't work.
I'll try to use scratch :D
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jfrazelle/dockerfiles/pull/138#issuecomment-223645839,
or mute the thread
https://github.com/notifications/unsubscribe/ABYNbMwCWU6bilq3HxOqOyAJVx7NV-vlks5qIGhQgaJpZM4IbWiZ
.

oh it looks like there is a whois package in edge :)
https://pkgs.alpinelinux.org/package/edge/testing/x86_64/whois
On Fri, Jun 3, 2016 at 11:17 AM Jessica Frazelle<EMAIL_ADDRESS>wrote:

nah dont worry!
On Fri, Jun 3, 2016 at 10:45 AM Airton Zanon<EMAIL_ADDRESS>wrote:

I tried to use Alpine, but whois can't work.
I'll try to use scratch :D
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jfrazelle/dockerfiles/pull/138#issuecomment-223645839,
or mute the thread
https://github.com/notifications/unsubscribe/ABYNbMwCWU6bilq3HxOqOyAJVx7NV-vlks5qIGhQgaJpZM4IbWiZ
.

Hey, now it is working :D Thank you so much.
Now using the package that you told.

merged thanks!


upload new model performance

Model: CodeSage-large
{
    "Model": "CodeSage-large",
    "Model Size (Million Parameters)": 1300,
    "URL": "https://huggingface.co/codesage/codesage-large",
    "Apps": 34.16,
    "CosQA": 28.59,
    "Synthetic Text2sql": 57.9,
    "CodeSearchNet": 90.58,
    "CodeSearchNet-CCR": 84.36,
    "CodeTrans-Contest": 80.1,
    "CodeTrans-DL": 33.45,
    "StackOverFlow QA": 79.46,
    "CodeFeedBack-ST": 66.06,
    "CodeFeedBack-MT": 55.72,
    "Avg": 61.04
}

Model: CodeSage-large-v2
{
    "Model": "CodeSage-large-v2",
    "Model Size (Million Parameters)": 1300,
    "URL": "https://huggingface.co/codesage/codesage-large-v2",
    "Apps": 50.45,
    "CosQA": 32.73,
    "Synthetic Text2sql": 59.78,
    "CodeSearchNet": 94.26,
    "CodeSearchNet-CCR": 78.09,
    "CodeTrans-Contest": 85.27,
    "CodeTrans-DL": 33.29,
    "StackOverFlow QA": 79.41,
    "CodeFeedBack-ST": 71.32,
    "CodeFeedBack-MT": 57.16,
    "Avg": 64.18
}

Results of other codesage models are available here.
Seeking your attention @archersama

Python script that can be used to reproduce the numbers.
import argparse
import logging

import mteb
from mteb import MTEB
from sentence_transformers import SentenceTransformer

logger = logging.getLogger(__name__)

eval_tasks = [
    "AppsRetrieval",
    "CosQA",
    "SyntheticText2SQL",
    "COIRCodeSearchNetRetrieval",
    "CodeSearchNetCCRetrieval",
    "CodeTransOceanContest",
    "CodeTransOceanDL",
    "StackOverflowQA",
    "CodeFeedbackST",
    "CodeFeedbackMT",
]

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("--model_name", default="codesage/codesage-base-v2",
                        type=str, help="Input file")
    args = parser.parse_args()

    model = SentenceTransformer(args.model_name, trust_remote_code=True)
    tasks = mteb.get_tasks(tasks=eval_tasks)
    evaluation = MTEB(tasks=tasks)
    results = evaluation.run(
        model=model,
        overwrite_results=True
    )

    print(f"CoIR Evaluation results for model: {args.model_name}")
    for result in results:
        print(f"task: {result.task_name}, ndcg_at_10: {result.scores['test'][0]['ndcg_at_10']}")

Great work! We will add it to the CoIR leaderboard. Could you also include it in the CoIR section of MTEB? I believe this will significantly enhance the visibility and impact of your work.

CodeSage is added to CoIR leaderboard

Could you also include it in the CoIR section of MTEB?

Do you know how can I do that? I am not aware of the process.

just follow this instruction
https://github.com/embeddings-benchmark/mteb/blob/main/docs/adding_a_model.md


CVMFS logs in job logs are not properly retrieved

In jobsub stderr logs CVMFS logs are not properly retrieved.
For example in this job stderr log toward the bottom there is:
cvmfs info:
sed: -e expression #1, char 31: unterminated address regex

This would almost certainly be the sed filter line set at
https://github.com/fermitools/jobsub_lite/blob/master/templates/simple/simple.sh#L455
so one possibility I see right away is in the simple.sh template
https://github.com/fermitools/jobsub_lite/blob/master/templates/simple/simple.sh#L443
we have a "dune" where we ought to have a {{group}} when trying to get the second latest log message,
So this might work for "dune" but not others(?).

Other than replacing "dune" with  {{group}}  as mentioned by Marc, I think we need another change in this line
https://github.com/fermitools/jobsub_lite/blob/master/templates/simple/simple.sh#L443
here for the code
second_latest_rev_re=$( echo "$dummyline"; attr -g logbuffer /cvmfs/dune.opensciencegrid.org/ |

only the attr output is passed through the pipe and folloing chained commands, this is causing the variable second_latest_rev_re to be on two lines.
Later on this variable is used in
https://github.com/fermitools/jobsub_lite/blob/master/templates/simple/simple.sh#L455
and being second_latest_rev_re on two lines is breaking the sed expression.
I think line 443 should be replaced by:
second_latest_rev_re=$( (echo "$dummyline"; attr -g logbuffer /cvmfs/dune.opensciencegrid.org/) |

to let the "echo" output to go through the pipe and the other chained commands.


WIP[3.0] Pull logic out of TraitUsageGenerator and into ImportGenerator

[x] not the responsibility of TraitUsageGenerator.
[x] Additionally since i want to add has- and remove methods (see #26) I think the alias logic has to be rewritten. It is currently stored in an array where the key equals its value. It's sibling method 'getUses' simply returns array_values for that. I don't see any reason for this state keeping.
What would be a good way to properly store use and aliases such that I can add hasUse($use), hasUseAlias($use, $alias) removeUse($use) and removeUseAlias($use, $alias)?

@ocramius pointed out to me this can't be merged until 3.0 (BC)
also perhaps the TraitUsageGenerator should be named 'UsageGenerator'. If so this functionality should remain in (the renamed) UsageGenerator class.
for now I will place the (refactored) functionality (with remove/has methods) in TraitUsageGenerator via #26

Looking back at this: having a usage generator feels simpler. Can't remember what the backing reasoning for this PR was...

Closing as incomplete: I don't think we should go further with this unless there is a strong use-case for generating a lot of trait imports (and since this is a code generator, we can actually do the compiler-aided includes ourselves, instead of using traits ;-) )


bulk_alter_groups not working with SAML Users

Describe the bug
In an installation (docker setup according to readme) with enabled SAML authentication, the bulk altering of Users, especially adding / removing groups to multiple users ist not working.
Example:
(can be reproduced on multiple instances)
Creating an internal User additionally to the existing SAML users.
UserId 55 is an SAML-User
UserId 124 is an internal User
Request-Body Api-Call /rest/users/user/bulk_alter_groups/
{"user_ids":[124,55],"action":"add","group_ids":[11]}
Result:
internal Users 124 is added to an group (id 11), SAML User 55 has no aditional group.
No error is shown.
How to Reproduce
Steps to reproduce the behavior: preferably on nighty

Having SAML enabled
Having at least one SAML User logged in
Create a new internal User
Click on 'bulk edit'
Select one internal and on saml User
Click on 'add / remove groups', choose on, add the group
See groups of the users

Expected behavior
Bulk adding / removing of groups is working with all user.
System information

OpenSlides-Version: 3.2 / master
Python Version: 3.8
Browser: chrome / firefox

@emanuelschuetze We explicitly excluded SAML users form these bulk actions. Whats your opinion here?

Was there a reason why we do so?

In my opinion, SMAL users should not be excluded here. The leading system for group assignment should be OpenSlides.
If there was a reason for this, would a parameter in the system settings be interesting?

In my opinion, SAML users should not be excluded here.

+1 (I see no reason to exclude SAML users.)


containsStringIgnoringCase

Hi,
is there a method similar to equalsIgnoringCase for containsString?
like for example containsStringIgnoringCase?
Id like to check if a sting is contained in another string regardless of case.
e.g.
"sofa" matches "Sofa-bed"
Thanks

I have created a matcher as per: http://stackoverflow.com/questions/26762099/i-need-matcherstring-containsstringmatcherstring-matcher-am-i-doing-somet


[dubbo-2072]: need javadoc and articles for spring annotation use.

What is the purpose of the change
improve javadoc, and annotation's default value
Brief changelog
dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/annotation/Service.java
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[ ] Run mvn clean install -DskipTests & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

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

@@             Coverage Diff             @@
##             master   #2076      +/-   ##
===========================================
- Coverage     53.08%     53%   -0.09%
+ Complexity     4957    4953       -4
===========================================
  Files           559     559
  Lines         24894   24894
  Branches       4432    4432
===========================================
- Hits          13216   13195      -21
- Misses         9658    9674      +16
- Partials       2020    2025       +5

Impacted Files
Coverage Δ
Complexity Δ

.../dubbo/remoting/transport/netty4/NettyChannel.java
56.25% <0%> (-10%)
20% <0%> (-3%)

...ubbo/rpc/protocol/dubbo/ChannelWrappedInvoker.java
41.66% <0%> (-8.34%)
3% <0%> (ø)

...apache/dubbo/rpc/protocol/dubbo/FutureAdapter.java
58.06% <0%> (-6.46%)
3% <0%> (ø)

...he/dubbo/remoting/transport/netty/NettyServer.java
67.85% <0%> (-3.58%)
8% <0%> (-1%)

...e/dubbo/remoting/transport/netty4/NettyServer.java
72.13% <0%> (-3.28%)
9% <0%> (-1%)

...bo/remoting/transport/netty/NettyCodecAdapter.java
53.12% <0%> (-1.57%)
3% <0%> (ø)

...dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java
77.2% <0%> (-1.48%)
29% <0%> (ø)

.../src/main/java/org/apache/dubbo/rpc/RpcStatus.java
57.89% <0%> (-1.06%)
18% <0%> (ø)

...apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java
58.33% <0%> (-0.84%)
30% <0%> (-1%)

.../java/org/apache/dubbo/config/ReferenceConfig.java
46.97% <0%> (-0.72%)
38% <0%> (ø)

... and 2 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 32b7c17...54db403. Read the comment docs.

LGTM!


Stuck at Solving the Environment

Issue: The conda installation is stick at solving the environment part and not going further.

Environment (conda list):

Anaconda 3.5.2, Python 3.6.5, Platform: Linux (ubuntu)
```
$ conda list

Details about  conda and system ( conda info ):

$ conda info

I recommend creating an environment from scratch for graph-tool only, and then installing other packages to it one-by-one, if you need them.
conda create -n gt -c conda-forge graph-tool
conda activate gt

# Additional packages
conda install ipython
conda install jupyterlab

@stuarteberg Could you please put this in the README.md as the recommend way of installing? Proceeding in the standard way from a clean anaconda install results in a stuck environment solving...

Could you please put this in the README.md as the recommended way of installing?

OK, as you saw, I created and merged #17 for this, but I think the feedstock readme is not the ideal location for these instructions:

The feedstock README is auto-generated, so I think it will be overwritten the next time this recipe needs to be re-rendered.
I suspect most conda users are unaware of the existence of feedstock repos, and are unlikely to inspect the feedstock README for guidance.

I think the ideal place for these instructions is the [graph-tool documentation itself][1].  Perhaps you can paste the new text into those docs?

Yes, I will do that.

Minor side note: To be technically correct, the docs should say that it's possible to install graph-tool via conda, not "Anaconda".
conda is the package manager, whereas Anaconda and conda-forge are each distributions that both happen to use that package manager.  (Somewhat analogous to RedHat and CentOS -- both use RPM, but they are distinct distributions.  Anaconda packages and conda-forge packages can sometimes be mixed without trouble but I don't recommend it.)
Our graph-tool package is part of the conda-forge distribution, not the Anaconda distribution.

I guess it's obvious at this point that I'm not an avid (ana)conda user. :-)
Thanks for the correction; I've updated the documentation!

@gkrish19 -- Hopefully the instructions above worked for you.  If not, reopen this issue and provide the output of conda info and conda list, as well as the exact commands you tried (and their output).

Thank you for your help. It works now.


setIntervals for checking job statuses should be stored in the tile object and cleared/restarted when the program launches or the active AOI changes

when the active AOI changes, the tiles with active intervals should be cleared. When the aoi is activated, tiles with job statuses of submitted or assigned, new intervals should be created and assigned.

The master job list stores job information, one for each tile by tile id. This info is loaded up from the localstorage.json and added to the master tile dict.


TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

I am getting this error that i saw in issue #567 whenever i retry a request. I am using python 2.7.11. i have requests version 2.9.1 installed but i did not install urllib3
Traceback (most recent call last):
  File "/home/vagrant/development/demo/api.py", line 223, in make_request
    response = session.post('https://httpbin.org/status/500',data=self.REQUEST_DICT,timeout=15)
  File "/home/vagrant/.virtualenvs/vdemo/lib/python2.7/site-packages/requests/sessions.py", line 511, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/vagrant/.virtualenvs/vdemo/lib/python2.7/site-packages/requests/sessions.py", line 468, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/vagrant/.virtualenvs/vdemo/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/home/vagrant/.virtualenvs/vdemo/lib/python2.7/site-packages/requests/adapters.py", line 376, in send
    timeout=timeout
  File "/home/vagrant/.virtualenvs/vdemo/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 657, in urlopen
    retries = retries.increment(method, url, response=response, _pool=self)
  File "/home/vagrant/.virtualenvs/vdemo/lib/python2.7/site-packages/requests/packages/urllib3/util/retry.py", line 228, in increment
    total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

import logging
import requests
from requests.packages.urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
from .exceptions import PaymentError, RequestError, GatewayError
import httplib
import urllib
import xml.dom.minidom

class RetryAdapter(HTTPAdapter):
    def __init__(self, *args, **kwargs):
        super(RetryAdapter, self).__init__(*args, **kwargs)
        method_whitelist=frozenset(['POST','HEAD', 'TRACE', 'GET', 'PUT', 'OPTIONS', 'DELETE'])
        self.max_retries = Retry(total=self.max_retries, backoff_factor=5, status_forcelist=[429, 500, 502, 503], method_whitelist=method_whitelist)

class Base(object):

    def make_request(self, uri):
        session = requests.Session()
        session.mount('https://httpbin.org/status/500', RetryAdapter(max_retries=2))

        try:
            response = session.post('https://httpbin.org/status/500',data=self.REQUEST_DICT,timeout=15)
            response.raise_for_status()

        except requests.exceptions.ConnectionError as e:
            logger.exception(e.message)
            raise GatewayError('Service temporarily unavailable. Please try again')

        except requests.exceptions.HTTPError as e:
            logger.exception(e.message)
            if self.REQUEST_DICT['mode'] == 'query_trans':
                raise GatewayError('Service temporarily unavailable. Please try again')
            else:
                raise PaymentError('Error getting response from gateway')

        except requests.exceptions.ConnectTimeout as e:
            logger.exception(e.message)
            raise GatewayError('Service temporarily unavailable. Please try again')

        except requests.exceptions.ReadTimeout as e:
            logger.exception(e.message)
            raise GatewayError('Service temporarily unavailable. Please try again')

        except requests.exceptions.RequestException as e:
            logger.exception(e.message)
            raise GatewayError('Service temporarily unavailable. Please try again')
        except Exception as e:
            logger.exception(e.message)
            raise GatewayError('Service temporarily unavailable. Please try again')

        return response.text

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32527164-typeerror-unsupported-operand-type-s-for-retry-and-int?utm_campaign=plugin&utm_content=tracker%2F192525&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F192525&utm_medium=issues&utm_source=github).

Please open requests-related bugs in the requests project, not the urllib3 project.
Quickly looking at the code, I suspect it's this line:
self.max_retries = Retry(total=self.max_retries, backoff_factor=5, status_forcelist=[429, 500, 502, 503], method_whitelist=method_whitelist)

Note how the self.max_retries = ... assignment is the same variable as the total=self.max_retries param value. That's supposed to be an int.


New format for CC

add program change and pitchbend to CC via extra parameter
!0000
1st param is type 0=cc 1=program change 2=pitchbend
2nd is channel
3rd is CC number, program # or pitchbend LSB
4th is CC value or pitchbend MSB
we could probably add things like poly aftertouch and channel aftertouch as additional options.

Very very cool, super simple implementation I love it.

Could we put the first param at the end, so it's not necessary, also not to break past patches

yeah sure - I wasnt sure what was the best approach

rearranged params #155


Curam missouri microsite page fixes.

Issue
Fixes #MERATIVE-905
Description
The latest designs for the Missouri campaign in microsite do not match the updated designs in Figma. It is mostly background color changes and addition of headline. The PR consists of fixes for that.

Figma Link - https://www.figma.com/file/lcNLadWizxvzfhBpqds4hU/Curam---State-Microsite?type=design&mode=design

Test URLs

Before (Changes from main): https://main--merative2--hlxsites.hlx.page/drafts/putra/campaigns/missouri
After (Changes from this PR): https://curam-missouri-microsite-changes--merative2--nimithshetty17.hlx.page/drafts/putra/campaigns/missouri

Testing Instruction
To test the changes as per the figma link provided above.

@anabarcelona @sachinmesh @keith-kaplan - These are the following issues addressed in the latest commit:-

Increase title to H1 ” Explore our platform” - Code side changes have been done, authoring side changes are pending.
Make sure space between H2 and first feature is 96px.
Remove bottom gray rule below the navigation bar- same update for mobile.
Reduce the space above full width image and below the list. It should be 96px.

Hi @nimithshetty17, updated and added comments in the QA doc:
https://merative-my.sharepoint.com/:w:/p/abarcelona/EZLyhr7AsFBOuh-jptVHz4MBlMXA7ftxXnnF_viNr2WH8w?e=WaTod4
Happy to review together next time we meet. It's looking good!

@anabarcelona @keith-kaplan @sachinmesh - Please find the fixes for the new commit below:-

Reduce the space above full width image and below the list. It should be 96px -Done
When you scroll down to the case studies, can the nav slide over to show Case studies is highlighted? -Done
“Why Curam” shouldn’t be selected when you are in the platform area of the page. -Done.
Currently it’s not aligning to our gutters -Done
Remove bottom gray border fro mobile and tablet. Please add that back for Desktop only -Done
we still need to increase the size of Explore our platform title to 64px -Done

Thank @nimithshetty17, I've reviewed and marked things as done! Some are still some remaining things on the list. Thank you :)

Thanks Nimith once again! We are so close... there are 3 open tasks still remaining in the doc...

@anabarcelona @sachinmesh - These are the pending changes and the fixes are added in the latest commit:-

Adjust the gradient for 25+
The only title that needs to be our H1 size is the “Explore the platform” title, please adjust.
The arrow buttons fill needs to be in bone. Currently they are filled with white. Please update.
Rest which are not marked as Done is:-
Remove bottom gray rule below the navigation bar- same update for  mobile please. The line needs to be there on
desktop. It’s no longer there. Please add that back for Desktop only. See screenshot below- bottom rule divider is
missing on desktop. (Discussed with Sachin he said it is reflecting)
Update the artwork to match the design. (Authoring change)
Please make the phone number a link... on mobile it should call the number. (Authoring change)

@nimithshetty17 question on #5 above... who exports the artwork? And where is it saved for the content authors to upload it?

All the other updates you mentioned above look good! Thanks @nimithshetty17

@nimithshetty17 question on #5 above... who exports the artwork? And where is it saved for the content authors to upload it?

@anabarcelona - We usually get it from Sachin and then the content author will drop the image in the word document.

@nimithshetty17, okay, sounds like I need to export them and save them. Where are they usually saved? Thank you!

@nimithshetty17, okay, sounds like I need to export them and save them. Where are they usually saved? Thank you!

@anabarcelona - We don't save the images anywhere in Franklin. You can upload it in the Jira ticket or mail it, we'll replace the image.


Improve the Dataset View

This pull request makes a few changes to the dataset view:

Add a new “Schema” section at the top to define properties and types for the dataset separately from data entries
Guess the types of properties automatically when opening a dataset or uploading a JSONL file using the first entry
Validate types when editing with visual feedback to make sure the dataset is valid before saving it
Provide a code editor for JSON properties to improve autocompletion and syntax highlighting when editing objects
Add hints/instructions to edit the schema and data when the dataaset isn’t in read-only mode
Add a “New Entry” button at the bottom left to make it easier to append new entries

It also fixes a small bug on the Runs page to avoid writing “Showing runs 1-0 of 0.”

woot! Will give it a spin and merge ASAP!

This is awesome!
Need to dig a tiny bit deeper to find the actual fix but right now when saving a dataset with some JSON objects they get saved as strings (if I then run the app on that saved dataset the output for JSON field is outputed as a string, same when downloading as JSONL, JSON fields are rendered as string in the JSONL)
Hope that makes sense!

Other remark, but no need to fix this one to merge. If setting type as string, inputing a number errors. Probably a simple priority issue.

Thank you @spolu! Good catch on the exported types, it should be fixed now!
As for your other remark, I agree! I’ve been thinking the same thing. Ultimately, we should likely treat number and boolean as a subset of string and presented / validated as such (not only with their typeof result).

@romainhuet we can punt that to later no problem :+1:
Last small issue. Going to a dataset and leaving without touching anything triggers the warning. I thinnnk it's a simple matter of having a different useEffect for the new initial setDatasetTypes?


Add zstyle configuration for WORDCHARS

Please be sure to check out our contributing guidelines
before submitting your pull request.
Fixes #2067
Proposed Changes
This adds a new zstyle customization, wordchars in the :prezto:module:editor context, to configure the WORDCHARS parameter that is set by Prezto's editor module.

Makes sense. Thanks @Kuruyia!


Custom-select doesn't support single select with size attribute set above 1

Bootstrap V4.0.0.-beta.2
Operating system and version (any)
Browser and version All
Reduced test case https://codepen.io/tmorehouse/pen/boJQLL

The size attribute controls the number of visible "rows" the select displays. It is commonly used in conjunction with the multiple attribute, but can be used on single selects to produce a "list-box" style select (except on some mobile browsers).
When used on a .custom-select, not in multiple mode, the size attribute is not respected and only  single option (and bits of the next option) are shown (as well as bits of the custom select indicator):

As an aside note, when in multiple mode, there is also excess padding on the right (where the custom indicator would be on a single select)
Workaround CSS:
.custom-select[multiple],
.custom-select[size]:not([size="1"])
{
    height: auto;
    background-image: none;
    /* Fix for excess right padding */
    padding-right: 0.75rem;
}

yep this is very usefull i will test thanks !


Polymorphic Relationship: Parent Morph Name

Forgive me, if it seems like I am rambling.  Trying to show what I want to accomplish.
It looks like parental almost does what I am looking for.  The Extending Models in Eloquent blog post, almost explains what I want to do.  But it's falling a bit short.
This may be the use case that #10 is looking for.  Where the parent morph name should be used by the extended model.  Or maybe I'm just missing something and need a better example.
I am trying to add a polymorphic relationship to an existing model from a package.  To make the package work, without requiring the developer to manually add the relationship to an existing class.
class User extends Model {
    // dev has to add this to the existing model
    public function posts() {
          return $this->morphMany(Vendor\Package\Post::class);
    }
}
$user = User::first();
$user->posts()->get();  // How it normally works.

Hoping I could leave App\User untouched, I tried the following:
class User extends Model {
    //
}

class UserPostRelationship extends User {
    public function posts() {
          return $this->morphMany(Vendor\Package\Post::class);
    }
}

$user = User::first();
$user->posts()->get();  // Call to undefined method App/User::posts()

This is where I stumbled across Extending Models in Eloquent.
Maybe there's a way to push the function to App\User using boot(), but I am not sure if it's possible.

You've done a great job with STI, but it breaks existing polymorphic relationships that may already be in the parent.
class User extends Model {
    public function related() {
          return $this->morphMany(Related::class);
    }
}

class UserPostRelationship extends User {

    use Tightenco\Parental\HasParentModel;

    public function posts() {
          return $this->morphMany(Vendor\Package\Post::class);
    }
}

$user = UserPostRelationship::first();  // emulates App\User
$user->posts()->get();  // Works as expected
$user->related()->get();  // Is empty, since it's morph name is App\UserPostRelationship

HasParentModel is not as clean as I hoped.  But that does not mean I can't work with it.  Hopefully this helps other looking for a similar solution.
=> Illuminate\Database\Eloquent\Collection {#2963
     all: [
       App\Post {#2953
         id: 2662,
         content: null,
         user_id: 1,
         user_type: "App\UserPostRelationship",
         created_at: "2019-01-22 04:58:47",
         updated_at: "2019-01-22 04:58:47",
       },
     ],
   }

Use Case:
Here's my use case.  I have two separate packages with polymorphic relationships that I would like to tie together with App\User.

Vendor\Package\Post::class
Vendor\Package\Star::class requires Vendor\Package\Post::class

and
App\User has an existing polymorphic relationship I would like to use.
$user = UserStarRelationship::first();  // Get a user
$user->stars()->get(); // Get relationships - this model only
$user->posts()->get(); // Can't see Post relationships
$user->related()->get();  // Can't see user relationships
$foo = UserPostRelationship::find($user->id); // Extra work required
$foo->posts()->get(); // But disconnected from User & Stars
$bar = User::find($user->id); // More work required
$bar->related()->get(); //  Disconnected from Posts & Stars

Maybe this is the only way it will work.  But fixing the morph name could help packages tie to existing model relationships.  If the base model can not be directly extended.

It also seems this is not possible.  But again is could be helpful for package development and distribution.
class UserPostRelationship extends User {
    use Tightenco\Parental\HasParentModel;
}

class UserStarRelationship extends UserPostRelationship {
    use Tightenco\Parental\HasParentModel;
}

$user = UserStarRelationship::first() // Table 'user_post_relationship' doesn't exist

version v0.6 doesn't seem to satisfy this issue