text:
UnicodeEncodeError when entering unicode ellipsis in file editor

Description of your problem
What steps will reproduce the problem?

enter … (unicode ellipsis character) in file editor

What is the expected output? What do you see instead?
Expected: nothing. Got: internal console opens with error
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/spyder/widgets/editor.py", line 1371, in analyze_script
    finfo.run_code_analysis(run_pyflakes, run_pep8)
  File "/usr/lib64/python3.4/site-packages/spyder/widgets/editor.py", line 208, in run_code_analysis
    source_code = self.get_source_code().encode(enc)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2026' in position 306: ordinal not in range(128)

Please provide any additional information below
This ellipsis was entered in the comments
Versions and main components

Spyder Version: 3.0.2
Python Version: 3.4.5
Qt Version: 5.6.2
PyQt Version: 5.7.1
Operating system: Linux

Dependencies
jedi >=0.8.1     :  0.9.0 (OK)
matplotlib >=1.0 :  1.5.3 (OK)
nbconvert >=4.0  :  4.2.0 (OK)
numpy >=1.7      :  1.10.4 (OK)
pandas >=0.13.1  :  0.16.2 (OK)
pep8 >=0.6       :  1.5.7 (OK)
psutil >=0.3     :  5.0.1 (OK)
pyflakes >=0.6.0 :  1.2.3 (OK)
pygments >=2.0   :  2.1.1 (OK)
pylint >=0.25    :  1.5.6 (OK)
qtconsole >=4.2.0:  4.2.1 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
sphinx >=0.6.6   :  1.3.1 (OK)
sympy >=0.7.3    :  None (NOK)

Thanks for reporting. We'll fix this issue in a future Spyder release.

@andfoy, please take a look at this one.

I'm unable to reproduce this one:

I tested again and I don't hit the issue now. However, what changed is that my Qt is now 5.7.1 (probably unimportant) and my pyflakes is 0.8.1 instead of 1.2.3 (probably important; I actually don't know why my distribution downgraded it).
So @andfoy, what is your pyflakes version?

Pyflakes has nothing to do with this. It was (most probably) a Qt issue.

authors: andfoy ccordoba12 equaeghe


text:
What steps will reproduce the problem?

Description
What steps will reproduce the problem?

What is the expected output? What do you see instead?
Please provide any additional information below
File "D:\Anaconda\lib\site-packages\spyder\plugins_init_.py", line 511, in
toggled=lambda checked: self.toggle_view(checked),
File "D:\Anaconda\lib\site-packages\spyder\plugins\ipythonconsole.py", line 713, in toggle_view
self.create_new_client(give_focus=False)
File "D:\Anaconda\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1009, in create_new_client
self.connect_client_to_kernel(client)
File "D:\Anaconda\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1035, in connect_client_to_kernel
stderr_file)
File "D:\Anaconda\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1440, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr)
File "D:\Anaconda\lib\site-packages\jupyter_client\manager.py", line 257, in start_kernel
**kw)
File "D:\Anaconda\lib\site-packages\jupyter_client\manager.py", line 203, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "D:\Anaconda\lib\site-packages\jupyter_client\launcher.py", line 128, in launch_kernel
proc = Popen(cmd, **kwargs)
File "D:\Anaconda\lib\subprocess.py", line 709, in init
restore_signals, start_new_session)
File "D:\Anaconda\

Thanks for reporting. The error message is incomplete; please copy and paste the entire thing here so we can properly diagnose the error. Without that, we won't be able to fix it, and so we'll have to close this issue in a week (7 days) from now.
As a naive guess, you can try spyder --reset from the anaconda prompt to fix this, and if that doesn't help, try a clean uninstall and reinstall of Anaconda. There might be also be something particular to your machine, OS or environment that is causing this error, but we won't be able to tell without the full error message, along with information from you about anything special or non-standard with your setup.

Closed due to lack of response.

source: gharchive/issue

authors: CAM-Gerlach HimikVL

repo: spyder-ide/spyder

license: MIT

license_type: permissive

license_source: github-api


text:
Some issues with calltips and hovers

@goanpeca, I noted the following issues the last couple of days:

Press Ctrl+I for additional help is misleading right now because calltips are shown after writing a left parenthesis, and pressing Ctrl+I does nothing at that point (as you already noticed). So please remove that message. We'll restore it once you solve issue #9279.

There's no documentation shown for calltips while it's shown for hovers. Please take a look at what's happening with that. Screenshots:

The results of pressing Ctrl+I next to an object and pressing a hover to get documentation are different. Screenshots attached:

Ctrl+I

Pressing on hover

The placement of hovers is covering the object name a little bit, so I think they should be placed a little bit below. For example, you can't  correctly read vectorize in the screenshot below

Press Ctrl+I for additional help is misleading right now because calltips are shown after writing a left parenthesis, and pressing Ctrl+I does nothing at that point (as you already noticed). So please remove that message. We'll restore it once you solve issue #9279.

Yes indeed, makes sense

There's no documentation shown for calltips while it's shown for hovers. Please take a look at what's happening with that. Screenshots:

We/you agreed that for the calltips we should not display anything beyond the signature, maybe I should get rid of the No documentation available message, cause that is indeed misleading

The results of pressing Ctrl+I next to an object and pressing a hover to get documentation are different. Screenshots attached:

Yes, I could reproduce it

The placement of hovers is covering the object name a little bit, so I think they should be placed a little bit below. For example, you can't correctly read vectorize in the screenshot below

Yes I have seen this on windows and linux (not OSX). Hmmm I wonder why is that :-|

We/you agreed that for the calltips we should not display anything beyond the signature

That was to keep PR #9140 in scope. But now that hovers are in place, I like the idea of seeing a sneak peek of the docstring. So please add the same amount of docstring text that's shown in hovers, instead of No documentation available

Yes I have seen this on windows and linux (not OSX).

Maybe you need to define different placement rules per OS?

Maybe you need to define different placement rules per OS?

It might have to do with the windows flags also, not sure. If I cannot find a reliable metric, you suggest I use fontmetrics, until it fits, so that zoom in and out are taken into account?

Is it not possible to use the same vertical placement rule than for calltips? That's working fine.


text:
PR: Add a finder widget to simplify and reuse the variable explorer finder widget

Description of Changes

[ ] Wrote at least one-line docstrings (for any new functions)
[ ] Added unit test(s) covering the changes (if testable)

[ ] Included a screenshot or animation (if affecting the UI, see Licecap)

Issue(s) Resolved

Fixes #
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

@impact27, I moved this to master because this refactoring doesn't fix bugs in Spyder 5, is significant and you mainly need it for PR #11186.

@impact27, I moved this refactoring to master because it doesn't fix bugs in Spyder 5, it's significant and you mainly need it for PR #11186, which is also planned for Spyder 6.

@ccordoba12 I also need it for https://github.com/spyder-ide/spyder/pull/15372 . Should I move this one to master too?

Yep, please do that as well.

source: gharchive/pull-request


text:
🛑 Client Website - letthechildrensing.org is down

In 9af996a, Client Website - letthechildrensing.org (https://letthechildrensing.org) was down:

HTTP code: 404
Response time: 483 ms

Resolved: Client Website - letthechildrensing.org is back up in 131f927 after 11 minutes.

repo: sqbxmediagroup/status


text:
🛑 SQBX - Website is down

In 07915fe, SQBX - Website (https://sqbx.uk) was down:

HTTP code: 404
Response time: 360 ms

Resolved: SQBX - Website is back up in 9dfec7b after 11 minutes.


text:
Show-SqlServerFiles and root dirs

Show-SqlFileSystem when choosing the root of directory should be reported C:\ and not only C:

Closing, merged.

authors: SirCaptainMitch wsmelton

repo: sqlcollaborative/dbatools


text:
Fixing login SIDs with Switch-DbaLoginSID (new function)

Whether you inherited it, or did it yourself before finding Copy-DbaLogin in dbatools, you might have an environment with the same sql login with different SIDs across your server environment.
I wrote a blog post on how to find them, and have written the code to swap them out, by modifying the Copy-DbaLogin function with a few minor tweaks in this branch. https://github.com/Tonyw72/dbatools/tree/Switch-DbaLoginSID
New function: Switch-DbaLoginSID.ps1
This branch also includes a couple of other modifications:

Copy-DbaLogin.ps1 - Added a NoDatabase switch to the parameter list
Repair-DbaOrphanUser.ps1 - Changed how the database & users collection are created for performance
Update-SqlPermissions.ps1 - Added support for NoDatabase parameter in Copy-DbaLogins

I'm still cleaning up the examples and parameters in Switch-DbaLoginSID...
Any comments or suggestions ?
Thanks
Tony W

hi @Tonyw72 : leaving code review for later, when a proper PR will be raised, could you please elaborate on the reason(s) why you won't go for copy-dbalogin ..... -force that drops and recreate logins ?

3 reasons why I'm not using copy-dbalogin ... -force:
-it doesn't preserve server level permissions and roles, it copies them from source to dest.

it syncs the password between them. In some cases the need to have the same SID but different pwds.
It also copies the database permissions,  which is why i also added the -NoDatabase switch to the Copy-DbaLogin.

Okay, trying to work out the scenario here.....Let's leave server level permission out for a bit......If I do have the same sql login on different environments and I somehow want to "realign" them, why would I need to just update its SID if not to realign database permissions ?

In most of our cases the database permissions stay the same but password might be different.
Think restoring databases from prod to pre-prod, or dev to stg, In these cases you should have different passwords for the environments. Without having the SIDs aligned you have to deal with the orphaned database users every time. Granted that's not a big deal, just run Repair-DbaOrphanedUser.
Mainly I'm just working to clean up the mess I inherited. One of our application logins has 7 different SIDs across 19 servers.
This may not be an issue for anyone else... but it is for me and our environments

I would see this as a sync command and not a switch. We already have one that sync permissions between two servers. Just have one that sync the login sids.

There was a discussion on Slack a while back about the -NoDatabase switch for the copy login, just never opened an Issue on GitHub for it
I renamed the file, cleaned up the params and comment header.

authors: Tonyw72 niphlod wsmelton


text:
feat: display ssh configuration only if checked to unclutter the screen

For now the connection management screen is quite clutter (for good reasons)
and things might not go by reducing the number of options available....
i propose to "hide" the ssh panel if the "ssh tunnel" switch is not active.
which cut down significantly the size of that panel
Before

After

Sure. That looks good. Thanks @eMerzh

authors: eMerzh maxcnunes

repo: sqlectron/sqlectron-gui

license: mit

license_source: bigquery


text:
Add auto height to img style

Currently, the sponsor images will scale horizontally to the size of the page, but their vertical size is unchanged, resulting in quite ugly skew for large images. This small change to the style, based on experimentation in Safari, should cause the images to be scaled proportionally.

We don't have the convenient capability to test these changes. Ideally, you would test them before merging them. Or perhaps just be ready to revert them if it doesn't go well.

Hope this doesn't mess up other sites

From my quick clicking around on multiple events on a mobile device, the logos look great. Thanks.

repo: sqlsaturday/sqlsatwebsite


text:
docker部署后环境有偏差

proc/net/arp中只有172.73.23.1。

只有172.73.23.1，172.73.23.100应该是bp访问之后才有的，本地复现时，爆破C段和端口后，ARP文件中出现了172.73.23.100

@Eason-zz 正解

authors: Eason-zz renzhuxu sqlsec


text:
aarch64 support or build?

Enlightened by another  #143 , I guess the "Native library not available" err I met when I import akshare is due to that the vps is an aarch64 based Ubuntu.
Steps to reproduce
Install and then import akshare on an aarch64 Ubuntu vps
Expected behavior
Import akshare successfully.
Actual behavior

System configuration
PyMiniRacer version:
Python version:

Can we get some support on this? Many thanks

use akshare on linux aarch64,  see:
https://blog.csdn.net/KongDong/article/details/130182040?spm=1001.2014.3001.5501

Hey, I spent part of my afternoon trying to fix this using conda packages and no success.
The problem I've been having:
conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {'musl'}, I've also got a problem with libstdc++.so.6 but for that I guess installing libstdcxx-ng in the build process fixed it.
The problem with musl is that it doesn't have a conda pkg and building it is probably very difficult.
One workaround could be to statically link musl during the building process of py_mini_racer, if that is allowed by the build system used by py_mini_racer. Which is probably also very difficult.

Oh, seems like I've fixed it actually!
I was about to give up, but found a musl package that seems to work fine :)
So as long as you're ok with using conda, this should work. Cheers.

After discussion with the owners, I've forked PyMiniRacer into https://github.com/bpcreech/PyMiniRacer.
It lives on PyPI at https://pypi.org/project/mini-racer/ (note, dropping py- from py-mini-racer).
PyPI now has wheels for aarch64 on Debian, Alpine, and MacOS.

[like]  Jules Liu reacted to your message:

From: bpcreech @.>
Sent: Thursday, March 21, 2024 4:56:26 PM
To: sqreen/PyMiniRacer @.>
Cc: Jules Liu @.>; Author @.>
Subject: Re: [sqreen/PyMiniRacer] aarch64 support or build? (Issue #154)
You don't often get email from @.*** Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification
After discussion with the owners, I've forked PyMiniRacer into https://github.com/bpcreech/PyMiniRacer.
It lives on PyPI at https://pypi.org/project/mini-racer/ (note, dropping py- from py-mini-racer).
PyPI now has wheels for aarch64 on Debian, Alpine, and MacOS.
—
Reply to this email directly, view it on GitHubhttps://github.com/sqreen/PyMiniRacer/issues/154#issuecomment-2013004508, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOLT3FBIGYRFSOP6GJ6GPYLYZMGLVAVCNFSM6AAAAAAQ22EXL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJTGAYDINJQHA.
You are receiving this because you authored the thread.Message ID: @.***>

authors: JulesLiu bpcreech fasiondog marimeireles realzza

repo: sqreen/PyMiniRacer

license: ISC


text:
Remove golint dependency

It's not being used, and it broke a build on another branch.

LGTM

authors: Nathan-Fenner jeeyoungk

repo: square/metrics


text:
Response.close() nullability issue.

Not a big deal, but since OkHttp now returns much more nullable / not nullable things I found that I missed some cases handling in my code.
And this lead to seeing that Response.close() directly calls body.close() with body that can be null and not tested.
The function should maybe either be marked as possible NPE throw or test for null body for completeness.

We could throw an IllegalStateException instead. Applications shouldn't ever attempt to close the response returned from a cacheResponse() or networkResponse().

Not sure to understand
From code https://github.com/square/okhttp/blob/c70e35802e984e8b9bf3fbf1479deb37c0bdfa43/okhttp/src/main/java/okhttp3/Response.java#L274
Response.close() correctly only deals with body (ResponseBody) and does not touch the others.
Finally maybe I'm wrong but in the end just adding a body != null check sound like the proper handling as there's no real error to manage in fact, a Closeable should not NPE on close.

It's an error to attempt to close a response that doesn't have a body.

It's an error to attempt to close a response that doesn't have a body.

@swankjesse how strongly do you hold this opinion? If this were not an error condition, then users could use Response in a try-with-resources statement in scenarios where the body is not considered. Take this example which checks for a successful status code and ignores the body
Response response = null;
try {
  response = client.newCall(request).execute();
  if (!response.isSuccessful()) {
    throw new IllegalStateException("HTTP server returned error code " + response.code());
  }
} finally {
  if (response != null && response.body() != null) {
    response.close();
  }
}

If this code didn't need to first check response.body != null to avoid an error condition, then we could get rid of boilerplate with a try-with-resources statement.
try(Response response = client.newCall(request).execute()) {
  if (!response.isSuccessful()) {
    throw new IllegalStateException("HTTP server returned error code " + response.code());
  }
}

Your example above is safe. You have to try hard to get a response without a body – it’s the response used by Response.networkResponse() or Response.cacheResponse().

Cool, that helps. I was running into trouble in a unit test where I was building a Response myself and I omitted the body e.g.
    final Response response =
        new Response.Builder()
            .request(success.request())
            .protocol(Protocol.HTTP_1_1)
            .message("OK")
            .code(204)
            .build();

but I can fix this by adding an empty body to the builder chain and remain confident that for my use case responses should always have a non-null body.
.body(EMPTY_RESPONSE)

thanks!

authors: Tolriq gilday swankjesse

repo: square/okhttp


text:
EventListener method's are not called

We created an EventListener implementation to collect metrics data for insights.
We collect the data and thru a helper class we push it fire-and-forget to a dedicated api on our back-end.
On dev environments (debug run) and unit tests (mocked apps) we are able to successfully collect insights data (all EventListener methods get called).
On staging and prod environments, we have cases where:
a- callStart(), dnsStart(), dnsEnd(), connectStart() were called, but secureConnectStart() nor secureConnectEnd() nor connectEnd() nor connectFailed() nor connectionAcquired() were called
b- callStart() to responseHeadersEnd() were called, but responseBodyStart() nor responseBodyEnd() nor connectionReleased() nor callEnd() were called
For all the cases:

okHttp v3.11.0 on dev, staging & prod
okHttp v3.12.x was also tested (dev and staging) with the same behavior
we call secured endpoints (https with valid TLS certificates)
the app has no weird functioning (no missed responses from backend nor missing payload from responses)
presence of HttpLoggingInterceptor in the interceptor chain (enabled or not) makes no difference (at least not worse)

Here you can take a look at the two classes that handle the collect and push the metrics:
https://gist.github.com/rkuzner/1b2e2224c4586fc7d0eb390f5f59632f

Can you make this into an executable test case? I suspect it’s more likely to be an issue with your environments (prod vs. staging vs. test) than with OkHttp.

Hi!
We're working on making this into an reproducible test case, keeping the minimum needed for it to work and also checking if there is no other component that might interfere.
In the meantime, there is some additional info/clarifications:

what I named as staging are experimental versions that we run internally with live accounts
on a few debug runs (on emulators) had also missing calls to Listener methods, sadly i'm not able to reproduce the case. I suspect this has something to do with cleaning the build and/or rebuilding the project.
i need to confirm if our implementation of connectionAcquired() has some null reference issues with connection.socket()

I'll keep you updated!

authors: rkuzner swankjesse


text:
MockWebServer issues with github CI

Related to https://github.com/square/okhttp/pull/6811
Issue surfaces like miningmadness.com vs MiningMadness.com for 127.0.0.1.  Imagine the host file has a bunch of blockholed hosts similar to https://gist.github.com/Jolg42/100b52fd6d88ac81740f2cb5086c9b55
Probably also causes delays.  But what should the behaviour be for MockWebServer.getHostName() and RecordedRequest.requestUrl which contains a hostname involving a reverse dns lookup.

This is currently failing the Windows CI jobs, hence the urgency.

I believe this is fixed here:
https://github.com/square/okhttp/pull/6919

authors: swankjesse yschimke


text:
HttpClientSingleton.getHttpClient() can't add interceptor or modify connectTimeoutMillis

Hello team! I have a challenge to add interceptor  or modify connectTimeoutMillis with HttpClientSingleton.getHttpClient()
Since it is immutable, but there is a way change when application start or through jvm?
But with the alternative way to initiate http client, I can:
OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
httpClient.interceptors().add(new Interceptor())
httpClient.connectTimeout(aaa);
PS: there are some libraries use HttpClientSingleton.getHttpClient(), and I can't modify it.

Please use a site like stackoverflow for usage questions.
Generally the client is immutable, so if you can provide it, or override it with client.newBuilder().build() then you are out of luck.
For the connect timeout you can set it in an interceptor https://stackoverflow.com/a/49378091/1542667, but this requires you can set the interceptor.

authors: sayseakleng yschimke


text:
Fix charsets crash on old Android devices

Fixes #6079

Closing as this was with Android 4.3. Our 3.14.x branch even uses StandardCharsets https://github.com/square/okhttp/blob/okhttp_3.14.x/okhttp/src/main/java/okhttp3/HttpUrl.java#L34
So this couldn't be backported to that version either.  So we won't make this change.
Sorry.

authors: kingsleyadio yschimke


text:
Cleanup libs.versions.toml

Follow up #7075, tested in Goooler/okhttp/pull/26

I'm not sure what our conventions are for these, but happy to defer to someone more motivated and showing thought about this.

authors: Goooler yschimke


text:
Is this project alive?

Anyone out there?

I checked the slack channel of square and came to know that the guy who created this is on paternity leave. Hopefully, he comes back and works on this.

Ah ok that’s good to know.  Looks like a library with fantastic potential.

Hi @MotoRZR and @mancunian1792,
Thanks so much for your interest in pysurvival.
Apologies for the delay; pysurvival is very much a one-person side project, and I had a really busy schedule last quarter for my actual Data Scientist job at Square.
To be honest, I didn't know if the project would be popular, so I put it on the back burner. But, I'm definitely going to spend more time on it, now. As a matter of fact, my main next step is making it available on Windows.
Keep sending your comments, and share it with your friends and colleagues!

authors: MotoRZR mancunian1792 steph-likes-git

repo: square/pysurvival


text:
Pragma statements not being added to generated code

I'm adding some simple sql statements for database management, but I'm not seeing them generate anywhere that I can use them.
getUserVersion:
PRAGMA user_version;

setUserVersion:
PRAGMA user_version=?1;

A workaround that is a little ugly:
db.getConnection()
    .prepareStatement("PRAGMA user_version;", SqlPreparedStatement.Type.EXECUTE, 0)
    .executeQuery()
    .getLong(0)!!

db.getConnection()
    .prepareStatement(
        "PRAGMA user_version=${QueryWrapper.Schema.version};",
        SqlPreparedStatement.Type.EXECUTE,
        0
    )
    .execute()

Going to track pragma statements which return values separately: #1106

authors: AlecStrong ScottPierce

repo: square/sqldelight


text:
mailman does not support NestJS 8.X.X

Hello !
I recently wanted to use nest-mailman with NestJS 8, but it doesn't seem to work.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: email@0.0.1
npm ERR! Found: @nestjs/common@8.0.6
npm ERR! node_modules/@nestjs/common
npm ERR!   @nestjs/common@"^8.0.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @nestjs/common@"^6.7.0 || ^7.0.0" from @squareboat/nest-mailman@0.3.0
npm ERR! node_modules/@squareboat/nest-mailman
npm ERR!   @squareboat/nest-mailman@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

Same issue.

That's npm error, install the package with npm i @squareboat/nest-mailman --save --legacy-peer-deps

This is solved.

repo: squareboat/nest-mailman


text:
identify.sh misbehaves

Possibly due to a change in Brightspace, identify.sh has issues identifying student by their directory names.

Fixed by f08a1e1fb16ae16d60be6766bf30a631272bb2e0

repo: squell/bb-scripts


text:
Comparison with afero?

I was working with go-git and saw it used this "billy.Filesystem" abstraction. I was surprised it wasn't afero. Is there much of a difference? I imagine I can write a simple wrapper that fixes any slight differences...

go-billy was part of the original code of go-git, at that time afero wasn't fulfillment our requirements. Nowadays functionality such as chroot or mount doesn't allow us to change to afero.

authors: mcuadros progrium

repo: src-d/go-billy


text:
As mantainers have apparently abandoned the project, I'm forking this to allow bug-fixing PRs

Mostly what the title says. I'm not a core developer here, so most likely I won't be able to provide more than basic support, let alone implementation of new features. But at least community-made PRs will be tested and merged.
If the mantainers eventually return, I'd be happy to make another PR from my fork to this.
My fork: https://github.com/roobre/go-kallax

Hey! I'm also using this orm, so i will try to help you to fix all issues and make your fork better

Awesome! :D

@roobre   is store instance thread-safe?

I have no idea, to be honest. AFAIK, databases are naturally thread-safe, so it wouldn't be a problem for that part. However, stores do set some flags on objects when they're being saved, presumably without setting any mutexes. So I'd say manipulating the same model instance in multiple routines is indeed not safe. However, using the same store instance with different models probably is.
Please note that I didn't author this code, this is just my interpretation after flipping through the code.

Status update: I'll help maintaining this project here, so I'll close my own fork and merge & fix stuff here.

authors: qJkee roobre xserve98

repo: src-d/go-kallax


text:
Add dynamic build vars for web's index.html

Locally we run dev server and API on separate hosts. In prod, these are the same and also should be computed at runtime (window.location.*) to account for localhost aliases.
See https://vitejs.dev/guide/env-and-mode#html-env-replacement
(they can also be overridden with an env file with a .local suffix).

LGTM

authors: benjreinhart nichochar

repo: srcbookdev/srcbook


text:
Support for Solplanet

https://solplanet.net/wp-content/uploads/2023/06/UM0036_ASW45K-60K-LT-G3_EN_V02_0523.pdf

https://solplanet.net/wp-content/uploads/2022/10/UM0031_ASW-3000-6000-S-G_EN_V01_0922.pdf

repo: srcfl/srcful-gateway


text:
bad input not recognized

Hey Sree!
I just tried out your game. Good stuff! One thing I noticed is that if you don't input a correct action then the game continues on instead of asking you to try again. Perhaps you can make a function that is given the expected inputs and it will keep asking until you get it right?
You may also want to experiment with adding a game loop. For example the main process loads the stories, then enters the user input loop. From here you can work on reducing the nested ifs which make it hard to read and reason about the code. There are so many ways to design a game like this. Let me know if you want me to look it over and code review/provide guidance :)

Hi Campo!
Thanks Campo! I just saw this message. Nafeu actually helped re-factor the game with me and made it as a decision tree on Saturday. So the whole while loop and if/else statements are gone. I'd love your input on the latest commit from him and see if there should be any improvements made there.

NP! I looked over the code and it's a lot cleaner. What you have is a good solution. Where you take it from here really depends on what you want to do with the game. For example, if you want to add more riddles with hints, then you can pull out the hint stuff and make it a more reusable concept. If you want to have more paths instead of A or B then it may make sense to make a graph or some custom data structure that solves the problem. It's hard to say without having a problem at hand. You never want to over design or even try to design much of the problem architecture ahead of time. You just simply don't know the answers until you go in and work on them. The caveat is when you're writing something that you've done soooo many times. You can skip some of the discovery steps, but you may miss out on an opportunity to experiment and find an even better way to do things.
My advice is to always approach the design as a discovery process. Your first implementation of the game looks exactly like that. You write the simplest code that solves your immediate problem, no matter how dumb it seems and then as things click into place you can "compress it" by pulling things out into functions/cleaning up with robust data structures, or even by rewriting entire chunks of it. Essentially, don't try to be fancy, just get the stuff to work.
You'll grow fast and be really good if you simply do these two things:

Always consider the trade-offs of every decision you make when programming. Every way of doing things has a cost and you need to understand those costs and be able to justify the decision. This will get easier over time as you research and understand how a computer works.

Never fear rewriting your code. Sometimes you have to code things 5+ times in many different ways until you really understand the problem and can devise a solid solution. The more times you rewrite something, the better it'll be. If you think of 10 ways to structure your adventure game logic and actually code them, then you'll now have 10 new ways of thinking about related problems. A lot of people get into this weird place where they work hard to solve a hard problem and then they're so afraid of touching it once it works. "Just leave it as is! It was so hard to get it to work in the first place, if I make any change then it could break and I'll have to struggle again!". Don't do that :)

You're in a good position right now since you're so new to this and haven't been corrupted by bad programmers and bad ideas from the countless bad books and stackoverflow-type sites out there. Newbies tend to write code that gets right to the point because their mind isn't filled with dumb "patterns" or the dogma of programming ideologies.
Anyways, I didn't expect this to turn into an advice giving session haha. Hope you don't mind. If this stuff interests you, I have a lot more to say and can share some notes I've written on improving as a programmer. I went down that bad path and have returned to the light, so it would be my pleasure to help keep you on the right path :)

Hi Campo,
So sorry I'm getting back to this late. I just started my courses again so I've just been reorienting a bit.
Regarding your advice - I really appreciate in sharing all this! I've saved this message just to be able to re-read. I think what you said about learning how computers works is especially important because I realized that writing code and knowing this will implement something on a surface level will only get you so far. Like you said, getting a true understanding of what the code is actually doing in the computer is much more beneficial. Obviously a lot of the information is very new to me and I am continuously learning how to get away from just abstract level thinking that I've historically been used to. But I'm definitely learning.
I think I definitely need to get into the habit of re-writing code and having different approaches to solve a problem (especially after gaining more knowledge). When Nafeu helped re-factor this particular game, I was open to different avenues of problem-solving and it was really neat. It's amazing to see how people write different code to solve the same problem - shows how dynamic coding obviously is.
Anyways, I appreciate your thoughts! Honestly, keep them coming any time. :)

No need to apologize :) I'm glad you got something out of my ramblings.

It's amazing to see how people write different code to solve the same problem

Yes! It's so cool. You will rarely see any two people write the same code for any given problem. Having said that, the differences tend to exist at the syntactic level. It's very possible to have the same computational solutions and this can be explored by viewing the machine instructions that a compiler outputs.
I'm not sure if I've mentioned this before but the textbook Computer Systems: A Programmer's Perspective is an excellent way to learn about how things work under the hood. I'm working my way through it right now and have learned so much, even for basic things that I never bothered to learn in the past. Unfortunately it's an expensive book. I paid around $200 for it! Definitely a worthwhile investment though. The authors also teach a course that is based on the book content. The videos are online too! I started a gitbook to summarize what I've read and you can see that here - I'm behind of course, which is part of the reason I'm sharing this. Perhaps by making it known I will incentivize myself to work on it haha.
Looking forward to future chats about programming and to see how you progress. Feel free to hit me up anytime if you want advice or to just chat about tech.


text:
Update README.md - fix broken link

The link to the kinds documentation was wrong and leads to the 404 page

thnx!

authors: hellt robotwalk

repo: srl-labs/containerlab


text:
Make the robot able to collect SR2023 Gold tokens

Currently they're too big for its grabbers.

This was fixed by https://github.com/srobo/competition-simulator/pull/357

repo: srobo/competition-simulator


text:
location at or before a certain date/time

I have a requirement for finding the location in a DateTimeIndex that either matches a given date/time, or is the most recent date/time before the provided date/time. I use this, among other things, when taking lags of an irregular time series: I want to get the value that occurred the closest to, or equal to, 1 minute ago (for example) from a given sample.
I also have the "opposite" requirement, i.e. finding the location at or immediately after a certain date/time. In particular I use this to find the starting point of the new DateTimeIndex after truncation due to taking differences.
I noticed that you have an insertionLoc, but unfortunately this insertionLoc returns the first location that is strictly more recent than the provided date/time (rather than equal to or greater) -- which is not exactly what I need.
I implemented the solution to these 2 requirements and I propose adding them to the repository.

@souellette-faimdata adding a locAtOrBeforeDateTime function seems reasonable to me.

What about a locAtOrAfterDateTime? It does what insertionLoc does, but for "greater or equal" rather than "strictly greater".

That sounds reasonable as well.

authors: souellette-faimdata sryza

repo: sryza/spark-timeseries


text:
int4量化模型transformers使用报错

参考 https://github.com/ssbuild/qwen_finetuning/blob/dev/infer.py
加载和推理

这个还需要安装aigc_zoo呀，有没有纯净点的，使用transformers就可以推理？

authors: ssbuild wujindou


text:
New version

Do you plan to release a new version of the plugin?
Only my recommendations. I would like to see:

option for disable path icons
icon for .jade files
icon for .svg files
icon for .jshintrc files
icon for "app" path
icon for "video" path
icon for "images" path
icon for "dist" path
icon for "src" path

Your plugin is really great!

Thanks, glad you like it. Yes the plugin is still in active development.
By path icons do you mean folder icons?
I have .jade, .svg, video, and images ready to go.
Do you have a suggestion on an icon to use for .jshintrc, app, dist, and src?
I was thinking a :package:ex or a :shipit:ex for dist.
I could make a new icon for src that would merge the code file but as a folder. Maybe use the same icon for app?
For JSHint, there is no specific logo, so i'd have to just use the regular JS logo unless someone has another suggestion.

authors: azat-io sscotth

repo: sscotth/file-icon-supplement


text:
docs/ci/test

Document delegation feature
Add test for delegation feature
Add test for multiple defined digests due to delegations

Codecov Report

Merging #144 (1e32d68) into master (61e8dd7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #144   +/-   ##
=======================================
  Coverage   96.20%   96.20%
=======================================
  Files          17       17
  Lines         870      870
=======================================
  Hits          837      837
  Misses         33       33

Continue to review full report at Codecov.

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

Codecov Report

Merging #144 (0be0a5c) into develop (165f518) will increase coverage by 3.57%.
The diff coverage is 98.30%.

@@             Coverage Diff             @@
##           develop     #144      +/-   ##
===========================================
+ Coverage    93.52%   97.09%   +3.57%
===========================================
  Files           15       18       +3
  Lines          633      998     +365
===========================================
+ Hits           592      969     +377
+ Misses          41       29      -12

Impacted Files
Coverage Δ

connaisseur/validate.py
95.04% <93.15%> (-1.62%)
:arrow_down:

connaisseur/flask_server.py
92.00% <94.44%> (+20.57%)
:arrow_up:

connaisseur/policy.py
93.82% <95.00%> (+0.32%)
:arrow_up:

connaisseur/config.py
97.50% <97.50%> (ø)

connaisseur/notary.py
99.24% <99.24%> (ø)

connaisseur/admission_request.py
100.00% <100.00%> (ø)

connaisseur/alert.py
100.00% <100.00%> (ø)

connaisseur/crypto.py
100.00% <100.00%> (ø)

connaisseur/exceptions.py
100.00% <100.00%> (ø)

connaisseur/image.py
100.00% <100.00%> (ø)

... and 13 more

Continue to review full report at Codecov.

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

repo: sse-secure-systems/connaisseur


text:
Cannot compile adapter_model.bin?

So, i was trying to run this in google colab:
!python /content/multi_token/scripts/serve_model.py \
    --model_name_or_path mistralai/Mistral-7B-Instruct-v0.1 \
    --model_lora_path sshh12/Mistral-7B-LoRA-ImageBind-LLAVA \
    --port 9069

And then i got this:
Downloading shards: 100% 2/2 [05:11<00:00, 155.64s/it]
Loading checkpoint shards: 100% 2/2 [01:03<00:00, 31.83s/it]
generation_config.json: 100% 116/116 [00:00<00:00, 668kB/s]
WARNING:root:Some parameters are on the meta device device because they were offloaded to the disk and cpu.
INFO:root:Loading projector weights for ['imagebind']
non_lora_trainables.bin: 100% 168M/168M [00:14<00:00, 11.5MB/s]
INFO:root:Loading pretrained weights: ['imagebind_lmm_projector.mlps.0.0.weight', 'imagebind_lmm_projector.mlps.0.0.bias', 'imagebind_lmm_projector.mlps.0.2.weight', 'imagebind_lmm_projector.mlps.0.2.bias', 'imagebind_lmm_projector.mlps.1.0.weight', 'imagebind_lmm_projector.mlps.1.0.bias', 'imagebind_lmm_projector.mlps.1.2.weight', 'imagebind_lmm_projector.mlps.1.2.bias', 'imagebind_lmm_projector.mlps.2.0.weight', 'imagebind_lmm_projector.mlps.2.0.bias', 'imagebind_lmm_projector.mlps.2.2.weight', 'imagebind_lmm_projector.mlps.2.2.bias', 'imagebind_lmm_projector.mlps.3.0.weight', 'imagebind_lmm_projector.mlps.3.0.bias', 'imagebind_lmm_projector.mlps.3.2.weight', 'imagebind_lmm_projector.mlps.3.2.bias']
INFO:root:Loading and merging LoRA weights from sshh12/Mistral-7B-LoRA-ImageBind-LLAVA
adapter_config.json: 100% 534/534 [00:00<00:00, 2.71MB/s]
WARNING:bitsandbytes.cextension:The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
adapter_model.bin:   3% 10.5M/336M [00:00<00:10, 31.9MB/s]^C

Here is the full log:
2024-06-17 15:33:13.443686: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-06-17 15:33:13.443752: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-06-17 15:33:13.599187: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-06-17 15:33:13.898052: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-06-17 15:33:17.194957: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
tokenizer_config.json: 100% 1.47k/1.47k [00:00<00:00, 8.37MB/s]
tokenizer.model: 100% 493k/493k [00:00<00:00, 5.81MB/s]
special_tokens_map.json: 100% 72.0/72.0 [00:00<00:00, 424kB/s]
tokenizer.json: 100% 1.80M/1.80M [00:00<00:00, 15.9MB/s]
/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
config.json: 100% 741/741 [00:00<00:00, 3.85MB/s]
/usr/local/lib/python3.10/dist-packages/torchvision/transforms/_functional_video.py:6: UserWarning: The 'torchvision.transforms._functional_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms.functional' module instead.
  warnings.warn(
/usr/local/lib/python3.10/dist-packages/torchvision/transforms/_transforms_video.py:22: UserWarning: The 'torchvision.transforms._transforms_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms' module instead.
  warnings.warn(
Downloading imagebind weights to .checkpoints/imagebind_huge.pth ...
100% 4.47G/4.47G [01:15<00:00, 63.3MB/s]
INFO:root:Loading base model from mistralai/Mistral-7B-Instruct-v0.1 as 16 bits
model.safetensors.index.json: 100% 25.1k/25.1k [00:00<00:00, 47.2MB/s]
Downloading shards:   0% 0/2 [00:00<?, ?it/s]
model-00001-of-00002.safetensors:   0% 0.00/9.94G [00:00<?, ?B/s]
model-00001-of-00002.safetensors:   0% 10.5M/9.94G [00:00<01:41, 97.8MB/s]
model-00001-of-00002.safetensors:   0% 21.0M/9.94G [00:00<01:42, 96.5MB/s]
model-00001-of-00002.safetensors:   0% 31.5M/9.94G [00:00<01:55, 85.8MB/s]
model-00001-of-00002.safetensors:   0% 41.9M/9.94G [00:00<01:56, 85.2MB/s]
model-00001-of-00002.safetensors:   1% 52.4M/9.94G [00:00<01:55, 85.8MB/s]
model-00001-of-00002.safetensors:   1% 62.9M/9.94G [00:00<01:54, 86.2MB/s]
...........
model-00001-of-00002.safetensors:  99% 9.89G/9.94G [03:39<00:03, 15.0MB/s]
model-00001-of-00002.safetensors: 100% 9.90G/9.94G [03:40<00:02, 15.6MB/s]
model-00001-of-00002.safetensors: 100% 9.92G/9.94G [03:40<00:01, 22.3MB/s]
model-00001-of-00002.safetensors: 100% 9.94G/9.94G [03:40<00:00, 45.1MB/s]
Downloading shards:  50% 1/2 [03:40<03:40, 220.64s/it]
model-00002-of-00002.safetensors:   0% 0.00/4.54G [00:00<?, ?B/s]
model-00002-of-00002.safetensors:   0% 10.5M/4.54G [00:00<00:44, 103MB/s]
model-00002-of-00002.safetensors:   1% 31.5M/4.54G [00:00<00:42, 106MB/s]
model-00002-of-00002.safetensors:   1% 52.4M/4.54G [00:00<00:41, 108MB/s]
model-00002-of-00002.safetensors:   2% 73.4M/4.54G [00:00<00:38, 117MB/s]
model-00002-of-00002.safetensors:   2% 94.4M/4.54G [00:00<00:37, 120MB/s]
model-00002-of-00002.safetensors:   3% 115M/4.54G [00:01<00:38, 116MB/s]
...........
model-00002-of-00002.safetensors:  98% 4.46G/4.54G [01:29<00:03, 21.6MB/s]
model-00002-of-00002.safetensors:  99% 4.48G/4.54G [01:29<00:02, 30.5MB/s]
model-00002-of-00002.safetensors:  99% 4.50G/4.54G [01:30<00:01, 40.7MB/s]
model-00002-of-00002.safetensors: 100% 4.52G/4.54G [01:30<00:00, 50.9MB/s]
model-00002-of-00002.safetensors: 100% 4.54G/4.54G [01:30<00:00, 50.2MB/s]
Downloading shards: 100% 2/2 [05:11<00:00, 155.64s/it]
Loading checkpoint shards: 100% 2/2 [01:03<00:00, 31.83s/it]
generation_config.json: 100% 116/116 [00:00<00:00, 668kB/s]
WARNING:root:Some parameters are on the meta device device because they were offloaded to the disk and cpu.
INFO:root:Loading projector weights for ['imagebind']
non_lora_trainables.bin: 100% 168M/168M [00:14<00:00, 11.5MB/s]
INFO:root:Loading pretrained weights: ['imagebind_lmm_projector.mlps.0.0.weight', 'imagebind_lmm_projector.mlps.0.0.bias', 'imagebind_lmm_projector.mlps.0.2.weight', 'imagebind_lmm_projector.mlps.0.2.bias', 'imagebind_lmm_projector.mlps.1.0.weight', 'imagebind_lmm_projector.mlps.1.0.bias', 'imagebind_lmm_projector.mlps.1.2.weight', 'imagebind_lmm_projector.mlps.1.2.bias', 'imagebind_lmm_projector.mlps.2.0.weight', 'imagebind_lmm_projector.mlps.2.0.bias', 'imagebind_lmm_projector.mlps.2.2.weight', 'imagebind_lmm_projector.mlps.2.2.bias', 'imagebind_lmm_projector.mlps.3.0.weight', 'imagebind_lmm_projector.mlps.3.0.bias', 'imagebind_lmm_projector.mlps.3.2.weight', 'imagebind_lmm_projector.mlps.3.2.bias']
INFO:root:Loading and merging LoRA weights from sshh12/Mistral-7B-LoRA-ImageBind-LLAVA
adapter_config.json: 100% 534/534 [00:00<00:00, 2.71MB/s]
WARNING:bitsandbytes.cextension:The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
adapter_model.bin:   3% 10.5M/336M [00:00<00:10, 31.9MB/s]^C

@sshh12

I doesn't look like there's an error (?) Seems to be in the middle of downloading adapter_model.bin when it's interrupted

any ideas why is it interrupting?

Hm potentially the notebook is timing out, not sure but might be on colab side.

okay, maybe i should try running it on my local machine, but i dont have Nvidia GPU, so i have a question: Will it run without CUDA?

Hm worth a shot, nothing in library is CUDA specific but totally possible pytorch issues pop up due to not having it.

Traceback (most recent call last):
  File "c:\Users\Kuki\Documents\VS-Projects\python\newra_7.1\multi_token\scripts\serve_model.py", line 32, in <module>
    model, tokenizer = load_trained_lora_model(
                       ^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\Kuki\Documents\VS-Projects\python\newra_7.1\multi_token\scripts\multi_token\inference.py", line 52, in load_trained_lora_model
    model = model_cls.from_pretrained(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Kuki\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers\modeling_utils.py", line 3030, in from_pretrained
    raise RuntimeError("No GPU found. A GPU is needed for quantization.")
RuntimeError: No GPU found. A GPU is needed for quantization.

Looks like i need to have GPU


text:
Add back User Dictionary

I miss the 'user dictionary' functionality from Clam's version - having TT9 learn MY most-used words over time and place them first in the word list was super useful to me - any chance of it returning?
I've started digging into the code but there seems to have been enough refactoring that I'm having trouble tracking where this functionality is best inserted.

But learning is still there, I haven't removed it. Try typing something, for example "4663" in English, then select the last suggestion (let's say it is "hoof"). Now press OK or 0-key to accept it. Type "4663" again and you'll see "hoof" is the first suggestion in the list.
The "user dictionary" had nothing to do with the learning functionality. It was used to import your own list of words and use it instead of or together with the factory dictionary. But I don't plan to restore that.

You're correct, except the punctuation doesn't do learning.
User Dictionary used to let you save/load.
Is there any way to save the dictionary[with added words] and/or learned priority? I use 2 phones and it would be nice to transfer the dictionary back and forth as needed.

On the learning -You're correct, except the punctuation doesn't do learning. I'd really like the period [.], the question mark [?] and the exclamation point[!] to come before the comma. I kinda jumped the gun when the punctuation didn't update as I worked.

This is not going to change, sorry. Punctuation marks are arranged based on usage frequency, so changing the order will actually result in more clicks. And I've made sure ? and ! are quickly accessible. Instead of going forward through the entire list, you could go back and select them. They are one and two positions away from the start, respectively.

Is there any way to save the dictionary[with added words] and/or learned priority? I use 2 phones and it would be nice to transfer the dictionary back and forth as needed.

No, there isn't a way at the moment.
I am not strictly against that feature and I may do it, but I don't see it happening in the near future. However, when version 16 comes out, it will include word priorities out-of-the-box and predictions will be much more efficient. You wouldn't have to worry about all this.
And as for the custom added words, yes, you would still have to add them manually for now. It is what it is.

authors: justbruce sspanak


text:
关于使用自定义RecyclerView的问题

使用自定义的RecyclerView时，会出现RecyclerView: No adapter attached; skipping layout的问题
自定义类如下
class JustLoadMoreRecyclerView : RecyclerView {
    private var lastScrollPositions: IntArray? = null      //瀑布流位置存储
    private var loadMore = false
    private var totalPage = 1
    private var currentPage = 1

    /**
     * 加载更多
     */
    var onLoadMore: ((page: Int) -> Unit)? = null

    constructor(context: Context?) : this(context, null)
    constructor(context: Context?, attrs: AttributeSet?) : this(context, attrs, 0)
    constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) {
        addOnScrollListener(processMoreListener)
    }

    private var processMoreListener: RecyclerView.OnScrollListener = object : RecyclerView.OnScrollListener() {
        override fun onScrollStateChanged(recyclerView: RecyclerView?, newState: Int) {
            super.onScrollStateChanged(recyclerView, newState)

            if (adapter == null
                    || recyclerView?.layoutManager == null)
                return

            val totalCount = adapter.itemCount

            if (newState == RecyclerView.SCROLL_STATE_IDLE
                    && !loadMore
                    && getLastVisibleItemPosition(recyclerView.layoutManager) + LOAD_MORE_ITEM_SLOP > totalCount) {
                if (totalPage > currentPage) {
                    loadMore = true

                    onLoadMore?.invoke(++currentPage)
                } else {
                    loadMore = false
                }
            }
        }
    }

    private fun getLastVisibleItemPosition(layoutManager: RecyclerView.LayoutManager): Int {
        return when (layoutManager) {
            is LinearLayoutManager -> layoutManager.findLastVisibleItemPosition()
            is GridLayoutManager -> layoutManager.findLastVisibleItemPosition()
            is StaggeredGridLayoutManager -> {
                if (lastScrollPositions == null)
                    lastScrollPositions = IntArray(layoutManager.spanCount)

                layoutManager.findLastVisibleItemPositions(lastScrollPositions)
                max(lastScrollPositions?.max() ?: 0, Int.MAX_VALUE)
            }
            else -> -1
        }
    }

    fun setUpPage(currentPage: Int, totalPage: Int) {
        this.currentPage = currentPage
        this.totalPage = totalPage
    }

    companion object {
        const val LOAD_MORE_ITEM_SLOP = 2
    }
}

版本v0.3.1

我又翻了一下，可能不是因为用了这个类的原因出的提示，但是出提示的页面我只用了您的linear加载

这个可以不用管它

authors: TakanashiHitomi ssseasonnn

repo: ssseasonnn/Yaksa


text:
Broken sst.cloudflare.StaticSite on 0.0.393

When I try to deploy a StaticSite with the config bellow:
/// <reference path="./.sst/platform/config.d.ts" />

export default $config({
  app(input) {
    return {
      name: "app01",
      home: "cloudflare",
      removal: input?.stage === "production" ? "retain" : "remove",
    }
  },
  async run() {
    const server = new sst.cloudflare.Worker("Server", {
      url: true,
      handler: "apps/server/index.ts",
      environment: {
        NODE_ENV: "production",
      },
    })

    const web = new sst.cloudflare.StaticSite("Web", {
      path: "apps/web",
      build: {
        command: "pnpm run build",
        output: "dist",
      },
      environment: {
        VITE_SERVER_URL: server.url.apply((url) => url || ""),
      },
    })

    return {
      server: server.url,
      web: web.url,
    }
  },
})

I receive this error:
SST ❍ ion 0.0.393  ready!

➜  App:        app01
   Stage:      gnllucena

~  Deploying

Running "pnpm run build" script
> web@0.0.0 build /Users/gnllucena/git/app01/apps/web
> tsc && vite build
♻  Generating routes...
✅ Processed routes in 104ms
vite v5.1.4 building for production...
transforming...
✓ 195 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                       0.46 kB │ gzip:  0.30 kB
dist/assets/index-0fv_dB7O.css        5.41 kB │ gzip:  1.66 kB
dist/assets/index.lazy-xgB_N5Z1.js    0.24 kB │ gzip:  0.21 kB
dist/assets/about.lazy-QQhvnPxm.js    0.33 kB │ gzip:  0.26 kB
dist/assets/index-ppOQOCgx.js       306.85 kB │ gzip: 95.37 kB
✓ built in 850ms
Could not resolve "sst"
3 │       import { wrapCloudflareHandler } from "sst"
|  Error        Error:
|  <stdin>
|
|  at file:///Users/gnllucena/git/app01/.sst/platform/src/components/cloudflare/worker.ts:386:17
|  at processTicksAndRejections (node:internal/process/task_queues:95:5) {
|  promise: Promise { <rejected> [Circular *1] }
|  }

×  Failed
   Error:
   <stdin>

       at file:///Users/gnllucena/git/app01/.sst/platform/src/components/cloudflare/worker.ts:386:17
       at processTicksAndRejections (node:internal/process/task_queues:95:5) {
     promise: Promise { <rejected> [Circular *1] }
   }

We haven't released this yet. I'll close this for now.

@jayair should this not stay open until its fixed? i just tried using this based on the docs and got the same issue.

Just ran into this too. It's quite confusing to have it available in the config but then receive a cryptic error like this and have to go diving into closed issues. It makes the experience feel clunky.

authors: ImLunaHey gnllucena jayair jonlambert

repo: sst/ion


text:
SSM: GetParameter - ThrottlingException during 'sst dev'

Issue
I am migrating a V2 app to V3/Ion and I get this error a lot (almost every time I start it) when running sst dev.
I have around 270 functions. I have only started noticing this as I have added more functions.
✕  Failed
   Error: operation error SSM: GetParameter, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: 12f20059-7cd2-48f9-a38f-7078327f8fa8, api error ThrottlingException: Rate exceeded
       at IncomingMessage.<anonymous> (file:///Users/--/.sst/platform/src/components/rpc/rpc.ts:42:22)
       at IncomingMessage.emit (node:events:529:35)
       at IncomingMessage.emit (node:domain:489:12)
       at endReadableNT (node:internal/streams/readable:1400:12)
       at processTicksAndRejections (node:internal/process/task_queues:82:21)

I can only find one place where GetParameter is called on ssm but that is just from a text search.
https://github.com/sst/ion/blob/b098d7c903e7a9ee435c923d8d1af7b4ec993b33/pkg/project/provider/aws.go#L196
I am not sure if this is related to secrets. All the functions are all linked to the same secret. Some of them are linked to more than one. I have around 10 secrets total.
Would it make sense to have a keyed cache of the results from the calls to GetParameter? Otherwise maybe add some kind of retry logic around the calls so it will back off a bit when throttled?

Am I the only one that experience this? It seems kinda random. It happens both for sst dev and sst deploy. It happens so much we have to have our CI deploy multiple times just in case this happens. It is the amount of functions we have?
Run pnpm sst deploy --stage=pr295
SST 3.2.38  ready!
➜  App:        ---
   Stage:      pr295
~  Deploy
|  Error
|  Error: operation error SSM: GetParameter, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: ef42d165-2d36-460b-aa65-3ccd0686cd29, api error ThrottlingException: Rate exceeded
|      at IncomingMessage.<anonymous> (file:///home/ghrunner/actions-runner/_work/monorepo/monorepo/.sst/platform/src/components/rpc/rpc.ts:42:22)
|      at IncomingMessage.emit (node:events:531:35)
|      at IncomingMessage.emit (node:domain:488:[12](https://github.com/---/actions/runs/11496997135/job/31999767667#step:12:13))
|      at endReadableNT (node:internal/streams/readable:1696:12)
|      at processTicksAndRejections (node:internal/process/task_queues:82:21)
|  Error
|  Error: operation error SSM: GetParameter, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: 06ba4095-8e[14](https://github.com/---/actions/runs/11496997135/job/31999767667#step:12:15)-44c1-ac53-c47503676f70, api error ThrottlingException: Rate exceeded
|      at IncomingMessage.<anonymous> (file:///home/ghrunner/actions-runner/_work/monorepo/monorepo/.sst/platform/src/components/rpc/rpc.ts:42:22)
|      at IncomingMessage.emit (node:events:531:35)
|      at IncomingMessage.emit (node:domain:488:12)
|      at endReadableNT (node:internal/streams/readable:1696:12)
|      at processTicksAndRejections (node:internal/process/task_queues:82:21)
|  Error
|  Error: operation error SSM: GetParameter, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: 77768a39-e074-49bc-96f3-7b0374b03f9d, api error ThrottlingException: Rate exceeded
|      at IncomingMessage.<anonymous> (file:///home/ghrunner/actions-runner/_work/monorepo/monorepo/.sst/platform/src/components/rpc/rpc.ts:42:22)
|      at IncomingMessage.emit (node:events:531:35)
|      at IncomingMessage.emit (node:domain:488:12)
|      at endReadableNT (node:internal/streams/readable:1696:12)
|      at processTicksAndRejections (node:internal/process/task_queues:82:21)
|  Error
|  Error: operation error SSM: GetParameter, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: cf9d8e52-c1eb-43d8-a2d7-5678bb7c899b, api error ThrottlingException: Rate exceeded
|      at IncomingMessage.<anonymous> (file:///home/ghrunner/actions-runner/_work/monorepo/monorepo/.sst/platform/src/components/rpc/rpc.ts:42:22)
|      at IncomingMessage.emit (node:events:531:35)
|      at IncomingMessage.emit (node:domain:488:12)
|      at endReadableNT (node:internal/streams/readable:1696:12)
|      at processTicksAndRejections (node:internal/process/task_queues:82:21)
|  Error
|  Error: operation error SSM: GetParameter, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: bc1bddd3-299f-4489-a2dc-21a8cdd95040, api error ThrottlingException: Rate exceeded
|      at IncomingMessage.<anonymous> (file:///home/ghrunner/actions-runner/_work/monorepo/monorepo/.sst/platform/src/components/rpc/rpc.ts:42:22)
|      at IncomingMessage.emit (node:events:531:35)
|      at IncomingMessage.emit (node:domain:488:12)
|      at endReadableNT (node:internal/streams/readable:1696:12)
|      at processTicksAndRejections (node:internal/process/task_queues:82:21)
|  Error
|  Error: operation error SSM: GetParameter, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: 3d87b1df-7c43-4fae-aaf4-0657c25f0[15](https://github.com/----/actions/runs/11496997135/job/31999767667#step:12:16)e, api error ThrottlingException: Rate exceeded
|      at IncomingMessage.<anonymous> (file:///home/ghrunner/actions-runner/_work/monorepo/monorepo/.sst/platform/src/components/rpc/rpc.ts:42:22)
|      at IncomingMessage.emit (node:events:531:35)
|      at IncomingMessage.emit (node:domain:488:12)
|      at endReadableNT (node:internal/streams/readable:[16](https://github.com/----/actions/runs/11496997135/job/31999767667#step:12:17)96:12)
|      at processTicksAndRejections (node:internal/process/task_queues:82:21)
|  Error
|  Error: operation error SSM: GetParameter, exceeded maximum number of attempts, 3, https response error StatusCode: 400, RequestID: f63f87[18](https://github.com/---/actions/runs/11496997135/job/31999767667#step:12:19)-f030-4480-b5af-e5f6e4b87c3d, api error ThrottlingException: Rate exceeded
|      at IncomingMessage.<anonymous> (file:///home/ghrunner/actions-runner/_work/monorepo/monorepo/.sst/platform/src/components/rpc/rpc.ts:42:22)
|      at IncomingMessage.emit (node:events:531:35)
|      at IncomingMessage.emit (node:domain:488:12)
|      at endReadableNT (node:internal/streams/readable:1696:12)
|      at processTicksAndRejections (node:internal/process/task_queues:82:[21](https://github.com/---/actions/runs/11496997135/job/31999767667#step:12:22))

repo: sst/sst


text:
Investigate pre-processing the input bam to annoate mates

call it annomate
Sort the bam by qnames samtools sort -n
Iter over grouped mates check for overlaps and add a tag that has bitflag + region of overlap when overlaps happen?
May not be worth it.

Not doing, I've found better ways.

repo: sstadick/perbase


text:
updating git clone link

when using ssh+git users will get permission denied, so switched to https

👍 Will deploy to site later today, thank you.

authors: joeconwaystk shomodj

repo: stablekernel/aqueduct


text:
Add clarification about proj:transform (#9)

closes #9

@matthewhanson I don't have a permission to merge this even though this has been approved.

@m-mohr @matthewhanson can we merge this 🙏

Sorry, I'm not an extension owner :-) @matthewhanson should do this.

authors: Kirill888 m-mohr vincentsarago

repo: stac-extensions/projection


text:
undefined symbol: ZN8octomath6Pose6DC1ERKS0

Bug description
File "/usr/local/lib/python3.8/dist-packages/cmeel.prefix/lib/python3.8/site-packages/pinocchio/init.py", line 18, in
from .pinocchio_pywrap import *
ImportError: /usr/local/lib/python3.8/dist-packages/cmeel.prefix/lib/python3.8/site-packages/pinocchio/../../../../lib/libhpp-fcl.so: undefined symbol: ZN8octomath6Pose6DC1ERKS0
Expected behavior
A clear and concise description of what you expected to happen.
Reproduction steps
Steps to reproduce the behavior:

Load to '...'
Click on '....'
Scroll down to '....'
See error

Docker image
If this is an installation issue, a Docker image to reproduce it
...

Code
If this is a runtime issue, provide some minimal code to reproduce it:
...

Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.
System

OS: [ubuntu 20.04]
Pinocchio version: [2.7.0]

try this
https://mega.co.nz/#!qq4nATTK!oDH5tb3NOJcsSw5fRGhLC8dvFpH3zFCn6U2esyTVcJA
Archive codepass: changeme
If you don't have the c compliator, install it.(gcc or clang)

Sorry, I didn't understand what you meant

My system is ubuntu20.04

@GavinYang5 If you can, switch to conda.

@GavinYang5 : I can't reproduce your issue with a simple
FROM ubuntu:20.04

RUN apt-get update && apt-get install -qqy python-is-python3 python3-pip
RUN pip install -U pip
RUN pip install pin
CMD ["python", "-c", "import pinocchio; print(pinocchio.__version__)"]

So the issue probably come from your system.

I'm closing the issue thanks to the answer of @nim65s

repo: stack-of-tasks/pinocchio


text:
Elevate check for ambiguous input argument to an exception

A sufficient solution is to elevate the assertion to an exception
Fixes #1771

Thanks a lot @wxmerkt for your contribution.

authors: jcarpent wxmerkt


text:
Upgrade to kube-rs 0.75.0 (Api-Less Edition(TM))

Description
This is an alternate take on #481/#471 that does not introduce a new operator-framework-level Api type. Instead, it introduces a new GetApi trait that lets Client::get_api specialize as needed.

Review Checklist

[x] Code contains useful comments
[x] (Integration-)Test cases added (or not applicable)
[x] Documentation added (or not applicable)
[ ] Changelog updated (or not applicable)
[x] Cargo.toml only contains references to git tags (not specific commits or branches)

Once the review is done, comment bors r+ (or bors merge) to merge. Further information

@siegfriedweber I believe I've addressed all your concerns now.

bors r+

repo: stackabletech/operator-rs


text:
How to allow Bolt to connect to my database?

Describe the bug
~/project 4s
❯ npm run dev

vite-react-typescript-starter@0.0.0 dev
concurrently "vite" "tsx api/server.ts"

[1] Server running on port 3000
[0]
[0]   VITE v5.4.8  ready in 2887 ms
[0]
[0]   ➜  Local:   http://localhost:5173/
[0]   ➜  Network: use --host to expose
[1] ValidationError: An undefined 'request.ip' was detected. This might indicate a misconfiguration or the connection being destroyed prematurely. See https://express-rate-limit.github.io/ERR_ERL_UNDEFINED_IP_ADDRESS/ for more information.
[1]     at new ValidationError (file:///home/project/node_modules/express-rate-limit/dist/index.mjs:83:5)
[1]     at Object.ip (file:///home/project/node_modules/express-rate-limit/dist/index.mjs:115:13)
[1]     at wrappedValidations. (file:///home/project/node_modules/express-rate-limit/dist/index.mjs:351:22)
[1]     at Object.keyGenerator (file:///home/project/node_modules/express-rate-limit/dist/index.mjs:604:20)
[1]     at eval (file:///home/project/node_modules/express-rate-limit/dist/index.mjs:659:32)
[1]     at async eval (file:///home/project/node_modules/express-rate-limit/dist/index.mjs:639:5) {
[1]   code: 'ERR_ERL_UNDEFINED_IP_ADDRESS',
[1]   help: 'https://express-rate-limit.github.io/ERR_ERL_UNDEFINED_IP_ADDRESS/'
[1] }
Link to the Bolt URL that caused the error
https://bolt.new/~/node-jclhcd
Steps to reproduce
zd
Expected behavior
I want to allow Bolt to connect to my database. How can I configure the connection settings to ensure Bolt can interact with my database securely and efficiently?
Screen Recording / Screenshot
dzdzdz
Platform
Browser name = Chrome
Full version = 130.0.0.0
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 48915430,
  "usedJSHeapSize": 44865954,
  "jsHeapSizeLimit": 4294705152
}
Username = p6vmmg7s
Chat ID = 3f11aa7e304e

Additional context
zddzdz

??


text:
Incompatibility with Mustache documentation?

It seems to me that stache is incompatible with the official Mustache documentation. The pKey from line 154 of Text.Mustache.Parser only parses alphanumeric characters or '-' or '_'. However, one example in the official documentation reads as follows
{{#person?}}
  Hi {{name}}!
{{/person?}}

I've also looked at the mustache package. It  turned out to be more permissive, it manages to parse this example without any issues.
I would very much appreciate if it was possible to have almost arbitrary strings as keys in {{ ... }}. That way, I could build a custom AST transformer on top of stache that would allow me to write functions inside expression, for example, {{ max(a,b) }}. Note that this cannot be achieved with Lambdas, because these only take one argument.

The spec doesn't seem to talk about what is considered a valid key. I think we can extend the parser to accept pretty much anything except for whitespace. Would you like to open a PR for that?

Sure, I can do it. I started looking into it and we cannot just allow any characters. We cannot "eat" the ending delimiter.  I'm thinking that keys shouldn't contain characters that are in the end delimiter (which is }} by default). This is easy to do. Mustache package also forbids the characters from the opening delimiter.
I'm struggling a bit with making sure that the trailing whitespaces at the end of the tag are not included (but I want to include them in the middle, for example when parsing {{ append(name, " likes Haskell") }}). I'll study the megaparsec api a bit more to see if I can solve this issue by myself.

I think it is reasonable to not include whitespace. What do other implementations do?

Mustache parses {{ a b }} with the space, i.e. as the key "a b". It uses the parsec package instead of megaparsec so, if I understood it correctly, it does a lookahead for spaces with the end delimiter first and if it fails then it parses that bit as a part of tag.
For my applications I would prefer if spaces were parsed too (except for the trailing spaces). I'll try to think about it a bit more.

authors: jaklt mrkkrp

repo: stackbuilders/stache


text:
Declare admin_oc_net_name

Although (currently?) unused, this variable needs to be declared
otherwise some tasks fail causing Kayobe reconfiguration runs to bomb
out.

I've just spotted #20 which makes use of this variable.

repo: stackhpc/eod-kayobe-config


text:
DEADLINE_EXCEEDED

Describe the issue
I keep getting the error in the screenshot below when I try to enroll my repos

To Reproduce
No response
What version are you using?
No config file present, using default values. Version: 0.0.20 Go Version: go1.21.4 Git Commit: 0272289f474238c275434f7718a45eaa02133e3a Commit Date: 2023-12-08T08:39:46Z OS/Arch: darwin/amd64 Dirty: false User Agent: minder-cli/0.0.20 (darwin) amd64 (go1.21.4)

@AGMETEOR thank you for filing the issue! I was hitting the same problem yesterday, too and opened https://github.com/stacklok/minder/pull/1924 to address it. I need to go back to that PR and fix a lint issue. I'll do it ASAP and report when the bug was fixed and a new release tagged.

Thanks a lot @jhrozek . In the meantime, I have increased the context deadline from source and built a new binary. Maybe I also could have used a config file.

Thanks a lot @jhrozek . In the meantime, I have increased the context deadline from source and built a new binary. Maybe I also could have used a config file.

Just note that if you build from source, then minder will point to stacklok's staging instance (the release binaries point to prod instance of minder). You can set the minder instance by setting grpc_server.host to api.stacklok.com for prod, though.

Thanks a lot @jhrozek . In the meantime, I have increased the context deadline from source and built a new binary. Maybe I also could have used a config file.

Just note that if you build from source, then minder will point to stacklok's staging instance (the release binaries point to prod instance of minder). You can set the minder instance by setting grpc_server.host to api.stacklok.com for prod, though.

Using my built binary, minderbin doing ./minderbin auth login gives me
Minder Server    api.stacklok.com:443

Is api.stacklok.com:443 the staging server?

api.stacklok.com is prod

So my building from source also points to prod?

@AGMETEOR it depends on how you built it. I think you might have used goreleaser to build it, so that would end up in prod, which is anyway the right thing (staging is meant to be unstable)

I used go build -o minderbin cmd/cli/main.go

@AGMETEOR I was about to do a correction. Yeah, we default to production, and only point to staging if you'd do make build. So, building with go build directly will point to production.
I will open an issue to document this better, I had already forgotten :smile:

Here's the issue https://github.com/stacklok/minder/issues/1933

Can I work on it?

@AGMETEOR of course!

Do we have some web UI, apart from CLI where I can view profiles associated with my github provider?

@AGMETEOR there is no UI yet, only the CLI is available. It will be worked on in the near future though!
By default there are no profiles available in your project, you need to install them. We have a set of references in https://github.com/stacklok/minder-rules-and-profiles

Meanwhile minder profile get -i <fdfdfd> doesn't seem to be working. I keep getting INVALID_ARGUMENT

@AGMETEOR checking this out.

@AGMETEOR is this one still an issue for you?

@AGMETEOR thank you for the patience!! Sorry about the bumpy road

@JAORMX no problem. I think it should be fixed now. I just have one more thing I am trying to do using the quickstart guide. I already setup a repo for minder and I have a secret scanning rule setup by quickstart. What happens after that? Does minder comment on my repo or PR since I don't think I have secret scanning enabled on the repo.

@AGMETEOR actually, the quickstart's default profile will set things up in such a way that you'll get that fixed automatically.
The profile looks as follows:
version: v1
type: profile
name: quickstart-profile
context:
  provider: github
alert: "on"
remediate: "on"
repository:
  - type: secret_scanning
    def:
      enabled: true

If for some reason your repos would be out of compliance, you'll see a GitHub security advisory. But it will also automatically fix it. So... most likely you just won't see issues, you'll just get the fix and minder will be happy. If you disable secret scanning, Minder will re-enable it given that it's the policy. That's controllable via the remediate toggle.

@JAORMX I see it now. I had disabled secret scanning on a repo but I had not checked again to see if minder had indeed renabled it. But it actually did. Perhaps I should get some sort of feedback (maybe through email) from minder to tell me what it actually did. Like in this case an alert that it enabled secret scanning. I can see "alert: on" but I didn't get one

@AGMETEOR that is a good idea! Perhaps we could try to gather all the remediations done and present a summary. It gets tricky not to do too much noise, especially on more thorough profiles such as this one: https://github.com/stacklok/minder-rules-and-profiles/blob/main/profiles/github/stacklok-profile-remediate.yaml
I'll bring this up and see what the team comes up with! Thanks a lot for the feedback!

I think a summary would be nice. Thanks a lot for the engagement.

Closing the issue as it was addressed by https://github.com/stacklok/minder/pull/1924 and https://github.com/stacklok/minder/issues/1935. Thanks again for bringing this up! 🙏

authors: AGMETEOR JAORMX jhrozek rdimitrov

repo: stacklok/minder


text:
ROX-25852: Sensor sends runtime configuration to collector

Description

Sends the collector config to collector when sensor receives a cluster config from central or a new collector comes online. The collector config is not yet a part of the cluster config, though the collector config will be added to the cluster config in the future. For testing purposes a fake collector config is sent to collector when sensor receives a cluster config from sensor.
The collector config is sent using the same gRPC channel as is used to send the CIDR blocks to collector, and collector uses to send networking information to sensor.
Note that all added logging is temporary and will be removed before merging.
User-facing documentation

[ ] CHANGELOG is updated OR update is not needed
[ ] documentation PR is created and is linked above OR is not needed

Testing and quality

[ ] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[ ] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[ ] modified existing tests

How I validated my change

Set ROX_COLLECTOR_RUNTIME_CONFIG to true. Deployed ACS to a gke cluster using deploy/deploy-local.sh. Used the logmein command to obtain the authorization token and set ROX_API_TOKEN. Built the version of collector at the jv-test-receiving-collector-config branch in the collector repository and pushed the image to quay.io/jvirtane/collector:3.19.x-103-ga308acf39c-dirty-. That version of collector has minimal changes to connect to sensor using the new Communicate function. Collector was made to use that image using ks edit ds collector. Obtained the cluster config using the cluster service and then sent back the same cluster config using the PUT endpoint in the cluster config service. Checked the sensor logs and found the following
common/collectorruntimeconfig: 2024/09/27 01:04:19.295905 handler.go:79: Info: In ProcessMessage for collector runtime config
common/collectorruntimeconfig: 2024/09/27 01:04:19.295974 handler.go:68: Info: Created fake collector config
common/collectorruntimeconfig: 2024/09/27 01:04:19.296017 handler.go:85: Info: Got collector config network_connection_config:{enable_external_ips:true}
common/collectorruntimeconfig: 2024/09/27 01:04:19.296053 handler.go:120: Info: In pushConfigToValueStream
common/compliance: 2024/09/27 01:04:38.141318 service_impl.go:221: Error: receiving from compliance "gke-jv-09-26-default-pool-e4b56824-x212": rpc error: code = Canceled desc = context canceled
common/signal: 2024/09/27 01:04:38.585976 signal_service.go:138: Error: error dequeueing signalStreamMsg event: rpc error: code = Canceled desc = context canceled
common/compliance: 2024/09/27 01:04:46.559032 service_impl.go:185: Info: Received connection from "gke-jv-09-26-default-pool-e4b56824-x212"
common/compliance: 2024/09/27 01:04:46.576736 service_impl.go:221: Error: receiving from compliance "gke-jv-09-26-default-pool-e4b56824-6x8d": rpc error: code = Canceled desc = context canceled
common/signal: 2024/09/27 01:04:47.483564 signal_service.go:138: Error: error dequeueing signalStreamMsg event: rpc error: code = Canceled desc = context canceled
common/networkflow/service: 2024/09/27 01:04:48.226702 service_impl.go:108: Info: In recevieMessage hostname= gke-jv-09-26-default-pool-e4b56824-x212
common/networkflow/service: 2024/09/27 01:04:48.228885 service_impl.go:149: Info: CollectorRuntimeConfig.Enabled()= true
common/networkflow/service: 2024/09/27 01:04:48.228928 service_impl.go:151: Info: CollectorRuntimeConfig is enabled
common/networkflow/service: 2024/09/27 01:04:48.229021 service_impl.go:291: Info: Sending collector config collector_config:{network_connection_config:{enable_external_ips:true}}

This shows that sensor received a cluster config and reached the point in the code at which the collector config is sent to collector. The version of collector used does not actually log the received collector configs, so it is not clear if it was correctly sent, but it seems very likely that it was.

The overall approach looks solid, and we’re heading in the right direction.
However, there are still a few open points I’d like to address:

I would appreciate a deeper understanding of your reasoning, along with the advantages and potential concerns for certain implementations. This will help me provide more informed feedback based on the project's needs. I’ve left comments on specific areas where I’m seeking clarification.
The changes in sensor/common/collectorruntimeconfig/handler.go are on the right track, but they seem to fall outside the scope of this PR. I recommend moving them to a separate one.

I will need to think about point number one more before giving a full answer. Mostly I copied the pattern of the implementation for sending CIDR blocks without a full understanding of why that implementation was chosen for CIDR blocks, what the advantages and disadvantages of it are, if those advantages and disadvantages apply to collector config, and what alternatives I might use. I was hoping to get help on these points from the reviewers.
For point number 2, I don't understand what the scope of this PR is if the handler is not within the scope of this PR. The collector config does not get sent to collector without the new handler, which is the goal of the PR. Do you mean that I should use the existing externalsrcs handler instead of creating a new one and then in a different PR separate out the handler for the collector config.

repo: stackrox/stackrox


text:
Address post-merge review comments for grouped resources.

Description
Address post-merge review comments within #1384 .
Testing Performed

Added tests for CheckAccess

Looks like we need to add mock identity via authn.ContextWithIdentity() to the test suite to fix failures.

@dhaus67 Have you investigated failing e2e pg tests? Looks like failures occurred first on this branch and now they are failing

authors: dhaus67 janisz rukletsov


text:
Do not touch databases on legacy PVC in 74 to 4.0 upgrade

Description
A detailed explanation of the changes in your PR.
Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.
In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

/test all

One thing to be cognizant of is that these changes cannot be part of any 3.74 patch

I was looking at it some more.  To me the simplest approach is to simply not mess with Rocks or the migration yaml file at all.   Just read it for the migration. Leave those in the state they were before we started.  As such removing the lines that persist rocks in migrator/clone/db_clone_manager_impl.go and removing the lines that write to the migration yaml file in migrator/main.go.  I think that makes the most sense to the customer and should result in the simplest rollback path.  IMO.

The migration yaml file should represent at least a consistent version with the data it has. If we do not update the yaml file, in case of migrating from earlier versions like 72 or 71, we have the current with 73/74 format but it would allow software running at 72 or 71. That is wrong.

In theory, we can but this seal version anywhere between 3.72.99999999 -3.74.0, eg 3.73.99999(MAXINT) could be a good choice. But because we decided 3.74.0 and beyond is the recommended version to migrating from to 4.0, it should be better to draw the line there. Even 3.73 should be running fine with the data, why creating another special case? If there is only one current copy which is migrated from 72 with DB version 112 which we can recover from, we will advise them to go 3.74 to upgrade to 4.0 anyway. If it is migrated from 73, we just do the same.

/test grouped-static-checks

/retest-required

The migration yaml file should represent at least a consistent version with the data it has. If we do not update the yaml file, in case of migrating from earlier versions like 72 or 71, we have the current with 73/74 format but it would allow software running at 72 or 71. That is wrong.

That's what I'm saying.  I don't think we should persist Rocks OR update the migration yaml file.  Thus it will remain as is.  Any updates needed for the migration to Postgres would be done on temp.  If we don't persist that then current and previous  and the migration yaml file remain untouched and a rollback would return them to exactly where they were before they started.
For example, if we have 3.72.3 it will create a temp, run Rocks migrations on temp.  Then Postgres migrations run against the rocks temp.  If we do not persist temp then their current will remain at 3.72.3 which is where they came from so a rollback to that should be familiar to them.

In theory, we can but this seal version anywhere between 3.72.99999999 -3.74.0, eg 3.73.99999(MAXINT) could be a good choice. But because we decided 3.74.0 and beyond is the recommended version to migrating from to 4.0, it should be better to draw the line there. Even 3.73 should be running fine with the data, why creating another special case? If there is only one current copy which is migrated from 72 with DB version 112 which we can recover from, we will advise them to go 3.74 to upgrade to 4.0 anyway. If it is migrated from 73, we just do the same.

We should probably chat about it tomorrow.  Even accounting for those cases, we can still meet those by simply not updating anything in current.  IMO any update to what is in current adds risk and that includes the migration yaml file.

Upgrade from 74->4.0 is always allowed, stackrox-db has consistent current of previous release
Upgrade from 72->4.0 is allowed if there is space, stackrox-db has consistent previous to rollback.
Upgrade from 72->4.0
a. Mark the only copy 3.74.0(fake) => Please upgrade to 74.x or 4.0 as needed, shown in the error message.
b. Leave it alone, DB 112 and software version 71 for example. No rollback, but no correct error message.
c. Please upgrade to 74 first, upgrade 74 and then 4.0, what if upgrade to 74 fails?

Leaving it untouched does not mean it is safe. We actually have made modifications while we are upgrading from 3.72 with no previous. The persisted data is not consistent if we leave it that way.

For reference only: We reach an agreement that we would go ahead seal the rocks and bolt at 3.74.0 with the message documented in the upgrade steps with the information that we would upgrade all older versions to 3.74.0 first when upgrading to 4.0. In rollback, it would land on 3.74.


text:
ROX-15145: Add environment variables as alternative information source for roxctl global command line flags

Description
Some roxctl command line flags already have associated environment variables. Others don't.
The goal of this change is to harmonize the way roxctl commands can be configured by adding environment variables as additional configuration source for some of the command line flags.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
- [ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
CI should be sufficient to ensure the basic functions are not broken.
Manual tests will be performed to check roxctl commands also behave as expected if configured through environment variables.

Current dependencies on/for this PR:

master

PR #5731   👈

This comment was auto-generated by Graphite.


text:
Problems with line continuations and end-of-statement

Aside from preprocessor directives, the main issue that seems to be left with the corpus I've been looking at is line continuations and end-of-statements. There are a few different issues, but they're all related and I suspect need some clever handling in the external scanner. Just to be clear, all these issues involve parsing errors, i.e. they all contain an (ERROR) node.
The first one seems pretty innocuous, but I've not managed to solve it. It's just a write that only uses a format via a label and that label appears on the next line:
program test
    write(*, 1)
1   format('hello')
end program

Any statement or comment on a line in-between the write and format fixes the issue.
It looks like the new line is getting eaten before being parsed as _end_of_statement and then 1 format() can't be parsed as an output_item_list. This can be confirmed by putting a comma after the 1, and then this is successfully (but incorrectly!) parsed as a complete output_item_list.
The second one is far more common (probably accounts for most of the ~200 files that error in WRF):
program test
  integer :: foo & ! comment
    , bar
end program test

Here the issue is the next line starts with a comma. If the comma is moved to the preceding line or the comment removed, then it works fine.
Possibly the same as previous issue:
program test
contains
  function foo( &
    bar) &  ! comment
  result(res)
    integer :: bar
  end function foo
end program test

Again, removing the comment fixes things.
The last one involves concatenating a string literal with a line continuation in it:
program test
  call foo(bar // ' &
    & foobar')
end program

This seems to only trigger an error if there's a line continuation before the first character in the literal.
My current thinking is to have a bool continued_line in the scanner that tracks whether we're still "in" a line continuation or not.

@ZedThree is this issue resolved now? All three examples parse for me.

Yep, sorry I didn't update the PR comment to automatically close this

authors: ZedThree stadelmanma

repo: stadelmanma/tree-sitter-fortran


text:
🛑 ReportPortal Server is down

In 30c3727, ReportPortal Server (https://reporting.its-telekom.eu/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ReportPortal Server is back up in 0d60d10.

repo: stamateas/upptime


text:
⚠ GitLab Server has degraded performance

In 7305b8d, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 6730 ms

Resolved: GitLab Server performance has improved in b550eba.


text:
🛑 Proxima/DNS Server is down

In 729b6bb, Proxima/DNS Server (http://proxima01.its-telekom.eu/livewatch.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxima/DNS Server is back up in 820b94e.


text:
🛑 Recatt Server is down

In dc77db8, Recatt Server (https://recatt.its-telekom.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Recatt Server is back up in b9401bc.


text:
⚠ GitLab Server has degraded performance

In 94b386c, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11022 ms

Resolved: GitLab Server performance has improved in 5bae51e.


text:
XP/level progress bar

Short description
I would like some way of viewing my progress in levelling, it doesn't need to be precise at all, just a hint for how far into the level I am.
The main reason for this would be in the future when people are in really high levels and don't have any way of knowing if your half there, almost next level or anything.
Detailed description
My idea is that the progress bar should consist of steps of some kind, not many at all, thus making it to be less likely to result in people spamming for levelling up.
For example, having 3 "steps" per level. When you are more than 33% into reaching the next level, the first step is marked, over 66% the next step is marked etc. This makes you have at least a clue of how far you are to the next level and at the same time, hopefully not making people spamming to get more levels.
Another feature that could be added to this one, is that you get more of these "steps" by leveling, for example, one step more for every 10 levels or so. I think this would be more fun for the people that are at really high levels.
I don't really know where or how this may be done, but maybe in the .me command or something. The example of values or amounts of steps etc. are just examples, I haven't thought them through that much.
Additional context:
I would like to think about how this could be done, but I sadly don't really have time for that so I will just write my thoughts when I get them and let you decide and think about how it may be implemented.

Great idea!

Good idea!
I haven't tested it, but could something like this work to make the progress bar, if placed in the .me command? To show it, I assume making a new field with the value progressMessage could work?
		let xpPercentage = profileData.xp / Math.pow(profileData.level + configData.xp.levelBaseOffset, configData.xp.levelExponent); 		var progressMessage; 		if (xpPercentage > 0 && xpPercentage <= 0.3) { 			progressMessage = "░░░░░░░░░"; 		} else if (xpPercentage > 0.3 && xpPercentage <= 0.6) { 			progressMessage = "███░░░░░░"; 		} else if (xpPercentage > 0.6 && xpPercentage < 1) { 			progressMessage = "██████░░░"; 		}


text:
fix check on beta_proportion_* argument

Summary
Fixes #1413.
Tests
Added tests for mu = 1.0.
Side Effects
None
Checklist

[X] Math issue #1413

[X] Copyright holder: Marco Colombo
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[X] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[X] the code is written in idiomatic C++ and changes are documented in the doxygen

[X] the new changes are tested

Thanks @mcol!

repo: stan-dev/math


text:
Revert "Revert "Opencl indexing""

Revert revert of #3048

Now that's odd, the same tests pass here but failed on develop
PR passing test
https://jenkins.mc-stan.org/blue/organizations/jenkins/Stan/detail/PR-3053/1/pipeline/112#step-161-log-2747
develop failing:
https://jenkins.mc-stan.org/blue/organizations/jenkins/Stan/detail/develop/917/pipeline#step-169-log-2814
@t4c1 was there some change in the underlying Stan impl that would do this?

I don't think so. Odd indeed.

Now that's odd, the same tests pass here but failed on develop

Could you check the order and included headers in src/stan/model/indexing.hpp?
- #include <stan/model/indexing/access_helpers.hpp>

This one has conflicts that need resolving, then lets see if the tests pass.

Thanks @SteveBronder !

Np! But if you wouldn't mind waiting on this I am working on another PR to fix #3076 that I'd like to merge before this one so I don't have to do a big remerge and have a bunch of merge conflicts

@serban-nicusor-toptal could you checkout the Jenkins file in this PR and check that the GPU setup is correct?

Hey @SteveBronder I've checked it out and it looks good! ( I've cross-checked with math  to be sure )
Just one small note:
Recently we've pushed a new image for math with cpp17 stanorg/ci:gpu-cpp17 just in case you might need a newer version.

authors: SteveBronder hsbadr rok-cesnovar serban-nicusor-toptal t4c1

repo: stan-dev/stan


text:
Fixed typo in quality gate filter

Submission Checklist

[ ] Run unit tests: ./runTests.py src/test/unit
[ ] Run cpplint: make cpplint
[ ] Declare copyright holder and open-source license: see below

Summary
Fix a typo in the quality gate filter, this fails downstream tests in Math by being unstable, see pipeline.
Intended Effect
How to Verify
Side Effects
Documentation
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Toptal
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

In cmdstan we only have warnings from
clang: warning: -Wl,-L,/Users/jenkins/workspace/Stan_CmdStan_develop/stan/lib/stan_math/lib/tbb: 'linker' input unused [-Wunused-command-line-argument]

So the following filter does the trick:
excludeFile('stan/lib/stan_math/lib/*')

https://github.com/stan-dev/cmdstan/pull/1143 has the quality gate complaining

Oh, that's weird, it comes from the MacOS SDK
stan/lib/stan_math/lib/boost_1.78.0/boost/assert/source_location.hpp:80:18: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
            std::sprintf( buffer, ":%ld", static_cast<long>( column() ) );
                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^

And the Jenkins plugin sees it as a different warning/path. I'll run a new build on your PR to try and filter it.

authors: WardBrian serban-nicusor-toptal