Merge GO:0044267 cellular protein metabolic process and GO:0019538 protein metabolic process & children

In many cases, the distinction between 'x cellular process' and its parent 'x process' is not necessary, because 'GO:0009987 cellular process' is defined as 'Any process that is carried out at the cellular level, but not necessarily restricted to a single cell. For example, cell communication occurs among more than one cell, but occurs at the cellular level.' , so any metabolism relevenat to proteins is necessarily cellular.
So I will merge the following pairs of terms:
GO:0044267 cellular protein metabolic process -> merge into GO:0019538 protein metabolic process
GO:0006464 cellular protein modification process -> merge into GO:0036211 protein modification process
GO:0044257 cellular protein catabolic process -> merge into GO:0030163 protein catabolic process
GO:1903362 regulation of cellular protein catabolic process -> merge into GO:0042176 regulation of protein catabolic process
GO:1903363 negative regulation of cellular protein catabolic process -> merge into GO:0042177 negative regulation of protein catabolic process
GO:1903364 positive regulation of cellular protein catabolic process -> merge into GO:0045732 positive regulation of protein catabolic process
Thanks, Pascale

Changed labels to remove 'cellular':

GO:1903050 regulation of proteolysis involved in cellular protein catabolic process
GO:1903051 negative regulation of proteolysis involved in cellular protein catabolic process
GO:1903052 positive regulation of proteolysis involved in cellular protein catabolic process

GO:0034613 cellular protein localization -> merge into GO:0008104 protein localization

I think that takes care of all 'cellular protein' terms.


CloudFront Fails to create

I keep getting this error each time it reaches the Cloudfront resource creation stage.
Embedded stack arn:aws:cloudformation:eu-west-1:4891:stack/Wordpress-cloudfront-BWS8W/6a02b0-1ce6-11ea-9d0b-02 was not successfully created: The following resource(s) failed to create: [CloudFrontDistributionSslCertificate].
I ensured the Certificate in ACM is created in the N.Virginia region and it has been validated against my domain with an "Issued" status
Could i be doing something wrong? Anyone came across this?

Are you sure the certificate covers the alternate CNAMEs to include www.test.com and test.com

@sxmxc24 @cosminzeev I ran into the same issue.
When creating the certificates, I needed to define the domain name as *.yoururl

When Associating Domains to Cloudfront and an SSL cert to go with them, you must ensure you have all alt names matching whats on your Cloudfront Alternate Domain Names (CNAMEs). Else it will be rejected. Its one of those policies AWS put in place to stop people associating random domains to their distribution for sub-domain take over see https://github.com/EdOverflow/can-i-take-over-xyz/issues/29#issuecomment-482481052 why this is the case and also why you can't have no ssl on random domain name with cloudfront any more.


Method with "async void" signature

In e.g. UpdSocketBase (Android) the method RunMessageReceiver has an "async void" signature which can lead to program/app crashes which are hard to understand and analyse. The signature should be changed to "async Task" and awaited in e.g. StartListeningAsync.

Howdy!
Thanks for this and the other issue with good observations. For this one, I think changing the signature is a good move; but I don't think it can be awaited as it would halt at the call site until the socket failed or disconnected.
One approach I've tried in the past is like this, exposing the errors through an event. Thoughts?

Looks better without the async void signature. Two other things: I would avoid copying arrays whenever possible especially in high frequent call scenarios. Also maybe consider instead of deriving from MemoryStream derive from Stream directly and aggregate MemoryStream if needed plus override the Async methods.


Fix CT calculation

Will close #33

Consolidating inner start dates is awesome… but useless here.
It doesn't solve the issue since CT are calculating as LT between 2 lists. Lists are splits into pairs, then actions are parsed and LT is calculating for each pair: there is no "inner" start date to consolidate.
Consolidation should be done before, as if the card was moved to each intermediate column of the flow.
¯_(ツ)_/¯


CallPath newtype wrapper

Summary
This PR changes the CallPath type alias to a newtype wrapper.
A newtype wrapper allows us to limit the API and to experiment with alternative ways to implement matching on CallPaths.
Test Plan
cargo test

@charliermarsh not fully. Two changes could improve performance:

CallPath::from_qualified_name now uses find instead of contain and uses split on the rest rather than starting from the start again
collect_call_path: Now uses SmallVec::from instead of from_slice for call paths with 8 segments.

However, it seems strange for me that either change would improve performance that much.


duplicated #js-repo-pjax-container for empty project on Issues Page

Something is happening on the issues page for empty projects.
To reproduce this behaviour, follow these steps:

Create a new repository without readme
Go to Issues page

This has been previously reported in #216 and #259 and fixed in #258. It seems we have a regression and it's now reproducing again.


bme280: Support sensor shell correctly

Update bme280 sensor driver to support
sensor shell correctly.
Fixes issue #74927

Looks good, but the commit message is misleading as the fix has nothing to do with Shell, but rather the driver itself.
Can you update it to better reflect the fix?

I updated the commit message.


HorseBasic Authentication Error

when i add this line to my project and open Chrome delphi show error : Project Server_Test.exe raised exception class EListError with message 'Item not found'.
THorse.Use(HorseBasicAuthentication(
function(const AUsername, APassword: string): Boolean
begin
Result := AUsername.Equals('user') and APassword.Equals('pass');
end));

There's something wrong, I just tested it and it works fine.

Try to run the project from the "Samples" folder

@viniciussanchez
i open sample and have same problem
Project Samples.exe raised exception class EHorseCallbackInterrupted with message ''.
delphi 2 time show this error and Chrome show Unauthorized

When you use the basic authentication middleware, and do not inform the Header Authorization in the request, containing a valid username and password, this exception will pop up.
That's if you're in debug mode. If you click on continue, it will give the message of unauthorized, because the valid username and password were not informed in the Authorization header.
If you enter the data correctly in the request, it will not give the message. That's how it works

Chrome does not open a login page for me and I do not enter a username and password, it only displays the Unauthorized message.
That's right with postman, but I'm building a website
Also how to set up logout, maybe Chrome already has data stored for this port
Do you need me to film the process?

Yes, your browser must have cache.
No need to film.
If you make a request in the browser it would have to appear a small screen asking for the credentials.
If that's not showing up, it's not Horse's or middleware's problem. It's your browser's problem.
Just yesterday I needed to do a test, and the screen appeared for me.

Okay, I'll clear the browser cache and test it
But how do I make a log out?

Logout would be a rule of your frontend application. You need to set this... basically it would remove the site cache containing the username and password that it would no longer request

Is no session recorded?

on the horse no

OK thanks


nuzhy/_/update temp js with rest

We need the functionality to read localstorage and use app id and server stored there if present and fallback to default if not


Make pomegranate_staging queues not durable.

The pomegranate_staging queue on figgy right now has > 100k messages. When we switch staging back and forth we manually index the collections we're interested in testing. We don't need these messages to stick around and build up.

Deleted the staging queues from figgy prod. Once the PR is in, if staging is linked to prod again they should be re-created, and then when it's disconnected they should go away.


Convert redisget to redis::get API v4 function

Since we'll be dropping puppet 3 support in the next release, we should
move away from using legacy functions that suffer from environment
isolation issues.
See https://puppet.com/docs/puppet/4.10/functions_legacy.html
The newer function API also has built in support for validating function
arguments, declaring some parameters as optional etc.  This allows us to
remove a lot of our own code that was performing this validation before.
Fixes #291

I need to update the README too.

README updated


revert removing contents of harmony branch; fixes #1197

This reverts commit 734ff0028274ab4254d2c06e67efbf2dceaf2b72.

Hmm, what's the reason to reinstating the harmony branch? See also #1172.

Superceded by https://github.com/ariya/esprima/commit/a4bcdd07f4.


[Feature Request] Support building other SDKs inside other corporate build systems.

Is your feature request related to a problem? Please describe.
In this ticket, I'm using Python SDK as example, but I think the problem will also apply for other SDK that refer to the sdk-core Rust package.
So I'm working in an organization where we have our own crate registry. This crate registry will regularly mirrors the crates.io. We also have our own build system for Rust. And that build systems will use our crate registry only. Our build servers won't be able to connect to the internet to pull anything from crates.io
We also have the same constraint for Python, we have our own registries for Python packages. In order to use Temporal SDK, I will need to import and build this package locally in our build system. However, I cannot build the Python SDK because the sdk-core is not publish to crates.io, so it didn't imported automatically into our crate registry. This will fail the build of the Python package.
Describe the solution you'd like
Can we publish this sdk-core to crates.io? Or any other plans that can support us to build the Python SDK without connecting to crates.io?
Thanks a ton.

However, I cannot build the Python SDK because the sdk-core is not publish to crates.io, so it didn't imported automatically into our crate registry

This dependency isn't obtained from crates.io in Python SDK build, it's in the repo cloned as a submodule. All Rust code for this repository is local to the Python SDK build. It does have dependencies of course that use crates.io which should support your general Rust building approach.

Ah got it, in that case, let me try to investigate more. Thanks for the infor @cretz :)

:+1: Closing issue for now, but will monitor


Explore action NOT work

Hi, Im using Jobs Reborn 4.1.3.
Explore action doesnt work at all world in my server.
I,m not FLY mode.
This bug has been reported many. why did you not fix it?
Im using default jobConfig.yml.
plz fix it.
thanks.

Are you by any chance using a pre-generated world? I noticed that broke the plugin on my server.


x/website: Installing Go from source page does not mention loong instruction set

At https://go.dev/doc/install/source
The Go compilers support the following instruction sets:

amd64, 386
    The x86 instruction set, 64- and 32-bit.
arm64, arm
    The ARM instruction set, 64-bit (AArch64) and 32-bit.
mips64, mips64le, mips, mipsle
    The MIPS instruction set, big- and little-endian, 64- and 32-bit.
ppc64, ppc64le
    The 64-bit PowerPC instruction set, big- and little-endian.
riscv64
    The 64-bit RISC-V instruction set.
s390x
    The IBM z/Architecture.
wasm
    WebAssembly.

Is missing a mention of loong64.
Also it says "the Go compilers" but the plural seems wrong, the page is about gc which is usually called "the Go compiler".

CC @XiaodongLoong

https://go.dev/cl/421575 fixes this.


add/extend rule to check for naming of TYPES: declarations

add/extend rule to check for naming of TYPES: declarations

implemented in https://github.com/abaplint/abaplint/commit/300c80e411b3e1d49f760e887628c825e9554430


Having issues with hearbeat

Expected behavior (what should have happened):
I've been having issues with waka time reporting statistics.
I just did a fresh install. I realised I was running the older Python version of the CLI with the vim plugin.
Actual behavior (what went wrong):
I would like to be able to see my stats in the dashboard.
Environment:

OS: macOS Monterey Version 12.4
Platform: i386

Logs:
{"caller":"pkg/heartbeat/format.go:61","func":"heartbeat.formatLinuxFilePath","level":"warning","message":"failed to resolve real path for \"/Users/myuser/[Plugins]\": lstat /Users/myuser/[Plugins]: no such file or directory","now":"2022-07-19T12:15:10+01:00","version":"v1.53.3"}
{"caller":"pkg/filter/filter.go:33","func":"filter.WithFiltering","level":"error","message":"filter file: skipping because of non-existing file \"/Users/myuser/[Plugins]\"","now":"2022-07-19T12:15:10+01:00","version":"v1.53.3"}

Hi @mickeypash,
Does that folder exist on your hard drive /Users/myuser/[Plugins]?

That looks like some temporary buffer created by Vim. If you open a real file with Vim, does that time show on your dashboard?

Thanks for the response! It did work eventually. It was totally a user error!


Exclusions from file

PR for issue #605
Updated coverlet.console and coverlet.msbuild.task to take a new parameter (a file path).
The file path is for a file with a list of source files to be excluded.
Updated documentation to reflect the use

Hi @thviQit thank's for the idea...you could open a PR without problem when you want and we can discuss on it.
First thing I'm not so "happy" is that we've at the moment 3 types of exclusion
-by types
-by file
-by attributes
so we should include all types of filters and not favour one, I mean I used a lot types filtering in my experience but never used files one...depends on "usage".
the second one is that we've also the opposite concept that is "include" so to be symmetric in design we should also add inclusion filter file.
I wonder if someone can reach same goal on CI simply composing run script with a "script" that take exclusion from file(versionable).

I understand the concerns about symmetry, but it should be relative easy to have an include version of this.
I guess you could create a script to do the same, if you use coverlet as a dotnet global tool. It could still make a quite unreadable command line though.
I didn't consider it, as we use it as a msbuild task.
If someone (me/you/?) invested a little more time in it, a file structure could be created together with a parser, which would allow for all exclusions and inclusions to be handled from one file.
That would keep the interface almost in its current state, so it wouldn't be necessary to introduce parsing and commands for all use cases, that is include/exclude attributes|source files|types ...

Some question to better understand:

How many filter you have?
How many time you update your filter?

We don't have a lot right now, as it is pretty recent that we added coverlet. However we do have a task to go through our projects to find files that should be excluded, e.g. program.cs, startup.cs, static classes, auto generated stuff etc.
So from my point of view it would just be easier to add a line in a text file when in Visual Studio, rather than having to edit the build in Azure Devops

rather than having to edit the build in Azure Devops

You should use yaml file to describe your pipeline and not using remote devops ui...in that way you'll update from VS and will be "commited" to repo.
https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema

We are not quite there yet. We have a bunch of custom build tasks that have to be converted to steps first, and that is going to take some time.

We are not quite there yet. We have a bunch of custom build tasks that have to be converted to steps first, and that is going to take some time.

Understood, so you agree with me that this feature would be "useful" only for this particular case...I mean I'm not sure that is correct add a feature(adding complexity to maintain and possible bugs) that is useful only for single case where anyway there is already an elegant solution.
We could keep issue/PR open to understand if it's a common case and eventually go on with feat.
BTW this is my opinion, wait for @tonerdo @petli one.

Well I do think it is nicer to keep this stuff outside the yaml files to keep them as simple as possible.
In the case that you import a step template with the coverlet command from another repository, then you can parameterize the excludes easier by passing a file path to the --exclude-from-file command.
I just think that using a file as input provides some extra flexibility.
No hard feelings so far ;-)

In the case that you import a step template with the coverlet command from another repository, then you can parameterize the excludes easier by passing a file path to the --exclude-from-file command.

FYI You can do it also with yaml https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#variable-re-use

Cool - I did not know that.
So we use the dotnet test command right now (via the ui), but we have a template like this:
- task: DotNetCoreCLI@2
  displayName: 'dotnet test'
  inputs:
    command: test
    projects: ${{ parameters.testProjects }}
    arguments: '--configuration ${{ parameters.buildConfiguration }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:Exclude="${{ parameters.excludedTypes }}" /p:ExcludeByFile="${{ parameters.excludedFiles }}" /p:ExcludeByAttribute="${{ parameters.excludedAttributes }}"'

So in our local repositories, where we define the pipeline, we could have a dedicated yaml fille with the excludes like this:
# coverage-settings.yaml
variables:
  excludedSourceFiles: '../dir1/*.cs,../**/Program.cs'
  excludedAttributes: ''
  excludedTypes: ''
  threshold: ''
  ...

And import it like this:
#jobtemplate.yaml
variables:
- template: coverage-settings.yml

and use it like /p:ExcludedByFile="${{excludedSourceFiles}}".
The only thing I don't like with this is that it is still one long string instead of a list, which would make it easier to read.

The only thing I don't like with this is that it is still one long string instead of a list, which would make it easier to read.

BTW I don't expect too much stuff because otherwise you should negate the concept and use include.

That might be better.
If you reject the pull request based on this, it is completely understandable (and might be for the best?).
I'll just write of my wasted hours as education 😁

I'll just write off my wasted hours as education 😁

Ideas to improve coverlet value are always welcome, we discuss everything.
Usually we add features based on the number of devs ask for it(or grouping similar issue) and also after that we need to be "critical" much as possible to keep the product stable and maintainable, so my first approach is to understand if there is a solution with "no code".
In this case seem that there is a better/elegant and less invasive solution to problem.
May I suggest next time to open an issue with the "feature idea" before work on PR, you did a great work on this and it's a shame if won't be merged 😞
As a contributor of other projects I know the feeling :expressionless:
BTW for the moment I'll leave PR and issue open we'll see next months and if we'll get more thumbs up or interest.
Thank's you for the effort here!

No thumbs up after a month, closing for now, we'll re-open if needed.


[BUG] - key event for ctrl shift char is not working.

Description
I set key binding for ctrl, alt, ctl+alt works. but as long as shift is involved, char doesn't work.
Steps to reproduce
ctrl+shift+special keys like left, pagedown works. but char doesn't work.  when bits is 3, char doesn‘’t work. I tried different computers and same problem.
Expected behaviour
It's supposed to work like other keys.
Environment

OS: arch
Architecture  x86_64
Rust version stable
tui-realm version most recent.

Additional information
Add any other context about the problem here.

[keys.global_quit.code]
type = "Char"
args = "q"

[keys.global_quit.modifier]
type = "KeyModifiers"
bits = 0

For example, above config works, but when I change bits to 3,5,7, and char to Q, it doesn't work. When bits is 1, and char is Q, it works. It's really strange. When bits is 2 or 4, char is q, it works without problem.
I tried alacritty and kitty. I checked the possible conflict key in alacritty and there is no conflict. I change q to e or r, it's the same effect.

I've tried both
Event::Keyboard(KeyEvent {
                code: Key::Char('b'),
                modifiers: KeyModifiers::CONTROL | KeyModifiers::SHIFT | KeyModifiers::ALT,
            })

and
Event::Keyboard(KeyEvent {
                code: Key::Char('b'),
                modifiers: KeyModifiers::CONTROL | KeyModifiers::SHIFT,
            }) => return Some(Msg::AppClose)

and for me it's working correctly (I'm on macos). What system are you trying on?


Fix and update Gradle setup

Three commits here:
The first one changes the Gradle script to include the Android Gradle plugin conditionally. That way, it's only used when the android folder is opened individually, and it does not interfere with consumer projects using this library. It also updates the plugin to 3.5.3.
See this thread, and this comment for details and more information.
The second commit updates glide from 4.9.0 to 4.10.0. The newer version drops a dependency on the deprecated support libs, avoiding a Lint error.
Finally the third commit fixes the only remaining Lint issue in the Android code, by replacing ImageView with AppCompatImageView from the AndroidX libraries.
With these changes, the Android code now builds without any Lint issues! :+1:
Once approved, please use a normal GitHub merge (i.e. NO rebase/squash merge) to integrate the commit(s) from the PR head branch. The changes are broken up into meaningful, atomic commits, and my branch should already be up-to-date with the latest base branch. If it isn't, or if you want me to change anything, please let me know, and I will update the branch as soon as possible. Thank you!

Resolved conflicts and merged into main.

Thanks @DylanVann :+1:


BLE - GATT_INSUF_AUTHENTICATION (IDFGH-3517)

Code: Examples\bluetooth\bluedroid\ble\gatt_security_server
1 - Line 558: Set IO capability to ESP_IO_CAP_OUT -> esp_ble_io_cap_t iocap = ESP_IO_CAP_OUT;
2 - Bonding a BLE device (Phone) using PIN 123456.
3 - After successful bonding / connection, just disconnect.
4 - Remove all bonded device -> remove_all_bonded_devices();
5 - Use the phone and try to connect.
So, the phone (central) still bonding ESP32 (peripheral), but the ESP has just unbound the phone.
What will happen:

The phone can connect without need of PIN, can get full services/profiles but can't perform any Read/Write/Indict/Notify request due to insufficient authentication. -> BT_GATT: GATT_INSUF_AUTHENTICATION

What should happen:

The phone show pairing PIN message to bond/connect again.

Thank you,

Fixed by: uint8_t auth_option = ESP_BLE_ONLY_ACCEPT_SPECIFIED_AUTH_ENABLE;

If you would try to connect one more time then phone also should be unbouded.
Bluetooth specs says its not required to be paired/bounded to discover services.
iPhone specs says that phone should be able to connect without pairing and respond on pairing request only when try to read/write characteristics/descriptors that require pairing.

@chegewara Noted, Thank you sir.


Limit Dependencies to the stdlib

What type of PR is this?

cleanup

What this PR does / why we need it:
This PR removes the last remaining dependency testify.   I have decided to copy over the necessary code to make our tests work.
Which issue(s) this PR fixes:
Fixes #1890
Special notes for your reviewer:
(fill-in or delete this section)

Testing
(fill-in or delete this section)

Release Notes
(REQUIRED)

As much as I like stdlib and desest testing frameworks like testify, I'm not sure it's the right course of action here.

As much as I like stdlib and desest testing frameworks like testify, I'm not sure it's the right course of action here.

How do you think we should approach this then?

How do you think we should approach this then?

I don't know, honestly. I'll pass on reviewing this PR and just defer to other maintainers here.
That said, thanks a lot for contributing to this project :) It's great! I'm just not versed well-enough in this codebase.

I know this might sound weird. But, I think we should have a test for those testing functions too using the standard library only.
such tests would test that those testing function are actually doing the job of testing (term test is widely used here LOL).
for example:
func TestThatNilActuallyWork(t *testing.T){
    if !Nil(nil){
        t.Fail("Nil doesn't actually work, our tests are risky then.")
    }
}

You've forgot to include license.

Do we really want to maintain a testing framework ourselves ? We have to add tests for the test framework itself now. Is testify required by the users of this library to run their code ?

Is testify required by the users of this library to run their code ?

It's not, it doesn't appear in my app's go.mod and go.sum.

Then what's the point of us struggling so much for this one library

Yeah, I am with @dearchap here. Let's stay with testify.

Agreed


[WIP] SimpleTrustRegion bug

Hey,
I am going over the TR implementation to address https://github.com/SciML/SimpleNonlinearSolve.jl/issues/98. With the current changes, the TR method converges for the MWE  in https://github.com/SciML/SimpleNonlinearSolve.jl/issues/98. I would like to doublecheck some other things to make sure the implementation here consistent with that in NonlinearSolve.jl before I suggest merging.
Flemming

I gave it one more pass. It looks pretty much in line with the implementation in NonlinearSolve.jl with the only exception we touched on in the original issue: We compute the Gauss-Newton step here using $p_{GN} = -(J'J)^{-1}J'f$ (as opposed to the Newton step $p_{N} =-J^{-1}f$).
The question is: Should we change it or not? It will make the code depart slightly more from a textbook-like implementation but potentially make it a little more robust.
Analytically speaking there is obviously no difference between the two when $J$ is full rank and otherwise it shouldn't matter much either as backslash will just compute the Gauss-Newton step if $J$ is tall and skinny for instance. There might be differences due to numerics but I assume they won't be notable for problems that a simple implementation is intended for?

The question is: Should we change it or not? It will make the code depart slightly more from a textbook-like implementation but potentially make it a little more robust.

Don't do the "textbook-like implementation" here. I'd argue that the textbook shouldn't even be written like that. Least squares problems should always use QR, even in a textbook, and not tell people to do J'J which would increase the condition number. Even for simple problem this will cause numerical issues and so I would change the textbook to say that the Gauss-Newton step is to solve the least squares problem at each step Jp = f by using the primitive numerically-stable operation QR (and do the proof that QR and GMRES give the least squares solution on non-square matrices).

I think this is ready. I ran into an issue with strange return codes but I will open a separate issue for that.


🐛 [firebase_crashlytics] Automatic deobfuscation in the crashlytics dashboard

Hello guys,
I've obfuscated my android app and it can become painful to read stack traces onwards. Luckily, there's a way to run debug keys against the obfuscated stack trace and that translates it into readable and actionable stack.
However, it's a bit cumbersome having to:

translate every exception from the firebase crashlytics. basically copy and pasting and then having to store the resulted information somewhere, because more often than not we won't solve that exception right away
it's not always clear which debug key should be used for each exception (arm / arm64 / x86)
reminding ourselves to store every debug keys for each release, because they might not work for future app versions

Is there a way to automatically deobfuscate the stack? Maybe by bundling the keys into the aab at the moment of release?
Thanks in advance!

@tgpsantos
I am not sure if this will be in scope of firebase_crashlytics. You'll probably need to reach out to firebase-support as how to do that. See this open issue for your reference: https://github.com/firebase/quickstart-android/issues/897
Closing this from here. If you disagree write in comments and I'll reopen it.

@tgpsantos any update on it? Do you find a solution?

Have you seen the "Get readable crash reports in the Crashlytics dashboard" section in the Documentation?

@zeucxb No I didn't.
@riegersan tried that but it didn't work


Toolchain not detected in rules_foreign_cc

When using the local toolchain, everything builds fine. When using the hermetic tool chain from this repo, some build systems fail to use the compiler for a simple test program.
Reproduction example in https://github.com/bazel-contrib/rules_foreign_cc/pull/1295.

The linked thread has lots of useful information on how to get ffmpeg to build, thanks for linking it.
I'll close this issue since the problems are due to ffmpeg using an opinionated configure script rather than any issue we could fix in toolchains_llvm.

That's a good point. Are we not adding them to the tools dict or does rules_foreign_cc not read them from there? Either should be easy to fix.

That's a good point. Are we not adding them to the tools dict or does rules_foreign_cc not read them from there? Either should be easy to fix.

It's on my list to debug this further.


there is nothing in the preview part

Thanks a lot for your works. I met some problems.

Traceback (most recent call last):
  File "C:\Users\蒋磊\AppData\Roaming\Sublime Text 3\Installed Packages\MarkdownLivePreview.sublime-package\MarkdownLivePreview.py", line 218, in _update_preview
  File "./python3.3/ntpath.py", line 256, in dirname
  File "./python3.3/ntpath.py", line 220, in split
  File "./python3.3/ntpath.py", line 162, in splitdrive
TypeError: object of type 'NoneType' has no len()

How should I do?

same issue
Traceback (most recent call last):   File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 525, in on_load_async     callback.on_load_async(v)   File "C:\xxx\Sublime Text 3\Installed Packages\MarkdownLivePreview.sublime-package\MarkdownLivePreview.py", line 146, in on_load_async     self._update_preview(markdown_view)   File "C:xxx\Sublime Text 3\Installed Packages\MarkdownLivePreview.sublime-package\MarkdownLivePreview.py", line 204, in _update_preview     if time.time() - self.last_update < DELAY / 1000: TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

Same problem on Mac OS:
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 525, in on_load_async
    callback.on_load_async(v)
  File "/Users/narene/Library/Application Support/Sublime Text 3/Installed Packages/MarkdownLivePreview.sublime-package/MarkdownLivePreview.py", line 146, in on_load_async
    self._update_preview(markdown_view)
  File "/Users/narene/Library/Application Support/Sublime Text 3/Installed Packages/MarkdownLivePreview.sublime-package/MarkdownLivePreview.py", line 204, in _update_preview
    if time.time() - self.last_update < DELAY / 1000:
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

Same problem, Sublime 3.2.2(3211) on macOS 10.15.4. I'm not seeing any error messages or stack traces, just an empty preview pane.

Same issue. Sublime 3.2.2(3211) on macOS 10.15.5.

+1

Same here on macOS 10.15.6

I have the exact same error:
Traceback (most recent call last):
  File "C:\Users\MyName\AppData\Roaming\Sublime Text 3\Installed Packages\MarkdownLivePreview.sublime-package\MarkdownLivePreview.py", line 218, in _update_preview
  File "./python3.3/ntpath.py", line 256, in dirname
  File "./python3.3/ntpath.py", line 220, in split
  File "./python3.3/ntpath.py", line 162, in splitdrive
TypeError: object of type 'NoneType' has no len()

ST3 v3.2.2 Build 3211
Windows 10 Pro 2004
After looking at the code and testing with a named file instead of a new untitled file, I believe the issue could be when the code is checking the name/path of a file that doesn't exist:
basepath = os.path.dirname(markdown_view.file_name())
Here's a link to the line in the repo.

Same problem, Sublime 3.2.2(3211) on macOS 10.15.4. I'm not seeing any error messages or stack traces. It does open a new two-pane window, but the pane on the right looks like a normal text editor - in fact it allows me to type and shows line numbers as I enter text there.

I was experiencing the same issue. I found that the live preview doesn't render if you try to include an image in your document. Once I removed all references to images, I was able to see the live preview

Same problem, Sublime 3.2.2(3211) on macOS 10.15.4. I'm not seeing any error messages or stack traces. It does open a new two-pane window, but the pane on the right looks like a normal text editor - in fact it allows me to type and shows line numbers as I enter text there.

I was experiencing the same issue. I found that the live preview doesn't render if you try to include an image in your document. Once I removed all references to images, I was able to see the live preview

I solved this by simply restarting sublime text.

Seems to happen when trying to preview an unsaved file, just closed off the preview tab and reopened and it's working now. Restarting Sublime should also work, of course.


Update recover_test.go Copyright Year to 2022

update recover_test.go copyright year information to 2022

Ⅰ. Describe what this PR does
Update pkg/csi/recover/recover_test.go Copyright Year to 2022
Ⅱ. Does this pull request fix one issue?

fixes #XXXX
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

@umnooob please fix DCO issue by following
1. Ensure you have a local copy of your branch by [checking out the pull request locally via command line](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally).
2. In your local branch, run: git rebase HEAD~1 --signoff
3. Force push your changes to overwrite the branch: git push --force-with-lease origin master

This source file is created in 2022. Please update it from 2021 to 2022. Thanks.

updated, Thanks!


Preserving original formatting of page metadata for content submissions

We've been using Prose.io as a way of making quick edits to a community wiki hosted on Github and it's been a nice addition for this (thanks!). One drawback we've noticed, compared to manual pull requests, has been Prose modifies the formatting of the page metadata, which we were hoping could remain the same for consistency (search/replace, contributor documentation).
Here's an example of how it gets modified from a recent merged commit:
- tags: [Files, Reference]
+ tags:
+   - Files
+   - Reference
+ published: true

The pages still work fine but what we've been doing is after the fact manually editing the affected pages back to the original syntax (we also remove the published: true though maybe for some other use cases this is relevant).
If it were possible for Prose to preserve existing metadata formatting when detected in the document, such as the style tags: [tag1, tag2] that we utilize here, it would be useful and appreciated.

Hi there. Just wanted to comment quickly on this. Not to say this isn't something I'll explore, but this is likely to end up pretty far down on the improvements since it's just a quality of life factor and I'm just a single maintainer largely looking to keep Prose alive in my free time.
Did want to give some background on why Prose does this. Prose uses a js-yaml to read/write front-matter, which enforces yaml style arrays, hence the output you're seeing.
If you have some time and want a throw in a PR with a fix I'd be more than happy to review and merge, but as you can see, the fix might be a bit more involved than assumed due to 3rd party dependencies.


Add support for multiple callback listeners

It would be great if there was support for multiple callback listeners for dataCallback and shouldSendCallback.
My use case is that I want to create a plugin for use on multiple sites which would filter out and not report errors which occurred on older browser versions, while each site in particular might also have its own shouldSendCallback. This is currently not possible to achieve.

Ping? Any updates?


Upgrading cartodb PostgreSQL extension to 0.11.5

can someone @ethervoid @rafatower review this?
I'm preparing a new release of the cartodb extension because we missed @luisbosque 's changes

Looks good to me but I don't know exactly how this works so is better that @rafatower check this out

retest this, please

retest this, please

There's something that worries me: the SHA5 hashes of the tags and the subrepo do not match:
https://github.com/CartoDB/cartodb-postgresql/releases
worth a review. Let me know if I can help

:+1:


Create Resume SNR

The SANTRAST "SNR" token has a basic yield, is the main asset, accumulates liquidity due to cross exchange rate recalculations of DeFi protocols. Interacts with the SNRW contract and the DEX contract in which it is placed. It is designed to hedge positions, increase capital due to the AMM multiplier and its isolation. The result of such a strategy is visible during the period of mass sales, its liquidity does not change. During periods of growth of the crypto market, SNR increases its liquidity, even if trading is not conducted on it.

closing due to inactivity


JsCast into Option

Hey! I have an usecase where I implement IntoWasmAbi and FromWasmAbi for automatically serializing and deserializing a js_sys::Object from a Rust struct.
This works fine until I try to deserialize a JsValue back to anything with Option.
For example:
let my_field: Option<u32> = js_sys::Reflect::get(&obj, &key).dyn_into().unwrap();

fails, because the trait wasm_bindgen::JsCast is not implemented for std::option::Option<u32>.
Is there a way to make this work without changing the code snippet above in any way?

I had a small happy accident and my JsCast target was actually a JsValue, which is why the non-Option conversion worked. So, the problem is conversion from JsValue to u32 without statically having as_f64() as u32 there.
Looks like I need to bite the bullet and just implement TryFrom<JsValue> for T (or equivalent) for every T I need. It would be nice to have those built-in though.

Currently, no, JsCast is intended for conversions between JS objects rather than conversions into Rust values, so this'd need to go through a different trait or implementation.

Any news here? It would be cool if #[wasm_bindgen] generated TryFrom<JsValue> for CustomType, so I can do something like this:
#[wasm_bindgen]
struct Hello { }

fn test() {
  let val = JsValue::UNDEFINED;
  let maybe_hello = Hello::try_from(val);
}

The workaround is to cast on javascript side and let wasm-bingen catch the errrors.
Add cast.js to the project root:
const cast = (value) => { return value; };
module.exports = { cast };

Maker your casts work:
#[wasm_bindgen]
pub struct Hello { }

#[wasm_bindgen(module = "/cast.js")]
extern "C" {
  #[wasm_bindgen(catch, js_name = cast)]
  fn try_into_hello(from: &JsValue) -> Result<Hello, JsValue>;
}

impl TryFrom<JsValue> for Hello {
  type Error = JsValue;
  fn try_from(value: JsValue) -> Result<Self, Self::Error> {
    try_into_hello(&value)
  }
}

#[wasm_bindgen]
pub struct World { }

#[wasm_bindgen(module = "/cast.js")]
extern "C" {
  #[wasm_bindgen(catch, js_name = cast)]
  fn try_into_world(from: &JsValue) -> Result<World, JsValue>;
}

impl TryFrom<JsValue> for World {
  type Error = JsValue;
  fn try_from(value: JsValue) -> Result<Self, Self::Error> {
    try_into_world(&value)
  }
}

#[wasm_bindgen(start)]
fn start() {
  let hello: JsValue = Hello { }.into();
  let world: JsValue = World { }.into();
  let undef = JsValue::UNDEFINED;
  assert!(Hello::try_from(hello.clone()).is_ok());
  assert!(!Hello::try_from(world.clone()).is_ok());
  assert!(!Hello::try_from(undef.clone()).is_ok());
  assert!(World::try_from(world.clone()).is_ok());
  assert!(!World::try_from(hello.clone()).is_ok());
  assert!(!World::try_from(undef.clone()).is_ok());
}


Blade Language

https://github.com/miken32/highlightjs-blade/blob/main/src/languages/blade.js
https://laravel.com/docs/9.x/blade

Hi @ArnaudLier!
Sorry about the slow response. I'm hesitant to add support for languages that are not automatically generated from the official highlight.js project because it's added maintenance on this project's part. I don't want to manually keep languages up to date in a different format than highlight.js.
That being said, I'm going to leave this PR open for the time being as a resource for anyone who wants to add support for Blade highlighting to their instance via the official Highlighter::registerLanguage() function call.
Thank you so much for this PR and I'm hoping to have a better process set up for language submissions/generation in the near future!


Mbasiuk/tdi 39295 snowflake row

What is the current behavior? (You can also link to an open issue here)
No tSnowflakeRow component.
What is the new behavior?
Create and implement tSnowflakeRow component.
Please check if the PR fulfills these requirements

[x] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[x] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: success :star:

Pull request test result: success :star:

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: failure :x:

Please, check component icon. As I see most *Row components have icon with lightning.
Is there a Jira issue for UX team to draw a new icon for tJDBCRow component?

 Previous build was successful and after small refactoring tests locally passed.


toggleSeries + multiple yaxis

Hi. I have a little problem with my chart.
I have a multiple series (A-F) with axternal navigation and toggleSeries() methods to show/hide them.
I also have two yaxis:
yaxis: [
  { seriesName: 'seriesA' },
  { seriesName: 'seriesA', show: false },
  { seriesName: 'seriesA', show: false },
  { seriesName: 'seriesA', show: false },
  { seriesName: 'seriesE', opposite: true },
  { seriesName: 'seriesE', opposite: true, show: false }
]

The problem is when I disable for example seriesA. Then I don't see left yaxis. Is there any easy way to toggle yaxis visibility too?

There is a property in y-axis called showAlways which allows you to keep the axis always visible.
yaxis: {
  showAlways: true
}

https://apexcharts.com/docs/options/yaxis/#showAlways

The problem is I have left y-axis for 4 sesries. And I have external navigation to switch between each series. And now If I use showAlways the serrie is visible by default and I can turn it off, but I can not turn it back on.


Fix bug that caused search objects not to delete

The comment mostly explains it,
but the delete objects code does another query:
https://github.com/rtfd/readthedocs.org/blob/3340364802a8cdcc5f4145fbde2a5dd4f7087771/readthedocs/search/tasks.py#L59-L62
This should now fix search deletion.

Django signals are processed synchronously, so it should work. I agree we should move to having this logic be handled all in the same task, instead of through signals, so we can make it clearer the ordering, but this should work.
I also wish we had good tests for this, but I've never found a good way to add tests to the build process, and with search too. I think with a refactor we could at least mock things reasonably, but that's a bigger PR I think.

@ericholscher I had tested and it was working. Whats the issue now?

@safwanrahman in prod pages aren't being deleted from the index.

I think we have disabled the autosync, that may cause the issue!
https://github.com/rtfd/readthedocs.org/blob/700b83df78417a095718ec8b641ac1750560b817/readthedocs/search/signals.py#L41-L42

No, the issue is as noted above, the queryset is being deleted before we query for the objects to remove them from the search index :)

@ericholscher Can you check the autosync settings in Production? ELASTICSEARCH_DSL_AUTO_REFRESH key in settings?

No, the issue is as noted above, the queryset is being deleted before we query for the objects to remove them from the search index :)

Because of we deleting the object first, we were including it into the list
instance_list = list(delete_queryset).
So though the object is deleted from db, the signal can get it from the cached object thats in the memory.

We query it again where I linked in the description of this PR .

We query it again where I linked in the description of this PR .

I think we are not querying it.
https://github.com/rtfd/readthedocs.org/blob/700b83df78417a095718ec8b641ac1750560b817/readthedocs/search/signals.py#L29-L42

@safwanrahman please take the time to read what I'm saying. We query it in the delete_objects_in_es that is called at the bottom of that function, as I already linked in the description of this PR>

@ericholscher Sorry for the misunderstanding. Do there any way to remove the DB query from there? Do you have any idea?

Django signals are processed synchronously, so it should work

You are right. I was thinking on celery tasks.
The PR looks correct to me.

@ericholscher I have checked the git log and it seems like we were running registry.delete(instance_list) in the past and it was removed with the current approach in 144ed0ecf1fc597325296553356c0ceff614bd28. In current approach, another query to DB is needed. But in previous approach, DB query was not needed.
Do you remember why it was changed?
I think the ES objects should be removed after the object has been removed from the DB so that in case there are some error removing the object from DB, the object does not get removed from elasticsearch.

I just copied the logic from the index_html_file function above. If we can just pass an instance list, we should remove that logic from both places.

I have gone through the code, and it seems like the task delete_objects_in_es is not get called from anywhere asynchronously. It was used to delete projects asynchronously, but later removed in #5262

I just copied the logic from the index_html_file function above. If we can just pass an instance list, we should remove that logic from both places.

Yeah. We can simplify the index_html_file. We had the logic there because we wanted to use a generic task function index_objects_to_es, which needed the serialized data. If you agree, we can remove the extra logic in index_html_file.

I think keeping the 2 tasks similar in structure is probably more important than the order in which we delete objects from the DB or ES. Arguably it's more important to delete them from ES and the DB, since they will be deleted from the DB again on a later run of the code, but ES won't automatically delete a file if it gets missed.
We should probably update the ES delete logic to be the same, and depend on commit, so it will properly delete old files if we hit an exception during one run of the code.

I think keeping the 2 tasks similar in structure is probably more important than the order in which we delete objects from the DB or ES.

If you would like to have both task in same structure, I think its better to pass the list in registry.delete() and registry.update() from the signal. We can use the index_objects_to_es for indexing asynchronously when we needed (like from management command, project indexing, etc).

We should probably update the ES delete logic to be the same, and depend on commit, so it will properly delete old files if we hit an exception during one run of the code.

Yeah. That maybe better idea in long run. But we were trying to map HTMLFile with the ES index object. So if you think from that side, its better to have a tie with HTMLFile DB object.

Yeah. That maybe better idea in long run. But we were trying to map HTMLFile with the ES index object. So if you think from that side, its better to have a tie with HTMLFile DB object.

But right now there is no way to handle the case where we delete an HTMLFile object, but the ES index doesn't get updated, which feels like a much bigger issue.

But right now there is no way to handle the case where we delete an HTMLFile object, but the ES index doesn't get updated, which feels like a much bigger issue.

We can run a cronjob which will check every night whether any object got missed form ES or anything is non available in DB, but available in ES and fix according to it. Or we can automatically run reindex every night which will be much better as we do have zero down time indexing so no user will be impacted and the data will be consistent. Which one do you prefer?

I think we should make the code do the correct logic, not add a bunch of operational overhead to our servers :)

I agree! Our current code do correct logic as most of the time. But its not possible to do it always from the code end if the ES get degraded and we get timed out from Elasticsearch.
I think its better to have ES stale data rathar than having missing data.
Because of that, I have prosed about cronjob for data consistancy. If thats not possible, I think the current approach is good enough.

I've made a bunch of improvements to this logic in #5290, so I will merge this for a quick fix, and that will be the larger fix around removing commits via ES.


Anchors for important page sections

We should have anchors to form links to important sections of pages. For example, an anchor for the README section on the Library page.

I expect this can be done programmatically on the library detail pages and the release pages.


Document toolchain for Groovy compile

Also includes DSL level documentation for the toolchain feature in general.

@bot-gradle test RFM

OK, I've already triggered ReadyForMerge build for you.

Thanks for the reminder to fix the toolchains doc itself, added.

@bot-gradle test RFM

OK, I've already triggered ReadyForMerge build for you.


Add support for url branding feature

Purpose
$subject
Related Issues

https://github.com/wso2/product-is/issues/14099

Fixed by - https://github.com/wso2-extensions/identity-organization-management/pull/103

Fixed by : https://github.com/wso2-extensions/identity-organization-management/pull/103


vagrant: 2.3.4 -> 2.3.7, vagrant-libvirt-provider: 0.8.2 -> 0.12.2

Description of changes

File in post fixup phase got deleted by upstream, no longer needed.
https://github.com/hashicorp/vagrant/commit/7db87b9da37e019e0201e0f8c7517da553a8910f

Patch needed some changes to work with newest version of vagrant.
https://github.com/hashicorp/vagrant/commit/3422582d68e94bb1c4da64512ac9a2c3654237d6

https://github.com/hashicorp/vagrant/releases/tag/v2.3.5
https://github.com/hashicorp/vagrant/releases/tag/v2.3.6
https://github.com/hashicorp/vagrant/releases/tag/v2.3.7
https://github.com/vagrant-libvirt/vagrant-libvirt/compare/0.8.2...0.12.2

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2635

I'm already using this successfully with an overlay. Can I do something to help merge this?

I'm already using this successfully with an overlay. Can I do something to help merge this?

Can you show your overlay? Would like to use this also 🙂

Sure
overlay-updates = final: prev: {
  # Vagrant 2.3.7
  vagrant =
    (import (prev.fetchFromGitHub {
      owner = "teutat3s";
      repo = "nixpkgs";
      rev = "ve889ab5";
      hash = "sha256-6bIhM+ZtAyp1omKACtKIXXJecE/SAPVL4Demp1mb15w=";
    }) {inherit system;})
    .vagrant;
};

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2765

😄 aaand yesterday, they released a new version: https://github.com/hashicorp/vagrant/blob/v2.4.0/CHANGELOG.md

@SuperSandro2000 Is there anything missing here for a merge? :innocent:

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2938

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

1 package built:

vagrant

Runs fine, LGTM. thanks!


fix(components): text-area resize (VIV-1004)

sorry for being the one with tedious comments - but why is the border-bottom of FF png's are missing?

no worries, it's a fair question. removing the 5px margin for each sample's div display the page properly but samples are then stacked with Chrome/WebKit. increasing it seems to work for all of them.
I have no idea why the default margin we use results in this though :/


drug product vs drug substance

drug product is a subclass of drug substance, but the reason for the distinction is not clear.
The definition for drug substance is:
A drug is a material entity that causes a change in an organism's physiology or psychology when consumed.

But, this definition is very broad. For example, food satisfies this definition.
Is the intention of drug substance to represent "drugs" that do not necessarily have clinical uses? Or is the intention for there be a part of relation between drug product and drug substance (i.e., drug product has part some drug substance)?

A drug substance can be the raw drug substance without special process and so cannot be used for treating patient. For the drug product, it appears to be the product that is ready to use for treatment.

I'm not so sure. Here is the axiom for drug product:
'material entity'
 and ('is bearer of' some 'clinical drug role')
 and (has_proper_part some
    ('scattered molecular aggregate'
     and ('is bearer of' some 'active ingredient')))

The important parts of the axiom seem to its clinical drug role and having (as part) an active ingredient.
clinical drug role is simply defined as:
the role of a material entity to prevent, diagnose, treat, or study disease and/or its effects

active ingredient is simply defined as:
a role of a scattered molecular aggregate that is part of a drug product that is realized by
  (1) administration of the drug to an organism followed by
  (2) some change in the structure or functioning of some part of the organism

I'm not seeing anything in the definition that says a drug product is the output of some "special process".
The way you are describing drug substance make it sound close the class scattered molecular aggregate.

The drug product's definition is too general. A product may mean something
that is the output of a manufacturer process? And also we need to
differentiate approved drug use vs. unapproved.
Drug substance is looser than a product.
This thread needs more thinking.
On Wed, Jun 9, 2021, 21:05 Bill Duncan @.***> wrote:

I'm not so sure. Here is the axiom for drug product:
'material entity'
and ('is bearer of' some 'clinical drug role')
and (has_proper_part some
('scattered molecular aggregate'
and ('is bearer of' some 'active ingredient')))
The important parts of the axiom seem to its clinical drug role and
having (as part) an active ingredient.
clinical drug role is simply defined as:
the role of a material entity to prevent, diagnose, treat, or study disease and/or its effects
active ingredient is simply defined as:
a role of a scattered molecular aggregate that is part of a drug product that is realized by
(1) administration of the drug to an organism followed by
(2) some change in the structure or functioning of some part of the organism
I'm not seeing anything in the definition that says a drug product is the
output of some "special process".
The way you are describing drug substance make it sound close the class scattered
molecular aggregate.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/CIDO-ontology/cido/issues/24#issuecomment-858202272,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACCPEPJ3C4S7GEUV4AR4YXTTSAFU7ANCNFSM433DZ73A
.

Drug product from DRON:
Class: drug product
Term IRI: http://purl.obolibrary.org/obo/DRON_00000005
Definition: A material entity (1) containing at least one scattered
molecular aggregate as part that is the bearer of an active ingredient role
and (2) that is itself the bearer of a clinical drug role
Drug substance is basically a chemical substance that bears a clinical drug
role.
Class: chemical substance
Term IRI: http://purl.obolibrary.org/obo/CHEBI_59999
Definition: A chemical substance is a portion of matter of constant
composition, composed of molecular entities of the same type or of
different types.
So the relation between the two is that of 'has-part'
  has-part
--Sivaram

Sivaram Arabandi, MD, MS
Ph:<PHONE_NUMBER>
Li : https://www.linkedin.com/in/sivaramarabandi/
On Wed, Jun 9, 2021 at 11:25 PM Asiyah Yu Lin @.***>
wrote:

The drug product's definition is too general. A product may mean something
that is the output of a manufacturer process? And also we need to
differentiate approved drug use vs. unapproved.
Drug substance is looser than a product.
This thread needs more thinking.
On Wed, Jun 9, 2021, 21:05 Bill Duncan @.***> wrote:

I'm not so sure. Here is the axiom for drug product:
'material entity'
and ('is bearer of' some 'clinical drug role')
and (has_proper_part some
('scattered molecular aggregate'
and ('is bearer of' some 'active ingredient')))
The important parts of the axiom seem to its clinical drug role and
having (as part) an active ingredient.
clinical drug role is simply defined as:
the role of a material entity to prevent, diagnose, treat, or study
disease and/or its effects
active ingredient is simply defined as:
a role of a scattered molecular aggregate that is part of a drug product
that is realized by
(1) administration of the drug to an organism followed by
(2) some change in the structure or functioning of some part of the
organism
I'm not seeing anything in the definition that says a drug product is the
output of some "special process".
The way you are describing drug substance make it sound close the class
scattered
molecular aggregate.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/CIDO-ontology/cido/issues/24#issuecomment-858202272
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ACCPEPJ3C4S7GEUV4AR4YXTTSAFU7ANCNFSM433DZ73A
.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/CIDO-ontology/cido/issues/24#issuecomment-858288875,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB4D6F5JOUWOBFNSLU6QXRTTSA5EBANCNFSM433DZ73A
.

@sivaramarabandi your proposal makes sense, however, this is not what is in cido. Currently, these are the equivalence axioms that define drug product:
'material entity'
 and ('is bearer of' some 'clinical drug role')
 and (has_proper_part some
    ('scattered molecular aggregate'
     and ('is bearer of' some 'active ingredient')))

There is not a 'drug product' has part some 'drug substance' axiom. Are you proposing one be added? If so, then I would propose that you add the following axiom to drug substance:
'scattered molecular aggregate' and ('is bearer of' some 'active ingredient')

However, if you do this, you need to remove the 'drug product' rdfs:subClassOf 'drug product' relation. If you don't remove this relation, drug products will be represented as a subclass of scattered molecular aggregate, and that would be confusing.

Other comment:
At present, drug product has two sibling classes:

COVID-19 drug substance: A drug substance that is experinentallly proven to be effective against SARS-CoV-2 infection, where the experiment can be done either in vivo or in vitro. The in vitro study is typically conducted using cell line cells.
experimental drug substance: A drug substance that is experinentallly proven to be effective against SARS-CoV-2 infection, where the experiment can be done either in vivo or in vitro. The in vitro study is typically conducted using cell line cells.

(the typo "experinentallly" is taken directly from the defintion)
These definitions do provide clear distinctions/reasons as to why they would not be a drug product (please definition above). The notion I am trying to express is that (currenlty) the class drug substance doesn't seem to be doing any work in the ontology.


page.onConsoleMessage event handler is null after page.includeJs

I got really confused about this, I thought my page.evaluate() is not working...
        var page = phantom.createPage();
        page.onConsoleMessage = function (msg) {
            console.log(msg);
        };

        page.run(target, function (product, resolve, reject) {
            console.log('phantom> loading page:', product);
            // `this` is now a webpage instance
            this.open(product, function (status) {
                if (status !== "success") {
                    return reject(new Error("Cannot load " + this.reason_url +
                        " due to " + this.reason));
                }

                var page = this
                this.includeJs('https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js', function () {
                    // only after this event handler was added I saw the EVALUATING print
                    page.onConsoleMessage = function (msg) {
                        console.log(msg);
                    };
                    var enriched = page.evaluate(function () {
                        console.log('EVALUATING... @title' + document.title);
                        return document.title
                    });

                    console.log('page> attached exId and eventHandler to all' +
                        ' elements');
                    resolve(enriched);
                });
            });

Only after adding the second event registration did I see anything inside the evaluate.

As stated in the README, the page object provided by phridge in node has a totally different API than Phantom's page object. So, adding page.onConsoleMessage has no effect.


Number repeat

Is your feature request related to a problem? Please describe.
When I type 2<leader>a I expect the parameter to be moved twice. It does not.
Describe the solution you'd like
To be able to type a number before the keybind and for the function to be repeated that number of times.
Describe alternatives you've considered
Record a macro with the movement and then repeat it. This does work.

Would also love this. It would also be nice to have some shortcuts for moving back and forth. The way "," and ";" work for "f" and "F". Now a lot of the movements are impractical as they require a lot of typing. Moving by function is like that. Because there might be a lot of lambdas in front of the target function.


Feature Request - Color Code Tabs

Similar to being able to color a connection in SSMS, it would be useful to be able to color-code individual blob/cosmos/data lake accounts or even whole subscriptions, so that you can easily filter visually between different environments (set the tab color to RED for production, for example)

Duplicate of #20. Please continue the discussion there!


fix(terminus): fix events emitted by terminus

Closes: #2086

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

v6.132.1
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 7.0.0-rc.7 :tada:
The release is available on:

v7.0.0-rc.7
GitHub release

Your semantic-release bot :package::rocket:


Can I customize the text size?

Describe the feature
It looks too big,It's not coordinated at all

thx.

You can use Ctrl-Plus and Ctrl-Minus to zoom in/out of text.
It's synchronized with code size

You can use Ctrl-Plus and Ctrl-Minus to zoom in/out of text. It's synchronized with code size. But a divergence setting (font size multiplier/divisor) would be nice.

thx


Tracking for API v10 migration

This reflects the changes that need to / have already been done for v10. Current branch for this is https://github.com/nextcord/nextcord/tree/community/apiv10
For more info about changes see https://github.com/discord/discord-api-docs/discussions/4510

[x] Bump version in urls
[x] Message Intent (Will be done in #457)
[x] application.summary is depreceated and should be removed (Will be done in #464 )
[ ] document removal of application.summary
[x] Achievement localization format has changed. name and description are now strings, and localized strings are now stored in name_localizations and description_localizations Game SDK only
[x] /channels/<channel_id>/threads/active has been removed we do not use that
[ ] Existing attachments must be specified when PATCHing messages with new attachments. Any attachments not specified will be removed and replaced with the specified list
[x] Audit log reason as a body/query parameter is no longer supported, and you should instead use the X-Audit-Log-Reason header.  (Will be done in #466)
[x] Message routes accept embeds rather than embed (Will be done in #464 )
[x] Requests to v10 and higher will no longer be supported on discordapp.com
[ ] Test the code
[ ] Document in changelog
[ ] Wait until it is actually the recommended API Version

hm, i should have removed document of AppInfo.summary.

Existing attachments must be specified when PATCHing messages with new attachments. Any attachments not specified will be removed and replaced with the specified list

i dont think it needs to have any code change, since patching message means editing message using Message.edit if i do remember correctly. so i think we only need to document this one.

i think i will document it right now.

Existing attachments must be specified when PATCHing messages with new attachments. Any attachments not specified will be removed and replaced with the specified list

This is done in #525

application.summary is depreceated and should be removed

It seems we will not be removing it yet. Discord still returns it in v10 (will be removed in v11)

document removal of application.summary

Will be done in #552

Message routes accept embeds rather than embed

Already done (See https://github.com/nextcord/nextcord/commit/47e6a754e496a811df0f29c49bf3fd9512d20021)
When support for multiple embeds was added, the embed field was no longer in use

Wait until it is actually the recommended API Version

should we still wait on this? its been a while and i dont think v10 is going to appear in docs that soon

https://github.com/discord/discord-api-docs/commit/9759009999883a70b4ba26d66e3d654920c309c3 Now testing is all that's left


alpha bar (showAlpha) is transparent on IE10

Hi, thanks for this easy to use picker :),
I'm having this problem on IE10, the alpha bar, enabled with "showAlpha: true" option is transparent. see how it looks on IE10:

and it looks good on chrome and firefox:

the images are taken from the fiddler example. Can you please help me with that?
Thank you

Hi, the gradient is set in this function: https://github.com/bgrins/spectrum/blob/61ad86cbccf9e494a83eb8cd5ccd8eef068e7501/spectrum.js#L784
I'm seeing it properly set in IE11, so I'm guessing 10 may be hitting the if (IE) block and the filter syntax isn't working.  Unfortunately I don't have a test OS handy with IE10 - any chance you could help debug this issue?

@bgrins
Just in case you don't know about it:
You can download a virtual machine with ANY version of IE and any version of Windows from here:
http://dev.modern.ie/tools/vms/
Then you can use a free app like VMWare player or VirtualBox to open the virtual machine.
It only requires disk space and ~1GB of extra memory.
Not so fast to setup, but better than nothing...
Cheers! :)
And thanks for the color picker.
Can you add a license to it? I don't see any... :(
I am a bit afraid of using it without knowing what the license is. :)

Based on these tables: https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient#Browser_compatibility
....I think it should work.
So, perhaps the IE variable is not setup.
I usually detect IE by the support of ActiveX, although I am not sure if this totally reliable.
But there is also this, that also gets the version number:
			var ie = (function () {
			    var undef,
                    v = 3,
                    div = document.createElement('div'),
                    all = div.getElementsByTagName('i');
			    while (
                    div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i>< ![endif]-->',
                    all[0]
                );
			    return v > 4 ? v : undef;
			}());

This is my fix:
if (IE && document.documentMode < 10) {


Previewing Layer Set

After creating my own Layers and Layer Views, I tried to preview the Layer Set using:
c = my_layer_views.preview_layerset()
c.plot
All of my Layers are displayed but with the generic pdk Layer Views rather than my own.
How do I ensure my Layer Views are used and displayed?

Activating a pdk with your own Layer Views will change the layer views used in the plot
from gdsfactory import Pdk

Pdk(name="My PDK", layer_views=my_layer_views).activate()
c = my_layer_views.preview_layerset()
c.plot()


Icons from picture-elements cards not displayed

When not using a theme (backend-selected) I get this:

when using this theme (Soft UI) I get:

when using this theme (Dark Soft UI) I get:

What happens with my icons in the picture-elements card?

Dark Soft UI is out of date, and should be removed from your installation.
As for why they're not blue with Soft, that's just how I created the theme. IMO if something is powered off, it shouldn't be vibrant.


Use of java.awt.MouseInfo.getPointerInfo in headless environment no longer working

Using compose library version 1.1.0-alpha04, we are able to make use of the below function in a headless environment. However, after bumping to 1.2.0, we encouter this error:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.desktop/java.awt.MouseInfo.getPointerInfo(MouseInfo.java:76)

Being able to test our application in a headless CI environment is an important part of our workflow and should be a common mode of operation in my mind.
Setting dummy display values (i.e. export DISPLAY=:0) was unsuccessful. We are able to run the tests on our local machines (with displays).
This occurs using kotlinc 1.7.20, Compose Compiler 1.3.2, Compose libraries with all versions on 1.2.0, skiko 0.7.34.
Let us know if we can provide you with any more information. Many thanks.

Do you use java.awt.MouseInfo.getPointerInfo directly, or this error appears when you use some Compose API?
If directly, then it is not related to Compose, because it is API from JDK.
It can be related to Compose, if you use native distribution when you run tests on CI. Do you use it?
When you just downgrade Compose and Kotlin, and leave other versions untouched, does the issue disappear?

Many thanks for your prompt reply.

Do you use java.awt.MouseInfo.getPointerInfo directly, or this error appears when you use some Compose API?
Yes, we use it directly.

It can be related to Compose, if you use native distribution when you run tests on CI. Do you use it?
No, we run our code directly on the JVM.

When you just downgrade Compose and Kotlin, and leave other versions untouched, does the issue disappear?
Yes, the issue disappears and it works as-is currently. This is also a source of confusion for us.

getPointerInfo by itself can't be called in a headless environment, and Compose doesn't change this environment to non-headless state. My guess there is something wrongly cached in your build.
Can you narrow your the issue down, just calling java.awt.MouseInfo.getPointerInfo in the main() function (without calling singleWindowApplication or application)? It should crash, even with Compose 1.1.0-alpha04.

Can you narrow your the issue down, just calling java.awt.MouseInfo.getPointerInfo in the main() function (without calling singleWindowApplication or application)? It should crash, even with Compose 1.1.0-alpha04

This is correct! Strange.

There was no behavior change in Compose, as it is not related to Compose. Something changed in your configuration.
You can look how we configure our CI. See change in blank.yml that disables headless mode on our CI.

Also, my guess that you can use it in some place of code, that isn't called in 1.1, but is called in 1.2.
Could you replace java.awt.MouseInfo.getPointerInfo by, for example, throw RuntimeException() and make a reproducer that crashes on 1.2, and doesn't crash on 1.1?

Correct again. I will work on providing a minimal reproducible build. In the mean time, do you have a working theory as to why this is happening?

do you have a working theory

No, it can be anything.

Closing as the crash in the issue is a valid crash. If you find a code that doesn't behave as expected, create a new issue.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


[ConfidentialLedger] Fix SDK build breakfor 2024-01-26-preview

Data Plane API Specification Update Pull Request

[!TIP]
Overwhelmed by all this guidance? See the Getting help section at the bottom of this PR description.

A new API was added in PR 27564.  There was a minor typo that caused a swagger SDK build break:
"undefined" in Operation "ListUsers" doesn't have a(n) "users" property.

This PR fixes this typo.  This was noticed when trying to build the JS SDK, apologies for causing the original break.
PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.

Link to API Spec engagement record issue:

Is this review for (select one):

[ ] a private preview
[ ] a public preview
[ ] GA release

Change Scope
This section will help us focus on the specific parts of your API that are new or have been modified. Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

Design Document:
Previous API Spec Doc:
Updated paths:

Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.
Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.
❔Got questions? Need additional info?? We are here to help!

 Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

💬 Teams Channel
💌 email

Click here for links to tools, specs, guidelines & other good stuff
Tooling

Open API validation tools were run on this PR. Go here to see how to fix errors
Spectral Linting

Guidelines & Specifications

Azure REST API Guidelines
OpenAPI Style Guidelines
Azure Breaking Change Policy

Helpful Links

Schedule a data plane REST API spec review

Getting help

First, please carefully read through this PR description, from top to bottom.
To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
and https://aka.ms/ci-fix.
If the PR CI checks appear to be stuck in queued state, please add a comment with contents /azp run.
This should result in a new comment denoting a PR validation pipeline has started and the checks should be updated after few minutes.
If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

/pr RequestMerge

/azp run


fixes #181: Giving exception if Labels contains space

Changes:

Fixed metadata resolution in case of backtick
Fixed node property resolution in case of a property contains a backtick
Fixed relationship property resolution in case of a property contains a backtick

@jexp updated!


Add missing env to GetUnixArchitecture

Add missing environment when acquiring the UNIX architecture. Not providing the environment, breaks systems that don't have uname in the $PATH by default, such as NixOS. Demonstrated by this issue: #5575.
Personally, I would also recommend removing the default value for the env parameter, forcing the programmer to think about their intention, instead of just leaving it out.
https://github.com/dotnet/vscode-csharp/blob/76829925bc570eec384a63687af5648ce19c9532/src/common.ts#L62
If that is something you are interested in, let me know, and I will adjust the function, and necessary call sites. There don't appear to be too many.
Fixes #5575.

Thanks for the contribution!


Crash on PushNotification.hasPermission on android below API 19

I have got fatal error and crash by calling PushNotification.hasPermission on androin 4.2.1
Here is the error log from the Android Device Manager:
01-15 00:16:44.728: E/AndroidRuntime(27140): FATAL EXCEPTION: pool-2-thread-2
01-15 00:16:44.728: E/AndroidRuntime(27140): java.lang.NoClassDefFoundError: android.app.AppOpsManager
01-15 00:16:44.728: E/AndroidRuntime(27140):    at com.adobe.phonegap.push.PermissionUtils.hasPermission(PermissionUtils.java:17)
01-15 00:16:44.728: E/AndroidRuntime(27140):    at com.adobe.phonegap.push.PushPlugin$3.run(PushPlugin.java:171)
01-15 00:16:44.728: E/AndroidRuntime(27140):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
01-15 00:16:44.728: E/AndroidRuntime(27140):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
01-15 00:16:44.728: E/AndroidRuntime(27140):    at java.lang.Thread.run(Thread.java:838)
01-15 00:16:44.767: E/AppErrorDialog(529): Failed to get ILowStorageHandle instance
01-15 00:16:45.460: E/webview(27140): Error: WebView.destroy() called while still attached!```

According to android reference, AppOpsManager exists since API 19. Android 4.2.1 is about API 14 or 15. So,exception handling is not enough to prevent application crash.

I'll be closing this as a duplicate for now.
See #495  for details. Basically, that is indeed a bug, it's been fixed in master today, and will be release as 1.5.3 very soon.
For now, you can re-install the plugin using git pointing to the master branch, or keep track of the patch release at #508.
Feel free to re-open this if none of the above fixes that issue for you.

Yes, it works on master, thank you!

@ASGAlex 1.5.3 is out already, you should use it (instead of pointing to master :wink: ).


new NativeEventEmitter() requires a non-null argument on a expo monorepo setup

UPDATE
reinstalled & rebuilt (eas build) multiple times and its now working, I think the issue was that my initial install was yarn add react-native-fbsdk-next and only then yarn remove... && expo install ... which caused issues in the install
🐛 Bug Report
Installing the lib in a monorepo setup breaks

Update:
Its because of the NativeModules.FBAccessToken which is null, then passed to the new NativeEventEmitter(AccessToken) which throws an error
It must have something to do with my setup of my repo, but still can't put my finger on it, any ideas? 🥲
To Reproduce

Pretty much follow this setup guide for a monorepo provided by expo
Follow the react-native-fbsdk-next expo setup guide
Get the error

Expected Behavior
To not throw the error
Code Example
Will be added
Environment
Will be added

@alonzuman hello! I'm having the same issue, do you remember how you managed to fix this?

Hm i have the same issue but i usually delete everything like node modules, native folders and rebuild with yarn install later


Make sure the operations can be serialized to TorchScript

#51 started to implement operations on TensorMaps, using pure Python code. Once we are able to save TensorMap/TensorBlock to TorchScript, we should add tests making sure the code in operations can also be saved to TorchScript.

step 3 in  #133

Done!


Unstable output

Using web browser, can open below page:
https://0xda1dfA22a2a82172c7Ed2F7501B40A2c888CED93.sep.w3link.io/greeting
But using EVM browser, below page displays nothing:
web3://0xda1dfA22a2a82172c7Ed2F7501B40A2c888CED93:11155111/greeting

But in my earlier check, the page displayed the message correctly.

Hi!
Sorry I missed your bug report.
This bug is due to the bug https://github.com/web3-protocol/evm-browser/issues/9 where all chain number above 65000 will not work. This is a bug related to electron, in which I cannot do much unfortunately.
For testnet, if you need to test on EVM browser, you should use Holesky (official Ethereum testnet), which have a chain id of 17000, which work ok.


Enable explicit transactions using repositories

At the moment, there is no way to open a transaction from a repository, only via flush methods.
The problem I see is that we have no way to do the following:

open a transaction
save the entity sending the query  to the db (for example to get the autoincrement id)
do another operation (let's say save a file or whatever)
commit if 3 succeeded or rollback otherwise

I've tried some workarounds (using nestjs BTW) but no luck at the moment.

You should inject the EntityManager and work with that, in the end repositories are just a thin layer on top of the EM.

You should inject the EntityManager and work with that, in the end repositories are just a thin layer on top of the EM.

You should inject the EntityManager and work with that, in the end repositories are just a thin layer on top of the EM.

Data Mapper pattern with repositories implementation is more preferable to Active Record, I think you should think about transactions functionality on repositories level.

This has nothing to do with active record.


CSA should reset the package.json to the original one on theme change

Right now when you set a theme SveltePress combines its package.json with the main one. However when you change to another one, the package.json doesn't reset.
Possible solution:
CSA could clone (using degit) the latest package.json from this repo using the clone function with the following input:
"GeopJr/SveltePress/package.json", `${spLocation}package.json`

Scrapped.
No dependencies should be removed in case the user actually needs them.


[Error] Google changed their API... again

Google has changed their API yet again.
Using this tool and the fix in #78 no longer works as it now gives this error:
\googletrans\gtoken.py", line 66, in _update     code = unicode(self.RE_TKK.search(r.text).group(1)).replace('var ', '') AttributeError: 'NoneType' object has no attribute 'group'
Does anybody have an idea how to fix this?

I met the same error，any solution？

I met the same error

I met the same error, too.

@liling198658 thanks，it worked.

this is a python3 code wrote in year 2014.but it worked , why ?
import urllib.request
import sys
typ = sys.getfilesystemencoding()
def translate(querystr, to_l="zh", from_l="en"):
'''for google tranlate by doom
'''
C_agent = {'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.165063 Safari/537.36 AppEngine-Google."}
flag = 'class="t0">'
tarurl = "http://translate.google.cn/m?hl=%s&sl=%s&q=%s" % (to_l, from_l, querystr.replace(" ", "+"))
request = urllib.request.Request(tarurl, headers=C_agent)
page = str(urllib.request.urlopen(request).read().decode(typ))
target = page[page.find(flag) + len(flag):]
target = target.split("<")[0]
return target
print(translate('hello'))

My husband got mine to work by doing this to gtoken.py:
Change
RE_TKK = re.compile(r'TKK=eval\(\'\(\(function\(\)\{(.+?)\}\)\(\)\)\'\);',
                        re.DOTALL)
RE_RAWTKK = re.compile(r'TKK=\'([^\']*)\';', re.DOTALL)

to
RE_TKK = re.compile(r'tkk:\'(.+?)\'', re.DOTALL)
RE_RAWTKK = re.compile(r'tkk:\'(.+?)\'', re.DOTALL)

Though he isn't really sure of the differences between RAWTKK and TKK, but this was just a really quick fix that he implemented.

After fixing it, I got this error:
self.tkk = self.RE_TKK.findall(r.text)[0]
IndexError: list index out of range

@liling198658 Where are you find the definition/setting of RE_RAWTKK please ?
By the way, this fix on RE_TKK (setting) not working for me, the error is different after but still an error (403 error) :p
Can you send me your (google) token generated with string/text = "Hello" please ?

@hnljq this code is not using the api, downloads the whole result page and extracts the translated text from it. i suppose this method will work when everything fails but it shouldn't be the first thing to apply, it will consume more bandwidth and process power.

@hnljq this code is not using the api, downloads the whole result page and extracts the translated text from it. i suppose this method will work when everything fails but it shouldn't be the first thing to apply, it will consume more bandwidth and process power.

google change its api so frequently, so many python packages didn't work . do you know the differences between the code and googletrans package about how to get the translation result?

Using advices/comments from yasirtug and the code of hnljq,
a notebook using lorem (french -> english) and with non-ascii chars =>

Still doesn't work for me...
File "build\bdist.win32\egg\googletrans\gtoken.py", line 66, in _update AttributeError: 'NoneType' object has no attribute 'group'

@jaysama  Yep, and if you debug (step by step) you will see  a return result with a 404 error. I think the gtoken is not valid (anymore) so we can't ask for a (google) translation service.

Updated https://github.com/ssut/py-googletrans/pull/78 with fix from @liling198658

@Guy-Dipietro-Bose  you're my hero ! :D
Unit tests work fine now ! Thx again !

This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the Terms of Service. The block will expire shortly after those requests stop.This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests.  If you share your network connection, ask your administrator for help — a different computer using the same IP address may be responsible.

oupppssss :p

My husband got mine to work by doing this to gtoken.py:
Change
RE_TKK = re.compile(r'TKK=eval\(\'\(\(function\(\)\{(.+?)\}\)\(\)\)\'\);',
                        re.DOTALL)
RE_RAWTKK = re.compile(r'TKK=\'([^\']*)\';', re.DOTALL)

to
RE_TKK = re.compile(r'tkk:\'(.+?)\'', re.DOTALL)
RE_RAWTKK = re.compile(r'tkk:\'(.+?)\'', re.DOTALL)

Though he isn't really sure of the differences between RAWTKK and TKK, but this was just a really quick fix that he implemented.

thanks, it works for me

@hnljq couldn't know what kind of answer do you exactly want and i will repeat a little, sorry for that.
with this method, we get the result by using google's own way, which is to ask with a secret token and get the result with some extra details like 'confidence' directly.
with your code, we literally download this page to translate 'hello' to chinese from english, and then parse the downloaded page to take the result ' 你好 '.
out of topic but i just realised that your code is also not enough to work with queries which include non ascii characters. this can be solved though, by using percent-encoding.

could u please teach me how to use percent-encoding ? it's right?
page = str(urllib.request.urlopen(request).read().decode('utf-8'))
as you see, I am a python beginner. thanks

@hnljq
you can check @yoyonel's code, it uses percent-encoding by using urlling.parse.quote() function.

page = str(urllib.request.urlopen(request).read().decode('utf-8'))

i am not sure about what this decode function does but it is not doing anything on the url part, so this is not helpful about non-ascii chars. you can check the wikipedia page for detailed information about percent-encoding.
you're welcome, i am not an expert too.

Does anyone can help me? I had reinstall py-googletrans
While i replace the
RE_TKK = re.compile(r'TKK=eval\(\'\(\(function\(\)\{(.+?)\}\)\(\)\)\'\);',
                        re.DOTALL)
RE_RAWTKK = re.compile(r'TKK=\'([^\']*)\';', re.DOTALL)

with
RE_TKK = re.compile(r'tkk:\'(.+?)\'', re.DOTALL)
RE_RAWTKK = re.compile(r'tkk:\'(.+?)\'', re.DOTALL)

it's still can't work. Actually i just found the
RE_TKK = re.compile(r'TKK=eval\(\'\(\(function\(\)\{(.+?)\}\)\(\)\)\'\);',
                        re.DOTALL)

not found RE_RAWTKK
There is my code and error information:
from googletrans import Translator
print(Translator(service_urls=['translate.google.cn']).translate('音乐',dest='en'))

IndexError                                Traceback (most recent call last)
<ipython-input-17-4a96c96b0f66> in <module>()
      1 from googletrans import Translator
----> 2 print(Translator(service_urls=['translate.google.cn']).translate('音乐',dest='en'))

~/anaconda3/lib/python3.6/site-packages/googletrans/client.py in translate(self, text, dest, src)
    170
    171         origin = text
--> 172         data = self._translate(text, dest, src)
    173
    174         # this code will be updated when the format is changed.

~/anaconda3/lib/python3.6/site-packages/googletrans/client.py in _translate(self, text, dest, src)
     73             text = text.decode('utf-8')
     74
---> 75         token = self.token_acquirer.do(text)
     76         params = utils.build_params(query=text, src=src, dest=dest,
     77                                     token=token)

~/anaconda3/lib/python3.6/site-packages/googletrans/gtoken.py in do(self, text)
    182         self._update()
    183         tk = self.acquire(text)
--> 184         return tk

~/anaconda3/lib/python3.6/site-packages/googletrans/gtoken.py in _update(self)
     54         # we don't need to update the base TKK value when it is still valid
     55         now = math.floor(int(time.time() * 1000) / 3600000.0)
---> 56         if self.tkk and int(self.tkk.split('.')[0]) == now:
     57             return
     58

IndexError: list index out of range

use this one
https://github.com/ssut/py-googletrans/blob/8940fb67f9178aad535b786b2af411e78c5f83c7/googletrans/gtoken.py

Ok. i solve it with copy someone's gtoken.py...
there is his repository..Thank you for ur code....
https://github.com/BoseCorp/py-googletrans/blob/master/googletrans/gtoken.py
Does anyone can help me? I had reinstall py-googletrans
While i replace the
RE_TKK = re.compile(r'TKK=eval\(\'\(\(function\(\)\{(.+?)\}\)\(\)\)\'\);',
                        re.DOTALL)
RE_RAWTKK = re.compile(r'TKK=\'([^\']*)\';', re.DOTALL)

with
RE_TKK = re.compile(r'tkk:\'(.+?)\'', re.DOTALL)
RE_RAWTKK = re.compile(r'tkk:\'(.+?)\'', re.DOTALL)

it's still can't work. Actually i just found the
RE_TKK = re.compile(r'TKK=eval\(\'\(\(function\(\)\{(.+?)\}\)\(\)\)\'\);',
                        re.DOTALL)

not found RE_RAWTKK
There is my code and error information:
from googletrans import Translator
print(Translator(service_urls=['translate.google.cn']).translate('音乐',dest='en'))

IndexError                                Traceback (most recent call last)
<ipython-input-17-4a96c96b0f66> in <module>()
      1 from googletrans import Translator
----> 2 print(Translator(service_urls=['translate.google.cn']).translate('音乐',dest='en'))

~/anaconda3/lib/python3.6/site-packages/googletrans/client.py in translate(self, text, dest, src)
    170
    171         origin = text
--> 172         data = self._translate(text, dest, src)
    173
    174         # this code will be updated when the format is changed.

~/anaconda3/lib/python3.6/site-packages/googletrans/client.py in _translate(self, text, dest, src)
     73             text = text.decode('utf-8')
     74
---> 75         token = self.token_acquirer.do(text)
     76         params = utils.build_params(query=text, src=src, dest=dest,
     77                                     token=token)

~/anaconda3/lib/python3.6/site-packages/googletrans/gtoken.py in do(self, text)
    182         self._update()
    183         tk = self.acquire(text)
--> 184         return tk

~/anaconda3/lib/python3.6/site-packages/googletrans/gtoken.py in _update(self)
     54         # we don't need to update the base TKK value when it is still valid
     55         now = math.floor(int(time.time() * 1000) / 3600000.0)
---> 56         if self.tkk and int(self.tkk.split('.')[0]) == now:
     57             return
     58

IndexError: list index out of range

you are not only one


[FE] highlighted code snippets are misaligned randomly

[FE][Bug#5] highlighted code snippets are misaligned randomly

Issue moved from Project Board to Project Issues [Already resolved].


Preview tab

Describe the bug
I recently subscribed to bolt.new pro for 20 dollars. The issue that i have is that the preview tab is not displaying anything. It just shows a white blank canvas
Link to the Bolt URL that caused the error
blot.new/~/sb1-p1qnan
Steps to reproduce

Add your prompt.
Add more prompts.
Check the preview tab.

Expected behavior
To display the user interface of my application on the preview tab.
Screen Recording / Screenshot
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]

Additional context
The Code tab provides the code for the functionality of my application but the UI is not displayed on the preview tab.

Apologies for the frustration! Are you able to open Chrome DevTools (On Mac, Command + Option + J. On Windows or Linux, Control + Shift + J) and send a screenshot of the Network tab (shown below) so we can investigate further? Thanks!


feat: Exclude pipelinerun from resources displayed in argocd(#169)

Description
This patch adds a crucial annotation to the PipelineRun resource creation logic, aiming to exclude these resources from being displayed in the ArgoCD UI. The annotation 'argocd.argoproj.io/compare-options': 'IgnoreExtraneous' has been added to the metadata of the PipelineRun instances. This change ensures that when ArgoCD performs a comparison between the desired state in Git and the live state in the cluster, the diff will not include the PipelineRun resources, which are often ephemeral and can create noise in the diff output.
The additions have been made in both the unit test file (index.test.ts) and the corresponding utility function (index.ts) to ensure consistency and to maintain the integrity of the test suite.
Fixes #169 (if this is related to an existing issue)
Fixes https://github.com/epam/edp-tekton/issues/169
Type of change

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

How Has This Been Tested?

Unit tests have been updated to reflect the new annotation, ensuring that the creation of PipelineRun instances includes the argocd.argoproj.io/compare-options annotation with the value 'IgnoreExtraneous'.
Manual tests were conducted in a development environment to validate that the annotation behaves as expected within ArgoCD.

Checklist:

[x]  I have performed a self-review of my own code
[ ]  I have commented my code, particularly in hard-to-understand areas
[x]  I have made corresponding changes to the documentation
[x]  My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Pull Request contains one commit. I squash my commits.

/recheck