[Implement] Added evaluator for Code2Code Translation

Implemented and tested the implementation for the evaluation script in eval.py for code translation

Duplicate with https://github.com/SEEDGuard/SEVAL/pull/4 and the content in the readme looks incorrect.


Rename docker security service containers to match the new executable names

🚀 Feature Request
Relevant Package

 This feature request is for... all the security services
Description
 A clear and concise description of the problem or missing capability...
The executables were re-named for Fuji, but the container names have not been renamed yet. i.e. vault-worker from edinburgh is now security-secretstore-setup, but we still have the docker file building as docker-edgex-vault-worker-go
see:
https://github.com/edgexfoundry/edgex-go/blob/e9a5679ee93190915757fda79bea1215b7647b4d/Makefile#L193-L194
I'd like to see this happen for Fuji

@lranjbar can you please weigh-in on the devops impact of the proposed change?

There isn't any impact on devops for the naming of the docker images themselves. This change will have to happen in the Makefile in edgex-go. However, we should maintain the naming scheme docker-edgex-* for all the docker images we release.


Update package.json

License updated in the package.json.

+1 for this pull request. Especially some license detection things like the nlf package is not able to detect the MIT license and give "Unknown" license as result.

Closing this PR, since I merged a different PR earlier that did this.


Ensure cache dirs are always present

From time to time after a fresh app deploy I encountered

CuyZ\Valinor\Cache\Exception\CacheDirectoryNotWritable
Provided directory /home/www/app/13925/var/cache/prod/Valinor/classes is not writable.

We should ensure those directories are always present on app cache warmup.
They are ultimately created but when there's higher app load, I presume some race condition occurs and this errors pops up before the dir is created.

Thanks for the report! Should be fixed by #407 which will be part of the next release. 😉


Updated build settings to run the application from a subdirectory and not root.

References user story #278
Since the sdp server will not allow us to run our frontend from root, we must make sure that it can be ran from a sub directory.
ex instead of https://sdp.../devices it should be https://sdp.../beima/devices
Should be tested by deploying and testing on the sdp server.

emailing Dr. Henderson to confirm whether this will be needed if we are not serving from a /wwwroot directory like a standard webpage since all paths should be the same since they're on an independent directory structure inside the container

confirmed container does not need anything special done on build since it's like running it in a vm

not working in deploy env, Henderson says likely because it's served at http://host/beima.
need to update config and see if it fixes it


Performance gap between Alluxio fuse and Java client

Summary
Seems there is performance gap between Alluxio fuse and Java client.
I do some tests in my own machine. The test process is:

Load one 100 GB file into alluxio (avoid massive open operations)
Use java client random read 128KB data from the file (with random offset, using 64 threads)
Use Fuse and a python script to random read 128 KB data from the file (with random offset, using 64 processes)

For both java client and fuse, the read count is 1000000 (122GB). And the results is:
| Consume time     | Speed         |
-----------  | -------------------| ------------  |
Java client | 129.143 seconds  | 968MB/s     |
Fuse client | 507.190 seconds | 246MB/s      |
Seems for massive read requests, the java client and fuse client have large performance gap.
I'm not sure the reason about this, but seems the bottleneck is not RPC calls. And for userspace fuse daemon, seems it can not send RPC request as fast as java client. Maybe is caused by following reasons:

Java code and native code interaction. (Copy data between Java and C lib)
Inefficient use of libfuse. (Such as using direct_io...)
....

Hope we can give some official comparison for java client and fuse client. And can give some workaround to mitigate the performance gap.
Further more, more efficient fuse client may need to be designed. Especially for DL workload.

the performance should be improved by https://github.com/Alluxio/alluxio/pull/12606 which introduce new JNI fuse integration with kernel_cache instead of direct_io

Thanks @apc999, we already tested this feature in jni-fuse branch. And it show about 30% improvement. Thanks for your work

@Binyang2014 thanks for the heads up! I am releasing 2.4.1-1 next week with new JNI support.
We are still keep improving the fuse integration FYI.


Add state for the accountToBeEdited to the store

closes #322
we never pass anything else than the store variable to the constructor of a view, hence I left the constructor untouched.
but I added state to the store, thus we can now distinguish between the currentAccount and the accountToBeEdited
in the Profile page the user can only edit accounts but not select accounts, whereas in the combinedAccountAndCommunitySelector the user can only select but not edit accounts.

@clangenb I'm concerned about using the store for a transient value that should just be passed with the context. What is your take here?

@gr8Mu1 can you update the PR name + description to reflect your latest changes?


DROP TABLE should be blocked properly according to the access rule

Currently, DROP TABLE can remove a table with 'SELECT' only permission.

This is resolved in #11 .


Broadcast error, Public key version reserved for soft-fork upgrades

follow inscribe.test.ts, broadcast tx to the mainnet, get error!
const txdata = Tx.create({
  vin  : [{
    txid: '30fcb229bdef4ab1a9d864e2cb4b562c99b8ea00d68ff156f31ec1468ba6d893',
    vout: 0,
    prevout: {
      value: 4_000,
      scriptPubKey: [ 'OP_1', tpubkey ]
    },
  }],
  vout : [{
    value: 1_000,
    scriptPubKey: Address.toScriptPubKey('bc1p93mun355nyke02gvdhx7vmes5l8enh2yw86r8x0fl98hwlug2dvq3xqj66')
  }]
})

const sig = Signer.taproot.sign(seckey, txdata, 0, { extension: tapleaf })
txdata.vin[0].witness = [ sig, script, cblock ]

const response = await axios.post('https://blockstream.info/api/tx', Tx.encode(txdata).hex)
console.log(response.data)

print:
sendrawtransaction RPC error: {"code":-26,"message":"non-mandatory-script-verify-flag (Public key version reserved for soft-fork upgrades)"}

This error is usually caused when the public key provided in the script (before OP_CHECKSIG) is 33 bytes instead of 32 bytes.
Bitcoin core detects that you are using a non-standard key (the standard for taproot is now 32-byte keys) and then throws this error.
Can you check the script that was used to create the tapkey and make sure that the public key being provided in the script is 32 bytes?

I paste the example code in the repo, but i've figured it out with bitcoinlib-js, still thanks for your examples.


Remove "async" version

The async version is a worse API and not asynchronous in any way. It should be removed to simplify the API and make the package smaller.

https://github.com/Sembiance/email-validator/pull/19

I agree, you may use setTimeout(() => exporter.validate(email), 0) to actually make it async but I really don't see the need here as it is basically just a regex validation.

Agree, this PR should be merged

Agreed. I suspected the package did an online check or something and had to look at the source code because I was confused. There's really no point to this.


What is the license of this extension?

Hello @bung87!
We would like to publish your very useful "vscode-rails" and "vscode-gemfile" VS Code extensions to the open-source vendor-neutral registry Open VSX which will allow them to be installed in Theia, Gitpod, VSCodium, and other non-Microsoft developer tools.
So we've added "vscode-rails" to Open VSX's auto-publishing script in https://github.com/open-vsx/publish-extensions/commit/97989a5c679e474915de8dedc19c04e19c53e8e5 However, publishing currently fails because of Error: Cannot resolve dependency: bung87.vscode-gemfile.
So we would like to also publish "vscode-gemfile". However, there is no explicit license in this repository, while Open VSX currently only supports extensions with open-source licenses like MIT, Apache 2.0, ISC, etc.
Could you please add a license to https://github.com/bung87/vscode-gemfile ? 🙏

sure thing, it will be MIT, let me add it.

Perfect, many thanks for the quick reply! 💯


Enable ruff rules

This PR Enables the docstring rules:

D104: Checks for undocumented public package definitions.
D107: Checks for public init method definitions that are missing docstrings.
D400: First line should end with a period.
D401: First line of docstring should be in imperative mood.

This is just a step on the way to improving the content of the docstrings - especially for .rx and .param methods. But first I would like Ruff docstring support to be able to help me.

Its a mistake. I'm so used to Google docstring style.
For this PR I dont remember using a llm a lit as I expected simple to fix issues.
For the other PRs I used an llm. I started by explaining I'm updating docstring of HoloViz Param and which used numpy docstring style. I then copy (parts of) the class or function to give it context and then ask to Update the docstring. I then copy the proposed docstring back and start reviewing it. Often i remove repeated text, add a Documentation section or change the examples. I've run all the examples in Ipython. Sometimes I copy the code back to the llm and ask it to improve it.

Thanks for fixing the Google Docstring style. As far as I can see the failing macos tests is due to some import change by Philipp.
Let me know if there is more I should do here. Thanks.

As far as I can see the failing macos tests is due to some import change by Philipp.

It's not, the conda-forge build chain broke pyarrow via libprotobuff and libabseil. Have to wait until they fix it.


DragStart Event produces a Release Event before it.

It seems to me that the order of events for dragging might have a bug. When listening to them I get this order:
down
hold
release
dragstart
It does not seem right to get a "release" event when you start dragging because the user has not released the button yet.

I just fixed up the docs a little bit for the release event in c5b7c473bc8a8c81c754c78c7830002bcf689801.
The idea behind issuing a release event when dragging is that you can highlight something when you hold and when you start dragging the hold is released and the highlight is removed.
Can you share what your use case is where this might be problematic?

I see the purpose for the events, it is just at first glance the
"release" event seems to be redundant and mislabeled because as I
stated before the user has not "released" it yet. I understand like
the "hold" event it is an internal event and not a user initiated
event. In my view the "dragstart" is sufficient enough to signify in
your use case to remove the highlight.
The more I think of it the more I am also seeing the "hold" event
being a nice to have but not necessary event. The less events being
dispatched the better but this seems to be a semantics issue now
though after your explanation. I just wanted to express my view with
my first impressions of the framework.
On Mon, Mar 5, 2012 at 6:15 PM, Daniel Freedman
<EMAIL_ADDRESS>wrote:

I just fixed up the docs a little bit for the release event in c5b7c473bc8a8c81c754c78c7830002bcf689801.
The idea behind issuing a release event when dragging is that you can highlight something when you hold and when you start dragging the hold is released and the highlight is removed.
Can you share what your use case is where this might be problematic?

Reply to this email directly or view it on GitHub:
https://github.com/enyojs/enyo/issues/29#issuecomment-4334291

--
Robert Brisita
Lead Developer
Transmitive, LLC.
30 W. 63rd St. #3R, New York, NY 10023
Office:<PHONE_NUMBER>

Thanks for the input.
The names lack a bit of intuitiveness I agree, but we figured that a simple name that was documented clearly enough was better than a long, hard to remember one, such as cursorMovedAfterPointerHeldInPositionForALongTime.
I'll try and update the docs a little more so that hold and release explicitly refer to a point on the screen being held and released, not the mouse button.
If you can think of some better names for hold and release, we would certainly consider changing them.

Closing out - issue quite old and not a priority to retest and assess current behavior.


Update Gemfile to read version from .ruby-version

Heroku wants it in the Gemfile, we want it in .ruby-version and to only update it in one place.

@lachlanhardy do you need to kick something else to make Rspec/Bundler play nice?

@plaindocs I worked it out with a little help.


Explore other API options

Middleware to inject the rehydrate handler into all reducers
An alternative API to get the rehydrated state and pass it in to createStore as initialState
A createPersistantReducer(reducer) function

:+1:
Definitely would like these. Passing the rehydrated state to initialState is exactly what I need for app launch.
I'm willing to help out with this project if I can!

I do not have a good solution for cases where one needs to get all of the persisted state before rending the app. One possibility would look something like:
let persist = persistStore(store)

export default class App extends Component {
  getInitialState(){
    persist.afterRehydration(() => this.setState({rehydrated: true})
    return {rehydrated: false}
  }
  render() {
    if(!this.state.rehydrated){
      return
Loading...

    }
    return (
      <Provider store={store}>
        {() => <ZeitApp />}
      </Provider>
    )
  }
}

I realize that is a lot of boilerplate though...

FWIW if you need this and if you are building a web app your best bet is to probably write a synchronous rehydrator much like https://github.com/gaearon/redux-devtools/blob/master/src/persistState.js
In my use case I am ok with getting the data asynchronously (potentially after the first App render). Also I need react-native support which is async storage.

I'm using react-native with AsyncStorage

Or a simpler approach that works with the current API is to call persist in componentWillMount:
export default class App extends Component {
  componentWillMount() {
    persistStore(store, {}, () => {
      this.setState({rehydrated: true})
    })
  },
  render() {
    if(!this.state.rehydrated){
      return <LoadingView />
    }
    return (
      <Provider store={store}>
        {() => <TheApp />}
      </Provider>
    )
  }
}

Just released 0.2.3 with experimentalAutoRehydrate. I suspect it will need much improvement, but I believe this is the right API (a higher order reducer):
import { createStore, applyMiddleware, combineReducers } from 'redux'
import persistStore, { experimentalAutoRehydrate } from 'redux-persist-store'
import * as reducers from '../reducers'

const reducer = experimentalAutoRehydrate(combineReducers(reducers))
const store = createStore(reducer)
persistStore(store)

Ok I am starting to feel decent about this.
Renamed project to redux-persist
Renamed experimentalAutoRehydrate to autoRehydrate
It now auto rehydrates only keys that have not been modified by it's child reducers. That means if a reducer handlers its own rehydrate action, autoRehydrate will skip that reducer.
I am however still unsure how to allow for custom actionCreators in autoRehydrate.

Great progress! I'm not sure I follow- what do you mean by custom actionCreators?

persistStore optionally takes a custom action creator in the config argument which may be useful if you want to supply your own action type constant or trigger conditional logic/api calls based on rehydration.
For example I have a custom action creator to detects if my AccessToken is being rehydrated, and if so checks with the server to make sure it is valid.

Aha! I'm actually going to need to implement the exact same with my access tokens.

I am fairly satisfied. Closing until there is clarity on https://github.com/gaearon/redux/issues/350


Update README.md for new Jenkins badge location

Since the Jenkins project page has changed, the badge location has also changed as follows:
-
+
This is solely a textual change so I'm not submitting it as a PR to avoid CI churn; someone with permissions can just edit it in the web page.

I will take care of this. Thanks!


Update Node List error message

Reported by a user in slack:
Hi guys! Quick question. I've just got access to a kubernetes cluster in my research lab, and I'm trying to deploy a Pachyderm pipeline. The pipeline i stuck in a "restarting" state and prints "Recent Error: Unable to retrieve node list from k8s to determine parallelism" when I inspect it. Running `kubectl get nodes` also throws the error "the server does not allow access to the requested resource (get nodes)". Any suggestion on how to fix? Thanks!

We should test namespacing rules and priveliges to see if we can reproduce. If we can't we can at least update our error message to be more descriptive.

Hi,
After setting the parallelism_spec to constant the problem moved on to the pipeline running, but jobs failing with the error message:
the server does not allow access to the requested resource (get pods)

This error was caused by the pachyderm serviceaccount no having permission to get pods within the namespace I was using. We updated the permissions on the service account and the pipelines are now running as they should.

Great! I'm glad you got a workaround.
So to make this clearer next time this happens, we want to:

report a clearer error message
create a startup suite that issues any requests pachd might make to the k8s client
so that if we don't have access, we fail on startup

stale

Encountered the same problem, IMO this issue should be reopened.

@danielefranceschi Can you outline in more detail what you're seeing here since this issue is 3 years old?

@JoeyZwicker sorry, I exceeded in issue deduplication: the RBAC-related error message is the same but actually I encountered the parallelism.coefficient issue.


Enhance check title(s)

IMO

Doesn't say much about what the bot/check does. How about changing https://github.com/rullzer/fixupbot/blob/f37ce9abfd9222f26f366e1fe4aafec925c83895/index.js#L28 to something like "No fixup commits found. The commit history is clean :+1:"
In the same way, the error title could be changed to "Fixup commits detected"

Apparently markdown is not supported:


ORC-1256: Publish tests jar to maven central

What changes were proposed in this pull request?
This PR aims to publish tests jar to maven central.
Why are the changes needed?
To provide all artifacts to the customer.
How was this patch tested?
Manually install locally and check .m2 directory.
Closes #1221

cc: @dongjoon-hyun

Now we have tests.jar in the snapshot repository.

https://repository.apache.org/content/repositories/snapshots/org/apache/orc/orc-core/1.9.0-SNAPSHOT/orc-core-1.9.0-20220820.051910-95-tests.jar
https://repository.apache.org/content/repositories/snapshots/org/apache/orc/orc-core/1.8.0-SNAPSHOT/orc-core-1.8.0-20220820.051923-401-tests.jar
https://repository.apache.org/content/repositories/snapshots/org/apache/orc/orc-core/1.7.7-SNAPSHOT/orc-core-1.7.7-20220820.052013-3-tests.jar


fix: update isolation behavior and overall bugfixes

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Pretrained Weights links failed

Pretrained Weights of first-order-model  links failed! pls check it

Hi,  thank you for your information.
I think you pointed pretrained weight section in this README file, right?
I checked the link just now, and there is no problem, so I hope you can download h5 file from https://nnabla.org/pretrained-models/nnabla-examples/GANs/first-order-model/pretrained_fomm_params.h5 .
Could you please check it again?
Please let me know if my pointing link is wrong.

Yes, it's working now ,thanks a lot!


refactor(codegen): reduce allocation for print_unquoted_str

#3525  👈
main

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

Join @Dunqing and the rest of your teammates on  Graphite


Fixed volumeOfPyramid, added abbreviateMiddleName

Closes #742

[x] Running yarn lint does not trigger any linter errors
[x] The test of the method you have fixed is passing
[x] You have written a new skeleton method for someone else to work on!
[x] You have written tests to accompany your skeleton method

Thanks @BlakeGuilloud!  I'll add one now.


Mean, stddev, area calculation not updated during modification of RectangleROI and EllipseROI tool

Not sure if this is a feature or bug, but I noticed a difference in the behavior of a newer version of Cornerstone tool. The mean, stddev, area value in the tool text box is not being updated during modification of RectangleROI and EllipseROI tool (by mouse dragging). Was this change made intentionally in a newer version? Then, is there any way to make the values be updated during the tool modification? BTW, the "length" tool is still updating the length value during the modification. Thank you for your input in advance!

Is there a specific version you are using? Does the value not update at all? Does it update when you've finished resizing or placing the annotation? Does it update as you drag?

It does not update as I drag but updates only when I finish dragging. I verified that this behavior is same in the demo example.

It may have been removed because the calculation was a bit much for large images and to fire for each drag event.
I'm not sure there's much value in the seeing updates on drag, as you're usually selection a visual region and not a specific amount of space. (Please correct me if I'm wrong.)
@swederik may know if the change was on purpose or if its a bug.

Thank you for your quick response. If this change was on purpose, I figured out that setting the tool data's "invalidated" property to "true" for each "cornerstonetoolsmeasurementmodified" event would override the change and update the stats while dragging handle / resizing the tools. I'm not sure if this is a proper way though and recommend to provide this option as a configurable item for those tools. Thanks.


[11.x] Fixes config:cache command detects incorrect custom environment file

The artisan config:cache command genarate incorrect configuration values under certain conditions.
Under the following conditions, the values set in the .env file are expected to be used, but the artisan config:cache command outputs the settings derived from the .env.[APP_ENV] file to the cache file.

there is an .env.[APP_ENV] file with the same extension as the APP_ENV value set in the .env file
no APP_ENV environment variable is provided externally.

The reason for this is that the getFreshConfiguration() method in the artisan config:cache command, the second application bootstrap process is executed, but the LoadEnvironmentVariables bootstrap process does not take into account multiple executions and takes the value of APP_ENV from the dotenv generated in the first run.
Purely externally provided variables can only be retrieved before loading dotenv.
In this fix, on the second and subsequent bootstrap processes reuse the values retrieved the first time.

Please provide better recreation instructions.


[Enhancement] implement "defineProperty" trap as well

Object.defineProperty is a commonly used approach to define new object properties - internally, Reflect.set(...) will invoke Object.defineProperty anyway whenever a new property is to be set.
For that reason, it is a good idea to implement the "defineProperty" trap in order to catch all situations, where new properties are defined.
The required changes should be trivial (see my own fork of your repository)

I've been thinking about this and for the moment I'm not going to add a defineProperty trap. I'm not sure what are the use cases or even if using defineProperty to access the target is actually useful, and I wouldn't like to increase the bundle size unnecessarily.
I'd be happy to review this in the future if there are strong cases to support it, though!


Text updates for "Setting Up Two-Factor Authentication" page

Suggested text for this page in this doc:
https://docs.google.com/document/d/15IRDe7uUUA2AKKp41rmBSdsLX5Do6nmWRO4OgS-VmNg/edit?usp=sharing
(Keeping in Google docs in case there are questions/edits)

Thanks for doing this!
Can we add the very last paragraph from the Google Doc?
THIS ONE: If you have problems with setting up two-factor authentication, please contact<EMAIL_ADDRESS>I just want people to know what to do if they get confused on this page.
Also, while you're in there, we added a couple of commas in that first paragraph (sorry, easy to overlook!)
For security purposes[COMMA] we require two-factor authentication on all accounts. This ensures that even if your password is compromised[COMMA] your data is secure from attackers trying to log into your account.

This should be fixed now. Please review. You can access the page even after you've set up a form by going to Settings -> Set up additional 2-factor auth


Question: How to create an ahead-of-time compiled native powershell ("crossgen")

On #3249 @iSazonov helpfully pointed out that one can use "crossgen" to get binaries that run start up pretty fast.
I explored and it looks like one cannot get such binaries from a powershell instance alone. Is my observation correct? (I'm not sure because technically if I have the CLR assembly and .NET core on my computer already so it looks like it may be possible).
To continue on that, I want to ask here how does one go about getting such binaries?
Could somebody give steps for that, please?
I'd like to know the following:

Does it require installation of tools outside of powershell? I am currently using AppImage on arch. Quite a few power users use Arch so I would hope you guys would treat it on an equal footing as the sysadmin-favoured RH/Suse. Could you list the tools required?

The generation procedure

I am hoping that the answer of this question could later be documented into something useful for more people looking to do this.

The official releases are already crossgen'd.  You can build it yourself using start-psbuild -crossgen if you clone our repo and import the build.psm1 module

@SteveL-MSFT I'm using the official build, the AppImage meant for Linux distros. I saw a speed difference of ~1.9s to ~1.5s in the latest build for powershell -c 'exit'.
While that is great, would it be unreasonable to say it's still pretty slow? I've never used any other aot compiled binary before but I was hoping it would start much faster.

Our targets have been 250ms for startup.  There is an open issue to improve startup perf for Beta1 https://github.com/PowerShell/PowerShell/issues/1954

@SteveL-MSFT Got it. Hope to see this soon.
Closing this issue since distributed AppImage is already crossgen'd.


Extract username and password from header and fallback to body

Hi, thanks for this amazing library!
I started to use it to implement an OAuth2 layer for my small API framework: https://github.com/256dpi/fire
While working on the Resource Owner Credential Flow I realized that the credentials have to be submitted in the Header and the Body of the Request. But this behavior contradicts with the following statement in the docs:

Including the client credentials in the request-body using the two parameters is NOT RECOMMENDED and SHOULD be limited to clients unable to directly utilize the HTTP Basic authentication scheme (or other password-based HTTP authentication schemes).  The parameters can only be transmitted in the request-body and MUST NOT be included in the request URI.

This PR tries to extract the username and password first from the header and then falls back to the body.

Glad you found use for it!
Unfortunately, you confused client credentials with resource owner credentials. Client credentials go in the Authorization header while resource owner credentials go in the body :)

If you're looking for example code or for a HTTP server implementation of fosite, check out hydra :)

To prove my point, check out the spec: https://tools.ietf.org/html/rfc6749#section-4.3.1

The client makes a request to the token endpoint by adding the
following parameters using the "application/x-www-form-urlencoded"
format per Appendix B with a character encoding of UTF-8 in the HTTP
request entity-body:
grant_type
REQUIRED.  Value MUST be set to "password".
username
REQUIRED.  The resource owner username.
password
REQUIRED.  The resource owner password.
scope
OPTIONAL.  The scope of the access request as described by

I wasn't aware that a client is needed to accomplish the resource owner password flow, I always thought that in this case the user takes the role of the client. ;) But if I think about it again, it makes sense... Thanks for your fast response!

Glad I could help. You always need to identify the client, as he is the one the token is issued for :)

Even if the client is on a platform that is not trusted like a Browser?
As noted here: https://github.com/simplabs/ember-simple-auth/blob/master/addon/authenticators/oauth2-password-grant.js#L47

Identifying is not authenticating. All grant types, except the implicit one, require authentication of the client. The implicit one is the only one you can use in Browsers / on mobile clients.

I guess I need to read the specs again ;). Thanks again for clarifying!

Welcome! If you are not quite familiar with OAuth2, take a look at the hydra project. It's basically fosite as a high throughput server and it works on top of any user authentication plus it's user interface agnostic. TL;DR You get to keep all the candy without doing any of the work ;)
There's also some docs and guides which might help you to get a better understanding of OAuth2!


Relicense to dual MIT/Apache-2.0

Closes https://github.com/reem/rust-unreachable/issues/3

Nice! Thanks for making the change.


with sr.Microphone as source: AttributeError: enter

import speech_recognition as sr
import pyaudio
from speech_recognition import Microphone
r = sr.Recognizer()
source: Microphone
with sr.Microphone as source:
audio = r.listen(source, 1, 10)
Every time I run my code I get the above error. Please help

@uv25 not sure if this will help you.

@uv25 did it help you?

I'm prob very late but just to help people in the future, replace sr.Microphone with sr.Microphone(). Hope this helps!


Unexpected response code 500 from server

i'm getting unexpected response code from heroku application.

Thanks for reporting. I will try to fix that issue.

I have fixed the issue as of now. Please re-open the issue if the API stops working. Thanks


[FR] abort subsume on any destroy action in terraform plan

Is your feature request related to a problem? Please describe.
We are still seeing destructive behavior with the most recent release of CSB https://github.com/cloudfoundry-incubator/csb-brokerpak-azure/issues/10
Describe the solution you'd like
We would like the CSB to:

Abort subsume when there is any destruction action in terraform plan, e.g.  Plan: 1 to add, 0 to change, 1 to destroy.
Retain the terraform plan, e.g. local filesystem, MySQL, etc, for further examination and debugging.

Describe alternatives you've considered
Add lifecycle { prevent_destroy = true }  to resources. But this would make the de-provisioning very difficult.
Additional Context
We are still encountering destructive behavior during subsume. Unless we can identify/fix all the destructive scenarios, we should be defensive and abort destroy actions by default.
Priority
High
Priority Context
We can't upgrade our environment to CSB due to destructive behavior. As MASB goes into EOL, we are currently running an unsupported PCF installation.
Platform
Azure
Applicable Services
Azure SQL with auto fail-over group

@claassen @kelvin-j-li

Hi @alex-tw-lam,
We have made commit f56276d456901dab64750a81b48c0a1d76838959 which we are hoping implements requirement (1) above. We are still testing it, but if everything goes well we could tag the release in a few days. Would you happy trying out a tagged release from this repo, or is your preference for a new Tile release?
Regarding requirement (2), we were thinking that the easiest implementation and use case, is to log the terraform plan output in the broker's application log, so that it can be seen with cf logs <broker app name>. You mentioned other possibilities such as a file or writing it to the database or a file. Would writing it to the application log be a good enough solution for you, or is there an advantage to one of the other solutions?

@blgm Thanks for the update. We are fine with a tagged release and logging to standard out.
Look forward to the next release.

Hi, we have just cut a new release 0.2.8 which we think resolves this issue. There are still some tests that we want to run, but that's taking a bit longer than we hoped. So if you want to give it a go, then we would welcome any feedback, but there's no expectation that you should.

Thanks George! We will have a try.
Alex

From: George Blue @.>
Sent: 20 August 2021 17:40
To: cloudfoundry-incubator/cloud-service-broker @.>
Cc: Alex Lam @.>; Mention @.>
Subject: [EXTERNAL] Re: [cloudfoundry-incubator/cloud-service-broker] [FR] abort subsume on any destroy action in terraform plan (#271)
CAUTION This email is from an external sender, be cautious with links and attachments.
Hi, we have just cut a new release 0.2.8https://github.com/cloudfoundry-incubator/cloud-service-broker/releases/tag/0.2.8 which we think resolves this issue. There are still some tests that we want to run, but that's taking a bit longer than we hoped. So if you want to give it a go, then we would welcome any feedback, but there's no expectation that you should.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/cloudfoundry-incubator/cloud-service-broker/issues/271#issuecomment-902570149, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARMWXH4FXIDX6UFHJX2D2RLT5YPITANCNFSM5AVPGKTQ.
STATEMENT OF CONFIDENTIALITY The information contained in this email message and any attachments may be confidential and legally privileged and is intended for the use of the addressee(s) only. If you are not an intended recipient, please: (1) notify me immediately by replying to this message; (2) do not use, disseminate, distribute or reproduce any part of the message or any attachment; and (3) destroy all copies of this message and any attachments.

Thanks again for raising the issue with us!
We'll optimistically close it now, since we believe its solved.
Please reopen it if you find otherwise :)


[Windows + NeoVIM] error: Error reading script file '/s' when running PlugUpdate

Run nvim -c PlugUpdate and got this:

Please give some hints on where to look further about this issue.

" vim-plug
call plug#begin('~/.vim/plugins')
Plug 'tpope/vim-sensible'               " settings that make sense
Plug 'joshdick/onedark.vim'             " color theme
Plug 'airblade/vim-gitgutter'           " reflect git changes per line
Plug 'sheerun/vim-polyglot'             " syntax highlighting for languages
Plug 'scrooloose/syntastic'             " syntax checker for languages
Plug 'romgrk/barbar.nvim'               " tabline
Plug 'vim-airline/vim-airline'          " statusline
Plug 'vim-airline/vim-airline-themes'   " status bar theme
Plug 'godlygeek/tabular'                " text filtering and alignment
Plug 'chiel92/vim-autoformat'           " code formatting
Plug 'kyazdani42/nvim-web-devicons'     " icons

call plug#end()

NVIM v0.8.3
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compiled by runneradmin@fv-az171-224

Features: -acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM\sysinit.vim"
  fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"

Run :checkhealth for more info

Type:

[?] Bug
[ ] Enhancement
[ ] Feature Request
[x] Question

OS:

[ ] All/Other
[ ] Linux
[ ] macOS
[x] Windows

Vim:

[ ] Terminal Vim
[ ] GVim
[x] Neovim

I reproduced the issue on a different Windows machine
NVIM v0.8.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compiled by runneradmin@fv-az28-353

Features: -acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM\sysinit.vim"
  fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"

Run :checkhealth for more info

I got the same error message when running fish /s whatever

Somewhere in your .vim must be calling $SHELL /s ... or something like that.


Testing

setup yarn test with
https://github.com/GoogleChrome/puppeteer
( or https://github.com/SeleniumHQ/selenium )
capture errors
https://github.com/GoogleChrome/puppeteer/issues/1030
capture slow webgl pages
https://stackoverflow.com/questions/50051250/taking-a-screenshot-of-a-page-running-webgl-using-puppeteer
some resolution discussion
https://stackoverflow.com/questions/52553311/how-to-set-max-viewport-in-puppeteer

closed by
https://github.com/shader-park/shader-park-core/commit/c2438eda80f3e35ea98a006e372a2e648eb787c4


[Documentation] Add code backticks to Bento components in Bento.mdx prose

Summary
Trivial change - make Bento components stand out visually when skimming the documentation.
List of notable changes:

added backticks to prose where it mentions actual Bento components

What should reviewers focus on?

that this still renders properly

Steps to test:
Supporting resources (related issues, external links, etc):
Contributor checklist:

[ ] All new and existing CI checks pass
[ ] Tests prove that the feature works and covers both happy and unhappy paths
[ ] Any drop in coverage, breaking changes or regressions have been documented above
[ ] New visual snapshots have been generated / updated for any UI changes
[ ] All developer debugging and non-functional logging has been removed
[ ] Related issues have been referenced in the PR description

Reviewer checklist:

[ ] Check that pull request and proposed changes adhere to our contribution guidelines and code of conduct
[ ] Check that tests prove the feature works and covers both happy and unhappy paths
[ ] Check that there aren't other open Pull Requests for the same update/change

Screenshots:

Please try to provide before and after screenshots or videos

 Before  After

No worries, only a minor thing, but every little helps :)


Support for Actions on Google Console

Hi,
I am planning on creating a webhook in Spring Boot for my Google Assistant developed on Action on Google console. I tried using this SDK but I am getting an error in the webhook response. I checked some sources but they were for Dialogflow.
Does this SDK support requests from Action on Google or is there another SDK provided for Action on Google.

This library supports Dialogflow as a fulfillment option but not Actions Builder.

This library supports Dialogflow as a fulfillment option but not Actions Builder.

Is there any other library that supports Action Builder for java

Is there any other library that supports Action Builder for java

We currently do not have a library for Java developers using Actions Builder, but we do offer a Node.js library.

We currently do not have a library for Java developers using Actions Builder, but we do offer a Node.js library.


Update tooling to use latest version 6 .NET SDK

Wow, it's so cool!! I learned a lot in these commits!!

Just trying to bring repo up to date for SDK6.  In preparation for merging pull request from @ingted

Just trying to bring repo up to date for SDK6.  In preparation for merging your contr


Add Polish translation for Philips Hue Play HDMI Syncbox integration

Summary by CodeRabbit

New Features

Introduced Polish translations for configuration and operational messages of the Philips Hue Play HDMI Sync Box, enhancing accessibility for Polish-speaking users.

Documentation

Added structured translations for configuration steps, error messages, and entity states, ensuring clarity in user interactions.

Thanks for the contribution 👍


Add Ask CFPB redirects to convert query-string-based pages

Current askcfpb category pages are built via query strings, as are raw
answer searches. This adds a view to handle redirects from old category
query-string URLs to the new category pages, which don't depend on query strings.
Testing
Check that redirects work for some old URLs, such as:

http://localhost:8000/es/obtener-respuestas/buscar?selected_facets=category_exact:comprar-una-casa, which should be sent to http://localhost:8000/es/obtener-respuestas/categoria-comprar-una-casa/
http://localhost:8000/askcfpb/search/?selected_facets=category_exact:bank-accounts-and-services, which should be sent to http://localhost:8000/ask-cfpb/category-bank-accounts-and-services/
http://localhost:8000/askcfpb/search/?q=tuition&btnSearch=, which should go to http://localhost:8000/ask-cfpb/search/?q=tuition

Sneakily updating your PR title for more changelog-friendliness before you merge 😛


rgw/s3_boto3: Tests added for SSE-S3 (GET, PUT, HEAD, MPU)

Tests added for SSE-S3 (GET, PUT, HEAD, MPU)
Related PR: ceph/ceph#42522
Signed-off-by: Priya Sehgal<EMAIL_ADDRESS>

this merged in https://github.com/ceph/s3-tests/pull/440


Improved the installation process with the list of requirements

I have added the requirements ('numpy', 'scipy', 'protobuf', 'python-gflags', 'bloscpack') to the setup.py file. The requirements are provided through the 'install_requires' parameter of the setuptools.setup() function. Consequently I am now using the function build_ext() from setuptools.command.build_ext.
I did that in order to ease the installation process with the dependencies. This is useful for my automated tests in a project which is using PRIMO. And I think that this is a little improvement, especially if in the future you want to upload the project on pypi.

Thank you for uploading this!
Damien


Rotate capsule to Z-up

🦟 Bug fix
Summary

The capsule code was using Y-up, but Ignition uses Z-up. In particular, see the capsule description on Ignition Math and on SDFormat.

Before
After

Checklist

[x] Signed all commits for DCO
[ ] Added tests
[x] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[x] codecheck passed (See contributing)
[x] All tests passed (See test coverage)
[x] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

Is there a way to unit test the CreateCapsule method somehow? I don't see any tests for this method in MeshManager_TEST.cc.

It's being tested in SubMesh_TEST, see the test added in #155:
https://github.com/ignitionrobotics/ign-common/blob/2b4ad723418359ea744c58a29224d384e1409fc2/graphics/src/SubMesh_TEST.cc#L441
And see the coverage report.
The test is not checking the vertices and normals right now, but I don't know how much value there is in repeating the implementation logic in the test.


Linear Regression hangs indefinitely

Inside the dask-dev/dask-notebook Docker container,
if I open a notebook, clean and compose a dataframe, and try to train using features from the frame, I can't get the computation to complete.
from dask_ml.linear_model import LinearRegression

def train_model(facts, features_cols, target):
	# Facts has ~ 90K columns
    features = facts[features_cols].values
    target = facts[[target]].values
    model = LinearRegression()
    model.fit(features, target)
    return model

I can supply a minimum reproducible example if there isn't a clear issue with this code.
I get this warning continually:
" distributed.worker - WARNING - Memory use is high but worker has no data to store to disk.  Perhaps some other process is leaking memory?  Process memory: 346.62 MB -- Worker memory limit: 523.97 MB "
I was thinking https://github.com/dask/distributed/issues/1866 might be related? I'm out of my element here, but I'm happy to help wherever I can.

Hmm I'm not sure... A reproducible example would be helpful.
I don't know how well the linear models scale to high-dimensional feature spaces. Thus far I think most of the effort went into things that are long and not too wide.

I'll put it on the todo list, should be able to tackle it soon.

Have you had a chance to make an example @jdetle? http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports

Sorry, lost track of it.


Cascade terminate/Purge Workflow Support

Description
Support for cascade terminate/purge was added in DTF-Go: https://github.com/microsoft/durabletask-go/pull/47.
This PR adds the support for the same in Dapr. Also it makes the cascade feature default i.e. when no option is provided, it would assume cascade terminate/purge true The related components-contrib PR is https://github.com/dapr/components-contrib/pull/3296
Issue reference

Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[ ] Code compiles correctly
[ ] Created/updated tests
[ ] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

LGTM but all builds are failing

please add IT/E2E for this parameter

Added ITs

Integration test will fail in this PR for now. Will be resolved once #7385 is merged.

Integration test will fail in this PR for now. Will be resolved once #7385 is merged.

Should pass now


moloch unable to be associated with suricata alarms?

I have a question. Why is moloch unable to be associated with suricata alarms? Suricata. so has been configured
more config.ini | grep suricata
plugins=suricata.so
suricataAlertFile=/var/log/suricata/eve.json
suricataExpireMinutes=60

Elasticsearch version:
elasticsearch:6.7.1
Moloch version:
moloch-capture 2.0.0-GIT/v1.8.0-59-g5911bcbf session size=392 packet size=80 api=160
Suricata version:
This is Suricata version 4.1.3 RELEASE
OS name and version:
Ubuntu 18.04
How was Moloch built/installed: (rpm, deb, easybutton, ...)
deb

run capture with --debug and make sure its actually loading the suricata plugin
How are you testing its not working

First, I looked at the capture log, but there were no permissions errors for the eve.json file. Then, I manually trigger the alarm for suricata and see the alarm in eve.json, but I don't see the alarm description in the suricata field in the Web UI.
Now that I've rolled back to moloch-capture 1.8.0/v1.8.0, it's working fine with Suricata.

I have met the same problem, and I've also solved it by roll back version to v1.8.0

Can you provide a sample line that is causing issues?  Any errors in capture.log?

Oh, I'm sorroy, I did not save the detail information, I can only tell you it is Ubuntu 19.04 and Suricata 4.1.4 RELEASE.

I have same problem too,and I can not find a way to slove it,there is no errors in capture.log

Without more information we can't help.  Please provide

moloch version, if not >= 2.0 please upgrade
sample from eve.json that isn't being matched

Moloch version:2.0.0
eve.json:
{"timestamp":"2019-09-17T14:28:12.804025+0800","flow_id":190411546,"in_iface":"eth1","event_type":"alert","src_ip":"<IP_ADDRESS>","src_port":23634,"dest_ip":"<IP_ADDRESS>","dest_port":80,"proto":"TCP","tx_id":0,"alert":{"action":"allowed","gid":1,"signature_id":2221027,"rev":1,"signature":"SURICATA HTTP Host part of URI is invalid","category":"Generic Protocol Command Decode","severity":3},"http":{"http_method":"GET","protocol":"HTTP/1.0","length":0}}

It is empty in the webUI of suricata

should I need any additional configuration?

Please make sure you are using 2.0.1 and have set suricataExpireMinutes to 120 minutes

I am having this problem as well running Moloch v2.1.0 and Suricata v4.1.5.  The plugin worked before upgrading > v1.8.0.  Here's my config.ini file:
# Semicolon ';' seperated list of plugins to load and the order to load in
plugins=tagger.so; suricata.so

suricataAlertFile=/var/log/suricata/eve.json
suricataExpireMinutes=120

Here's one of the latest signatures firing (misc traffic between my capture box and elasticsearch).
{"timestamp":"2020-01-01T16:27:01.076622-0500","flow_id":2219731599597957,"in_iface":"ens224","event_type":"alert","src_ip":"<IP_ADDRESS>","src_port":56526,"dest_ip":"<IP_ADDRESS>","dest_port":9200,"proto":"TCP","community_id":"1:o3pw2ux\/6fdp\/bZ47S2HUhc9MMs=","alert":{"action":"allowed","gid":1,"signature_id":2210010,"rev":2,"signature":"SURICATA STREAM 3way handshake wrong seq wrong ack","category":"Generic Protocol Command Decode","severity":3},"flow":{"pkts_toserver":127,"pkts_toclient":288,"bytes_toserver":14267,"bytes_toclient":355714,"start":"2020-01-01T16:05:01.041349-0500"}}

The following query shows empty results in the Moloch UI:
suricata.signature == EXISTS!

I have tried ok with env like down-showing

env

centos7.6.1810
suricata 4.1.5  deployed by yum install
es 7.5.0
moloch 2.1.4

work ok!

Looks like this issue has been solved by using Moloch 2.x, ES, 7.5+ and Suricata 4.1+.
If you run into this issue, please comment with version information and logs.


Is your denoiser directly taken from https://github.com/openai/guided-diffusion 256x256 diffusion (not class conditional): 256x256_diffusion_uncond.pt?

Yes ;)

thanks!

您好，不好意思再次打扰，想请问：
1.您训练FFHQ diffusion model的超参数是什么？这写参数是如何决定的呢？
2.训练的iteration如何确定，是靠后面sample的推理结果观察看哪一个.pth的结果更好吗？

@yuanzhi-zhu 您好，不好意思再次打扰，想请问：
1.您训练FFHQ diffusion model的超参数是什么？这里参数是如何决定的呢？
2.训练的iteration如何确定，是靠之后image_sample.py的推理结果观察看哪一个.pth的结果更好吗？

您好！
Our work proposed a training-free method for image restoration, so we did not really train a model.
Anyway,

you may want to check the paper of guided diffusion for the choice of these hyper-parameters
you are right, for diffusion models training, it is common to sample the checkpoints for sanity checks and calculate the fid score to help find a good checkpoint.

Thanks ! I got it !

We choose the minimum iterations in DiffPIR empirically for different IR tasks. 20 is enough for SR and deburring, and 100 is usually required for inpainting to get a better result.
And the iterations used in DiffPIR are independent of those in DPIR.

We choose the minimum iterations in DiffPIR empirically for different IR tasks. 20 is enough for SR and deburring, and 100 is usually required for inpainting to get a better result. And the iterations used in DiffPIR are independent of those in DPIR.
Thanks again !  I  wonder in inpaiting(random) tasks, the mask ratio is set to which number? is it 50%?

@xiximelon  That's correct!!
In the paper, Section 4.1. Implementation Details reads:

For inpainting with box-type mask, the mask is 128×128 box region following the approach outlined in [8]; for inpainting with random-type mask, we mask out half of the total pixels at random; for inpainting with prepared mask images, we load the masks used in [38].

@yuanzhi-zhu Thank you for your detailed and quick response!


Adds a bunch of documentation to array

This is a WIP, but wanted to get some feedback on both the docs and on why array was not on them. Is there any particular reason, or is it just that no one had gotten to them yet?

Thank you!
It looks good. I'm not sure about "given that the type of the value belongs to the union type of the array", I think that's clear because of the T restriction, but if you want to leave it that's ok (but T might not be a union).
Most classes are not documented because of lack of time. I think documentation is paramount, specially because of the differences from Ruby, so any pull request containing docs is more than welcome!

You mean that T might be a plain type or a union type? I guess it could be explained more clearly, sure. I'll give it a go.
Yes, I think it is very important to attract new people to contribute to the language. I was trying to follow Rails' philosophy, that all methods are documented except for private ones that are tagged with :nodoc:. What do you think?

@zamith That's fine. Right now private methods aren't documented, so there's no need to use :nodoc: for them. We do have to use :nodoc: because there's no concept of a private type.

Ok. I'll keep documenting away then.
On Tue, Jul 14, 2015 at 10:35 PM Ary Borenszweig<EMAIL_ADDRESS>wrote:

@zamith https://github.com/zamith That's fine. Right now private
methods aren't documented, so there's no need to use :nodoc: for them. We
do have to use :nodoc: because there's no concept of a private type.
—
Reply to this email directly or view it on GitHub
https://github.com/manastech/crystal/pull/979#issuecomment-121397715.

@zamith I decided to merge this so we don't have many open pull requests. More docs for Array are always welcome. Thanks! :-)


Smoothscroll breaks on OSX Sierra

Since I updated to OSX Sierra smoothscroll acts a bit weird on Chrome on mousewheel.

I have the same experience with OS X El capitan

just chrome or safari too?

It happens in both to me.

Can you do a Quick Time screen recording for me that showcases what you guys mean by weird.
Thanks

duplicate of https://github.com/galambalazs/smoothscroll-for-websites/issues/44


Re-working of eps-risk-management-assessment.rst to make it clearer and easier to read

Describe the change being requested
from: @selina-aragon: This section could do with more work. It's very difficult to understand overall and there is a lot of repetition. I've reworded a few sentences, but it still reads clunky.
State the reason for the change
Clarifying
Describe the impact of the change on other parts of the SSI-EOG
N/A
Describe any alternatives you have considered (if applicable)
N/A
Additional context

rewritten to be clearer and less clunky


buildbot: use python3Packages

Motivation for this change
fixes #45782
Some tests are still failing, but I don't have enough time right now to fix this. Help is very welcome.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

cc @ian-ross

I've been running buildbot using Python 3 for nearly a year (see: https://github.com/lopsided98/nixpkgs/compare/7db611f2af869bac6e31ba814a5593c52d54ec19...8853014ef965eee7d0ea0223a7b6c3292e2a4b89), but I never submitted the code upstream because I couldn't get tests to pass and also I wrote it when I wasn't very experienced with Nix and never got around to cleaning it up.
Yesterday I submitted #45763, which updates sphinx-jinja and adds Python 3 support (mostly the same as your commit).
I also updated tempita to use a fork that fixes the tests with Python 3 (see #39692), because tempita is seemingly abandoned. This fork is also used by the official Arch Linux package.
Switching to Python 3 has the potential to break deployments because buildbot's configuration files are written in Python. That was why I tried to make the Python version configurable.

Switching to Python 3 has the potential to break deployments because buildbot's configuration files are written in Python. That was why I tried to make the Python version configurable.

These configuration files are typically quite small and trivial, I suppose?

Not necessarily, they can get pretty long and complicated.
These examples are some of the simplest: https://github.com/buildbot/buildbot/tree/master/master/docs/examples
This is the configuration I use: https://github.com/lopsided98/aur-buildbot/blob/master/master/master.cfg
This is one of the most complicated I've found, used by buildbot themselves: https://github.com/buildbot/metabbotcfg

In that case we may need to provide version for 2 and 3. Do our maintainers want that? If so, we might want to pull it into python-packages.nix. Regardless, this is going to require a mention in the changelog.

I can move the package to pythonPackages. Does that mean we want to support both versions and make it configurable in the module?

Yes, we can make it configurable using the usual package option found in many modules.
Citing from https://github.com/NixOS/nixpkgs/issues/45782#issuecomment-417371669

I think we should provide indeed provide pylint 1.9 as python2Packages.pylint until support ends. I also think we should move buildbot to pythonPackages as @FRidh suggested.
@lopsided98 Do you want to continue my work?

See #45890

#45890 was merged a while ago, so this can be closed


Email or Private discord to reach out to.

Hello there,
I'm reaching out on behalf of https://3em.dev/ .
We would like to get in touch for some technical questions about this repository,
can we get an email or a private discord ?
Thank you.

Hi!
Here is an invite to our discord: https://discord.gg/rMNpuqqT just ping me there :)


deps(go-apiops): bump to 0.1.26, adding O2K security

Adds generating OIDC plugins from OpenAPI Security directives
This also makes go-apiops commands update the cli warnings, hence merging this PR should be aligned with;

[ ] #1123 which will display the same stdin warning as go-apiops for deck native commands
[x] #1115 which improves the deprecation warnings

@Tieske I defer to the development team if this feature is sufficiently validated.  If so, yes, please merge and release.


Bumped the PHP version to 7.4.1 in the '7.4.x' branch

Bumped the PHP version to 7.4.1 in the '7.4.x' branch

Thank you for you participation ;)


serve large message

Hi,
I faced an issue is coap server responses large message (>1024bytes) over blockwise transfer but client only get 1024 bytes first. I used libcoap as client.
How to client get full data?
Here is client output
./coap-client -v 8 -m GET -o test01.der coap://localhost:5688/crts
Jul 28 18:16:23.688 DEBG ***[::1]:59146 <-> [::1]:5688 UDP : session 0x7fda05d045b0: created outgoing session
Jul 28 18:16:23.688 DEBG timeout is set to 90 seconds
Jul 28 18:16:23.688 DEBG sending CoAP request:
Jul 28 18:16:23.688 DEBG *  [::1]:59146 <-> [::1]:5688 UDP : sent 23 bytes
v:1 t:CON c:GET i:17e3 {01} [ Uri-Host:localhost, Uri-Port:5688, Uri-Path:crts ]
Jul 28 18:16:23.688 DEBG ** [::1]:59146 <-> [::1]:5688 UDP : mid=0x17e3: added to retransmit queue (3000ms)
Jul 28 18:16:24.948 DEBG *  [::1]:59146 <-> [::1]:5688 UDP : received 1037 bytes
v:1 t:CON c:2.31 i:53ca {01} [ Content-Format:application/octet-stream, Block2:0/M/1024, Size2:1471 ] :: binary data length 1024
<<data>>
<<data>>
Jul 28 18:16:24.949 DEBG ** [::1]:59146 <-> [::1]:5688 UDP : mid=0x17e3: removed 5
Jul 28 18:16:24.949 DEBG ** [::1]:59146 <-> [::1]:5688 UDP : large body receive internal issue
Jul 28 18:16:24.949 DEBG *  [::1]:59146 <-> [::1]:5688 UDP : sent 4 bytes
v:1 t:ACK c:0.00 i:53ca {} [ ]
Jul 28 18:16:24.950 DEBG *  [::1]:59146 <-> [::1]:5688 UDP : received 4 bytes
v:1 t:ACK c:0.00 i:17e3 {} [ ]
Jul 28 18:17:53.690 INFO timeout
Jul 28 18:17:53.691 DEBG ***[::1]:59146 <-> [::1]:5688 UDP : session 0x7fda05d045b0: closed

Thanks

Hi. Could you use it with the token? v2 current use the token for matching in BW transfer. (BW without token will be fixed in some minor update of v3)

There could be an issue with libcoap. I fixed this issue.
Thanks


Does not open cs-designer on linux

I vscode nothing happens when

references:

https://benjamin-altpeter.de/shell-openexternal-dangers/#digging-deeper-into-how-shellopenexternal-actually-opens-urls
https://linux.die.net/man/1/xdg-open

workaround:
The plugin uses openExternal() to start the "URL", given to it by vscode. The url looks like file:///home/users/somefile notice its just an absolute path with file:// prefixed.
vscode's implementation effectively forwards the url directly to xdg-open <url>, so a workaround to make this work is to create a program called xdg-open and have it start the program you want.
Such a program could be created like so, make sure to put it somewhere in the PATH so it can be found:
#!/usr/bin/env python3
""" opens files according to user preference (coded in this script)
"""

import subprocess
import sys
import traceback

def main():
    if (len(sys.argv) != 2):
        print("Usage: xpg-open <url>")
        print("  example: xpg-open file:///home/user/project/readme.md")
        exit(1)

    prefix = len("file://")
    url = sys.argv[1]
    abspath = url[prefix:]
    if url.endswith(".ui"):
        subprocess.run(["/home/jan.wilmans/home/project/cs_designer/designer", abspath])

if __name__ == "__main__":
    try:
        exit(main())
    except KeyboardInterrupt:
        pass
    except Exception:
        traceback.print_exc(file=sys.stdout)
    sys.exit(1)

It would probably be much better to not call openExternal() on linux, but instead have a setting to allow you to specify what executable should be called.


Offline references

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

48 of 52 (92.31%)  changed or added relevant lines in 6 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.1%) to 88.352%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

mirar/references/wfcam/utils.py
15
16
93.75%

mirar/references/wfcam/wfcam_query.py
16
19
84.21%

Files with Coverage Reduction
New Missed Lines
%

mirar/references/wfcam/wfcam_query.py
2
93.72%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
9565

Relevant Lines:
10826

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

51 of 54 (94.44%)  changed or added relevant lines in 6 files are covered.
10 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.1%) to 88.352%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

mirar/references/wfcam/utils.py
14
15
93.33%

mirar/references/wfcam/wfcam_query.py
20
22
90.91%

Files with Coverage Reduction
New Missed Lines
%

mirar/data/utils/coords.py
4
90.48%

mirar/references/wfcam/wfcam_query.py
6
93.72%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
9565

Relevant Lines:
10826

💛  - Coveralls


UI title text doesnt fit with black box first time

Issue Type: Bug
When i hover over any element, i can see the title popup but the first time text is not fit to the box and can read it.
Only occurs the first time i hover on element.
VS Code version: Code 1.22.2 (3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9, 2018-04-12T16:34:44.222Z)
OS version: Linux x64 4.13.0-39-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz (4 x 800)

Load (avg)
3, 4, 4

Memory (System)
15.55GB (3.45GB free)

Process Argv
/usr/share/code/code --unity-launch

Screen Reader
no

VM
0%

Extensions (18)

Extension
Author (truncated)
Version

githistory
don
0.4.0

ts-tslint
eg2
0.0.4

tslint
eg2
1.0.28

vscode-npm-script
eg2
0.3.4

sass-lint
gle
1.0.1

intellij-idea-keybindings
k--
0.2.23

markdown-shortcuts
mdi
0.8.1

code-beautifier
mic
2.0.3

vscode-todo-parser
min
1.9.1

vsliveshare
ms-
0.2.547

debugger-for-chrome
msj
4.3.0

tsimporter
pmn
1.2.14

vscode-sass-format
sas
1.1.4

markdown-preview-enhanced
shd
0.3.5

autoimport
ste
1.5.3

language-stylus
sys
1.9.2

vscode-npm-scripts
tra
0.2.0

vscode-todo-highlight
way
0.5.12

We are building exploration builds that use a much newer version of Electron (our UI framework). I wonder if this issue reproduces with one of these builds, could you try? Download:

macOS: Download
Linux: Download
Windows: Download

Im testing and now looks fine.  Good job!

@bpasero  wow, this is what i was wanting for long time ago. I hate to download every new version and install manually.
Thanks! I love vscode and i love what are you doing guys. Javascript will dominate the world hahaha


Do not include empty files in the zip bundle

Empty should include {}, right?

Related open-contracting/standard-development-handbook#19


Adding Stomps Profile

The How-To Doc on adding yourself to the website says to make a PR with the "develop" branch on the main repo. I don't see a develop branch so I am requesting a pull with the source branch. If that is correct I can update the doc.

@stompsjo I believe this is correct :)

LGTM!

@stompsjo could you issue an other PR to fix the doc ?

The README doc on the repo is correct, it's the How-To Google doc that was shared to me that needs the change. I edited it, is a new PR necessary then?

No PR required in the googledoc!
Thank you for catching and fixing this !


Implement user-defined symbolic operators & uncurry all operator applications

Examples:
fun (>>) compose(f, g) = x => g(f(x))
//│ fun (>>) compose: forall 'a 'b 'c. ('a -> 'b, 'b -> 'c) -> 'a -> 'c

:js
let r = succ >> succ
//│ let r: Int -> Int
//│ // Prelude
//│ function succ(x) {
//│   return x + 1;
//│ }
//│ class TypingUnit1 {}
//│ const typing_unit1 = new TypingUnit1;
//│ // Query 1
//│ globalThis.r = compose(succ, succ);
//│ // End of generated code
//│ r
//│   = [Function (anonymous)]

r(3)
//│ Int
//│ res
//│     = 5

At the type level:
type *[A, B] = [A, B]
//│ type *[A, B] = [A, B]

fun x : Int * Int
fun x = [0, 1]
//│ fun x: [0, 1]
//│ fun x: *[Int, Int]

It seems that there are some parsing problems:
fun (<<|+_+|>>) robot(a, b) = a + b
//│ fun (<<|+) robot: (Int, Int) -> Int
// should be `<<|+_+|>>`, but we got `<<|+`

fun (:-D) dd(a, b) = a + b
//│ fun (:-) dd: (Int, Int) -> Int
// should be `:-D`, but we got `:-`

The parsed operators are not complete. If there is any unsupported symbol in the defined operators, maybe we can reject it in the parser.

@NeilKleistGao Good catch! I've fixed the parsing bug (it was swallowing some erroneous tokens) and improved the error messages.

When will we support emoji? 😁😄😃

@chengluyu Good suggestion! But the lexer currently says "unexpected character" :^(

@NeilKleistGao @chengluyu Some parts of JSBackend.scala are really hairy, with strange/fishy logic. For example see all the // TODO Improve comments I added here: https://github.com/hkust-taco/mlscript/blob/157c3e7117d8e34d8cb671618f3007736c5c821a/shared/src/main/scala/mlscript/JSBackend.scala#L1364-L1403
Because of this I couldn't easily tell why this one does not currently work:
val (-->) f(x, y) = [x, y]
//│ let (-->) f: forall 'a 'b. ('a, 'b) -> ['a, 'b]
//│ f
//│   = [Function: f]

:ge // FIXME
12 --> 34
//│ [12, 34]
//│ Code generation encountered an error:
//│   unresolved symbol -->


Move resource trail project to other repo

The resource trail project is right now openly accessible on github and has credentials in the readme file. That should change ASAP. At least the passwords need to be removed and changed.

I have created a repo hub-resource-trail that we should move the content to.

I have moved the content to the hub-resource-trail repo and deleted all the files in the old repo. I think I missed a branch which Sebastian would need to push again to the new repo...
Please don't push until you have changed to the new origin by using the following command:
git remote set-url origin git@github.com:rtcharity/hub-resource-trail.git
or if you use https
git remote set-url origin https://github.com/rtcharity/hub-resource-trail.git


Add link the AvatarList.astro component on error.

Make the error reporting just a bit clearer for AvatarList.astro since there's currently no reference to the file to tell you where the error is coming from.
This honestly might be something to add to astro by default: prefixing console.log in the build with the component it printed from, or at least a custom logger that people can opt in to

This honestly might be something to add to astro by default: prefixing console.log in the build with the component it printed from, or at least a custom logger that people can opt in to

Hijacking console.log can be risky, but import {log} from 'astro' could be neat!

This honestly might be something to add to astro by default: prefixing console.log in the build with the component it printed from, or at least a custom logger that people can opt in to

Hijacking console.log can be risky, but import {log} from 'astro' could be neat!

Yeah, that's what I was thinking - opt in fancy logging though maybe there's an option already out there we could simply reccomend 🤔


drupal vm Run Composer installer Failed to decode zlib stream

I am trying to run vagrant up but its getting failed  while running comnposer

After installing composer we are facing below issue

It sounds like there may be either a networking issue, or a disk I/O issue. When you created this issue, there were a series of questions to help us diagnose your problem better. I am closing this issue—can you please open another new issue and fill out all the information (e.g. what OS, what versions, etc.)?


node-problem-detector: 0.8.7 -> 0.8.9

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/kubernetes/node-problem-detector/releases.
meta.description for node-problem-detector is: "Various problem detectors running on the Kubernetes nodes"
meta.homepage for node-problem-detector is: "https://github.com/kubernetes/node-problem-detector"
meta.changelog for node-problem-detector is: "https://github.com/kubernetes/node-problem-detector/releases/tag/v0.8.9"
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/c1y6xfbiqf1yxngkzrnf5km35hzk9zw8-node-problem-detector-0.8.9/bin/nodeproblemdetector passed the binary check.

/nix/store/c1y6xfbiqf1yxngkzrnf5km35hzk9zw8-node-problem-detector-0.8.9/bin/logcounter passed the binary check.

1 of 2 passed binary check by having a zero exit code.

2 of 2 passed binary check by having the new version present in output.

found 0.8.9 with grep in /nix/store/c1y6xfbiqf1yxngkzrnf5km35hzk9zw8-node-problem-detector-0.8.9

found 0.8.9 in filename of file in /nix/store/c1y6xfbiqf1yxngkzrnf5km35hzk9zw8-node-problem-detector-0.8.9

directory tree listing: https://gist.github.com/f106f0315597ac120d0fdaacd9c2e42c

du listing: https://gist.github.com/7133b803f3b4bc81360268bc084efb90

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
node-problem-detector

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/c1y6xfbiqf1yxngkzrnf5km35hzk9zw8-node-problem-detector-0.8.9 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A node-problem-detector https://github.com/r-ryantm/nixpkgs/archive/0649d2c8a1a4cc1bb1145c77b805cf456f2ce514.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/c1y6xfbiqf1yxngkzrnf5km35hzk9zw8-node-problem-detector-0.8.9
ls -la /nix/store/c1y6xfbiqf1yxngkzrnf5km35hzk9zw8-node-problem-detector-0.8.9/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

node-problem-detector

Maintainer pings
cc @lbpdt @kalbasit for testing.

Result of nixpkgs-review pr 134191 run on x86_64-linux 1

1 package built:

node-problem-detector


Remove version: OSGeo.GeoServer version 2.19.1

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

Close with reason: Package still available.;


📖 DOC: Updated README

[Update] Contributors section in README
Closes #55
Changes made🏗:

[x]  Updated table of content with sub lists.
[x] Updated .gitIgnore to .gitignore
[x] Updated Contributors section.

Awesome! Thank you :)


You need to implement this function to fix "TOO_MANY_ACTIVE_STREAMS" issue @inks007

When you request more than 20 streams in CR they blocked temporally the account because right no crunpyroll is not closing streaming after requested, so you need to implement this function (@inks007): https://github.com/smirgol/plugin.video.crunchyroll/commit/23ade04177096fa890a0b9617efcc7abc2f112aa
I tried to do it with this method:
from crunpyroll import enums
from crunpyroll import types
import requests
import crunpyroll

class ClearActiveStream:
	async def clear_active_stream(self: "crunpyroll.Client", episode_id: str, token: str):
		if not episode_id or not token:
			return

		try:
			await self.session.retrieve()
			response = await self.api_request(
				method="DELETE",
				endpoint=f"v1/token/{episode_id}/{token}",
				host=enums.APIHost.PLAY_SERVICE
			)
		except requests.exceptions.RequestException as e:
			# catch timeout or any other possible exception
			print(e)
			return

and then on client.py this change:
	@staticmethod
	def parse_response(response: httpx.Response) -> Optional[Union[Dict, str]]:
		status_code = response.status_code
		text_content = response.text
		message = f"[{status_code}] {text_content}"
		try:
			content = response.json()
		except json.JSONDecodeError:
			content = response.text
		if status_code != 200:
			if status_code == 204:
				return content
			raise CrunpyrollException(message)
		return content

It is possible that there is a better solution, perhaps you who have more experience modifying crunpyroll know how to improve it.

Thanks for the heads up. The delete method seems to work, but the response.text seems to always be empty even if you pass incorrect tokens...
Now I run into HTTP 503 Forbidden when accessing the segments of the following stream too quickly. Perhaps due to rate-limiting on the server-side.

Thanks for the heads up. The delete method seems to work, but the response.text seems to always be empty even if you pass incorrect tokens...
Now I run into HTTP 503 Forbidden when accessing the segments of the following stream too quickly. Perhaps due to rate-limiting on the server-side.

I use delete active streams after i download the files of that episode, i think is the correct way to dont get any error, dont you think?

I have a problem when I launch the episode download and put as fabre says await client.delete_active_stream behind the download function to run when it finishes I get the following error, what exactly am I doing wrong?
Do I have to call some missing import?
Do I have to make another way the call to perform the download, or it is not done this way?
Sorry if you don't understand me well, since I use translator, and I don't understand much of how phyton works since I am trying to adapt to my needs a script that was given to me.
`import crunpyroll
import asyncio
import sys
import os
import requests
from pywidevine.cdm import Cdm
from pywidevine.pssh import PSSH
from pywidevine.device import Device
from uuid import uuid4
client = crunpyroll.Client(
*
*
*
)
async def main():
await client.start()
*
*
*
#We launch the download
# yt_dlp_url contains download instructions with yt_dlp.exe
os.system(yt_dlp_url)
# We wait for it to finish downloading
await client.delete_active_stream(
streams.media_id,
token=streams.token
)

# Get Widevine PSSH from manifest

cdm.parse_license(session_id, license)
print()
for key in cdm.get_keys(session_id, "CONTENT"):
print((f"{key.kid.hex}:{key.key.hex()}"),file=open('./Temporales/Key.txt','a'))
cdm.close(session_id)`

Traceback (most recent call last):   File "E:\Crunchy Videos\Temporales\crunpyroll_cr2.py", line 117, in <module>     asyncio.run(main())   File "C:\Python311\Lib\asyncio\runners.py", line 190, in run     return runner.run(main)            ^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\asyncio\runners.py", line 118, in run     return self._loop.run_until_complete(task)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete     return future.result()            ^^^^^^^^^^^^^^^   File "E:\Crunchy Videos\Temporales\crunpyroll_cr2.py", line 106, in main     license = await client.get_license(               ^^^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\site-packages\crunpyroll\methods\get_license.py", line 34, in get_license     response = await self.api_request(                ^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\site-packages\crunpyroll\client.py", line 117, in api_request     return Client.parse_response(response, method=method)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\site-packages\crunpyroll\client.py", line 90, in parse_response     raise CrunpyrollException(message) crunpyroll.errors.CrunpyrollException: [401] "Unauthorized"
Traceback (most recent call last):   File "E:\Crunchy Videos\Temporales\crunpyroll_cr2.py", line 116, in <module>     asyncio.run(main())   File "C:\Python311\Lib\asyncio\runners.py", line 190, in run     return runner.run(main)            ^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\asyncio\runners.py", line 118, in run     return self._loop.run_until_complete(task)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete     return future.result()            ^^^^^^^^^^^^^^^   File "E:\Crunchy Videos\Temporales\crunpyroll_cr2.py", line 105, in main     license = await client.get_license(               ^^^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\site-packages\crunpyroll\methods\get_license.py", line 34, in get_license     response = await self.api_request(                ^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\site-packages\crunpyroll\client.py", line 117, in api_request     return Client.parse_response(response, method=method)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Python311\Lib\site-packages\crunpyroll\client.py", line 90, in parse_response     raise CrunpyrollException(message) crunpyroll.errors.CrunpyrollException: [401] "Unauthorized"

I update, if I put it as in the example of @inks007
it works, but before it gave me the same error 503 that's why I changed as fabrebatalla18 said, but I get that error ><
testing now that it goes as inks017 has put it I have tried to download 4 files in a row and I see that I get 4 sessions in connected devices, so I do not know if it really works or is something else, because this should no longer happen, the multiple sessions, right?
	cdm.parse_license(session_id, license)
	print()
	for key in cdm.get_keys(session_id, "CONTENT"):
		print((f"{key.kid.hex}:{key.key.hex()}"),file=open('./Temporales/Key.txt','a'))
	cdm.close(session_id)

	# Esperamos a que termine de descargar
	await client.delete_active_stream(
	streams.media_id,
	token=streams.token
	)

asyncio.run(main())

Where the line says device_id=str(uuid4()),, replace str(uuid4()) with a fixed UUID.
You can generate a UUID below:
from uuid import uuid4
print(str(uuid4()))

Yes, in the end I did just that to have a uuid and leave it fixed.


[Bug] wallet: 'an unexpected error' with on currency selector

🐛 Bug

The

current UI build shows 'an unexpected error' during the initial setup flow when you get to the currency selector; perhaps the system is failing after attempting a D.O.B lookup? I ask since the only hit I get on the string 'error' in the logs points

out I did not enter a valid, formatted date during registration
To reproduce

enter an invalid (poorly formatted (ie, "1/1/2002") D.O.B during initial  registration
when you get to the currency selection page, note red error on screen stating 'an unexpected error'

Code snippet to reproduce
# Your code goes here
# Please make sure it does not require any external dependencies

Stack trace/error message
// Paste the output here

Expected Behavior

System information
Please complete the following information:

git pull from 'reference-wallet' on 1/24/2021

macosII

Additional context
Add any other context about the problem here.

will close and re-open under 'ref wallet' and not 'client'

will close and re-open under 'ref wallet' and not 'client'


[Mentions v2] Replace email-based mentions with accountID-based mentions in the add comment flow

We need to update the add comment flow on the back-end to recognize email-based mentions and replace them with accountID-based mentions before saving the reportAction in the database. This is covered in the design doc here.

Going to work on this next.

Started on this here: https://github.com/Expensify/Auth/pull/10682

Whoops. This was finished a few weeks ago.


[Failing Test]: Wordcounts in preCommitLegacyWorkerImpersonate portion of beam_PreCommit_Java_Examples_Dataflow  are permared

What happened?
java.io.IOException: Error matching file spec gs://apache-beam-samples/shakespeare/sonnets.txt: status ERROR
	at org.apache.beam.sdk.io.FileSystems.matchSingleFileSpec(FileSystems.java:196)
	at org.apache.beam.sdk.util.ExplicitShardedFile.<init>(ExplicitShardedFile.java:58)
	at org.apache.beam.examples.WindowedWordCountIT.testWindowedWordCountPipeline(WindowedWordCountIT.java:174)
	at org.apache.beam.examples.WindowedWordCountIT.testWindowedWordCountInStreamingStaticSharding(WindowedWordCountIT.java:113)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)

checked that gs://apache-beam-samples/shakespeare/sonnets.txt exists
checked last PR that was merged after which the suite started failing on master on
https://github.com/apache/beam/actions/workflows/beam_PreCommit_Java_Examples_Dataflow.yml?query=is%3Afailure+branch%3Amaster
Presubmits passed on that PR: https://github.com/apache/beam/pull/30172
Issue Failure
Failure: Test is continually failing
Issue Priority
Priority: 1 (unhealthy code / failing or flaky postcommit so we cannot be sure the product is healthy)
Issue Components

[ ] Component: Python SDK
[X] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam YAML
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

Presubmits passed on that PR: https://github.com/apache/beam/pull/30172

I think the presubmit failed actually.
https://github.com/apache/beam/actions/runs/9244426284

That apache/beam/actions/runs/9244426284 run was 'Triggered via push 2 days ago' (from the metadata), that means, GHA started the suite after the merge of the pr into master branch.
The run on the PR itself was this one: https://github.com/apache/beam/actions/runs/7732101964/job/21081256349

Actually, the PR was merged after a long pause in reviews, it is likely that the suite passed on the PR a while ago, but by the time we got around to merge it, it wasn't passing anymore. Let's verify on a rollback: https://github.com/apache/beam/pull/31423

Rollback doesn't seem to help. Also saw:
java.lang.IllegalArgumentException: DataflowRunner requires gcpTempLocation, but failed to retrieve a value from PipelineOptions
	at org.apache.beam.runners.dataflow.DataflowRunner.fromOptions(DataflowRunner.java:291)
	at org.apache.beam.runners.dataflow.TestDataflowRunner.<init>(TestDataflowRunner.java:71)
	at org.apache.beam.runners.dataflow.TestDataflowRunner.fromOptions(TestDataflowRunner.java:90)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

I had two PRs (#31358, #31324) related to tempLocation last week, but they were at least five days before the test started to fail.

I had similar failure for https://github.com/apache/beam/pull/31413. Can it be access issue?
https://github.com/apache/beam/pull/31413/checks?check_run_id=25470855044

Caused by: java.io.IOException: Error requesting access token
at com.google.auth.oauth2.ImpersonatedCredentials.refreshAccessToken(ImpersonatedCredentials.java:516)
at com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:270)
at com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:267)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)

The failed task is ':runners:google-cloud-dataflow-java:examples:preCommitLegacyWorkerImpersonate'. It uses a dedicate "impersonate" service account to interact with GCP. Local run on your own credential is fine
The actual error message:
Caused by: com.google.api.client.http.HttpResponseException: 403 Forbidden
POST https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/allows-impersonation@apache-beam-testing.iam.gserviceaccount.com:generateAccessToken
{
  "error": {
    "code": 403,
    "message": "Permission 'iam.serviceAccounts.getAccessToken' denied on resource (or it may not exist).",
    "errors": [
      {
        "message": "Permission 'iam.serviceAccounts.getAccessToken' denied on resource (or it may not exist).",
        "domain": "global",
        "reason": "forbidden"
      }
    ],
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "IAM_PERMISSION_DENIED",
        "domain": "iam.googleapis.com",
        "metadata": {
          "permission": "iam.serviceAccounts.getAccessToken"
        }
      }
    ]
  }
}

Either permission of the service account<EMAIL_ADDRESS>is changed unexpectedly, or there are some recent breaking change on GCP side

The failed task is ':runners:google-cloud-dataflow-java:examples:preCommitLegacyWorkerImpersonate'. It uses a dedicate "impersonate" service account to interact with GCP. Local run on your own credential is fine
The actual error message:
Caused by: com.google.api.client.http.HttpResponseException: 403 Forbidden
POST https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/allows-impersonation@apache-beam-testing.iam.gserviceaccount.com:generateAccessToken
{
  "error": {
    "code": 403,
    "message": "Permission 'iam.serviceAccounts.getAccessToken' denied on resource (or it may not exist).",
    "errors": [
      {
        "message": "Permission 'iam.serviceAccounts.getAccessToken' denied on resource (or it may not exist).",
        "domain": "global",
        "reason": "forbidden"
      }
    ],
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "IAM_PERMISSION_DENIED",
        "domain": "iam.googleapis.com",
        "metadata": {
          "permission": "iam.serviceAccounts.getAccessToken"
        }
      }
    ]
  }
}

Either permission of the service account<EMAIL_ADDRESS>is changed unexpectedly, or there are some recent breaking change on GCP side

The local run indeed uses allows-impersonation.

Test command using gcloud:
gcloud storage buckets list<EMAIL_ADDRESS>gs://impersonation-test-bucket/

root cause is ${{ secrets.GCP_SA_EMAIL }} repo secret accidentally get replaced to another service account that doesn't have the "service account token creator" role needed for the test in question. We still do not understand how this happened as Committers won't have direct access to the repo setting unless make a request to Apache Infra.
A follow up #31483 is entered to remove the use of ${{ secrets.GCP_SA_EMAIL }} for most tests. There are still some workflows used this secret (to setup google-github-actions/setup-gcloud@v0) either due to the tests not run on self-hosted runner or have modified gcloud installation in workflow (pre-installed gcloud CLI cannot be modified)

Another follow up would be fix the ${{ secrets.GCP_SA_EMAIL }} (and related) repo secret


Adding raw access to the internal data structure of GraphMap.

This is analogous to the implementation in graph.rs.
Reason for this PR: #16

Not sure we should expose "raw" versions here. The Graph type is somewhat of a special case being relatively open to inspection of the whole implementation of the data structure. Something corresponding to the existing nodes would be nice.

You mean like:
fn all_edges<'a>(&'a self) -> Edges<'a, N, E>

which would return an iterator over ((N,N), E) ?
I'll try that :)

Yes. Not so fond of the all_edges name, but I can't find a better one — just edges is taken.

Instead of this, #18 is better.


[Not Quite Serious] Please add the Tired newtype

I think Tired deserves a constructor in this library in concordance with the Pink Floyd Category of Prisms?

... and, actually, while I'm here: You decidedly missed out on Quite. Shame!


curl: (23) Failed writing received data to disk/application

Hello,
I am trying this plugin which looks very promising but after setting it up I am getting the following error:
- Datetime: 2024-08-28 13:03:05

- Model: claude/claude-3-5-sonnet-20240620

> hello

🔄 **Generating response ...**

🚨 Error: {
  exit = 23,
  message = 'post https://api.anthropic.com/v1/messages - curl error exit_code=23 stderr={ "curl: (23) Failed writing received data to disk/application" }',
  stderr = '{ "curl: (23) Failed writing received data to disk/application" }'
}

Looks like curl is trying to write something to disk and doesn't have permissions. I tried changing the setting history.storage_path but same issue. Do you know what this plugin is trying to write to disk, where and how to change it?
In case it helps I am running this on MacOS and I installed neovim using nix and looks like using sudo works (which confirms it is a permission issue I guess).
Thanks!

+1

what curl version are you using? there was an issue about curl 8.7 or sth similar afaik.

I had seen that, I just tried updating to 8.9.1 but no change. I had 8.1.2 before and the issue persisted.
Note I used to use my own simple llm pluging https://github.com/MathieuTuli/jarvis.nvim and use curl just fine in a very similar manner to this plugin, so I know with reasonable confidence it's not curl (version), unless there's specific piping going on that is obfuscated. Will dig further.

I am using curl 8.7.1 but in my case if I start nvim with sudo it works fine so I suspect it is a permissions issue. Is the history the only thing being written to disk? I can see the folder being created but no files written when running nvim, with sudo nvim I can see the history files being written.

I'm also seeing this issue. I'm using openai and have confirmed curling requests outside of neovim & avante work as expected. I tried updating curl as well and am still seeing the issue.

Seems related https://github.com/nvim-lua/plenary.nvim/issues/536

@dbarrosop from what I gather the command fails before even getting to the history save, so I don't think that's it. Permissions on the state folder defined by storage_path seem okay so I don't think it's a permission issue there.
It's the Llm.stream() call that's failing, and falling back to on_error - it would ideal to get a print out of the exact curl command so I could test/see what may be going on. I suspect it may be from trying to stream the curl response, which is perhaps piping data to another command this permission error.

Ok, I think I figured it. So the issue is that the curl method is using $XDG_RUNTIME_DIR, which in my case was set to /run/user/501 which didn't exist. Just for the sake of trying I tried to set it to /tmp/run/user/501 but same issue. Finally, I created the folder with mkdir -p /tmp/run/user/501 and now everything works.

@dbarrosop yeah it seems plenary on MacOs, or some set of config, causes it to look there instead of the default /tmp. This also works as a fix.
export XDG_RUNTIME_DIR="/tmp/"

This is most likely a plenary issue.

@dbarrosop yeah it seems plenary on MacOs, or some set of config, causes it to look there instead of the default /tmp. This also works as a fix.
export XDG_RUNTIME_DIR="/tmp/"

Which you can set in your .zshrc or something. I recommend doing this as folders in /tmp are not guaranteed to be persistent.
This is most likely a plenary issue.

This worked for me as well.

I wil reference this into the wiki. will close it as it doesn't seem like it is related to the plugin.


serde skip  will not skip enum values

general:
maybe i did not properly understand the docs, but shouldent  #[serde(skip)] skip an enum field on serializasion?
problem:
this code panics
expectation:
ser should contain the serialized values without the Container::Empty values
example:
use serde::Serialize;

#[derive(Debug, Serialize)]
#[serde(untagged)]
enum Container {
    Value(i64),
    Instruction,
    #[serde(skip)] // unfortunately this does not work
    Empty,
}

#[test]
fn test() {
    let values = vec![
        Container::Value(1),
        Container::Value(2),
        Container::Empty,
        Container::Value(1),
        Container::Empty,
        Container::Instruction,
        Container::Value(1),
    ];

    let ser = serde_json::to_value(values).expect("damn");
}

playground

The code panics because you are calling expect on the return value. It is not a panic stemming from serde. If you look at the variant documentation, you can see that this is expected:

Never serialize this variant. Trying to serialize this variant is treated as an error.

With the serde traits, a value cannot decide itself to be skipped. Skipping is only possible if a container (like a sequence, map, struct) decides that it doesn't want to serialize a value. But if serialize is called on a value, it either needs to serialize something or return an error, which is the case here. You can achieve your goal by writing a custom serialization for the whole Vec.


Add support for more code conversion for migration

This is great, thank you! Don't hesitate to add more if you find.

@seekshiva is it ready to be merged?

@zth This was required to convert one of our internal repos into rescript. If we find more such cases while converting other repos, will raise more PRs in future.
That's it for now.

I also found that Js.Math.random_int() no longer exists. We should either prevent this from getting converted into Math.random_int() or we need to add random_int into the Math module.
I wasn't sure which direction to go in. If you have suggestion on this, I can implement it in the same PR or in a different one.


Still many colorization issues around moving string interpolations

https://github.com/JetBrains/resharper-fsharp/issues/263#issuecomment-847639838
When changing a function body around a string interpolation there is still a lot of invalid colorization below an interpolated string. 2021.2 EAP 3

This is also finally really fixed!

Found another case, will try to repro

module repro =
    let x () =
        if not true then invalidOp $"Expected true but got {false}"
        0

    open System.Collections.Immutable

Indent 0 and deindent to see the open namespace discolor

Interesting, it seems either of https://github.com/JetBrains/resharper-fsharp/commit/76161eccf62a1bc09fa1070d351cac00dee0edce or https://github.com/JetBrains/resharper-fsharp/commit/b7cad4e8336810cc848e27e308de06bd379985fa has fixed this issue too. I cannot reproduce the indent/deindent 0 case anymore (though, it reproduces in the build without these changes).

OK, I've managed to reproduce now.

Here it goes: https://github.com/JetBrains/resharper-fsharp/commit/3e4f20ef0f9ca5c90c66f04e7e82405dea1123d0. @NinoFloris Thanks for all the repro cases, it helped to find the root cause!


Alternating between mutants with and without '+nightly' does some odd things

I did some 'cargo mutants' runs on one of my projects alternating between '+nightly' and normal (stable) builds. Cargo mutants then reported problems in functions that should be disabled behind a 'feature' gate. The feature is selected by 'build.rs', so to by best guess so far there is something strange going on keeping state from previous builds that where using the other toolchain.
Running 'cargo clean' fixed these problems, that's why I conclude that its prolly some state left from the former build.
I haven't be able to isolate this in a simple test case. When you have any idea whats going on here it, maybe you can fix it already. If not I can try to make a testcase sometime next, just leave this ticket open and nag me about more infos.

could this be because:
"""
cargo-mutants does not yet understand conditional compilation, such as #[cfg(target_os = "linux")]. It will report functions for other platforms as missed, when it should know to skip them.
"""

That quote is correct: it doesn't currently understand cfg gates, so will
report code as untested that actually is not included in the build at all.
But, I don't know yet of any way that this would cause inconsistent results
over repeated builds on different toolchains, or that are affected by
cargo clean. Maybe your build.rs is not really hermetic or
deterministic, and won't generate the same results on consecutive builds.
Martin
On Sun, Apr 23, 2023 at 10:29 AM cehteh @.***> wrote:

could this be because:
"""
cargo-mutants does not yet understand conditional compilation, such as
#[cfg(target_os = "linux")]. It will report functions for other platforms
as missed, when it should know to skip them.
"""
—
Reply to this email directly, view it on GitHub
https://github.com/sourcefrog/cargo-mutants/issues/114#issuecomment-1519116424,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACUR4342QTFPEAUL53XC63XCVRIZANCNFSM6AAAAAAXHIF4BI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Aside from #50 I don't think this is actionable without a reproduction case, and I suspect it's due to your build script. Please reopen if you have more information.


Add support to get cluster replica node for a given key

As discussed on discord @vmihailenco this PR adds support to export commands that give the replica and master for a given key.

Thanks!