[Android] Verify correct behavior of bleed property

Updated bleed behavior for android and consolidated some logic into functions so the padding and bleed logic would not be repeated
How verified
The mobile app was run and these are the results
Comprehensive payload

Column.Bleed

ColumnSet.Bleed

Container.Bleed

Per the screenshots, there seems to still be a couple things not handled as expected. Namely, bleeding at the top/bottom of containers/the card itself doesn't seem to be handled. A container that bleeds should bleed not only left and right, but also top and bottom when appropriate. In the first screenshot for instance, the "Bleeding container at the top of the card" should bleed into the top padding of the card.
I am going to assume that this has been compared to the Designer's rendering; the designer voluntarily disables bleeding top and bottom in order to leave space at the top and bottom of any container onto which elements can be dragged (otherwise, it would be impossible to reorder elements.) To see final render of the card, use the "Preview mode" button. Or, use the visualizer instead.

We don't currently have that behavior on any of our non-javascript renderers, as we were all using the designer as a comparison point, and it's not super explicit in the spec. It does look like the last gif example shows that behavior (I assume "marginFromParent":"none" is an old way to say bleed?), but looks like we missed it. I'll log a bug to track addressing it separate of this PR.

In reply to: 484155715 [](ancestors = 484155715)

#2702
Also, i understand the concern about needing the visualizer to be usable, but are we concerned that users won't realize that what they see in the visualizer is not what will ultimately be rendered? (Also, where is the "Preview mode" button? I can't seem to find it.)

In reply to: 484190751 [](ancestors = 484190751,484155715)

I believe the test payload you guys used is from here: https://github.com/Microsoft/AdaptiveCards/issues/2109
There is also a screenshot of the rendered result in there; that is the reference.

Yes, there is a risk of potential confusion, and I have ideas for making it better. However these improvements will come later, and in general the designer should NOT be used as a reference for the final visuals (unless using the "Preview mode" feature in the 2.0 early preview) because the designer will always behave slightly differently in some cases to facilitate drag and drop.


perf: use custom canonicalize impl to avoid heavy syscall

Reduce one redundant fs::symlink_metadata system call.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#220  👈
#219
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Brooooooklyn and the rest of your teammates on  Graphite

Request me a review once you're done.

Merge activity

Jul 10, 10:33 AM EDT: @Boshen started a stack merge that includes this pull request via Graphite.


Add person-to-person sharing ("food baskets")

@nicksellen is quite interested in it and I'd find it great too.
Here's what I wrote:

person-to-person food sharing ("food baskets") would be a fitting addition so that people don't have to use other platforms for sharing food. It would also be a huge plus if new visitors arrive on the website (or the app) and can see the food baskets.

Can you elaborate on the issue so that I can contribute to it

As you're new to the project, I'd be interested in how much time you have to contribute? I think it might take several weeks of development until the first version can be released.
If you feel up to it, I think the best way forward would be to have a call about it. @nicksellen would you be interested to participate as well?

I have applied for RGSoC 2018, So I have much time to contribute to it.
Call would be a great option @tiltec
Will I mail you my skype handle?

I'll talk with @nicksellen and then come back to you. We're currently working on other topics, so it might take some days.
To get you started, you could already do market research and get familiar how other foodsharing apps work, for example https://olioex.com/

This feature seems rather decoupled from other karrot features and relatively low priority, but it seems worth implementing in the next year or so.


Projection operation

The crossbar configuration needs to be more flexible in order to do projection operations. Currently everything get's linearly pumped through. What that means that the crossbar doesn't do any shuffling. Just places record after record with the necessary bubble in between.
To start working on this it is useful to know how DBMSs specify the operation parameters which will be found out in issue #40

Done #58


Foreign table cannot be loaded in SQL lab Tab

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

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

Superset version 0.20
Expected results
A table names event_warnings should appear in the SQL lab query tab when user select the corresponding databases and schema.
Actual results

The event_warnings table appear in the Slice tab

Steps to reproduce
Use a Foreign Data Wrapper mongodb + multicorn + yam_fdw o create a foreign table in postgresql
In Postgresql console:
`CREATE EXTENSION multicorn;
CREATE SERVER mongodb_proxy_server FOREIGN DATA WRAPPER multicorn OPTIONS (wrapper 'yam_fdw.Yamfdw');
CREATE FOREIGN TABLE event_warnings (
"_id" varchar OPTIONS (type 'ObjectId'),
"ID" varchar, "Point" varchar,
"Start_Time" timestamptz, "Stop_Time" timestamptz, "Area" varchar,
"Value" float, "Station" varchar, "Device" varchar, "Warning_Type" varchar,
"Warning_Upper_Limit" float, "Warning_Lower_Limit" float,
"Warning_Method" int
)
SERVER mongodb_proxy_server OPTIONS (
db 'XXX', collection 'event_warnings',
host '122.XXX.XXX.XXX', port '27017', user 'username', password 'password'
);`
In superset:

OS: Mac 64 bit

Any interesting bits in the superset server logs?

I copy the SQL query from the Slice Tab and paste it into the SQL lab to get the following server log:

`2017-10-19 17:19:54,321:INFO:root:Database.get_sqla_engine(). Masked URL: postgresql://Jessica:XXXXXXXXXX@localhost/Jessica
2017-10-19 17:19:54,341:INFO:root:Database.get_sqla_engine(). Masked URL: postgresql://Jessica:XXXXXXXXXX@localhost/Jessica
2017-10-19 17:19:54,480:INFO:werkzeug:<IP_ADDRESS> - - [19/Oct/2017 17:19:54] "GET /databaseasync/api/read?_flt_0_expose_in_sqllab=1&_oc_DatabaseAsync=database_name&_od_DatabaseAsync=asc HTTP/1.1" 200 -
2017-10-19 17:19:54,591:INFO:werkzeug:<IP_ADDRESS> - - [19/Oct/2017 17:19:54] "GET /superset/schemas/2/ HTTP/1.1" 200 -
2017-10-19 17:19:54,595:INFO:root:Database.get_sqla_engine(). Masked URL: postgresql://Jessica:XXXXXXXXXX@localhost/Jessica
2017-10-19 17:19:54,677:INFO:werkzeug:<IP_ADDRESS> - - [19/Oct/2017 17:19:54] "GET /superset/tables/2/public/undefined/ HTTP/1.1" 200 -
2017-10-19 17:19:54,708:INFO:root:[stats_logger] (incr) sql_json
2017-10-19 17:19:54,712:INFO:root:Parsing with sqlparse statement SELECT "Station" AS "Station",
COUNT(*) AS count
FROM public.event_warnings
WHERE "Start_Time" >= '2016-01-01 00:00:00'
AND "Start_Time" <= '2017-10-19 15:02:07'
GROUP BY "Station"
ORDER BY count DESC
LIMIT 50000
2017-10-19 17:19:54,782:INFO:werkzeug:<IP_ADDRESS> - - [19/Oct/2017 17:19:54] "GET /static/appbuilder/fonts/fontawesome-webfont.woff?v=4.7.0 HTTP/1.1" 304 -
2017-10-19 17:19:54,870:INFO:root:Triggering query_id: 32
2017-10-19 17:19:54,870:INFO:root:Running query on a Celery worker
2017-10-19 17:19:55,565:ERROR:root:[Errno 61] Connection refused
Traceback (most recent call last):
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/utils/init.py", line 423, in call
return self.value
AttributeError: 'ChannelPromise' object has no attribute 'value'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 449, in _ensured
return fun(*args, **kwargs)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/messaging.py", line 177, in _publish
channel = self.channel
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/messaging.py", line 194, in _get_channel
channel = self._channel = channel()
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/utils/init.py", line 425, in call
value = self.value = self.contract()
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/messaging.py", line 209, in
channel = ChannelPromise(lambda: connection.default_channel)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 771, in default_channel
self.connection
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 756, in connection
self._connection = self._establish_connection()
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 711, in _establish_connection
conn = self.transport.establish_connection()
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
conn = self.Connection(**opts)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/amqp/connection.py", line 165, in init
self.transport = self.Transport(host, connect_timeout, ssl)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/amqp/connection.py", line 186, in Transport
return create_transport(host, connect_timeout, ssl)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/amqp/transport.py", line 299, in create_transport
return TCPTransport(host, connect_timeout)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/amqp/transport.py", line 95, in init
raise socket.error(last_err)
OSError: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Jessica/Desktop/work/incubator-superset-master/superset/views/core.py", line 2106, in sql_json
store_results=not query.select_as_cta, user_name=g.user.username)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/celery/app/task.py", line 461, in delay
return self.apply_async(args, kwargs)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/celery/app/task.py", line 573, in apply_async
**dict(self._get_exec_options(), **options)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/celery/app/base.py", line 354, in send_task
reply_to=reply_to or self.oid, **options
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/celery/app/amqp.py", line 310, in publish_task
**kwargs
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/messaging.py", line 172, in publish
routing_key, mandatory, immediate, exchange, declare)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 470, in _ensured
interval_max)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 382, in ensure_connection
interval_start, interval_step, interval_max, callback)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/utils/init.py", line 246, in retry_over_time
return fun(*args, **kwargs)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 250, in connect
return self.connection
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 756, in connection
self._connection = self._establish_connection()
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/connection.py", line 711, in _establish_connection
conn = self.transport.establish_connection()
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
conn = self.Connection(**opts)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/amqp/connection.py", line 165, in init
self.transport = self.Transport(host, connect_timeout, ssl)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/amqp/connection.py", line 186, in Transport
return create_transport(host, connect_timeout, ssl)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/amqp/transport.py", line 299, in create_transport
return TCPTransport(host, connect_timeout)
File "/Users/Jessica/anaconda/lib/python3.4/site-packages/amqp/transport.py", line 95, in init
raise socket.error(last_err)
OSError: [Errno 61] Connection refused
`

That's celery not being able to connect to your amqp broker.

How to enable celery to connect the amqp broker ?

Take a look at the documentation:
https://superset.incubator.apache.org/installation.html#sql-lab

I have enabled celery.  But when I run the same query, the following error appears:

In config.py:
`# On Redis
from werkzeug.contrib.cache import RedisCache
RESULTS_BACKEND = RedisCache(
host='localhost', port=6379, key_prefix='superset_results')
class CeleryConfig(object):
BROKER_URL = 'redis://localhost:6379/0'
CELERY_IMPORTS = ('superset.sql_lab', )
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
CELERYD_LOG_LEVEL = 'DEBUG'
CELERYD_PREFETCH_MULTIPLIER = 1
CELERY_ACKS_LATE = True
CELERY_CONFIG = None
CELERY_CONFIG = CeleryConfig
SQL_CELERY_DB_FILE_PATH = os.path.join(DATA_DIR, 'celerydb.sqlite')
SQL_CELERY_RESULTS_DB_FILE_PATH = os.path.join(DATA_DIR, 'celery_results.sqlite')
`
Console:
`JessicaChens-MacBook-Pro:incubator-superset-master Jessica$ superset worker
--------------<EMAIL_ADDRESS>v3.1.25 (Cipater)
---- **** -----
--- * ***  * -- Darwin-15.6.0-x86_64-i386-64bit
-- * - **** ---

** ---------- [config]
** ---------- .> app:         main:0x109310710
** ---------- .> transport:   redis://localhost:6379/0
** ---------- .> results:     redis://localhost:6379/0
*** --- * --- .> concurrency: 32 (prefork)
-- ******* ----
--- ***** ----- [queues]
-------------- .> celery           exchange=celery(direct) key=celery

[2017-10-20 14:00:59,546: WARNING/MainProcess]<EMAIL_ADDRESS>ready.
2017-10-20 14:15:37,576:INFO:root:[stats_logger] (incr) sql_json
2017-10-20 14:15:37,579:INFO:root:Parsing with sqlparse statement SELECT "Station" AS "Station",
COUNT(*) AS count
FROM public.event_warnings
WHERE "Start_Time" >= '2016-01-01 00:00:00'
AND "Start_Time" <= '2017-10-19 15:02:07'
GROUP BY "Station"
ORDER BY count DESC
LIMIT 50000
2017-10-20 14:15:37,643:INFO:root:Triggering query_id: 40
2017-10-20 14:15:37,643:INFO:root:Running query on a Celery worker
/Users/Jessica/anaconda/lib/python3.4/site-packages/sqlalchemy/sql/sqltypes.py:596: SAWarning: Dialect sqlite+pysqlite does not support Decimal objects natively, and SQLAlchemy must convert from floating point - rounding errors and other issues may occur. Please consider storing Decimal numbers as strings or integers on this platform for lossless storage.
'storage.' % (dialect.name, dialect.driver))
2017-10-20 14:15:37,719:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 14:15:37] "POST /superset/sql_json/ HTTP/1.1" 202 -
`

I have installed the s3werkzeugcache and tried
from s3cache.s3cache import S3Cache S3_CACHE_BUCKET = 'foobar-superset' S3_CACHE_KEY_PREFIX = 'sql_lab_result' RESULTS_BACKEND = S3Cache(S3_CACHE_BUCKET, S3_CACHE_KEY_PREFIX)
Still the same error occurs. I saw some solution on the discussion forum before, but I cannot solve mine with their solution

I have set all the celery config but when I ran the same query in the SQL Lab, the following error message appears:

But still, in the slices section, the public.event_warnings can be found and do all kinds of visualization.
The console log appears the following:
2017-10-20 15:54:05,334:INFO:root:[stats_logger] (incr) sql_json
2017-10-20 15:54:05,338:INFO:root:Parsing with sqlparse statement SELECT "Station" AS "Station",
COUNT(*) AS count
FROM public.event_warnings
WHERE "Start_Time" >= '2016-01-01 00:00:00'
AND "Start_Time" <= '2017-10-19 16:18:08'
GROUP BY "Station"
ORDER BY count DESC
LIMIT 50000
2017-10-20 15:54:05,421:INFO:root:Triggering query_id: 51
2017-10-20 15:54:05,421:INFO:root:Running query on a Celery worker
2017-10-20 15:54:05,444:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:05] "POST /superset/sql_json/ HTTP/1.1" 202 -
2017-10-20 15:54:05,617:INFO:root:[stats_logger] (incr) queries
2017-10-20 15:54:05,632:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:05] "GET /superset/queries/1508485922891.331 HTTP/1.1" 200 -
2017-10-20 15:54:07,619:INFO:root:[stats_logger] (incr) queries
2017-10-20 15:54:07,631:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:07] "GET /superset/queries/1508486040528.338 HTTP/1.1" 200 -
2017-10-20 15:54:09,621:INFO:root:[stats_logger] (incr) queries
2017-10-20 15:54:09,632:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:09] "GET /superset/queries/1508486040528.338 HTTP/1.1" 200 -
2017-10-20 15:54:11,620:INFO:root:[stats_logger] (incr) queries
2017-10-20 15:54:11,632:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:11] "GET /superset/queries/1508486040528.338 HTTP/1.1" 200 -
2017-10-20 15:54:13,616:INFO:root:[stats_logger] (incr) queries
2017-10-20 15:54:13,631:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:13] "GET /superset/queries/1508486040528.338 HTTP/1.1" 200 -
2017-10-20 15:54:15,617:INFO:root:[stats_logger] (incr) queries
2017-10-20 15:54:15,630:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:15] "GET /superset/queries/1508486040528.338 HTTP/1.1" 200 -
2017-10-20 15:54:17,974:INFO:root:[stats_logger] (incr) queries
2017-10-20 15:54:17,984:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:17] "GET /superset/queries/1508486040528.338 HTTP/1.1" 200 -
2017-10-20 15:54:18,081:INFO:root:[stats_logger] (incr) results
2017-10-20 15:54:18,081:DEBUG:botocore.hooks:Event before-parameter-build.s3.HeadObject: calling handler <function sse_md5 at 0x105dd90d0>
2017-10-20 15:54:18,081:DEBUG:botocore.hooks:Event before-parameter-build.s3.HeadObject: calling handler <function validate_bucket_name at 0x105dd9048>
2017-10-20 15:54:18,081:DEBUG:botocore.hooks:Event before-parameter-build.s3.HeadObject: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x10857d748>>
2017-10-20 15:54:18,081:DEBUG:botocore.hooks:Event before-parameter-build.s3.HeadObject: calling handler <function generate_idempotent_uuid at 0x105dd4bf8>
2017-10-20 15:54:18,081:DEBUG:botocore.hooks:Event before-call.s3.HeadObject: calling handler <function add_expect_header at 0x105dd9510>
2017-10-20 15:54:18,081:DEBUG:botocore.hooks:Event before-call.s3.HeadObject: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x10857d748>>
2017-10-20 15:54:18,082:DEBUG:botocore.endpoint:Making request for OperationModel(name=HeadObject) (verify_ssl=True) with params: {'headers': {'User-Agent': 'Boto3/1.4.4 Python/3.4.3 Darwin/15.6.0 Botocore/1.5.95'}, 'method': 'HEAD', 'query_string': {}, 'url': 'https://s3.amazonaws.com/foobar-superset/sql_lab_resulted66a13f-1b5b-4e51-a982-62990e1e2b3b', 'body': b'', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x1084d8cf8>, 'signing': {'bucket': 'foobar-superset'}, 'has_streaming_input': False, 'auth_type': None}, 'url_path': '/foobar-superset/sql_lab_resulted66a13f-1b5b-4e51-a982-62990e1e2b3b'}
2017-10-20 15:54:18,082:DEBUG:botocore.hooks:Event request-created.s3.HeadObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x1084d8828>>
2017-10-20 15:54:18,082:DEBUG:botocore.hooks:Event choose-signer.s3.HeadObject: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x105f779e8>>
2017-10-20 15:54:18,082:DEBUG:botocore.hooks:Event choose-signer.s3.HeadObject: calling handler <function set_operation_specific_signer at 0x105dd4ae8>
2017-10-20 15:54:18,082:DEBUG:botocore.hooks:Event before-sign.s3.HeadObject: calling handler <function fix_s3_host at 0x105cb6730>
2017-10-20 15:54:18,089:INFO:werkzeug:<IP_ADDRESS> - - [20/Oct/2017 15:54:18] "GET /superset/results/ed66a13f-1b5b-4e51-a982-62990e1e2b3b/ HTTP/1.1" 410 -

Could you please quote the logs in markdown so they are more readable?

Sorry, I have updated.

I revert to 0.18.5, the problem solved. I guess there's some bug in the latest version ?

Warning: this issue has been inactive for 182 days and will be automatically closed on 2018-04-30 if there is no further activity. You can add the keepup label to the issue in order for this bot to keep it open.


Research security of deserializers from the PoV of deserialization gadgets

I thought it's only a problem of Java serialization until I've seen:
https://github.com/akka/akka/blob/master/akka-serialization-jackson/src/main/resources/reference.conf#L239
So at least that's also a potential problem of Jackson, which suggests other serializers might potentially be affected.
Expected output of this task: consider adding a new row in README.md table that compares the serializers from that PoV.

Jackson uses reflection and can deserialize data into any class the data tells it to. Circe can only deserialize into classes we provide codecs for, and the class is chosen based on provided manifest.

Ok, I think adding a mention to the README would still be useful

This is covered by Akka documentaion here

Okay, again just a mention in conference preso should be enough


Remove unnecessary crud from top-level dir

This change is

+@rpoyner-tri for both reviews, please.


[Feature Request / Bug]: autoscaler_nodepools example labels is wrong

Description
The latest example values for labels and taints in autoscaler_nodepools in kube.tf.example seem wrong:
autoscaler_nodepools = [
  {
    # ...
    labels      = {
      "node.kubernetes.io/role=peak-workloads"
    }
    taints      =
    [{
       key: "node.kubernetes.io/role"
       value: "peak-workloads"
       effect: "NoExecute"
    }]
  }
]

From looking at the code I believe that it should be the following:
autoscaler_nodepools = [
  {
    #...

    labels = [{
      "node.kubernetes.io/role": "peak-workloads"
    }]

    taints = [{
        key: "node.kubernetes.io/role"
        value: "specific-workloads"  # not `peak-workloads`
        effect: "NoExecute"
    }]
  }
]

However, now the labels and taints schemas are different for autoscaler_nodepools and agent_nodepools. I'm not convinced that this makes a lot of sense...
Is the plan to change all labels/taints to the new more verbose schema? Obviously as maintainers you're free to choose whichever schema you wish (although I personally prefer the original more concise string over the object), but in either case I think it should be consistent.
Thanks :)

The new schema allows for easier implementation in the cluster-autoscaler codebase. (I had a pr merged for that as well)
Kubernetes labels are maps, and Taints are objects. So it was easier to make them more in line with Kubernetes.
But yeah I will open a PR to fix the wrong example :P

@dstockhammer Please terraform upgrade -init to the latest version and use the new schema by @Silvest89. See latest kube.tf.example.

@dstockhammer The fix by @Silvest89 was just released in v2.9.1. Enjoy!


Users SBAT to see accurately rounded transactions

Expected Behavior
@martinvol has already fixed rounding issues for the balance, but transaction amounts seem to still show up inaccurately

Dupe of #41


✨(course) add course run catalog visibility

Add catalog visibility field to course run so it's possible to hide a
course run on catalog and/or hide it completely. Closes #1502

@sampaccoud I think I need your help on this. I don't know how to fix the regression test test_models_course_run_mark_dirty_any_field. I'm having this error and I don't know why - AssertionError: 0 != 1 : After refreshing from db catalog_visibility.
When we fix this, i think the PR would be ready to merge.

@sampaccoud I think I need your help on this. I don't know how to fix the regression test test_models_course_run_mark_dirty_any_field. I'm having this error and I don't know why - AssertionError: 0 != 1 : After refreshing from db catalog_visibility.

You need to make sure that the catalog_visibility field changes value. I proposed a fix here: https://github.com/openfun/richie/commit/1cb0150ad2f760e82d846b12d4abcf948e767f49

You need to make sure that the catalog_visibility field changes value. I proposed a fix here: 1cb0150

Thanks, it fixes the problem.

@sampaccoud  I've also included a css change to make the hidden runs easily distinguished on the edit mode.
My idea was to highlight only the hidden runs. Should we include a different style also for the about visibility ?
Current implementation:

Alternative implementation:
(only display extra information for hiddenand about)

@sampaccoud I've also included a css change to make the hidden and about runs easily distinguished on the edit mode.

Good idea! I'm not sure about the differentiation you propose "design wise" :sweat_smile:
I can ask the designer to propose something.

The course run api would adapt the open edx catalog visibility to the richie values, on the method clean_course_run_data.
Updating the previous screenshots:
Course page (edit mode):

Course run admin screen, showing the catalog visibility combo box:

@sampaccoud  can you ask your designer to review the UI changes?

What do you think of something like this:

Reviewed the styling.
Screen captures:

Screenshot:

@jbpenrath sorry but after I've seen what you have added on the PR #1569, I've found out that it is possible to change the svg fill color using CSS. So I've changed the new sass code and added a new theme property course-detail > run-catalog-visibility-logo-color so the color of the svg icons are inheritance from the palette.
To mask related properties are need to be defined neer each other. To prevent the code duplication, I've created a new sass mixin course-detail-run-descriptions-catalog-visibility-mask. Probably the naming is kind of strange.
With this small change, we can use our own NAU palette colors for those new svg colors more easily.


fix: added code to ensure proper execution for newer versions of docker

Linked Issue(s)

#383
Acceptance Criteria fulfillment

[ ] Running the dev.sh script should properly start the development container, regardless of docker version.

Changes
This PR fixes the call for docker compose within the cli. Right now, docker-compose is being used, but as of the newer versions (as stated here) , the compose command has been integrated into docker desktop itself. So we should be using docker compose instead.
For the sake of backwards compatibility, some code has been included to run the old command should the newer one fails.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@jayantbh have made the required changes. Please have a look whenever possible. Thanks.

Hey @sidtohan,
It still doesn't look like you ran the linter correctly.
Maybe the linter isn't working correctly, or maybe there's some other issue.
Could you share how you're running the linter?

I have used the command:
yarn lint-fix
I switched to the cli folder before running the command.
There is one thing, when I run the above command it removes an extra new line in the cli/source/utils/run-command.ts file. But since I didn't modify that file directly, I am not sure if I should keep that particular change.
If there is anything else that I might be missing please let me know.

@sidtohan  you can just remove that extra line, thankss

I have used the command: yarn lint-fix
I switched to the cli folder before running the command.
There is one thing, when I run the above command it removes an extra new line in the cli/source/utils/run-command.ts file. But since I didn't modify that file directly, I am not sure if I should keep that particular change.
If there is anything else that I might be missing please let me know.

I've implemented the suggested changes. If there is anything I'm missing regarding linting please let me know. Thanks for the help. @samad-yar-khan @jayantbh

Let's wait for a day or so (I'm out of station at the moment and want to check why the linter didn't work as expected)
Apologies for the slow movement of this PR.

@sidtohan this is what the linter running properly looks like:
https://github.com/middlewarehq/middleware/commit/e43f11f8e2c1c0b65f189f9bce0fb5f9e5a34d19
It's not your fault. The linter isn't running properly for some reason and I had to run the eslint command manually. yarn eslint --fix ./source/**/*.*
Unfortunately I can't make a commit directly to your branch, so, the above commit I made in a duplicate branch should help.

@jayantbh @adnanhashmi09 I've implemented the suggested changes. However, I'm facing a merge conflict. Right now I'm pushing it as it is, but if I need to resolve the merge conflict locally first please let me know.
Thanks

@sidtohan Please fix the merge conflict. Also please rebase your branch to the latest changes.
pull latest changes in the main branch. Then checkout to your branch and rebase your branch to latest pull of main.

@sidtohan Please fix the merge conflict. Also please rebase your branch to the latest changes. pull latest changes in the main branch. Then checkout to your branch and rebase your branch to latest pull of main.

Alright sure, I've made the changes. Please have a look whenever possible. Thanks :)

@sidtohan thanks for the PR. Congrats on your first contribution at Middleware :rocket: !

@sidtohan thanks for the PR. Congrats on your first contribution at Middleware :rocket: !

Happy to contribute :)


Adopt new BSD license

Changed file headers to reflect the project's license.

Image from http://choosealicense.com/licenses/
This closes #36

@JuancaDuque
Update license and change headers to reflect that.
This build fails because #43 isn't merged yet, but this pull request doesn't add any code.

I rebased this commit and is now passing, so forget about the previous comment.


Fix DeploymentValidator to allow multiple Deployments for cluster-api-app

What?
We want to deploy all three CAPI controllers from cluster-api-app.
Currently we check if the Deployment is unique by looking for deployments with same app.kubernetes.io/name and app.kubernetes.io/version labels. All three Deployments have same values for these labels, as they come from a single app repo, so the Deployment creation gets blocked.
How?
This PR adds the check of app.kubernetes.io/component labels as well, if present only (so it's opt-in), so the Deployment is considered to be the same when all 3 mentioned labels have same values.
Example
For the cluster-api-app, we would have these 3 Deployments:

capi-kubeadm-bootstrap-controller-manager

app.kubernetes.io/name: cluster-api
app.kubernetes.io/component: bootstrap-kubeadm
app.kubernetes.io/version: 0.3.0

capi-kubeadm-control-plane-controller-manager

app.kubernetes.io/name: cluster-api
app.kubernetes.io/component: control-plane-kubeadm
app.kubernetes.io/version: 0.3.0

capi-controller-manager

app.kubernetes.io/name: cluster-api
app.kubernetes.io/component: cluster-api
app.kubernetes.io/version: 0.3.0

In this example the app.kubernetes.io/component matches the value of CAPI cluster.x-k8s.io/provider label and it is different in all three Deployments.

@kopiczko do you know why we added the validation that checks if we have two deployments with those labels?


Kade Engine won't run:

Please check for duplicates, similar issues or closed issues with the same problem, as well performing simple troubleshooting steps (such as deleting the export folder if it's an issue with compiling, reinstalling Kade Engine) before submitting an issue.
If you are playing a downloaded version of the game, what operating system are you using?
Windows (x86), Windows (x86_64), Linux, or macOS? Specify below.
Windows 10 x64
What version of the game are you using? Look in the bottom left corner of the main menu.
1.6
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
Run the game
Please describe your issue. Provide extensive detail and images if possible.
Whenever I try to run the engine, a window pops up saying [lime.utils.Preloader] ERROR: There is no asset library with an ID of "Songs"

this happens when a songs' inst and voices are missing, make sure they're not, else try rebuilding the game

^


Is it normal that success story downloads data for all installed games at startup and it takes a few minutes?

Since like two weeks I noticed that success story downloads data for all installed games which takes some time with 134 installed games. While it does I can't use playnite unless I cancel the download. Is this a change or did I just not notice it before?

Came here because I have this same issue since about two weeks back! It seems to be downloading metadata for all steam games, every time I start up Playnite, but not other services.

https://github.com/Lacro59/playnite-successstory-plugin/commit/d040e624715a265dd034e4d97ae03730589c6673


current_user.provider throwing method not found error

Hi!
I was trying to make possible editing a user profile when it logged in using oauth, like facebook, for instance. In this case, since the user doesn't have a password, the update without providing current password should be allowed (via resource.update_without_password(params)). The problem is that in order to know if the user logged in through facebook, I have to check if current_user.provider == "facebook". But I'm getting an error there, saying that the provider method doesn't exist. How can I get the provider from the current_user?
Thanks!

Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.


Allow symetrical variation in YAML rules

For example, when npn: rotor of hawt (f=1) --> an: hawt rotor (f=7), allow to revert it as an: hawt rotor (f=7) --> npn: rotor of hawt (f=1)
Suggestion: adding a symetric field in variation rule:
"S-PI-NN-P":
  source: N P N
  target: A N, N N
  rule: s[0]==t[1] && s[2].stem==t[0].stem
  symetric: true

Easy to implement, by difficult to propagate to all language-specific resources.
Not planned anymore to be implemented under ISTEX funding.


Changing the StatesGroup name with Redis enabled

Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Operating System: MacOS 13.2.1 (22D68)
Python Version: 3.10
aiogram version: 3.0.0b7
aiogram-dialog version: 2.0.0b17

Expected Behavior
If it is impossible to find a StatesGroup with this name, delete the library context from Redis if an error occurs
Current Behavior
Any update that is not even related to dialogs crashes with an error: "aiogram_dialog.api.exceptions.UnknownState: Unknown state group"
Failure Information (for bugs)
if Redis is running and connected to the storage in the manager, then when the StatesGroup name is changed, it is impossible to start the bot now until you completely clean the Redis
Steps to Reproduce
Please provide detailed steps for reproducing the issue.

Launching a bot with a StatesGroup named DialogSG
The user uses the dialogs
Changing the StatesGroup name to DialogMain
Restarting bot
The user has not yet used dialogs with StatesGroup named DialogMain
The aiogram_dialog context in Redis contains information about a StatesGroup named Dialog for this user
When processing any bot update, aiogram_dialog checks its context in Redis (aiogram_dialog.context.intent_middleware - DEBUG - Loading context for intent: None, stack: ``, user: 123456789, chat: -123456789)
An error pops up "aiogram_dialog.api.exceptions.UnknownState: Unknown state group"

Failure Logs
https://gist.github.com/WilliamQosmos/e6043ca04da66a49cc7a310781a8a703

please check this way of handling events:
https://github.com/Tishka17/aiogram_dialog/blob/develop/example/simple.py#L154

This helped a lot, thanks for the reply


Subscribe Button Leads to 404 Page

Hello all,
Is there any reason why the Subscribe button (when Members is enabled) will lead to a 404 page? I have uploaded the routes YAML but I am not sure what else to do to troubleshoot this issue.

 I figured it out.


dapi: restart of tenderdash causes td version to be removed from status endpoint

Reported by @lklimek

@lklimek I just tested. When I start tenderdash back DAPI reconnects to it. It might be some cache. In DAPI we cache getStatus response for 1 platform block. Could you please provide more information?

Go to https://mnowatch.org/evonodes/ and notice that some nodes are missing version info of Tenderdash, some Drive.
In our testing, we have found that after panic in TD, DAPI stopped reporting version information. But we didn't spend time investigating this issue, just guessed this can be related to recent changes in DAPI.

Thank for help with reproduction. Here is a fix https://github.com/dashpay/platform/pull/2155


[Diag] Make fixItReplace slightly smart

What's in this pull request?
When replace something with a punctuator, we often prefer adding spaces around it.
For instance,
  typealias Foo: Int
  // fix it
  typealias Foo = Int

In this case we want to add a space before =, but not after that.
With this change, we can simply fixItReplace(ColonLoc, " = ").
fixItReplace() automatically adjust the spaces around it.

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

A smoke test on macOS does the following:

Builds the compiler incrementally.
Builds the standard library only for macOS. Simulator standard libraries and
device standard libraries are not built.
lldb is not built.
The test and validation-test targets are run only for macOS. The optimized
version of these tests are not run.

A smoke test on Linux does the following:

Builds the compiler incrementally.
Builds the standard library incrementally.
lldb is built incrementally.
The swift test and validation-test targets are run. The optimized version of these
tests are not run.
lldb is tested.

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@swift-ci Please smoke test

Nice 😄

@swift-ci Please smoke test

@swift-ci Please smoke test Linux platform

That's pretty good. Is there a way to share the logic with fixItRemove?

@swift-ci Please test

@swift-ci Please smoke test

Before indentation fix:
macOS: https://ci.swift.org/view/Pull Request/job/swift-PR-osx/3430/
Linux: https://ci.swift.org/view/Pull Request/job/swift-PR-Linux/3596/
HEAD:
macOS: https://ci.swift.org/view/Pull Request/job/swift-PR-osx-smoke-test/1387/
Linux: https://ci.swift.org/view/Pull Request/job/swift-PR-linux-smoke-test/870/

@swift-ci Please test

@swift-ci Please test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 96600fe97a144d35f1cf69a4c4735c143080b96c
Test requested by - @shahmishal

Unrelated non-deterministic error on Linux?
11:41:33
TestFoundation/TestNSOperationQueue.swift:63: error: TestNSOperationQueue.test_OperationPriorities : XCTAssertEqual failed: ("Operation1 executed") is not equal to ("Operation3 executed") -
11:41:33 TestFoundation/TestNSOperationQueue.swift:64: error: TestNSOperationQueue.test_OperationPriorities : XCTAssertEqual failed: ("Operation3 executed") is not equal to ("Operation1 executed") -

@swift-ci Please test Linux platform

Just to make sure nothing's changed,
@swift-ci Please smoke test

@swift-ci Please smoke test Linux platform

@rintaro, this is ready to merge, yes?

@jrose-apple
Yes, please merge. I'm not authorized to merge into master.


Update map api

You can now remove the EntityOverlayItemFactory, EntityOverlay, and BalloonItemizedOverlay classes, as well as the whole libraries/mapballoons folder!

Looks :bomb:, it'll be sweet to tell our partners that maps work again!
After you checkout my comments we can look into getting the api keys setup on the build server

Addressed the comments. I'll remove the classes you mentioned in a separate PR.

Tried it out just now and it seems to work just like before. That felt too easy...


Fine-grained attributed graph clustering

Fine-grained attributed graph clustering is not based on deep learning.

Thanks for your information. We have fixed it.


Simple demo application required

Can anyone please provide a simple form and log event asynchronously to database.
Or sample code can do as well.
Thank you in advance.

There are sample configs for the AdoNetAppender on the log4net website and you then just need to wrap it in the async forwarder or appender as shown in the readme of this project.
https://logging.apache.org/log4net/release/config-examples.html


fixed a markdown grammar mistake

[] () will be mistaken for a blank hyperlink by markdown.So in order to show the two operators, we have to use () [] instead.

Thx a lot~

@pezy  :-)


Feature: bulk load manager

Feature Request
In the current implementation, bulkload result saved in external component. This increases the complexity of system deployment. I think it is better to record this result in the meta server.


Pillbox with dropdown should allow distinction between pillbox and dropdown text

The pillbox widget can take a callback with a list of items that will appear in a dropdown when the user starts typing.  When an item from the dropdown is selected, the text for that item becomes the text of the pillbox.
However, there are many cases where we would want to display extended information in the dropdown, but not in the pillbox.  I propose an additional attribute for dropdown items, label, which will supersede the text for display purposes in the pillbox.
For example, I might declare my dropdown items as:
[
    {
        text  : "Some long description or HTML",
        value : "0",
        label : "Item0"
    },
    {
        text  : "Another long, nicely formatted description here",
        value : "1",
        label : "Item1"
    }
]

The dropdown would display the text fields for these items, but when an item is actually selected, only label would be displayed in the pillbox.

Great idea!  Send us a Pull Request and we'll review it (and I'll re-open this ticket if you want to work on a fix).


Scrolling with mouse wheel is not smooth

In a typical application, scrolling down with mouse wheel with one full finger strike makes the page scroll down around 1/3 of the page, so that after 3 strikes, the page is completely new. In the timeline-chart, a full finger strike scrolls down barely a line. So it takes a lot of finger work to scroll down a full page!

Maybe related to this, but zooming with the mouse wheel also does not zoom very fast (compared with say, zooming with W/S when PR #25 is merged)

I see that one mouse wheel click down moves the graph down by about time graph rows, which is the same I observe in Eclipse TC.
For the horizontal (time) zooming it should be fixed with https://github.com/theia-ide/timeline-chart/pull/114.


BUG - undeployment request is not handling HTTP 401

Description
Found when testing https://github.com/SAP/open-ux-tools/issues/687
When undeploying, if the target destination or URL returns a 401, the user is not prompted for a username/password.
user: zec1 $ npm run undeploy

><EMAIL_ADDRESS>undeploy
> fiori undeploy --config ui5-deploy.yaml

Confirmation is required to undeploy the app:

    Application Name: ZEC1SIG0531A
    Transport Request:
    Destination: EC1

✔ Start undeployment (Y/n)?

 … yes
info undeploy-abap Starting undeployment.
2023-05-31 14:54:07 warn    abap-deploy-task: You chose not to validate SSL certificate. Please verify the server certificate is trustful before proceeding. See documentation for recommended configuration (https://help.sap.com/viewer/17d50220bcd848aa854c9c182d65b699/Latest/en-US/4b318bede7eb4021a8be385c46c74045.html).
2023-05-31 14:54:07 info    abap-deploy-task: Starting to undeploy.
2023-05-31 14:54:08 error   abap-deploy-task: Request failed with status code 401
Request failed with status code 401

Steps to Reproduce
Deploy an application to an ABAP target endpoint which requires authentication.
Try to undeploy the applicatio.
User is shown 401 error message.
Expected results
User is prompted for a username/password.
Actual results
Exception is thrown and process fails.
Screenshots
If applicable, add screenshots to help explain the problem.
Version/Components/Environment
Add any other context about the problem here
OS:

[x] Mac OS
[ ] Windows
[ ] Other

Root Cause Analysis
Problem
{describe the problem}
Fix
{describe the fix}
Why was it missed
{Some explanation why this issue might have been missed during normal development/testing cycle}
How can we avoid this
{if we don’t want to see this type of issues anymore what we should do to prevent}

Validated as part of internal testing.


Cheat sheet

For https://github.com/intersystems-ru/cos-guidelines/issues/16

See cheat here

Is this learning services cheat sheet? Are they OK with putting it online?

@adaptun It's from foundations course, but it does not have confidential written anywhere in the source file. @evshvarov any ideas?


Document attach protocol

Flynn is unmaintained and our infrastructure will shut down on June 1, 2021. See the README for details.


Cow: Watch getenviropass.com

Cow requests the watch of the watch_keyword getenviropass\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

getenviropass\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Cody Gray in Charcoal HQ


Change ESLint rule requiring line breaks at 72/n chars

Since most viewers/editors can wrap lines in 2020, we probably don't need the eslint rule forcing us to make line breaks in our source code. This also helps with generating docs from source code without single line breaks.
Originally posted by @bhajneet & @Harjot1Singh in https://github.com/ShabadOS/gurmukhi-utils/pull/150

I think we should keep the line break rule - it's not about line wrapping, it's just overall a better visual experience and encourages better practice to keep code lines shorter and more succinct

Should create an issue to fix gurmukhi utils readme being generated with short lines since they're line broken comments

Actually it renders fine on GitHub, just looks a bit odd in source code. Not a big deal.


Bugsnag generates new Build Phase every npx expo prebuild

Describe the bug
Every time the npx expo prebuild command is fired it will update the project.pbxproj file with new Build Phase of "Upload source maps to Bugsnag".

Environment

Bugsnag version: "@bugsnag/expo": "^49.0.0",
Expo SDK version: SDK 49
iOS
Bare workflow in use of eas build

Hi @pzatorski
This seems to be an issue where our configuration plugin is being run each time thenpx expo prebuild command is called. Thanks to your feedback we now have an item on our backlog aimed at making sure our configuration plugin can be run multiple times. However I have no firm ETA on the release of this. We’ll be sure to keep you informed of any updates.
While we work on a long term solution, we suggest running npx expo prebuild --clean which will delete and rebuilt the native directories. This method is recommended by expo for this exact issue. More information can be found here: Prebuild

Hi @pzatorski
We have release v49.0.2  of the expo notifier which should fix the issue you were facing. After updating if you are still experiencing issues please reach out and let us know.

this issue is back for expo 50.0.6 and @bugsnag/expo 50.0.0

Hi @i-mighty, could you please share some more details about the issue? Are the commands you’re running, and error message the same as in the initial message? If there are any differences could you please share the examples?

I am running npx eas build -p ios in github actions. I am not doing anything else.
The dev build runs well locally.

Hey @i-mighty Did you manage to solve this problem? I have the same problem
"@bugsnag/expo": "^50.0.0",
"expo": "^50.0.14",

Hello @i-mighty and @Brunowilliang 👋🏻,
we were unable to recreate the issue on our end. Could you please provide some additional details, like what is your app configuration, and how is your BugSnag notifier configured including example code snippets? As this is a public thread, please feel free to open a ticket with us directly by contacting<EMAIL_ADDRESS>

@Brunowilliang to solve it, simply set the image: "latest" in your build profile configuration for ios. That fixed it for me.

@Brunowilliang thanks for the update. Could you please share the details I've mentioned in my previous comment for further investigation?


Add freeline rules

Freeline is a super fast build tool for Android, an alternative to Instant Run. Many Android projects use it to improve development efficiency. When it was initiated, it will produce some files:

freeline.py file. A python script to execute project build.
freeline/ folder. The implement of freeline.
freeline_project_description.json The freeline description of the project.

All these files only use for developer to improve development efficiency, and should not be commit to VCS.
Freeline project: https://github.com/alibaba/freeline/

If this is specific to Android, could it be included in Android.gitignore?

@shiftkey Yes, you are right. I had changed it now.

@msdx thanks!


[RFC] Object creation and destruction concept

I propose this basic concept and want to hear your comments:

NiGuiObject is the base type for all complex types like Window, Control, Button, etc.
NiGuiObject types are ref types, that means objects are stored on heap and are not destroyed automatically.
To create an NiGuiObject, there is a 'new' proc for each type, e.g.

proc newButton(): Button =
  result = new Button
  result.Button.init()
  # (In reality it creates a NativeButton, I can explain this somewhere else.)
  [...]

The 'new' proc calls the 'init' proc, e.g.

proc init(button: Button) =
  button.Control.init() # call 'init' of base type
  # do some initialization:
  button.fText = ""
  [...]

The 'init' proc calls the 'init' proc of it's direct base type.
To destroy an NiGuiObject and free it's memory, there is the 'dispose' method:

method dispose(obj: NiGuiObject)

The 'dispose' method should be overridden for sub types.
There is another 'dispose' proc but with 'var' parameter, which sets the reference to nil after disposal:

proc dispose(obj: var NiGuiObject) =
  let o = obj
  o.dispose() # force calling the other 'dispose' proc
  obj = nil

More thoughts:

In a typical small GUI application, the programmer does not care about object destruction. GUI objects simply live until the end of the program. In multi window applications it might be useful to dispose a window object when the window gets closed. The window will dispose all it's controls automatically.
Is it useful to have a 'onDispose' event?
Is it useful to have a 'disposed' property to forbid usage of a disposed object?

Implementation:

The described concept is mostly already implemented, except that at the moment there is no common base type of Window and Control. The needed changes will be small.

proc dispose(obj: var NiGuiObject) =
  let o = obj
  o.dispose() # force calling the other 'dispose' proc
  obj = nil

That's an infinite recursion. It's a bad idea to use the same name for this, maybe call it drop.
But I don't see the need for dispose, today's Nim uses ref object with finalizers to manage external resources.

@Araq Thank you for the hint. I wasn't aware of the 'finalizer' feature.
I will replace the 'dispose' construct with finalizers.


Using regex with schema validator?

can I use regex matcher for a query string in the schema validator? for example,
if I had
 req.check({
        search: { in: 'query',
            notEmpty: true,
            isLength: {
                options: [{
                    min: 1,
                    max: 10
                }],
                errorMessage: 'Must be between 1 and 2 chars long' // Error message for the validator, takes precedent over parameter message
            },
        }
    });

I only want certain format to be used in that query string, how would I do this?

Do you mean using the matches validator?
req.checkBody({
  email: {
    notEmpty: true,
    matches: {
      options: /@(gmail|outlook)\.com$/i,
      errorMessage: 'you may only use email addresses from gmail or outlook'
    }
  }
})

Closing due to inactivity.


the error when i download Indiana-University for the RRG task

Access denied with the following error:
    Cannot retrieve the public link of the file. You may need to change
    the permission to 'Anyone with the link', or have had many accesses.

You may still be able to access the file from the browser:
     https://drive.google.com/uc?id=1Cv9u3ZoOb8hZVcObMqHRNxsoAdZpYGt4

Unzipping...
Traceback (most recent call last):
File "/home/mylu/anaconda3/envs/pytorch181/bin/vilmedic-download", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/data/mylu/packages/vilmedic/bin/scripts/vilmedic-download", line 88, in
download_images(data_name=key, file_id=file_id, unzip_dir=os.path.join(DATA_DIR, "images"))
File "/data/mylu/packages/vilmedic/bin/scripts/vilmedic-download", line 31, in download_images
with zipfile.ZipFile(zip_name, 'r') as zf:
File "/home/mylu/anaconda3/envs/pytorch181/lib/python3.9/zipfile.py", line 1248, in init
self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: 'data/indiana-images-512.zip'
ask for help

the link has been fixed


Getting execution result back from defer

I'm using nextjs and trpc. I like that defer can take my expensive api call to openai and execute it for me, but I'm running into the issue where when that result is ready, how do I let my nextjs server know about it right away?

Hi @EricDotSmith,
You can use the getExecution() from @defer/client, as showcased here:
https://github.com/defer-run/defer-openai-github-profile/blob/33c5d454dae4d37dd233fe2faf160a80445bc78b/src/app/api/githubProfile/[usernameOrExecId]/route.ts#L20

Hi @EricDotSmith,
You can use the getExecution() from @defer/client, as showcased here:
https://github.com/defer-run/defer-openai-github-profile/blob/33c5d454dae4d37dd233fe2faf160a80445bc78b/src/app/api/githubProfile/[usernameOrExecId]/route.ts#L20

Yeah that function will do the trick for getting the result. I guess my main concern is updating my database with the result of the execution right when it's available. As of right now I'm thinking of hacking in a communication between the defer function and a NextJS serverless function, using JWTs the pass the data. The NextJS serverless functions role would be just to update the database with finished job results. That way I don't need to expose my db connection string to defer. What are your thoughts on this approach?

As an update I ended up just adding my databases connection string as an environment variable and used prisma to store the result to my db immediately when it's available. All works well 💪 Defer is a really awesome service, great job!


Includes package.json to install as npm

Included package.json in order to install the core jsdo library as an npm package.

I would be super happy if an NPM version of this library (preferably built using AMD/UMD so it can be imported) was made available. I'm using it in an app through Webpack, and I'm having to jump through a ton of hoops to be able to import it properly.

This is a MUST. Nowadays almost every web project is managed through npm.

Merged pull request for package.json.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1429 ms

Resolved: Bofrost.at performance has improved in 9129e66 after 27 minutes.


Install fails at last step "Install RAM & Tag2Text"

I am following install instructions, and am at last step "Install RAM & Tag2Text":

git clone https://github.com/xinyu1205/recognize-anything.git
pip install -r ./recognize-anything/requirements.txt
pip install -e ./recognize-anything/

And when I do this, I encounter the following error:
Successfully installed clip-1.0 fairscale-0.4.4 ftfy-6.2.0 pycocoevalcap-1.2 timm-0.4.12 tokenizers-0.13.3 transformers-4.25.1 wcwidth-0.2.13
DEPRECATION: Loading egg at /home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/mmpose-0.28.0-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..
DEPRECATION: Loading egg at /home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/xtcocotools-1.14.3-py3.11-linux-x86_64.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..
DEPRECATION: Loading egg at /home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/munkres-1.1.4-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..
Obtaining file:///home/jesse/code/grounded-sam/Grounded-Segment-Anything/recognize-anything
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      Traceback (most recent call last):
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 102, in __init__
          req = REQUIREMENT.parseString(requirement_string)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py", line 1654, in parseString
          raise exc
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py", line 1644, in parseString
          loc, tokens = self._parse( instring, 0 )
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py", line 1402, in _parseNoCache
          loc,tokens = self.parseImpl( instring, preloc, doActions )
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py", line 3417, in parseImpl
          loc, exprtokens = e._parse( instring, loc, doActions )
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py", line 1406, in _parseNoCache
          loc,tokens = self.parseImpl( instring, preloc, doActions )
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing.py", line 3205, in parseImpl
          raise ParseException(instring, loc, self.errmsg, self)
      pkg_resources._vendor.pyparsing.ParseException: Expected stringEnd (at char 4), (line:1, col:5)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/home/jesse/code/grounded-sam/Grounded-Segment-Anything/recognize-anything/setup.py", line 2, in <module>
          setuptools.setup()
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/setuptools/__init__.py", line 154, in setup
          _install_setup_requires(attrs)
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/setuptools/__init__.py", line 146, in _install_setup_requires
          dist.parse_config_files(ignore_option_errors=True)
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/setuptools/dist.py", line 807, in parse_config_files
          self._finalize_requires()
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/setuptools/dist.py", line 534, in _finalize_requires
          self._move_install_requirements_markers()
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/setuptools/dist.py", line 573, in _move_install_requirements_markers
          inst_reqs = list(pkg_resources.parse_requirements(spec_inst_reqs))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3099, in parse_requirements
          yield Requirement(line)
                ^^^^^^^^^^^^^^^^^
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3109, in __init__
          super(Requirement, self).__init__(requirement_string)
        File "/home/jesse/code/grounded-sam/gsam-venv/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 104, in __init__
          raise InvalidRequirement(
      pkg_resources.extern.packaging.requirements.InvalidRequirement: Parse error at "': requir'": Expected stringEnd
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

Any idea how to proceed?

Maybe you can follow recognize-anything official installation guide to install it~

same issue here and it doesn't work to use the instructions on recognize anything github repo to install either

after retrying with a new env and everything it worked. no idea why because i think im using same python version and everything

setuptools>=62.6.0 is required.

pip install --upgrade setuptools Requirement already satisfied: setuptools in /home/kai/miniconda3/envs/grounding-sam/lib/python3.9/site-packages (62.6.0) Collecting setuptools   Using cached setuptools-72.2.0-py3-none-any.whl.metadata (6.6 kB) Using cached setuptools-72.2.0-py3-none-any.whl (2.3 MB) Installing collected packages: setuptools   Attempting uninstall: setuptools     Found existing installation: setuptools 62.6.0     Uninstalling setuptools-62.6.0:       Successfully uninstalled setuptools-62.6.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. openxlab 0.1.1 requires setuptools~=60.2.0, but you have setuptools 72.2.0 which is incompatible. Successfully installed setuptools-72.2.0


Ansible request for Unix playbooks - a playbook by name rather than named via role_name.

Please put the name of the software product (and affected platforms if relevant) in the title of this issue

[ ] Missing install
[ ] Bug in ansible playbook
[ ] Request for new playbook addition
[x] Reorganization

Details:
I've been working on reorganizing the AIX playbooks - and I am going to start looking at the organization of the other Unix playbooks.
Before getting started - I just want to verify that there is some agreement that that a playbook named, e.g., roles/something_todo/tasks/main.yml could also be named something_todo.yml - If the aforementioned main.yml is the only file in the role.

Why I ask? Because - mostly - that is the current organization - the two roles Common and Nagios_Plugins are the exceptions:

aixtools@x064:[roles]find . -name \*.yml ! -name main.yml
./Common/tasks/Alpine.yml
./Common/tasks/CentOS.yml
./Common/tasks/Debian.yml
./Common/tasks/FreeBSD.yml
./Common/tasks/MacOSX.yml
./Common/tasks/RedHat.yml
./Common/tasks/SLES.yml
./Common/tasks/Solaris.yml
./Common/tasks/Ubuntu.yml
./Common/tasks/build_packages_and_tools.yml
./Common/tasks/openSUSE.yml
./Common/vars/Alpine.yml
./Common/vars/CentOS.yml
./Common/vars/Debian.yml
./Common/vars/FreeBSD.yml
./Common/vars/MacOSX.yml
./Common/vars/RedHat.yml
./Common/vars/SLES.yml
./Common/vars/Solaris.yml
./Common/vars/Ubuntu.yml
./Common/vars/openSUSE.yml
./Nagios_Plugins/tasks/nagios_CentOS.yml
./Nagios_Plugins/tasks/nagios_Debian.yml
./Nagios_Plugins/tasks/nagios_FreeBSD.yml
./Nagios_Plugins/tasks/nagios_MacOSX.yml
./Nagios_Plugins/tasks/nagios_RedHat.yml
./Nagios_Plugins/tasks/nagios_SLES.yml
./Nagios_Plugins/tasks/nagios_Solaris.yml
./Nagios_Plugins/tasks/nagios_Ubuntu.yml

Above was all .yml files that were not named main - here are the main.yml files:

aixtools@x064:[roles]find . -name main.yml
./Ant-Contrib/tasks/main.yml
./CentOS6-Cent7SSL/tasks/main.yml
./Clean_Up/tasks/main.yml
./Common/tasks/main.yml
./Crontab/tasks/main.yml
./Debug/tasks/main.yml
./Docker/tasks/main.yml
./DockerStatic/tasks/main.yml
./GIT_Source/tasks/main.yml
./Get_Vendor_Files/tasks/main.yml
./IPv6/tasks/main.yml
./Jenkins_User/tasks/main.yml
./Kerberos/tasks/main.yml
./NTP_TIME/tasks/main.yml
./NVidia_Cuda_Toolkit/tasks/main.yml
./Nagios_Master_Config/tasks/main.yml
./Nagios_Plugins/tasks/main.yml
./Nagios_Tunnel/tasks/main.yml
./OpenSSL/tasks/main.yml
./Providers/tasks/main.yml
./Python2.7/tasks/main.yml
./Python3_Source/tasks/main.yml
./Security/tasks/main.yml
./Superuser/tasks/main.yml
./Swap_File/tasks/main.yml
./Tomcat/tasks/main.yml
./Vendor/tasks/main.yml
./Version/tasks/main.yml
./Xcode/tasks/main.yml
./adopt_etc/tasks/main.yml
./adoptopenjdk_install/tasks/main.yml
./ant/tasks/main.yml
./autoconf/tasks/main.yml
./ccache/tasks/main.yml
./cmake/tasks/main.yml
./curl/tasks/main.yml
./disable_gui/tasks/main.yml
./freemarker/tasks/main.yml
./gcc_10/tasks/main.yml
./gcc_48/tasks/main.yml
./gcc_7/tasks/main.yml
./gcc_9/tasks/main.yml
./git-hg/tasks/main.yml
./gmake/tasks/main.yml
./jckservices_iptables/tasks/main.yml
./linux_installer/tasks/main.yml
./local_srcinstall/tasks/main.yml
./macos_codesign/tasks/main.yml
./maven/tasks/main.yml
./nasm/tasks/main.yml
./riscv_cross_compiler/tasks/main.yml
./vsftpd/tasks/main.yml
./zulu7/tasks/main.yml

In my book - that is a feeble attempt to use roles. In fact it is simply using the ansible module role: rather than include_tasks:
But, that is just my humble opinion. What is yours?

update: Looking at the role Common - I see nothing that I expected. This is a role I would call platform or something compareable - as the main task is:

##############################
# OS setup and configuration #
##############################
# If this errors, upgrade ansible to >=2.4
- name: Perform OS setup and configuration
  include_tasks: "{{ ansible_distribution }}.yml"
  tags: main

The Common role (whether platform is a better name or not doesn't really matter) is mostly for installing a base set of packages from the package manager. It's split into the different distributions because there are so many variants. As you've seen from your last comment the main.yml calls the distribution-specific things. I suspect the reasoning behind the Nagios role is similar. @Willsparker any further input?
I'm not saying that's the best option - just explaining how it's currently done and that was put in place a long time ago :-)

as to leaving the tasks named as roles - if that is what you want, so be it. I wont bother thinking about it.
reminder: my viewpoint, for now, is fresh eyes. I mention what surprises/confuses me. Over time I too become part of the establishment aka biased.
my bias would be, e.g., to take something like the MANY gcc (so-called) roles and integrate them into a gcc role.
part of integration is to also document why one platform details differs from another - rather than expect a reader to be clairvoyant. I seriously miss documentation. (As an AIX expert I see things I feel are not needed, potentially dangerous for portability on AIX, yet dare not make (or discuss) changes - as I have no reference.
in short, documentation is weak at best.

many thanks for responses!


Error loading scipt depthmap.py

Error loading script: depthmap.py
Traceback (most recent call last):
File "D:\StableDiffusion\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\StableDiffusion\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\StableDiffusion\stable-diffusion-webui\extensions\stable-diffusion-webui-depthmap-script\scripts\depthmap.py", line 54, in
from inpaint.mesh import write_ply, read_ply, output_3d_photo
File "D:\StableDiffusion\stable-diffusion-webui\extensions/stable-diffusion-webui-depthmap-script/scripts\inpaint\mesh.py", line 16, in
from moviepy.editor import ImageSequenceClip
ModuleNotFoundError: No module named 'moviepy'
I use stable diffusion extension to install depthmap, but when after I apply and restart, it shows failed to load scipt. I know that I need to put moviepy in somewhere, but I not sure how to fix this. Really appreciate if anyone can help me.

Just restart the backend and it should auto install all the requirements.

I have the same error and after restarting the UI, the depth tab still does not appear.
Error loading script: depthmap.py Traceback (most recent call last):   File "/content/stable-diffusion-webui/modules/scripts.py", line 229, in load_scripts     script_module = script_loading.load_module(scriptfile.path)   File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module     module_spec.loader.exec_module(module)   File "<frozen importlib._bootstrap_external>", line 850, in exec_module   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed   File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/depthmap.py", line 40, in <module>     from midas.dpt_depth import DPTDepthModel   File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/dpt_depth.py", line 5, in <module>     from .blocks import (   File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/blocks.py", line 4, in <module>     from .backbones.beit import (   File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/backbones/beit.py", line 9, in <module>     from timm.models.beit import gen_relative_position_index ModuleNotFoundError: No module named 'timm.models.beit'

I have a similar error and after restarting the UI, the depth tab still does not appear.
Error loading script: depthmap.py Traceback (most recent call last): File "/content/stable-diffusion-webui/modules/scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/depthmap.py", line 40, in <module> from midas.dpt_depth import DPTDepthModel File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/dpt_depth.py", line 5, in <module> from .blocks import ( File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/blocks.py", line 4, in <module> from .backbones.beit import ( File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/backbones/beit.py", line 9, in <module> from timm.models.beit import gen_relative_position_index ModuleNotFoundError: No module named 'timm.models.beit'

No module named 'timm.models.beit'`

This is a different issue. Sounds like another possible conflict with another midas source folder..
What other extensions do you have active ? Try disabling other extensions to see if that works ..

This is a different issue. Sounds like another possible conflict with another midas source folder.. What other extensions do you have active ? Try disabling other extensions to see if that works ..

I am using Nolan's script for Colab. The other extensions are the webui tunnels, control-net, openpose, images-browser, and tagcomplete.
!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/stable-diffusion-webui/extensions/sd-webui-tunnels !git clone https://github.com/Mikubill/sd-webui-controlnet /content/stable-diffusion-webui/extensions/sd-webui-controlnet !git clone https://github.com/fkunn1326/openpose-editor /content/stable-diffusion-webui/extensions/openpose-editor !git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser !git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete

This is a different issue. Sounds like another possible conflict with another midas source folder.. What other extensions do you have active ? Try disabling other extensions to see if that works ..

I am using Nolan's script for Colab. The other extensions are the webui tunnels, control-net, openpose, images-browser, and tagcomplete.
!git clone https://github.com/nolanaatama/sd-webui-tunnels /content/stable-diffusion-webui/extensions/sd-webui-tunnels !git clone https://github.com/Mikubill/sd-webui-controlnet /content/stable-diffusion-webui/extensions/sd-webui-controlnet !git clone https://github.com/fkunn1326/openpose-editor /content/stable-diffusion-webui/extensions/openpose-editor !git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser !git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete

I was a bit fast to jump to conclusions, there has been a problem with another extension using an older version of midas that did not yet use the beit model.

No module named 'timm.models.beit'

Here it seems to be an issue with timm, this has come up several times when running on colab, please check the other colab issue reports for possible solutions, like reinstalling the correct version of timm.

Ok I have resolved the missing timm module and midas files.
After restarting the web-ui, I am getting the following errors. The depth tab still didn't show.
`Error loading script: depthmap.py
Traceback (most recent call last):
File "/content/stable-diffusion-webui/modules/scripts.py", line 229, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/depthmap.py", line 39, in
from stereoimage_generation import apply_stereo_divergence, overlap_red_cyan
File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/stereoimage_generation.py", line 29
match mode:
^
SyntaxError: invalid syntax
Error loading script: stereoimage_generation.py
Traceback (most recent call last):
File "/content/stable-diffusion-webui/modules/scripts.py", line 229, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 846, in exec_module
File "", line 983, in get_code
File "", line 913, in source_to_code
File "", line 228, in _call_with_frames_removed
File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/stereoimage_generation.py", line 29
match mode:
^
SyntaxError: invalid syntax`

The match/case syntax, otherwise known as Structural Pattern Matching, was only introduced in Python version 3.10.
You can update to python 3.10, or ..
You can remove that whole function (create_stereoimage) (line 5 to 42) from the file (stereoimage_generation.py), it is no longer used in the latest version.

Just restart the backend and it should auto install all the requirements.

Thank you for your help, but when I restarted the backend, it shows Installing all requirements for the WEBUI like usual. But it stuck at this step for really longtime. I know my cmd wasi going to install required package in your file, but it seems that my stable diffusion webui cannot install it automatically. Do you know how to fix this? Appreciate


support for set and arrays of str type

Feature request
Hi,
I found codes like following is not runnable currently:
@njit
def test_str_array():
    return np.array(['a'])

@njit
def test_str_set():
    return set(['a'])

Can we have supports for str array/set in the future?

Thanks for reply,
I did expect that we can't create an array directly because str type is variable-length in python. But is it possible to just offer some basic functionality like creating a fix-length unicode array, like "U5" type in numpy?


Diagnostic type not shown in line diagnostic

Description
All line diagnostic hover windows just say "Diagnostics:" and dont' specify the type (Warn, Error, Info)
Expected Behavior
Like in the docs

Actual Behavior

Neovim Built in Behavior

Details
Using pyright LS, latest neovim and lspsaga.

hmm because the image of readme is old. about the new behavior .it should be highlight.

maybe your colorscheme clear the highlight of lspsaga.
hi LspDiagnosticsFloatingError to check it.

Why did you remove the diagnostics type from the title? It's much more useful that way, is it possible to bring it back?

yep . when i implement jump to next/prev in neovim upstream in this weekend .i will refactor diagnsotic of lspsaga.

Great to hear!

@glepnir can you link to the upstream issue/PR so I could follow the progress? Thanks.

when i create pr I will link here :)

@glepnir any updates on this?

yep. will improve later.

@glepnir any updates on this?

@glepnir any updates on this?


Could not download file using ceph

Describe the bug
After uploading file, I tried to download file, tusd reports error like this:
NoSuchKey:
	status code: 404, request id: tx000000000000000022c0f-00605304fa-296a6-my-store, host id:

To Reproduce
Steps to reproduce the behavior:

tusc client http://<IP_ADDRESS>:18080/files kibana-7.6.2-linux-x86_64.tar.gz -r --chunk-size=5242880
Use browser to download file using the link returned by tusc

Expected behavior
File should be downloaded.
Setup details
Please provide following details, if applicable to your situation:

Operating System: Ubuntu
Used tusd version: I built myself
Used tusd data storage: Ceph
Used tusd configuration:

export AWS_ACCESS_KEY_ID=X9OGMOAFERCT6Y09GYV0
export AWS_SECRET_ACCESS_KEY=ALg6uCkPdM8PbqVlVsIuFN23ENCeJ2Ta1woVtW0F
export AWS_REGION=us-east-1
go build -o e-tusd  ./cmd/e-tusd
./e-tusd -s3-bucket=bluven \
    -s3-endpoint=http://<IP_ADDRESS>:32222 \
    -port=18080 \

PS: I add an extra endpoint to implement resumable download.

Used tus client library: tusc

I checked s3store's source code  and found that:
        parts, err := store.listAllParts(ctx, id)
	if err != nil {
		if isAwsError(err, "NoSuchUpload") {
			info.Offset = info.Size
			return info, nil
		} else {
			return info, err
		}
	}

This snippet was found in fetchInfo method which called listAllParts to get parts info, since upload was finished, an error was returned.
But here fetchInfo just checked NoSuchUpload error, while Ceph for some reason return an NoSuchKey error and this caused download failure.
Here is what I got from wireshark for listParts request:
Minio(yeah, I also tried on minio)

<?xml version="1.0" encoding="UTF-8"?>
<Error>NoSuchUpload<Message>The specified multipart upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed.</Message><Key>997d69dcbc198436b89510b97661ae82</Key><BucketName>test</BucketName><Resource>/test/997d69dcbc198436b89510b97661ae82</Resource><RequestId>166D5F4A1A38F015</RequestId><HostId>99b28da4-d263-4aed-bca3-fe265bdde85b</HostId></Error>

Ceph:
<?xml version="1.0" encoding="UTF-8"?><Error>NoSuchKey<BucketName>bluven</BucketName><RequestId>tx000000000000000022bb5-00605302c7-296a6-my-store</RequestId><HostId>296a6-my-store-my-store</HostId></Error>

Hope this will help you guys.

Thanks for the detailed report. You already found the source of the bug on your own :)
However, I do not see this as a problem in tusd but a bug in Ceph. The AWS S3 API (and apparently also Minio) return the correct NoSuchUpload error when referencing a non-existent multipart upload in a ListParts call. This should be fixed in Ceph, since we are not very keen on handling implementation-specific inconsistencies in tusd.
I found some reports in Ceph's bug tracker, where they corrected the error code for multipart uploads (e.g. https://github.com/ceph/ceph/pull/32771), so I think they would be open for fixing it on their end. Please contact the Ceph's developers and bring this issue to their attention.

Ok! Thanks


Extending the demo app to have parameterized routes

Describe the problem
I've often wished the Sveltekit demo app was a little more full-featured. Right now it has 3 pages with fixed URLs and that's it. I wish it had a route with path params in it, and even better, links between the same route using different params, to exercise afterNavigation.
Right now I'm dealing with a bug related to afterNavigation and live reload in the dev server, and having a more complete demo app would be a nice starting point for a repro case.
Describe the proposed solution
What if each TODO had its own detail page, and links to the previous and next todo.
Alternatives considered
Maybe instead of extending the existing TODO demo app, we should add a second "kitchen sink" demo app that exercises all the features?
Importance
nice to have
Additional Information
No response

That's funny, I added a similar change to my own fork here: https://github.com/johnnysprinkles/sveltekit_after_navigate_bug/commit/53dd01ad7f4f07cd1e5cfc31fb2782048ff258d1

I plan to use this is a starting point for future bug repro cases, was thinking abou trying to merge into create-svelte but maybe these things are better outside of the Demo app.

With a view to building a better example app, I think it's an idea to start with a list of features we want to demonstrate, and then work those back to figure out what real-world app we could build to demonstrate them.
I'm adding this list here and it will be updated as required:

Feature
Potential use-case

-
-

Hello @antony , I agree with you that adding a detailed page for the TODO app might be extending the demo more than it was originally intended.
I would like to bring my point of view to the discussion of a new demo app.
IMO a good demo project has 2 goals:

Sell the framework and have people interested in studying it further;
Be a good starting point / tutorial / cheat sheet for new users.

So I think in the case of SvelteKit that means the demo app should:

Showcase the main features of the framework;
Be clear, direct and easy to understand;
Always be compatible with the latest stable version;
Be plug and play (not require additional config or .env set up).

List of main Svelte/Sveltekit features that we might include in the demo app (not trying to be super detailed or complete here, just bringing some ideas):

Reactivity / bindings (bind:vale etc.)
layouts
filesystem routing (and dynamic routes)
stores
lifecycle management (onMount etc.)
svelte file syntax (including css scopes)
animations / transitions
typescript support
hooks
events (on:hover, on:click etc.)
SSR
pages vs endpoints
accessibility support

An idea for a new app that comes to mind is to:
Use a public API, that doesn’t require a key, to create a “showcase” website. E.g. use Nasa, The Met, PokeAPI to create a “planet explorer”, “art catalogue” or a “Pokedex”.
I thought about these APIs because they’re easy to use, public and not directly related to any big tech player like Microsoft or Google.
The demo could have a home page showing many items and a details page using dynamic routing, utilizing SSR, animations, stores etc.
A big downside to this approach is that if any of these APIs have a major change or starting using private keys the demo would need to be redone. Even though I don’t think that’ll happen it’s a possibility.
What are your thoughts about it?
Cheers ✌

I think what I actually want is a more full featured https://github.com/sveltejs/kit-sandbox, i.e. one that's more than just a skeleton and more than just the TODO demo app. I thought about https://github.com/sveltejs/realworld but that doesn't seem to work for me, I can sign up but can't create any blog postings.
I actually plan to make my own "kit-sandbox" based on a more full featured example, but that will live in my namespace independent of sveltejs. Feel free to resolve this issue.

Nobody has commented here since May 11, but I wish to raise the issue. The recent breaking changes to routes and use of data object would have really benefited migration by having more complex examples that had git commit logs of what was migrated/syntax change. Thank you.

Coming back to this, I'm not sure if I'd want the demo app to become more fully-featured than it is now. Where would that end? How would we add them to the demo in a way that makes sense? At what point this is just overlap with the tutorial which will touch on all these parts?
I'm thinking it's better to instead update the realworld repo to the newest version once we are done with the other things, and possibly also making that movies app.

Agree with that, we need more examples. I'll close this


Client Allocation Request for: dhtn

Client Allocation Questions
Core Information

Name: dhtn
Website / Social Media: dhtn.com, (@dhtn, Twitter)
Region: Oceania
DataCap Requested: 288 GiB
Addresses to be Notarized: f14142135623730950488016887
Notary Requested: Fenbushi Capital

This user’s identity has been verified through filplus.storage


Codec.from changes decoder behaviour

Assuming
val e = io.circe.Encoder.instance[Option[Int]] { _ => ??? } // fake, not used in this example
val d = io.circe.Decoder.decodeOption[Int]
val c = io.circe.Codec.from(d, e)
val h = io.circe.Json.obj().hcursor

is
scala> d.at("x").tryDecode(h)
val res0: io.circe.Decoder.Result[Option[Int]] = Right(None)

scala> c.at("x").tryDecode(h)
val res1: io.circe.Decoder.Result[Option[Int]] = Left(DecodingFailure at .x: Missing required field)

expected?
I'd expect c to behave exactly as d on all inputs to any of the Decoder methods. But it obviously doesn't. This is because it falls back to the default implementations of tryDecode etc instead of properly delegating all the methods to any potential overrides already baked into d.

Looks to me like the Codec.from method only overrides the 2 abstract methods from Encoder and Decoder, but in reality, we override various other methods from Encoder/Decoder all the time... we need to update that Codec.from implementation (and any other implementations of Codec for that matter) so that it correctly proxies ALL methods to the correct underlying Encoder/Decoder


ComponentGroup: Option to inherit bounds.

At the moment, each component group has a fixed size. The default should be to inherit from the group above somehow, so that if the one above changes, the new size is propagated somehow.

First cut of this is merged.


bug(MatSnackBar): snackbar duration does not work in tests when there is no component

Reproduction
Repro repo -> https://github.com/jdpearce/snack-test
Basically:
@Injectable({
  providedIn: 'root',
})
export class SnackbarService {
  constructor(private snackbar: MatSnackBar) {}

  open(): void {
    const ref = this.snackbar.open('This is a snackbar', 'Dismiss', {
      duration: 1000,
    });

    ref.onAction().subscribe(() => {
      console.log('snackbar dismissed with action');
    });
  }
}

and:
describe('snackbar service', () => {
  beforeEach(async () => {
    await TestBed.configureTestingModule({
      imports: [MatSnackBarModule, NoopAnimationsModule],
      providers: [SnackbarService],
    }).compileComponents();
  });

  it('should load the snackbar on and go away after 1 second', (done) => {
    const service = TestBed.inject(SnackbarService);

    expect(document.querySelector('simple-snack-bar')).toBeFalsy();

    service.open();

    expect(document.querySelector('simple-snack-bar')).toBeTruthy();

    setTimeout(() => {
      expect(document.querySelector('simple-snack-bar')).toBeFalsy('oh dear');
      done();
    }, 1000);
  });
});

(please forgive the setTimeouts, I tried doing this with fakeAsync as well but that doesn't work either)
Steps to reproduce:

ng test

Note that when the there is a component under test (app.component.spec.ts) everything works as expected, but in snackbar.service.spec.ts the snackbar doesn't go away.
Expected Behavior
I expect duration to be paid attention to when the snackbar is instantiated in a service under test.
Actual Behavior
The snackbar just sits there at the top of the screen until manually dismissed.

Environment

Angular: 11.2.3
CDK/Material: 11.2.2
Browser(s): Chrome, FireFox
Operating System (e.g. Windows, macOS, Ubuntu): macOS

This is a little odd, considering that the duration is basically a setTimeout around a MatSnackBarRef.dismiss call.

@jdpearce, I experienced something similar when I upgraded to Angular 15 - my snackbars would not automatically dismiss anymore. But, when I upgraded to rxjs from 6.6.3 to 7.4.0 it seems to have resolved it, but I can't say for sure that that's what resolved it. Does it still happen if you upgrade rxjs?


Loadbalancer still required if we use AGIC?

Wondering, if we still need the Loadbalancer that is getting created when cluster is provisioned if we use Application gateway Ingerss controller.

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

ID: 94bdeded-846e-526c-8ce3-77ee36ffa852
Version Independent ID: 7d768d5c-0318-25f1-38f8-7a2ee15c1c41
Content: Enable Ingress Controller Add-On for existing AKS cluster with existing Azure Application Gateway
Content Source: articles/application-gateway/tutorial-ingress-controller-add-on-existing.md
Service: application-gateway
GitHub Login: @Caya
Microsoft Alias: caya

@svangeti My apologies, you are correct that Azure Load Balancers are required when making an AKS cluster. You can optionally include a Kubernetes Load Balancer (different from an Azure Load Balancer) to your cluster, which was my confusion.
Because an Azure Load Balancer is required, you will have to use an Azure Load Balancer along with an AGIC.

@TravisCragg-MSFT - is it something you want to talk to product team? If we are using AGIC, why do we need LB unless there is a need.

@svangeti if I understand correctly the Load Balancer you are referring to is the Egress Load Balancer not the Ingress, for Ingress in this scenario will be the Application Gateway.
If you want to remove the Egress Load Balancer you need to use change the outboundtype to UDR on cluster creation, https://docs.microsoft.com/en-us/azure/aks/egress-outboundtype

I am closing issues that are older than a year in order to research and cross reference them individually. I am recording each issue and compiling a list of articles to review. If you feel there is an urgent need to address something related to this GitHub issue, please open a new issue and I will reply in the new thread. Please also reference this GitHub issue number in the new issue. Thanks. #please-close


CB-19113 Create Internal API for COD to orchestrate OS upgrade by instanceIds

Will this be part of the 2.65 CB release?

Will this be part of the 2.65 CB release?

No. 2.65 is branched a week ago, it will be part of 2.66.


Update New-SPStateServiceDatabase.md

Updated example.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-server/New-SPStateServiceDatabase.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Shading state uniform

Description
Reduce dependency on ShadingContext and ShadingSystem objects for accessing the ShadingSystem and consequently the ColorSystem. In its current form it is not device-friendly.
We introduce a self-contained pvt::ShadingStateUniform that maintains a proper
state and is independent of the ShadingContext and ShadingSystem. We add an opaque pointer to ShadingStateUniform in the ShaderGlobals structure.
Update uses of ColorSystem in opcolor.cpp to go through ShaderGlobals::shadingStateUniform.  Also update uses of m_commonspace_synonym and m_unknown_coordsys_error in opmatrix.cpp to go through ShaderGlobals::shadingStateUniform.
NOTE: The ShadingStateUniform is private and an OSL implementation detail and
does not change the public interface other than adding an opaque pointer to
ShaderGlobals.
Expect GPUs to have to export ShadingStateUniform to a GPU buffer to use with multiple kernel launches. Left for future PR.
Tests
All existing tests pass.
Checklist:

[x] I have read the contribution guidelines.
[x] I have previously submitted a Contributor License Agreement.
[x] I have updated the documentation, if applicable.
[x] I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
[x] My code follows the prevailing code style of this project.

@sfriedmapixar if a renderer wished to have a multiple ShadingStateUniform, it could.  Intent is current "state" of the ShadingSystem could be exported/copied to a device buffer.  When launching a kernel, that pointer would be passed through.  Then up to the renderer to manage ShadingStateUniform copies and their association with ShadingNetwork kernels(or the device side code they produce).
This PR is to make the change for the CPU side (so not GPU side only), and we don't quite have a "kernel launch" or even range based execution (although we left a hint of a new potential ranged based execute method in this PR).  As we don't have a place to pass in a ShadingStateUniform pointer yet, and even if we did we still need to stuff it someplace where OSL library functions can access it, and today that answer is ShaderGlobals.
ShaderGlobals just happens to be the top level pointer being passed into and through OSL shader functions, and most library functions.  ShaderGlobals already contains alot of pointers that aren't really shader globals.  What we "imagine" happening here is a future PR establishes a new way for a renderer to provide "real" shader global values (position, normal, etc.), and then the existing ShaderGlobals structure has those shader global values removed.  This would leave ShaderGlobals with a mix of UniformState, PerShadeState, and RendererState poointers.  It wouldn't really be ShaderGlobals anymore, but more of a "Context".  Unfortunately ShadingContext already exists as a CPU side object (we are working on reducing its direct responsibilities).  But imagine ShadingContext gets renamed LegacyShadingContext, and ShaderGlobals (after the globals are removed) becomes ExecContext or something similar.

Is this still awaiting further changes from your side?

It has been ready but stuck on CI issues. It should be ok now.


Workflows-Verify and Commit Screen dev.

Verify and Commit Screen Development for Litmus Portal Frontend.

close by this PR- https://github.com/litmuschaos/litmus/pull/1639