Time out error in log when trying to start trex in stateless mode through TRex daemon

Hello,
Description:
I am trying to start/stop trex through trex daemon.
Expected behavior:
Trex started successfully message in log after clicking start button.
Actual behavior:
On clicking start button it successfully starts trex in stateless mode but throws timeout error message.
Steps to reproduces.
Connect to remote trex server using trex daemon port 8090.
Configured default config
When clicked start button, below message throws after sometime, but trex gets start in the background without any issues.
Error Unable to start TRex: com.github.arteam.simplejsonrpc.client.exception.JsonRpcException: ErrorMessage(code=-12, message=TimeoutError: TRex invitation outcome could not be obtained, since TRex stays at Starting state beyond defined timeout.)
Version:
trex-core: v2.53
Stateless GUI: v4.5.3
How to address this issue?
If the message throws because of lesser timeout has set, how to increase the timeout option?
Thanks and Regards,
Mohan

Hi,
Is the TRex host located far enough so you experiencing such delays? I suppose we could implement timeout option to that dialog, maybe it could solve this problem.
Thanks & regards,
Egor

Hi,
Yes, TRex server located very far only.
Thanks,
Mohan

Mohan,
Another moment, that I see, is that it should be not a connection problem, but TRex startup goes to long, so the daemon itself returns an error in that case. Please verify you IP configuration (TRex starts too long if it fails in ARP resolve), or try to start it in l2 mode. And let me know the results. I'm not sure if TRex Daemon supports specification of timeout for this method, but will check on that end.

Hi Egor,
Sorry, could not able to respond soon.
I have tried in l2 mode. and got the same message
Info   07:24:47 Config uploaded successfully
Error 07:25:04 ErrorMessage(code=-12, message=TimeoutError: TRex invitation outcome could not be obtained, since TRex stays at Starting state beyond defined timeout.)
Below is the cfg file I have used:

port_limit: 2
version: 2
interfaces:

"01:00.0"
"01:00.1"
port_info:
dest_mac: "68:ca:f4:a1:57:d7"
dest_mac: "d8:b1:80:83:d6:03"

It took an average of 16 seconds to start the trex in stateless mode. ran the command ./t-rex-64 -i also in the trex daemon log we can see.
Will that causing the problem.
Thanks,
Mohan

Hi,
Please check new v4.5.5, I've implemented option to edit Start timeout. Last time you tried it was 15 seconds hardcoded, now you can specify as per your requirement.

Thanks Egor. Sorry for the delay.


how to set the PING-PONG timeout

when the client android device connect to the server android device. If restart the client device, the server device will receive the onClose after 1 minute. How to set the timeout?

Hello @sww0825521xy
If I understand correctly, the android client is not correctly closing the connection to the server due to e.g. lost internet.
Therefore I implemented a lost connection connection (Check here).
If you wanna shorten the ping interval, decrease it with
ChatServer s = new ChatServer( port );
s.setConnectionLostTimeout( <new interval> );
s.start();

Greetings
marci4

Hi marci4
I use setConnectionLostTimeout to set timeout for both server and client device. If client lost connection, server will receive the onClose after timeout. But if server lost connection, client will not receive the onClose after timeout.
WebSocketClient.setConnectionLostTimeout(9);

Hello @sww0825521xy
could you please activate the debug printouts with WebSocketImpl.DEBUG = true; and post the log here so I can understand what is going wrong!
Greetings
marci4

Hi marci4
I have uploaded the client log and enable the log switch.
client.txt
client onOpen : 07-11 05:19:11.679: I/ClientService(9488): onOpen:Web Socket Protocol Handshake
client close log will print :  onClose code:
If the server lost connection, the client will not receive the onClose callback.

Hello @sww0825521xy
that log has close to 5000 lines. That won't help me....
Greetings
marci4

Hello marci4
You can start from line 4606 when the client receive onOpen callback.

I am sorry but I do not have time to go through so many unrelevant lines...

Hello @sww0825521xy,
finally got enough time to check out these 5k lines of log.
Looks like it could be related to #504. Like some implementations (mostly Android) are not updating the selector and because of that not correctly closing everything down!
Could you maybe try to patch #506 and give me some feedback.
Greetings
marci4

Hello marci4
I will download the master code and test it. Give you feedback ASAP.

Hello marci4
I download the master code with the patch #506 and test on my android devices.
if server lost connection, client now will receive the onClose callback after the timeout.
patch #506 fix the issue.

Hello @sww0825521xy,
thx for your feedback.
As I understand you correctly, I can close this topic right?
Greetings
marci4


Add a Translate interaction

This PR supersedes https://github.com/openlayers/ol3/pull/3250.

Squashed the commits.
Changed the commit messages to respect our guidelines.
Moved the new example from the examples_src directory to the examples directory.

Fixes #3250.

Merging this. Thanks @Morgul for your patience on this.


Links to "Pawfal collective" ( http://www.pawfal.org/index.php?page=PawfalPeople ) need to be fixed

(gives 404 now). There is at least one such link in the livecodelab home page, there might be more in various readmes

so I can't find any links to pawfal within the LCL code. can we close this?

closed as I'm pretty sure this isn't an issue


npm install not responding

Describe the bug
while setting up a new project and issuing the first prompt the npm install never completes.No error is given it just has the spinning indicator that never finishes.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-xghun4
Steps to reproduce

provide prompt 2. wait for npm to complete

Expected behavior
expect npm to install dependencies to complete project setup.
Screen Recording / Screenshot
No response
Platform
Browser name = Safari
Full version = 18.1.1
Major version = 18
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Safari/605.1.15
performance.memory = undefined
Username = dikaio
Chat ID = 0639d44f9768

Additional context
No response

try using terminal

Hi all,
Bolt works best in Chrome and Chromium browsers. Additional npm install issues are being tracked here: #2021.


controller/deployment: Retry SetAppRelease a few times when connection failure

#1119

This appears to no longer be an issue (see #1991)


WeakMaps/WeakSets need not include values which are not referenced elsewhere in output

WeakMaps and WeakSets should not include elements which are not referenced elsewhere in the exported app.
Currently new WeakSet( [ {x: 1} ] ) is serialized as new WeakSet( [ {x: 1} ] ).
This is pointless as the object {x: 1} is not exposed anywhere else in the exported app, and therefore it's never possible for the app to test whether the object is in the WeakSet or not (weakSet.has( obj ) requires the object to start with).
Cannot rely on garbage collector to do this automatically. The object might be referenced elsewhere in the code being run at time of serialization and therefore not available for garbage collection, but not be part of the value being serialized.
Will be tricky to implement for WeakMaps. e.g. a case like this:

2 WeakMaps weakMap1 and weakMap2.
Object obj1 is referenced in the serialized output.
obj1 is used as a key in weakMap1, mapping to object obj2.
obj2 is used as a key in weakMap2 mapping to object obj3.

In this case determining whether obj3 needs to be serialized or not depends on whether obj1 is referenced elsewhere other than in weakMap1.
Probably need to leave serializing WeakMaps until last. Values for keys which are referenced elsewhere are serialized and inserted into their WeakMaps. That may make other values valid keys that need to be added to other WeakMaps, so need to repeat the check again and again until all possible avenues are exhausted.
The order of elements in WeakMaps/WeakSets is not relevant - there's no way to iterate them - so that simplifies things a bit.

This would be quite simple if two-phase serialization (#426) were implemented.
WeakSets

Initialize var at start of tracing weakSets as empty array.
When a new WeakSet is encountered, create a record for it (with an empty members array) and add to weakSets.
At end of tracing, for each record in weakSets, iterate over members of the WeakSet. Any members which have a record for them are added to record.members and output as  member of the WeakSet.

Actually this would not require #426 to be implemented first. Could be implemented in current code base.
WeakMaps

All records contain a property .keyForWeakMaps set as undefined initially.
When a WeakMap is encountered for first time, create a record for it.
Record has a members property which is initially an empty array.
For each key of the WeakMap:

If key already has a corresponding record, trace the value, and add records for key and value to record.members as a pair.
Otherwise, create a record for key, but don't trace the key's value or the weakly-referenced value. Set .keyForWeakMaps property on key's record to [ weakMapRecord ].

When any other value is encountered, if it has an existing record with .keyForWeakMaps defined:

Make a copy of record.keyForWeakMaps.
Set record.keyForWeakMaps = undefined.
Trace the key's value.
For each WeakMap record in keyForWeakMaps, look up the value for the key, and trace the value.
Add records for key and value to weakMapRecord.members as a pair.

At end of tracing, only strongly-referenced key-value pairs will be recorded as members of the WeakMaps, and only they will appear in output.
This requires two-phase serialization, because at the time a WeakMap is encountered, what members it should include is unknown. This can only be known at the end of tracing of the whole program. It's not possible to revisit WeakMaps late the way Livepack is currently written, because it wouldn't be possible to identify circular references at that stage.
NB WeakSets and WeakMaps are not iterable, so the order of their members is not relevant.


New project from a Template - console error

Describe the bug
When starting a new project from a Template we get a console error.
To Reproduce
Steps to reproduce the behaviour:

Go to 'Home page'
Click on 'Start from a template'
See console error

Expected behaviour
No console error
Screenshots

Desktop (please complete the following information):

Version 1.6.3

merged


add known_failure annotation

+1 to the batch changes, but dont merge in the annotation for bug_5732 test yet


New version: Hashicorp.Terraform version 1.10.0

Pull request has been created with komac v2.6.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

No errors to post.

(Automated response - build 899.)

@stephengillie Is there anything I need to do?

Pipelines no longer upload artifacts on Installer Validation Errors #194328

Unfortunately, this also blocks my automation from extracting the logs, filtering, and posting these to the PR. There is too much PR volume for me to manually check all of these. So I am only checking these where requested.


Missing pycurl module while trying to use SQS as Celery broker

What I'm trying to achieve
Trying to use SQS as Celery Broker.
Steps to reproduce the problem

Using roribio16/alpine-sqs instead of redis container
Set CELERY_BROKER_URL=sqs://AAA:SSS@alpine-sqs:9324/
Start worker service

What I expected to happen
Worker (celery) process to connect on SQS and start processing.
Screenshots and logs

Worker container logs
worker_1      | /usr/local/lib/python3.9/site-packages/celery/platforms.py:834: SecurityWarning: You're running the worker with superuser privileges: this is
worker_1      | absolutely not recommended!
worker_1      |
worker_1      | Please specify a different user using the --uid option.
worker_1      |
worker_1      | User information: uid=0 euid=0 gid=0 egid=0
worker_1      |
worker_1      |   warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
worker_1      |
worker_1      |  -------------- celery@84ef76d0f2b7 v5.1.2 (sun-harmonics)
worker_1      | --- ***** -----
worker_1      | -- ******* ---- Linux-5.10.47-linuxkit-aarch64-with-glibc2.31 2021-12-15 14:44:15
worker_1      | - *** --- * ---
worker_1      | - ** ---------- [config]
worker_1      | - ** ---------- .> app:         saleor:0xffffa934cd90
worker_1      | - ** ---------- .> transport:   sqs://AAA:**@alpine-sqs:9324//
worker_1      | - ** ---------- .> results:     disabled://
worker_1      | - *** --- * --- .> concurrency: 4 (prefork)
worker_1      | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
worker_1      | --- ***** -----
worker_1      |  -------------- [queues]
worker_1      |                 .> default          exchange=default(direct) key=default
worker_1      |
worker_1      |
worker_1      | [tasks]
worker_1      |   . saleor.account.thumbnails.create_user_avatar_thumbnails
worker_1      |   . saleor.app.tasks.install_app_task
worker_1      |   . saleor.core.analytics.ga_report
worker_1      |   . saleor.core.search_tasks.set_order_search_document_values
worker_1      |   . saleor.core.search_tasks.set_user_search_document_values
worker_1      |   . saleor.core.tasks.delete_from_storage_task
worker_1      |   . saleor.csv.tasks.export_products_task
worker_1      |   . saleor.order.tasks.recalculate_orders_task
worker_1      |   . saleor.plugins.admin_email.tasks.send_email_with_link_to_download_file_task
worker_1      |   . saleor.plugins.admin_email.tasks.send_export_failed_email_task
worker_1      |   . saleor.plugins.admin_email.tasks.send_set_staff_password_email_task
worker_1      |   . saleor.plugins.admin_email.tasks.send_staff_order_confirmation_email_task
worker_1      |   . saleor.plugins.admin_email.tasks.send_staff_password_reset_email_task
worker_1      |   . saleor.plugins.avatax.tasks.api_post_request_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_account_confirmation_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_account_delete_confirmation_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_email_with_dynamic_template_id
worker_1      |   . saleor.plugins.sendgrid.tasks.send_fulfillment_confirmation_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_fulfillment_update_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_gift_card_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_invoice_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_order_canceled_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_order_confirmation_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_order_confirmed_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_order_refund_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_password_reset_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_payment_confirmation_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_request_email_change_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_set_user_password_email_task
worker_1      |   . saleor.plugins.sendgrid.tasks.send_user_change_email_notification_task
worker_1      |   . saleor.plugins.user_email.tasks.send_account_confirmation_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_account_delete_confirmation_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_fulfillment_confirmation_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_fulfillment_update_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_gift_card_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_invoice_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_order_canceled_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_order_confirmation_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_order_confirmed_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_order_refund_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_password_reset_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_payment_confirmation_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_request_email_change_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_set_user_password_email_task
worker_1      |   . saleor.plugins.user_email.tasks.send_user_change_email_notification_task
worker_1      |   . saleor.plugins.webhook.tasks._get_webhooks_for_event
worker_1      |   . saleor.plugins.webhook.tasks.send_webhook_request
worker_1      |   . saleor.plugins.webhook.tasks.trigger_webhooks_for_event
worker_1      |   . saleor.product.tasks.deactivate_preorder_for_variants_task
worker_1      |   . saleor.product.tasks.update_product_discounted_price_task
worker_1      |   . saleor.product.tasks.update_products_discounted_prices_of_catalogues_task
worker_1      |   . saleor.product.tasks.update_products_discounted_prices_of_discount_task
worker_1      |   . saleor.product.tasks.update_products_discounted_prices_task
worker_1      |   . saleor.product.tasks.update_variants_names
worker_1      |   . saleor.product.thumbnails.create_category_background_image_thumbnails
worker_1      |   . saleor.product.thumbnails.create_collection_background_image_thumbnails
worker_1      |   . saleor.product.thumbnails.create_product_thumbnails
worker_1      |   . saleor.shipping.tasks.drop_invalid_shipping_methods_relations_for_given_channels
worker_1      |   . saleor.warehouse.tasks.delete_empty_allocations_task
worker_1      |   . saleor.warehouse.tasks.delete_expired_reservations_task
worker_1      |
worker_1      | INFO celery.worker.consumer.connection Connected to sqs://AAA:**@alpine-sqs:9324// [PID:1:MainThread]
worker_1      | WARNING py.warnings /usr/local/lib/python3.9/site-packages/celery/fixups/django.py:203: UserWarning: Using settings.DEBUG leads to a memory
worker_1      |             leak, never use this setting in production environments!
worker_1      |   warnings.warn('''Using settings.DEBUG leads to a memory
worker_1      |  [PID:1:MainThread]
worker_1      | INFO celery.apps.worker celery@84ef76d0f2b7 ready. [PID:1:MainThread]
worker_1      | CRITICAL celery.worker Unrecoverable error: ImportError('The curl client requires the pycurl library.') [PID:1:MainThread]
worker_1      | Traceback (most recent call last):
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/http/__init__.py", line 18, in get_client
worker_1      |     return hub._current_http_client
worker_1      | AttributeError: 'Hub' object has no attribute '_current_http_client'
worker_1      |
worker_1      | During handling of the above exception, another exception occurred:
worker_1      |
worker_1      | Traceback (most recent call last):
worker_1      |   File "/usr/local/lib/python3.9/site-packages/celery/worker/worker.py", line 203, in start
worker_1      |     self.blueprint.start(self)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/celery/bootsteps.py", line 116, in start
worker_1      |     step.start(parent)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/celery/bootsteps.py", line 365, in start
worker_1      |     return self.obj.start()
worker_1      |   File "/usr/local/lib/python3.9/site-packages/celery/worker/consumer/consumer.py", line 326, in start
worker_1      |     blueprint.start(self)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/celery/bootsteps.py", line 116, in start
worker_1      |     step.start(parent)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/celery/worker/consumer/consumer.py", line 618, in start
worker_1      |     c.loop(*c.loop_args())
worker_1      |   File "/usr/local/lib/python3.9/site-packages/celery/worker/loops.py", line 81, in asynloop
worker_1      |     next(loop)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/hub.py", line 299, in create_loop
worker_1      |     item()
worker_1      |   File "/usr/local/lib/python3.9/site-packages/vine/promises.py", line 160, in __call__
worker_1      |     return self.throw()
worker_1      |   File "/usr/local/lib/python3.9/site-packages/vine/promises.py", line 157, in __call__
worker_1      |     retval = fun(*final_args, **final_kwargs)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/transport/SQS.py", line 513, in _schedule_queue
worker_1      |     self._get_bulk_async(
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/transport/SQS.py", line 530, in _get_bulk_async
worker_1      |     return self._get_async(queue, maxcount, callback=callback)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/transport/SQS.py", line 540, in _get_async
worker_1      |     qname, count=count, connection=self.asynsqs(queue=qname),
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/transport/SQS.py", line 743, in asynsqs
worker_1      |     c = self._asynsqs = AsyncSQSConnection(
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/aws/sqs/connection.py", line 20, in __init__
worker_1      |     super().__init__(
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/aws/connection.py", line 180, in __init__
worker_1      |     super().__init__(sqs_connection, http_client,
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/aws/connection.py", line 134, in __init__
worker_1      |     self._httpclient = http_client or get_client()
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/http/__init__.py", line 20, in get_client
worker_1      |     client = hub._current_http_client = Client(hub, **kwargs)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/http/__init__.py", line 11, in Client
worker_1      |     return CurlClient(hub, **kwargs)
worker_1      |   File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/http/curl.py", line 41, in __init__
worker_1      |     raise ImportError('The curl client requires the pycurl library.')
worker_1      | ImportError: The curl client requires the pycurl library.
worker_1      | INFO celery.beat beat: Shutting down... [PID:1:MainThread]
saleor_worker_1 exited with code 0

System information
Saleor version:

[x] dev (current main)
[ ] 3.0
[ ] 2.11
[ ] 2.10

Operating system:

[ ] Windows
[ ] Linux
[x] MacOS (M1)
[ ] Other

I don't think that this is a bug @geovanisouza92. When you have a little time, it's worth browsing through the amazing docs and discussions page: https://github.com/saleor/saleor/discussions/
Recently this subject popped there: https://github.com/saleor/saleor/discussions/8707
Also, I don't know the current status but had Saleor have a spectrum space: https://spectrum.chat/saleor

Thank you @daltonsena ! I'll test it soon and confirm if it works for me.


Docker composition fails on Fedora 28

Running npm start docker-compose up fails to initialize the images.
OS Info:
Fedora release 28 (Twenty Eight)
NAME=Fedora
VERSION="28 (Workstation Edition)"
ID=fedora
VERSION_ID=28
PLATFORM_ID="platform:f28"
Docker info:
Containers: 5
Running: 0
Paused: 0
Stopped: 5
Images: 3
Server Version: 18.09.0-ce-tp5
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc containerd
Default Runtime: containerd
Init Binary: docker-init
containerd version: ce243288e27971e324363de8f322d221635a8521 (expected: 468a545b9edcd5932818eb9de8e72413e616e86e)
runc version: 1555a78945e56737bc3d15565191d857ee6fa2b9 (expected: 69663f0bd4b60df09991c08812a60108003fa340)
init version: fec3683
Kernel Version: 4.18.7-200.fc28.x86_64
Operating System: Fedora 28 (Workstation Edition)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 5.705GiB
Name: localhost.localdomain
ID: GGXK:W7MH:C2QF:T4V4:7SAV:62BL:EAY5:XSUO:QTA7:UYYH:URCU:EYQL
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
<IP_ADDRESS>/8
Live Restore Enabled: false
Product License: Community Engine
Docker version:
Client:
Version:           18.09.0-ce-beta1
API version:       1.39
Go version:        go1.10.4
Git commit:        78a6bdb
Built:             Thu Sep  6 22:47:53 2018
OS/Arch:           linux/amd64
Experimental:      false
Server:
Engine:
Version:          18.09.0-ce-tp5
API version:      1.39 (minimum version 1.12)
Go version:       go1.10.3
Git commit:       9eb3d36
Built:
OS/Arch:          linux/amd64
Experimental:     false

I'm not sure I understand.  You are running npm start docker-compose up?  Or, are you saying the prestart script (run before start) is failing on on docker-compose.  In any case, the docker-compose.yml file (https://github.com/bradymholt/aspnet-core-react-template/blob/master/docker-compose.yml) is pretty straightforward so you might try just running docker-compose up from root to see if that works.  PRs are welcome.

I'm running npm start which runs npm prestart which runs docker-compose up -d. When you are saying PRs are welcome, does it mean that you can reproduce it? I've updated the issue forgot to add error log.

I dropped my containers by running docker-compose down then re-created the database with the migrations and everything was fine.


CSS bug in the documentation page

Hi,
I realized the small bug in the documentation page while browsing the website:

Here are some options I tried
Making the cards taller:

Decreasing the font size:

Replacing "Community maintained kernels" with a shorter text:

What do you think about these?

Thanks for noticing this! I think adding some logic that scales the entire row up to make space for the largest box is the easiest path forward.

This idea is even better! Let me try to implement it.


Overlapping face for hl-line-mode & evil-goggles

What did you expect to happen?
Pressing yiw in evil-normal-state should show visual highlight of that operation.
What actually happened?
No visible highlight is shown on screen.
Describe your attempts to resolve the issue
Switch to a different theme other than doom-tomorrow-day
Steps to reproduce

Enable ophints & evil module
Switch to doom-tomorrow-day theme
Open any buffer with hl-line-mode enabled
In evil-normal-state, press yiw to yank a word
Notice that no visible highlight of that word is shown

System Information
https://pastebin.com/zACXDNFw

This belongs on doomemacs/themes. This will be transferred there once this repo has been moved to the doomemacs org.


fix: add extra validation around KMS inputs

Description

cleanup to some examples
fixed the complete example title
added extra validation around KMS inputs
cleanup of some docs, and variable descriptions

Types of changes in this PR
Changes that affect the core Terraform module or submodules

[x] Bug fix
[ ] New feature
[ ] Dependency update

Changes that don't affect the core Terraform module or submodules

[ ] Examples or tests (addition or updates of examples or tests)
[ ] Documentation update
[ ] CI-related update (pipeline, etc.)
[ ] Other

Release required?
Identify the type of release. For information about the changes in a semantic versioning release, see Release versioning.

[ ] No release
[x] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content
fix: added extra validation around KMS inputs

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

Merge actions for mergers

Use a relevant conventional commit message that is based on the PR contents and any release notes provided by the PR author. The commit message determines whether a new version of the module is needed, and if so, which semver increment to use (major, minor, or patch).
Merge by using "Squash and merge".

I had to skip the upgrade test because it failed the consistency check:
TestRunUpgradeCompleteExample 2023-05-16T10:50:56Z tests.go:306: Parsing plan output to determine if any resources identified for destroy (PR branch)..
    tests.go:73:
        	Error Trace:	/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.8.11/testhelper/tests.go:73
        	            				/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.8.11/testhelper/tests.go:307
        	            				/__w/terraform-ibm-icd-postgresql/terraform-ibm-icd-postgresql/tests/pr_test.go:77
        	Error:      	Should be false
        	Test:       	TestRunUpgradeCompleteExample
        	Messages:   	Resource(s) identified to be destroyed Name: service_credentials Address: module.postgresql_db.ibm_resource_key.service_credentials["postgressql_credential_dev_2"] Actions: [delete]
    tests.go:73:
        	Error Trace:	/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.8.11/testhelper/tests.go:73
        	            				/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.8.11/testhelper/tests.go:307
        	            				/__w/terraform-ibm-icd-postgresql/terraform-ibm-icd-postgresql/tests/pr_test.go:77
        	Error:      	Should be false
        	Test:       	TestRunUpgradeCompleteExample
        	Messages:   	Resource(s) identified to be destroyed Name: service_credentials Address: module.postgresql_db.ibm_resource_key.service_credentials["postgressql_credential_dev_1"] Actions: [delete]
    tests.go:73:
        	Error Trace:	/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.8.11/testhelper/tests.go:73
        	            				/go/pkg/mod/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.8.11/testhelper/tests.go:307
        	            				/__w/terraform-ibm-icd-postgresql/terraform-ibm-icd-postgresql/tests/pr_test.go:77
        	Error:      	Should be false
        	Test:       	TestRunUpgradeCompleteExample
        	Messages:   	Resource(s) identified to be destroyed Name: service_credentials Address: module.postgresql_db.ibm_resource_key.service_credentials["postgressql_credential_microservices"] Actions: [delete]

This is expected since I changed the values in the example of the service credentials to create

:tada: This PR is included in version 3.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Proposal For Variable System Overhaul

Right now there are quite a few different types of variables (arithmetic variables, lists, subroutines, carriers...) and they don't play well together. I've talked it over with Berkin and here's what we came up with:

New syntax for expressions: [@ ... ]
String syntax: [@ a = 'word']
String concatenation: [@ myStringVar & 'another string']
Rant code interpreted inside strings: [@ a = '<noun>']
List types are denoted by a list of items: [@ a = 1, 2, 3, 4, 5, 6, 7]
Appending / prepending to lists can be done by placing the items before or after the variable name in a list declaration: [@ a = 0, a, 8]
Access done through bracket notation: [@ a[3]]
Variable scopes. Variables created in blocks are local variables: { [@ a = 12] } [@ a] # a does not exist
var keyword for defining new, empty variables: [@ var a ] { [@ a = 12] } [@ a] # 12
Default value for new variables is "no" (like null or undefined): [@ var a] [@ a] # no
List initializer for initializing empty lists of a given length: [@ a = list 12; ] (default values are all no)
Boolean types. You know the drill: [@ a = true]

Thoughts? We'll probably fold the other variable systems into this one once it works and works well.

Can we re-implement all of the current list functions as operators in the new expression syntax, too?

Ooh, this looks nice. What about type casting?

Type casting is currently implicit, like in Javascript. For example, we have different operators for string concatenation (&) and addition (+), so a cast is not needed for Rant to know which type to return.

New list functions:

Appending (single): lst +> x;
Prepending (single): lst <+ x;
Appending (range): lst +>> x; # if it's a list, each item is added rather than the list itself
Prepending (range): lst <<+ x;
Clearing: lst!
List length: lst$
Remove item at index: lst[x]! (returns removed item)
Remove specified value: lst?[x]!
Get last item: lst[$]
Get index of value: lst?[x]
Run list as pattern: {@lst}

We also decided to have a pattern type - like a string, but the contents aren't interpreted on creation.

Creation: [@ pattern = %'<noun>']
Execution: [@ pattern]

Why not just use block syntax for lists (because blocks don't work in expressions)?

While blocks and lists can both represent sets of data, they are fundamentally different in what they do:
Blocks

Represent a set of possibilities
Can only store patterns
Cannot be indexed
Items can be weighted
Immutable, with the exception of targets
Cannot be resized
Not actually objects - just a point in the code where the path can diverge.

Lists

Represent a series of objects
Can store any data type (number, string, pattern...)
Can be indexed
Cannot be weighted
Items are mutable
Resizable
Lists can be stored as objects and reused.

The fact that lists can be used as blocks does not mean they are the same thing - it is simply a useful result of their shared characteristics, as well as a convenient way to create and represent blocks from within expressions.


Updated docs for randint operator

Description
Updated the docs to reflect randint operator
Added for both NDArray and Symbol API (RandomNumberGenerator API)

Here's the current output at: http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-13541/3/api/python/ndarray/ndarray.html#random-sampling

First thing I'm noticing is that you probably could have it showing minus mxnet.ndarray so each entry is like random.x. Note how the other sections are like this.
I see that mxnet.random.seed is different and not part of ndarray, so it make sense to have the full name.
Then within this Random Sampling category, the entries should be alphabetical. Rooting around in a long list for the function you want is difficult when it isn't alphabetical.


JSON module manifests are disregarded; UPDATE ignores them

What's the point of including Evented::API::Engine manifests in git when the UPDATE command disregards them? Usually when there's a conflict, it's caused by one of the modules which is tied to the IRCd version at the time of last update.
One idea is to not allow any module versions to rely on IRCd version except for the core. The manifests for the ircd module and its submodules should be added to gitignore. The rest will use the auto-increment mechanism.

Changes to Evented::API::Engine included in 30300f11a34c6d08cf5e53bd618744129c1774b1 prevent servers not in developer mode from every modifying manifests. Still need to consider whether to remove the unlink workaround in Update.

still necessary for conflicts between multiple developers' instances


Demo on terminals with light color schemes = Bad color contrast

So, there's a bit of an issue with the demo - In regards to how it functions on terminals with light color schemes(IE, black on white, and similar).
See the attachment for the demo in action - Only the terminal on the bottom right has a dark color scheme enabled.

I believe the main culprit behind this is how the demo explicitly specifies that the background should be a dark grey - Which wouldn't be a problem in and of itself, if not for the fact it doesn't also specify that the text be something that contrasts better with it - Like a shade of white, for instance. This causes terminals to fallback to the default color scheme for the foreground text - Which, obviously, is problematic for lighter terminals.

Simple fix for that is to add white text color style

Issue got fixed via commit #66014b, closing.


problem with Make

make
Looking for bcm_host.h
bcm_host.h found
Looking for libMali.so
libMali.so not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find Freetype (missing: FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindFreetype.cmake:106 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:45 (find_package)
-- Configuring incomplete, errors occurred!
Makefile:120: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
I was following the tutorial and i get this error ...

This is on the raspberry pi 2 b

Do you have the lib freetype on your raspberry ?
 Could NOT find Freetype (missing: FREETYPE_INCLUDE_DIRS)

For some reason the RPi 2 FreeType package changed around the include directory. Try running with
cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype/
(this is what RetroPie does)

Looking for bcm_host.h
bcm_host.h found
Looking for libMali.so
libMali.so not found
-- Found Freetype: /usr/lib/arm-linux-gnueabihf/libfreetype.so
-- Looking for FreeImage...
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Found FreeImage: optimized;/usr/lib/libfreeimage.so;debug;/usr/lib/libfreeimage.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   date_time
--   locale
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version "7.26.0")
-- Found ALSA: /usr/lib/arm-linux-gnueabihf/libasound.so (found version "1.0.25")
CMake Error at CMakeLists.txt:77 (message):
You need at least G++ 4.7 to compile EmulationStation!
-- Configuring incomplete, errors occurred!

After a lot of messing around it seems to be working now :) THNX. What is the fun when you dont have some trouble :)

cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype/
returns "/usr/include/freetype/ does not exist" what am I doing wrong here?

Got the same problem like binaryangel0100

I found it! It works!
cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype/ -DCMAKE_CXX_COMPILER=g++-4.7
Then run
make

Excuse me, typo there.
cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ -DCMAKE_CXX_COMPILER=g++-4.7
Notice the "2" after "/freetype"
Then run
make

Not for me!

@binaryangel0100
May I see what command you ran before running "make"?

As stated in your solution

Just
sudo rm -r /Emulationstation
and start from cloning the git repo and it should work

Yes! This fixed it compiling now! Currently at 12% thank you so much!
Sent from my Sony Xperia™ smartphone
---- LodeVlaeminck wrote ----

Just
sudo rm -r /Emulationstation
and start from cloning the git repo and it should work
—
Reply to this email directly or view it on GitHub.￼

https://drive.google.com/open?id=0B0P7l1XOwwdIUExKRWMwRTdOYnc&authuser=0 what!!!!!! the HELL MAN AFTER ALL THAT!!

@binaryangel0100 Its working dude, it just cant start because you need to run it from a desktop environment, try emulationstation -h and see what result you get.

No i've ran it in the GUI and nothing happens and I mean nothing

What was the output of emulationstation -h ?

help... but didn't help me enough to run ES

what desktop environment are you running?

raspian

does it boot into command line or directly to desktop? because the screen shots are obviously from command line.

command line

in order for emulation station to start you have to boot into desktop and then run emulation station from a terminal window.

facepalm ONE HOUR AGO I SAID "No i've ran it in the GUI and nothing happens and I mean nothing" and you don't need to run it in the GUI at all once you type emulationstation it then kicks you into ES anyway or so every youtube Video leads me to believe

video link?

https://www.youtube.com/watch?v=vq99cf1cuk8

are you using retropie?

no I'm using the stand alone version

just to prove my point that terminal is still terminal regardless of interface https://drive.google.com/file/d/0B0P7l1XOwwdIU0I2VDZ5NHpPbTQ/view?usp=sharing

then i dont know, I have the exact same error as you, but only if I try to start via ssh or shell.

 It was set to 32 MB because the compile instructions said to do so.

I did that but it said replace it was gpu_mem. I figured it was odd I'll try changing back to ram tomorrow I've lost the will to live with it and it is 3 am
Sent from my Sony Xperia™ smartphone
---- Jcw87 wrote ----

I had this problem, and i very quickly realized that I forgot to set the GPU RAM back to 256 MB. It was set to 32 MB because the compile instructions said to do so.
—
Reply to this email directly or view it on GitHub.￼

nope!!! still dead :(

I was following this thread while trying to compile emulationstation, the stuff here was the only way I could get it to work, but now I'm having a completely different issue. My pi isn't plugged in right now, so I can't get the exact error message, but when I try to launch emulationstation it gives me something along the lines of "can't open shared library libsdl2-2.0.so.0: No such file or directory." libSDL2-2.0.so.0 is right where it belongs in /usr/local/, what gives? Anyone have an idea?

I was having similar errors when compiling this from source on my pi B+ in raspbian.
What ended up working was using the retropie setup script and installing just emulation station, run command, retroarch, and mupen64 from binaries. Then, rebooting, going back into the setup script and reinstalling those same things but compiling from source this time.

Was this on a Pi 2 B+ or the original?

mine is the Pi 1 B+ (the one with 512 mb ram), not sure for OP

Ah. I had this same problem.
What I did was run the RetroPie-Setup in the command line.
so:
1st:
~$: cd RetroPie-Setup
2nd:
~$: sudo ./retropie_setup.sh
you will get a window that looks like this:
https://cloud.githubusercontent.com/assets/10927343/6376864/8b93b3fa-bcee-11e4-9ad6-d7594221775c.jpeg
3rd:
select the binaries-based installation and press enter
4th:
you are back at this window:
https://cloud.githubusercontent.com/assets/10927343/6377165/687787c8-bcf0-11e4-82b1-b3e391bb0861.png
5th:
select SETUP hit enter
6th:
select Auto-Start EmulationStation hit enter
https://cloud.githubusercontent.com/assets/10927343/6377269/04ca69d8-bcf1-11e4-9dc6-b3dbba6277e0.png
7th:
select option 2 hit enter
hit enter
8th:
select cancel at the main window.
9th:
at the next window, select REBOOT
hit enter.
your system should now reboot and start emulationstation.

After I ran  cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ -DCMAKE_CXX_COMPILER=g++-4.7 that DZHOYER provided I got the following
CMake Error: your CXX compiler: "/home/pi/EmulationStation/g++-4.7" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "/home/pi/EmulationStation/g++-4.7" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "/home/pi/EmulationStation/g++-4.7" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "/home/pi/EmulationStation/g++-4.7" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
I had to run
export CXX=g++-4.7
Just thought I would throw that in there in case someone runs into it....
Thanks for the great posts

pi@raspberrypi ~/EmulationStation $ cmake -DFREETYPE_INCUDE_DIRS=/usr/include/freetype2/ -DCMAKE_CXX_COMPILER=g++-4.7
Looking for bcm_host.h
bcm_host.h found
Looking for libMali.so
libMali.so not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindFreetype.cmake:106 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:45 (find_package)
-- Configuring incomplete, errors occurred!
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_CXX_COMPILER= g++-4.7
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
FREETYPE_INCUDE_DIRS

-- Build files have been written to: /home/pi/EmulationStation
pi@raspberrypi ~/EmulationStation $
I got this problem with the tutorial please help.
I installed freetype6 and freetype6-dev then downgraded to 2.4.9-1.1 but still the same error.
After I run make i got this problem
-- Found X11: /usr/lib/arm-linux-gnueabihf/libX11.so
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindFreetype.cmake:106 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:45 (find_package)
-- Configuring incomplete, errors occurred!
Makefile:120: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1

Did you check to make sure that freetype libs are there?
cd /usr/include
ls | grep freetype
Should be in there as freetype2

Having an issue with the cmake command.  I am using the stand alone Raspberry Pi install instructions on http://emulationstation.org/gettingstarted.html#install_rpi_standalone.  I am at the step "Compile and install EmulationStation" > "cmake -DCMAKE_CXX_COMPILER=g++-4.7 .".  When entering this command I get a "cmake: command not found".  I am positive that I followed all previous commands correctly.  Has anyone seen something like this before?
Thanks

sudo apt-get cmake
I be cmake is not installed

Regarding the "can't open shared library libsdl2-2.0.so.0", can be fixed by prefixing the install to /usr/lib (adding --prefix=/usr to ./configure execution when building libsdl2)
./configure --disable-video-opengl --host=arm-raspberry-linux-gnueabihf --prefix=/usr

Hello all. I've followed the instructions from http://emulationstation.org/gettingstarted.html#install_rpi_standalone , but under "Compile and install EmulationStation", I get an error when I try to do the cmake. Something like missing file(folder?) SDL2-2.0.1    . I tried doing the cd RetroPie-Setup in the instructions above, but it says that file/folder does not exist. Any ideas?

This worked for me:
cmake . -DCMAKE_CXX_COMPILER=g++-4.7 -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/

I am having trouble getting the cmake -DCMAKE_CXX_COMPILER=g++-4.7 . to work any ideas on how to get it to work?

@TWDFan2009 considering you have provided no information whatsoever, probably not!

what do you mean

it is a pi 2

Well, I'm assuming when you type it, it outputs more text than "It doesn't work" :) - try providing a log of the error.

i keep typing cmake -DCMAKE_CXX_COMPILER=g++-4.7 . and even adding the -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ and i keep getting bash: cmake: command not found

you don't have cmake installed. You probably miss other packages it needs - requisites are listed in the README.md
You may be better off using something like recalbox or retropie which comes with ES set up and configured (along with emulators etc)

k

I have a raspberry pi 3, and it says this when I type in "cmake -DCMAKE_CXX_COMPILER=g++-4.7 . "
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake error at CMakeLists.txt:3 (project):
The CMAKE_CXX_COMPILER:
g++-4.7

is not a full path and was not found in the PATH
Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
-- Configuration incomplete, errors occurred!
See also "/home/pi/EmulationStation/CMakeFiles/CMakeOutput.log"
See also "/home/pi/EmulationStation/CMakeFiles/CMakeError.log"
I'm not good at computer stuff so can someone please help me figure out why it is saying this and what I can do to fix it?

you don't need -DCMAKE_CXX_COMPILER=g++-4.7 (as Raspbian Jessie includes GCC 4.9 which is fine)
You could install RetroPie which includes EmulationStation (If you install over raspbian, you can just install emulationstation and nothing else if you prefer)

@joolswills I'm trying to compile and install emulationstation so that I can use retropie, but I want to install it on top of raspbian so I can use both without needing to reboot to a different OS. I was following a tutorial that told me to do this:
Compile and install EmulationStation
git clone https://github.com/Aloshi/EmulationStation
cd EmulationStation
git checkout unstable
# On the RPi 2, you may need to add '-DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/' before the period.
# See issue #384 on GitHub for details.
cmake -DCMAKE_CXX_COMPILER=g++-4.7 .
make

This will take a very, very long time (multiple hours).

compiling ES won't help you install retropie.
to install retropie on raspbian follow https://github.com/retropie/retropie-setup/wiki/manual-installation

I have the same Problem as HankDeTank05
got stuck at
cmake -DCMAKE_CXX_COMPILER=g++-4.7 .
Because (Raspbian Jessie includes GCC 4.9 which is fine)
SO can't just skip this part any way around this?

I answered this above - don't include -DCMAKE_CXX_COMPILER=g++-4.7 .

just do cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/

I have installed UbuntuPi and nothing of this works. How can i do to install emulationstation standalone on Pi 2B+ using UbuntuPi??


https://www.sigstore.dev/swagger/  link is broken

In the "API" section of  https://github.com/sigstore/rekor/blob/main/README.md, there is :
If you're interesting in integration with Rekor, we have an OpenAPI swagger editor
At this moment, the https://sigstore.dev/swagger/ page is broken, it reports "/swagger not found"
(My apologies if this is the wrong place to report it, I figured that section of the site was likely generated from sources in this repo)

Let's track this at https://github.com/sigstore/rekor/issues/406.

closing in deference to #406


Upload auth error code 14: NOT_SUBSCRIBED

Every time I try to login after doing perform_oauth(), it gives me this error:
OSError: a valid MAC could not be determined. Provide uploader_id (and be sure to provide the same one on future runs).
When I try to provide an uploader_id (that I randomly generated) it fails to login and throws this error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/protocol/shared.py", line 248, in perform
    cls.check_success(response, parsed_response)
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/protocol/musicmanager.py", line 121, in check_success
    ), cls.__name__
gmusicapi.exceptions.CallFailure: AuthenticateUploader: Upload auth error code 14: NOT_SUBSCRIBED. See http://goo.gl/O6xe7 for more information.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/clients/musicmanager.py", line 166, in login
    self._perform_upauth(uploader_id, uploader_name))
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/clients/musicmanager.py", line 225, in _perform_upauth
    uploader_name)
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/clients/shared.py", line 83, in _make_call
    return protocol.perform(self.session, self.validate, *args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/protocol/shared.py", line 259, in perform
    e_message=e.message,
AttributeError: 'CallFailure' object has no attribute 'message'

Trying to do upload() anyway gives me this:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<decorator-gen-68>", line 2, in upload
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/utils/utils.py", line 619, in wrapper
    return function(*args, **kw)
  File "<decorator-gen-67>", line 2, in upload
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/utils/utils.py", line 596, in wrapper
    return function(*args, **kw)
  File "/usr/local/lib/python3.4/dist-packages/gmusicapi/clients/musicmanager.py", line 436, in upload
    raise NotLoggedIn("Not authenticated as an upload device;"
gmusicapi.exceptions.NotLoggedIn: Not authenticated as an upload device; run Api.login(...perform_upload_auth=True...) first.

Any ideas?

Do you have Google Music enabled for your Google account?

I did, but I solved it by trying to upload a couple of songs using the desktop client then trying again. Now it works, thanks.

Well, if you aren't running this in a virtual machine, then you'll probably want to keep track of #408.


No Items

I'm trying to run the tutorial scenario, but after I choose investigators, the system does not assign any items. Am I missing something?

I am assuming that you're speaking of the Tutorial Scenario that exists in MOM. The tutorial does not assign items unless you choose Ashcan in which you will automatically get Duke as a starting item. It is up to the scenario designers to determine what, if any, items you get at the start.
The Tutorial Scenario is probably not the best way to learn how to design scenarios as it was designed to point out new features for existing designers. I suggest starting here: https://github.com/NPBruce/valkyrie/wiki/TutorialScenarioCreation
If you're trying to add starting items to the scenario you created (following the instructions above), then you need to add QItems and click starting. A good tutorial is here (although the interface is outdated) https://github.com/NPBruce/valkyrie/wiki/TutorialQItemUsage


Dimensions of decompressed fractal

Hi pvifiger,
first of all, very nice work. Thank you for making this available to everyone.
I was curious about the following, shouldn't the decompressed fractal have the same dimensions as the original input image ?
From what I could tell the dimensions of the original image and the fractal decompressed image do not match. Any idea why this could be ?

Hi, yes in the example, the size of the input image is reduced to make the computations a lot faster with this line :
https://github.com/pvigier/fractal-image-compression/blob/5d3a12fbd5ebe94a93c827ba6a87d382eeeebf68/compression.py#L164

Hi, yes in the example, the size of the input image is reduced to make the computations a lot faster with this line :
https://github.com/pvigier/fractal-image-compression/blob/5d3a12fbd5ebe94a93c827ba6a87d382eeeebf68/compression.py#L164

Ok, this is understandable as computation is quite costly. Thank you for this Pviger.
Would I be able to ask you an additional questions ? Given an image size of i.e., 64 * 64 is it possible to obtain an fractal compressed image of the same size or is the fractal compressed image always smaller than the original?
I am primarily wondering about this, because of a metric where the RMSE(original_image, fractal_compressed_image) is being computed. If the compressed image always has a dimensionality smaller than the original, this would mean that they are infact not using the fractal compressed image, but the fractal decompressed image.
Please let me know about this Pviger
And thank you sharing your software again.

After compression, there is no image, only a transform whose fixed point is near the input image. Maybe, you mean the uncompressed image? The uncompressed image has the same size as the input image.
If the reduction of size in the examples perturbs you, you can just erase the line, it will work with the original image size.
With a 64x64 image size, it should be relatively fast so you don't need to reduce the size.


[.NET] Variadic parameters are broken

I'm submitting a ...

[X] :beetle: bug report
[ ] :rocket: feature request
[ ] :books: construct library gap
[ ] :phone: security issue or vulnerability => Please see policy
[ ] :question: support request => Please see note at the top of this template.

What is the current behavior?
Variadic parameters do not function as expected.

They are not strictly optional.

outputBucket.AddObjectCreatedNotification(new SnsDestination(notificationTopic), null);

They are generated a single types, not arrays.

           outputBucket.AddObjectCreatedNotification(new SnsDestination(notificationTopic), new NotificationKeyFilter());

Both of these statements cause the same error:
Unhandled Exception: Amazon.JSII.Runtime.JsiiException: Got 'undefined' for non-optional instance of {"docs":{"summary":"Filters (see onEvent)."},"name":"filters","type":{"fqn":"@aws-cdk/aws-s3
.NotificationKeyFilter"},"variadic":true}
   at Amazon.JSII.Runtime.Services.Client.TryDeserialize[TResponse](String responseJson)
   at Amazon.JSII.Runtime.Services.Client.ReceiveResponse[TResponse]()
   at Amazon.JSII.Runtime.Deputy.DeputyBase.<InvokeMethodCore>g__GetResult|18_0[T](<>c__DisplayClass18_0`1& )
   at Amazon.JSII.Runtime.Deputy.DeputyBase.InvokeMethodCore[T](JsiiMethodAttribute methodAttribute, Object[] arguments, Func`3 beginFunc, Func`3 invokeFunc)
   at Amazon.JSII.Runtime.Deputy.DeputyBase.InvokeInstanceMethod[T](Object[] arguments, String methodName)
   at Amazon.CDK.AWS.S3.Bucket.AddObjectCreatedNotification(IIBucketNotificationDestination dest, INotificationKeyFilter filters)
   at x.x..ctor(Construct scope, String name, IStackProps props) in C:\Users\costleya\Work\x\x\DemoStack.c
s:line 62
   at x.Program.Main(String[] args) in C:\Users\costleya\Work\x\x\Program.cs:line 12

What is the expected behavior (or behavior of feature suggested)?
I should be able to either omit/pass null, or pass a number of arguments without erroring.

What is the motivation / use case for changing the behavior or adding this feature?
This bug prevents  swaths of the CDK from being used, and can be a blocker without going to L1 constructs.

Please tell us about your environment:

CDK CLI Version: 1.3.0 (build bba9914)
Module Version: 1.3.0-devpreview
OS: Windows 10
Language: .NET

This does not have to do with variadic parameters, it just looks like a required property not set in a props.

Fixed with the latest jsii build that correctly handles variadics.
            var bucket = new Bucket(stack, "testBucket");
            var topic = new Topic(stack, "myTopic");
            bucket.AddObjectCreatedNotification(new SnsDestination(topic));

Closing as this should go live when the nuget packages are updated with cdk 1.4.0


Modified the code to remove sync from create method and added only ro…

Modified the code to remove sync from create method and added only role sync for unrestricted user when application do not have any roles.

Some tests are failing. They need to be fixed. But due to urgency, I am approving.


changed /bin/sh to /bin/bash

In this pull request, I propose the simple change of all /bin/sh to /bin/bash, due to problems on Linux. With /bin/bash, I'm certain that both MacOS and any Linux distribution will be able to run the helper scripts without editing them.
Some systems do point sh to bash, but others do not.

Thank you. I'm going to close this though as it would require bash specifically, while really any bash-like shell should be enough (like zsh.) Instead I'm adding tests for features needed (namely pushd/popd) and a message to go along with it. The workaround is quite simple: run the script in a specific shell, e.g. bash backends/wgpu/setup.sh


OCM-5935 | fix: remove toolchain from go.mod

Remove toolchain from go.mod as it causes build issues in CPaaS

/lgtm


Handle "edited" pull-request hooks

Since the description and title also make it into the builds as
variables, the edited hook should also be a valid trigger to trigger new
builds when these pieces of data change.
One use-case is validations on the description message to include a
proper change log.

Can you please make this a pr against jenkinsci instead?


The web directory containing JDBC drivers can't be accessed

If I try to downloading JDBC drivers from DBeaver, I get an error message that the driver files can't be downloaded.
Seems that access to the "https://dbeaver.jkiss.org/files/jdbc" director is not allowed. Strangely the "https://dbeaver.jkiss.org/files" is allowed.

Start a normal webbrowser.
Surt to the address "https://dbeaver.jkiss.org/files/jdbc"
Error message "Forbidden. You don't have permission to access /files/jdbc/ on this server." are
displayed.

Looks like duplicate of #2024
Directory browsing was disabled for a reason - it is not a bug.


Fix interrupt callback args

Thanks alot for doing this can you sign this commit off as explained in docs/contributing.md? Following should work:
git commit --amend --s
git push --force

Done. I also also added the file name at the beginning of the commit since I saw that on the others.

This makes #341 work well enough for now but I still can't get a callback to work inside a class. Example:
class Gpio():

  def __init__(self):
    ...
    pin.isr(mraa.EDGE_BOTH, callback, self)

  def callback(self):
    print("we did it")

Merged with 51436f6a0aaa16d555b58d12eb396f8dbc181731, thanks alot for the fix. I don't know enough about cpython without investigating more how to make that work though.

@hansmosh please feel free to submit an issue for passing self - so that we can track it and either implement it at some point or maybe someone else will be interested.


Version 3.0.0

Landed in https://github.com/metarhia/impress/commit/ce93125bb662323d79746f93803971dc597793b3


Fix caption

The original caption removal code does not remove a lot of image captions which ultimately become a part of the article text and mess it up. Have added a fix to do the same.

Can someone consider updating this with latest newspaper3k if it is working well?

Thanks @vishaltak  for the helpful code

The original caption removal code does not remove a lot of image captions which ultimately become a part of the article text and mess it up. Have added a fix to do the same.

thank you


Problems with SMHS Chromebook software

Problems with SMHS Chromebook software
TL;DR
San Marin's Chromebook software, LightSpeed Filter Agent, blocked my website alphagame.dev on March 20th, 2024.  I am currently working with them to get the website unblocked on the Chromebooks.  This will not affect anyone that is not at San Marin High School.
Why?
I don't know everything, but after emailing the school district, I learned some information in the email response from the IT department. (Names are hidden for privacy)

Hi Damien,
We use Lightspeed as our content filter (required by law). Lightspeed is categorizing your website as inappropriate. In my brief review of your website, here are some items that I noticed that may be causing it to be blocked.

non-educational games
references to hacking
references to virus's and creating virus's

As I mentioned before, your website is still unblocked for staff, so if you have any assignments that you are doing on the website, your teacher can still review/grade them.
Thank you,
-(name removed)

In Git commit  5a9fd79, I fixed some of their problems with the website, namely, "references to virus's and creating virus's" (no, that is not my typo) by removing WannaDoge from my front page (index.md)
What's happening now?
I am currently working with the school (I just went to the principal's office to clarify content on the website), so there is still hope of getting this website back on the school chromebooks.
I will update this GitHub issue with information as it comes.

It's over
I will no longer be using this website for school.  The school decided that I will have another website (made using google sites 🤮) specifically for school.  It can be found here


New Portal experience

This page is in need of some updates. Cloud services no longer show in the initial results for Create a resource > Compute, and the creation screens have changed.
Of particular note, the "Deploy even if one or more roles contain a single instance" setting no longer exists, replaced by "Multiple instance for continuous uptime" as shown below.
Please do an update to this page to reflect the current experience.
You can contact me internally at v-dibr if there are questions.

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

ID: 1435cf9c-c159-f350-0261-6cc363f1af44
Version Independent ID: 88fe8901-7d6a-6543-bc41-30192fec1554
Content: How to create and deploy a cloud service
Content Source: articles/cloud-services/cloud-services-how-to-create-deploy-portal.md
Service: cloud-services
GitHub Login: @tgore03
Microsoft Alias: tagore

There may be similar updates required here as well. I see a reference to the same setting name in step 5, although I don't have a test environment to see if that is still the same.
https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-how-to-manage-portal

@dcbrown16
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

@tanmaygore
Can you please check and add your comments on this doc update request as applicable.

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. The requested updates have not been made since the creation of this issue, and the timeline for resolution may vary based on resourcing. We are closing this issue for now, but feel free to comment here as necessary. #please-close


Import WIP to charts template

Please import the WorkInProgress component into the ChartsTemplate found inside components/ContentTemplates folder.
Then render the WorkInProgress component instead of the current div and placeholder sentence.
See the AlertsTemplate component if unsure how to do this and follow the same pattern.

Please import the WorkInProgress component into the ChartsTemplate found inside components/ContentTemplates folder.
Then render the WorkInProgress component instead of the current div and placeholder sentence.
See the AlertsTemplate component if unsure how to do this and follow the same pattern.

@EmmaDawsonDev please assign me this issue

Yes, sure!

Please import the WorkInProgress component into the ChartsTemplate found inside components/ContentTemplates folder.
Then render the WorkInProgress component instead of the current div and placeholder sentence.
See the AlertsTemplate component if unsure how to do this and follow the same pattern.

@EmmaDawsonDev please assign me this issue

@EmmaDawsonDev please assign me this issue

It's assigned to you.

Oh thank you

Oh thank you


The URL list of original movies used in EgoYoutubeHand dataset

Hi! Nice and great work!
It helps me soooo much if you can make the list of URLs (or ids) of youtube videos you used in public. Is it possible?

@AtsushiHashimoto Thanks for your interest. Let me check if I can find the urls somewhere in my data.
I will get back to you in a day or two.

Thanks for your effort! I believe information about the original video boosts your dataset's importance!

@AtsushiHashimoto I have added the video links to the main project readme.md

I saw the links! I thank you sooooo much!

No problem! I hope it help you! :)


Revert "Workaround for ci-operator git command issue in linter scripts"

Reverts openshift-kni/lifecycle-agent#251
CI fix for 4.14:
https://github.com/openshift-eng/ocp-build-data/pull/4268

/override ci/prow/integration

/lgtm

/approve


Parse images (sitemap extension)

Parse images in sitemaps, based on example -> https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps

Met case when there are multiple image tags for a single entry. This solution assumes single image. Maybe it's wrong, but why not to solve real life case?


Replacement of lost sub-resources

Problem Statement
Currently if you delete a Deployment out from underneath a Gateway it wont replace it.
Acceptance Criteria

[ ] DataPlane reconcilation triggers now for CRUD operations on DataPlane owned Deployments and Services
[ ] ControlPlane reconcilation triggers now for CRUD operations on ControlPlane owned Deployments and Services
[ ] Gateway reconcilation triggers now for CRUD operations on Gateway owned ControlPlanes and DataPlanes
[ ] if any sub-resources are deleted for any of the above resources, the relevant controller replaces them

Additional Notes

[ ] TODO comments which linked to this issue are removed once resolved

I need to rewrite this one a bit, on hold.


Added a function to write a type double number to the lcd

I have updated TextRenderer.ccp and TextRenderer.h to have additional functionality.
You can write a type double number directly to the LCD, using a function called drawDouble.
The driver now has drawChar, drawText and drawDouble
I also added an example to the basic text example.
I used your driver to drive an LCD but needed a way to write real numbers on the screen, so  I added it to your driver.
you can contact me at<EMAIL_ADDRESS>It would be fantastic if you could add my changes.

I love the work you’re doing. Right now I don’t have my laptop on me and can’t go through the code. All changes will be reviewed till 14 of January, this also applies to the other pull request

Not a bother, there is no rush. Sent from Outlook for Android

Due to my lack of time I'm merging this to untested branch for now. I will try to go through new code and merge untested -> main as soon as possible

Due to my lack of time I'm merging this to untested branch for now. I will try to go through new code and merge untested -> main as soon as possible

Thanks, I was thinking to make a small change, I want to make the code more C++ish instead of C.
What is the best way to do this, do I just clone and work on the untested branch?

Yes, you can make changes and make new pull requests to the untested branch. Soon I hope to go through your changes and merge them to main On 3 Feb 2023, at 22:47, Michael du Plessis @.***> wrote:
Due to my lack of time I'm merging this to untested branch for now. I will try to go through new code and merge untested -> main as soon as possible
Thanks, I was thinking to make a small change, I want to make the code more C++ish instead of C.
What is the best way to do this, do I just clone and work on the untested branch?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>


Deprecate AppC in Marathon

Summary:
There is a bunch of code for testing, serialization, conversion and task building... but I have never see it used... it was created by coreos which is now RH.. and as of late 2016 is no longer active https://github.com/appc/spec#-disclaimer-
Confirmed with Jie (author of AppC isolator in Mesos) that AppC is dead to us.
This seems to be the more honorable way to remove code from Marathon.
JIRA issues:

dang... good catch!


Update Coda SSL fingerprint and published doc ids.

Doc not yet published FYI.
PTAL @chrisleck @vaskevich

Didn't even know about this repository.


Intermittent config shape errors during table generation

I've just started getting the following error when attempting to generate tachometer results for my project:
config {
  border: {
    topBody: '─',
    topJoin: '┬',
    topLeft: '┌',
    topRight: '┐',
    bottomBody: '─',
    bottomJoin: '┴',
    bottomLeft: '└',
    bottomRight: '┘',
    bodyLeft: '│',
    bodyRight: '│',
    bodyJoin: '│',
    joinBody: '─',
    joinLeft: '├',
    joinRight: '┤',
    joinJoin: '┼'
  },
  columns: [ { alignment: 'right' }, { alignment: 'left' } ]
}
errors [
  {
    dataPath: '/columns',
    message: 'should be object',
    params: { type: 'object' },
    schemaPath: '#/type'
  }
]
Error: Invalid config.
    at validateConfig (/Users/westbrook/Documents/web/repos/swc2/node_modules/tachometer/node_modules/table/src/validateConfig.js:26:11)
    at makeConfig (/Users/westbrook/Documents/web/repos/swc2/node_modules/tachometer/node_modules/table/src/makeConfig.js:55:3)
    at Object.table (/Users/westbrook/Documents/web/repos/swc2/node_modules/tachometer/node_modules/table/src/table.js:83:18)
    at Object.horizontalTermResultTable (/Users/westbrook/Documents/web/repos/swc2/node_modules/tachometer/src/format.ts:152:16)
    at Runner.outputResults (/Users/westbrook/Documents/web/repos/swc2/node_modules/tachometer/src/runner.ts:345:17)
    at Runner.run (/Users/westbrook/Documents/web/repos/swc2/node_modules/tachometer/src/runner.ts:87:16)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at realMain (/Users/westbrook/Documents/web/repos/swc2/node_modules/tachometer/src/cli.ts:159:14)
    at Object.main (/Users/westbrook/Documents/web/repos/swc2/node_modules/tachometer/src/cli.ts:40:15)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I've tracked it back to the following code paths:
https://github.com/Polymer/tachometer/blob/a1c6457048f7511b57995ba0f5cc6ed719195adf/src/format.ts#L118-L129
and:
https://github.com/Polymer/tachometer/blob/a1c6457048f7511b57995ba0f5cc6ed719195adf/src/format.ts#L140-L156
Locally when I move from .map() to .reduce() and accumulate a number indexed object the situation resolves itself, a la:
    const columns = dimensions.reduce((acc, d, i) => {
        acc[i] = d.tableConfig || {};
        return acc;
    }, {});

and:
    const columns = {
        0: { alignment: 'right' },
        ...results.reduce((acc, _column, i) => {
            acc[i + 1] = { alignment: 'left' };
            return acc;
        }, {}),
    };

Does that seem like a reasonable PR?

Thanks for catching! A PR would be great if you have time.
It looks like the cause is a recent regression in the table library. I filed https://github.com/gajus/table/issues/134, could you also mention that in a comment near the fix?
The reduce approach is fine, though I think I might prefer using something like Object.fromEntries(dimensions.map((d, i) => [i, ...])) -- a little more readable I think? You'll just need to bump es2017 to es2019 in tsconfig-base.json first.

Fix released in 0.5.6

Thanks @aomarks for beating me to this!


add background color

Discussed in https://github.com/alexzhirkevich/qrose/discussions/7

Originally posted by idrisalshikh June 13, 2024
I've tried to change the background color without success, and I believe this is very important. By default, the QR code color is black, and the background color is determined by the surface where the QR image is displayed. If our design uses a black background, the generated image will be entirely black, making the QR code invisible.
In our application, we can resolve this by changing the background of our container that displays the image. However, the real issue arises when we need to share or save the image as a JPEG. In JPEG format, there is no transparency, so the generated image will have a black background. Since the default QR code color is black, we end up with an all-black image again.
When saving the image in PNG format, I encountered a problem when trying to share the image on WhatsApp; it still appears as a black image. Even if I change the QR code colors to:
colors {
dark = QrBrush.solid(Color.Blue)
frame = QrBrush.solid(Color.Blue)
light = QrBrush.solid(Color.Red)
ball = QrBrush.solid(Color.Blue)
}

The image still shows a white background (which represents my application's background color). When I share this image, it looks different because the background changes.

As a result, it would be beneficial if we could control the background color of the QR image directly and add an outer border to ensure consistency across different platforms and formats.

Thanks bro for sending me the WrapperPainter class. It has worked for me
pretty well thought I had to make a few tweaks to add some padding to the
qr code.
On Thu, 31 Oct 2024 at 12:03, Alexander Zhirkevich @.***>
wrote:

Workaround
class WrapperPainter(
private val painter: Painter,
private val background : Color,
) : Painter() {
override val intrinsicSize: Size
get() = painter.intrinsicSize
override fun DrawScope.onDraw() {
    drawRect(background)
    painter.run {
        draw(size)
    }
}

}
—
Reply to this email directly, view it on GitHub
https://github.com/alexzhirkevich/qrose/issues/8#issuecomment-2449479839,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIIUFJ4TQDAXE3WG42ASOG3Z6H56XAVCNFSM6AAAAABJJFR4H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBZGQ3TSOBTHE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Sent by Whyte Chingwalu


Fix for multiple regions and larger files

S3 changed and it was no longer possible to point to eu-central buckets.
as well as this large files caused the old endpoint to reset.

Thanks!


Added unittest for bot.utils.time

Closes #608

Translated the old pytest tests in tests.utils.test_time.py to unittest
Added tests for format_infraction_with_duration

Actually, I think we may have agreed not to test format_infraction cause it barely does anything on its own?

Yep, that's why I didn't bother testing it, it is barely doing anything, simply converting isoformat back to datetime, only to reformat it with .strftime(). I think it is not worth it to test format_infraction

Done, so there should be no test with multiple test cases that are not using subTest context manager now.

#679 introduces a new helper that requires a new test to be added to this PR.


Support node.js mirror like nvm

Description:
Support alternate nodejs download mirror like nvm
nvm does support setting a mirror via environment variable, e.g:
NVM_NODEJS_ORG_MIRROR=https://artifactory.company.com/artifactory/node-dist/
setup-node should also support a similar option "mirror" to specify an alternate node.js base URL for downloading the node.js binaries.
Justification:
All node.js binaries are downloaded directly from the internet via a specified proxy in the github action runners environment, which created egress costs for self-hosted github action runners in GHEC.
By using mirror option the reliance on node.js site is decoupled and egress is saved.
Are you willing to submit a PR?
i think i'm not allowed...

Hello @thomas-z-meyer-db ! Thank you for the suggested idea!
We will consider adding this feature and will let you know as soon as we have any decision.

nodejs.org seems to fail quite often in the recent weeks. Having a possibility to specify a mirror would be great.

Hi! I'm also affected by nodejs.org fails.
Maybe setup-node action should cache the node tarball, so it's not downloaded every time?

Is this feature open for OSS contributions?

https://github.com/actions/setup-node/pull/134 can resolve this problom,  can we merge it ?


[analyzer] Flutter project with packages inside breaks textDocument/definition and other navigation

dart --version
Dart SDK version: 2.19.1 (stable) (Tue Jan 31 12:25:35 2023 +0000) on "windows_x64"

flutter --version
Flutter 3.7.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7048ed95a5 (3 days ago) • 2023-02-01 09:07:31 -0800
Engine • revision 800594f1f4
Tools • Dart 2.19.1 • DevTools 2.20.1

Editor is VSCode with Dart and Flutter extensions 3.58.0
To reproduce the issue
flutter create test
cd test

Open lib/main.dart and inside MyApp::build add prior to return
@override
  Widget build(BuildContext context) {
    var w = TextFormField();
...

Jump to definition TextFormField(). Inside constructor definition it is possible to jump to definition of any type.
Now being in test folder create package
dart create -t package test_package

Restart dart analysis server by F1 -> Dart: Restart Analysis Server. The jump to definition is completely broken for many types like
TextFormField({
    super.key,
    this.controller,
    String? initialValue,
    FocusNode? focusNode,  // broken
    InputDecoration? decoration = const InputDecoration(),
    TextInputType? keyboardType, // broken
    TextCapitalization textCapitalization = TextCapitalization.none, // broken
    TextInputAction? textInputAction, // broken
    TextStyle? style,  // broken
    ...

If now the test_package is removed from the test project and language server is restarted the navigation is working again.
Inside the logs I can only see
[11:48:16 PM] [Analyzer] [Info] ==> Content-Length: 253
[11:48:16 PM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":15,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///.../flutter/packages/flutter/lib/src/material/text_form_field.dart"},"position":{"line":101,"character":6}},"clientRequestTime":1675550896958}
[11:48:16 PM] [Analyzer] [Info] <== Content-Length: 37
Content-Type: application/vscode-jsonrpc; charset=utf-8
[11:48:16 PM] [Analyzer] [Info] <== {"id":15,"jsonrpc":"2.0","result":[]}

and
1675550896958:Req:{"jsonrpc"::"2.0","id"::15,"method"::"textDocument/definition","params"::{"textDocument"::{"uri"::"file::///.../flutter/packages/flutter/lib/src/material/text_form_field.dart"},"position"::{"line"::101,"character"::6}},"clientRequestTime"::1675550896958}
1675550896959:Res:{"id"::15,"jsonrpc"::"2.0","result"::[]}

@DanTup - do you mind doing some investigation here to run down where the problem might be?

@tupos I'm having trouble reproducing this. I'm on stable Flutter 3.7.1 and followed your steps. I still have the Flutter project open and the source for the TextFormField constructor open, but navigating to types like TextInputType work fine:

Are you able to provide the complete log file from when the server starts to when this occurs? You can enable writing the log to disk by adding the following to your Workspace settings (F1 -> Preferences: Open Workspace Settings (JSON)):
"dart.analyzerLogFile": "logs/analyzer.txt",

Thanks!

@DanTup From your screenshot I see that you use mac os.
I just tried it on mac os and indeed on mac os there is no problem. The navigation is working.
My original issue is on windows. Could you please try on windows as well?
I definitely have an issue on windows, as when I was working yesterday evening the navigation was broken.
I might try to deploy a fresh windows vm later to check if it is host specific. However in this case something is broken
on my machine and I have no clue what it might be. While when I tried to reproduce the issue
on windows I ended up to remove everything and then reinstall all the tools freshly. This includes the removal of
%LOCALAPPDATA%\.dartServer
%LOCALAPPDATA%\Pub
%APPDATA%\Code
%USERPROFILE%\.vscode
<flutter_git_path>\flutter\bin\cache

@tupos good spot. You're right, I can repro on Windows. My feeling is that it may be related to a mismatching of the casing of drive letters in paths:

The open file has a lowercase drive letter and that doesn't match what the server is using, so I think it's failing to realise that this file should be analyzed in the context of the parent Flutter project, and is analyzed with the Dart one, which cannot resolve package:flutter.
This is an issue that's come up before (https://github.com/dart-lang/sdk/issues/28895) and a complete fix is complicated, but there were some attempts to normalize drive letters to the same casing to avoid this - I'll see if I track down why that doesn't handle this case.

@DanTup So I installed the pre-release version of the dart extension and the navigation is working on windows as well.
Thanks a lot for a quick fix.

Great, thanks for confirming! Assuming no issues come up, it'll be included in the next stable release of the extension. If you hit any issues with the pre-release versions in the meantime, please file issues at https://github.com/Dart-Code/Dart-Code.

Thanks a million, @DanTup !!

I'm slightly less sure about this fix now. When investigating this, I had remembered that we'd always uppercased drive letters to avoid this issue, and while testing I saw this wasn't happening and thought VS Code's Uri.file().toString() had changed behaviour recently.
However, with a little more digging I found that the drive-letter-casing-normalisation was never happening for LSP, so it's likely this behaviour/bug has been around a long time.
It's very possible that whether it occurs depends on some other factor outside of our control (for example, the casing of the drive letter in the cwd when pub get was run). Therefore it's possible that this "fix" could also change things negatively for some users if packages had resolved with lowercase drive letters before.
I'm going to leave it in for now (since it improved things for both of us, and on my Windows 11 PC, I was unable to change the cwd in a terminal to have a lowercase drive letter - so I feel like an uppercase one should at least be more common), however if issues come up from pre-releases users closer to release (or stable users after a release) it's possible this will need to be reverted in a patch and we may need to look more at fixing the underlying issue (which is both Dart-Code and the analysis server not handling case-insensitive paths in the way that they really should).
(@bwilkerson FYI... I've looked at this in the past and concluded it's rather tricky - not just technically, because also because the rules for LSP are not clearly defined and VS Code (incorrectly) bases case-sensitivity decisions on platform and not the actual case-sensitivity of the platform (although I expect in the large majority of cases this works out correct).


docs: mention message content intent

This caught me today when I was setting up another instance - forgot about the new intent.
September 1st, Discord rolled out the message content intent requirements. Without this intent enabled, ModMail will not respond to commands.

Good catch, thanks for the PR!


Request for Conda support

As chemo-informaticians nowadays who use Python, are mainly relied on RDKit to compute about molecule information, it is preferable that that RDKit could be easily bundled in panel-chemistry. But, since RDKit installation with pip is really tedious, registering panel-chemistry in Anaconda repository could help users to use it easily.

I'll 2nd this request for a conda package. This would make building large dependency  chains with panel-chemistry MUCH easier

Hi @arifin-chemist89 and @scottwsides
Is the solution below enough for you? If not could you please describe why not? An better understanding of why a pip package is a problem to you would be my fuel to support a conda package. Thanks
FAQ
How do I Install with Conda?
You can do
conda install pip
pip install panel-chemistry

You can also include panel-chemistry in your environment.yaml file as described on Stack Overflow: Combining conda environment.yml with pip requirements.txt.

Yes, all the things you mention will work. The point is that AFAIK, pip installs will NOT work with condo-build tools. The syntax in a .yaml recipe file for condo-build looks similar to a .yaml env conda file. But they're not exactly the same. condo-build tools are pretty common and allow building large apps with conda python env installed auto-magically. pip is simply not as good as conda.

Thanks. Now i understand that it’s not only about conda. Then it makes sense om my side.

In my experience once you've pip installed something in a conda environment, you can no longer later conda install something else on top. You'll need to make a new conda env and start over.
I can have a look at deploying to conda-forge, however I only have experience doing so with pure python projects. But when looking the https://github.com/conda-forge/panel-feedstock it seems like there are only minor differences.

Jhsmit, in my experience you can conda install after a pip install.... its just 'risky'. Again, its the fact that pip installs are not possible with condo-build tools... which are great for managing packages for large python projects. I've got a workaround right now... but its ugly. A conda package for panel-chemistry would be great.

@MarcSkovMadsen
What is your opinion on converting the current bokeh extension panes (NGL viewer, jsme editor) into ReactiveHTML implementations? I don't know if this is possible for the JSME editor but the NGL viewer is already done.
This would make the project pure python and then we its very easy to distribute on conda-forge as a noarch package. I think it this will make it much easier for people to use it (most of my use cases depend on conda support) and also easier to maintain the package.
However, the disadvantage would be that in the future we can not add any bokeh extensions to panel-chemistry anymore.

Hi @Jhsmit . I don't think distributing as a conda package depends on whether its a Bokeh or ReactiveHTML based extension.
But I do agree converting to ReactiveHTML would make things easier. I'm all for it. But I have a few thoughts on this. And that is that

I am considering whether as much of the JS should be in a separate .js file that can be loaded via the __js_files__ or __js__modules__ attribute.
I am considering whether the js should be wrapped as a web component. Probably using lit element. Because then components could be used more widely. By Bokeh, by Ipywidgets, In plain HTML, via htmx, In Panel for R, C#, Rust etc. 😄

FYI. I've requested panel-chemistry added to conda-forge in https://github.com/conda-forge/staged-recipes/pull/17383.

Thats awesome! It will make my life a lot easier! When will it be ready... or should I just check conda periodically?

I thought that (although I have never tried it) distributing packages on conda-forge which are not pure python, and for example have js components, is more complicated.
For example, the panel-feedstock repo has an additional index.ts file in the recipe directory.
If we would like panel-chemistry to be used as as component for larger projects, I think we should relax the version requirements as much as possible. Currently the requirements are panel==0.12.6 and bokeh==2.4.2 but this can cause problems down the line for projects with panel-chemistry as dependency. So I would propose to change that to >= requirements instead of pinning them.
wrt to the js files, I have very little experience in javascript/html but I'm trying to dip my toes into it a little bit.
At some point I would like to implement the full Mol* toolkit (https://molstar.org/) for panel-chemistry. It is a continuation of the NGL viewer (and other libraries) and offers a lot of functionality.
The  __js_files__ or __js__modules__ would be defined within panel-chemistry of is this existing functionality? Similar to the __javascript__ on ReactiveHTML?
How would you (roughly) then use the web components in panel for R/Rust?

Hi @scottwsides , @Jhsmit , @arifin-chemist89
The package is now available on conda-forge.
I tested it out via
conda create --name panel-chemistry -c conda-forge panel-chemistry
conda activate panel-chemistry
panel serve 'tests\tests\test_jsme_editor.py' --auto --show

And it seems to work.

Please try it out and open new issues if there are things not working with conda.
Thanks for requesting this and happy new year.

For a conda-build recipe listing panel-chemistry as a dependency... I'm seeing the following. they look like warnings but the docker image in which I'm building seems to have problems. Any ideas?
=> => # WARNING:conda.models.version:Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 2., but conda is ignoring the . and treating it as 2
=> => # WARNING conda.models.version:get_matcher(537): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 2., but conda is ignoring the . and treating
=> => # it as 2
=> => # WARNING:conda.models.version:Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 3., but conda is ignoring the . and treating it as 3
=> => # WARNING conda

Hi @scottwsides
Could you open a specific issue on this one and include a minimum, reproducible docker file?
Then I could try to build and understand as well. Thanks.

thanks marc, I'll think about how best to do this. My image has proprietary stuff in it including a base layer that I don't manage.

You can copy your files. The start removing functionality from the Dockerfile until it is as small as possible. Likewise with your environment.yaml file. It can probably be minimized to almost only panel-chemistry.

So its conda builds with a recipe and the deps get complicated. I dont use environment.yaml file... I use conda yaml recipes. I have already paired back the docker file to the broken line... and its a command I can enter the running container and execute fine. It must be some subtle way that conda build/install for panel-chemistry is interacting the env.


gloabObject should be self in some instances

Hi following problem,
@rwth-acis wrote a small login button dependent on this library used in almost all of our applications which are developed using Google's Polymer library. On its own the button works, however it is also included into this statusbar where the problem arises. In this context this PR #714 causes a problem. Namely, we get a  cannot set property Version of undefined. Our issue is related to this one #792 and the fix described would most likely fix it.
I manually changed (this, function()... to (self, function()... in line 10 of the oidc-client.js (line 1, column 225 in the minified version) and the error disappeared.
Unfortunately, I don't understand how this whole project is built well enough to properly implement the fix as a PR myself, so it would be very cool, if somebody could have another look at this.
Thanks :)

Sorry, not sure.


Handling state with complex objects

Hey I am writing a simple app with multiple sections and the one I am struggling with deals with custom dataclasses which contain list of objects.
This is the code:
from dataclasses import dataclass
import edifice as ed
import typing as tp
from copy import copy

@dataclass
class Ticket:
    name: str

@dataclass
class Tickets:
    tickets: list[Ticket]

@ed.component
def TicketComponent(self, target: Ticket):
    state, state_set = ed.use_state(target)
    with ed.HBoxView():
        ed.TextInput(
            target.name,
        )

@ed.component
def TicketList(self, ):
    targets, targets_set = ed.use_state(Tickets(targets=[]))

    def updater(x_previous: Tickets) -> Tickets:
        x_new = copy(x_previous)
        x_new.tickets.append(Ticket(name="we"))
        return x_new

    def _add_target(_):
        targets_set(updater)

    with ed.VScrollView(style={"align": "top"}):
        ed.Button("ADD", on_click=_add_target)

        for target in targets.tickets:
            TicketComponent(target)

When I switch from one section to this one and viceversa, I lose all the contents of TicketList only. I think it's related to some state subtlety I am missing, any idea?

LoL I am just initilizing with empty at the begin: I should carry the state upwards in the hierarchy so that it survives upon rerendering.