nixVersions.stable: reference nixos-smoketets test

According to the previous nix maintainer, this test is critical for nix upgrades.
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

cc @mweinelt I went for nixos-smoketests. I hope this one is better?

How about https://github.com/NixOS/nixpkgs/pull/315927 instead?

Yes. This one looks better.


There is no install_dependencies.R file at /src/r/

Hello,
I'm student of systems biology and bioinformatics graduate program and I aimed to reproduce FRASER. I have followed the constructions of readme.md and downloaded the repo and its dependencies. I've cloned FRASER, Leafcutter and FRASER analysis code github repos. Finally I've downloaded wBuild and tried to run the full pipeline.
When I run to make sure all packages needed in the analysis are installed using Rscript command, I realized that there is no install_dependencies.R in the /src folder of repo. And I cannot continue to run rest of full pipeline that I guess it is caused by the lack of dependencies informations.
How can I obtain this .R file?
Thank you.

@ischeller @c-mertes did you see this issue?


Create new class for routes

In general we should minimize usage of primitive data structures to hold complex info (e.g. routes should be a dict of lists, specify_edge_starts is a list of tuples, etc). Classes are an easier representation.

Moved to a separate planning document

Livening this thread up again -- this feature request is part of our new dev cycle.


UV index returning negative values

Following the 'readData' example for Arduino (using the 1.0.1 library), I am getting negative UV index values, the other values from the sensors seem reasonable.
Hardware:

Raspberry Pi Pico
Gravity: Expansion Board
Environmental sensor (SEN0501) under I2C.

Any suggested approaches to debug?

Code from github src resolved the negative values.  Library from Arduino outdated?


Player slider is not diplaying correctly

When you press play, the slider handle is being displayed under the blue bar.
CSS property z-index : 2; seems to solve this issue 👍

Fixed, thanks for noticing.


Display file names without paths

Hi, I made a small tweak that also removes the path from the displayed link, showing only the file name instead.
If a heading is linked to only that is shown but if no heading is linked, then only the file name is shown.
I found this to be useful since some of my files are quite deeply nested and links got very long but it's up to you if you want to include it.

Check out the latest update, this should now be implemented 🚀.


Issue Consuming Connected Service (SOAP asmx) from behind a proxy

Issue Title
Be as descriptive as you can with your title.
General
I am having trouble to call a web service from .net core 2.0/2.1 behind a proxy. However from the full framework it works fine.
Here are the code sample (full Framework that works)
BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);             binding.UseDefaultWebProxy = false;             binding.ProxyAddress = new Uri( "http://proxy");             EndpointAddress add = new EndpointAddress("https://demo.ippayments.com.au/interface/api/dts.asmx");             Bambora.dtsSoap client = new Bambora.dtsSoapClient(binding, add); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;             var response = client.SubmitSinglePayment(new Bambora.SubmitSinglePaymentRequest(new Bambora.SubmitSinglePaymentRequestBody(xml)));
On the .net core i generated the proxy using connected service WCF web service client code below:
BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);             binding.ProxyAddress = new Uri("http://proxy");             EndpointAddress add = new EndpointAddress("https://demo.ippayments.com.au/interface/api/dts.asmx");             BamboraApi.dtsSoap client = new BamboraApi.dtsSoapClient(binding, add);             ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;             var response = client.SubmitSinglePaymentAsync(new BamboraApi.SubmitSinglePaymentRequest(new BamboraApi.SubmitSinglePaymentRequestBody(xml))).Result;
As you can see there is hardly any difference apart from the fact that the proxy was generated through different tools.
Is there is a workaround or a fix for this.
Many thanks
Mo

Issue moved to dotnet/wcf #3167 via ZenHub


webpack build failed when chunks monaco-editor

Build failed with errors.
ERROR in chunk 43
static/js/[id].[chunkhash].js
SyntaxError: Invalid regular expression: /(\p{Ll})(\p{Lu})/: Invalid escape
--
I found it caused by
editor.main.js
.replace(/(\p{Ll})(\p{Lu})/gmu, '$1_$2')   .replace(/([^\b_])(\p{Lu})(\p{Ll})/gmu, '$1_$2$3')   .toLocaleLowerCase());
monaco-editor version: 0.22. or 0.23.
**monaco-editor-webpack-plugin: 3..
its build and worked fine with chunks on other old versions of monaco-editor and monaco-editor-webpack-plugin

This will be also fixed by https://github.com/microsoft/vscode/commit/195d369ad64887bfe1cfd98044b7ea976a7c3a2c


Remove the navigation to StudentView page  in scannerview.dart

The purpose of navigation to StudentViewPage was to take the signature of the student for  authentication. But as we are using ID card for making the entry (which itself is an proof) we can remove the navigation code and directly to the registration.

Fixed by pr #63


cannot insert a 100 nanosecond-precision Time objects via bulk copy

Driver version or jar name
mssql-jdbc-6.5.0.jre8-preview.jar
SQL Server version
2008, 2012, 2014
Client operating system
Windows 10 Pro
Java/JVM version
Version 8 update 144 (Oracle)
Table schema
CREATE TABLE [jpoetest] ([mytime] time(7))
Problem description
It is possible to insert Time with 100 nanosecond precision via JDBC SQL Statement and a java.sql.Timestamp object:
private static final Timestamp MY_TIMESTAMP = new Timestamp(114550L).setNanos(1234567L);

Connection jdbcConnection = getConnection();
PreparedStatement statement = jdbcConnection.prepareStatement("INSERT INTO [jpoetest] ([mytime]) VALUES (?)");
statement.setTimestamp(1, MY_TIMESTAMP);

However, when trying to do a similar thing using ISQLServerBulkRecord and SQLServerBulkCopy, I'm getting this stack trace:

com.microsoft.sqlserver.jdbc.SQLServerException: Received an invalid column length from the bcp client for colid 1.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:264)
at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:256)
at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:108)
at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:28)
at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.doInsertBulk(SQLServerBulkCopy.java:1615)
at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.access$200(SQLServerBulkCopy.java:58)
at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy$1InsertBulk.doExecute(SQLServerBulkCopy.java:709)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7344)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2713)
at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.sendBulkLoadBCP(SQLServerBulkCopy.java:739)
at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.writeToServer(SQLServerBulkCopy.java:1688)
at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.writeToServer(SQLServerBulkCopy.java:669)

This was probably due to the Timestamp object that we're passing in rowData array. If I passed a Time object instead, insertion will succeed.
However, a Time object cannot hold sub-millisecond precision, while SQL Server supports up to 100-nanosecond precision.
Expected behavior and actual behavior
Expected: SQLServerBulkCopy should be able to accept Timestamp objects to insert into a Time column to support 100 nanosecond-precision.
Repro code
This is roughly what our implementation of ISQLServerBulkRecord would return.
public class MySQLServerBulkRecord implements ISQLServerBulkRecord {

  private final ResultSetMetaData metaData;

public MySQLServerBulkRecord(Connection jdbcConnection) {
  PreparedStatement statement = jdbcConnection.prepareStatement("SELECT* FROM [jpoetest] WHERE 1=0");
  ResultSet resultSet = statement.executeQuery();
  metaData = resultSet.getMetaData();

@Override
public Object[] getRowData() throws SQLServerException
{
  List<Object> rowData = new Arraylist<>();
  rowData.add(MY_TIMESTAMP);
  return rowData.toArray();
}

@Override
public int getColumnType(int i)
{
  return metaData.getColumnType(i); // (returns java.sql.Types.Time = 92 )
}

@Override
public int getPrecision(int i)
{
  return metaData.getPrecision(i); // 16 for myTime column
}

@Override
public int getScale(int i)
{
  return metaData.getScale(i); // 7 for myTime column
}

}

I think I've found out what I did wrong, and how this is possibly not a bug.
my implementation of ISQLServerBulkRecord is not properly describing the precision and scale of the java.sql.Timestamp object that is being written. Instead of describing the destination column, the ISQLServerBulkRecord should describe the data that is being written.
With this fix, I was able to write 100 nanosecond precision time and timestamps to time and datetime2 columns.
I'm still unable to insert java.sql.Timestamp objects to datetime and smalldatetime columns, however. Even after making the changes to precision and scale to ISQLServerBulkRecord.
I'm being met with this stack trace:
com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting date and/or time from character string.
	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:264)
	at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:256)
	at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:108)
	at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:28)
	at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.doInsertBulk(SQLServerBulkCopy.java:1615)
	at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.access$200(SQLServerBulkCopy.java:58)
	at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy$1InsertBulk.doExecute(SQLServerBulkCopy.java:709)
	at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7344)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2713)
	at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.sendBulkLoadBCP(SQLServerBulkCopy.java:739)
	at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.writeToServer(SQLServerBulkCopy.java:1688)
	at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.writeToServer(SQLServerBulkCopy.java:669)
	at COM.safe.fme.jdbc.mssql.BulkCopierFeatureBundler.sendFeatures(BulkCopierFeatureBundler.java:98)
	at COM.safe.fme.jdbc.JdbcWriter.commitTransaction(JdbcWriter.java:652)
	at COM.safe.fme.jdbc.JdbcWriter.close(JdbcWriter.java:193)

Is this a bug?
My repro code is roughly the same as the one I've posted earlier, except when returning Precision and Scale:
@Override
public int getPrecision(int i)
{
  return 29; // java.sql.Timestamp
}

@Override
public int getScale(int i)
{
  return 9; // java.sql.Timestamp
}

Destination table schema:
CREATE TABLE [jpoetest] ([mydatetime] datetime)

Hi @jpoernomoatsafe, thanks for bringing this issue to our attention. While the user could argue that the driver should truncate the Timestamp objects that have the nanosecond value specified according to the source column's scale, I believe this can also easily be done on the application's end (probably in the getRowData method of the class that implements ISQLServerBulkRecord), and existing applications that implement ISQLServerBulkRecord might already be doing this (if the driver were to implement this, this would be more of a feature enhancement than a bug).
I see that you've already modified your application so that it sends the correct data to the database (I assume you've turned the Timestamp object into a string, then truncated the last 2 numbers so that it has 100 nanosecond precision) - I was going to suggest something similar to this. As for the datetime and smalldatetime data types, they have different scales - datetime supports up to 3 digits, and smalldatetime supports 0 digits after the second (you can refer to page: https://docs.microsoft.com/en-us/sql/t-sql/data-types/date-transact-sql?view=sql-server-2017). This means that you can either use datetime2(7) to achieve 100 nanosecond precision, or you can modify your application so that it truncates your Timestamp object according to the source column (7 digits for time/datetime2, 3 digits for datetime, 0 for smalldatetime and so on).
Please let me know if this answers your question, or if you have any other concerns.

hi @peterbae
thanks for your reply!
I took the string conversion approach, and it's good to have it affirmed by your suggestion.
I'll consider this issue closed as not a bug.


"TypeError: Cannot read property 'setMaxListeners' of undefined"

I love the idea for this and am keen to get working...
I am receiving the following error in the debug window....
Any ideas?

Just an update, I selected a language that was not default and error gone.
Thanks for this add on... it has changed my life!

duplicate of this issue #2


PostgreSQL Schema Support

Version: Latest
Module: quill-async-postgres
Database: PostgreSQL
There doesn't seem to be any PostgreSQL Schema support, I opened an issue on the postgresql-async but it seems to be unmaintained.
https://github.com/postgresql-async/postgresql-async/issues/13
@getquill/maintainers

Have a look at https://github.com/jasync-sql/jasync-sql
This is the follow up project for postgres-async and seems to be the preferred replacement for quill as well (https://getquill.io/#contexts-quill-jasync).
It does not have schema support either, but it is quite active and chances are, there may be schema support in the future.

Have a look at https://github.com/jasync-sql/jasync-sql
This is the follow up project for postgres-async and seems to be the preferred replacement for quill as well (https://getquill.io/#contexts-quill-jasync).
It does not have schema support either, but it is quite active and chances are, there may be schema support in the future.

Thanks very much, didn't realise there was a quill module for it.
I'll make a nice MR; thanks.


Full support for other CI/CD services, such as GitLab CI, BitBucket, Jenkins, CircleCI (or manual deploy)

Is your feature request related to a problem? Please describe.
I am trying to automate deployment of Azure Static Web Apps from GitLab CI and many of the features available in GitHub do not work. I know that GitHub is a part of Microsoft now, but I do not understand why the Static Web Apps tools were only built for GitHub. Basic deployment from other providers works now but it seems that everything is still tight to GitHub (every build is still looking for GitHub's "event info").
The deployment uses the StaticSitesClient (also swa is using it) which has no documentation and is closed source. This makes finding issues quite hard.
Describe the solution you'd like
Support the following features via the CLI (either StaticSitesClient or https://github.com/Azure/static-web-apps-cli/):

Pull request/merge request title should be shown when passed via --pullRequestTitle (or PR_TITLE). It currently does not show up:

In the same view when using GitHub you'll get links to your repository / PR and branch. This is also lacking for other platforms.
It should be able to close/delete an environment. When you try this with StaticSitesClient on other platforms you currently get:  The content server has rejected the request with: BadRequest
  Reason: Request is missing the pull request id.

Also, provide a documentation to the StaticSitesClient and ideally the source as well.
Describe alternatives you've considered
I have tried to use swa and Azure CLI. With swa you can also deploy an app but without any branch decoration. With Azure CLI you cannot deploy in any way, but you can delete an environment.
Additional context

See #7 for Azure CLI deployment option
See #96 for manual deployment

Does someone knows some way to trick StaticSitesClient to close/delete a Preview deployment. It seems that it connects in some way with the Github Event Json, but I didn't find a way to fake this file for upload/close in order to  have the pullRequestTitle set or to have the preview deployment undeployed.
I mean it is not a stable API or anything like this but just give us some API to work with this, or just document which fields are used or even just give us the Rest API, we don't need no useless task or gargantuan images...

Well thanks for the info. I've tried to rely only on StaticSitesClient, because it does not need special authorization it just uses the deployment token, but for now will implement a workaround with azure functions or something like this to clean the environments.

Any updates for this?

TLDR
Here is my YML for a GitHub Action that creates preview environments on branch creation (and NOT pull request creation), and deletes preview environments when branches are deleted.
Short Version
StaticSitesClient seems to only take environment id from the event JSON. In said JSON, it uses pull_request.number as the environment id - which seems to work for pull request IDs, branch names, or specified environment names. This is the only value it really needs from that JSON, though it expects a few other values to be present. So, create a properly formatted JSON with the correct pull_request.number value (pulled from github.event.ref, in my case), pass that JSON to docker, set it as the --event path, give it the --token value, and you're good to go.
Long Version
Unlike the title/focus of this issue, I'm working with GitHub and not other CI/CD services. One would think there would be no reason for me to run into this, but I wanted an environment-per-branch setup. The automatic creation of preview environments was easy to setup, as this documentation outlines. I removed the pull request triggers, because with a branch-environment setup I have no need for pull request-environments, and the creation side of things was working perfectly. Good to go, right?
Not quite. SWAs have a limit of 3 preview environments for the free plan, and 10 standard (paid) plan. So, that means that the auto-creation of environments per branches will (soon) bring you to the service limit - then you'll need to clean out the old environments manually in the portal. And, that is what I should have lived with. Unfortunately, my time investment continued.
I looked at the Azure CLI, but the authentication requirements on that are (in my opinion) ridiculous. More specifically, the app registration setup is not easily scalable across multiple SWAs. I wanted a solution that I could quickly roll out across my apps. And, my tolerance for setup time (per SWA) was low because this was something I could easily go into the portal to do myself. Yet, that somehow didn't deter me from continuing my search for an automated solution.
The SWA CLI apparently doesn't have the ability to tear down a preview environment.
Azure Logic Apps don't seem to have the ability to touch preview environments.
So... I guess I'm left with the utility that can destroy a preview environment. I mean, I've seen it do it. Pull request was created, preview environment was created, pull request closed, preview environment was destroyed. It can do it. But, it doesn't do it when I put the action on a branch deleted event instead of a pull request event. When I do that, it gives me the error that led me to this issue: Request is missing the pull request id
How do we give it the pull request id, when my use case has nothing to do with pull requests? I found this blog, which seemed to give some insight into working with StaticSitesClient. But, despite following the same format used on that site, I could not get the close action to work. It kept returning an error saying that there was missing content. I tried changing all the environment variables, every combination I could think of, and nothing. Honestly, I'm not sure how the author ever got that to work. But, when I set the DEPLOYMENT_PROVIDER to GitHub, I did get that JSON error again. OK... let's chase that.
First thing would be specifying the JSON. I tried putting a help flag on the command, and it spit out some info. One thing it listed was an --event flag for setting the JSON path. Great! I passed the JSON file into docker with it's -v flag, and got a parse error. Which, was confusing because the JSON I gave it was valid. It was just an object with a "test" property at this point, but valid nonetheless. I assumed the parse was tied to a schema. So, now I need a valid GitHub json file. This post helped me dump the JSON out of the GitHub Action.
I dumped the JSON from the branch delete event, which was the trigger I wanted. I fed that to StaticSitesClient, and still received a parse error. Strange. Well, the largest object in that JSON was the event object. It would make sense that the event JSON is actually the event object from the larger github object. I copied out just the event object, saved that as my event.json file, and received the same 'pull request id missing' error as before. Not everything I hoped, but at least now I can modify the JSON and manipulate StaticSitesClient's behavior in ways I couldn't directly through the built-in YML step. It wanted a pull request id and I didn't have one to give. Let's give it an actual pull request event JSON, and see if that changes the error.
I temporarily changed my YML to dump JSON from a pull request, copied the event object into my event.json file, and it ran! Kinda. Mostly. It told me it couldn't find a matching environment. Well, that makes sense. It is trying to delete the environment created for this pull request, and I'm no longer creating environments for pull requests. So, I need to find what in this (large) event object contains the pull request id. Should be simple, I searched for pull_request_id. Nothing. There was an ID property for pull_request, but it was a long string of numbers that didn't make any sense. It seemed as though StaticSitesClient looks for all the properties it needs up front, and will error quickly if it doesn't find them. It can't possibly need all these properties. Let's start deleting properties until only the required ones are left.
That left me with the property names you see in the JSON of the attached YML file. But, it seemed like some of those properties shouldn't actually be required. Why would they be? What happens if I put a dummy value in one of them. Still works. How about another? Still works. Only one that couldn't be a dummy value? pull_request.number. OK, we found pull request id!
The looking I did online indicated that GitHub integration brought pull request-based environments first, then branch environments, then named environments. Given that they look for the pull request id in the number property, instead of the id property, I'm guessing that technical debt service has been sadly lacking here. The URL format for preview environments seemed to always place the pull request id, the branch name, or the environment name in the same place in the URL. So... what happens if I just feed the number property a string?
pull_request.number is the environment id, regardless of type. The other properties need to be present, likely to pass a schema validation, but they do NOT need to have legitimate values. Empty strings are fine.
Notes

I have a suspicion that my process of creating event.json and passing it to docker could be improved. --event seems to only take paths, not strings. Is there a way to give docker a string to use as a file? Seems kinda hacky, but seems to work fine.
I'm calling docker one more time at the end to log the version of StaticSitesClient. Since it is largely undocumented, it is definitely subject to change. Since it could break with any update, I'd like my logs to record which version it used.
Why use :stable instead of specifying a version number, if I'm concerned about it breaking? Two reasons: One, StaticSitesClient is embarrassingly large and supposedly it is going to get better. Two, if they don't break things I'd like to be positioned for any other improvements.
Lastly, why am I pulling the deployment token into another variable at the top of the file? Because I want to roll this out across my apps and change as little as possible from app to app. One line of changes would be ideal.

IS this just ignored?

I tried @stephen-hardy script, and although it might've worked before, it isn't working now :"(

To echo @stephen-hardy's remarks regarding SWA being a bit too "clever", its cleverness is even too much for supposedly first-class supported GitHub Action deployments, which are failing spectacularly as well. Read https://github.com/Azure/static-web-apps/issues/632#issuecomment-2179548456 for more information.


reflected list behaves differently on Python 3.7 and 3.8

Importing from Discourse: https://numba.discourse.group/t/seeing-different-behavior-with-python-3-8-2-vs-python-3-7-5/596/3
import numpy as np
from numba import jit

@jit(nopython=True)
def test():
    tmp = []
    for i in range(3):
        tmp.append(i)
    for i in range(1):
        tmp.append(i)
    tmp = np.array(tmp)
    return tmp

tmp = test()
print(tmp)

On Python 3.7 this outputs:
[0 1 2 0]

Whereas on 3.8 it outputs:
[0]

likely a bug in array-comprehension pass

likely a bug in array-comprehension pass

Confirmed. Toggling https://github.com/numba/numba/blob/b1258c82c0ed2845fce52508f439e29f729384a9/numba/core/inline_closurecall.py#L44 "fixes" it.


Default admin password ?

Hi i tried to deploy planera on my docker instance, i did it trough Portainer, this is OK but when i try to access the web interface, i'm facing a login screen . I tryed to use register button but no account is created . Do you have a default password access ?

thanks for the reply, unfortunatelly, the logs dont tell anything that would not be correct. in fact, when i try to create an account, the button turns grey, then become blue again then does nothing . i'm using Portainer stack to pilot this deployement.  PLANERA_DISABLEREGISTRATION is set to false then email verification is set to false too.  i'm using it locally atm,: i used the same file you provided on the github
logs form caddy :
INF ts=1716811770.0852175 msg=using provided configuration config_file=/etc/caddy/Caddyfile config_adapter=caddyfile
WRN ts=1716811770.0859077 msg=Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies adapter=caddyfile file=/etc/caddy/Caddyfile line=2
INF ts=1716811770.0864394 logger=admin msg=admin endpoint started address=localhost:2019 enforce_origin=false origins=["//localhost:2019","//[::1]:2019","//<IP_ADDRESS>:2019"]
INF ts=1716811770.0866432 logger=tls.cache.maintenance msg=started background certificate maintenance cache=0xc000593c80
INF ts=1716811770.0868943 logger=http.log msg=server running name=srv0 protocols=["h1","h2","h3"]
INF ts=1716811770.0871434 msg=autosaved config (load with --resume flag) file=/config/caddy/autosave.json
INF ts=1716811770.0871494 msg=serving initial configuration
INF ts=1716811770.0895257 logger=tls msg=cleaning storage unit storage=FileStorage:/data/caddy
INF ts=1716811770.0897403 logger=tls msg=finished cleaning storage units
logs from DB :
PostgreSQL Database directory appears to contain a database; Skipping initialization
2024-05-27 12:09:29.943 UTC [1] LOG:  starting PostgreSQL 15.7 (Debian 15.7-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-05-27 12:09:29.943 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
2024-05-27 12:09:29.943 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2024-05-27 12:09:29.988 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-05-27 12:09:30.070 UTC [29] LOG:  database system was shut down at 2024-05-27 12:07:18 UTC
2024-05-27 12:09:30.130 UTC [1] LOG:  database system is ready to accept connections
2024-05-27 12:14:30.170 UTC [27] LOG:  checkpoint starting: time
2024-05-27 12:14:31.307 UTC [27] LOG:  checkpoint complete: wrote 11 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.837 s, sync=0.115 s, total=1.138 s; sync files=4, longest=0.089 s, average=0.029 s; distance=17 kB, estimate=17 kB
logs from planera api :
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (38ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT EXISTS (
SELECT 1 FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON n.oid=c.relnamespace
WHERE n.nspname='public' AND
c.relname='__EFMigrationsHistory'
)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (29ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {13df97f3-ad84-41f2-95b8-a5c62ad065ea} may be persisted to storage in unencrypted form.
warn: Microsoft.AspNetCore.Server.Kestrel[0]
Overriding address(es) 'http://*:8080'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://<IP_ADDRESS>:5065
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /app/data
log for web :
Listening on <IP_ADDRESS>:3000
i tried chrome, firefox, edge, opera . this is the same reaction.

That's odd. Does the browser console say anything? ctrl+shift+i

yes it says that POST is forbidden on 403.

start.16f2e4dc.js:1  POST http://<IP_ADDRESS>:2000/register 403 (Forbidden)
  | window.fetch | @ | start.16f2e4dc.js:1
-- | -- | -- | --
  | l | @ | Form.9bd58095.js:1

I had this issue too when accessing it like you did. It works when I access it through a domain though (and set the ORIGIN environment variable in docker compose to that domain).


Add value thresholds and change wording

Changes in this PR

Add value thresholds and change wording

Screenshots of UI changes
skipping screenshots

 Nest steps content tweaks


Incredibly confusing to install

Thanks so much for making this. I love what I see but getting it to work is a whole other monster. It'd be so much easier and I feel so many more people would take advantage of this if it was just one JS file that I have to include and then add it to my list of modules.
I'm knew to angular and the "installation" side of this is very confusing if you've never used bower/npm. I've been staring at this page for about 30minutes and will probably just end up using jquery.payments :\

Sorry, not changing the way I write modules. If you want to use jquery.payments because it's easier to copy and paste, go ahead. Otherwise copy and paste from git tags here like you would from any other repo's master.

https://github.com/bendrucker/angular-credit-cards/blob/v2.3.2/release/angular-credit-cards.js

I think you'll be pleased to hear that I'm now committing the release dir to master so it's easier to find if you want to copy and paste.


action: improve docs for goto altitude

Currently, PX4 does not let us specifiy absolute altitudes for goto, so AMSL (above mean sea level) is all we have.
Closes #691.

@hamishwillee please review again.

Am-mended and force-pushed to trigger appveyor CI.


wear leveling

Hello everybody,
I have just compiled littlefs with my application that uses a 32k fram.
We can see that it stays rewriting to the 5 first blocks.
Also, sometimes I get big increments in boot_count. Still debugging it.
Runing in a 16bit mcu. Had to adapt lfs_npw2, lfs_ctz, lfs_popc, lfs_scmp and lfs_fromle32.
 No need to modify anything in the source code.
Suggest you reduce your block size from 1024 - it can go as low as 128 bytes.

Yes, actually it is a FM25W256 (32 kilobytes).
Had troubles with crashes while setting small block sizes.

Hi @barbiani, sorry for the late response.

Runing in a 16bit mcu

Oooh, that's interesting. Out of curiousity which processor/fram is this? If you're able to share.

Had troubles with crashes (ASSERT) while setting small block sizes.

Is this the assert that is failing?
https://github.com/ARMmbed/littlefs/blob/master/lfs.c#L2077-L2079
That could also mean that lfs_npw2 is implemented incorrectly. You can try compiling with -DLFS_NO_INTRINSICS, which will fall back to standard C implementations.

The definition I found is: int __builtin_clz (unsigned int x)
(https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html), so that could well not work as intended on a 16-bit processor.

That's a good point, and probably the source of the problem. I'm guessing changing it to __builtin_clzl should work?
As well as changing the others in lfs_util.h:

__builtin_popcount -> __builtin_popcountl
__builtin_clz -> __builtin_clzl
__builtin_ctz -> __builtin_ctzl

I'll need to check if the other compilers support the "l" suffix before adopting this change.

It is a dspic33ep.
Exactly this one:
LFS_ASSERT(4lfs_npw2(0xffffffff / (lfs->cfg->block_size-24)) <= lfs->cfg->block_size);
I played dump and did not notice that, under the conformal coating, the memory IC had just 8kbytes of space and I thought it had 32.
These are the intrinsic I am using at the moment.
// Find the next smallest power of 2 less than or equal to a
static inline uint32_t lfs_npw2(uint32_t a) {
    unsigned count = 0;
    // First a in the below condition
    // is for the case where a is 0
    if (a && !(a & (a - 1))) {
        return a;
    }
    while (a != 0)  {
        a >>= 1;
        count += 1;
    }
    return (1 << count);
}

// Count the number of trailing binary zeros in a
// lfs_ctz(0) may be undefined
static inline uint32_t lfs_ctz(uint32_t a) {
    int count = 0;
    while ((a & 1) == 0) {
        a = a >> 1;
        count++;
    }
    return (count);
}

// Count the number of binary ones in a
static inline uint32_t lfs_popc(uint32_t a) {
    unsigned int count = 0;
    while (a) {
      count += a & 1;
      a >>= 1;
    }
    return (count);
}

// Find the sequence comparison of a and b, this is the distance
// between a and b ignoring overflow
static inline int lfs_scmp(uint32_t a, uint32_t b) {
    return (int)(unsigned)(a - b);
}

// Convert from 32-bit little-endian to native order
static inline uint32_t lfs_fromle32(uint32_t a) {
    return (a);
}

// Convert to 32-bit little-endian from native order
static inline uint32_t lfs_tole32(uint32_t a) {
    return lfs_fromle32(a);
}


slowly remove doctrine hard dependency

OK, I have a plan, but we need to discuss it.
First, check https://github.com/makinacorpus/DbToolsBundle/pull/141 which unhardcode doctrine/dbal in many places.
Then, if we continue on this path, we need to remove the Doctrine\DBAL\Connection everywhere we use it, and replace it using MakinaCorpus\QueryBuilder\Bridge\Bridge instead. That's the easy one.
Now we are going to have one problem: backuppers and restorers are using Doctrine\Persistence\ManagerRegistry in order to create instances depending upon the database vendor. What I propose here would be:

Create a custom ConnectionConfig class, with all properties we need (name, username, password, host, port, vendor name, etc...).
Create a interface ConnectionRegistry { getSession(string $name): Bridge; getConfig(string $name): ConnectionConfig; } of our own, which would create the MakinaCorpus\QueryBuilder\Bridge\Bridge depending upon the ConnectionConfig internals.
For the Symfony bundle, we can implement this registry directly using the Doctrine\Persistence\ManagerRegistry and live with it, it's OK.
Use this custom registry in all our factories, in order to fetch either database session (for anonymizers for example) or the config object (for backkupers and restorers).

By doing that, we would have no DBAL hardcoded dependency left, only the glue code for Symfony.
In the long term, future: we can implement a custom one based upon a configuration file, which would use doctrine to actually create the connection, but in the future this would help in order create a standalone docker container or package.

I totally agree with this!

For the record, here is connection params from Doctrine/Dbal/Connection:  https://github.com/doctrine/dbal/blob/7fb00fdf7091a3ab0a4b6d0eed12170b4c7c2aa8/src/DriverManager.php#L46

Done !


Revise Application error message when time-out happens

~~A member user of the Campus Sustainability Hub gets an Application error when trying to attach images. Monika encountered this issue before when submitting a resources on a user's behalf, and it appears to be related to large file size. It would be helpful to:

increase the file size capacity if possible;
add help text to the image upload option on every form (possibly the file uploads field too) stating, "file size of all uploaded files and images for a single resource submission should not exceed xyz";~~
providing a more descriptive error message than "Application Error: An error occurred in the Application and your page could not be served. Please try again in a few moments. If you are the application owner, check the logs for details".

Here is the link to the resource where I encountered this issue as well. The error occurred when I tried to upload 5 images in the submission form, so I only uploaded two images. Then I went into Admin and uploaded the remaining three images.

Referenced in AASHE IT Support ticket titled, "Issue with uploading file to existing Hub Resource" sent on 5/26/16.

[ ] notify monika when these errors happen
[ ] update the application error page

Two options for updating help text - more and less detailed - I wanted to check with you all to see if the edits are okay or need revision before Ben implements. @jamstooks @juliandsmith @peltonc
Less detailed:
Server Time-out: A time-out error occurred and your submission could not be processed. Please contact<EMAIL_ADDRESS>for next steps in submitting your request.
More detailed:
Server Time-out: A time-out error occurred and your submission could not be processed. Please try resubmitting with smaller uploaded files or no files. You can also email<EMAIL_ADDRESS>to share file attachments and connect with AASHE staff about next steps.

We are getting angry feedback from members that are experiencing this issue. Can we please update the messaging ASAP? @jamstooks I'm fine with either of the above or a variation. Thanks!

Hey @jamstooks , I reread that and realized how b*tchy it sounded. That was not my intention so my apologies!

Other potential short-term solutions:

Julian's suggestion: "I wonder if we could simply limit the number of uploaded files in the interim to made this a bit less likely at least."
Temporarily updating the help-text to the images and file fields in the submission forms to specify a size limit or give warning.
Ensuring that a timed out submission can somehow be saved without the attachment so folks don't lose content (not sure if this has been already considered or is even feasible)

I've updated our "Application Error" page. Here's the new one:
https://hub-media.aashe.org/static/error_pages/application_error.html

I've created another ticket that gets at the heart of the issue: #339

I love the new error message but when I try to upload something with a large file, I only keep getting this type of error message from my browser:

I just tried to submit a resource with a large file and I did get the revised application error that Ben created. Julian, I'm not sure why your error message was different, is this something that happens more than once?
I also clicked "back" from the error page and was able to access the resource with the fields that I had completed previously (minus the upload files)

Yep, I tried three times and received the error message from my browser rather than the one that Ben created. The back button thing worked though, which is great. I don't know if matters, but the file I tried to upload is was an m4v file from last year's staff retreat - it was the biggest fine I could find easily.

AASHE Hub Award--Ball State University_attachments.pdf
Here's the one I used, maybe it's an invalid file format so there's a different message?

Do we still need this open since we also have #339

Yes. Thanks. Closing this in favor of #339.


feat: use CoreDNS instead of kube-dns

What this PR does / why we need it:
CoreDNS became the default DNS service for Kubernetes 1.13+ onwards.
btw, we can set the dns service as the argument in helm

kube-dns is still the default service name not coredns.

Sorry, I look that the svc of my other clusters is kube-dns. The cluster svc I installed with kubekey yesterday is coredns. I'm looking for the reason in kubekey

https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#is-dns-service-up
I think this is a bug for kubekey

@szpnygo look forward for more contributions~


any way to upload data from excel

Please make sure these boxes are checked before submitting your issue --- thank you!

[ ] Check Serenity Users Guide, including how-to and troubleshooting sections
[ ] Check Serenity WIKI in GitHub
[ ] Please have a look CHANGELOG.md for directions on breaking changes
[ ] Try a search for previous issues here, that might have similar case
[ ] Check your browsers's CONSOLE tab for errors, and include them here
[ ] Please report with as many details as possible to help us identify the problem

Configuration (Serenity / Serene version, OS, Browser used etc.)
Expected behavior
Actual behavior
Steps to reproduce the behavior

No, EPPlus can read Excel files though.

how to work on Bulk data upload by user any other way .. also any way to make textbox field disable from client side avoiding entering data from front end ..
One more thing thanks for giving this framework ..
this is one of the best opensource framework i have ever seen .

Thanks, but i don't have sample for bulk data upload.


keycloak-mysql-kubernetes

Hi Lukas,
Great example, got it to work with postgresql db.
In the future  do you intend to provide the same example but with mysql db but with keycloak quarkus?
Regards,
Tewa

Hi Tewa,
no I wasn't thinking about it. But I'm open to pull requests :)
best,
Łukasz

Hi Łukasz,
Alright no issue. I managed to achieve it with mysql db.
I can provide the example soon, if u you are still open to a pull request.
Thanks,
Tewa

Closing this issue due to no activity. Keycloak is considering PostgreSQL as a first class database so for now I will stick to PostgreSQL.


Setup caching layer for plots

To prevent overloading the database, a caching layer should be used for all the general plot views that don't require dynamic user input. See Django's cache framework.
Instead, plot views should only be updated whenever a new public chapter is released and the database is updated.

Closed by 414c7fe619d8770efd42b977aaf3c9dd3e3c6f34


atf-sh examples from quickstart or man page are broken

Plain tests and atf-c works fine, but when running kyua test with the atf-sh version it fails with this error:
atf_tests1.sh:__test_cases_list__ -> broken: Tester did not exit cleanly: kyua-atf-tester: Test program list did not return success [0.000s]

Instead of the list of tests, kyua list shows this:
atf_tests1.sh:__test_cases_list__

Both the atf_tests1.sh and the Kyuafile are exactly as shown in the quickstart guide. Also tried the example in atf-sh-api(3) but gets the exact same error.
This is on FreeBSD 10.3 with the kyua from ports.

Did you grant executable permissions to the atf_tests1.sh script?
Does /usr/local/bin/atf-sh exist? (I've fixed the sample code to mention #! /usr/bin/env atf-sh instead though, which should be more reliable.)

I'll consider this resolved due to the corresponding documentation fixes, which did not properly state the requirements of a shell test. Please try the new procedure and reopen this if it's still problematic.


Add python -m pip install poetry to make install. #10052

What problem are you trying to solve?
https://github.com/RasaHQ/rasa/issues/10052

We are waiting for the maintainer


Send ClickHouse internal metrics to Graphite

Guys this would be really great to have this feature out of the box as part of ClikcHouse and graphouse

Clickhouse already supports sending metrics to graphite. I created PR for a simple installation which includes also writing internal metrics #111
I was also wondering, do you have plans to include any metrics from graphouse itself?


Replace double quote to single quote

Goal
Let's use single quote only for sql literal string
SELECT 'literal';

Todo

[x] refactor: replace double quote to single quote

Next

fix translate to handle double qoute for Identifier

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

52 of 53 (98.11%)  changed or added relevant lines in 7 files are covered.
7 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.02%) to 97.86%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

core/src/ast/ast_literal.rs
2
3
66.67%

Files with Coverage Reduction
New Missed Lines
%

core/src/executor/aggregate/mod.rs
7
81.82%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
38495

Relevant Lines:
39337

💛  - Coveralls


droplets.deleteById throwing errors

DO's API documentation on deleting droplets states that

No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Not sure if the API was changed recently, but this is in turn throwing errors in https://github.com/matt-major/do-wrapper/blob/9e34020463a605877baa76befddbc913735f18d9/src/request-helper.ts#L58-L60
Really love using the library

@gurupras yes the API has changed in v4, I'm pulling in a fix for this now.


WIP rack awareness

CI is currently failing to push Docker images due to<EMAIL_ADDRESS>tl;dr: Upstream docker images need new GPG keys because of changed redirects of the Cassandra debian repo.

Added the wip label again because more work is needed to support other scenarios.

Added my latest WIP state. Currently testing locally, the CI hasn't been updated yet. The default parameters have been changed to reflect the test setup, because inputting YAML parameter values during kubectl kudo install isn't well supported by KUDO right now. The deployment is currently failing because the seed list hasn't been updated yet.


is_array() is True, but raise 'cannot use operator[] for object iterators'

Describe what you want to achieve.
There are two array A, B in the same size. In python I can use zip(A, B) to get elements from them at the same time. But I am not sure how to get it using this cpp.

Describe what you tried.
I first get the array size by 'A.size()', then I iterate the index from 0 to the size. And using A[idx] and B[idx] to get elements separately.
However, it raise

 terminate called after throwing an instance of 'nlohmann::detail::invalid_iterator'
  what():  [json.exception.invalid_iterator.208] cannot use operator[] for object iterators

And I am sure A and B is an array instead of object since I A.is_array() is True and B.is_array() is True too

Describe which system (OS, compiler) you are using.
LInux

Describe which version of the library you are using (release version, develop branch).
develop branch, 3.7.0

Can you provide a code example?


crash with OpenSSL 1.1.1g decode custom ASN1 stream on windows

built openssl 1.1.1g using vs2013 x86 command
perl Configure VC-WIN32
This code works well on Linux but it doesn't work on Windows. What's wrong?
declaration:
...
typedef struct SES_Signature_0031_st {
    TBS_Sign_0031* toSign;
    ASN1_BIT_STRING* signature;
} SES_Signature_0031;
DECLARE_ASN1_FUNCTIONS(SES_Signature_0031)

implement:
...
ASN1_SEQUENCE(SES_Signature_0031) = {
    ASN1_SIMPLE(SES_Signature_0031, toSign, TBS_Sign_0031),
    ASN1_SIMPLE(SES_Signature_0031, signature, ASN1_BIT_STRING)
}ASN1_SEQUENCE_END(SES_Signature_0031)

IMPLEMENT_ASN1_FUNCTIONS(SES_Signature_0031)

using:
//work well
std::string cert = read_file("./signer.cer", "rb+");
const unsigned char *p_cert_buffer = (unsigned char *)cert.c_str();

X509 *x509 = d2i_X509(nullptr, &p_cert_buffer, cert.length());
ASN1_INTEGER *serial_number = X509_get_serialNumber(x509);

std::cout << to_hex_string(serial_number->data, serial_number->length) << "\n";

custom stream:
std::string signed_value = read_file("./SignedValue.dat", "rb+");
const unsigned char *p_signed_value_buffer = (unsigned char *)signed_value.c_str();
//crashed when d2i
SES_Signature_0031 *signature_0031 = d2i_SES_Signature_0031(nullptr, &p_signed_value_buffer, signed_value.length());

stack info:
libcrypto-1_1.dll!ASN1_item_d2i(ASN1_VALUE_st * * pval, const unsigned char * * in, long len, const ASN1_ITEM_st * it)
libcrypto-1_1.dll!ASN1_item_ex_d2i(ASN1_VALUE_st * * pval, const unsigned char * * in, long len, const ASN1_ITEM_st * it, int tag, int aclass, char opt, ASN1_TLC_st * ctx)
libcrypto-1_1.dll!asn1_item_embed_d2i(ASN1_VALUE_st * * pval, const unsigned char * * in, long len, const ASN1_ITEM_st * it, int tag, int aclass, char opt, ASN1_TLC_st * ctx, int depth)
libcrypto-1_1.dll!ASN1_item_ex_new(ASN1_VALUE_st * * pval, const ASN1_ITEM_st * it)
libcrypto-1_1.dll!asn1_item_embed_new(ASN1_VALUE_st * * pval, const ASN1_ITEM_st * it, int embed)
libcrypto-1_1.dll!asn1_template_new(ASN1_VALUE_st * * pval, const ASN1_TEMPLATE_st * tt) line 204

tasn_new.c line 204:
const ASN1_ITEM *it = ASN1_ITEM_ptr(tt->item);
another usage:
std::string signed_value = read_file("./SignedValue.dat", "rb+");
unsigned char signed_value_buffer[10000] = { 0 };
int signed_value_buffer_len = 10000;
signed_value_buffer_len = signed_value.length();
memcpy(signed_value_buffer, signed_value.c_str(), signed_value.length());
//crashed when d2i
SES_Signature_0031 *signature_0031_2 = d2i_SES_Signature_0031(nullptr, (const unsigned char**)&signed_value_buffer, signed_value_buffer_len);

stack info:
libcrypto-1_1.dll!ASN1_item_d2i(ASN1_VALUE_st * * pval, const unsigned char * * in, long len, const ASN1_ITEM_st * it)
libcrypto-1_1.dll!ASN1_item_ex_d2i(ASN1_VALUE_st * * pval, const unsigned char * * in, long len, const ASN1_ITEM_st * it, int tag, int aclass, char opt, ASN1_TLC_st * ctx)
libcrypto-1_1.dll!asn1_item_embed_d2i(ASN1_VALUE_st * * pval, const unsigned char * * in, long len, const ASN1_ITEM_st * it, int tag, int aclass, char opt, ASN1_TLC_st * ctx, int depth)
libcrypto-1_1.dll!asn1_check_tlen(long * olen, int * otag, unsigned char * oclass, char * inf, char * cst, const unsigned char * * in, long len, int exptag, int expclass, char opt, ASN1_TLC_st * ctx)
libcrypto-1_1.dll!ASN1_get_object(const unsigned char * * pp, long * plength, int * ptag, int * pclass, long omax) line 55

asn1_lib.c line 55:
ret = (*p & V_ASN1_CONSTRUCTED);

Incorrect Linux 64-bit header file was used. After replacing the VC-Win32 compilation and installation header file, the solution was solved

Incorrect Linux 64-bit header file was used. After replacing the VC-Win32 compilation and installation header file, the solution was solved


global parameters clean up

declaration_request_termand  employee_request_term is not used at all.
Should be deleted
delete from global_parameters gp where gp.parameter in ('declaration_request_term','employee_request_term');

done on dev/demo/preprod.


Day 7

Good morning! Here's your coding interview problem for today.
This problem was asked by Facebook.
Given the mapping a = 1, b = 2, ... z = 26, and an encoded message, count the number of ways it can be decoded.
For example, the message '111' would give 3, since it could be decoded as 'aaa', 'ka', and 'ak'.
You can assume that the messages are decodable. For example, '001' is not allowed.

Hi Vaskoz!
I believe your solution will fail on "1111127".
It should expect 13 which consist of the following:
aaaaabg, aaakbg, aakabg, akaabg, kaaabg, kkabg, kakbg, akkbg, aaaalg, aaklg, akalg, kaalg, kklg

Hi @charlieysc !
I added your testcase to my "day 7" tests with this commit and the test appears to pass on your testcase with the code as-is.
Separately, I also rewrote my solution to make it easier to read. My previous solution processed the input from the back. My new solution processes the input from the front.
The simplification also resulted in a small speedup.
BEFORE:
go test -cover -race -bench=.
goos: darwin
goarch: amd64
pkg: github.com/vaskoz/dailycodingproblem-go/day7
BenchmarkNumberOfDecodings-12    	  200000	     10726 ns/op
PASS
coverage: 100.0% of statements
ok  	github.com/vaskoz/dailycodingproblem-go/day7	3.280s

AFTER:
go test -cover -race -bench=.
goos: darwin
goarch: amd64
pkg: github.com/vaskoz/dailycodingproblem-go/day7
BenchmarkNumberOfDecodings-12    	  200000	      9388 ns/op
PASS
coverage: 100.0% of statements
ok  	github.com/vaskoz/dailycodingproblem-go/day7	3.000s

Whoops! Mistake on my part. Yes, your solution works as-is.


How to get user object via access_token?

Can I get the user object via access token?

same question

It depends on what you have access to in the current scope.  If you're in the code of an authenticated view, your user has already been determined by django and the jwt plugin.  You'd do something like this:
def my_view(request):
    request.user

If all you have is the base64 encoded access token string, you can decode it using the AccessToken class:
from restframework_simplejwt.tokens import AccessToken

token_str = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX3BrIjoxLCJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiY29sZF9zdHVmZiI6IuKYgyIsImV4cCI6MTIzNDU2LCJqdGkiOiJmZDJmOWQ1ZTFhN2M0MmU4OTQ5MzVlMzYyYmNhOGJjYSJ9.NHlztMGER7UADHZJlxNG0WSi22a2KaYSfd1S-AuT7lU'
access_token = AccessToken(token_str)
user = User.objects.get(access_token['user_id'])

user = User.objects.get(id=access_token['user_id']) , works fine.
@davesque Thank you.

@xianfuxing How come the authentication framework isn't giving you a user object on the request?

@davesque
i meet this question , when i using Drf framework HiddenField
 user = serializers.HiddenField(default=serializers.CurrentUserDefault())
that wannt return  an user object.
Drf deal with code is

I want to use
 return serializer_field.context['request'].user.id
and
user = serializers.HiddenField(default=User.objects.filter(id=serializers.CurrentUserDefault()))
is fail.
I'm so sad now :(


publis to maven central

plz consider releasing this library so it can be easily used by dependency management tools

The code that was developed in this repository has been integrated into the more comprehensive Strata project. the strata-collect and stata-basics modules are the continuation of this code. See also the Strata website.
As such, we won't be releasing OG-Commons to maven. But we will release Strata to maven when we reach v1.0.


Update README.md

hi, I don't think you've done a good job with the pull request, I can't merged the changes you made to just the readme file, thank you.


Suggestion: alternative animation scrolling

I've been drilling with steno jig and I'm really enjoying it. I'm using it to learn the LightSpeed.
My biggest issue is that I'm prone to nausea → and the scrolling text moves at such a pace that seems to make me dizzy.
I can think of some solutions:

Make the animation instant
Add more natural acceleration so that the animation is still followable, but much quicker
Introduce a paragraph view like TypeRacer (I can understand that this wouldn't work with really large texts)

I'd be willing to help out, but I wanted to get feedback on your thoughts. My drilling is roughly 75 words per minute right now, in case you wanted to simulate what it looks like.

Yeah, the scrolling is kind of awful, but I had the crazy idea that I wanted to limit the amount of editing you could do and that was the first thing I got working. I think that what I'd ultimately like is to alternate lines of text with lines of typing as most "real" typing tutors do (e.g. https://youtu.be/DQ3B1PUwr0I?t=2m38s). Possibly with only two lines of text and scroll them up slowly and have them disappear?
Anyway. The main (and only) branch is named gh-pages instead of master so if you fork it, it will automatically serve the content under your account (i.e. morinted.github.io/steno-jig). There's already (sort of) a flag to scroll instantly: add a second parameter with the value true to the scrollTo call at line 142 of type-jig.js.
https://github.com/JoshuaGrams/steno-jig/blob/gh-pages/type-jig.js#L142
You probably also want to remove the - 40 at line 270 so they line up properly.
Or you could try fiddling with the ScrollBox's magic numbers (in that same file). If you find better values, let me know. The scrolling code is kind of a mess because I hacked around with it briefly to get the current behaviour when Jason commented on it and never cleaned it up. Also I'm not a fan of pulling in libraries that dwarf my project just to do simple things, so...yeah...it's just plain vanilla javascript. So...if you'd like to work on a better solution, be my guest, but I don't know that I'd wish the current code on most web devs. It's on my list, and I'll move it up toward the top now.
HTH, let me know how it goes, and all that.


bug(python): where SQL statement does not support parameters

LanceDB version
v0.8.2
What happened?
I want to find the embeddings for a set of documents by looking them up in the database. The documents may contain arbitrary characters and so I cannot interpolate them into an SQL statement without escaping them. The normal way to do this is to parameterize the query and pass in the documents as a separate parameter. The where function on the query builder does not support this.
I realise that I could write a custom embedder for the documents and all that. This is really a minimal example of the problem.
Are there known steps to reproduce?
import lancedb

db = lancedb.connect("database")
table = db.create_table("example", data=[{"document": "hello"}])

documents = [
    "hello",
    "'hello'",
    "`hello`",
]
documents_str = ", ".join(f"'{document}'" for document in documents)
table.search().where(f"document IN ({documents_str})").to_pandas()

This produces the error:
ValueError: LanceError(IO): sql parser error: Expected ), found: hello, [/home/runner/work/lance/lance/rust/lance/src/utils/sql.rs:100:8](http://<IP_ADDRESS>:8889/home/runner/work/lance/lance/rust/lance/src/utils/sql.rs#line=99)

Thanks, this is a good idea. I'm relabelling this as a feature. The upstream work is tracked in #2160


update contact but leave some issues created by mypy

Doing:

update user/contact
update wechaty_puppet interfaces
add tag, room, message, url_link component

I have pass pylint, pycodestyle and flake8 linting. But there have some linting issues from mypy. I also lint with pytype, which also gives import module issues.
I will update code later.

It's great to hear about your great progress!
Your code is good. I have just passed the CI on the master branch, please sync with that, and feel free to let me know if you have any questions.

There have some DEPRECATED funtions , for example Friendship.send 。
Is it necessary to keep it?

Great to see your new updates.
Cloud you please fix the conflict from this PR to the master branch, so that we can merge this PR for now?
After this PR is merged, we can develop different module in its own branch, and creat its own issue for better tracking.

@wj-Mcat I have resolved the conflicts between your branch and the latest master code.
Cloud you please make the current code pass the CI so that we can merge it first? After that, we will be able to start reviewing the current stage of our code progress.


Cluster - Individual Overview page (dashboard)

Overview Page (Dashboard)
https://xd.adobe.com/view/1c6215de-c2a2-424e-5748-bd49cd49606d-6a53/screen/8e167eb2-3bf1-4277-894b-a4386b424dcb/Cluster-Details-Main-Dashboard

Deployed -  bugs will be tracked in newly created issues

There are some outstanding issues that can be found by associated link, but otherwise ready for QA.

Changes to columns in Cluster Overview:

[ ] Move the Memory graphs to be under the CPU usage into the 2nd column
[ ] Move Pods to the 3rd column
[ ] Follow mock for the 4th column. Showing Total Nodes and removing Nodes from the roles. Reasoning: it was confusing that it could show 1 worker node, 1 etcd node, 1 control plane node, but there is really only 1 node.
@westlywright
Question: What currently populates the state in Unhealthy Nodes section?

@deniseschannon Sorry I missed your question. Currently only nodes that do not have a healthy or active state will be pushed into the unhealthy nodes section.

@deniseschannon
Numbers for Worker, etcd & Ctrl plane are missing now?  Is that by design?

Yes, by design/requirements, we've removed it.
Nodes don't translate directly to roles as one node can have multiple roles. It was looking weird when you would have 1 etcd, 1 worker, 1 control plane on the overview, but you really only had 1 node.
If any of the nodes are unhealthy, they will show up in the "Unhealthy Nodes" section, which lists which roles they play.

Detail Page
Opaque Type

[ ] Somehow the protip is underneath the Title

Overall, there are some design issues that will be taken care of other issues (KeyValue component https://github.com/rancher/dashboard/issues/589, masthead https://github.com/rancher/dashboard/issues/538#issuecomment-623722980)

Test local and downstream clusters
Test what unhealthy nodes and gatekeeper violations look like and show up as.

Note: Due to https://github.com/rancher/dashboard/issues/559 where you can't create OPA resources on master-head, you can use the master branch of the UI on a 2.4 setup.
change v3/settings/dashboard-index to point to "latest"
"latest" is for master
"release-2.4" is for 2.4

For the Unhealthy Nodes info box could we get a list or mapping of the different states that Rancher/K8s would consider a node Unhealthy. K8s has the following state types as per the documentation:
Condition Types:

MemoryPressure
DiskPressure
PIDPressure
Ready

So far the only one I could get into the Unhealthy info box was the Unavailable (not Ready)
I also tried DiskPressure but it doesn't appear in the info box for me:

@deniseschannon Perhaps we need to define the requirements better around what and what is not included in these boxes re: @izaac comment above. We were able to look at the disk pressure scenario and the state of these nodes is still healthy, which is why they don't show up in the Unhealthy Nodes box. The diskpressure warning among others are on the conditions for a node and do not change the state. Maybe these should be rendered elsewhere as we do in Ember Rancher?

Cordoned node is listed as Unhealthy node:

Noticed that we don't have a place for description of a cluster on the overview page.

@westlywright I'm curious to how we determined that the cordoned node was cordoned in this view because I know we had to explicitly set it in the node list view.

@deniseschannon We loop through all the nodes and look for nodes that are not healthy or active. This list can be expanded but I didn't want to do that until we had stronger requirements around what is included here.

There are still items to address

Description https://github.com/rancher/dashboard/issues/350#issuecomment-632919955
Nodes health

The sizzle page is going to be replacing this issue, so going to close this in favor of: https://github.com/rancher/dashboard/issues/819


Invite Existing Users

This branch resolves issue #180.

I tested this and the next step (as @veddster) mentioned is to make it so if you are an existing user it doesn't ask you to set a password for your account. It does not appear to create a new account and keeps your regular account, but the token you get in the e-mail link allows you to set a password.


Ranged interface: default first and last indexes documented wrong?

[@xkr47] In the Ranged api documentation (http://modules.ceylon-lang.org/repo/1/ceylon/language/1.2.0/module-doc/api/Ranged.type.html) I wonder if there is a small error in the documentation of the examples.
In the documentation for span ranges, one can find:

The first index may be omitted, implying that the subrange extends forward from the smallest possible index (in this case runtime.minIntegerValue-1) to the given index.
The last index may be omitted, implying that the subrange extends forward from the given index to the largest possible index (in this case runtime.maxIntegerValue+1).

Since for a span the first and last index are both inclusive, it would seem more correct to use runtime.minIntegerValue and runtime.maxIntegerValue as defaults for first and last index respectively.
[Migrated from ceylon/ceylon.language#793]

Fixed, thanks.


Fix for Issue #673

Hi.
As discussed in the Issue #673 here is the PR which solves that issue.
Tests are still passing.

Great!


Vast for IE <9

Is the vast plugin supported for browsers that are flash only? I saw that vast urls are loaded with cross domain ajax, however this seems to be failing on these older IE browsers.
It fails on my own tests and the test page hosted on mediaelementjs.com - http://mediaelementjs.com/tests/mep-vast.html
in IE9, the main video starts playing as the vast request fails, both directly and through yahoo proxy.

@gfreeau Closing old issues. If you'd like to reopen this, let us know. Thanks!


Filter OrderBy behaves differently when expression changed to Array from String

I am trying to order list by using filter - 'orderBy' on property 'name' of following type of data
$scope.friends = [ { name: 'Adam'}, { name: 'Mary'}, { name: 'alpha'}, { name: 'beta'}....
When in predicate I pass string expression with 'name' it is sorting it as expected but when I update predicate with array expression it is sorting names with upper-case followed by lower-cased names.
Here is plunker to test this:
http://plnkr.co/edit/rkeOevNXvQK0Heh3WaXC?p=preview

That is not an array. Should be ['name'] rather than '[name]'. I'm not sure why it behaves the way it does for your example, but it is undefined behavior at best.

@Mosho1 is right. It is just returning the items in the original order (because there is no [name] property to short by.

Thanks for comment @Mosho1. It's working now creating proper array.


Choice of Segmentation Head

Hi,
What was the rational behind trying a linear, +ms, and Mask2Former segmentation head for image segmentation as the downstream task? Could a different segmentation be used instead?
Thanks!

have you tried to code it up?
I mean the env they have given is not working. only option seems to be the Huggingface version.

I have tried to code it up, but I am getting lost in how the output from the transformer backbone actually gets to the segmentation head. I was wondering if there was something special about linear, +ms, and Mask2Former, or is the pipeline from transformer backbone to segmentation head generally the same regardless of segmentation head?

this Linear probing of DINOv2 for semantic segmentation
try this and https://github.com/facebookresearch/dinov2/pull/370
notebook might help out with the inference
for the coding part even I am stumped

btw mind if we connect over mail?

Thanks. Sure we can connect over mail.


I have set the openresty in settings, but it still warning 'ngx' as 'undefined-global'

setting snippet:
"Lua.workspace.library": [   "${3rd}/OpenResty/library" ],

I cannot reproduce this, please provide your log, see https://github.com/sumneko/lua-language-server/wiki/Default-log-path


Latest installation instructions

I was trying to experiment with the ProteoWizard tools (specifically Skyline and MSConverGUI). I didn't find the installation instructions that one can follow to setup the required environment for the git repo. I want to do the setup in the local system.
I came to know across the Skyline installation instruction given here https://skyline.ms/wiki/home/software/Skyline/page.view?name=HowToBuildSkylineTip.
I was able to run the Skyline from the solution file, but the execution of the MSConvert from the solution file failed. It failed with error like CLI could not be imported and many other errors.
I also came across ProteoWizard developer page at https://proteowizard.sourceforge.io/doc_developers.html but it also has old instructions.
Are there different instruction to build the pwiz and MSConvert solution file.
Thanks!

When I want to build MSConvert and SeeMS, the target that I tell quickbuild.bat to build is "executables".
The commandline I use is:
quickbuild.bat --i-agree-to-the-vendor-licenses -j2 toolset=msvc-14.3 address-model=64 --without-compassxtract executables
My machine is configured to be able to build Skyline, and there was no additional setup required to build MSConvert and SeeMS.
If you are still having trouble building you should attach your build output and we may be able to figure out what is going wrong.

Thanks @nickshulman and @chambm,
Following your suggestions, I did a fresh installation, cloned the repo, and ran the above command.
Build was still failing due to CustomDataSourceDialog import error, so after investigation I changed the pwiz_tools/MSConvertGUI/CustomDataSourceDialog/CustomDataSourceDialog.csproj file from
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> to
<TargetFrameworkVersion>4.7.2</TargetFrameworkVersion> and it worked in the release mode.
I want to execute the project in the bebug mode. Actually, I want to capture the input of the OverlapMultiplexer that is defined in the Skyline. Also, when I import Skyline in MSConvert then it doesn't works. Any suggestions on it would be helpful.

We recommend that you avoid the class "OverlapDemultiplexer" in Skyline.
That class was written before we understood the proper way to demultiplex overlapping isolation windows.
The demultiplexing that MSConvert does is much better than the thing that Skyline knows how to do.
That is, in the "Edit Isolation Scheme" dialog in Skyline, you should never choose anything other than "None" in the "Deconvolution" dropdown.
Instead, you should use MSConvert to generate demultiplexed .mzML files, and Skyline should not be told that the isolation windows ever overlapped.

OK, thanks @nickshulman it was really helpful. One more thing, is there any way to plot the original multiplexed input and demultiplexed output generated by MSConvert. I checked SeeMS, but didn't found any option for it.
Thanks!

The demultiplexing generates a different number of spectra, so it's tricky to directly compare them. But SeeMS will let you do it with a bit of work. The right click menu in SeeMS' spectrum list lets you overlay or stack spectrum graphs (on the current graph or a new tab). So if you view a spectrum in the original file, then go to the demultiplexed file and find the same spectrum (it will have the same "scan=XXX" number, there will be two versions (demux=0 and demux=1 IIRC). Select both demux=0 and demux=1 rows and right click, then select "Overlap on current graph" or "Stack on current graph".


ClickHouse IPv6 error

When trying to query a ClickHouse database from SQL Lab with an IPv6 field, Superset gives the following error:
Could not convert ::ffff:0000:0000 with type IPv6Address: did not recognize Python value type when inferring an Arrow data type

(IP address data replaced with 0s). I can't see any stack traces in the console output.
How to reproduce the bug

Create a new ClickHouse database
Create a table with at least one IPv6 field
Insert some data
Add the database to Superset
Go to SQL Lab and try to query the data via SELECT * FROM ...

Environment
(please complete the following information):

superset version: Superset 0.999.0dev
python version: Python 3.6.9
node.js version: v10.19.0
npm version: 6.13.4

Checklist
Make sure these boxes are checked before submitting your issue - thank you!

[X] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[X] I have reproduced the issue with at least the latest released version of superset.
[X] I have checked the issue tracker for the same issue and I haven't found one similar.

@kanadaj is this still an issue? I know that since you opened this issue we've bumped the version of PyArrow and there's been a few newer versions of the clickhouse-sqlalchemy.

@john-bodley I've no idea, the issue was around for long enough that ultimately we've switched to using Metabase for querying ClickHouse for an online interface


Add Mattermost Role

This role will deploy a single Mattermost instance to the Nomad cluster and run a database alongside it.
It is configured to use one CSI volume for both Mattermost and Postgres.
Using Gitlab for authentication can also be configured if desired.
As such, some changes to the Gitlab role are also included as part of this PR.
Those changes have been designed to allow other services to hook into Gitlab for authentication also if the need arises.
Currently, Gitlab SSO requires the use of the Production Lets Encrypt server. A future pull request will seek to fix this issue.

Closing as PR includes unmerged commits from Gitlab runners PR.


Reth is always behind tip of chain

Describe the bug
We've discovered that after the initial syncing of Reth, it never keeps up with tip of chain. For example, we are consistently noticing that Reth is 30-100 blocks behind by making a eth_blockNumber call and comparing that value to the latest block reported by Etherscan. When the node hits about 100 blocks behind, we start seeing fork choice updated messages entering the logs bringing the node down to about 30 blocks behind. Once it's at 30 behind or so, it stops syncing until we're about 100 behind, and the cycle continues.
We've tried running both Lighthouse and Nimbus (currently in use) to rule the beacon node out, but we aren't noticing any differences in results between the two.

Some further investigation leads us to believe that we're actually only syncing to the last finalized block, and not the actual latest block, like reported by Cloudflare's ETH node.
How can we debug this further?
Steps to reproduce
Steps to reproduce:

Run a Reth node, and let it sync to 100%. We've used a combination flags while debugging and they don't have any effect on the result here. But for the sake of, the example here can be used to replicate.
Run Lighthouse exactly as described in the docs.

After the node is synced, we will only keep up with the last finalized block and not the tip of chain.
Node logs
No response
Platform(s)
Linux (x86)
What version/commit are you on?
0.1.0-alpha.4
What database version are you on?
Current database version: 1
Local database version: 1
If you've built Reth from source, provide the full command you used
No response
Code of Conduct

[X] I agree to follow the Code of Conduct

can you please add the reth logs when you notice it's behind

yep, just updated the issue. we see those forkchoice updated messages, but it only reaches the last finalized block when it stops syncing

Aug 07 20:42:00 reth reth[2337510]: 2023-08-07T20:42:00.223800Z  INFO make_canonical{block_hash=0xeb5d259294d69bc35bc64e501114c6279d21e5acc03061fc6d57562a783ef7c1}: blockchain_tree: Committing new canonical chain: [(17865452, 0xeb5d259294d69bc35bc64e501114c6279d21e5acc03061fc6d57562a783ef7c1)]
Aug 07 20:42:00 reth reth[2337510]: 2023-08-07T20:42:00.431454Z  INFO reth::node::events: Forkchoice updated head_block_hash=0xeb5d259294d69bc35bc64e501114c6279d21e5acc03061fc6d57562a783ef7c1 safe_block_hash=0x9a3c21042a056950faf9123691e41832b61687410da89336f5af7cf3b3b0a2b4 finalized_block_hash=0x7ae69323fd0225237f9da85d89a1c310fa44459b51604af8208b20d7c00275b9 status=Valid

hmm, it says it applied the FCU and reached the canonical tip here

can you share the logs of an entire cycle?
this looks like, for some reason, it fails to close the final epoch in live sync and falls back to range sync which targets the finalized block.
there are still some performance issues when we make the transition to live sync
what's your CPU and disk?

we're running a c3.large.x86 on latitude - 256gb mem, 24 core amd epyc 7443p, dual 2 tb samsung pm9a3 nvme u.2 drives. i can grab logs in a minute

here's our reth logs, it's been running for about a day, so it's quite large: https://gist.github.com/mattmalec/3c4241a5ebb1d6276e29c8c8486d5d0c

there's something weird going on
Aug 07 14:59:07 reth reth[2337510]: 2023-08-07T14:59:07.751373Z  INFO try_insert_validated_block{block=(17863791, 0x67423ec136406afdd09760bd65b561c5b945360155b6f69190e6c407fa2518fe)}: blockchain_tree: return=Ok(Valid)
Aug 07 14:59:07 reth reth[2337510]: 2023-08-07T14:59:07.751426Z  INFO reth::node::events: Block added to canonical chain number=17863791 hash=0x67423ec136406afdd09760bd65b561c5b945360155b6f69190e6c407fa2518fe
Aug 07 14:59:07 reth reth[2337510]: 2023-08-07T14:59:07.965730Z  INFO make_canonical{block_hash=0x67423ec136406afdd09760bd65b561c5b945360155b6f69190e6c407fa2518fe}: blockchain_tree: Committing new canonical chain: [(17863791, 0x67423ec136406afdd09760bd65b561c5b945360155b6f69190e6c407fa2518fe)]
Aug 07 14:59:08 reth reth[2337510]: 2023-08-07T14:59:08.193376Z  INFO reth::node::events: Forkchoice updated head_block_hash=0x67423ec136406afdd09760bd65b561c5b945360155b6f69190e6c407fa2518fe safe_block_hash=0xb1ae7f8c0bb555b1915d1ef57aa66547b0515963a842a165d357c275a560ce07 finalized_block_hash=0x000e4a6150538544e050438465b103dc8610d49e64175219de304ec989a3e5c9 status=Valid

 // -- snip --

Aug 07 15:01:24 reth reth[2337510]: 2023-08-07T15:01:24.057153Z  WARN reth::node::events: Beacon client online, but no consensus updates received for a while. Please fix your beacon client to follow the chain! period=136.091449051s

it starts out fine and all payloads and FCU are applied after restart, then incoming messages seem to stop and it only starts receiving new FCU 10 minutes later:
Aug 07 15:11:43 reth reth[2337510]: 2023-08-07T15:11:43.087347Z  INFO try_insert_validated_block{block=(17863792, 0x90abaa3678226df393857325f75fe4564dee48bf9e94e22870845ec46b0de3ee)}: blockchain_tree: return=Ok(Valid)
Aug 07 15:11:43 reth reth[2337510]: 2023-08-07T15:11:43.087403Z  INFO reth::node::events: Block added to canonical chain number=17863792 hash=0x90abaa3678226df393857325f75fe4564dee48bf9e94e22870845ec46b0de3ee
Aug 07 15:11:43 reth reth[2337510]: 2023-08-07T15:11:43.287070Z  INFO make_canonical{block_hash=0x90abaa3678226df393857325f75fe4564dee48bf9e94e22870845ec46b0de3ee}: blockchain_tree: Committing new canonical chain: [(17863792, 0x90abaa3678226df393857325f75fe4564dee48bf9e94e22870845ec46b0de3ee)]
Aug 07 15:11:43 reth reth[2337510]: 2023-08-07T15:11:43.561338Z  INFO reth::node::events: Forkchoice updated head_block_hash=0x90abaa3678226df393857325f75fe4564dee48bf9e94e22870845ec46b0de3ee safe_block_hash=0xb1ae7f8c0bb555b1915d1ef57aa66547b0515963a842a165d357c275a560ce07 finalized_block_hash=0x000e4a6150538544e050438465b103dc8610d49e64175219de304ec989a3e5c9 status=Valid

at which point it should be far behind but reth is still receiving payloads+FCU in order from the CL for a while until the it stops again...
can you please also share the lighthouse logs?
I wonder if the CL requests just aren't received for some reason

here's our lighthouse logs - towards the end you may see your connection errors, but that's because we turned off the reth node at that point.
i forget what triggered the node to receive new blocks from this, but since we only hit the finalized block on both nimbus (which we're using now) and lighthouse, i wasn't sure if it was a consensus layer problem.
https://gist.github.com/mattmalec/2ccda91175933b0488d50d3cdf9f4576

Same issue here:
2023-08-14T03:16:19.497566Z  INFO reth::cli: Status connected_peers=111 stage=Headers checkpoint=100.0% eta=unknown
2023-08-14T03:16:24.217176Z  INFO reth::node::events: Forkchoice updated head_block_hash=0x9748f9bc75c166cc125b0d37692d04352a8e38bfcabd7b4d37d0cd3918a36057 safe_block_hash=0x34b2a69911534bc85256a0d3efc692e8f743ad1c5d1a19c3dc1b24173ebddacd finalized_block_hash=0x2c4b965861adca57a023c2d1e8868cde811898cfa13ea4c8fc746fcf6cec0d07 status=Syncing
2023-08-14T03:16:29.794212Z  INFO net: Session established remote_addr=<IP_ADDRESS>:30303 client_version=Geth/v1.12.0-stable-e501b3b0/linux-amd64/go1.20.4 peer_id=0x1ab0ec1296572c41bab8050992d58743cad4749833410dcd864b7c333eda78ac5a303c9c61f78102271520ada77b2bdaf4b0a7b0c6e8324bf069aba5c62133e4 total_active=112
2023-08-14T03:16:36.337245Z  INFO reth::node::events: Forkchoice updated head_block_hash=0xfe171978e420882c32bb688204941dc7b6df6cd704577165d91cf495c4b567cf safe_block_hash=0x34b2a69911534bc85256a0d3efc692e8f743ad1c5d1a19c3dc1b24173ebddacd finalized_block_hash=0x2c4b965861adca57a023c2d1e8868cde811898cfa13ea4c8fc746fcf6cec0d07 status=Syncing
2023-08-14T03:16:48.770963Z  INFO reth::node::events: Forkchoice updated head_block_hash=0x980c8458d05bcd98a9c22bb20db6b564c9e037a16b4438c839dc093abd8ad702 safe_block_hash=0x34b2a69911534bc85256a0d3efc692e8f743ad1c5d1a19c3dc1b24173ebddacd finalized_block_hash=0x2c4b965861adca57a023c2d1e8868cde811898cfa13ea4c8fc746fcf6cec0d07 status=Syncing
2023-08-14T03:16:49.497071Z  INFO reth::cli: Status connected_peers=112 stage=Headers checkpoint=100.0% eta=unknown
2023-08-14T03:17:01.183394Z  INFO reth::node::events: Forkchoice updated head_block_hash=0x58267e8966fb47f6cacf335d3a45041f9dec291f557eb5fb0413c50e33f73ab3 safe_block_hash=0x34b2a69911534bc85256a0d3efc692e8f743ad1c5d1a19c3dc1b24173ebddacd finalized_block_hash=0x2c4b965861adca57a023c2d1e8868cde811898cfa13ea4c8fc746fcf6cec0d07 status=Syncing
2023-08-14T03:17:13.085994Z  INFO reth::node::events: Forkchoice updated head_block_hash=0x9bc5a79bede4bed8f880062e6f21f180a0221d40c4faea767c1b6eed09c52868 safe_block_hash=0x34b2a69911534bc85256a0d3efc692e8f743ad1c5d1a19c3dc1b24173ebddacd finalized_block_hash=0x2c4b965861adca57a023c2d1e8868cde811898cfa13ea4c8fc746fcf6cec0d07 status=Syncing
2023-08-14T03:17:19.497880Z  INFO reth::cli: Status connected_peers=112 stage=Headers checkpoint=100.0% eta=unknown
2023-08-14T03:17:24.535271Z  INFO reth::node::events: Forkchoice updated head_block_hash=0xa27bdde8e8c601004d695dcf003963d4bbc56d96d9cd40ea3166607a29378f90 safe_block_hash=0x34b2a69911534bc85256a0d3efc692e8f743ad1c5d1a19c3dc1b24173ebddacd finalized_block_hash=0x2c4b965861adca57a023c2d1e8868cde811898cfa13ea4c8fc746fcf6cec0d07 status=Syncing
2023-08-14T03:17:48.953307Z  INFO reth::node::events: Forkchoice updated head_block_hash=0xca90d1043b31e9e525c181fbae6a84cd54bfbd94ade403925d99b30728589470 safe_block_hash=0x34b2a69911534bc85256a0d3efc692e8f743ad1c5d1a19c3dc1b24173ebddacd finalized_block_hash=0x2c4b965861adca57a023c2d1e8868cde811898cfa13ea4c8fc746fcf6cec0d07 status=Syncing
2023-08-14T03:17:49.496819Z  INFO reth::cli: Status connected_peers=112 stage=Headers checkpoint=100.0% eta=unknown
2023-08-14T03:18:00.477647Z  INFO reth::node::events: Forkchoice updated head_block_hash=0xc7f95bee37ba2552248433fd1bc437f4ebd3a3dc6b4e0cfc877a7828e66acb32 safe_block_hash=0x34b2a69911534bc85256a0d3efc692e8f743ad1c5d1a19c3dc1b24173ebddacd finalized_block_hash=0x2c4b965861adca57a023c2d1e8868cde811898cfa13ea4c8fc746fcf6cec0d07 status=Syncing


Cargo Console's Magic Teleporting Circuit Board

Step 1. Attempt to deconstruct the cargo console inside cargo itself.
Step 2. Get to the step where you crowbar out the circuit board.
Step 3. The circuit board will magically materialize on the cargo console on the bridge for some reason instead of on the computer in cargo itself.

I should mention that right after discovering this bug, I also found that deconstructing the cargo console can also cause other computers on the station to randomly spawn circuit boards - I found one on the communications console in the captain's office and one on the arcade machine in the bar.

Fixed.


Align Spake2 protocol message type definition with spec

Problem
Currently, transport layer still use the internal temporary message type definition for protocol Spake2

Summary of Changes
Align Spake2 protocol message type definition with spec 0.7.

LGTM. I have this PR which updates the pairing state machine, and associated message types: #4166.
Maybe you can rebase the current PR on top of #4166 once it merges. Or, if this one merges first, I can rebase the other PR.

Got it, thanks!

@yufengwangca Please merge on top of #4166  ?

@yufengwangca Please merge on top of #4166 ?

Done


Does not properly handle 'pause_publication'

The plugin does not properly handle the pause_publication message.

(This is an infinite loop and will just fill up the log file).
Ideally, the server should have closed the connection (and sent the channel_closed message).
Since that doesn't appear to be happening, it would be nice if the client could at least handle the pause_publication message.
In my use case, it would be best if this would exit the plugin.
Steps to recreate:

Enable debug logging (not sure if this is required, but obviously I have it enabled)
Start an ECS task where the command is sleep 86400 (you can probably set something lower)
run an ExecuteCommand against that task with /bin/bash in interactive mode
Wait for the sleep timer to expire
plugin will remain running, but does not respond to input.
log files will accumulate until you forcibly terminate the plugin.

Hi webdestroya@,
The Session Manager service uses start_publication and pause_publication messages to establish data channel connections with Session Manager plugin and SSM agent. When there is a delay from either the SSM agent or the Session Manager plugin, customers may see additional log lines identifying these messages.
We understand that these superfluous logs due to the resend of pause_publication messages can fill up the log file. The service team is working on a change to improve the logging experience and remove the redundant logs, and will release the change in the upcoming Session Manager plugin release.
Cheers,
Yuting

This isn't really a superfluous logging issue. The program will not progress because it cannot acknowledge the message. So it completely stalls out and just does an infinite loop.
Also, I would argue that "pause_publication" is the wrong response to an ECS task being killed. There is nothing paused, it's never going to start, the task is dead. Why would it not send channel_closed ?

How did you "kill" the ECS task? Was it a call to ECS StopTask API, or directly killing the containers on the instance?

Using the ECS StopTask API. (These containers are all Fargate)

Thanks<EMAIL_ADDRESS>I'm able to reproduce the issue. The service team will work on a fix and update you once it's alive. In the meantime, you could try to configure "IdleSessionTimeout" in Session Manager preferences. The session will close if the session hangs with no activities up till this timeout. https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-configure-preferences.html

@yuting-fan that setting is not respected for ECS ExecuteCommand sessions. It will boot you after 20 minutes regardless of what you set that setting to.

We released a fix to time out hanging session if there is no response from the remote server in 5 minutes. Please upgrade to the latest version and try again https://github.com/aws/session-manager-plugin/releases/tag/1.2.295.0.


Fix Dockerfile

Tried to do the docker install and wasn't working, the problem was in the ports on the dockerfile. Works fine for me now

Good job, merged!


Support a way to attach individual tables from hive metastore while using attachdb

Is your feature request related to a problem? Please describe.
 Currently, alluxio catalog service supports `alluxio table attachdb` to attach existing tables from hive metastore. But this command either tries to attach all tables from a schema in hive metastore, or we could use `catalog.db.ignore.udb.tables`  to ignore tables.

 Problem:
  1. So when there are a lot of tables in a particular schema in hive-metastore and when only a few set of tables need to be attached, the `catalog.db.ignore.udb.tables` list becomes very huge
  2. Even if specify the huge list of ignore tables, at a later point if cannot attach a subset of table from the ignored tables. Because `alluxio table sync` does not support option to ignore or add tables.

Describe the solution you'd like
 1. Support an option like `catalog.db.add.udb.table` for `alluxio table attachdb` to attach only specific list of tables from a hive schema
                                                  [OR]
 2. support an `catalog.db.ignore.udb.tables` option for `alluxio table sync`.

Describe alternatives you've considered
 The only alternative for this now is to do a detachdb and attachdb whenever I have to attach a subset of tables for an already attached schema.

thanks @sn00rlacs  for the proposal. We will get back to you later.

@sn00rlacs this is not on the priority list in future releases from our team based on my discussion.
Alternatively, if you are interested to contribute, we're happy to support you and collaborate on this as a community contribution.
Let me know your thoughts

@apc999 Sure can give it a try, this is a blocker kind of feature for our use case.

Will close it for now, feel free to reopen it and contact us if this is still valid.


Supporting buffer input for custom and lambdas

Provides support for #500 -> so long as the lamba accepts a const std::string_view or const std::string&


[CP] Wait for non-empty layout in platform view placeholder

issue_link
https://github.com/flutter/flutter/issues/111255
Commit Hash
5c38125
Target
stable
pr_link
https://github.com/flutter/flutter/pull/113040
Impacted Users
Apps trying to use platform views in deferred-layout scenarios
Impact Description
Throws an assertion error, and the platform view never appears.
Workaround
Requires changing layout to prevent having a transient empty size, which can be non-trivial.
Risk
low
Test Coverage
yes
Validation Steps
Run the sample in https://github.com/flutter/flutter/issues/111255. The webview should appear.

@mossmana could you take a look at this cherry-pick request?

@justinmc could you review this cherry-pick?

I just LGTM'ed the PR.  Looks low-risk and worthy of cherry pick, though I'm no platform view expert.


Update documented default TLS version

The following section appears to be out of date. Azure Storage Accounts currently default to TLS 1.2.
By default, Azure Storage accounts permit clients to send and receive data with the oldest version of TLS, TLS 1.0, and above. To enforce stricter security measures, you can configure your storage account to require that clients send and receive data with a newer version of TLS. If a storage account requires a minimum version of TLS, then any requests made with an older version will fail.

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

ID: 0d6c9dfa-cb51-8e98-ce3e-68cfeb50c9dd
Version Independent ID: 5364e068-0237-bbfd-e8a3-cb83ed210585
Content: Enforce a minimum required version of Transport Layer Security (TLS) for incoming requests - Azure Storage
Content Source: articles/storage/common/transport-layer-security-configure-minimum-version.md
Service: storage
Sub-service: common
GitHub Login: @tamram
Microsoft Alias: tamram

Thanks for reporting this. I have assigned the issue to the content author to investigate further and update the document as appropriate.

@damone1200 - Thanks for your feedback. The min TLS version only defaults to 1.2 if you create a new storage account with the portal. If you create it with any other tool, it defaults to null, which means that it will accept requests made with 1.0 and higher.
Although the documentation does say all of this, I have tried to further clarify the behavior. The change should go live by tomorrow.
#please-close

#please-close


Edge Chromium required ClickOnce flag setting

Hello,
Please add this additional information for steps on how to enable ClickOnce for the new Microsoft Edge based on Chromium under the "Issue 1: Report Designer doesn't start when you select New or Edit" section. Please change the text as needed for formatting consistency:

Open a new browser tab in Microsoft Edge.
Enter edge://flags and click enter.
Search for the ClickOnce Support option. You can search for it, or try this direct link: edge://flags/#edge-click-once
Set the drop-down to Enabled.
Click Restart Browser option.

Please let me know if you have any questions.

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

ID: 039e1ed0-5b6b-04b9-4a76-9588eeeefc65
Version Independent ID: 0c019c41-e6b1-2ae6-89e5-cd4cddef1d3f
Content: Financial reporting overview - Finance | Dynamics 365
Content Source: articles/finance/general-ledger/financial-reporting-getting-started.md
Service: dynamics-ax-applications
Product: ****
Technology: ****
GitHub Login: @aprilolson
Microsoft Alias: aolson

@jopankow, thanks for the feedback.
@aprilolson, please re-assign, if needed.

Bug 511735 logged to track this issue.

@tonyafehr , I've added the suggested text above to the Content Source as noted below, please note that I added it to the bottom and left the instructions on how to do the same in IE.

If you use the Microsoft Edge based on Chrome browser, you must install a ClickOnce extension in order to download the Report Designer client. If you are running incognito mode, make sure the ClickOnce extension is enabled for incognito mode.

Open a new browser tab in Microsoft Edge.
Enter edge://flags and click enter.
Search for the ClickOnce Support option. You can search for it, or try this direct link: edge://flags/#edge-click-once
Set the drop-down to Enabled.
Click Restart Browser option..

Hi @jinniew and @tonyafehr . I didn't catch this before but I just noticed the steps are incorrect when reviewing the instructions for a customer.
These sentences are wrong: "If you use the Microsoft Edge based on Chrome browser, you must install a ClickOnce extension in order to download the Report Designer client. If you are running incognito mode, make sure the ClickOnce extension is enabled for incognito mode."
It looks like two separate unrelated items got combined together. There needs to be two separate bullet points here:

For Chrome. Chrome does not have built-in support for ClickOnce. So you must install a Chrome ClickOnce extension. The bullet point for Chrome should read:

If using the Chrome browser, you must install a ClickOnce extension in order to download the Report Designer client. If you are running Chrome in incognito mode, make sure the ClickOnce extension is enabled for incognito mode. Refer to the Note here https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/get-started/system-requirements for information on the Chrome ClickOnce Extension.

For the Microsoft Edge based on Chromium (not the legacy version of Edge) bullet point. You do not need to install a ClickOnce extension for Edge Chromium, but you must enable the ClickOnce flag. These steps are accurate for Edge Chromium:

If using the Microsoft Edge based on Chromium browser, not Edge Legacy, you must enable the ClickOnce flag:

i. Open a new browser tab in Microsoft Edge based on Chromium.
ii. Enter edge://flags and click enter.
iii. Search for the ClickOnce Support option. You can search for it, or try this direct link: edge://flags/#edge-click-once
iv. Set the drop-down to Enabled.
v. Click Restart Browser option.
These two separate items need their own bullet points and cannot be combined.

@jopankow, thanks for the info.
@jinniew, please review. Thanks!


Please build JAR with OSGi support

It'd be great to build the JAR so its MANIFEST is OSGi-enhanced.
In case of building with Maven it's done by adding a build plugin:
        <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <extensions>true</extensions>
        </plugin>

and by specifying the packaging:
<packaging>bundle</packaging>

I have never done that. For normal JAR usage this should change nothing, right?

Yes, it's transparent for users of the JAR.
The effect of the plugin is that a few lines (important for OSGi) are added to the MANIFEST.MF

could you check the latest snapshot


JS error when linked from no-image

If link to popup image is not attached to IMG tag you will got error, because  tag dont have [ALT] attribute:
Certificate
Solution is: check "description" variable, before using them:
captionOn = function () {
var description = $('a[href="' + $('#imagelightbox').attr('src') + '"] img').attr('alt');
if (description){
if (description.length > 0)
$('' + description + '').appendTo('body');
}
}

Hello. I am no longer developing this project. There is a much more active and generally better version of it here. You should use that instead.