Docker images model

create model for managing available docker images for jobs
the ufdl-core-app/src/ufdl/core_app/migrations/docker_images directory contains CSV file with currently available images
create migration to load CSV into database
API details
restricted to admin users

Added cpu column to CSV file. Please add a cpu bool flag to the model.

This is implemented as of commit 73f74175fda1ae543c380f37c57717c70cdb872f


Enhance local html inspect scheduler

Fix issue where date filter is reset when showing logs
Add support for keeping date filter when changing schedule runner
Ensure all input elements have the same look and feel
Fix partly rounded borders for buttons
Add reset capability on date filter for run logs

UI changes
Before:

After:


[Looker] Error when run ingest metadata from Looker

Affected module
Ingestion Framework
Describe the bug
A clear and concise description of what the bug is.
[2023-08-29, 06:07:13 UTC] {taskinstance.py:1824} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 181, in execute
    return_value = self.execute_callable()
  File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 198, in execute_callable
    return self.python_callable(*self.op_args, **self.op_kwargs)
  File "/home/airflow/.local/lib/python3.9/site-packages/openmetadata_managed_apis/workflows/ingestion/common.py", line 221, in metadata_ingestion_workflow
    workflow.execute()
  File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/api/workflow.py", line 215, in execute
    raise err
  File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/api/workflow.py", line 196, in execute
    for record in self.source.next_record():
  File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 132, in next_record
    yield from self.process_nodes(get_topology_root(self.topology))
  File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 98, in process_nodes
    yield from self.process_nodes(child_nodes)
  File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 83, in process_nodes
    yield from self.sink_request(
  File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 194, in sink_request
    entity_fqn = self.fqn_from_context(
  File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/dashboard/dashboard_service.py", line 491, in fqn_from_context
    *context_names, entity_request.name.__root__
AttributeError: 'AddLineageRequest' object has no attribute 'name'

To Reproduce
Error when ingesting lineage metadata from looker which specify LookML repo
Expected behavior
The pipeline run successfully
Version:

OS: [e.g. iOS]
Python version:
OpenMetadata version: 1.1.1
OpenMetadata Ingestion package version: openmetadata-ingestion[looker] == 1.1.1

Additional context
None

@pmbrull I think this issue was already resolved, right?

correct, thanks! We just missed linking the issue to the PR.
Issue closed by https://github.com/open-metadata/OpenMetadata/pull/13140


X,Y,Z home button

Hello Terjeio, is it possible to add a home button for each axis x,y,z as shown in the picture below?

You can enable individual axis homing ($22) and then create macros for homing each axis.  HomeX would have $HX in it, for example.


GRPC: problem with connections when GRPC server is unavailable

How do I set a timeout for the situation when Envoy is unable to connect to the GRPC server?
Now I have idle_timeout set to 0 because I don't want to close the GRPC streams if there is no data transferred.
But it looks like idle_timeout is also used when a connection to the server cannot be established.
So: if idle_timeout is 0, GRPC server is unavailable and I make a request, I will never get an error message.
From the level of the js client, the request continues indefinitely !
I checked to be sure and with the server unavailable and idle_timeout set to for example 5s, I get an error after 5 seconds.
How to solve it ?

Generally the TCP connect_timeout (https://www.envoyproxy.io/docs/envoy/latest/faq/configuration/timeouts) handles the issue where a server is not reachable.  Even with stream level timeouts off, if Envoy can't connect it should send an error back downstream.

Hm, if the backend/upstream is unavailable that should work.  Can you drop your whole config in, and I can try to reproduce?

@alyssawilk Of course. The whole config:
 admin:
  access_log_path: /tmp/admin_access.log
  address:
    socket_address: { address: <IP_ADDRESS>, port_value: 9901 }

static_resources:
  listeners:
  - name: listener_0
    address:
      socket_address: { address: <IP_ADDRESS>, port_value: 8080 }
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
          codec_type: auto
          stat_prefix: ingress_http
          route_config:
            name: local_route
            virtual_hosts:
            - name: local_service
              domains: ["*"]
              routes:
              - match: { prefix: "/" }
                route:
                  cluster: grpcserver
                  idle_timeout: 0s
                  max_stream_duration:
                    grpc_timeout_header_max: 5s
              cors:
                allow_origin_string_match:
                - prefix: "*"
                allow_methods: GET, PUT, DELETE, POST, OPTIONS
                allow_headers: auth,lng,keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout
                max_age: "1728000"
                expose_headers: custom-header-1,grpc-status,grpc-message
          http_filters:
          - name: envoy.filters.http.grpc_web
          - name: envoy.filters.http.cors
          - name: envoy.filters.http.router
  clusters:
  - name: grpcserver
    connect_timeout: 0.25s
    type: static
    http2_protocol_options: {}
    lb_policy: round_robin
    # win/mac hosts: Use address: host.docker.internal instead of address: localhost in the line below
    load_assignment:
      cluster_name: cluster_0
      endpoints:
        - lb_endpoints:
            - endpoint:
                address:
                  socket_address:
                    address: <IP_ADDRESS>
                    port_value: 12345

yeah, so if I set that up and
telnet <IP_ADDRESS> 8080
POST / HTTP/1.1
Host: www.google.com
content-type: application/grpc
I get an immediate response
HTTP/1.1 200 OK
content-type: application/grpc
grpc-status: 14
grpc-message: upstream connect error or disconnect/reset before headers. reset reason: connection failure
date: Thu, 04 Mar 2021 21:13:42 GMT
server: envoy
content-length: 0
I changed the timeout to 5s and then I get that response after 5s.  I think this is WAI if the upstream is not reachable.  Are you using a recent versoin of Envoy and/or can you prepro with a new one?

@alyssawilk you're right.
The envoy seems to be working properly.
But I use grpcweb javascript/ts client and it doesn't work. It seems that on the javascript side, the request handling ends when envoy closes its socket.
Here is part of envoy log with idle_timeout set to 20s and connect_timeout set to 1.25 s:
Request:
[2021-03-05 14:03:41.759][21][debug][router] [source/common/router/router.cc:582] [C0][S4268804154679743331] router decoding headers:
':authority', '<IP_ADDRESS>:8080'
':path', '/owpb.AuthService/GetUserAuthToken'
':method', 'POST'
':scheme', 'http'
'accept', 'application/grpc-web-text'

Answer:
[2021-03-05 14:03:43.011][21][debug][http] [source/common/http/conn_manager_impl.cc:1484] [C0][S4268804154679743331] encoding headers via codec (end_stream=false):
':status', '503'
'content-length', '84'
'content-type', 'application/grpc-web-text+proto'
'access-control-allow-origin', 'http://localhost:3000'
'access-control-expose-headers', 'custom-header-1,grpc-status,grpc-message'
'date', 'Fri, 05 Mar 2021 14:03:42 GMT'
'server', 'envoy'

But js client finished handling the request after 14:04
[2021-03-05 14:04:04.012][21][debug][connection] [source/common/network/connection_impl_base.cc:63] [C0] triggered delayed close
[2021-03-05 14:04:04.012][21][debug][connection] [source/common/network/connection_impl.cc:241] [C0] closing socket: 1

So the problem is probably on the js side.
@alyssawilk can you confirm this ?

One more thing.
I checked and:

if the grpc request is handled correctly, envoy closes the stream (end_stream=true):

[2021-03-05 14:30:35.695][18][debug][http] [source/common/http/conn_manager_impl.cc:1484] [C4][S10315372491295891501] encoding headers via codec (end_stream=true):
':status', '200'
'content-type', 'application/grpc-web-text+proto'
'grpc-status', '16'

So shouldn't it be the same in a situation of error?

I suspect that Envoy is sending end stream for web-grpc.  You're sending header logs for both and for actual grpc, it's a header only response where for web-groc I'd expect the end stream to come with the body data.
I can't confirm bugs in the js stack as I'm not familiar with it, but if the client side code is buggy and depends on the connection close, you can always configure the delay close timeout down to address the delay.

@alyssawilk:
I'm using grpc-web so I expected it to work with Envoy without a problem.
But you're right: the problem is on the javascript side.
I checked 'pure' javascript http request and it gets the answer immediately. But grpc-web is based on google closure library. So I also checked this lib and the answer in js arrives after the stream is closed. So here is the cause of the problems ..
On the other hand: what happens if the grpc server is unavailable, idle_timeout is 0 and Envoy gets 1000 requests?
Won't this keep streams open? If so is it not a resource leak in Envoy ?

IMO turning time-offs is a dangerous choice yes.  I don't think there's much we could do apart from adding a config warning.

Yes its is dangerous but now we have no choice. With enabled idle_timeout GRPC streams are closed if no GRPC messages are sent. Is it possible for Envoy not to close streams if pings are sent at the HTTP2 level?
If not, we need to add additional messages for keeping connections.

Arguably you can have high timeouts instead of no timeouts, but then there's the risk as you say of closing out hanging connections. AFIK there's no way to keep an individual stream alive with an H2 ping, though I could imagine having no stream level timeout, a connection timeout which applied even with streams present to avoid leaks, and a ping keeping that one alive.


ctmap: dump CT entry's BackendID

Service connections store their selected backend ID in the SVC-type CT entry. Dump this field on cilium-dbg bpf ct list global.
This then looks like:
TCP SVC <IP_ADDRESS>:55394 -> <IP_ADDRESS>:443 expires=158116 ... BackendID=1

/test

Moved the BackendID to the end of the formatted string, to avoid breaking code that parses the output (eg. the IPv4 Fragmentation tests).

/test

@gentoo-root ping? :)

/test


Text overflows in Shared notes activity

@Scar26 That occurs because you are entering a single word of such a long length which I dont think will be entered by user practically . However when you add a paragraph it does not overflow .

Still I think it's worth looking into

@ashish0910 is right, it's not really a bug because it's not a real use case.
BTW why not trying to fix if there is an elegant way to solve the issue.

Fixed in https://github.com/llaske/sugarizer/pull/667

Revert back the fix in https://github.com/llaske/sugarizer/commit/f198b27f610bc1a0ca059a9297ae2d36cfceca61
It's incompatible with iOS: display issues when drawing cards.
The cure would be worse than the disease!


After logging "no CPU scaling" an email is sent saysing the CPU has been scaled down.

Describe the bug
After logging "no CPU scaling" an email is sent saysing the CPU has been scaled down.
To Reproduce
Logs:
Dec 11 13:39:22 pve python3[196229]: INFO: Checking: 113
Dec 11 13:39:22 pve python3[196229]: INFO: Connected (version 2.0, client OpenSSH_9.2p1)
Dec 11 13:39:22 pve python3[196229]: INFO: Authentication (publickey) successful!
Dec 11 13:39:22 pve python3[196229]: INFO: Successfully connected to <IP_ADDRESS> on port 22
Dec 11 13:39:24 pve python3[196229]: INFO: Command executed successfully on <IP_ADDRESS>: qm status 113 --verbose
Dec 11 13:39:24 pve python3[196229]: INFO: VM 113 is running.
Dec 11 13:39:26 pve python3[196229]: INFO: Command executed successfully on <IP_ADDRESS>: pvesh get /nodes/$(hostname)/status --output-format json
Dec 11 13:39:26 pve python3[196229]: INFO: Host CPU Usage: 0.00%, Host RAM Usage: 83.18%
Dec 11 13:39:27 pve python3[196229]: INFO: Command executed successfully on <IP_ADDRESS>: qm status 113 --verbose
Dec 11 13:39:27 pve python3[196229]: INFO: VM 113 is running.
Dec 11 13:39:29 pve python3[196229]: INFO: Command executed successfully on <IP_ADDRESS>: pvesh get /cluster/resources | grep 'qemu/113' | awk -F '│' '{print $6, $15, $16}'
Dec 11 13:39:29 pve python3[196229]: INFO: VM status output: ('6.05%     2.00 GiB   578.52 MiB', '', 0)
Dec 11 13:39:29 pve python3[196229]: INFO: VM 113 - CPU: 6.05%, RAM: 28.248046875%
Dec 11 13:39:31 pve python3[196229]: INFO: Command executed successfully on <IP_ADDRESS>: qm config 113
Dec 11 13:39:32 pve python3[196229]: INFO: Command executed successfully on <IP_ADDRESS>: qm config 113
Dec 11 13:39:32 pve python3[196229]: INFO: No CPU scaling required.
Dec 11 13:39:32 pve python3[196229]: INFO: Email notification sent successfully

Expected behavior
No email sent when CPU scaling not applied

I think this also applies to Ram scaling.


dolt table import --pk option, dolt schema import --pks option

These should support the same argument for primary keys, or support both --pk and --pks.

I'd also like to have "no pks" import, as I have CSVs to import without meaningful identifiers

"No pks" is a bigger feature as the underlying storage requires a pk. We know primary keyless tables are a somewhat required use case.
There are workarounds right now:

Make every column a primary key. This prevents duplicate rows but otherwise will work as you expect.
Add an id column. We can add a --pks auto which does this for you if you would like. Then when you update a table you would need it sorted in the same order with new stuff at the bottom for us to do the right thing.

Long term:
We would structure a table with no primary keys as having every column be the primary key and have an column called count in the Dolt storage layer. When we queried that table, we would expose the count column as duplicate rows.


Example for linebreaks property of text is identical for both "simple" and "optimized"

The example image for linebreaks looks the same for both optimized and simple unless I'm missing some pixel-size differences. It should demonstrate the difference.

I think the following example would solve it:
#set page(width: 190pt)
#set par(linebreaks: "simple", justify: true)
Some texts are frustratingly
challenging to break in a
visually pleasing way. This
very aesthetic example is one
of them.

#set par(linebreaks: "optimized", justify: true)
Some texts are frustratingly
challenging to break in a
visually pleasing way. This
very aesthetic example is one
of them.


component rest service implemented

Coverage decreased (-0.7%) to 61.636% when pulling 8397fe64dce1300d6bca36bf84374ffa8994add5 on component-hub-api into 68fbd958d6719600d2638458c7d600f229d7ce2f on master.


Form validates/shows error for untouched field

Hi, I'm testing a simple registration form with an email and a password and the password field shows an error message before I've even gotten to it. Surrounding the form is a <Dialog> and <DialogContent>, but these don't seem to be the problem because I've tried with and without them and I still get the same problem:
<Formik
	initialValues={initVal}
	onSubmit={values => {
		alert(`Email: ${values.email}\nPassword: ${values.password}`);
	}}
>
	<Form>
		<Field name="email" label="Email" component={TextField} validate={validateEmail} />
		<Field name="password" label="Password" component={TextField} type="password" validate={validatePassword}/>
		<button type="submit">Submit</button>
	</Form>
</Formik>

Specifically, I enter the form for the first time, type into the email field, and as soon as the email displays its error, so does the password field. But I haven't even touched the password field yet! I have to add
if (this.formik.touched.password == null)
	return;

to the beginning of my password validation function to avoid errors from showing up before the field has even been touched. This works but I don't imagine I'm supposed to do this. With regular Formik, which I have tested and works fine, the <ErrorMessage> only shows up after the field has been touched. You probably already know they implement something like {errors.email && touched.email && <div>{errors.email}</div>} to avoid this specific problem, so I just wanted to check that you're doing the same? I tried looking through your source code but I'm kind of a newb so I didn't really find anything.
Is this behavior expected or is there something wrong with my form?
Thanks

Hi @Jsalaz1989. This is the intended behaviour. It only checks if the form is dirty and not if the field is touched, but I think you are right. The default behaviour should be to show errors only when the user has touched the field.

@Jsalaz1989 please try v0.1.4 and let me know if it fixes your issue.
Thanks.


Create sedict command line tool instead of java -jar sedict.jar

https://atextor.de/2020/07/27/building-a-decent-java-cli.html

Created sedict file, currently only support Mac and Linux.


bin/vet fails when an import package is name _

With non-named imports, go list will not behave the way we expect it to in bin/vet. For example:
import (
  "net/http"
  "os"

  "github.com/gin-gonic/gin"
  _ "github.com/joho/godotenv/autoload"
)

will yield this error:
Go files must be vetted. Check these problems:
  can't load package: package _/Users/.../workspace/locations-api: cannot find package "_/Users/.../workspace/locations-api" in any of:
        /usr/local/Cellar/go/1.6/libexec/src/_/Users/.../workspace/locations-api (from $GOROOT)
        /Users/.../go/src/_/Users/.../workspace/locations-api (from $GOPATH)

Thanks for the report @jdiedrick! Sorry I missed this. Were you able to resolve it?
If not, I'll take a look this week.


[Task]: Gradle tasks to start Playground locally

What needs to happen?
Gradle tasks to start Playground locally
Issue Priority
Priority: 3
Issue Component
Component: beam-playground

.take-issue


PDF rendering problem. Barcode and text getting pixelated.

Attach (recommended) or Link to PDF file here:
Configuration:

Web browser and its version: Chrome
Operating system and its version: Windows 10
PDF.js version: v2.3.200, v2.5.207
Is a browser extension: No

Steps to reproduce the problem:

Open original PDF in Acrobat Reader
Open same PDF in pdfjs sample demo

What is the expected behavior?
5863F_SeashellChalkBubbleSet_Pkg_X.pdf
The barcode between the green boxes on the left in the attached document should be clear and nice.
What went wrong?

The text besides the barcode and barcode between the green boxes on the left is very pixelated. Is this issue specific to vector images?

Doesn't seem to be a problem on my Safari macOS Monterey 12.1. What was the image size after you downloaded the PDF? Mine is 468 KB.

This is probably because of CSS zoom, likely a duplicate of another issue we already have on file.


Fix disable API key field

Closes #622
Proposed changes

fix form to have "disable_api_key" under Settings object & correct field type (Boolean -> String)
allow 3 options that Umbrella expects for "disable_api_key" field

@nnn please review, field should work now, place in form & style possibly need some fix.


usvg cannot write an SVG anymore. Is there an alternative?

Since writing SVG has been removed, is there an alternative for this functionality? Maybe an external crate?
If not, are there any plans to bring it back?

It will be back as a separate project in the future. No timeline for now.

Alright. I might be able to contribute, if it helps.

@jaseg @Legonaftik @JoKalliauer @flxzt Due to popular demand usvg CLI and ability to write SVG is back now.
It required a serious usvg crate restructurization, but I think it was worth it.
Still no text writing. It must be converted to paths (which is way CLI will do automatically).

That's wonderful news! As far as gerbolyze is concerned, we want usvg to convert the text to paths anyway.


upgrade Django and correct logout issue

Upgrades Django
corrects the LOGOUT URL setting with no default

This will shrink once we merge the globus scopes branch


doc: centering heading and badges

Signed-off-by: DEBSUBHRO<EMAIL_ADDRESS>Issue #79

Changes

Centering the heading Markdown-Transform.
Centering the corresponding badges below.

Related Issues

Issue #79
Pull Request #43

Thanks for the PR! You'll want to make sure to do a couple more things to the PR as well:

Fill out the PR more, you can reference other merged PRs here.
Add a DCO (Developers Certificate of Originality) per the instructions:

Ensure you provide a DCO sign-off for your commits using the -s option of git commit. For more information see how this works.

Pulled a new request


create utility method to create PoolingMarket

Just like farmingMarket's create(), we can use a create for poolingMarket

done


detect-icmp-seq: add test

Task: #5597
Redmine ticket: https://redmine.openinfosecfoundation.org/issues/5597
Previous PR: https://github.com/OISF/suricata-verify/pull/980
Description

Add a README file
Remove comment generated by createst.py in .yaml file
Add a check for sid 2

Merged. Thanks!


Harmonize Date/Time format with Node.js in utimes/futimes

http://stackoverflow.com/questions/20876407/what-format-is-used-for-nodejs-fs-utimes/20876502#20876502
Node.js allows for either Unix Timestamps or JavaScript Dates, and converts between the two.  We should do the same.  We currently assume only JavaScript Dates.

See also https://nodejs.org/api/fs.html#fs_stat_time_values.

https://github.com/streamich/memfs/blob/master/src/volume.ts#L477-L493 is a public domain implementation if someone wants to hack this into filer.

Fixed in https://github.com/filerjs/filer/commit/443b58203858170fe50c38debd6343cb082686ec


fix bugs for kill signal and indexing

If the run method was stopped by kill signal while a progress bar was being displayed, the next time the run method would be run would result in the error LiveError: Only one live display may be active at once. This was fixed by setting self.console to Console(quiet=not console_output) instead of writing an if statement whenever printing output.
Additionally, when generating synthetic datasets, the index would repeat for every label (0, 1, 2, 0, 1, 2, ...) when we simply want the index to be a sequence from 0 to n-1. This was fixed by setting ignore_index to True when concatenating dataframes. A progress bar was also added for generating synthetic datasets.

Had to change utils too since there was a problem with not actually using the console that was provided to track_with_stats


Does this support older version of Angular Material with md namespace ?

I would like to integrate ngx-tour in a existing Angular project which is using an older version of Angular Material with md namespace components. Would like to know if they are supported or if new mat namespace is mandatory.

Not supported in the latest version but you can go back to an older version
that does support it. I'll check which one on Tuesday if you haven't
figured it out by then.
On Dec 27, 2017 9:32 AM, "ashish"<EMAIL_ADDRESS>wrote:

I would like to integrate ngx-tour in a existing Angular project which is
using an older version of Angular Material with md namespace components.
Would like to know if they are supported or if new mat namespace is
mandatory.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/isaacplmann/ngx-tour/issues/71, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0lQKMLQ9CHDDTDAwaF4nzbnSMlJIkAks5tElT6gaJpZM4RNiq7
.


Remove snapshot repo from building

Remove the use-sonatype-snapshots profile.
The original intention of allowing maven to download snapshots instead of building them was to make it easier to build just a single submodule.
Maven has support for building a single submodule through the -pl and -am options.
Example: mvn install -pl :rdf4j-sail-memory -am builds just the Memory Store and any dependencies.
Using the maven command for building a submodule is preferred to using the snapshot repo because it guarantees that dependencies are up to date with your code, there is no guarantee that there is an up to date snapshot build of your dependencies, even if you've not made any changes to those modules yourself.

I have no real objection, but you may want to pass this by on the dev list, as it may affect other committers too.
Question: if we're getting rid of this, should we also consider getting rid of our nightly snapshot builds (at least for the develop branch)? Or at least make them less frequent? We're burning through a lot of potentially unnecessary traffic there...

I presumed that the snapshot builds were primarily for users who wanted to stay up to date on the latests developments and changes. Those who build products on top of RDF4J could have a continuous integration running to ensure that there aren't any breaking changes in the next patch or minor release. It could also be used as an alternative to a milestone releases if you just need to test some specific new features in RDF4J together with your own code, assuming that you wait 24 hours for the snapshot build to update.

While thinking about this again I came to realise that we could just make the use-sonatype-snapshots profile inactive as default instead of removing it outright.
Today it is enabled if you use java 11 or higher, which is our minimum requirement anyways resulting in the profile always being active.

I've ran a few tests with my IDE with this profile disabled as well, just to check that it doesn't cause issues if we remove it. It doesn't seem to cause any problem or significant slowdown.

I presumed that the snapshot builds were primarily for users who wanted to stay up to date on the latests developments and changes. Those who build products on top of RDF4J could have a continuous integration running to ensure that there aren't any breaking changes in the next patch or minor release. It could also be used as an alternative to a milestone releases if you just need to test some specific new features in RDF4J together with your own code, assuming that you wait 24 hours for the snapshot build to update.

I think it's a bit of both tbh: they were originally intended to speed up local builds as well as to provide a daily snapshot to third parties. I'm not sure the speeding up really holds up as an argument anymore (compilation is a lot quicker these days :) ). I'm also seriously doubtful many people make use of the daily snapshots. But we can tackle that issue separately.

While thinking about this again I came to realise that we could just make the use-sonatype-snapshots profile inactive as default instead of removing it outright.

I think that's a good compromise.


Minor output wording adjustments

Tentacle CLI gives the same error message for a range of failure modes, and references the OctopusServer instead of Tentacle.
The ApplicationInstanceSelector code was copied directly from Octopus.Shared when it was merged into the different codebases, and the reference to OctopusServer should have been removed then.
Additionally, we used an unnecessary try-catch when handling control flow exceptions that was stripping out useful error messages so I've removed it.
Background
When you are configuring Tentacle via the command line, have multiple instances configured, and forget to specify which instance, you get a cryptic response:

PS C:\Program Files\Octopus Deploy\Tentacle> .\Tentacle.exe service --stop
There are no instances of OctopusServer configured on this machine. Please run the setup wizard, configure an instance using the command-line interface or specify a configuration file

This message doesn't explain why the failure occurred, and it refers to the wrong application.
The incorrect application reference came from when we split out the Octopus.Shared library into projects in each application.
Even with the application correctly showing OctopusTentacle, the error message still isn't helpful as it's incorrect in the case of multiple instances of Tentacle. There is much more logic that produces useful, actionable user-facing messages from the public LoadInstanceDetails function. In the case of multiple installed instances, the right user-facing message is in a ControlledFailureException thrown inside GetDefaultRegistryRecord In the current implementation, by using TryLoadInstanceDetails we throw all those messages away, but still throw the same exception type.
Results
The TryLoad ... function just wrapped calling LoadInstanceDetails in a try-catch under the hood. In the ApplicationInstanceSelector, I replaced TryLoad... with LoadInstance... to achieve the same logic but with better exception messages. This preserves the existing behaviour because the ApplicationInstanceSelector was throwing the same type of exception anyway, when TryLoadInstanceDetails fails.
I deleted TryLoadInstanceDetails as it was only used in the ApplicationInstanceSelector and we don't want anyone else to use it without realising it strips out useful error messages.
Before
Tentacle register-with --server=http://localhost:8066/ --apiKey=API-X --environment=Dev --role=app-server
There are no instances of OctopusServer configured on this machine. Please run the setup wizard, configure an instance using the command-line interface or specify a configuration file

Process finished with exit code 1.

After
Tentacle register-with --server=http://localhost:8066/ --apiKey=API-X --environment=Dev --role=app-server
There is more than one instance of Tentacle configured on this machine.
Please pass --instance=INSTANCENAME when invoking this command to target a specific instance.
Available instances: sast-net6-tentacle-upgrade-script-Tentacle0, sast-net6-tentacle-upgrade-script-Tentacle1.

Process finished with exit code 1.

How to review this PR
I ran this by a few people - @samdanaei @david-staniec-octopus @sburmanoctopus - and we agreed it was a sensible change and unlikely to affect anything, because we're still using the same exception type across boundaries, it just has a better exception message now. Additionally, this PR is not changing behaviour across project boundaries.
Quality :heavy_check_mark:
Pre-requisites

[x] I have read How we use GitHub Issues for help deciding when and where it's appropriate to make an issue.
[x] I have considered informing or consulting the right people, according to the ownership map.
[x] I have considered appropriate testing for my change.

Fixes OctopusDeploy/Issues#8377


Build failed, cos_npi_over_8 is not available in common

When I try to build PyTorch I got the following error:
ImportError: cannot import name 'cos_npi_over_8' from 'common' (~/.local/lib/python3.8/site-packages/common/__init__.py)
make[2]: *** [confu-deps/NNPACK/CMakeFiles/nnpack.dir/build.make:81: confu-deps/NNPACK/src/x86_64-fma/2d-fourier-8x8.py.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2697: confu-deps/NNPACK/CMakeFiles/nnpack.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

I investigated this issue for some time and figured out that there was missed path in PYTHONPATH to x86_64-fma where those module located with all child modules
To fix the issue I modified CMakeLists.txt:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5ecd2df..6c6af68 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -169,11 +169,12 @@ IF(NNPACK_BACKEND STREQUAL "x86-64")
     SET(PYTHON_PEACHPY_SOURCE_DIR "${CONFU_DEPENDENCIES_SOURCE_DIR}/peachpy" CACHE STRING "PeachPy (Python package) source directory")
   ENDIF()

+  SET(PYTHON_NNPACK_MODULE_DIR ${CMAKE_CURRENT_LIST_DIR}/src/x86_64-fma)
   IF(${PYTHON_VERSION_STRING} VERSION_LESS 3.4)
     # ---[ Python < 3.4 does not natively support enums, and needs a polyfill
     SET(PEACHPY_PYTHONPATH "${PYTHON_SIX_SOURCE_DIR}:${PYTHON_ENUM_SOURCE_DIR}:${PYTHON_PEACHPY_SOURCE_DIR}")
   ELSE()
-    SET(PEACHPY_PYTHONPATH "${PYTHON_SIX_SOURCE_DIR}:${PYTHON_PEACHPY_SOURCE_DIR}")
+    SET(PEACHPY_PYTHONPATH "${PYTHON_NNPACK_MODULE_DIR}:${PYTHON_SIX_SOURCE_DIR}:${PYTHON_PEACHPY_SOURCE_DIR}")
   ENDIF()
 ENDIF()

After this PyTorch compiled successfully ...
Is it and issue of PyTorch ?
For me it seems like it is an issue in build file for NNPACK

I hit the same issue, the reason is that it is loading 'common' package instead of that in the src/x86_64-fma.
pip3 uninstall common will make it work.
The loading of this package is done at https://github.com/Maratyszcza/NNPACK/blob/70a77f485e8b934224f3a79efd8edcd84cd377b8/CMakeLists.txt#L433


[Bug report] creation and annihilation operators for custom circuits

Dear scQubits Team,
How can I implement a creation and annihilation operator for custom circuits?
I would like to use the composite Hilbert Space feature with my own qubit design implemented in the custom circuits feature. I intend to build semiclassical models of multiple custom qubits and interact with them using QuTiP.
I already posted an [issue related to the same project](https://github.com/scqubits/scqubits/issues/190), which was successfully resolved :-).
Is it correct that this feature is not implemented?
Is there a workaround?
Do you plan to implement such compatibility?
Thank you very much,
Chris
Minimal working example
Documentation check
If the bug manifests in unexpected behaviour (as opposed to a crash), confirm that you have consulted the
[API documentation](https://scqubits.readthedocs.io/en/latest/api-doc/apidoc.html)

I have checked the API documentation.
I could not locate relevant information in the documentation or information is missing.

I checked the read-the-docs and the examples without finding a helpful reference for the problem. Looking deep into the code did not reveal how to solve the issue eighter.
Minimal working example

using the code from the [scQubits examples](https://github.com/scqubits/scqubits-examples/blob/441a6a1ac7e48ef05a67e7fe9e5d00f8a1378dc5/examples/demo_hilbertspace.ipynb)

import scqubits as scq

# ref for parameters: Table I in Weber, Steven J., Gabriel O. Samach, David Hover, Simon Gustavsson, David K. Kim, Alexander Melville, Danna Rosenberg, et al. “Coherent Coupled Qubits for Quantum Annealing.” ArXiv:1701.06544 [Cond-Mat, Physics:Quant-Ph], June 6, 2017. https://doi.org/10.1103/PhysRevApplied.8.014004.

# define qubit parameters
csfq4jj_yaml = """# CSFQ4JJ
branches:
- ["JJ", 1, 2,<PHONE_NUMBER>9713882, 9.68511466232956]
- ["JJ", 2, 3,<PHONE_NUMBER>9713882,  9.68511466232956]
- ["JJ", 3, 4,<PHONE_NUMBER>9713882,  9.68511466232956]
- ["C", 1, 4, 0.36547602499356835]
- ["JJ", 1, 4, 38.741313831926355,  25.578636159485757]
"""

# CSFQ4JJ1
csfq4jj1 = scq.Circuit(csfq4jj_yaml, from_file=False, ext_basis="discretized")
csfq4jj1.truncated_dim = 4
csfq4jj1.Φ1 = 0.5

# CSFQ4JJ2
csfq4jj2 = scq.Circuit(csfq4jj_yaml, from_file=False, ext_basis="discretized")
csfq4jj2.truncated_dim = 4
csfq4jj2.Φ1 = 0.5

# define composite hilbertspace of two custom flux qubits
hilbertspace = scq.HilbertSpace([csfq4jj1, csfq4jj2])

if True:
    # Option A: operator product specification via callables
    g = 0.1

    hilbertspace.add_interaction(
        g_strength=g,
        op1=csfq4jj1.creation_operator,
        op2=csfq4jj2.annihilation_operator,
        add_hc=True
    )
else:
    # Option B: string-based specification of interaction term
    g = 0.1
    hilbertspace.add_interaction(
        expr="g * a.dag() * a.dag() * b",
        op1=("a", csfq4jj1.annihilation_operator),
        op2=("b", csfq4jj2.annihilation_operator),
        add_hc=True
    )

print(hilbertspace)

dressed_hamiltonian = hilbertspace.hamiltonian()
dressed_hamiltonian

evals, evecs = dressed_hamiltonian.eigenstates(eigvals=4)
print(evals)

Describe the bug
For both options of creating the operators, I get the following error messages:
(flux-qubit-theory) two-flux-qubit-simulator-playground % python 230607_CustomCircuit_defineoperators_example.py
Traceback (most recent call last):
  File "two-flux-qubit-simulator-playground/230607_CustomCircuit_defineoperators_example.py", line 42, in <module>
    op1=csfq4jj1.creation_operator,
AttributeError: 'Circuit' object has no attribute 'creation_operator'

Expected behaviour
I would like to implement a coupling between the two qubits in the composite Hilbertspace and drive the system later with QuTiP. Therefore I need the creation and annihilation operators in the custom circuit class.
OS and version used:

OS: macOS 13 (Apple M1)
scqubits version 3.1.0
Python version 3.11.0

Hi Chris,
The operator names are not the same for Circuit objects like the other qubit objects in scqubits. To see the list of operators available for a circuit object. You can look at csfq4jj1.operators_by_name.keys() to give you a list of operator names that are available.
dict_keys(['sinθ1_operator', 'sinθ2_operator', 'sinθ3_operator', 'cosθ1_operator', 'cosθ2_operator', 'cosθ3_operator', 'n1_operator', 'n2_operator', 'n3_operator', 'I_operator'])

And each of that operator can be called like a method to the Circuit object. For example:
csfq4jj1.n2_operator().

Do note that these correspond to the symbols which are used in the Hamiltonian expression printed out by the method sym_hamiltonian().

Thank you very much! You are absolutely right. It was a conceptual error on my side and not a problem with scQubits. Thank you for your constructive advice. I am sorry for cluttering your issues with conceptual questions, and please point me to a better place if there is any.


fristboot and subsequent logs have password leak

The attribute in OVA property pane is masked, but in log it is still plaintext.

Fixed.


LND crashed

last night my lnd crashed. i trying to start it again but failed.
i updated my lnd source code few minutes ago from github and rebuild lnd.exe again.
here is my console log when i trying to start it.
console log:
console.txt
lnd log:
lnd.log

It looks like your fee estimation was too low, so bitcoind didn't accept the transaction. You can try simply re-publishing the transaction manually, or perhaps try to use a btcd backend to propagate the transaction.
As an side, you seem to have a few channels which created commitment transaction which aren't easily able to propagate. A recent commit that landed in master fixed that particular issue.

I used btcd backend to publish the transaction. but still same problem.
New lnd log: lnd.log
How i can find my raw transaction in wallet.db ? for deleting or publishing it manually...

try stop bitcoind and start with "minrelaytxfee=0.00000001"  to set a smaller minrelayfee

Any update on this? (after updating the min relay fee)

@Roasbeef sorry for delay.
I changed minrelaytxfee to minimum but lnd could not recover wallet and resend that transaction to bitcoin network . then i deleted whole my lnd directory. you need to check lnd source code , why lnd created a transaction with low fee less than minrelaytxfee.
With this bug i afraid to run lnd on mainnet. maybe you must reopen this issue and take a deep look in source code.

Why did you delete the data directory? Do you still have your seed?
On Apr 15, 2018 2:36 AM, "ghanavati27"<EMAIL_ADDRESS>wrote:
@Roasbeef https://github.com/Roasbeef sorry for delay.
I changed minrelaytxfee to minimum but lnd could not recover wallet and
resend that transaction to bitcoin network . then i deleted whole my lnd
directory. you need to check lnd source code , why lnd created a
transaction with low fee less than minrelaytxfee.
With this bug i afraid to run lnd on mainnet. maybe you must reopen this
issue and take a deep look in source code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lightningnetwork/lnd/issues/988#issuecomment-381393034,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA87LjewiPT4LLRC5142ExCqdD6bu8Xuks5toxSigaJpZM4TCeom
.

Fortunately, i kept that. zipped file is 54MB and github does not allow me to upload it.
Download it from here: http://lnd.fun/lnd_old.zip

I don't want your lnd data, as I don't want your coins. The option you should set it mintxfee that should allow the transaction to be re-broadcast, and your lnd to start again.


Build issues under Windows

Thanks a lot for this nifty library!
I use it in https://github.com/pbek/QOwnNotes and it works great under Linux und macOS.
But when I build QOwnNotes under Windows with AppVeyor (and also locally) I get the error message:
/release/tabledialog.o:tabledialog.cpp:(.text+0x68d): undefined reference to _imp___ZN5QtCSV6Reader10readToListERK7QStringS3_S3_P10QTextCodec
for example here: https://ci.appveyor.com/project/pbek/qownnotes/build/windows-b2567
tabledialog.cpp is where I use your library at https://github.com/pbek/QOwnNotes/blob/develop/src/dialogs/tabledialog.cpp#L70
Do you have any idea why this might happen?
This is the AppVeyor config: https://github.com/pbek/QOwnNotes/blob/develop/appveyor.yml
And this my qmake project file: https://github.com/pbek/QOwnNotes/blob/develop/src/QOwnNotes.pro
Thank you very much!

I now realized that I got the error because under Windows a DLL will be generated and that DLL wasn't found.

By default DLL will be saved to the main folder ($PWD) of the library. See DESTDIR parameter in qtcsv.pro

Thank you.


fix: Allow to inject async functions into async generators

When you try to inject asynchronous dependencies into an asynchronous generator like this:
async def some_dep() -> int:
    return 5

@inject
async def some_async_gen(value: Annotated[int, Depends(some_dep)]):
    yield value

you see the error You cannot use async dependency `some_dep` at sync main.
This pull request allows the inject function be used in such context. Still do not work with asynccontextmanager decorator though.

Great job, thank you!


test: Unit tests for select elements

Description
Add unit tests for select elements.
[Datepicker, DateRangePicker, Select, MultiSelect, SearchSelect, TextInput, NumberInput, Button]
Please note that:

the tests are far from comprehensive. Feel free to comment below to add/delete tests.
I'm having difficulty in writing tests for DatePicker and DateRangePicker. The difficulty lies in what to test and how to simulate user clicking pop-over calendar. If anyone could help, please let me know.

Related issue(s)
refs https://github.com/tremorlabs/tremor/issues/618

What kind of change does this PR introduce? (check at least one)

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New Feature (non-breaking change which adds functionality)
[ ] Refactor
[ ] Build-related changes
[x] Other, please describe: Add unit tests

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing applications:
How has This been tested?
Not Applicable.

Screenshots (if appropriate):
Not Applicable.
The PR fulfills these requirements:

[x] It's submitted to the main branch
[x] When resolving a specific issue, it's referenced in the related issue section above
[ ] My change requires a change to the documentation. (Managed by Tremor Team)
[ ] I have added tests to cover my changes
[x] Check the "Allow edits from maintainers" option while creating your PR.
[x] Add refs #XXX or fixes #XXX to the related issue section if your PR refers to or fixes an issue.

Hey there! We will be switching our testing framework to Playwright. Thank you very much for adding the tests and sorry for not taking it into production. Great contribution nonehtheless🫶


Wrap paragraphs at 80 characters

It would be great if remark-stringify had an option to format paragraphs wrapped at 80 characters to make markdown more readable in a terminal.

There already is a plugin but it doesn’t work great https://github.com/ben-eb/remark-word-wrap/issues/4


Error: Restore failed while processing manifest files: read manifest: parsing time "0" as ""2006-01-02T15:04:05Z07:00"": cannot parse "0" as """.

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

...Backup Influxdb 1.8
...Restore in influxdb 2.0.2
...

Expected behavior:
Able to migrate data between two instances of influxdb. One in version 1.8 (raspbian 32bit, rpi 4) and One in version 2.0.2 (ubuniu 20.0.4)
Actual behavior:
Error: Restore failed while processing manifest files: read manifest: parsing time "0" as ""2006-01-02T15:04:05Z07:00"": cannot parse "0" as """.
Cannot restore the data.
Environment info:

System info: Run uname -srm and copy the output here

Backup instance: Linux 5.4.51-v7l+ armv7l
Restore instance: Linux 5.4.0-28-generic x86_64

InfluxDB version:

Backup instance: InfluxDB v1.8.3 (git: 1.8 563e6c3d1a7a2790763c6289501095dbec19244e)
Restore Instance: Influx CLI 2.0.2 (git: 84496e507a) build_date: 2020-11-19T03:59:35Z

Hi @ced2git, the error you hit is expected because 1.x and 2.x use incompatible formats for their backup/restore manifests & metadata.
It looks like you're trying to move your deployment between machines (if not, influxd upgrade is the easiest way to get your data into a 2.x layout). I'd recommend:

In your 1.x environment, use influx_inspect export  to dump all your data to disk in line-protocol format
Use the 2.x influx write command to write the exported LP into your 2.x instance


CoAtNet not present in timm

@gustheman @sayannath
It turns out that timm doesn't have any implementation of CoAtNet which means we really don't have any pre-trained weights available for the model at the moment. It was an oversight on my end to confuse this model with CoAtNet.
We can do either of the following now:

Continue with the CoAtNet implementation and train it on smaller datasets to confirm it works. I mention smaller datasets because that way we can complete things within the timeline which doesn't factor in ImageNet-1k related tasks at the moment.
Decide on another image classification model and follow the same plan as CoAtNet.

Let's discuss.

Cool! On it.

What are you on? Didn't get you.

On implementing the model asap.

No, I think it's better to wait for Gus's comments here. Since the pre-trained model parameters aren't available we need to take an informed decision.

I'm fine with changing to another model to make this achievable!
Any suggestions of other possible ones not on TF Hub yet?

MobileViT can be an option.

Yes sounds good to me. MobileViTs are available in official capacity as well.
@gustheman WDYT?

I agree, let's follow up with these then.


Issue narrowing tagged unions with temporary const

TypeScript Version:  3.4.0-dev.201xxxxx
Search Terms: Narrowing, "Tagged Unions"
Code
interface Square {
    kind: 'square';
    size: number;
}
interface Circle {
    kind: 'circle';
    radius: number;
}
type Shape = Square | Circle;

// works as expected (s.kind) does the correct narrowing
function areaWorking(s: Shape) {
    switch (s.kind) {
        case 'square': return s.size * s.size;
        case 'circle': return Math.PI * s.radius ** 2;
    }
}

// When saving s.kind to a const variable, narrowing does not work
function area(s: Shape) {
    const {kind} = s; // same as const kind = s.kind;
    switch (kind) {
        case 'square': return s.size * s.size; // Property 'size' does not exist on type [Shape|Circle].
        case 'circle': return Math.PI * s.radius ** 2; // Property 'radius' does not exist on type [Shape|Square].
    }
}

Expected behavior:
I would expect to be able to pull the kind property from the Shape object into a const and the narrowing to work as expected.
Actual behavior:
Narrowing does not work, I need have the switch() go off of the variable passed in.
Playground Link: TS Playground
Related Issues: https://github.com/Microsoft/TypeScript/issues/18758

Narrowing isn’t tracked across variables; the issue tracking this is here: #12184. You’ll find related/duplicate issues linked to that one.

Thanks!


Asherah-Node integration tests fail silently

Describe the bug
The Asherah-Node decryption tests performed by Test Asherah-Node's Test Cross-Language job are failing. These failures are subsequently ignored and the job is ultimately successful.
To Reproduce
Steps to reproduce the behavior:

Trigger Test Asherah-Node workflow
Review logs of the Test Cross-Language step to view error. Example: Test Asherah-Node#361

Expected behavior

Asherah-Node test suites should complete successfully.
Otherwise, test failures should result in failure of the job/workflow.

Screenshots

Partially resolved by #119, which addresses the root causes of the underlying test failures.


⚠ Bofrost.at has degraded performance

In c9cde0d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1477 ms

Resolved: Bofrost.at performance has improved in 6b59e9c.


WFS 1.0.0 support could be better

Hi,
I saw #2574 was closed but here is my situation:
I have 2 WFS sources.

uses WFS 1.0.0
uses WFS 1.1.0

I can read second source with no workaround and the features geometry as parsed correctly.
For case 1, I had to do the following workaround and it works fine with GML2.
    var gmlformat = (item.layer.wfs_version === '1.0.0' ? new ol.format.GML2 : new ol.format.GML3);
    var format = new ol.format.WFS({
        'gmlFormat': gmlformat
    });

Please consider.

If you find a way to set the GML version early enough in the parsing process (after determining the version of the WFS response), then please consider submitting a pull request.

Hi,
I'm trying to follow the ol3 architecture but its not easy for me...
Where is the implementation of ol.format.WFS.readFeatures? I found an implementation at ol.format.GMLBase.prototype.readFeaturesInternal. Is this implementation that is called?
What is the workflow when calling ol.format.WFS.readFeatures() ?
Thanks!


NFT powered curated registries for social media

I’ve got an idea of utilizing KodaDot mints for a TCR party bot as an onboarding mechanism:
By invitation only (hence curated) one needs to have their hyperrealistic pfp minted on KodaDot, follow the MetaCRParty bot and tweet verifying their address holds a minted NFT that was minted by an existing member of the registry.
Members can also send spammer NFT to someone and tweet to ask to get them delisted, these accused party can challenge it by proof of wholesomeness NFTs minted their way by more existing members during a challenge period.
Limit the list to 250 initially, later can open 2nd tier list with 1000 ppl

For reference, this is the GitHub repo by @stevenleeg that did the original TCR party twitter bot:
https://github.com/alpineintel/tcrpartybot
By https://github.com/stevenleeg

Just read the how tcr works with all the stuff. I bet we should simplify this stuff to get traction to get stuff going for what we need to, maybe integration with portcullis and passport would be neat idea, let's see what we can hack on


Runtime errors on windows (github release)

os: Windows 10
lsd --version: lsd 1.0.0
echo $TERM: lsd.exe included in %PATH%
echo $LS_COLORS: N/A

Expected behavior

Actual behavior

This looks like the Chrono bug https://github.com/chronotope/chrono/issues/1364.


apicca cert validation

#45

pytest results:
=====Starting apic_ca_cert_validation

[Check  1/1] APIC CA Cert Validation...                                                                           FAIL - OUTAGE WARNING!!
  Certreq Response
  ----------------
  {"totalCount":"1","imdata":[{"error":{"attributes":{"code":"400","text":"CA not ready"}}}]}

  Recommended Action: Contact Cisco TAC to fix APIC CA Certs
  Reference Document: https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvy35257

=====Starting apic_ca_cert_validation

[Check  1/1] APIC CA Cert Validation...                                                                                PASS

Local tests checked out. Merging.


async/await support?

Does pyq support Python's async/await syntax? In particular, to run IPC calls to a remote data service.

Not yet, but this is a subject of active research.  If you have any specific proposals - please let us know.


how do i fix non user directory

get roblox properly installed

Don't install Roblox as admin.
In case you have UAC disabled, you can make a junction link for %localappdata%\Roblox\Versions to go to the C:\Program Files (x86)\Roblox\Versions


[WFCORE-3479]: Deploying an empty deployment and adding content later fails in a composite

Using the original domain to be sure that the deployment is there before using exploded deployment operation.

Jira: https://issues.jboss.org/browse/WFCORE-3479

I would prefer we hold this until WF 15. AIUI it's not a blocker bugfix and it changes the way all domain mode rollouts work by passing the original domain model instead of the current one into the server operation resolution. That may have side effects that we need back time to detect.

Retest this please


Add namespaces to the upgrade resources

Add namespaces to the upgrade resources

Found a better workaround so will close this PR for now


Each word is cut off at the beginning and end on safari

Hi Jordan.
Great plugin. I have time using some plugin projects. In this case I have a drawback specifically in Safari. This only happens with a particular typeface. Guld Script W01 Regular
I think it has to do with translate3d. I tried to put a padding for each span in the animation but I did not manage to find the solution. If you have experienced a similar case or have an idea how can I solve it, I will be very grateful.
Attached the images of the case.

Thanks

hey @minonario do you have a link to share where I could see the issue?

Yes. http://arlosoul.raxo.tv
Thanks

I can see the issue it on my iphone as well. The translate does seem like the culprit but that was originally added to address poor iOS performance. You can try this hack to disable it:
[class^="word"] {
  transform: none !important;
}

If it is not microsoft it ends up being ios lol. Perfect works 👍  The letters are no longer cut. Thank you very much.
José Luis M
Saludos


Custom In-Memory Reader

This is a feature request where it would be useful if there was a CustomReader that cached a file in-memory so that every tile request doesn't use I/O and could draw the content from memory instead of the filesystem

@crhoover-maxar do you want to cache only the tiles or the whole file?


WIP User Guide

This pull mostly:

Fix factual errors in the UG
Established a format for the documentation of each command

E.g., with regards to communicating the format of each command, just modify the LATEX given for edit or add.

Restructured the Features section.

The old UG is in the file UserGuide.md.old
There are still many issues to be fixed. Refer to #83.
Currently the User Guide looks like this. There is still a lot to be done, especially regarding documenting each of the commands to a satisfactory standard.
The absolutely most time consuming thing right now, is to document each command properly. Please refer to edit and add where I've partially done up the documentation (still missing potential failures section for each), as a reference for documenting other commands.
Furthermore, there are still a few missing sections. Refer to the notes in #83. E.g., a section with an explanation of the GUI elements of the UG itself.
Furthermore, there are definitely small things to take note of, such as broken links, and a more informal language.

In addition to fixing checkstyle, I added a broken links detector:

by appending the following code at the bottom of the page:
<script>
let meow = [...document.getElementsByTagName("a")].filter(a => a.href.includes("#")).filter(a => document.getElementById(a.href.split("#")[1]) === null).map(a => `  -- [${a.textContent}](${a.href.split("#")[1]})`).join("\n");
if (meow !== "") alert(`Broken links:\n${meow}`)
</script>


Option to add async scripts to the head

Are there any plans to support moving script tags with async to the head, to enable the browser to start fetching the assets as soon as possible?
Thanks for a nice plugin!

The location of the script tags is defined in the parent HtmlWebpackPlugin - see the config. My plugin should simply add the async attribute in-situ.
Note though, that with modern browser preload scanners, I'm not sure moving to head will make that much difference.

@numical Oh, wow - not sure how I missed that, thank you!
Regarding it not making much of a difference, I suppose that it's often true, but it depends on the application. By putting async script tags in the head the browser can start fetching the them sooner and without blocking rendering. There are also some cases where it might be necessary, for instance if you stream the HTTP response in chunks.


'only-html'  method not working

$.colorbox({html:"
Welcome
"});

this gives me this error: 'Cannot read property 'indexOf' of undefined'

That works fine for me.

Apologies Sir.... It was a local edit that was blocking it.. Thank you for
considering and for this awesome plugin.
On 10-Oct-2015 8:14 pm, "Jack Moore"<EMAIL_ADDRESS>wrote:

Closed #756 https://github.com/jackmoore/colorbox/issues/756.
—
Reply to this email directly or view it on GitHub
https://github.com/jackmoore/colorbox/issues/756#event-432120595.


[conf] add zookeeper admin server settings to the configuration files

Motivation
Fixes #2324
zookeeper 3.5 version introduces admin server. by default it starts at 8080.
Changes
Add admin server related settings to zookeeper configuration so people can configure them.
Change the default settings to 9990.


Use unconverted units when comparing wind speed for occupancy detector

In saveCharacteristic(), when deciding if the wind speed occupancy detector is to be set, the comparison is performed against a hard-coded trigger value of '4'. But the wind speed value being compared has already been converted to different units (if non-SI units are being used).
This PR saves the converted characteristic value without mutating the passed-in value. This leaves the passed in value in unconverted units so it can be used for comparison later without having to also convert the trigger value.

Good catch! Thank you.

Released in v3.0.4


How to connect to GCloud host services inside Docker

I have a NodeJS service running in a docker container than connects to gcloud services.
I have tried running gcloud auth configure-docker which runs fine.
When I run the container with
docker run \
	--env "GOOGLE_CLOUD_PROJECT=myproject" \
	--platform linux/x86_64 \
	-d

I get
Error: Could not load the default credentials.
The host machine has logged in and ran gcloud auth application-default login, also it runs the service without docker, so all good there.
Not sure what to do now?

A full example to help others
docker run
--env "PORT=4001"
--env "GCP_PROJECT=my-gcp-project-id"
--env "GOOGLE_CLOUD_PROJECT=my-gcp-project-id"
--volume "/Users/oliverdixon/.config/:/root/.config"
--platform linux/x86_64
-d
-t my-api


used generateStaticParams to build blog pages for SEO Optimization

stumbled upon the Wisp CMS and used it on my own blog. One addition I did was build the Blog Pages at build time instead of request time and wanted to contribute the same strategy here if the community finds it beneficial. Provides a few benefits:

Inline with Next.js best-practices (using Server Components where possible)
Generates Static Pages
Better for SEO (your blog pages can now be indexed)
removes the building of blog pages at request time

Before:

After:

Hey @mustafahoda, thanks for the PR and the detailed writeup. I really appreciate this.
Your approach indeed will make the page load much faster as they are created during build. An issue arises when new blog posts are added after the code is built, that is the page would not have been generated and will require to be generate on run-time anyway.
The effect of this approach is that parts of the pages will be static and parts after the build will be dynamic. I'm undecided if this should be the default settings since the current approach uses vercel's cache too (which honestly can be configured too).
What I can do is to file this into a documentation somewhere on optimising SEO so that people can choose if they want a large part of their site to be statically generated.

Hi @yehjxraymond ,
Yup! I thought of this problem as well: how do we handle creation of new Blog Posts and then having those built to generated server side to ensure we're making most of the optimzations Next.js offers. I see a few options:

Rebuild using Vercel Deploy Hooks. This is what I do when I publish a new post. Make a request to the deploy hook and the build happens again.

ideally Wisp CMS has a webhook and we can point it to our deploy hook.
This will however increase build time for large sites that have a lot of pages to build.

We can use an Incremental Static Regeneration Strategy to generate the initial N number of blogs. And then create the rest during run-time.

consider using dynamicParams. Build only the first N pages, and then the rest can be done at build time.

Great project!  Let me know what you're thinking and would be most happy to contribute :D


ROX-20280: Unable to edit the unauthenticated SMTP server endpoint

Description
Email notifiers have a setting allow_unauthenticated_smtp that allows a user to use an SMTP server without providing a password. The notifier proto has scrub:dependent set on the server endpoint field which prevents anyone from changing that field without providing a password (which doesn't exist). We don't want to remove that because it's a valid security check, just need to relax it for anyone who is using unauthenticated SMTP.
This change introduces a new tag to the scrubber called scrub:disableDependentIfTrue. If this is set on a boolean field, and the field is true then the scrub:dependent check is skipped. The scrub:always check continues to behave as-is because the credentials are supposed to be empty.
This change also adds the scrub:disableDependentIfTrue tag to the allow_unauthenticated_smtp field.
Checklist

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

If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change
Unit tests
Manual tests:

Deployed 4.3.4. Added unauthenticated SMTP with endpoint test.localhost.
Tried to change it to test.localhost:25 and it failed.
Upgraded to the image from this build and retried step 2. Worked.
Created a notifier with a password.
Tried to edit endpoint without password. Failed as expected.
Tried again with password and it worked.

Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

There is some very lightweight tag validation in scrub_test.go, since the scrub:disableDependentIfTrue tag is only valid if applied to a boolean, you could add that check in validateStructTagsOnType.


SyntaxError when import lm_eval

Hello, I met the following error when tried to import lm_eval:
python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lm_eval
Downloading builder script: 3.69kB [00:00, 12.7MB/s]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/__init__.py", line 1, in <module>
    from .evaluator import evaluate, simple_evaluate
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/evaluator.py", line 11, in <module>
    import lm_eval.api.metrics
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/api/metrics.py", line 168, in <module>
    exact_match = hf_evaluate.load("exact_match")
  File "/usr/local/lib/python3.10/dist-packages/evaluate/loading.py", line 751, in load
    evaluation_cls = import_main_class(evaluation_module.module_path)
  File "/usr/local/lib/python3.10/dist-packages/evaluate/loading.py", line 76, in import_main_class
    module = importlib.import_module(module_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/root/.cache/huggingface/modules/evaluate_modules/metrics/evaluate-metric--exact_match/009c8b5313309ea5b135d526433d5ee76508ba1554cbe88310a30f85bb57ec88/exact_match.py", line 16
    }
    ^
SyntaxError: closing parenthesis '}' does not match opening parenthesis '(' on line 14

The version is 0.4.2. Both pip and installing from source all encountered the error.

You may use hf-mirror.com instead of huggingface.co as your HF_ENDPOINT.
Since hf-mirror.com could turn down when the load is high, you may temporally use the main huggingface.co site by unset HF_ENDPOINT

替换exact_match.py文件即可解决，参考https://github.com/huggingface/evaluate/issues/590

Thanks all.


Implement ValidationContext::host_consensus_state() for IbcExecutionContext

Before we can implement this, @preston-evans98 needs to define the protobuf definition of a SovereignConsensusState that represents sovereign SDK chains.
Once that's done, we can implement the method by

querying the relevant parts of our state
construct a SovereignConsensusState and return it

Sure!

Our ConsensusState trait that all consensus states implement

To be clear, our "domain type" (which is derived from the "raw" generated protobuf type) is what implements this trait
In the Sovereign's case, root() would return the rollup's root. I guess we'd never need access to the DA's root (other than when we're updating the client, which isn't done using this interface).

The protobuf definition of the Tendermint ConsensusState

Probably useful as an example

Official docs on ConsensusState

This is just extra; the IBC standard isn't always up to date nor very clear

Let me know if you need anything else

This is perfect, thanks a ton!


Modularizing Shared Functions Across Jupyter Notebooks

-Created Utilities module that will contain basic functionality like reading data, writing data, etc.
-Updated PTU notebook to use the shared module definitions for:

read_analysis
update_tttr_dict

@hsanabri I'm working on modularizing the custom functions that were in the jupyter notebooks now if you'd like to take a look.


buildDictionaryT and free type variables?

Is there an issue with buildDictionaryT and types with free type variables? I had an old guardMsg in my code that uses buildDictionaryT to avoid free type variables (failing when they're present). I now need to build dictionaries even when there are free variables (assuming there's enough known structure to determine an instance), in order to support separate compilation usefully. I'm getting success where I shouldn't, however, and lintExprR is reporting errors like the following:
In the expression: $fNumCat:>a
                     @ a $dNum $dRead $dShow $dEq $dGenBuses $dSourceToBuses
$dNum :: Num a is out of scope

There is a bound type variable a in scope, but perhaps it has a different unique. Moreover, there isn't really enough type information to satisfy these superclass constraints other than Num.
For now, I'm adding a lintExprR call after each buildDictionaryT call, so I'm okay for now, but I'd rather find a cheaper solution.
I'm happy to learn more about the mechanics underlying buildDictionaryT and try sleuthing this one out myself, and I do have a workaround, so no rush on this issue. At this point, I'd appreciate a reminder of the status, and any insights, tips, etc.

BTW, I just stumbled onto ghc-tcplugins-extra, as used in Iavor's type-nat-solver. Might be useful with HERMIT.


Bug doesn't remember output device after wake up from sleep

Hello,
I set the output device to my 4K monitor (LG) and then if the computer sleeps, after wakeup it reverts back to the original output method (Mac Mini Speakers). Running on Apple M1 Mac Mini. Sound device still selected as eqMac but inside eqMac app the selected device resets.
Thanks!

Hi, same problem when I just close and then re-open the lid of my MacBook Pro => the output device setting gets lost in eqMac, it always reverts back to the host device.
Thanks!

Hi, same problem when I just close and then re-open the lid of my MacBook Pro => the output device setting gets lost in eqMac, it always reverts back to the host device.
Thanks!

Confirming the same issue on M1 Mac Mini

Confirming the same issue on M1 Mac Mini

Having this issue on the M1 macbook air. seems to happen with other equalizer apps as well (boom3d and speakeramp). Only way to fix it is wait a few minutes or constantly try to switch sound output devices until playback resumes

Same here - MacBook Air Big Sur 11.2.3 1.6 GHz Dual-Core Intel Core i5, Asus MX 38V monitor

I am triaging & trying to fix all open issues before release of eqMac v1.0.0. Excuse the wait.
Probably a duplicate of #408 and #428 Please refer to those issues, will be closing this one


Devtools console error on startup

The following error shows up in devtools everything a folder without a  .vscode subfolder is opened:

Steps:

Open folder without .vscode folder within
Open any file
Check the devtools console

Comes from:
https://github.com/Microsoft/vscode/blob/1c1c33c18db5e26f6b4529e1b20c0eb3e4c4fab6/src/vs/workbench/contrib/snippets/browser/snippetsService.ts#L275
cc @bpasero

@bpasero Why would the exists call produce such a message? Isn't this the what its return value represents?

@jrieken the IFilesystemProvider interface only exposes stat as method, not exists. So there is no other choice than calling stat on a file which produces an error that we simply log to the console. Previously when the file system provider for local files was implemented using just node.js, I had fs.exists(), but we no longer use it.

Yeah, but stat is spec'd to throw a FileNotFound exception and my expectation is that exists knows how to handle that (or that the provider throw that error)

@jrieken I debugged this and found that it does not originate from the exists check, but rather from a call to IFileService.watch() even if the resources does not exist:
https://github.com/Microsoft/vscode/blob/c5bddfa5c2a6c3154e29d887297d52d34d535d7d/src/vs/workbench/contrib/snippets/browser/snippetsService.ts#L280
Can you check? I would argue printing an error in that case is OK.

Hm... I need to know when the folder is being added. How do I listen for that? Should I listen on the parent and its add-events?

@jrieken if this is about a folder within the workspace, you do not have to install a watcher yourself right, you can just rely on the file changes event to be sent. If the folder is not within the workspace, then actually we currently do not have any good solution other than watching on the parent too.


add prerender:routes hook to extend routes

Two more options:

Config prerender:routes accepting async function entries
prerender.ts exporting async routes


Netstats Querier processes endpoints from queue

This PR Covers:

The netstats querier processing the endpoints from a queue instead of a file
Moving the queueworkers out of the capabilityquerier
Renaming the queueworkers to workers and making it more general

To Test:

Add endpoints to the database (make populatedb or another alternative)
Send the endpoints to the queues: in endpointmanager/cmd, run go run sendendpoints/main.go
Log in to the rabbitmq page on localhost:15672 and see the messages on the endpoints-to-netstats queue being processed
You should also see log messages from prometheus_postgresql_adapter_1 in the make run window with the endpoints.
There should also be values in the metrics_values table.

Pull requests into this repository require the following checks to be completed by the submitter and reviewers.
Submitter:

[x] Administrative tasks are complete.

This pull request describes why these changes were made.
The JIRA ticket links to this PR.
The JIRA ticket for this PR is: https://oncprojectracking.healthit.gov/support/browse/LANTERN-162

[x] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

[x] Code review has been performed.

Code diff has been done and checked to ensure only expected code is being committed.
A linter for the language has been run.

Primary Reviewer:

[x] Code works.

Code has been run locally and the basic functionality affected by the PR has been checked.
Edge cases have been checked to ensure behavior is as expected.

[x] Code review has been performed.

Code is maintainable, reusable, efficient, and correct.
Code accomplishes the tasks purpose.
Code follows style guidance appropriate for the language, including passing linter checks.
Code is well commented (which does not mean verbosely commented).

[x] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

Secondary Reviewer:

[x] Code works.

Code has been run locally and the basic functionality affected by the PR has been checked.
Edge cases have been checked to ensure behavior is as expected.

[x] Code review has been performed.

Code accomplishes the tasks purpose.

[ ] Tests are complete.

Tests have been run locally and pass.

Merger:
Prior to merging, ensure that all checks have been completed. Delete the branch after the merge
is complete.
Create a new branch <branch name>_gomodupdate. Run make update_mods to update the go.mod
and go.sum files to point to master. Create a PR. Require one sanity check reviewer.

looks like there are a few conflicts now. I approve but will wait until conflicts are addressed.


Trailing newlines results in no checking at all

Hi :)
when having a RAML file which contains empty lines at the beginning, no checks are performed:
ubuntu@box123:~/coala-bears$ cat test.raml

#%RAML 0.8

title: Failing RAML
version: 1
baseUri: http://example.com

/resource:
  description: hello

  post:

ubuntu@box123:~/coala-bears$ ramllint test.raml
ubuntu@box123:~/coala-bears$

but when removing them, it works:
ubuntu@box123:~/coala-bears$ cat test.raml
#%RAML 0.8

title: Failing RAML
version: 1
baseUri: http://example.com

/resource:
  description: hello

  post:

ubuntu@box123:~/coala-bears$ ramllint test.raml

error POST http://example.com/resource
  RAML section - method - must include: description [method_desc]

error POST http://example.com/resource
  RAML section - method - must include: examples [request_example]

error POST http://example.com/resource
  RAML section - method - must include: schemas [request_schema]
ubuntu@box123:~/coala-bears$

Thank you for reporting this but my guess is that is a problem with the RAML parser (external library) itself and not the linting of the output from the parser (this library).

Hmm but this fails a bit into your domain (at least to drive a patch for this external library and integrate the new version of it) as this is one of your most important components ;)

@Makman2 that is a good point. Any interest in driving that? ;)

... alright, where's the package located? ;)


When i install this library so many error is occuring

solution for this

Did you open the *.xcodeproj instead of the *xcworkspace after pod install?

ya i install pod on my project .. and i open xcworkspace....


Running the linter

I added semicolons because this package forces us to and it was bothering me https://github.com/dsherret/ts-simple-ast


Kivy & NixOS: results, questions & suggestions

I've just (barely) managed to get Kivy to work on a NixOS system.
Quoting from their website:

NixOS is a Linux distribution with a unique approach to package and configuration management. Built on top of the Nix package manager, it is completely declarative, makes upgrading systems reliable, and has many other advantages.

Trying to install Kivy on a NixOS system is useful for at least 2 reasons:

Some people (e.g. myself) run NixOS and would like to install the Kivy package.
Nix's build environments are isolated by design. This makes forces one to be explicit about runtime and build time dependencies. This explicitness results in information could be useful for others that want to deploy Kivy.

The present issue is therefore a bit of a mixed bag of the following:

My findings so far, hopefully useful for others
Questions that remain; I hope someone might be able to answer those.
Suggestions for improvements (both in terms of documentation and reducing the dependency footprint).

Kivy developers without any interest in NixOS might want to skip section 1. I have not split the points mentioned in section 3 out into multiple issues in GitHub; people that wish to do that should feel free.
The questions & suggestions have been uniquely numbered in the below so that people that have only a single answer may still be able to give that in a clear way.
1. Installing on Nixos
The below was tested on NixOs 17.03.
The below is for Kivy-1.10.0.
I didn't get all nosetests to run yet; but my personal Kivy application runs, so at least we have a visual.
The following piece of code may be inserted into pkgs/top-level/python-packages.nix
  kivy = buildPythonPackage rec {
    name = "Kivy-1.10.0";

    src = pkgs.fetchurl {
      url = "mirror://pypi/k/kivy/${name}.tar.gz";
      sha256 = "1394zh6kvf7k5d8vlzxcsfcailr3q59xwg9b1n7qaf25bvyq1h98";
    };

    # setup.py invokes git on build but we're fetching a tarball, so
    # can't retrieve git version. We remove the git-invocation from setup.py
    # In https://github.com/kivy/kivy/pull/5366 this was fixed, so the next version of Kivy probably
    # does not need this patch
    patches = [
      ../development/python-modules/kivy/setup.py.patch
    ];

    buildInputs = with self; [
      pkgconfig
      cython
      kivygarden
      requests2
      docutils
      pygments
      nose

      pkgs.SDL2
      pkgs.SDL2_image
      pkgs.SDL2_ttf
      pkgs.SDL2_mixer

      pkgs.mesa
      pkgs.gst_all_1.gstreamer
      ];

    propagatedBuildInputs = with self; [
      pillow
      ] ;

    doCheck = false;

    checkPhase = ''
      export KIVY_NO_CONFIG=1
      nosetests
    '';

    meta = {
      description = "A software library for rapid development of hardware-accelerated multitouch applications.";
      homepage    = "https://pypi.python.org/pypi/kivy";
      license     = licenses.mit;
      maintainers = with maintainers; [ vanschelven ];
      platforms   = platforms.unix;  # Can only test linux; in principle other platforms are supported
    };
  };

  kivygarden = buildPythonPackage rec {
    name = "kivy-garden-0.1.4";

    src = pkgs.fetchurl {
      url = "mirror://pypi/k/kivy-garden/${name}.tar.gz";
      sha256 = "0wkcpr2zc1q5jb0bi7v2dgc0vs5h1y7j42mviyh764j2i0kz8mn2";
    };

    buildInputs = with self; [ requests2 ];

    meta = {
      description = "The kivy garden installation script, split into its own package for convenient use in buildozer.";

      homepage    = "https://pypi.python.org/pypi/kivy-garden";
      license     = licenses.mit;
      maintainers = with maintainers; [ vanschelven ];
      platforms   = platforms.unix;  # Can only test linux; in principle other platforms are supported
    };
  };

The associated patch file in pkgs/development/python-modules/kivy/setup.py.patch is:
--- Kivy-1.10.0/setup.py	2017-05-07 17:24:57.000000000 +0200
+++ setup.py	2017-09-04 14:27:13.222721223 +0200
@@ -42,12 +42,7 @@
 def get_version(filename='kivy/version.py'):
     VERSION = kivy.__version__
     DATE = datetime.utcnow().strftime('%Y%m%d')
-    try:
-        GIT_REVISION = check_output(
-            ['git', 'rev-parse', 'HEAD']
-        ).strip().decode('ascii')
-    except CalledProcessError:
-        GIT_REVISION = "Unknown"
+    GIT_REVISION = "Unknown"

     cnt = (
         "# THIS FILE IS GENERATED FROM KIVY SETUP.PY\n"

2. Questions that remain
On the installation page there is the following quote:

We don’t expect you to install all those things on your own. Instead, we have created nice portable packages that you can use directly, and they already contain the necessary packages for your platform. We just want you to know that there are alternatives to the defaults and give you an overview of the things Kivy uses internally.

To be honest, the fact that installation of "all those things" is not actually expected to be doable is somewhat apparent in the process of trying to get it to work :-/
In any case, some questions:

Q-1 In the documentation there are references to both SDL2 and pygame. Is it correct to understand that the latter is deprecated in favor of the former?

Q-2 There are various packages on the internet available that provide python bindings for SDL2. Is it correct to understand that Kivy does not depend on these, but instead has its own bindings?

Q-3 what is the preferred setup for running the tests? nosetests runs some tests, but it is not clear to me how to best configure the environment before doing so. A question in particular is the following: Kivy's build phase may be configured in any number of ways. (Many different available dependencies). How to tell the tests about this? E.g. if building without gstreamer support, I don't want to attempt to test gstreamer-dependent stuff and similarly for other cases. (The piece of the puzzle that I did manage to get working was to prefix the tests with export KIVY_NO_CONFIG=1 - a HOME directory does not exist in the Nix build environment by design)

Q-4 The dependency on pillow is mentioned as an optional one, but running Kivy's nosetests without Pillow installed leads to "ERROR... aborting". (something about a lack of a TEXT provider).

Q-5 When running a pip install kivy docutils is pulled in automatically. Is it required when running Kivy? Is it required in the build phase? Or is it only required for those that actually develop Kivy?

Q-6 Similarly, pygments is pulled in automatically. It seems to be required only by a single widget. Would it be possible to make the dependency more optional?

3. Suggestions for improvements

I-1 At present setup.py prints a warning, but continues, when the pkg-config executable does not exist I would suggest a more fatal error on not finding pkg-config, since it is, AFAIU, a hard requirement for correct compilation.

I-2 The package kivy-garden is pulled in by the kivy package, even though there is no actual dependency of the former on the latter (AFAIU). Kivy-garden then goes and worsens the situation by pulling in requests, which pulls in further packages (urllib3, certifi, idna & chardet). I would suggest to remove the dependency, and let those that want to install kivy-garden just install it themselves. TBH I don't understand the need for kivy-garden in the first place, it would seem to be a half-baked "not invented here" implementation of pip/PyPI but perhaps I'm missing something.

I-3 IIRC there was an automatic installation of the requests2 library; I'm not sure whether that was exclusively caused by Kivy itself or only indirectly via Kivy-garden. In any case, the only references in Kivy to requests are in 2 error-reporting and benchmarking tools; it would seem quite bloating to pull in all of requests2 just to support those 2 (optional) tools.

Trying to install Kivy on a NixOS system is useful for at least 2 reasons:

I agree, thanks for trying this.

Q-1 In the documentation there are references to both SDL2 and pygame. Is it correct to understand that the latter is deprecated in favor of the former?

This is correct, although we don't intend to actively break the pygame backend.

Q-2 There are various packages on the internet available that provide python bindings for SDL2. Is it correct to understand that Kivy does not depend on these, but instead has its own bindings?

This is also correct.

Q-3 what is the preferred setup for running the tests?

I'm not sure about this, some of the other devs should be able to help though.

Q-4 The dependency on pillow is mentioned as an optional one, but running Kivy's nosetests without Pillow installed leads to "ERROR... aborting". (something about a lack of a TEXT provider).

What exactly is the error? It sounds like the kind of generic message you'd expect if no text provider is built (in which case pillow is one thing it will look for), but if Kivy runs normally in other circumstances then this seems surprising.

Q-5 When running a pip install kivy docutils is pulled in automatically. Is it required when running Kivy? Is it required in the build phase? Or is it only required for those that actually develop Kivy?

I think the rst viewing widget requires docutils. I'm not explicitly aware of anything else.

Q-6 Similarly, pygments is pulled in automatically. It seems to be required only by a single widget. Would it be possible to make the dependency more optional?

This also seems correct. It would be nice to make it more optional. I was recently looking at the setuptools provision for this (http://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies), but wasn't sure if the user experience here is helped much, as it seems that in normal use the user will only find out about the dependencies when the import fails. Maybe that's fine though.

I-1 At present setup.py prints a warning, but continues, when the pkg-config executable does not exist I would suggest a more fatal error on not finding pkg-config, since it is, AFAIU, a hard requirement for correct compilation.

I'm not familiar with this but it certainly seems fair.

TBH I don't understand the need for kivy-garden in the first place, it would seem to be a half-baked "not invented here" implementation of pip/PyPI but perhaps I'm missing something.

Personally I don't really disagree (although there are at least some advantages in principle), but other of the devs may be able to make a more passionate defence.

IIRC there was an automatic installation of the requests2 library; I'm not sure whether that was exclusively caused by Kivy itself or only indirectly via Kivy-garden. In any case, the only references in Kivy to requests are in 2 error-reporting and benchmarking tools; it would seem quite bloating to pull in all of requests2 just to support those 2 (optional) tools.

This also seems fair enough to me.

(Q-4) E.g. if building without gstreamer support, I don't want to attempt to test gstreamer-dependent stuff

Unless something changed recently, video/image/audio tests are only run for the preferred provider. Ie, the first one that is installed correctly and will load the file (provider order depends on platform etc, see bottom of core/(audio|video|image)/__init__.py). As far as I know you have to set environment variables to control the provider selection (KIVY_VIDEO etc, docs) to specify what to test.. This seems like a shortcoming to me, the ImageLoader testcase PR does some extra work to test all installed image providers. I'm not sure why the existing tests don't do this.

Thanks for the quick and almost complete answers @inclement
Regarding a few of the open points:

Q-4 The dependency on pillow is mentioned as an optional one, but running Kivy's nosetests without Pillow installed leads to "ERROR... aborting". (something about a lack of a TEXT provider).

What exactly is the error? It sounds like the kind of generic message you'd expect if no text provider is built (in which case pillow is one thing it will look for), but if Kivy runs normally in other circumstances then this seems surprising.

I've managed to reproduce: when compiling Kivy with neither SDL2, nor pygame, nor Pillow, I get the following (probably expected) test failure:
    [CRITICAL] [App         ] Unable to get a Text provider, abort.

Given the answers above I've come up with a new question:

Q-7 I know there are many ways Kivy could be configured. What is the most canonical complete configuration on the linux platform though? I suppose another way of asking this is: with which dependencies are the PPA packages compiled? Hopefully such a configuration will automatically solve any problems I had in getting the tests to pass (assuming that a complete configuration has passing tests)

Q-7 I know there are many ways Kivy could be configured. What is the most canonical complete configuration on the linux platform though?

I believe the answer is sdl2 for everything, certainly including the Window and Text providers.
I'm least sure about the audio - I think the providers have more important differences here, with it being less obvious which is 'best', but I've never made much use of them.

I'm least sure about the audio and video

Camera is also unclear in the cross-platform sense, though for a canonical linux configuration the answer is probably opencv. SDL2 for image provider qualifies as "canonical", though it is my impression that ffpyplayer has wider and better format support.
Hopefully pango will become the text provider for desktop linux in the near future.

This is a mixture of a support question and feature requests, making it difficult to close as completed.
Each feature requests that isn't covered by an existing issue should be raised separately. (Looks like many of them have been implemented.)


How to deal with inconsistent timestamps in text format

https://github.com/prometheus/docs/issues/552

I think we mainly need to specify what is/isn't allowed

This would be an error.


Fresh vagrant up Not Working

Expected behaviour
I should be able to go to localhost:8001 and see the kanboard site once vagrant finishes provisioning the box with vagrant up
Actual behaviour
Going to localhost:8001 shows that the server is not reachable. If I vagrant ssh into the machine and try to curl localhost it results in a 500 error. The apache logs show:
[Tue Jun 07 01:49:50.864089 2016] [:error] [pid 6010] [client <IP_ADDRESS>:54445] PHP Fatal error:
require(): Failed opening required '/var/www/html/app/../vendor/autoload.php'
(include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/app/common.php on line 3

Steps to reproduce

clone this repo
execute vagrant up

Configuration
Unable to do this, since the site is not loading. However, this is from a fresh clone of master running vagrant up.

Per the error:
/var/www/html/app/common.php on line 3
this is what is included on line 3 of common.php
require __DIR__.'/../vendor/autoload.php';

This is happening because composer is not being installed or called by default. Sending a PR to fix this now.

Merged your PR. Thanks.


docs: cleanup prep for release

Description
To prepare for release, this PR cleans up some content that are currently "empty".

Pages that do not have any content yet are removed from navigation.
Cards under the Support section that do not have links are removed.
Support link is changed to the SUPPORT.md file.
Edited Feedback link so that it uses the Feedback github issue form.
Renamed numbering scheme for content directory to match the preferred syntax.
Fixed some issues with the Javascript section displaying the v5, v6 and intro pages.
Edit link changed to main for preparation for release

Is it expected for the preview link to fall into this view?

- double icons for socials, maybe this can be fixed on this PR

- there's a dash on the title of the site

 - double icons for socials, maybe this can be fixed on this PR

Good check, I can remove those

 Is it expected for the preview link to fall into this view?

This is for local development purposes, you won't see that on production. Same with the dash on the main page.


Disable cache for subscription channels

Hi I am running into an issues.  When using dynamic channels in subscriptions, I think the cache is returning results from a different cache> I have posted a video of the issue in the link below
https://community.apollographql.com/t/polling-inside-a-subscription/1469/8

Are you still having this issue? If so please reopen.


Show error if module loading fails.

Currently, if something goes wrong during module loading, the module loading dialog goes away without explanation.
This change displays an error message informing the user that something went wrong, possibly with enough information to debug.
Fixes #3333

Contains
Brief description of what the PR does like "Fixes #12345"
How to test
Brief description of how to test / confirm this PR before merging
Outstanding before merging
If anything. You can use neat checkboxes! Feel free to delete if not needed

[ ] Need to consider use case x
[ ] Still have to adjust the wiki doc
[ ] Will need translation work

Can one of the admins please verify this patch?

Heya @cwgreene and thanks for the PR :-)
Do you have a preferred way to reproduce a situation in which this occurs? That makes it easier to test it
@GooeyHub: ok to test

Hooray Jenkins reported success with all tests good!

@Cervator, oops, sorry I missed that message. The most reliable way of testing this at the moment is unfortunately via #3333, though it may be possible to reliably repro it in future (in an integ test) by controlling the network connection and forcing a failure. I'll take a look at our existing integ test infra.

Can be tested by starting Terasology, creating a new game, clicking the Modules button, disconnecting your internet connection, then attempting to download a module.   Without the patch, you'll only see a generic error message about the module failing to load.  With the patch, you'll see "java.net.UnknownHostException: artifactory.terasology.org"

Ha!  I didn't see your comment an hour ago when I started working on this.   Yes, I came to the same conclusion that disconnecting the network was the easiest way to test it.   Thanks for the patch.


Questions

Hello,
Is this fork going to be updated on an ongoing basis? I have noticed the main repo hasn't been updated in a while.
If so, then how can I use your fork instead of the main one I use now in my package.json file?

Hey and sorry for the late response, you might want to take a look at https://github.com/andi34/PhotoSwipeGallery for example, I'd only have to add back https://github.com/andi34/photobooth/commit/d9959eb773a0996efa86d2a6bbd8a41974cc8bc5

Is this  fork stalled?
Are there any plans to publish to npm or other package managers?

Is this fork stalled?

Currently I am quite busy in real life so there's not much development ongoing.

Are there any plans to publish to npm or other package managers?

No.

@andi34 why did you edit my post asking if this fork was stale? According to your first answer it is reasonable question and should not be a subject to censorship 🤐

@andi34 why did you remove my post asking if this fork is stalled?
It is a legitime question, and should not be a subject to censorship 🤐

@andi34 why did you remove my post asking if this fork is stalled?
It is a legitime question, and should not be a subject to censorship 🤐

Not sure what you're talking about. I've not censored anything and have answered your question @ralftar .


Parsing a whole crate with particular cfgs defined

I was thinking about porting the ctest crate (used by libc) to syn, mainly because it uses the latest release of the syntex_syntax crate which does not support repr(transparent), and that blocks adding APIs that could benefit from repr(transparent) to libc.
I have a couple of questions and am not sure where is the best place to ask them.
The syntex_syntax crate has a parse_crate function, that given a file, continues walking the directory tree parsing modules, it can do a certain level of macro expansion while doing this (e.g. cfg(unix), etc. where these macros are defined in the session).
I was wondering if syn has something similar, or what would be the best way of achieving the same thing.
I thought that maybe I could parse a single file, then do a fold on the file that expands some macros, then visit all the modules, resolve their paths in the file-system, and repeat. Something like this seems widely-useful enough that it might be worth it to implement it in syn directly instead.
E.g. the ctest crate defines, for each target-triple, which macros should be expanded, but that sounds manual and brittle. It might be better to somehow hook up rustc_target and obtain this information from there.

Syn is only a parser, so other aspects of compilation like expanding macros, dealing with target-specific configuration properties, crawling the filesystem, etc are out of scope.
https://github.com/TedDriggs/syn-inline-mod looks like it handles some of what you need.

I see, I'll check that out, thanks!

@dtolnay is there a crate for expanding macros ? Like in the project you mention:
#[cfg(foo)]
mod a;

is expanded to
#[cfg(foo)]
mod a {
   ...a contents...
}

This gives me an AST for the whole crate, but now I'd like to define some macros, and expand them, e.g., removing all those cfgs, cfg_if!, etc.

I don't know of such a crate.


Bump image version for new models

bump version to force an upgrade

LGTM! Waiting on deployment to merge just in case


Small improvements

Starting to review now.

It looks sane to me. I'll give it a quick try locally.

Unfortuntaley, It seems that local testing is broken, since the arguments are no longer handled correctly:
$ PYTHONPATH=src/main/python python src/main/scripts/alppacad --config src/main/python/resources/example_config.yaml
usage: alppacad [-h] [-c CONFIG]
alppacad: error: unrecognized arguments: src/main/python/resources/example_config.yaml

When copying the example to /etc/alppaca I get:
PYTHONPATH=src/main/python python src/main/scripts/alppacad start
Traceback (most recent call last):
  File "src/main/scripts/alppacad", line 38, in <module>
    os.mkdir(pidpath)
OSError: [Errno 13] Permission denied: '/var/run/alppacad'

When running as root and setting up an appropriate virtualenv, I get:
(.venv)root@isdeblnnl086:/data/home/vhaenel/git/alppaca# PYTHONPATH=src/main/python python src/main/scripts/alppacad start
Traceback (most recent call last):
  File "src/main/scripts/alppacad", line 42, in <module>
    uid = getpwnam(alppaca.user or "root").pw_uid
KeyError: 'getpwnam(): name not found: alppaca'