Is it possible to specify options --reuse-values, --reset-values?

https://github.com/k3s-io/helm-controller/blob/master/pkg/apis/helm.cattle.io/v1/types.go#L32
I guess it can be done like this: https://github.com/k3s-io/helm-controller/pull/143
Thanks!

No, but I'm not sure these options would really be necessary, since all the values are persisted in the HelmChart and HelmChartValues resources themselves... given that the values are persisted externally, what would the use case be for using those options?

I am going to use that from there. Thanks!

A use-case I can think of is if there's an issue with an image used by a helm chart, so you've overridden the image in your HelmChartConfig, but then the project releases a new chart version that points to a fixed image and you want to go back to using whichever image the chart specifies. Currently the previous value is sticky unless you explicitly set a new one, so new defaults are impossible to apply.

so you've overridden the image in your HelmChartConfig, but then the project releases a new chart version that points to a fixed image and you want to go back to using whichever image the chart specifies. Currently the previous value is sticky unless you explicitly set a new one, so new defaults are impossible to apply.

I don't believe that's true. The helm upgrade command is not run with --reuse-values, so if you remove the value from your HelmChartConfig, the chart will be redeployed without your custom value, and go back to using the chart default.


Token Validation Issue ( oidc_proto_parse_idtoken: id_token payload could not be validated )

Hi
I am attempting to configure my hosted WP server as the OIDC provider, after redirection I have this error :
The OpenID Connect Provider returned an error: Error in handling response type.
This is the log messages :
[Mon Jun 08 10:58:01.446166 2015] [auth_openidc:debug] [pid 21877] src/proto.c(297): [client IP:54585] oidc_proto_validate_nonce: nonce "XrZpDMbUsTEBBbZcoLTEZVncMCEoWcdnEHa19kOIT-o" validated successfully and is now cached for 1210 seconds, referer: https://openid-dev.myWpServer.com/wp-login.php?redirect_to=%2Foauth%2Fauthorize%2F%3Fresponse_type%3Dcode%26scope%3Dopenid%2520email%2520profile%26client_id%3DwlKzFJcEEaHTRn7sddsiIMABzPNT3g%26state%3DdzOj06-VLByK3wyLwyt9dABMn0g%26redirect_uri%3Dhttps%253A%252F%252Fps.dev%252Fadmin%252Fauth.php%26nonce%3DXrZpDMbUsTEBBbZcoLTEZVncMCEoWcdnEHa19kOIT-o
[Mon Jun 08 10:58:01.446217 2015] [auth_openidc:error] [pid 21877] [client IP:54585] oidc_proto_validate_iat: "iat" validation failure (%ld): JWT was issued more than<PHONE_NUMBER> seconds in the future, referer: https://openid-dev.myWpServer.com/wp-login.php?redirect_to=%2Foauth%2Fauthorize%2F%3Fresponse_type%3Dcode%26scope%3Dopenid%2520email%2520profile%26client_id%3DwlKzFJcEEaHTRn7sddsiIMABzPNT3g%26state%3DdzOj06-VLByK3wyLwyt9dABMn0g%26redirect_uri%3Dhttps%253A%252F%252Fps.dev%252Fadmin%252Fauth.php%26nonce%3DXrZpDMbUsTEBBbZcoLTEZVncMCEoWcdnEHa19kOIT-o
[Mon Jun 08 10:58:01.446297 2015] [auth_openidc:error] [pid 21877] [client IP:54585] oidc_proto_parse_idtoken: id_token payload could not be validated, aborting, referer: https://openid-dev.myWpServer.com/wp-login.php?redirect_to=%2Foauth%2Fauthorize%2F%3Fresponse_type%3Dcode%26scope%3Dopenid%2520email%2520profile%26client_id%3DwlKzFJcEEaHTRn7sddsiIMABzPNT3g%26state%3DdzOj06-VLByK3wyLwyt9dABMn0g%26redirect_uri%3Dhttps%253A%252F%252Fps.dev%252Fadmin%252Fauth.php%26nonce%3DXrZpDMbUsTEBBbZcoLTEZVncMCEoWcdnEHa19kOIT-o
Here is my config :
    OIDCProviderMetadataURL https://openid-dev.myWpServer.com/.well-known/openid-configuration/
    OIDCProviderTokenEndpointAuth client_secret_post
    OIDCSSLValidateServer Off
    OIDCClientID wlKzFJcEEaHTRn7sddsiIMABzPNT3g
    OIDCClientSecret …………………………………………………..
    OIDCScope "openid email profile"

    OIDCRedirectURI https://ps.dev/admin/auth.php
    OIDCCryptoPassphrase presstalis
    OIDCCookiePath /admin
    <Location /admin>
       AuthType openid-connect
       Require valid-user
       LogLevel debug
    </Location>

libapache2-mod-auth-openidc_1.8.2-1ubuntu1.trusty.1_amd64.deb
ubuntu 14
Thank you

token validation fails because the iat ("issued at") timestamp is too far off; this usually indicates a clock drift between the sender and the receiver; please check the data/time settings on both machines and the iat value in the JWT

Thank you Hans

Hi,
After i get access to my protected area, How i can get the access_token to request the user informations from  https://openid-dev.myWpServer.com/oauth/me/ ?
Thank you

Please send this type of questions to the mailing list; it does not belong on the issue tracker.
The access token is available to the application in the header OIDC_access_token. Depending on the Authorization Server you can get the scopes by executing a token introspection call.


⚠ PrivateHD has degraded performance

In 8370945, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 2093 ms

Resolved: PrivateHD performance has improved in 253684f.


chore: add ricardo as maintainer

Adding ricardo as maintainer since he is pairing with me and helping with tasks and also helping with getting more people involved in the project :)

Codecov! Stop marking all PRs as red!

/approve

/merge


Tab indentation replaced by space indentation in PHP files in 1.4.0

In version 1.4.0 the indentation is replaced by spaces if using tabs in PHP files. It doesn't happen in other formats such as typescript.
The following example:
<?php
	$test = 123;
	$test123 = 456;

	if ($some_variable) {
		$testing = 'test';
		$testing_123 = 456;
	}
?>

Will result in this with 1.4.0:
<?php
 $test    = 123;
 $test123 = 456;

	if ($some_variable) {
  $testing     = 'test';
  $testing_123 = 456;
	}
?>

Instead of this (in 1.3.2):
<?php
	$test    = 123;
	$test123 = 456;

	if ($some_variable) {
		$testing     = 'test';
		$testing_123 = 456;
	}
?>

Seems we need consider more complex case, for example, what if align with mixed whitespce, for example:
	$test    = 123;  // This line contain 1 tab
        $test123 = 456;  // This line contain 8 whilte sapce

@chouzz seems like this is still a problem:
https://github.com/user-attachments/assets/cd469cd0-070d-4d4b-ad33-86d79db7158b


Add AUR download link for Arch-based distros

If I'm not mistaken, you should add all dependencies to the depends key in the PKGBUILD, so you should probably add python-sh and python-tqdm.
Thanks for the AUR package!

Yeah, you're completely right. I knew I'd forgotten something!

Done. Everything should work fine now

Thanks !


When training for longer time (>7 hours) fails to save checkpoint

Progress[100%], ETA[   0m], Batch [145460], gene[0.203], disc[0.552] real[0.218] fake[0.334]
Traceback (most recent call last):
File "dm_main.py", line 169, in
tf.app.run()
File "/usr/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "dm_main.py", line 160, in main
dm_train.train_model(train_data)
File "/mnt/disk02/projects/deep-makeover_ftm/dm_train.py", line 132, in train_model
_save_checkpoint(td, batch)
File "/mnt/disk02/projects/deep-makeover_ftm/dm_train.py", line 68, in _save_checkpoint
saver.save(td.sess, newname)
File "/usr/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1386, in save
self.export_meta_graph(meta_graph_filename)
File "/usr/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1414, in export_meta_graph
graph_def=ops.get_default_graph().as_graph_def(add_shapes=True),
File "/usr/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2257, in as_graph_def
result, _ = self._as_graph_def(from_version, add_shapes)
File "/usr/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2220, in _as_graph_def
raise ValueError("GraphDef cannot be larger than 2GB.")
ValueError: GraphDef cannot be larger than 2GB.

That is interesting. Some googling showed a potentially related issue: https://github.com/tensorflow/tensorflow/issues/2654
Have you tried any of the ideas in there?

OK, I think I know what is happening. Function _save_image() in dm_train.py is repeatedly adding new nodes to the graph.
While I fix that problem you could increase the value of summary_period so that this operation doesn't happen so frequently.
Let me know if that helps.

OK, so I switched _save_image() to use numpy instead of tensorflow. I think that should largely take care of the problem of ever-growing checkpoints.
Could you please try commit c2ae55c..779100c and let me know whether that helps?

Based on my testing the checkpoint size went down to ~20MB after 40K batches, so I'll be closing this issue.
Thanks for reporting it!

I have also retested it after your update and it works fine now.
Thank you for your help!


[Bug]: UserSession is deleted when backend is unavailable (503)

General Info

[X] I checked for similar bug report
[X] I am using the latest version
[X] I checked the troubleshooting page for similar problems

Version(s)
2.6.1
Kotlin Target(s) and their respective versions
JVM 17 Android 14
What happened? (include your code)
When backend is unavailable (503), UserSession is deleted.
Offending line is at https://github.com/supabase-community/supabase-kt/blob/246fe23ebe590f7346b4590107d200fb62947c25/GoTrue/src/commonMain/kotlin/io/github/jan/supabase/gotrue/AuthImpl.kt#L438
Our corporate reverse proxy returned 503 due to supabase backend being unavailable and it logged out all our users due to a background job that retried to upload images when users were not even using the app.
Suggestions: Please don't clear the session for all http error codes. Only clear it when refresh returns 401 due to the token being incorrect. If your backend does not support this, make it configurable for now to ignore at least 503s as this will be returned by most webservers if server is having issues/under load etc. At it's current state this is unusable in production for us.
Steps To Reproduce (optional)
class Test {

    @get:Rule
    val wireMockRule = WireMockRule(wireMockConfig().port(0))

    @Test
    fun does_not_delete_session_on_error() {

        stubFor(any(urlPathMatching(".*"))
            .willReturn(aResponse()
                .withStatus(503)
                .withBody("Service Unavailable")));

        val mockSessionManager: SessionManager = mockk()
        val userSession: UserSession = mockk()
        every { userSession.accessToken } returns "xxx"
        every { userSession.refreshToken } returns "xxx"
        every { userSession.expiresAt } returns Instant.DISTANT_PAST
        coEvery { mockSessionManager.loadSession() } returns userSession
        coEvery { mockSessionManager.deleteSession() } just runs

        val client = createSupabaseClient(
            supabaseUrl = wireMockRule.baseUrl(),
            supabaseKey = "xxxx",
        ) {
            useHTTPS = false
            install(Auth) {
                sessionManager = mockSessionManager
            }
        }

        runBlocking { client.auth.awaitInitialization() }

        coVerify(inverse = true) { mockSessionManager.deleteSession() }
    }

}

Relevant log output (optional)
Info: (Supabase-Auth) Successfully loaded session from storage!
Error: (Supabase-Auth) Couldn't refresh session. The refresh token may have been revoked.
io.github.jan.supabase.gotrue.exception.AuthRestException:
	at io.github.jan.supabase.gotrue.AuthImpl.checkErrorCodes(AuthImpl.kt:523)
	at io.github.jan.supabase.gotrue.AuthImpl.parseErrorResponse(AuthImpl.kt:491)
	at io.github.jan.supabase.gotrue.AuthenticatedSupabaseApiKt$authenticatedSupabaseApi$3.invoke(AuthenticatedSupabaseApi.kt:60)
	at io.github.jan.supabase.gotrue.AuthenticatedSupabaseApiKt$authenticatedSupabaseApi$3.invoke(AuthenticatedSupabaseApi.kt:60)
	at io.github.jan.supabase.network.SupabaseApi.rawRequest$suspendImpl(SupabaseApi.kt:25)
	at io.github.jan.supabase.network.SupabaseApi$rawRequest$1.invokeSuspend(SupabaseApi.kt)

Thanks for the issue, will publish a fix later!

make it configurable for now to ignore at least 503s as this will be returned by most webservers if server is having issues/under load etc

Just to make sure, if the refresh fails with such a status code, what exactly should happen? Should the exception just be silently ignored (which causes auto refresh to stop essentially until restart), or should the client retry refreshing after AuthConfig#retryDelay?


Source file viewer ("source-code") is not scrollable horizontally

Text file viewer ("source-code") should offer horisontal scroll in case the lines in the file er too long. You can see the scrollbar at the bottom of the page, but can't scroll.

Would you like to try and fix that?

@dgageot: Please have a look. It is now in PR #53.

Merged.


About find function

I hope that the find function can return source_regions data together to facilitate the improvement of the datastore.
I know that I can call the represent function to get the source_region data, but this requires one more calculation.

find function is already returning source regions. these are the columns of the dataframe: ['identity', 'hash', 'target_x', 'target_y', 'target_w', 'target_h', 'source_x', 'source_y', 'source_w', 'source_h', 'threshold', 'distance']
as you can see, both source and target images regions are available in the columns.


@typedef on Array confuses Closure

The following code result in a compilation warning
/** @typedef {window.Array} */
const A = window.Array;

/** @return {!A<string>} */
function f() {
  return [];
}

for (const v of f()) {
}

JSC_TYPE_MISMATCH: actual parameter 1 of $jscomp.makeIterator does not match formal parameter
found   : (Array|null)
required: (Arguments<?>|Array<?>|Iterable<?>|Iterator<?>|string) at line 9 character 16
for (const v of f()) {
                ^

It looks like for some reason Closure thinks f returns a possibly null value, which is not what the type annotation on f says.
http://closure-compiler.appspot.com/home#code%3D%252F%252F%2520%253D%253DClosureCompiler%253D%253D%250A%252F%252F%2520%2540compilation_level%2520ADVANCED_OPTIMIZATIONS%250A%252F%252F%2520%2540output_file_name%2520default.js%250A%252F%252F%2520%2540formatting%2520pretty_print%250A%252F%252F%2520%253D%253D%252FClosureCompiler%253D%253D%250A%250A%252F**%2520%2540typedef%2520%257Bwindow.Array%257D%2520*%252F%250Aconst%2520A%2520%253D%2520window.Array%253B%250A%250A%252F**%2520%2540return%2520%257B!A%253Cstring%253E%257D%2520*%252F%250Afunction%2520f()%2520%257B%250A%2520%2520return%2520%255B%255D%253B%250A%257D%250A%250Afor%2520(const%2520v%2520of%2520f())%2520%257B%250A%257D%250A

Generally typedefs should be explicitly non-null:
/** @typedef {!window.Array} */
const A = window.Array;

and then you if you want a nullable A you can write ?A

I see, thanks!

Note also that @typedef declarations should never be assigned a value.
If you want to alias a type simply use @const:
/** @const */
const A = window.Array;

@concavelenz @const and const should be redundant - you only need one or the other, right?
@MatrixFrog That's opposite what I've been advising people to do.  In light of our style guide, I've argued that consistency would recommend capitalized names be nullable.  Maybe that's a moot point in light of the mandate to use explicit ! and ? always for capital names, anyway.  Is there a reason the compiler works better if you define @typedefs to be non-null?


sshguard: do not create ipset in post-start

Upstream switched to a different type of ipset table, whereas we create ipset in post-start which overrides upstream, and renders sshguard ineffective.
Remove ipset creation from post-start, and let it get created automatically by upstream script (sshg-fw-ipset) as part of startup
Motivation for this change
Fixes #62874
Things  done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

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

Also if it can get merged to release-19.03 branch, that'll be great, since sshguard at the moment is broken there.


Hive protocol prototype

This is a suggestion on how to implement hive.  @janos let's discuss. This is meant to be like pseudo-code, so don't mind the eng practices here and implementation details. Basically, important part is to figure out the interfaces and hive messages. This is a general explanation below:
Hive msgs

SaturationDepth(depth) <- ack
Peers(peers) <- ack
ACK - this can be proto.Empty even

Init (on connect)

send saturationDepth msg
send peers msg

This is a bit different then what is done in swarm and in the book. I think that it would be a good idea to send this to events from both peers, when the connection happens, instead of sending the subscriber event. The reason for this is that subscribe event, and peers event are not idempotent, they are  used differently on init and later. For example, the receiver of the subcribe msg needs to track weather it is the first one in order to know should it send peers msg back or not. To avoid this, I think this way we achieve the same functionality, both peers will exchange saturationDepth and peers msg, leaving our handlers the same for the future as well.
On peer added event (received from peer registry when new peer is added, after the handshake is done)

send peers msg with only this new peer, to suggested peers

On saturation depth changed signal (received by saturationTracker, when saturation is changed)

send saturationDepth msg to suggested peers

On Peers msg received

add new peers to peer registry.
This will trigger on peer added event.
send ack resp

On SaturationDepth msg received

change saturation depth for the peer
send ack resp

For discussion (Alternative approaches):

more ("action" based)  msg types. ex. SubsribeReq, SubscribeResp (peers), SaturationDepth, Peer)
should we notify/define changes to peers/saturation on the hive protocol level, or  PeerRegistry & Kademlia level

We discussed about this and we'll try a slightly different idea.


Add input parameters to output parameter file

The parameter output file could have more useful parameter info to keep track of what was used to make the mesh. I forgot after 15minutes, so it would be nice to have a record of this

added in bc5c7a04af27d5eb1a1a850cd535a3a65da5c4a4


GEOMESA-1429 Replace Scala StdIn

needed for scala 2.10/2.11 compat

looks good. as a further improvement, we have some common methods in the Prompt class that might replace some of these.


Can't unzip on real phone

It works well on simulator, but can't work on real device.
I tried to unzip a file to Documents directory, and got error ("Zip.ZipError" Error 0.).
Also be told: doesn't have authority to write in Documents folder. But I can do create, move or delete, just can't unzip.
Also can't google out any information about this situation, could anyone help me out of this?
Thanks a lot !

Duplicate of https://github.com/marmelroy/Zip/issues/50


Uncaught SyntaxError: Identifier '__addressHex' has already been declared

When I start my app from AlphaWallet browser for the first time  or reload it this error message appears in the console.

This is already fixed, but the fix has not yet been released.

This issue should now be resolved with the new release on the playStore

Closing as appears to be fixed.


Add security_level argument to get_account_data()

Issue identified by @linuxMengfan in #180.
Iota.get_account_data() does not accept a security_level argument, so it is not useful for users who use a different security level to generate their addresses.
Related: #172

Scheduled for release: 2.0.7
Thanks @oskyk!!


Apply color passed from Blockstack Connect to customize theme

The color should replace all instances of our "Blockstack blue" throughout the app experience during the visit.
To work in conjunction with https://github.com/blockstack/connect/issues/78.

Not to overthink this feature, but worth considering what happens when someone passes #fff, or some other incredibly pale colour.
Do we need to pass a text colour, too? Should we prohibit colours that don't pass AA WAI-ARIA standards?

I think for now we should just provide instructions in the readme on passing an acceptable colour


Add features to analyze barren plateaus

Analyzing the barren plateau phenomenon in training quantum neural networks with the ZX-calculus
Computing variance of gradients in variational quantum circuits will help one to design circuit structure.
It is possible to implement these features with the current data structure. But the better way is to use the ZX-calculus with ground notation. This is more elegant to handle mixed states.

This is implemented in #93, see tests. I will close this for now.


Lucida Sans Typewriter isn't installed by default on MacOS

Maybe use Menlo or Monaco or Andale Mono instead as the default.
This is how it looks without the font installed - not sure which font is being used here.

Defaulted to Courier, as it comes with all four faces.


New screens and improved UX

My code conflicts with your code alot slowburn. I'm working on a fix ASAP

No worries

Fixed. With more features


I would like to test if using Ghostly Strike is a DPS upgrade. Is there any way to force to use it in rotation?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Ghostly Strike is implemented as a spell, but not used in any rotation. At this time there is no way to make the sim use Ghostly Strike in the rotation.
With regards to damage and effectiveness the math I have done shows it as inefficient when compared to Hemorrhage or Backstab when running a full sub spec. Note that it does not benefit from the talents in Subtlety that increase damage done or decrease cost of specific abilities.

Hi. Im combat and use slow MH weapon. There is a build for algalon only and in wowhead simonize said that you can use ghostly on CD If you have a slow MH weapon. I would like to test it. If you already know that is not a dps increase thats enough for me

I have added in Ghostly Strike as an option for subtlety rotations. Feel free to compare it versus without using it!


Wrap id's of selectors in quotes

This fixes the cases with newer jQuery where selector contains dot characters.
Attempting to fix this issue: https://github.com/disqus/gargoyle/issues/72
jQuery version used by Nexus would still need to be updated to fix the issue completely.

Merged into the YPlan fork at YPlan/gargoyle#34 , with the Nexus jQuery upgrade in YPlan/nexus#43 . Thanks.


Hope to support export as .ppt/.pptx file

Your software has given me great help. But in many cases, the exported .svg file is difficult to edit twice. For example, it may display abnormally when imported into Adobe Illustrator. If Netron support exporting to .pptx files, editing will be simpler, and compatibility issues will not easily occur. PowerPoint supports saving .pptx files as more than 20 different files, and many third-party files also provide extensive support for pptx files.
Thank you, best wishes

Don't consider supporting exporting to .pptx files in the future? Thank you

@GoingTime can you work on this and submit a PR.

@GoingTime can you work on this and submit a PR.

Sorry, I have n’t studied JavaScript, maybe I can do something in the future


fix(docs): no need to cache font style when has no text run

close https://github.com/dream-num/univer-pro/issues/2861

Pull Request Checklist

[x] Related tickets or issues have been linked in the PR description (or missing issue).
[x] Naming convention is followed (do please check it especially when you created new plugins, commands and resources).
[x] Unit tests have been added for the changes (if applicable).
[x] Breaking changes have been documented (or no breaking changes introduced in this PR).

还是可以复现

/update-snapshots


mem_tg: fix support for more than 8 memory channels

The sizeof() operator returns the size of an object or type in bytes, not bits. Instead of calculating the number of bits using, e.g., CHAR_BIT * sizeof(), hard-code 64 since it is close to the declaration.
This is a prerequisite for HBM support with up to 32 channels.
Link: https://github.com/OFS/opae-sdk/issues/3137
Fixes: 7bf96dc98995 ("mem_tg test multichannel")

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

0 of 2 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 64.641%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

samples/mem_tg/tg_test.h
0
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
15826

Relevant Lines:
24483

💛  - Coveralls


database inconsistency w.r.t. to type of robot

Describe the bug
during inspection of the database it was detected, that some program have inconsistent fields:

column robot_id doesn't match
the robottype element of the XML

To Do

analyse why this happens
look for similiar inconsistencies
write a database script, which detects these inconsistencies

analysis:
select r.name, count(*) from program p, robot r where p.robot_id = r.id group by r.name
ev3	52432
oraSim	1
nxt	13404
botnroll	250
calliope	105019
microbit	726
nao	71
bob3	61
wedo	50
arduino	510
mbot	12
select r.name, count(*)
from program p, robot r
where p.robot_id = r.id and not program_text like concat('%robottype="',(select rr.name from robot rr where rr.id = r.id),'"%') group by r.name
ev3	5209
oraSim	1
nxt	10
calliope	14
botnroll	4
microbit	5
bob3	4
nao	1
arduino	3
wedo	2
We have about 5200 program where program text and robot id do not match. Almost all programs are ev3 programs. It is unclear, why.
reproduction of the error:

select calliope, login as some user, load a program from the database
open another tab with the same browser
select ev3, login as the same user

this will implicitly change the selected robot in the first tab from calliope to ev3. Now save the program: it's a calliope program with the robot id of ev3. I assume (resp. I hope), that this is the only path to produce this error.
solution:
do not allow multiple tabs or synchronize multiple tabs. I believe, that solving this for the next release is not feasable. .

further analysis:
select p.id, p.last_changed, u.account, p.program_text
from PROGRAM p, USER u
where p.robot_id = 42 and p.owner_id = u.id and p.program_text like '%robottype=%' and not p.program_text like '%robottype="ev3"%'

returns 449 rows. This shows, that only 449 out of 5209 have the "real" problem.

protection was added to avoid 2 tabs that will destroy the server's state.
Must be tested very thoroughly

invalid session re-use (multiple tabs) is detected now. Accessing the server w.o. REST /init-call is detected now.
Error messages have to be improved. Except that, resolved.

the following sql can be used to change resp delete the invalid programs. Should be executed AFTER the deployment of 3.5.0, because after this deployment it should be impossible, to create these kinds of programs.
with data from 22.7. 5:00 we get:
select r.id , r.name, p.robot_id as invalid, p.id, p.name, p.owner_id, u.account
from PROGRAM p, ROBOT r, USER u
where p.owner_id = u.id and p.robot_id != r.id and p.program_text like concat('%robottype="',r.name,'"%')

490 rows of defect programs
select r.id , r.name, p.robot_id as invalid, p.id, p.name, p.owner_id, u.account
from PROGRAM p, ROBOT r, USER u
where p.owner_id = u.id and p.robot_id != r.id and p.program_text like concat('%robottype="',r.name,'"%')
  and not exists(select * from PROGRAM pp where pp.robot_id = r.id and pp.name = p.name and pp.owner_id = p.owner_id)

391 rows of programs, which can be corrected
update PROGRAM p
set p.robot_id = ( select rr.id from PROGRAM pp, ROBOT rr
                   where pp.program_text like concat('%robottype="',rr.name,'"%') and pp.ID = p.ID
                 )
where p.id in (
    select ppp.id
    from PROGRAM ppp, ROBOT rrr
    where ppp.robot_id != rrr.id and ppp.program_text like concat('%robottype="',rrr.name,'"%')
      and not exists(select * from PROGRAM pppp where pppp.robot_id = rrr.id and pppp.name = ppp.name and pppp.owner_id = ppp.owner_id)
)
commit

update of 391 rows of programs
first sql: 99 rows should be left
delete from PROGRAM p
where p.id in (
    select pp.id
    from PROGRAM pp, ROBOT rr
    where pp.robot_id != rr.id and pp.program_text like concat('%robottype="',rr.name,'"%')
)
commit

delete of 99 rows of programs
first sql: 0 rows should be left


[REF-668] Wrap MyApp with radix Theme component

MVP to test radix-ui/themes integration with reflex.
Sample code
import reflex as rx
import reflex.components.radix.themes as rdxt

class State(rx.State):
    pass

def index() -> rx.Component:
    return rdxt.box(
        rx.color_mode_switch(),
        rdxt.heading("Welcome to Reflex!"),
        rdxt.text("Radix-ui/themes edition!"),
        rdxt.button("Click me!", variant="soft"),
        rdxt.button("I'm Gray 🌈!", color="gray"),
        rdxt.text_field(),
    )

# Add state and page to the app.
app = rx.App(theme=rdxt.theme(accent_color="grass"), overlay_component=None)
app.add_page(index)
app.compile()

(hint: open Theme Panel via Cmd+C to play with colors, borders, etc)
I need to merge the pyi_generator changes up separately and update all existing pyi files, which will probably happen before this merges.

Looking at this now

import reflex as rx
import reflex.components.radix.themes as rdxt

class State(rx.State):
    pass

def index() -> rx.Component:
    return rdxt.box(
        rx.color_mode_switch(),
        rdxt.heading("Welcome to Reflex!"),
        rdxt.flex(
            rdxt.button("Click me!", variant="classic"),
            rdxt.button("Click me!", variant="soft"),
            rdxt.button("Click me!", variant="solid"),
            rdxt.button("Click me!", variant="outline"),
            rdxt.button("Click me!", variant="surface"),
            gap="2",
        ),
        rdxt.heading("."),
        rdxt.flex(
            rdxt.button("Click me!", variant="classic", high_contrast=True),
            rdxt.button("Click me!", variant="soft", high_contrast=True),
            rdxt.button("Click me!", variant="solid", high_contrast=True),
            rdxt.button("Click me!", variant="outline", high_contrast=True),
            rdxt.button("Click me!", variant="surface", high_contrast=True),
            gap="2",
        ),
        rdxt.theme_panel(),
    )

# Add state and page to the app.
app = rx.App(theme=rdxt.theme(accent_color="grass"), overlay_component=None)
app.add_page(index)
app.compile()

For anyone else


Virtual slave interface is not deleted when master marked as absent

Bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1813174
Reproducer:

Create bond0 with dummy1
Trigger a rollback with a invalid state against bond0.
Mark bond0 as absent.
Check whether dummy1 still exists.

For most time, dummy1 is deleted also(not sure it's right or not).
Sometimes, dummy1 still exists.

Fixed in nmstate 0.3.2 release.


PotPlayer won't play twitch.tv streams.

PotPlayer (64bit) is being passed to livestreamer via the --player argument, the player then opens but there is no output of the stream. PotPlayer just hangs there open doing nothing. The [cli][info] outputs "Found matching plugin [...] Opening stream [...] Starting player: [...]", then PotPlayer opens and then nothing.

--player-passthrough hls seems to work. don't know if something else works, but this one does for the moment

Thank you! I'd rather use the Mini64.exe version as all my settings exist in that version.

I'm pretty certain all the settings are passed between the live version and the Mini version. (Atleast all that I work with, do). Although don't quote me, but I think the settings are passed via the settings.ini file which is why (probably) changes in one means changes in other too.

Mmm, all the settings are written to the ini file in my directory too but the live version ignores them for some reason. It also seems prone to freezing. Either way glad livestreamer is configured correctly. Works a treat.

Try installing it again, coz Live version isn't giving me any such issues. Another thing you can try is, instead of downloading the normal English version, try downloading the Korean version (You can change the language of it easily.) You'll also probably appreciate the bevy of additional features that does not exist in the Normal English version. :)


fix: Correct asset name in release pipeline

One-line summary
The asset name in release pipeline is wrong. Use playwright instead of testcafe. 🤷♀

Yikes. So is this change going to break the release workflow though? A lot of the steps after parsing the ASSET_ID has conditions like:
- name: Checkout
  uses: actions/checkout@v3
  if: ${{ steps.prep.outputs.asset_id == '' }}
  with:
    ref: ${{ steps.prep.outputs.version }}

I checked the release pipelines, the original PR, as well as other runners' pipeline. I don't find any asset_id in the API and it's always empty whether it's official release or beta release. Also I can't really recall why it's introduced and what it wants to solve. I'm going to discuss it in standup and see if we can remove this check.


External files not loading

Demo's broken; external files not loading.
http://paypal.github.io/accessible-html5-video-player/
cc @hozefaj

Will check on this today.

@weboverhauls The issue here is that http://paypal.github.io/accessible-html5-video-player/ is not regonizing relative paths. So I added absolute paths to the files. But js files are being blocked since http://paypal.github.io/ considers github.com a different domain.
Looking into a way around the issue. If you some way to fix it, let me know.

@weboverhauls So I fixed it by moving media and image files into the docs folder since they are specific to our example not specific to the code base.
Also for now, css and js, I am copying over into the docs folder as well. Create a npm command for it.

Confirmed, thank you!


TS autest extension can now auto select both ssl and nonssl port

Along with test modifications to take advantage of this

Reopened PR because I accidentally clicked close PR on the old one

Please update tests under /tests/gold_tests/h2/ too. They're using ssl ports for HTTP/2 over TLS. Separated PR is fine if you want keep changes small.

@masaori335 I will do another PR for those.

@randall can you mark this and its sibling #5660 for 8.x backport?

This and #5660 is added to 8.x releases projects for backport candidate.


SwipeListener calls onOpen callback multiple times

I have two ConstraintLayouts inside Swipelayout. If I keep dragging SurfaceView after the whole BottomView is revealed, the swipelisteners onOpen callback is triggered multiple times.

@Dropppan Happens to me as well

Hey Guys, I have just faced the same problem and found a solution that may work for you too.
If you are using swipeLayout in RecyclerView and doing swipeLayout.addSwipeListener in onBindViewHolder(), move it to constructor of your RecyclerView.ViewHolder implementation.
The causes of the problem: swipeLayout.addSwipeListener does not set new listener but instead adds one to the internal collection. onBindViewHolder() method is invoked every time you scroll the list. So every the list is scrolled, onBindViewHolder() is executed and adds a new instance of SwipeListener. To prevent this, simply add listener once when new holder is created and never change it.
It looks like it's not actually a bug, but misleading example of usage.
Hope this helps.


optimize skip zonemap if predicate does not support_zonemap #27608

Proposed changes
pick from #27608

add support_zonemap() interface in ColumnPredicate and check it before evaluate zonemap on predicate
use different timer and stats for zonemap, runtime predicate, bloomfilter, dict for more accurate profile

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


chore: Update @google-cloud/common to latest version

Still seeing Error: Cannot find module '@google-cloud/common' in circleci and appveyor tests. Can now also reproduce locally (I'd had the module installed in a parent directory before).
I filed https://github.com/googleapis/nodejs-common/issues/120

Switching to @google-cloud/common 0.18.X is going to require some work, because the API we use to make requests now uses async/await, and this will change how we deal with getting server-specified backoff.  Hopefully we can still access the part of the response which indicates the backoff.

File https://github.com/googleapis/nodejs-common/issues/123

Closing. This was done with #187


Docs: Standardize names and terms for renderers

Part of https://github.com/godotengine/godot-docs/issues/10139.
See also https://github.com/godotengine/godot/pull/98747, https://github.com/godotengine/godot-docs/pull/10183.
New standards, for user-facing docs:

Godot has three renderers or rendering methods: Forward+, Mobile, and Compatibility. In most user-facing docs, these are referred to as "renderers". They are exposed by the engine as "rendering methods", and "rendering method" is a valid term to use.
Godot has four rendering drivers: OpenGL, Vulkan, Direct3D 12, Metal.
Godot has a rendering abstraction layer called "RenderingDevice". This can be referred to as the "RenderingDevice backend".
The term "backend" should be avoided in user-facing docs, as it is ambiguous. Especially the terms "Compatibility backend", "Forward+ backend", "Vulkan backend", are to be avoided.
The Forward+ renderer is called "Forward+". Avoid "Forward Plus" or "forward_plus" unless + is not a valid symbol.
The Mobile renderer is called "Mobile". Avoid "Forward Mobile". This rendering method is exposed in the project settings as "mobile" and referred to as "Mobile" in the engine interface.
The Compatibility renderer is called "Compatibility". Only use "GL Compatibility" when needed. For example, gl_compatibility is how it is exposed in the project settings.

This PR changes:

"GL Compatibility" to "Compatibility", since that is what shows up in the editor.
Ambiguous usages of "backend" are made explicit: they are either renderers, rendering drivers, or the RenderingDevice backend.
Existing references to "rendering methods" are left unchanged, since "rendering method" is still a valid term.

Needs rebase.

Thanks!


Catch when the date parts of a date column can't be split as expected…

…. Pass Null instead.

This PR resolves #669.


refactor: conversations

Description
Changes proposed in this pull request:

Refactor src/routers/conversations.py

Related issue(s)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Wilken seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

/cla recheck

/cla-recheck

/cla-recheck


Hi111

Please close this issue 🙏.
On Thu 12 Oct, 2023, 4:24 AM Zalaazala, @.***> wrote:

—
Reply to this email directly, view it on GitHub
https://github.com/geekcomputers/Python/issues/2005, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVTTXYETXO3MOZE7JV3BVWTX64PSPANCNFSM6AAAAAA54WT42I
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


IllegalArgumentException  "This REntity already exists" on persist REntity under load

In our multi-threaded, multi-node environment when  persisting REntity  under load, sometimes (in approximately  0.5% persist method invocations) receive an IllegalArgumentException  "This REntity already exists." ID values are generated using  timebased UUID alg. Probability  identifier duplication  generated by this algorithm is much less than 0.5%.
What could be the problem?

Which RIdResolver do you use?

We do not explicitly set RId.generator
@REntity(codec = FstCodec.class, namingScheme = ScpNamingScheme.class)
@Data
public class ShortMessagePart implements StringIdableObject {

   @RId
    private String id;
    @RIndex
    private Integer seqNum;
    private byte[] data;
    @RIndex
    private Integer state;
    @RIndex
    private Long lastActionTimestamp;
    private String shortMessageId;
    @RIndex
    private String smppMsgId;
    @RIndex
    private Long deliveryTimestamp;

}

How do you set the id?

by direct setting rentity id field value from time based UUID generator, then persist method is called

Can you copy this file into your project https://github.com/redisson/redisson/blob/master/redisson/src/main/java/org/redisson/misc/RandomXoshiro256StarStar.java and generate the id like below?

// store it as a singleton
Random r = RandomXoshiro256StarStar.create();

// ...
byte[] id = new byte[16];
r.nextBytes(id);
String sid = ByteBufUtil.hexDump(id);
liveObject.setId(sid);


Consistency updates

A few big pieces to this:

Use fixed subgraph responses (like #9)
Update all the Docker stuff to work on Linux (since gathering results on Mac is inconsistent)
Add a GitHub Actions workflow to run tests & gather a report on ubuntu-latest. This is less consistent/performant than my test on WSL2 (go figure, GitHub's runners are noisey) but still better than running on a Mac and more accessible. Here's a gist of sample results from GHA. It takes about 15 minutes to run—better than the ~30 it took me locally (with no Docker layers cached) but still kinda slow. We could speed this up a bunch but I figure we probably won't run very often (maybe on significant updates to router?)

Thanks @lleadbet, I think I applied all the suggestions

@lleadbet Fixed!


build(main): release 1.1.4

:robot: I have created a release beep boop
1.1.4 (2024-09-27)
Code Refactoring

Refactor MenuButtonInputText and MenuButtonInputInteger prompt functionality to include current value and improve template handling. (388c85e)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.1.4
:sunflower:


Migrate/regenerate resource metadata documents

resourcemap.xml and resourcemetadata.xml for old resources need to be regenerated to make consistent with the updated way we are representing content in these.

@pkdash can you please take a look at this.  It seems to me that we need two utility functions

To generate resourcemetadata.xml from the contents in Django model
To read resourcemetadata.xml and load the contents in to Django model
These will depend on resource type.  They will be used to maintain consistency between the Django model content and files in iRODS.

Suggest we move this to release 1.6

Closed since this referred to resources on beta that need to be hand migrated


Unable to signup using widget (version 0.6.1)

Hi, I am getting authentication error while trying to signup using ride request widget. Login process is working perfectly. Also I am not able to see any logs on console. Any help would be greatly appreciated!

This is happening when Uber app is not installed.

This should no longer be an issue.


for...in with custom containers?

I built a custom container, and I can use it like this without problems:
for k,v in pairs(mod.samples) do print(k, "=", v.frequency) end

I have to admit I'm not very experienced in actually writing Lua code so I'm not sure where the difference is, but suppose I just want to iterate over the data itself, this gives an error:
for v in mod.samples do print(v) end
> ERROR: attempt to call a sol.Scripting::SampleListProxy* value

However, there are library functions such as io.lines() where you can just iterate over an array exactly like that. Is my container implementation missing something for this to work, or is it something that could be added automatically by sol2 when binding my container, or do I have to do it myself (how)?

The for ... in ... do syntax is a part of Lua and has not a lot to do with sol2 in particular; see the Lua reference manual for your version for details (here's the relevant part for 5.3)
As the manual explains (second half of chapter 3.5.5 for 5.3):
for var_1, ···, var_n in explist do block end
explist is evaluated only once. Its results are an iterator function, a state, and an initial value for the first iterator variable.  (see next for details on iterator functions, might be a bit tricky to get right)
For this reason alone the construct you presented cannot work, because mod.samples is only ever a single value according to Lua's syntax rules. That is why the pairs function and similar utilities exist (the old in <table> syntax was a special case and deprecated back in 5.1 I think). As you've found, io.lines() returns values that accord to those required specifications.
You could write your own wrapper function, possibly supply it as part of your usertype's methods using sol2, and then iterate with method calling syntax, f.e. as for k,v in mod.samples:data_iterator() do --[[...]] end .

All that being said, I'm not strictly familiar with the pairs implementation in sol2 (haven't used it yet), however pairs is intended to iterate over all key-value pairs of your collection.
So if you just want to iterate over the data itself then pairs is probably the way to go anyway... if some data doesn't show up, please further explain your code setup etc. in a reproducible manner.

So if you just want to iterate over the data itself then pairs is probably the way to go anyway... if some data doesn't show up, please further explain your code setup etc. in a reproducible manner.

No, it does work as expected, I was just wondering if the other syntax could be used for brevity in this particular example. As said, I'm not very familiar with Lua yet, so I'm not exactly sure how some things work there or what the best practices are.

I need more information to solve your problem.
What is the type of Scripting::SampleListProxy ? If it has begin and end functions that have iterators it should push as a type that's identified as a container_usertype.

To clarify, for k,v in pairs(mod.samples) do ... end works without issue.
The version without a call to pairs doesn't work, as the object (here a SampleListProxy*) is interpreted as an iterator function (and called with the second value, not provided therefor defaulting to nil).
The only fix for that I could think of were if sol additionally overloaded the __call metamethod of the usertype to return a stateful iterator function that accepts nil as initial parameter... which might lead to confusion in other use cases.


Extension: alert UI when post is a dupe

Right now, it "fails" silently and doesn't tell users the URL has already been post,

For example, it's possible to repost https://paul.kinlan.me/the-web-is-my-api/


TTL Settings not Getting Applied in Route 53

Re-opening from a closed ticket @njuettner.
Here's the gist:
Using an object type of ingress I'm unable to define my TTL. I'm using annotations to try and set the value but when checking my records that are created it ends up using the default value, 300s.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: "nginx-alb-ingress"
  annotations:
    external-dns.alpha.kubernetes.io/hostname: nginx.test.example.com.
    external-dns.alpha.kubernetes.io/ttl: "60"
    kubernetes.io/ingress.class: alb
    alb.ingress.kubernetes.io/backend-protocol: "HTTPS"
    alb.ingress.kubernetes.io/scheme: "internet-facing"
    alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS": 443}]'
  labels:
    app: nginx-service
spec:
  rules:
  - http:
      paths:
      - path: /
        backend:
          serviceName: "nginxsvc"
          servicePort: 443

In the logs I can see it is referencing my annotation correctly because I can see the value in the full record set,
Endpoints generated from ingress: default/nginx-alb-ingress: [nginx.test.example.com 60 IN CNAME default-nginxa-01234-567898732.us-west-2.elb.amazonaws.com]"
However, when the TXT record is created it defaults to the 300s value for TTL. This is using AWS Route 53.
I am using version 5.4 but I'm still facing this issue. I'm not sure if it's a question of configuration but I can see in the logs that my TTL value is being read properly. It's just not getting applied.

@hjacobs So are you saying that updates to the TTL settings using external-dns are NOT possible as Route 53 ALIAS records don't allow it?

@asubramanian4 yes, ALIAS records take all the properties of the "target" record (ELB record in this case and TTLs for ELB records you cannot change).
Sorry I was linking to the wrong issues, please see #534 (I edited my comment).

@hjacobs Ahhhh, thank you! Guess I missed this issue.


Use = and & in compare URLs ( #131)

As stated in issue #131, the release comparison URLs for corporate Bitbucket servers include special characters = and &.
This commit currently replaces respective HTML entity names for = and & in the whole generated output.
I could not think of a situation where it could break existing features, but let me know if this is the case.
This is my first contribution to this repository, so any feedback is welcome (even outside of the diff, e.g. on a commit message policy I should follow, if any)
Thanks!

I faced an issue similar to #131, but in commit subjects, where backticks were printed as "`".
This occurred only when using a custom template, not with compact or keepachangelog.
I then realized that the difference between my custom template and the default ones is that they use "{{{subject}}}" rather than "{{subject}}".
I then updated the href section of the default templates to use triple curly brackets, which:

allows removing the ugly ".replace" added in the initial commit
still complies with the tests created in the initial commit to solve #131

Cleanup done in tests

Sorry for the delay on this. I really appreciate the effort, but ended up just using noEscape: true to prevent handlebars from escaping anything, which hopefully will solve all issues around this.
@RomainDazy Please don't be put off contributing! This was an awesome PR.

This has not fixed it for us.
From our package.json
"compareUrl": "https://xxxxx.com/tfs/TFS2012Collection/xxxx/_git/xxxrepo/branches?baseVersion=GT{from}&targetVersion=GT{to}&_a=commits",
Results in:
https://xxxxx.com/tfs/TFS2012Collection/xxxx/_git/xxxrepo/branches?baseVersion=GTv2.4.5&targetVersion=GTv2.4.6&_a=commits

No problem ! :)


Upgrades go from 1.18 to 1.19

Thank you for contributing to the CF CLI! Please read the following:

Please make sure you have implemented changes in line with the contributing guidelines
We're not allowed to accept any PRs without a signed CLA, no matter how small.
If your contribution falls under a company CLA but your membership is not public, expect delays while we confirm.
All new code requires tests to protect against regressions.
Contributions must be made against the appropriate branch. See the contributing guidelines
Contributions must conform to our style guide. Please reach out to us if you have questions.

Does this PR modify CLI v6, CLI v7, or CLI v8?
Please see the contribution doc above or review Architecture Guide.
Description of the Change
Upgrades go from 1.19 to 1.18
Why Is This PR Valuable?
Golang has seen an increase in the number of vulnerabilities that have affected it each year.
We want to stay on a supported version of golang so that we can easily consume security patches and bug fixes.

upgrading to 1.20


Failing at NPM build

I am NOT and expert with npm etc but tried to follow the instructions in the readme.
Felt there were several issues:

Video seemed well out of date and had a app/tool shown in it that doesn't exist in latest build?
Distinction between local and cloud builds weren't really clear
Explanation of manifest.yml entries and .env entires would be useful as those are key
when tried to use npm run build got this output
######################################################################
[1]
[1] ><EMAIL_ADDRESS>preinstall:server C:\Users\SteveLockers\cognitive-social-crm
[1] > cd server && rm -rf dist
[1]
[0]
[0] ><EMAIL_ADDRESS>preinstall:client C:\Users\SteveLockers\cognitive-social-crm
[0] > cd client && rm -rf dist
[0]
[1] npm run preinstall:server exited with code 0
[0] npm run preinstall:client exited with code 0
[1]
[1] ><EMAIL_ADDRESS>build:server C:\Users\SteveLockers\cognitive-social-crm
[1] > cd server && npm run build
[1]
[0]
[0] ><EMAIL_ADDRESS>build:client C:\Users\SteveLockers\cognitive-social-crm
[0] > cd client && npm run build
[0]
[1]
[1] ><EMAIL_ADDRESS>build C:\Users\SteveLockers\cognitive-social-crm\server
[1] > node ./node_modules/.bin/tsc && cp package.json dist
[1]
[0]
[0] ><EMAIL_ADDRESS>build C:\Users\SteveLockers\cognitive-social-crm\client
[0] > ./node_modules/@angular/cli/bin/ng build
[0]
[0] '.' is not recognized as an internal or external command,
[0] operable program or batch file.
[0] npm ERR! code ELIFECYCLE
[0] npm ERR! errno 1
[0] npm ERR<EMAIL_ADDRESS>build: ./node_modules/@angular/cli/bin/ng build
[0] npm ERR! Exit status 1
npm ERR!
[0] npm ERR! Failed at the<EMAIL_ADDRESS>build script.
[0] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[0]
[0] npm ERR!      C:\Users\SteveLockers\AppData\Roaming\npm-cache_logs\2018-10-01T15_01_24_180Z-debug.log
[0] npm ERR! code ELIFECYCLE
[0] npm ERR! errno 1
[0] npm ERR<EMAIL_ADDRESS>build:client: cd client && npm run build
[0] npm ERR! Exit status 1
npm ERR!
[0] npm ERR! Failed at the<EMAIL_ADDRESS>build:client script.
[0] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[0]
[0] npm ERR!      C:\Users\SteveLockers\AppData\Roaming\npm-cache_logs\2018-10-01T15_01_24_226Z-debug.log
[0] npm run build:client exited with code 1
[1] C:\Users\SteveLockers\cognitive-social-crm\server\node_modules.bin\tsc:2
[1] basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
[1]           ^^^^^^^
[1]
[1] SyntaxError: missing ) after argument list
[1]     at createScript (vm.js:80:10)
[1]     at Object.runInThisContext (vm.js:139:10)
[1]     at Module._compile (module.js:617:28)
[1]     at Object.Module._extensions..js (module.js:664:10)
[1]     at Module.load (module.js:566:32)
[1]     at tryModuleLoad (module.js:506:12)
[1]     at Function.Module._load (module.js:498:3)
[1]     at Function.Module.runMain (module.js:694:10)
[1]     at startup (bootstrap_node.js:204:16)
[1]     at bootstrap_node.js:625:3
[1] npm ERR! code ELIFECYCLE
[1] npm ERR! errno 1
[1] npm ERR<EMAIL_ADDRESS>build: node ./node_modules/.bin/tsc && cp package.json dist
[1] npm ERR! Exit status 1
[1] npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR!     C:\Users\SteveLockers\AppData\Roaming\npm-cache_logs\2018-10-01T15_01_24_574Z-debug.log
[1] npm ERR! code ELIFECYCLE
[1] npm ERR! errno 1
[1] npm ERR<EMAIL_ADDRESS>build:server: cd server && npm run build
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the<EMAIL_ADDRESS>build:server script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR!      Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\SteveLockers\AppData\Roaming\npm-cache_logs\2018-10-01T15_01_24_695Z-debug.log
#############################################################################
I'd love to get the demo going as it looks like a great app to show customers and has multiple services all working in harmony alongside external service that is Twitter

@Lockwos  I tested it locally and also tested deploying to IBM cloud and it works fine for me. This is the app I was able to deploy: crm-client.mybluemix.net
p.s. I did find a minor mistake when deploying to IBM cloud when building. I have fixed that. But your issue seems to be during installation of dependencies.

Sanjeev - we are glad you got this running but I am also stuck at the following exact concerns: also what was your minor mistake????!?!?

Video seemed well out of date and had a app/tool shown in it that doesn't exist in latest build?
Distinction between local and cloud builds weren't really clear
Explanation of manifest.yml entries and .env entires would be useful as those are key
when tried to use npm run build got this output

Can we get an update on these issues please - these are unrelated to installation of dependencies.
These issues remain unresolved.

Windows 10

@bryan-ninjamoba currently the npm scripts don't support windows as it is running rm commands part of it. I will try to see if there is an alternate way so that its platform agnostic.

Windows OS is not supported and not on our roadmap of things to address in this repo.
We also revamped the instructions to address some of the initial concerns in commit https://github.com/IBM/cognitive-social-crm/commit/511eaf6eaec7f78e2a78e727412b8d70824ccce7


[manifest] #4 add script to checkout a set of repositories to match a manifest file

Add script to checkout a set of repositories to match a manifest file.
This PR depends on https://github.com/RackHD/on-tools/pull/25 ; https://github.com/RackHD/on-tools/pull/26; https://github.com/RackHD/on-tools/pull/28

@panpan0000

@RackHD/corecommitters


Is this meant to supersede / replace github.com/rickb777/date/period?

First of all, thank you for all the work you put into developing these packages! I imported it in Benthos to allow users to convert strings containing ISO8601 durations to nanoseconds and there's some interest in adding even more functionality, such as addition.
I noticed that you created this separate repo for the period subpackage and was wondering if the goal is to move the entire period package here. Should I consider switching to this one at a certain point?

Doubling the question.
https://pkg.go.dev/github.com/rickb777/date/period has this note:

*** Warning: this package is the subject of many issues, so a replacement is under development. Please see https://github.com/rickb777/period.

Could you please clarify what issues do you mean?
Thanks for your work!

The existing Period code is overly complex, doesn't support weeks properly, has a quite limited numeric range and doesn't allow fields to have differing signs. Requests have been made to improve these issues.
BTW sorry this has taken so long to do.

Good to know, thank you @rickb777! And thank you for working on this! Sounds like users should aim to migrate to github.com/rickb777/period eventually.

I've merged in a PR and released v1.0.5 today.


CLONE - Test Issue Mig

PHP Version
Test Issue Mig

Shopware Version
Test Issue Mig

Expected behaviour
Test Issue Mig

Actual behaviour
Test Issue Mig

How to reproduce
Test Issue Mig

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/MIG-1044.
[created from MIG-1044, comment 483986]

[public] This is just a test issue. We will close it
[created from MIG-1044, comment 484011]


Release/v0.4.0

I am a bit confused. Didn't we say we would merge into develop and then branch the releases of develop ?

I am a bit confused. Didn't we say we would branch the releases off develop ? I don't understand why there are so many diffs


mereics(ticdc): add cdc_resolvedts_high_delay alert

What problem does this PR solve?

Issue Number: close #10113
What is changed and how it works?
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Please refer to [Release Notes Language Style Guide](https://pingcap.github.io/tidb-dev-guide/contribute-to-tidb/release-notes-style-guide.html) to write a quality release note.

If you don't think this PR needs a release note then fill it with `None`.

/retest


Kate doesn't ask for privileged escalation when editing a file owned by root

Describe the bug
When editing a file (for instance configuration.nix) with KDE's text editor Kate, the editor would ask for root password when saving the file by using kauth. On NixOS however, Kate simply complains that the user isn't the owner of the file and refuses to overwrite it.
Steps To Reproduce
Steps to reproduce the behavior:

install Kate (nix-env -i kate)
Open a configuration file in /etc/
Attempt saving it. Kate will simply complain the user doesn't own the file instead of asking for escalation.

Expected behavior
On other distros, Kate would ask for root password before saving the file.
Additional context
Nix 22.05
Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Sorry for the lack of more details I am currently on mobile

I am having the same issue and cant seem to get around it. I saw that partition-manager that had a similar issue of not asking for permission for me which worked after enabling it as a program.
nix-shell -p nix-info --run "nix-info -m"
this path will be fetched (0.06 MiB download, 0.30 MiB unpacked):
  /nix/store/n564hnvmn4589d6a6q9aylznk7nkvaky-bash-interactive-5.1-p16-dev
copying path '/nix/store/n564hnvmn4589d6a6q9aylznk7nkvaky-bash-interactive-5.1-p16-dev' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.43, NixOS, 22.05 (Quokka), 22.05.866.1f8d88087a3`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I just confirmed that this is not exclusive from kate, it is also ocurring when trying to open the same file with kwrite.
Don't know if this is because they are basically the same soft, or if it is something related to other kde applications

You can run kate using sudoedit
In your /etc/nioxos/configuration.nix add the following:
  environment.sessionVariables = {
   SUDO_EDITOR= "/run/current-system/sw/bin/kate";
  };

and then in a terminal:
sudoedit /etc/nixos/configuration.nix
It will show the filename at the to with some random characters in it and the location will /var/tmp/configurationXXXXXXXX.nix but when you save it, it will update the file correctly.

I can confirm this bug is still present.
I suspect nix isn't building ktexteditor with ENABLE_KAUTH on. Which enables KAuth integration. Could @tteggel or @nyanloutre confirm this?
see: https://github.com/KDE/ktexteditor/blob/master/CMakeLists.txt#L43

From looking at the CMakeLists, ENABLE_KAUTH should be on if NOT WIN32.
I'm also encountering this bug and tried figuring out what is causing this but haven't made any progress yet.

I figured out the problem, I had to add kdePackages.ktexteditor to my list of system packages. I feel like this should've been enabled by default

this doesnt work on gnome
tried adding kdepackages.kauth but also not work


skip dkist benchmarks

Description
dkist added benchmarks to their test suite in https://github.com/DKISTDC/dkist/pull/382
which they disable for unit test runs using --benchmark-skip
This PR adds the same skip to our downstream dkist test (which is otherwise failing on the benchmarks).
Checklist:

[ ] pre-commit checks ran successfully

[ ] tests ran successfully

[ ] for a public change, added a towncrier news fragment changes/<PR#>.<changetype>.rst

changes/<PR#>.feature.rst: new feature
changes/<PR#>.bugfix.rst: bug fix
changes/<PR#>.doc.rst: documentation change
changes/<PR#>.removal.rst: deprecation or removal of public API
changes/<PR#>.general.rst: infrastructure or miscellaneous change

[ ] for a public change, updated documentation

[ ] for any new features, unit tests were added

@Cadair is this the correct way to skip these?

I think so yeah.


Cannot find template.hbs

When I run:
$ bootprint swagger http://localhost:63342/blee2/documentation/api.json documentation/
I get:
{ [Error: Cannot find module './template/template.hbs'] code: 'MODULE_NOT_FOUND' }

This was an error in Bootprint-base. The bug was already fixed, but not published. Now it is. Make sure that bootprint-base version 0.2.3 is loaded as dependency of bootprint-json-schema.
Thanks for reporting

closing


Cost Differentiator

Added Cost Differentiator table in Cost Breakdown view.
You can select a timerange and an interval, it will automatically update data in table to show you cost and their variation month to month or week to week.
P.S. : Tests update is in progress

Looks good overall. Just some quick changes :

Add a cost diff table by default on view (at second place)
by default it shows useless data ($0 items) please order the table by most recent month cost descending by default
please add a "+" before a positive value in the variation column for consistency
for variation overs 100% (in either way) please apply a 'font-weight: 500' property on the value. This will make the big variation to stand out a bit more (see Screenshot 1)
please fix your variation calculation, it struggles on 0 values (see screenshot 2 & 3)
the available timerange presets are not useful at all for this element (last 7 days, ...) Please use more adapted presets for this particular component (Last 2 month (default), Last 3 months, Last 4 months,...)
please change the top button to add this element to "Add a month-to-month table", "differentiatior" is an ugly word ;)
we now have a lot of different components on this view. it would be nice to have a small discrete title on the top of each panel (with an icon) just stating the current component (e.g Pie chart, Month-to-month table, Bar Chart, ...) we have empty space for this on the top left of each panel

Screenshot 1

Screenshot 2

Screenshot 3

@alexis-ld :

1 : Updated, there is now 4 default charts.
2/3/4/5 : Updated
6 : I have updated default ranges for this component : Last 2/3 Weeks, This Month, Last Month, Last 2/3/6/12 Months, This Year, Last Year. (I had to keep weeks ranges since you can use weeks as interval.)
7 : Button name is now "Add a Cost Table"
8/9 : Updated

I still need to update tests but you can already review these changes.


用LLava官方脚本替换Qwen2，用mpt的template训练 loss 0

楼主有遇到过类似的情况吗？
{'loss': 0.0, 'learning_rate': 0.001435114503816794, 'epoch': 0.02}
2%|██▊                                                                                | 188/8720 [14:45<11:05:28,  4.68s/it]WARNING: tokenization mismatch: 58 vs. 59. (ignored)
WARNING: tokenization mismatch: 41 vs. 42. (ignored)

是由于conv template和process函数不匹配导致的。你可以参考custom.md。
[En] the conv template mismatched with process function, you can refer to the custom.md
或者直接用我们提供的关于qwen的代码。
[En] We provide the code for Qwen2
https://github.com/PKU-YuanGroup/MoE-LLaVA/issues/39

我应该已经调整了conv template为 mpt 格式。
贴一下你的运行命令。
[En] What's the mpt conv template? Could you post you run command?

我发现你是改了这个地方：
 if has_image:
                round_len = len(tokenizer_image_token(rou, tokenizer)) + 1 # for eos_token
                instruction_len = len(tokenizer_image_token(parts[0], tokenizer)) - 1  # instruction_len is before the answer
            else:
                round_len = len(tokenizer(rou).input_ids)
                instruction_len = len(tokenizer(parts[0]).input_ids) - 1

这里我好像没改，但是有个问题，你对应的qwen conv template是：
conv_qwen = Conversation(
    system="A chat between a curious user and an artificial intelligence assistant. "
    "The assistant gives helpful, detailed, and polite answers to the user's questions.",
    roles=("USER", "ASSISTANT"),
    version="qwen",  # replace
    messages=(),
    offset=0,
    sep_style=SeparatorStyle.TWO,
    sep=" ",
    sep2="<|endoftext|>",  # replace with eos_token
)

我用的是：
conv_mpt = Conversation(
    system="""<|im_start|>system
You should follow the instructions carefully and explain your answers in detail.""",
    # system = None,
    roles=("<|im_start|>user\n", "<|im_start|>assistant\n"),
    version="mpt",
    messages=(),
    offset=0,
    sep_style=SeparatorStyle.MPT,
    sep="<|im_end|>",
)

因为基于qwen的chat模型是chatml的格式，难道不应该沿用chatml会好一点么
chatml 上面的process要咋改

我尝试修改了preprocess， 沿用了chatml template， loss还是 0.
理论上来说，和你的template也是多了一个 eos，应该不至于loss 泵掉

Could you post you run command?

Sorry, I can not reproduce your error. Please repull the latest code and follow the custom.md, which is enough clear to implement Qwen1.5 as https://github.com/PKU-YuanGroup/MoE-LLaVA/issues/39 done.
The Qwen1.5 scripts are same with qwen and only need to modify --model_name_or_path. Our latest code is support Qwen1.5 https://github.com/PKU-YuanGroup/MoE-LLaVA/issues/39#issuecomment-1945654824.

I got it work now, the loss shows:
{'loss': 16.2781, 'learning_rate': 3.816793893129771e-06, 'epoch': 0.0}
{'loss': 15.7207, 'learning_rate': 7.633587786259541e-06, 'epoch': 0.0}
{'loss': 15.9175, 'learning_rate': 1.1450381679389314e-05, 'epoch': 0.0}
{'loss': 15.8711, 'learning_rate': 1.5267175572519083e-05, 'epoch': 0.0}
{'loss': 15.352, 'learning_rate': 1.9083969465648855e-05, 'epoch': 0.0}
{'loss': 14.9108, 'learning_rate': 2.2900763358778628e-05, 'epoch': 0.0}
{'loss': 14.1826, 'learning_rate': 2.6717557251908397e-05, 'epoch': 0.0}
{'loss': 13.4192, 'learning_rate': 3.0534351145038166e-05, 'epoch': 0.0}

it's it normal for pretrain stage? looks like very huge

@LinB203  The 1.5 support very nice! Then you must upgraded to latest tansofmers to support qwen2 tokenizer? How about using transformers's MOE arch to minimal the code!

BTW, did u tried open both vision tower and projector in both stage1 and stage2?

I haven't run qwen2 on clip-large-336, it will converge to around 0.8 in siglip-384.
We support qwen2 tokenizer https://github.com/PKU-YuanGroup/MoE-LLaVA/blob/main/moellava/train/train.py#L1402.
We did not modify the MLP projector and you can change vision encoder by following here.

Is qwen1.8b on 1 epoch? with llava pretrain dataset?

BTW, did u tried open both vision tower and projector in both stage1 and stage2?

Do u tried this training step same as Yi-6b-VL?

Is qwen1.8b on 1 epoch? with llava pretrain dataset?

BTW, did u tried open both vision tower and projector in both stage1 and stage2?

Do u tried this training step same as Yi-6b-VL?

Yes, with sharegpt4v pretrain dataset.
No.

@LinB203 Shouldn't be 1.8 MoE?
Does the model open? Does the pretrained (no finetune) model able to do simple image caption ?

@LinB203 Shouldn't be 1.8 MoE? Does the model open? Does the pretrained (no finetune) model able to do simple image caption ?

The model have not been released.
Yes.

@LinB203 When will the model release? Looks like better than currect model, is it also 1.8bx4 moe?

@LinB203  I think the pretrain loss hard to be 0.2, the official pretrain loss of llava is about 1.9:

How did u guys manageed trained pretrain loss so small?

schedule to next month.
We use the pretrained dataset from sharegpt4v, which is about 1.2M QA pairs.

@LinB203

When will the model release? Looks like better than currect model, is it also 1.8bx4 moe?
Which pretrained data you were using? sharegpt4v_instruct_gpt4-vision_cap100k.json or pt part? Does pt part contains many noise maybe?

We use the pretrained dataset from sharegpt4v, which is about 1.2M QA pairs.

We use the pretrained dataset from sharegpt4v, which is about 1.2M QA pairs.

@LinB203  I found the sharegpt4v also lack of Chinese part data.
Do u think any hight quality Chinese pretrain image-text pair can be used to enhance Chinese ability?

Refer to https://github.com/PKU-YuanGroup/MoE-LLaVA/issues/26#issuecomment-1928765474.


Add additional FHIR resource to MedMorph healthcare survey reporting bundle test data

The current test data the team is using for testing MedMorph healthcare survey ingestion is limited to a Patient resource. We want to enhance the sample to include additional FHIR resources following appropriate validation profile samples.

This user story was lowest priority for sprint ending Feb 8. Moving this story to the next sprint to better test MedMorph ingestion.

Have not found a good reference for patient resource with dependent fhir resource types. I uploaded the latest reporting bundle sample used in testing which includes 3 patient entries in the content bundle - https://cdc.sharepoint.com/teams/CDC-Data-Exchange/_layouts/15/download.aspx?UniqueId=ebaeb570b55e4c51add6a5524ebd3c80&e=tA2mh9

In the sample content bundle, I tried to include a Patient resource followed by a RelatedPerson resource using examples from HL7 but getting validation errors from FHIR on structure.

Found a reporting bundle sample from a previous Connectathon. This bundle had to be tweeked to pass current validation profile for US PH reporting bundle. The sample includes 11 FHIR resources and validates with warnings - https://cdc.sharepoint.com/teams/CDC-Data-Exchange/_layouts/15/download.aspx?UniqueId=44af5011ebbc49f090aaf23c63896bf6&e=Hxh4lB


Add Sync (Rebase)

I suggest having a Sync (Rebase) option under Sync.
Most of the times I find myself having to manually run the two commands simply because sync uses regular pull. I don't want to edit my git configuration to always rebase either.
I think it makes sense to have a Sync (Rebase) option since there already is a Pull (Rebase), and sync uses pull.

This is a git configuration: https://git-scm.com/docs/git-config#git-config-pullrebase

Hi @joaomoreno thanks for replying, but I already said:

I don't want to edit my git configuration to always rebase either.

If I should edit my configuration, what's the purpose of Pull (Rebase)?
As it stands, the sync command is barely useful to me. I have to always switch to the terminal to sync my changes after committing within VSCode. In my opinion, a pull with rebase is a far better use case for sync.

I missed that sentence, sorry about that.

No worries! Sure, I can definitely have a go at it!

@joaomoreno I have created a PR for this that should hopefully work! #31416

Fixed by https://github.com/Microsoft/vscode/pull/31416

Verified that Sync (Rebase) exists as a command. It is not available in the Git action drop down.


Update install instructions for dask-dev enviornment

The Development environment Install section of the docs says
conda env create -n dask-dev -f continuous_integration/environment-latest.yaml
conda activate dask-dev
python -m pip install --no-deps -e .

But we got rid of environment-latest.yaml on https://github.com/dask/dask/commit/5bc14dc7b62f129622c3f11fbe7119c13836de26
We should now point to use environment-3.9.yaml unless we recommend something different.
The file to modify is: https://github.com/dask/dask/blob/main/docs/source/develop.rst
cc: @jsignell @scharlottej13

Is the docs build failing? This should have been updated when the release went in.

I'm taking a look at readthedocs

I noticed that when I googled for dask docs, it return stable instead of latest. If I change it to latest now I the docs are updated. Should this change be on stable or not yet?

It should be on stable. There was an error on the build. I am retrying

Rebuild worked, but we need to rethink our release process to get the stable build to complete properly. It looks like the build got messed up because when it tried to install distributed, that referenced dask 2021.11.2 and that wasn't yet available.

I'm going to close this, but ping @jrbourbeau so that he's aware of the issue with the release process.

Yeah, I've been manually retriggering RTD builds when releasing but forgot to this time. Agreed it would be good to avoid the need for manual steps here

oh yikes, yeah maybe we can come up with something.


feat: brand convertion for pgs

List of Changes

brand conversion for pgs

Motivation and Context
The goal of this PR is to convert the brand compute with card-validator lib with the enum managed by authorization API.

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

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

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Code seems to be ok, but something is broken in the build step of the pipeline

Code seems ok. But i can't understand why do we have a new yarn.lock file without adding or removing dependencies from the package.json file.

I have also noticed some unit test failures, that's why the build step is broken I think:

I have also noticed some unit test failures, that's why the build step is broken I think:

correct, there were some bugs on the develop branch that were fixed on this PR https://github.com/pagopa/pagopa-checkout-fe/pull/185


Design Auth with CBS

[ ] Review existing contract
[ ] Formalize new contract
[ ] Document design/call
[ ] Update arch diagram, if needed

Here's a sample of XML response from the exixting auth method.


support both 2d and 3d scene

can  cesium support two scenes in two divs？
I want the two views ,one is 2d ,the other one is 3d. and the entities are drawn same.just one is other's mirror.
thanks for your reply.
like this

can  cesium support two scenes in two divs？
I want the two views ,one is 2d ,the other one is 3d. and the entities are drawn same.just one is other's mirror.
thanks for your reply.

Hello,
Yes, you can support the scene in two different viewers. We have a Sandcastle that demonstrates this functionality.
For future reference, this kind of question is better suited for Cesium Forum, where both members of the community and team developers can help. We use GitHub for bug-tracking exclusively. Thanks!


How to inject $error$ in 1.0.0-beta.1

In the last alpha I was able to access the error object in an onError hook through:
var redirect = ['$error$', function($error$) {
    if ($error$ && $error$.status === 404) {
        $state.go('assets');
    }
}];

Now that injections are done through the transition parameter I tried:
var redirect = function (transition) {
    var $error$ = transition.injector().get('$error$');
    if ($error$ && $error$.status === 404) {
        $state.go('assets');
    }
};

Which always produces unknown provider errors.
Is there a new way to get the error object?

#2860

Not sure if this question belongs here, but I'll do it anyway.
How should I implement a default error handler?
I'm new to this transition concept. I (think I) did manage to fire onError events but I can't see how do I get the error thrown.
In my case I have a rejected promise in the resolve object that returns a string but I'm unable to get this string inside my $transitions.onError. Also tried $transitions.defaultErrorHandler with no luck.
Can you guys help me please?
Thanks!

+1
I found the error embedded in transition.promise.$$state.value but it seems like there really should be a less hacky way of accessing an error in an onError method. Maybe I'm just setting up the error handler all wrong.
app.config(['$transitionsProvider', function($transitionsProvider) {
    $transitionsProvider.onError({...}, function(transition) {
        var error = transition.promise.$$state.value; // No idea if this is always going to be available at the time of invocation
        console.error(error);
    }
}]);

I think this was an oversight in beta.1, sorry.  in beta.2 we will expose the error as  transition.error().

Note: a workaround:
var redirect = function (transition) {
  transition.promise.catch(function($error$) {
    if ($error$ && $error$.status === 404) {
        $state.go('assets');
    }
  });
};


Fresh install - build fail mmap issue

Checklist

[X] I've looked through the issues and pull requests for similar reports

Describe your issue
Hello, this my time using cross to compile to Linux from Mac (intel). Using Podman as my vm engine. However the project fails to build even for a simple hello world executable.
What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?

[X] macOS
[ ] Windows
[ ] Linux / BSD
[ ] other OS (specify in description)

What architecture is the host?

[X] x86_64 / AMD64
[ ] arm32
[ ] arm64 (including Mac M1)

What container engine is cross using?

[ ] docker
[X] podman
[ ] other container engine (specify in description)

cross version
cross 0.2.5 (37c681a 2023-07-17)
Example

info: self-update is disabled for this build of rustup
info: any updates to rustup will need to be fetched with your system package manager
info: downloading component 'rust-src'
info: installing component 'rust-src'
   Compiling rust-woof v0.1.0 (/Users/username/rust-woof)
error[E0786]: found invalid metadata files for crate `std`
  |
  = note: failed to mmap file '/Users/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-7b9f6349d87c69a1.rlib': No such device (os error 19)
  = note: failed to mmap file '/Users/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-7b9f6349d87c69a1.so': No such device (os error 19)
  = note: failed to mmap file '/Users/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-e299e57d9e5c1111.rlib': No such device (os error 19)

error: cannot find macro `println` in this scope
 --> src/main.rs:2:5
  |
2 |     println!("Hello, world!");
  |     ^^^^^^^

error: requires `sized` lang_item

For more information about this error, try `rustc --explain E0786`.
error: could not compile `rust-woof` (bin "rust-woof") due to 3 previous errors

Additional information / notes
No response

can you do, make sure to use the proper path to the .rustup folder
podman run -v /Users/username/.rustup/toolchains/:/rustup --rm -it ubuntu:20.04 ls/rustup/stable-x86_64-unknown-linux-gnu/lib/rustlib/

to me, it seems like the podman machine can't read the folder.

I have the same issue with a different setup. I've been using incus/lxd to mount a virtual machine where I have rust code. I changed the --cache option of virtiofsd from "auto" to "never" (which made it today in the zabbly daily build of incus), and I get the exact same errors. On code that used to compile fine.
There are other weirdnesses to my setup, so I cannot claim that the above is all that matters. But I do get the same errors (with a ZFS filesystem on the host being mounted with virtiofsd, and bind --mounts on the guest).
However, something tells me that while this may be an OS+virtualisation issue, rust itself seems to be at fault too. Because I do get the "No such device (os error 19)" in another context on that same virtual machine: When cloning a repo, I tried "git clone" with the usual git tool and "gix clone" with the gix cli of the gitoxyde project (which is somewhat-drop-in replacement to git). "git clone" clones fine. "gix clone" throws "No such device (os error 19)".
It may be that rust is trying to be overly smart in some ways, and shoots itself in the foot. If that is correct, then it may not be a VM or container problem. It may be, or may not.

I think what you've identified should be raised as an issue on rust-lang/rust, the problem seems to be out of our hands and the culprit is the backend for OpenOptions/fs in rust?

On #irc, the rust people told me it's not a rust problem, but rather a virtiofs problem. They may be right. They may be wrong. It may involve the DAX window for memory mapped files with virtiofs. And it may be a similar issue with docker. I can't tell. But it also is tied to rust's safety expectations, and many implementations of memory mapped files, they told me, tend to use MAP_SHARED instead of MAP_PRIVATE by default. Which would explain the subtle difference observed between git and gix.
All in all, I do not really know where to start with that kind of issue.
I tend to believe it's a problem pertaining to immature DAX window support in virtualisation technologies.
But don't quote me on that.

It is conceivable that the following issue in the rustc compiler will solve this one.
https://github.com/rust-lang/rust/issues/122262#issuecomment-1987030439
With a bit of luck.

I think what you've identified should be raised as an issue on rust-lang/rust, the problem seems to be out of our hands and the culprit is the backend for OpenOptions/fs in rust?

There are some people on the issue and PR I opened who claim that a bug in a filesystem is not a bug in rust. Which is kind of true, but on the other hand, it is the job of a compiler not to bail out in a virtualised setting.
But just so you know: some people believe the problem is with your filesystem.
I think that position is disingenuous.
I hope this doesn't hold back my PR which, I believe, will solve this issue.


Draggable marker with updating current location

Can a marker be draggable?
How to update my current location ?
Can I add ModalBottomSheet widget or somthing that display the current address to the user ?

see https://github.com/apptreesoftware/flutter_map/issues/21#issuecomment-394422192 for info about draggable markers.
Location management is a different package: https://pub.dartlang.org/packages/location.  You can render the location using a Marker.
Since this is a normal flutter widget, you can add any other widgets you like

Any example on this? Hoiw to drag my locations marker?

see https://github.com/apptreesoftware/flutter_map/issues/21#issuecomment-394422192 for info about draggable markers.
Location management is a different package: https://pub.dartlang.org/packages/location. You can render the location using a Marker.
Since this is a normal flutter widget, you can add any other widgets you like

that is a 404 error
Any example on this? How to drag my location's marker?

You can access the original comment now at https://github.com/johnpryan/flutter_map/issues/21#issuecomment-394422192

So it is not implemented yet, thanks


Add cilk to Codegen

cilk is compiler infrastructure influenced by LLVM written in Rust

It says it's a toy right now, is it ready to be presented as something to be seriously used?

I think so, there is minilang and it seems to showcase more features than Cranelift's simplejit-demo

Added it, thanks!


Add tydbit support

Hey @ty-porter what kind of test have you done with this. If this and the Matrix Portal S3 support is actually working, I think a lot of things will change on my end.

In theory with this change any device that can make HTTP requests and render images to a matrix should be supported
I don't own the hardware in question so I'd love for someone to help test.
You can follow along with this discussion if you're interested in how the Tydbit HDK works.

I have one, just gotta find it (just moved a couple weeks ago). I have a bit of time this weekend, I'll give it a go if I can.


Flash not working + Usage needs update?

I cloned DemoSwiftyCam and tried it on my iPhone 5S but the flash is not working. Is this a framework bug or can you recommend a way to implement it?
Also, comparing the usage instructions on README.md to the DemoSwiftyCam project, I can see that they are not coherent. Do you recommend to continue using the logic on DemoSwiftyCam?
Thanks in advance!

Hey,
can you point me to where the README differed from the demo, I would love to fix it. I am going to look into the flash issue. Does it not work for all modes (front camera, back camera, photo, video .etc).
Thanks!

I'm sorry, it seems that I was misinterpreting the use of SwiftyRecordButton, PhotoViewController and VideoViewController on the DemoSwiftyCam. I thought they were part of the Framework and were not correctly referenced on the usage instructions, but they are just additional classes for further customization.
I was also able to solve the problem with the flash, it seems that there was a conflict with some other Frameworks I was using.
Thank you for your support anyways and keep up the good work!


Flake8 cleanup. Setup environmental variables.

Skipping broken tests unrelated see comments.
This allows for not installing some requirements by setting
SANIC_NO_UVLOOP or SANIC_NO_UJSON during install as environmental variables.

Is there a possibility of making another pull request with just the skipped tests included?

It wont pass CI if I don't skip the tests.

@r0fls How does that do for documentation

@jkbbwr actually can you first remove the changes to tests/test_request_timeout.py and  tests/test_payload_too_large.py? You just reordered the imports.

@r0fls Changes have been made. Can we get this in and push that release now?

@seemethere has been doing the releases, not sure when he's planning to release the next one.


ciao-controller,ciao-image: Create a tenant private docker registry per k8s cluster

deploy a docker registry with each k8s cluster that is accessible only to k8s worker/master nodes in the k8s cluster. This service should be deployed in a VM when the k8s cluster is created.

we changed our k8s strategy, so this is no longer relevant.


Could not find trained_models!

Dear @ignacio-rocco,
The results are pretty amazing!.
I would like to run the demo on my own. So I cloned the code and in the source code, we need to read the file 'best_pascal_checkpoint_adam_affine_grid_loss_resnet_random.pth.tar' in the trained_models folder.
However, in readme file, there are no links to download: ### best_pascal_checkpoint_adam_affine_grid_loss_resnet_random
I only could find:
[Affine - VGG - StreetView] |
[Homography - VGG - StreetView] |
[TPS - VGG - StreetView]
Where are the pretrained with pascal?
Vy

nevermind, I found the old modes in this commit: https://github.com/ignacio-rocco/cnngeometric_pytorch/commit/f15c6b0ded3ed1ffc638358a53e54d073a0194de


paper5 Are you generally acknowledged in the main text of the paper?

During the RSE Conference 2017 it came up that 'acknowledged' is perhaps a bit too vague. One option is to modify this question into "How are you generally acknowledged in scientific papers?"
With the possible answers:

authorship
acknowledged in the text and/or acknowledgements
through citations
not at all

Just a suggestion, I'm hoping to start a short discussion on the matter, what you do you think?

This makes sense to me, as long as we can use the responses to also find the equivalent to the UK survey response (by summing the first three).
I assume you are going to make this a single selection option?
If so, you might need to change the question to "How are you most often acknowledged in scientific papers?"

Or as a start you (@benvanwerkhoven) leave for this years survey as it is and for next year we do an international call to check the questions. We also found nice questions to add, but did not for this years survey in germany

@StephanJanosch Yes, I think that's a very good idea.

Fixed. all paper* questions are merged into paper2mod and are ONE CHOICE form now


Update request: NetworkManager 1.40.6 → 1.42.0

See https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.42.0/NEWS

Package name: NetworkManager
Latest released version: 1.42.0

Current version on the unstable channel: 1.40.6
Current version on the stable/release channel: 1.40.6

[x] Checked the nixpkgs pull requests

Notify maintainers

Note for maintainers: Please tag this issue in your PR.

https://github.com/NixOS/nixpkgs/pull/219688 (it missed staging-next 2023-03-04 so you need to wait for the next staging-next though)

Thanks, this landed in unstable, so closing this issue.


add --first flag (-f) to use the first device

Fixes #58
This PR adds a --first flag (-f shorthand) to the root command.
When this flag is set, the first Chromecast to be found while scanning will be used.
Regarding the implementation, I mostly took over my own code from https://github.com/oliverpool/go-chromecast/tree/master/discovery and adjusted it to implement the CastDNSEntry interface.
As-is, it should be a non-breaking change (since I didn't alter the exported code).

A further refactor could get rid of the CastDNSEntry interface, as it only uses the address of the Chromecast (which could be passed as a string to the application) - this is a breaking change, since application.Start is exported (but probably not used outside of this project).
What do you think?

I am using error wrapping features of go1.13: https://blog.golang.org/go1.13-errors should I get rid of it?

I am using error wrapping features of go1.13: https://blog.golang.org/go1.13-errors should I get rid of it?

No, this is fine. I will update CI to run with >go1.13. I'll make an issue to go through and change all errors to the new interface since it is more idomatic.

@oliverpool  You will need to rebase from master to get the ci changes which should make the tests pass.

Rebased!


Impl Deserializer and depythonize

I'm opening this issue because I have interest in using this library in a production setting.
I am currently working on implementing the Deserialize half of this library (and also formalizing the error handling), and I would like to prevent duplicate work.
If there are any questions, concerns, or suggestions on this, please feel free to start discussion here!

Hi @kykosic sounds great, thanks for your interest!
There's a bit of error-handling work already done in #2 - I'll push a finish-off to that PR and merge it this evening.
Other than that, I'm happy to take on and merge any ideas you have.

(#2 now merged)

Thanks @davidhewitt

I've gotten a large share of the initial work done for Depythonizer, and I have opened draft #4 to review design decisions as I finish it off this week. I've made some other changes to formalize the crate and would like feedback on them:

Split lib.rs into: ser.rs, de.rs, 'error.rs`. This organizes the code and matches the layout of all other serde crates.
Reworked the PythonizeError type to match the error patterns of other serde crates. This is still a work in progress as I finish up Depythonize and figure out what "message" errors need to become enum variants and translate to python exceptions.
Pinned the major version of this crate to the compatible pyo3 major version for consistency.

Things left to do (hopefully done by end of upcoming weekend):

Finish up few remaining bits of impl Deserialize for Depythonize
Test coverage
Documentation for error.rs and de.rs
Cleanup the use of PythonizeError::message everywhere into useful enum variants


Automated cherry pick of #11840: fix(region): not set baremetal is_maintenance when action is start

Cherry pick of #11840 on release/3.6.
#11840: fix(region): not set baremetal is_maintenance when action is start

/lgtm

/approve


Transmitter is None

Installed the plugin and tried hosting and connecting. When connecting my partner and I both received the following:
diff
[Dummy-5-123145310703616 17:29:26]  Made diffs: [(1, 'H')]
[Dummy-5-123145310703616 17:29:26]  Made patch: [(1, 'H')]
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 307, in on_modified_async
    callback.on_modified_async(v)
  File "remote in /Users/niall/Library/Application Support/Sublime Text 3/Installed Packages/RemoteCollab.sublime-package", line 23, in on_modified_async
  File "Session in /Users/niall/Library/Application Support/Sublime Text 3/Installed Packages/RemoteCollab.sublime-package", line 153, in send_diffs
AttributeError: 'NoneType' object has no attribute 'transmit'

It appears that somehow the Session's send_diffs command is getting called before the run command finishes. I'm not sure how possible that is.

Hmm, that definitely seems wrong.
This plugin hasn't been actively maintained for a while, but I may take a look at it.

Facing the same issue here :(

Any updates? Currently getting the same error


Autocomplete uses fully qualified class names for Vector types

Autocomplete always inserts fully qualified class names for Vector types, even if the type is imported. For example,
    var data:Vector.<MovieClip> = new Vector.<flash.display.MovieClip>();

To reproduce:

Start a new class file
import flash.display.MovieClip
In a function, type var data:Vector.<MovieClip> = new After you type "new", press space, and the autocomplete list appears.
Press Enter to confirm the default selection.

via #3017