Cassandra Incremental Source Connector behaves as Bulk.

Stream Rector Version: stream-reactor-0.2.4-3.1.1
Confluent: confluent-3.2.0
Cassandra Version: apache-cassandra-3.9
connect-avro-distributed.properties:
bootstrap.servers=localhost:9092
group.id=connect-cluster
key.converter.schemas.enable=true
value.converter.schemas.enable=true
internal.key.converter=org.apache.kafka.connect.json.JsonConverter
internal.value.converter=org.apache.kafka.connect.json.JsonConverter
internal.key.converter.schemas.enable=false
internal.value.converter.schemas.enable=false
offset.storage.topic=connect-offsets
config.storage.topic=connect-configs
status.storage.topic=connect-status
offset.flush.interval.ms=10000
Connector Properties:
timeuuid-connector
connector.class=com.datamountaineer.streamreactor.connect.cassandra.source.CassandraSourceConnector
connect.cassandra.import.mode=incremental
connect.cassandra.key.space=test
connect.cassandra.contact.points=localhost
topics=test-timeuuid-topic
connect.cassandra.source.timestamp.type=timeuuid
name=timeuuid-connector
connect.cassandra.assigned.tables=orders
connect.cassandra.source.kcql=INSERT INTO test-timeuuid-topic SELECT * FROM orders PK created
timeuuid-connector-v1
connector.class=com.datamountaineer.streamreactor.connect.cassandra.source.CassandraSourceConnector
connect.cassandra.import.mode=incremental
connect.cassandra.key.space=test
connect.cassandra.contact.points=localhost
topics=test-timeuuid-topic-v1
connect.cassandra.source.timestamp.type=timeuuid
name=timeuuid-connector-v1
connect.cassandra.assigned.tables=orders
connect.cassandra.source.kcql=INSERT INTO test-timeuuid-topic-v1 SELECT * FROM orders PK created
Expected behavior: The Source Connector should work in the incremental mode for the given configuration.
Actual Output: The connector works as expected(INCREMENTAL) until some other connector is created(posted).
As soon as some new connector is created, all the existing connectors gets refreshed and dump all the existing data from their respective source to the subscribed topics(same as BULK).
Scenario:
Create Table orders:
create table orders (id int, created timeuuid, product text, qty int, price float, PRIMARY KEY (id, created))
WITH CLUSTERING ORDER BY (created asc);
INSERT INTO orders (id, created, product, qty, price) VALUES (1, now(), 'OP-DAX-P-20150201-95.7', 100, 94.2);
INSERT INTO orders (id, created, product, qty, price) VALUES (2, now(), 'OP-DAX-C-20150201-100', 100, 99.5);
INSERT INTO orders (id, created, product, qty, price) VALUES (3, now(), 'FU-KOSPI-C-20150201-100', 200, 150);
Topic data after creating timeuuid-connector: ./bin/kafka-avro-console-consumer --new-consumer --bootstrap-server localhost:9092 --topic test-timeuuid-topic --from-beginning
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/neha/application/confluent-3.2.0/share/java/kafka-serde-tools/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/neha/application/confluent-3.2.0/share/java/schema-registry/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
{"id":{"int":1},"created":{"string":"1c47bd90-bed3-11e7-8493-17c792b36d2a"},"price":{"float":94.2},"product":{"string":"OP-DAX-P-20150201-95.7"},"qty":{"int":100}}
{"id":{"int":3},"created":{"string":"1d4de2f0-bed3-11e7-8493-17c792b36d2a"},"price":{"float":150.0},"product":{"string":"FU-KOSPI-C-20150201-100"},"qty":{"int":200}}
{"id":{"int":2},"created":{"string":"1c49e070-bed3-11e7-8493-17c792b36d2a"},"price":{"float":99.5},"product":{"string":"OP-DAX-C-20150201-100"},"qty":{"int":100}}
Topic data after some new connector is created(say timeuuid-connector-v1 with the properties specified above):
./bin/kafka-avro-console-consumer --new-consumer --bootstrap-server localhost:9092 --topic test-timeuuid-topic --from-beginning
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/neha/application/confluent-3.2.0/share/java/kafka-serde-tools/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/neha/application/confluent-3.2.0/share/java/schema-registry/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
{"id":{"int":1},"created":{"string":"1c47bd90-bed3-11e7-8493-17c792b36d2a"},"price":{"float":94.2},"product":{"string":"OP-DAX-P-20150201-95.7"},"qty":{"int":100}}
{"id":{"int":3},"created":{"string":"1d4de2f0-bed3-11e7-8493-17c792b36d2a"},"price":{"float":150.0},"product":{"string":"FU-KOSPI-C-20150201-100"},"qty":{"int":200}}
{"id":{"int":2},"created":{"string":"1c49e070-bed3-11e7-8493-17c792b36d2a"},"price":{"float":99.5},"product":{"string":"OP-DAX-C-20150201-100"},"qty":{"int":100}}
{"id":{"int":1},"created":{"string":"1c47bd90-bed3-11e7-8493-17c792b36d2a"},"price":{"float":94.2},"product":{"string":"OP-DAX-P-20150201-95.7"},"qty":{"int":100}}
{"id":{"int":3},"created":{"string":"1d4de2f0-bed3-11e7-8493-17c792b36d2a"},"price":{"float":150.0},"product":{"string":"FU-KOSPI-C-20150201-100"},"qty":{"int":200}}
{"id":{"int":2},"created":{"string":"1c49e070-bed3-11e7-8493-17c792b36d2a"},"price":{"float":99.5},"product":{"string":"OP-DAX-C-20150201-100"},"qty":{"int":100}}
{"id":{"int":2},"created":{"string":"1c49e070-bed3-11e7-8493-17c792b36d2a"},"price":{"float":99.5},"product":{"string":"OP-DAX-C-20150201-100"},"qty":{"int":100}}
{"id":{"int":1},"created":{"string":"1c47bd90-bed3-11e7-8493-17c792b36d2a"},"price":{"float":94.2},"product":{"string":"OP-DAX-P-20150201-95.7"},"qty":{"int":100}}
{"id":{"int":3},"created":{"string":"1d4de2f0-bed3-11e7-8493-17c792b36d2a"},"price":{"float":150.0},"product":{"string":"FU-KOSPI-C-20150201-100"},"qty":{"int":200}}
The topic automatically gets the undesired complete set of data into the topic.

@nehabhardwaj01 If you are posting a new connector, i.e. with a different name? Is so then there is no stored offset to recover. This offset is used to form the upper and lower bounds. If no offset is found the connector will pull in all existing data and start incrementally pulling in new data.
Connectors are independent and don't know about each other.

Yes, I am posting a new connector but the creation of this new connector is affecting the existing connectors, and their topics as well.
Every time I create a new connector, the existing running connectors also gets refreshed with the complete data set from their respective sources.

so topic test-timeuuid-topic gets reload? Adding a new connector causes a rebalance amongst existing connectors but it shouldn't be reloading all the data.
I see you have the --from-beginning on the console consumer,  this will cause the consumer to read from the beginning everytime, so you see the originals. Can you run without this flag on the first connectors topic and post in a new connector?

I guess that is not an issue. We can see the message count continuously increasing in our topic queue. Even if we drop --from beginning, the problem still prevails.

Are new records being added to cassandra? Can you provide the logs including before you add a new connector? Also check the connect-offset topic to check if the offsets are being committed.

cqlsh:test> select * from orders;
id | created                              | price | product                 | qty
----+--------------------------------------+-------+-------------------------+-----
1 | 1c47bd90-bed3-11e7-8493-17c792b36d2a |  94.2 |  OP-DAX-P-20150201-95.7 | 100
2 | 1c49e070-bed3-11e7-8493-17c792b36d2a |  99.5 |   OP-DAX-C-20150201-100 | 100
3 | 1d4de2f0-bed3-11e7-8493-17c792b36d2a |   150 | FU-KOSPI-C-20150201-100 | 200
This is the initial dataset of the table, and no new rows are being added before/after creating connectors.

Create timeuuid-connector
connector logs for the first connector: timeuuid_connector.log
Let this connector run, and check
timeuuid_connector.log
timeuuid_connector_v1.log
timeuuid_connector.log

its topic data(i.e, test-timeuuid-topic), also let the consumer run, to continuously keep track of data

Create a new connector(i.e, timeuuid-connector-v1)
Connector logs after a new connector is created: timeuuid_connector_v1.log

Please notice the following statements in timeuuid_connector_v1.log
[2017-11-02 11:28:16,193] INFO Processed 3 rows for table test-timeuuid-topic.orders
[2017-11-02 11:28:16,206] INFO Processed 3 rows for table test-timeuuid-topic-v1.orders
However, test-timeuuid-topic already has its data, but after a new connector is created, 3 rows are again processed for this topic.

@nehabhardwaj01 Can you try with the latest release? The clients are backwards compatible with kafka 10.

For release 0.2.6 the bug persists.
But, as per my understanding, there's no such issue in release 0.3.

Please try 0.3.0. We recommended upgrading. The clients are compatible and you get classloader isolation with Kafka 0.11


Installing 'habitat_sim.sensors.noise_models.data' as data is deprecated, please list it in packages.     !!

Hello all;
I was getting following error while running : python setup.py install
Installing 'habitat_sim.sensors.noise_models.data' as data is deprecated, please list it in packages.
!!
############################
# Package would be ignored #
############################
Python recognizes 'habitat_sim.sensors.noise_models.data' as an importable package,
but it is not listed in the `packages` configuration of setuptools.

'habitat_sim.sensors.noise_models.data' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).

Please make sure that 'habitat_sim.sensors.noise_models.data' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).

You can read more about "package discovery" and "data files" on setuptools
documentation page.

And I totally couldn't handle it.
Can anyone please help me

What python version is this? We haven't seen this.

python 3.8.12
It's so strange, I wonder how to handle this.

Possibly a unique system issue, as we haven't seen this. Suggest you try again with a fresh conda env.
We'd need more information (e.g. system, install process, logs, etc...) to offer any advice if the issue persists.
@gudehhh666 we'll close this as stale if we don't hear from you in the next week or two.

Closing as stale and unverified.


[SPARK-20951][SQL] Built-in SQL Function FormatNumber validate input value

What changes were proposed in this pull request?
SQL Function FormatNumber should validate input value, if argument 2 < 0 throw TypeCheckFailure same as Hive's way . after this pr:
spark-sql> select format_number(12332.123456, -4);
Error in query: cannot resolve 'format_number(12332.123456BD, -4)' due to data type mismatch: Argument 2 of function FORMAT_NUMBER must be >= 0, but -4 was found; line 1 pos 7;
'Project [unresolvedalias(format_number(12332.123456, -4), None)]
+- OneRowRelation$

spark-sql>

How was this patch tested?
unit tests

Test build #77637 has started for PR 18175 at commit 655ec8f.

Test build #77637 has finished for PR 18175 at commit 655ec8f.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77637/
Test FAILed.

Merged build finished. Test FAILed.


Fix Image Issue on About Us Page

Fix #55
Fixed the image issue on the about us page which was caused due to my previous merged PR. You can now check out the about us page as well as the homepage. It happened due to the lack of hyperlinks in Navbar as well as on Footer. Without hyperlinks, most users don't know about these separate pages existing on the site.
Screenshot -

Homepage Screenshot

About Us Page Screenshot

Hey @mohityadav0903, can you please add GSSoC'22 Label with the appropriate level for this merged request.


How to get user wallet history?

Is there any optimal way (without scanning all account history) to get transfers list of user?

Steem-bot here on github, listens for transfers.
I'm baffled that no one jumps in to point this out, seems like everybody shrugs their shoulders as a major incompetence of the platform gets pointed out.

hey @kv-gits is there a reason why using getAccountHistory() is not appropriate for you?
For anyone else looking into getting user wallet data you can filter the results of getAccountHistory() to give you what you need. e.g
 steem.api.getAccountHistory('username', -1, 100, (err, result) => {
     let transfers = result.filter( tx => tx[1].op[0] === 'transfer' )
     console.log(transfers)
});

Is there any way to get a full history of the user wallet history? Using getAccountHistory(), it only fetches data of recent 30 days :(

hey @davetaeyang do you have an example you can show where you are only able to get recent 30 days? In my experience, I have been able to get all History back to account creation regardless of time.
You can adjust the starting point as necessary and limit excpets up to 10,000.
steem.api.getAccountHistory(account, from, limit, function(err, result) {
  console.log(err, result);
});

e.g Latest 100
 steem.api.getAccountHistory('sambillingham', -1, 100, (err, result) => {
     console.log(result)
});

e.g First 100
 steem.api.getAccountHistory('sambillingham', 100, 100, (err, result) => {
     console.log(result)
});

So from counts from the oldest transaction, unless negative?

@antonchanning Yes in that 0 is account_create and every action on your account will increment from there. However, you request data backwards in time from the from value or from -1 which represents the most recent action.

Presumably if I have, say, the last 10 transaction, and I want the next 10 last transactions, I have to get the id of the oldest one from first ten I got and count from there.

Thanks so much! @Sambillingham

yeah @antonchanning that is correct. 👍

How do we get it without using a node?

How do we get it without using a node?

node is a runtime for javascript -> you get your script written in javascript -> then it is run using node scriptName.js

Simply email Justin Sun and ask him which accounts are blacklisted today in his private database that his lawyers have called "equivalent to Frequent Flyer miles" and declared they can simply refuse to honour them.
Or don't, cos this whole "blockchain" is a blatant scam.

Thanks, it's not necessary anymore. I like your profile.


"Internal server error" after GitHub auth

Flow:

Being on https://starkast.wiki/geekbench_4
Clicking on "Authorize (GitHub)"
Internal Server Error

I get stuck at https://starkast.wiki/authorize/callback/geekbench_4?code=[some_hex]

Sentry issue: WIKI-E
KeyError: key not found: :ciphers
  from restclient/request.rb:163:in `fetch'
  from restclient/request.rb:163:in `initialize'
  from restclient/request.rb:41:in `new'
  from restclient/request.rb:41:in `execute'
  from restclient.rb:69:in `post'
  from /app/lib/services/authorize.rb:12:in `access_token'
  from /app/lib/controllers/authorize_controller.rb:17:in `block in <class:AuthorizeController>'
  from sinatra/base.rb:1635:in `call'
  from sinatra/base.rb:1635:in `block in compile!'
  from sinatra/base.rb:992:in `block (3 levels) in route!'
  from sinatra/base.rb:1011:in `route_eval'
  from sinatra/base.rb:992:in `block (2 levels) in route!'
  from sinatra/base.rb:1040:in `block in process_route'
  from sinatra/base.rb:1038:in `catch'
  from sinatra/base.rb:1038:in `process_route'
  from sinatra/base.rb:990:in `block in route!'
  from sinatra/base.rb:989:in `each'
  from sinatra/base.rb:989:in `route!'
  from sinatra/base.rb:1097:in `block in dispatch!'
  from sinatra/base.rb:1076:in `block in invoke'
  from sinatra/base.rb:1076:in `catch'
  from sinatra/base.rb:1076:in `invoke'
  from sinatra/base.rb:1094:in `dispatch!'
  from sinatra/base.rb:924:in `block in call!'
  from sinatra/base.rb:1076:in `block in invoke'
  from sinatra/base.rb:1076:in `catch'
  from sinatra/base.rb:1076:in `invoke'
  from sinatra/base.rb:924:in `call!'
  from sinatra/base.rb:913:in `call'
  from rack/flash.rb:124:in `call'
  from rack/protection/xss_header.rb:18:in `call'
  from rack/protection/path_traversal.rb:16:in `call'
  from rack/protection/json_csrf.rb:26:in `call'
  from rack/protection/base.rb:50:in `call'
  from rack/protection/base.rb:50:in `call'
  from rack/protection/frame_options.rb:31:in `call'
  from rack/logger.rb:15:in `call'
  from rack/common_logger.rb:33:in `call'
  from sinatra/base.rb:231:in `call'
  from sinatra/base.rb:224:in `call'
  from rack/head.rb:12:in `call'
  from sinatra/base.rb:194:in `call'
  from sinatra/base.rb:1958:in `call'
  from sinatra/base.rb:1502:in `block in call'
  from sinatra/base.rb:1729:in `synchronize'
  from sinatra/base.rb:1502:in `call'
  from rack/urlmap.rb:68:in `block in call'
  from rack/urlmap.rb:53:in `each'
  from rack/urlmap.rb:53:in `call'
  from rack/static.rb:149:in `call'
  from rack/session/abstract/id.rb:232:in `context'
  from rack/session/abstract/id.rb:226:in `call'
  from rack/ssl.rb:27:in `call'
  from raven/integrations/rack.rb:50:in `call'
  from puma/configuration.rb:225:in `call'
  from puma/server.rb:658:in `handle_request'
  from puma/server.rb:472:in `process_client'
  from puma/server.rb:332:in `block in run'
  from puma/thread_pool.rb:133:in `block in spawn_thread'


chore(release): Add a postbump lifecycle method to update the version…

… numbers in the .openshiftio/application.yaml during the release process

Pull Request Test Coverage Report for Build 56

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.774%

Totals

Change from base Build 55:
0.0%

Covered Lines:
23

Relevant Lines:
23

💛  - Coveralls


[bug] bpytop-git doesn't work

Describe the bug
bpytop-git doesn't work
To Reproduce
Steps to reproduce the behavior:

Install bpytop-git from pacstall
Run bpytop
See that it doesn't work.

Expected behavior
bpytop works
Screenshots
None
Desktop (please complete the following information):

OS: Pop!_OS 20.04
Version: 1.3 Amaranth (develop)

Additional context
Here is the install logs
❯ sudo pacstall -I bpytop-git
bpytop-git.pacsc 100%[========>]     452  --.-KB/s    in 0s
Do you want to view the pacscript first [y/N]
Do you want to edit the pacscript [y/N] y
[+] INFO: Sourcing pacscript
[+] INFO: Running checks
[+] INFO: URL exists
[+] INFO: Installing dependencies
(Reading database ... 257680 files and directories currently installed.)
Preparing to unpack .../python3-lib2to3_3.8.10-0ubuntu1~20.04_all.deb ...
Unpacking python3-lib2to3 (3.8.10-0ubuntu1~20.04) over (3.8.2-1ubuntu1) ...
Preparing to unpack .../python3-distutils_3.8.10-0ubuntu1~20.04_all.deb ...
Unpacking python3-distutils (3.8.10-0ubuntu1~20.04) over (3.8.2-1ubuntu1) ...
Setting up python3-lib2to3 (3.8.10-0ubuntu1~20.04) ...
find: '/usr/lib/python3.7/lib2to3': No such file or directory
find: '/usr/lib/python3.7/lib2to3': No such file or directory
find: '/usr/lib/python3.7': No such file or directory
Setting up python3-distutils (3.8.10-0ubuntu1~20.04) ...
find: '/usr/lib/python3.7/distutils': No such file or directory
find: '/usr/lib/python3.7/distutils': No such file or directory
find: '/usr/lib/python3.7': No such file or directory
[+] INFO: Retrieving packages
Checking object directories: 100% (256/256), done.
[+] INFO: Installing
[+] INFO: Symlinking files
[+] INFO: Storing pacscript

Running bpytop
❯ bpytop
ERROR!
No module named 'psutil'

Install required modules!

Maintainer: [@WRM-42]

Then @WRM-42 needs to fix it

I will fix this problem later today, I don't have access to my computer right now.


Feat: ModelController

New Feature
ModelController

Create a new ModelControllerBase type to easily manage django models. Something similar to DRF ModelViewSet

from ninja_extra import api_controller, ModelControllerBase, http_post
from .models import Post

@api_controller('/posts')
class PostController(ModelControllerBase):
    model = Post
    retrieve_schema = schemas.PostSchema
    create_schema = schemas.CreatePostSchema
    update_schema = schemas.PatchPostSchema

    @http_post('/', response={201:  schemas.PostSchema}
    def create_item(self, data: schemas.CreatePostSchema):
       # this will override default create_item endpoint
       return data.dict()

api = NinjaExtraAPI(title='ModelController Test')
api.register_controllers(PostController)

Nice feature.
Interestingly I wrote a similar thing, it will automatically scan Django-apps and create Nestjs-CRUD  like APIs for each models. It will create schema based on Meta configurations.
@api_controller("events", permissions=[BaseApiPermission])
class EventControllerAPI(BaseAdminAPIController):
    def __init__(self, service: EventService):
        super().__init__(service)
        self.service = service

    class Meta:
        model = Event
        exclude = ["update_time", "create_time"]

    @http_get("/crud_get_objs_all", summary="crud_get_objs_all unittest")
    @paginate
    async def get_objs_all_with_filters(self, request, maximum: int = None, **filters):
        await self.service.dummy_biz_logics()
        await self.service.demo_action(data="running /get_objs_all_with_filters")
        return await self.service.get_objs(maximum, **filters)

I spend some time and put those codes together, still in early stage, comments and advices are highly appreciated.
https://github.com/freemindcore/django-api-framework

Auto Async API generation for all django models, configurable
Domain/Service/Controller base structure for better code organization
Base Permission class and more to come

Thanks

WOW, this is awesome. I have checked out the https://github.com/freemindcore/django-api-framework. What you have build was the initial idea for django-ninja-extra before I branched of to build ellar. If you enjoy NestJS, then you will definitely enjoy ellar.
For this feature, I intend to go with DRF Serializer approach,
having Schema fields defined in Meta in fields, exclude, read_only and write_only attributes. That way, CRUD schema will be fully defined.
I will still look deep into your project or even contribute to it. I love the idea. Good job!!

Great! Looking forward to your advices or contributions.
Now I get to understand why you started ellar project. I love ellar too. It is a huge effort writing it from scratch on your own. Python is becoming more and more popular in server-side web development, I am sure Ellar sort of new framework will become a super star in the future!
Please keep up the good work!

Codecov Report

Merging #27 (1df8b46) into master (790eede) will decrease coverage by 8.20%.
Report is 2 commits behind head on master.
The diff coverage is 35.71%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@             Coverage Diff             @@
##            master      #27      +/-   ##
===========================================
- Coverage   100.00%   91.80%   -8.20%
===========================================
  Files           45       50       +5
  Lines         1923     2197     +274
===========================================
+ Hits          1923     2017      +94
- Misses           0      180     +180

Files Changed
Coverage Δ

ninja_extra/__init__.py
100.00% <ø> (ø)

ninja_extra/schemas/response.py
100.00% <ø> (ø)

ninja_extra/controllers/model/builder.py
15.95% <15.95%> (ø)

ninja_extra/controllers/model/service.py
41.66% <41.66%> (ø)

ninja_extra/controllers/base.py
98.01% <55.55%> (-1.99%)
:arrow_down:

ninja_extra/controllers/model/schemas.py
66.66% <66.66%> (ø)

ninja_extra/controllers/__init__.py
100.00% <100.00%> (ø)

ninja_extra/controllers/model/__init__.py
100.00% <100.00%> (ø)

ninja_extra/controllers/model/interfaces.py
100.00% <100.00%> (ø)

ninja_extra/controllers/route/__init__.py
100.00% <100.00%> (ø)

... and 1 more


Rework PaginatedTable to always include a "View Data" button

Acceptance criteria:

Create flexiable ViewDataButton component and remove e.g. MsgViewButton.
Rework the PaginatedTable component to include ViewDataButton.
Verifiy that everything works.

Fixed in PR #175


How can I break a long Jinja if expression???

How can I break a long Jinja if expression???
{% if request.GET.filter == 'aaaaaaaa' or bbbbb.paginator.num_pages > ccccc.paginator.num_pages %}

which more than 80 words.

just like in python, there are many ways of doing it... not sure what kind of answer you expect from us there.

I have tried
{% if request.GET.filter == 'aaaaaaaa' or \
bbbbb.paginator.num_pages > ccccc.paginator.num_pages %}

and
{% if request.GET.filter == 'aaaaaaaa' or
bbbbb.paginator.num_pages > ccccc.paginator.num_pages %}

It doesn't work

😭

I'd usually say I'm happy to accept a PR, but there are so many behaviors with whitespace right now that I'm not confident about accepting changes to this part of the lexer. I don't really see this as a pressing issue.

I try to control the count of characters on each line for good readability. then I use the "as" expression and it has been resolved now.

Tbh, if you have a lot of logic, the Jinja isn't usually the best place for it.  I would work on the logic up a level (view level) and pass it a flag of some type to the template to check


fix(ocm-backend): handle a case when there are no nodes

The OCM backend fails to parse a cluster when there is a cluster with no nodes (for example Jerry in operate-first). This PR fixes this issue. Update tests to correctly test for this condition.

/cc @tumido

/close in favor of #404


[BEAM-1402] Makes TextIO comply with PTransform style guide

Migration guide: TextIO.Read.from() -> TextIO.read().from; TextIO.Write.to() -> TextIO.write().to()
Also converts both to AutoValue and moves some utility classes to upper level to declutter TextIO.java.
Each individual commit should be trivial to review.
R: @reuvenlax

Please, please no churn on FileBased-Write transforms while I'm still hacking on FileBasedSink.

Hmm ,well, that's unfair. This is a lot of work, too.

This PR doesn't appear to touch the FileBasedSink base class.
On Apr 28, 2017 9:37 PM, "Daniel Halperin"<EMAIL_ADDRESS>wrote:

Hmm ,well, that's unfair. This is a lot of work, too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/beam/pull/2774#issuecomment-298139029, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AUGE1aed1dSRcxJT5UFH_gu26I5eLGN5ks5r0pRDgaJpZM4NMGeb
.

Changes Unknown when pulling 03b5df3f3094a68b9100a30a1e1908c2c17772a6 on jkff:text-style into ** on apache:master**.

retest this please

Coverage increased (+0.007%) to 69.822% when pulling 99547e9b2dfabfa68c281909f5f9fce70ca15eef on jkff:text-style into f5e3f5230af35da5a03ba9740f087b0f22df6dca on apache:master.

retest this please

retest this please

Coverage increased (+0.02%) to 69.836% when pulling 674336bd4121dd1178c4152886623a9091c8763c on jkff:text-style into 14d60b26e7e9b8a578038599341e66ccd99d012b on apache:master.

Coverage increased (+0.02%) to 69.832% when pulling 674336bd4121dd1178c4152886623a9091c8763c on jkff:text-style into 14d60b26e7e9b8a578038599341e66ccd99d012b on apache:master.

Here too, the test failures are flakes - it passes mvn verify -Prelease locally.

retest this please

Coverage increased (+0.02%) to 69.832% when pulling 674336bd4121dd1178c4152886623a9091c8763c on jkff:text-style into 14d60b26e7e9b8a578038599341e66ccd99d012b on apache:master.

retest this please

Coverage increased (+0.01%) to 69.824% when pulling 674336bd4121dd1178c4152886623a9091c8763c on jkff:text-style into 14d60b26e7e9b8a578038599341e66ccd99d012b on apache:master.

Since Reuven is traveling
R: @jbonofre
(though if you approve, please don't merge: I'll merge myself, upon coordinating with @dhalperi)

Coverage increased (+0.03%) to 70.412% when pulling 541611fcb872ccab53a35f31f3403f96c463f6f9 on jkff:text-style into c2a5557839c6146e5a3f386172d4d068c67ac656 on apache:master.

retest this please

R: @jbonofre

Coverage increased (+0.03%) to 69.868% when pulling<PHONE_NUMBER>7bf5808f02d6d605fea5d82483e51d on jkff:text-style into eec903fb538eb9c3d41d737dba94a41f7c1c469e on apache:master.


Preserve log order

Related to #68

The order of the logs when the timestamp is identical is not the same as the log output. Eg the ip audit logs search for: 264553827 AND @fields.service:"InstructionProcessorGateway-Audit

@dpb587 said:

I'm fairly certain this is unavoidable without modifying the log messages in some way (i.e. more precise timestamps, or injected ordering by the log writer). The log messages are independently sent into the system and may be parsed and indexed out of order. The timestamp field becomes the only persistent ordering element and when they are the same, there is no guarantee of ordering.

Closed as Won't Fix due to project being retired to the CityIndex Attic.


Implement IBU's calculations by Garetz

I removed outdated branch with an attempt to implement this. First of all, we need to find approved source with Garetz method description.

Something like this one.
https://gist.github.com/krutilin/ea4f4c74a0d9aaf1e11f7814b54476d1.js


Buttons stop working in generator modes.

I have ver 0.1.35. when entering random or euclidian generator from step screen, all sequencer buttons stop to response except function buttons. Definitely a bug here.

Not really a bug, the generate page is a modal page, meaning it captures all input. What buttons would you have expected to keep working? Play/stop? Other?

At least start stop buttons and the ability to leave generative mode back to normal would be great.

You can leave the page by either using COMMIT or REVERT in the context menu (hold SHIFT + PAGE key).

But there is a reason the generators are not yet documented. It's a sort of unfinished feature for a long time now. See #12

Closing this, as it's not a bug per se.

You can leave the page by either using COMMIT or REVERT in the context menu (hold SHIFT + PAGE key).

great. thank you


Is it safe to mutate string values after parsing?

get_string returns a const char *, is it safe to cast that to a char *? It helps me when working with certain APIs that expect a null-terminated C string

It returns a pointer to a location on the string buffer. If you keep the length the same (in bytes), you can probably mutate safely, but not if you change the length.
Otherwise, just copy the string.

I am going to close this.


Upgrade package versions in renv to resolve gcc errors during environment setup on Ubuntu

Describe the bug
Using Ubuntu 22.04
I'm trying to use renv to generate the reproducible environment to run the R notebooks in. When using renv::restore() to install the packages according to renv.lock, I run into several packages that will not compile due to the same error:
error: format not a string literal and no format arguments [-Werror=format-security]
tl;dr copious googling led me here: https://www.github.com/RcppCore/Rcpp/issues/1287
It looks like this issue has been fixed for many packages right around the time that renv.lock was last updated. I think that the RSPM repo gets new versions of packages a little slower than CRAN, so those packages in particular may not have picked up this fix.
I'm new to using renv, and I didn't create the environment - is there an easy way to upgrade packages and recreate the renv files in a way that won't trip us up? @kheal
To Reproduce
Steps to reproduce the behavior:

Be using Ubuntu sometime since like 2013 or so
Run renv::restore() in notebook repo directory
Eventually one of the packages (so far all the bad ones have been from RSPM) won't compile, installation aborts

Expected behavior
Packages should install into renv directory, using versions and repos specified by the lockfile.

Ooofta, this is annoying.  I can't recreate locally bc I'm not an ubuntu user.
Can you try a couple things first?

initialize an empty renv
install Rcpp with exact version noted in lock file
install one of the problematic packages with exact version noted in lock file

If you get the same error as you note, try this:

initialize an empty renv
install Rcpp (newest version from CRAN)
install one of the problematic packages (newest version from CRAN)

A fix I can think of is for me to re-generate a lock file after updating all the packages to their newest release.

Hi @bmeluch  - can you try checking out this branch: https://github.com/microbiomedata/nmdc_notebooks/tree/50-upgrade-package-versions-in-renv-to-resolve-gcc-errors-during-environment-setup-on-ubuntu and running renv::restore() on your system?  If that works for you I'll put in a PR to make those changes.  renv doesn't really play well with jupyter notebooks, so I've made a little work around to help us out.

initialize an empty renv
install Rcpp with exact version noted in lock file
install one of the problematic packages with exact version noted in lock file

Same error

initialize an empty renv
install Rcpp (newest version from CRAN)
install one of the problematic packages (newest version from CRAN)

This worked! which means that

Hi @bmeluch - can you try checking out this branch: https://github.com/microbiomedata/nmdc_notebooks/tree/50-upgrade-package-versions-in-renv-to-resolve-gcc-errors-during-environment-setup-on-ubuntu and running renv::restore() on your system? If that works for you I'll put in a PR to make those changes. renv doesn't really play well with jupyter notebooks, so I've made a little work around to help us out.

this worked also! they all installed, no problems. Thank you. renv does not like jupyter notebooks indeed.


Support wrap for attributes

Currently all attributes of a tag are written in the same line.
We should wrap the attributes at a certain point. This can be the maximum line length (prettier's printWidth) and / or a configurable number of attributes.
So if we configure "maxAttributesBeforeWrap": 4, attributes should be wrapped if there are more than 4.
The name of the option should be improved 😄, please suggest another one.

@rdhar: What's your opinion about how I could implement wrapping?
I have some options:

Wrap only attributes if there are more then 2 attributes

Should be configurable
The option printWidth is ignored completely

Wrap with the printWidth option and consider the hole line

Could be hard to implement
Need to consider printWidth also for everything else

My last thoughts were to create a function that counts all attributes and if there are more than X, then wrap. But this would mean that I cant implement printWidth anymore (I think that printWidth is in generally not a good thing for pug 🤔 )

Thanks for your patience, @Shinigami92.
If I go off a tangential example for a bit, here's an extract of TypeScript.
View TypeScript code extract...
class Student {
    fullName: string;
constructor(
    public firstName: string,
    public middleInitial: string,
    public lastName: string,
    ) {
        this.fullName = firstName + ' ' + middleInitial + ' ' + lastName;
    }
}

Where the lines of interest are in the comma-separated list of public .... Notice, in this form, Prettier formats them to be on 3 separated lines. Now rename/refactor [F2] them to have tiny names, e.g., fN, mI and lN. Notice that, this time, Prettier formats them to be all on one line.
From my experience, Prettier tries its best to squeeze everything together on one line, unless it exceeds 81 characters (at least in TypeScript's case), at which point everything gets their own line to respect printWidth.
Bringing it closer to home, let's a take a look at some HTML.
View HTML code extract...
<img src="sample-image-of-an-uneventful-event-12.jpg" width="500" height="600" />

Notice how Prettier gives each of the attributes their own line. Now, replace '12' with just '1' to observe the lines combine together into one since they're less than or equal to 81 characters in total.
I guess you can see where I'm getting at by now 😅. For maximum Prettier compatibility and consistency with other languages, printWidth should be respected when wrapping attributes exceeding a certain character limit, rather than the number of attributes themselves. Once again, personally, I'd be happy to happy to wrap anything more than 2 attributes into new lines automatically, but I don't think that's the preferred approach in general.
Fortunately, Pug makes it easy to have neat, multiline attributes separated by nothing more than spaces, as laid out in their docs. As for any one attribute that exceeds 81 characters by itself (e.g., a really, really long image name), Prettier seems happy to leave it on one line for HTML, so there's at least no worry about force-wrapping these kind of longer lines into new lines.
Only the faintest of silver lining to the cloud(!)

I'm so finished right now
Will release an alpha.7 for testing
If it's is stabel, I think I can release an RC.1 ^^

So sorry for the hassle but, really well done! 👍 🎉

1.0.0-alpha.7 is now released
if you want you can test the **** out of it XD
I will go to bed 😴


Remove output from notebooks before passing file to LLM

When processing Jupyter notebooks, we need to remove output from the cells. Therefore, in the file _ai_github_utilities.py, in the function create_or_modify_file, after getting the file from the repository, before the variable file_content_instruction is set, in case it is a .ipynb file, it should be processed by this code snippet:
notebook_content = json.loads(file_content)

# Iterate through the cells and erase the outputs
for cell in notebook_content['cells']:
     if cell['cell_type'] == 'code':
         cell['outputs'] = []
         cell['execution_count'] = None

file_content = json.dumps(notebook_content, indent=1)

(Source)
git-bob solve

Modify only the file _ai_github_utilities.py .
git-bob solve

git-bob solve


Move data_post hook timer into transaction object

The delay between the ending dot and when the message is accepted is a key statistic as most senders do not honour the RFC timer of 5 minutes for this phase, typically most senders timeouts are much shorter, so the delay must be kept to a minimum.
I've moved the recording and storage of this to the transaction object as it seemed the more logical place to keep it and so that this can be used later by a plugin e.g. one that logs the delay to a database.

+1 for moving a transaction oriented timer into transaction.js.


The Clinical Content White Paper provided for this KNART is a draft, not final, document

https://github.com/OSEHRA/vha-kbs-knarts/blob/0d1af566d395b90cb6882211109139f98a3f2229/content/rheumatology_rheumatoid_arthritis/b14/CDSK_KRprt_OS_B14RA.xml#L35

In looking into this, it seems like a holdover that affects about 73 KNARTs. I am in the process of changing this globally and then revalidating.

Note: this also affects composites, though including the status element seems redundant in all contexts I've seen.


fix modbus master exemple

Summary
The modbus master exemplo stop to work before the PR #6038
Impact
Fix modbus master example.
Testing
# config target to use the mosbus master example
$tools/configure.sh stm32f401rc-rs485:modbus_master

# run diagslave app to start a modbus slave
$ sudo diagslave -a 10 -b 38400 /dev/ttyUSB0

# on target execute the modbus master exemple
nsh> modbusmaster
Initializing modbus master...
Creating poll thread.
Sending 100 requests to slave 10
mbmaster_main: Exiting poll thread.
Modbus master statistics:
Requests count:  100
Responses count: 100
Errors count:    0
Deinitializing modbus master...

@JorgeGzm more error need to be fixed:
https://github.com/apache/nuttx/actions/runs/7923388468/job/21633084117?pr=11698
BTW, please fix this warning:
Error: /home/runner/work/nuttx-apps/nuttx-apps/apps/examples/modbusmaster/mbmaster_main.c:300:1: error: Missing blank line after comment

What was the make command that you used to show the error message ?
make -j -Wall ?


remove redundant volatile on initialized

What is the purpose of the change
init(org.apache.dubbo.config.ReferenceConfig#init) is a synchronized method, and field initialized only access in init, so volatile on initialized is redundant.
Brief changelog
remove redundant volatile flag on initialized
Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #9926 (0c9bab5) into master (3a8e5e6) will decrease coverage by 0.87%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #9926      +/-   ##
============================================
- Coverage     60.92%   60.04%   -0.88%
+ Complexity      449      446       -3
============================================
  Files          1100     1100
  Lines         44557    44557
  Branches       6486     6486
============================================
- Hits          27145    26755     -390
- Misses        14446    14852     +406
+ Partials       2966     2950      -16

Impacted Files
Coverage Δ

.../java/org/apache/dubbo/config/ReferenceConfig.java
69.95% <ø> (-0.50%)
:arrow_down:

...ookeeper/ZookeeperDynamicConfigurationFactory.java
0.00% <0.00%> (-66.67%)
:arrow_down:

...gcenter/wrapper/CompositeDynamicConfiguration.java
0.00% <0.00%> (-63.34%)
:arrow_down:

...pport/zookeeper/ZookeeperDynamicConfiguration.java
0.00% <0.00%> (-60.00%)
:arrow_down:

...fig/configcenter/TreePathDynamicConfiguration.java
31.42% <0.00%> (-54.29%)
:arrow_down:

...a/org/apache/dubbo/rpc/filter/AccessLogFilter.java
28.35% <0.00%> (-50.75%)
:arrow_down:

.../dubbo/metadata/report/MetadataReportInstance.java
12.50% <0.00%> (-40.63%)
:arrow_down:

...va/org/apache/dubbo/rpc/support/AccessLogData.java
53.16% <0.00%> (-37.98%)
:arrow_down:

.../configcenter/support/zookeeper/CacheListener.java
0.00% <0.00%> (-32.44%)
:arrow_down:

...ng/transport/dispatcher/all/AllChannelHandler.java
62.06% <0.00%> (-27.59%)
:arrow_down:

... and 41 more

Continue to review full report at Codecov.

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


Format PatternMatchSequence

Implement formatting of [a, b] match sequences.
match x:
    case [1, 2]:
        ...

This should probably be similar to list formatting.

@MichaReiser


FEATURE REQUEST: LAMP compatible version of CSS

A LAMP ( Linux, Apache, MySQL, PHP) version of CSS would be truly desirable!
The thought of using CSS on an inexpensive hosted VPS would be a big boon for MSPs/VARs that want to provide more conformity, centralization, ease of use, and control over a custom feed then services such as MyGet provide. MSPs/VARs could use one central source for clients that don't have the resources to host an internal server. (Distribution rights observed.) Could also be used for a tiered trickle down scenario though I don't believe this is built in by design at the moment. If package hand off (https://github.com/chocolatey/simple-server/issues/16) was added and configurable, theoretically packages could be created and tested from one server, pushed out to a private tier 1 repository, then pushed down to tier 2 repositories.

It's a good request. There are options available for that now. https://chocolatey.org/docs/how-to-host-feed (look at all known options).

Unfortunately Chocolatey Simple Server is not going to head this route, as indicated in the last email there are options for that.


Fixing bucket pool put logic

Coverage decreased (-0.01%) to 78.902% when pulling d0ff4b2338edb5b7f8f73d3ff203f61fcc592465 on martinm-fix-bucketpool into e4a21995a2a4ac688c4ab3e3027e949c5e1094f5 on master.


arabic laguage problem get ???? any help please

Unfortunately this lib doesn't have support for other characters but hardcoded in GBK, you will have to fork (and contribute to support multiple characters is very much appreciated) and modify it as your need, simply replace "GBK" (in PrinterService.java) to your desired character should do the trick!


Is possible setting the touch bar size?

It the size is too small for the large display. Thanks!

Duplicate of #45


Can't find variable: document

I am getting this strange issue:

"dependencies": {
"firebase": "^5.4.0",
"geofirestore": "^2.1.1",
"geolib": "^2.0.24",
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-elements": "^0.19.1",
"react-native-fbsdk": "^0.7.0",
"react-native-firebase": "^4.3.8",
"react-native-google-signin": "^1.0.0-rc3",
"react-native-maps": "^0.21.0",
"react-native-material-textfield": "^0.12.0",
"react-native-navigation": "^1.1.480",
"react-native-vector-icons": "^5.0.0"
}
import  firebase from 'firebase';
import 'firebase/firestore';
import { GeoFirestore } from "geofirestore";
I can't figure out how to resolve this issue. Any help would be appreciated.
Thanks

@CoderHuzaifa a sample project would be appreciated, I won't be able to troubleshoot without one 😅

I solved this issue by downgrading to firebase 5.0.3
yarn add<EMAIL_ADDRESS>I used these imports statements:

@CoderHuzaifa which version of firebase were you on?

Errr, those import statements seem off/odd. I'd retry it as such.
import * as firebase from 'firebase/app';
import 'firebase/firestore';
import 'firebase/auth';

Otherwise I'm happy to hear you've got it working (now), mind you I need to find out why any issues popped up with 5.4.0.


Add Save (and continue) button to the project form.

Signed-off-by: Jason Dossett<EMAIL_ADDRESS>

Codecov Report

Merging #631 into master will increase coverage by <.01%.

@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
+ Coverage   99.64%   99.64%   +<.01%
==========================================
  Files          42       42
  Lines        1126     1129       +3
==========================================
+ Hits         1122     1125       +3
  Misses          4        4

Impacted Files
Coverage Δ

app/controllers/projects_controller.rb
98.7% <100%> (+0.02%)
:white_check_mark:

Continue to review full report at Codecov.

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


update descriptive text for Q5 to demo changes

Great job! I have one suggestion - like professor said in class "don't make me think", you could demo your changes if you add descriptive text For example, to demonstrate that the text is 1.5rem, you could write "I'm 1.5rem"  instead of "test".  You could add similar demos to other questions as well.

Sorry, I accidentally closed this pull request. Reopening again


gradient_acc_steps parameter

Hi,
Thanks for sharing the implementation of "Matching the Blank" paper. I just wanted to know what is the benefit of changing gradient_acc_steps parameter? Does it make training/convergence faster?
Thanks and regards

gradient_acc_steps = 2 will wait for 2 batch passes before backpropagating gradients. Allows you to effectively increase batch size by 2 while keeping GPU memory fixed


feat: add service api documentation

This update makes use of https://github.com/blueswen/mkdocs-swagger-ui-tag to visualize OpenAPI Documents.


Question: What's the difference between version 1 and 2 of this package?

What's the difference between version 1.x.x and 2.x.x of this package?

@elie222

v1.0.9 Doesn't use imports and is compatible with older meteor versions lower then 1.3.1
v2.0.0 and v2.0.1 switched to using imports and only supports Meteor v1.3.1 or higher, package still only supported flow-router and iron-router.
v2.1.0+ switched to being router agnostic and this is where the removal of using router name occurred. Package switched to using document.title

You could use v2.0.1 and be safe to use import { analytics } from "meteor/okgrow:analytics" and still get the name event.


influx repl does not work when organization is specified via name instead of org id.

Steps to reproduce:

Initialize an influxdb OSS instance locally (I use OS X), create an organization and a bucket. For my case, I did the initialization using the http://localhost:9999 UI.
While the OSS is running, try to access the database using influx repl command:

➜  influxdb git:(master) influx repl -o "my-org"
Error: Unable to find organization: organization not found.

Go to the web UI, find the organization Id for "my-org", try again access the database by using the organization id:

➜  influxdb git:(master) influx repl --org-id 047e8606a2268000
>

This works.
Expected behavior:
The -o flag with the organization name should work the same as the organization id.
Actual behavior:
Only organization id works.
Environment info:

System info: Run uname -srm and copy the output here
Darwin 19.0.0 x86_64
InfluxDB version: Run influxd version and copy the output here
2.0.0 (cde064b)
Note: influxd version does not work:

➜  influxdb git:(master) influxd version
Error: unknown command "version" for "influxd"
Run 'influxd --help' for usage.

@yzhang1991 Try leaving out the double quotes when passing the org name.
influx repl -o my-org

@sanderson I tried, it did not work:

You also need to pass your token. You can do that with a flag on the influxd repl command or you can set the INFLUX_TOKEN environment variable.
Pass token with a flag
influx repl -o my-org -t <yourauthtoken>

Set token an environment variable
export INFLUX_TOKEN=<yourauthtoken>
influx repl -o my-org

I can confirm this issue in latest influx version (Influx CLI 2.0.6 (git: 4db98b4c9a) build_date: 2021-04-29T16:48:12Z) :  When you use a string for org, it doesnt work, when you use an org-id, it works.
$ influx dashboards --org-id 2e66627c312f1afa
ID      OrgID   Name    Description     Num Cells

$ influx dashboards --org default
Error: At least one of org, org-id, or id must be provided.
See 'influx dashboards -h' for help

Btw, the org is in active configuration, so it should not even be asked :
$ influx config ls
Active  Name            URL                             Org
*       default-config  http://<IP_ADDRESS>:8086      default

Transferring to the new CLI repo


PurchaseAsync crashes without exception in Release mode on iOS.

Hi!
Bug Information
We've implemented the procedure to make an IAP in our viewmodel and it works great on Android where we have successfully published an alpha-version of the app och purchased products without any problems.
On iOS however we are trying to get or app and IAP-product approved by Apple with the same code. When debugging the code (same code as for android ofc) we can go through the purchase-procedure in a sandbox-environment which is great.
So we archived and sent our IPA to apple for review and got rejected because the app crashed when they tried to purchase a product, without any message. This is how we found out that purchasing a product doesn't work in release. Please see code below.
We know we "get past" the ConnectAsync call and we know we connect successfully through adding DialogService.ShowMessage all over the place but we never see Dialog box in the catch-block. And the app just crashes without any output. This suggests that the PurchaseAsync function fails without throwing an exception? Is this possible? We don't understand how/why the catch-block doesn't hit.
Version Number of Plugin: <IP_ADDRESS>-beta
Device Tested On: iPhone 6 10.3.2, iPhone 7 10.3.2
Simulator Tested On: N/A
Version of VS: Visual Studio for Mac 7.01
Version of Xamarin: Xamarin Mac <IP_ADDRESS>
Versions of other things you are using: N/A
Expected Behavior
Not expecting a purchase to be made since Apple hasn't approved the app/IAP-product but maybe a sanbox-purchase? Or at least expecting a exception to be thrown.
Actual Behavior
App crashes without exception.
Code snippet
                try
                {
                    IsLoading = true;
                    var productId = "questionnaire1";
                    var isConnected = await CrossInAppBilling.Current.ConnectAsync();
                    if (!isConnected)
                    {
                        return;
                    }

                    var purchase = await CrossInAppBilling.Current.PurchaseAsync(productId, ItemType.InAppPurchase, "apppayload", msgData.Verification);
                    if (purchase == null)
                    {
                        await DialogService.ShowError(Translations.TXT_COULD_NOT_PURCHASE_FUNDS_OR_INTERNET, Translations.TXT_COULD_NOT_PURCHASE_QUESTIONNAIRE_TITLE, "OK", null);
                        IsLoading = false;
                    }
                    else
                    {
                        var purchaseResult = await Analys360Service.PurchaseQuestionnaire(msgData.QuestionnaireId, CurrentUser);
                        if (purchaseResult.Error != null || !purchaseResult.Result)
                        {
                            await DialogService.ShowError(Translations.TXT_COULD_NOT_PURCHASE_FUNDS_OR_INTERNET, Translations.TXT_COULD_NOT_PURCHASE_QUESTIONNAIRE_TITLE, "OK", null);
                            IsLoading = false;
                        }
                        else
                        {
                            await DialogService.ShowMessage(Translations.TXT_QUESTIONNAIRE_UNLOCKED, Translations.TXT_PURCHASE_SUCCESSFUL_TITLE);

                            if (Device.RuntimePlatform == Device.Android)
							{
								var c = await CrossInAppBilling.Current.ConsumePurchaseAsync(purchase.ProductId, purchase.PurchaseToken);

                                if (c != null)
								{
                                    System.Diagnostics.Debug.WriteLine("Consumed!");
								}
								else
								{
                                    System.Diagnostics.Debug.WriteLine("Failed consumed!");
								}
							}
                        }

						await FetchQuestionnaires();
						IsLoading = false;
                    }
                }
                catch (Exception e)
                {
                    await DialogService.ShowMessage(Translations.TXT_PURCHASE_NOT_COMPLETED, Translations.TXT_PURCHASE_CANCELED);  <--- THIS DIALOG IS NEVER SHOWN..
                }
                finally
                {
                    await CrossInAppBilling.Current.DisconnectAsync();
                    IsLoading = false;
                }

Thanks i advance!
/Daniel

Are you using advanced linker modes in release? You may want to link skip them out.  Without a stack trace I can not help as I have 2 apps in the app store using the plugin without issue.
Recommendation is to test your app in Test Flight and check sandbox user to see what is happening.


Can't download MNIST_784

i have tried many codes in this issues part,but no one works.Maybe due to im in China,the network dont support me to visit that website.
There is the error info:   The remote host forced an existing connection to be shut down by the remote host. >
Could u give me some method to solve it...Or upload the "mnist_784" file to GitHub?
last, thanks for ur help

@ageron

The error looks like it's a network issue. This could be due to a firewall, or a proxy misconfiguration, or just a WiFi coverage problem, for example.
If it's a firewall issue, you may be able to work around it using a VPN.
Alternatively, you could try downloading the data from another source. Here are a few ways to download MNIST:
Using Keras:
from tensorflow import keras
(X_train, y_train), (X_test, y_test) = keras.datasets.mnist.load_data()

Using Scikit-Learn:
from sklearn.datasets import fetch_openml
mnist = fetch_openml("mnist_784", as_frame=False)
X_train, X_test = mnist.data[:60000], mnist.data[60000:]
y_train, y_test = mnist.target[:60000], mnist.target[60000:]

You could also try using the mnist library (pip install mnist), which downloads the data from Yann LeCun's website (unfortunately, it seems to be down right now, so I'm not sure how reliable this solution is):
import mnist

X_train = mnist.train_images()
y_train = mnist.train_labels()
X_test = mnist.test_images()
y_test = mnist.test_labels()

There are also various mirrors of this dataset, for example in this github repository: https://github.com/cvdfoundation/mnist
Hope this helps (closing, as this seems like a client-side issue).

My problem is solved.Thanks for your respond.
------------------ 原始邮件 ------------------
发件人:                                                                                "ageron/handson-ml"                                                                                @.>;
发送时间: 2021年5月4日(星期二) 中午11:49
@.>;
<EMAIL_ADDRESS>主题: Re: [ageron/handson-ml] Can't download MNIST_784 (#626)
The error looks like it's a network issue. This could be due to a firewall, or a proxy misconfiguration, or just a WiFi coverage problem, for example.
If it's a firewall issue, you may be able to work around it using a VPN.
Alternatively, you could try downloading the data from another source. Here are a few ways to download MNIST:
Using Keras:
from tensorflow import keras (X_train, y_train), (X_test, y_test) = keras.datasets.mnist.load_data()
Using Scikit-Learn:
from sklearn.datasets import fetch_openml mnist = fetch_openml("mnist_784", as_frame=False) X_train, X_test = mnist.data[:60000], mnist.data[60000:] y_train, y_test = mnist.target[:60000], mnist.target[60000:]
You could also try using the mnist library (pip install mnist), which downloads the data from Yann LeCun's website (unfortunately, it seems to be down right now, so I'm not sure how reliable this solution is):
import mnist X_train = mnist.train_images() y_train = mnist.train_labels() X_test = mnist.test_images() y_test = mnist.test_labels()
There are also various mirrors of this dataset, for example in this github repository: https://github.com/cvdfoundation/mnist
Hope this helps (closing, as this seems like a client-side issue).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Prometheus metrics compatibility

This is more like a question, not actually a feature request.
For me right now it is unclear if I can use this project together with Prometheus stack.
It is the default solution right now for monitoring things.
Looks like it should be possible to use it instead of your own frontend to see the metrics.
Or are there any problems / unknowns?

This tip is great. and Prometheus is awesome. It will be used in few days later.

Hi, @sobolevn
In our roadmap, we will collect metrics and make it compatible with Prometheus.
This MAY be introduce in the next few release (If you have time, any PR is welcome :D )
But still, we will develop our own frontend, that means make our frontend from MUST to OPTIONAL


As a trainer, I can keep track of my client's weight over a period of time

so that I can keep track of my client's progress.
in client, there will be a list of pair of date and weight
will be shown in a graph

Weight -> optional argument in Edit Schedule


Try writing some code using ES6

It might be nice to experiment with some ES6 goodness in localForage. And with #157, we can nicely transform it to ES5 for distribution.

Do you have any specific transpiler in mind to recommend?
I would go with traceur for start, since it has been tested well enough by the angular community.
Should we also emit an es5 folder in the dist directory (or somewhere else)? Should the es5 files be included in the bower package?

There is also babeljs which was previously 6to5.
--
Stéphane Bachelier,
Tél. 06 42 24 48 09
B8A5 2007 0004 CDE4 5210  2317 B58A 335B B5A4 BFC2
2015-02-20 19:20 GMT+01:00 Thodoris Greasidis<EMAIL_ADDRESS>
Do you have any specific transpiler in mind to recommend?
I would go with traceur for start, since it has been tested well enough by
the angular community.
Should we also emit an es5 folder in the dist directory (or somewhere
else)? Should the es5 files be included in the bower package?
—
Reply to this email directly or view it on GitHub
https://github.com/mozilla/localForage/issues/158#issuecomment-75291718.

After some comparison of babel and traceur I spotted some differences.
I think babel is using object property definition. Is this es3 polyfillable?

@thgreasi for older browser you must use the es5-shim and the babel polyfill.
There is a section at the end of babel caveats page

By default, when using modules with babel a non-enumerable __esModule property is exported. This is done through the use of Object.defineProperty which is unsupported in IE8 and below. A workaround for this is to enable loose mode - modules.

@stephanebachelier :+1: it look like that loose mode produces cleaner code without the need of Object.defineProperty.

Just created a branch to test babel.
All the tests pass and the generated code is as readable are the original non es6.
The most annoying thing was jshint and jscs on es6 code.
Also, the component build does not like es6 so I had to keep a separate es5src.
As side notes:

Didn't test it on IE8 (maybe next week)
It places a global "use strict" statement and a global _classCallCheck object.

Maybe I should wrap all the generated code in an IIFE.

So far that looks good, I like being able to use the class for LocalForage :+1:
I'm moving right now (Canada to the UK!) so I can't code/test much stuff but happy to review things later, whenever you can get to them :+1:

Hi I'm a Babel contributor. @thgreasi if you want to leave out the "use strict" you can blacklist it. If you want to see an excellent example of how to write a library with Babel check this out: https://github.com/babel/babel-library-boilerplate.
If you need any other help let me know or ask in our support chat: https://gitter.im/babel/babel

Thanks @thejameskyle :+1:
Atm I'm looking at custom module formatters.
UMD looks very similar to what we currently do to fetch driver modules, except that we also look at the global object as well.

We're looking to improve that in the future, right now if you need a global in the UMD you can use esperanto like the boilerplate does.

Thanks, I will take a look at it asap.

@thejameskyle We do import some files programmatically and so I was
thinking about writing a Transformer to change expressions like:
System.import('aDriver')
Into something like Esperanto/UMD+Globals.
Does this actually make any sense?
On Sun, Apr 19, 2015, 09:48 James Kyle<EMAIL_ADDRESS>wrote:

We're looking to improve that in the future, right now if you need a
global in the UMD you can use esperanto http://esperantojs.org like the
boilerplate does.
—
Reply to this email directly or view it on GitHub
https://github.com/mozilla/localForage/issues/158#issuecomment-94245147.

System.import is apparently the future since it's being officially standardized. I'd give a -1 to moving away from that.

I thought it got removed in the April's es6 draft!?!?!?
(As you can see the #sec-loader-objects is missing from the current page, as well as any System.import reference.)

Huh, good point. I hadn't heard about that yet.

I don't know how you'd dynamically load something in a UMD. You could certainly do it if you were using a module loader like system.js.

UMD supports AMD which is all about dynamic loading no?

Yeah but the point of the UMD is to work in all environments (AMD, Common.js, Globals).

The current UMD formatter does a great job in creating modules that can be imported using any/many different module systems.
However it does not specify a way on how your code should be written when it needs to import sub-modules
LocalForage tries to dynamically load the drivers and the common Serializer, by guessing the available module system available. It currently supports global and commonjs/browserify imports as well as async loading with AMD/requirejs. That's so that the user can benefit the most of his module loader of choice, no matter what he is using (RequireJS/Browserify/GlobalNamespace).
I was discussing about creating a Transformer (if there isn't one already) that would allow to programmatically import UMD modules no matter what the module loading scheme is used at runtime.
I would expect that such a Transformer would change expressions like:
System.import('aDriver').then(...);

To something like:
new Promise(function(resolve, reject)){
    if (System && System.import && typeof System.import === "function") {
        System.import('aDriver', resolve);
    } else if (typeof define === "function" && define.amd) {
        require(['aDriver'], resolve);
    } else if (typeof exports !== "undefined") {
        resolve(require('aDriver'));
    } else {
        resolve(globalObject['aDriver']);
    }
}).then(...);

I guess I should probably move this discussion to the babel repo...
PS: I chose System.import as the default way to programmatically import a module, because it looks like it's the the most promising to become a standard (at some point in the future).


Any plans for the Privacy Manifest?

Hello,
Are you planning to release an updated version that complies with Apple's new Privacy Manifest requirement?
It's crucial because Apple will start rejecting apps that don't incorporate the Privacy Manifest in their SDKs.
This requirement becomes effective in April 2024, which is approaching rapidly.
Thank you

@nbasili Any updates on this one?

Okay, understood!
Thanks for the response Stelios


Updated the run_simulation_yaml.py file

When the Slack alerting was enabled, the following error message was displayed - local variable 'json' referenced before assignment
The issue appears to be using the word "json" as a variable and also module. I replaced "json" with "json_data" and that fixed the issue. The code is still commented out, in case folks don't want to use Slack alerting.

 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.


Add UI support for making a bot have administrator permissions

We have a number of administrator permissions (like creating other users, streams, etc.), which it would be useful to be able to create a bot that can use.
We should:

[ ] Add a new "Administrator Bot" bot type, which only admins can create or own, and otherwise works like a Generic Bot but has administrator permissions (is_realm_admin=True) and thus can do things like create users.
[ ] Do an audit to make sure there's nothing we want to prevent administrative bots from doing.  Might involve changing some places that use the @require_non_guest_human_user and require_realm_admin decorators to use new decorators like require_member_or_admin or require_human_realm_admin.
[x] Update our checks to prevent removing the last administrator should ignore bot users.  @thedeveloperr FYI, we can probably just do this before the rest of the feature.
[ ] Update our /api/ docs to make clear which endpoints require which type of user, probably using our standard tip/warning syntax that we use on /help/.

@zulipbot claim

[ ] Update our checks to prevent removing the last administrator should ignore bot users. @thedeveloperr FYI, we can probably just do this before the rest of the feature.

@timabbott should removing last administrator ignore only "Admin bots" or all types of bots created by the last admin ?

The goal is to require that there's at least one human administrator at all times.  So I think we just need to make sure this:
def check_last_admin(user_profile: UserProfile) -> bool:
    admins = set(user_profile.realm.get_admin_users())
    return user_profile.is_realm_admin and len(admins) == 1

handles bot users correctly.  It seems like we'll want to make a version of realm.get_admin_users, realm.get_human_admin_users(), and use it here (and maybe in a couple other places).  And add a test that just sets the admin bit on a bot user etc.  This would be a reasonable change to sequence more or less first -- it should be easy to check off.
@ruchit2801 FYI as this may relate to your primary admin branch.

Still working

@zulipbot claim

The goal is to require that there's at least one human administrator at all times. So I think we just need to make sure this:
def check_last_admin(user_profile: UserProfile) -> bool:
    admins = set(user_profile.realm.get_admin_users())
    return user_profile.is_realm_admin and len(admins) == 1

handles bot users correctly. It seems like we'll want to make a version of realm.get_admin_users, realm.get_human_admin_users(), and use it here (and maybe in a couple other places). And add a test that just sets the admin bit on a bot user etc. This would be a reasonable change to sequence more or less first -- it should be easy to check off.
@ruchit2801 FYI as this may relate to your primary admin branch.

@timabbott, after the introduction of primary admin, It would not be required to check for the last admin. We've implemented a primary_admin feature in such a way that, always, there would be exactly one primary admin. And no one can remove primary admin ( even primary admin himself can't. He needs to transfer this status first if he wants to remove himself or change his role). Primary admin himself guarantees that at least one human admin user is present in the realm. I kind of removed that code (check_last_admin) when I was implementing the primary_admin feature.

@zulipbot claim

@zulipbot claim I have some doubts posted on PR #12589 for @timabbott  so work on this issue is on hold till I get clarity on those issues. But intend to work on this

@thedeveloperr are you still working on it ?

@zulipbot claim

@thedeveloperr Are you still willing to take forward the WIP pr #12589 . If you are not working on it anymore then please reply, I will start working on the top of it to get this feature completed.

@thedeveloperr Are you still willing to take forward the WIP pr #12589 . If you are not working on it anymore then please reply, I will start working on the top of it to get this feature completed.

I am not working on it. Please feel free to take it up.
On Fri, 1 Jan, 2021, 11:57 am Purushottam Tiwari<EMAIL_ADDRESS>wrote:

@thedeveloperr https://github.com/thedeveloperr Are you still willing
to take forward the WIP pr #12589
https://github.com/zulip/zulip/pull/12589 . If you are not working on
it anymore then please reply, I will start working on the top of it to get
this feature completed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zulip/zulip/issues/12424#issuecomment-753269977, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AFTAFNDR7DRMGNSRVQFJ433SXVTNFANCNFSM4HQHEGGQ
.

I am not working on it. Please feel free to take it up.
On Fri, 1 Jan, 2021, 11:57 am Purushottam Tiwari<EMAIL_ADDRESS>wrote:

@thedeveloperr https://github.com/thedeveloperr Are you still willing
to take forward the WIP pr #12589
https://github.com/zulip/zulip/pull/12589 . If you are not working on
it anymore then please reply, I will start working on the top of it to get
this feature completed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zulip/zulip/issues/12424#issuecomment-753269977, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AFTAFNDR7DRMGNSRVQFJ433SXVTNFANCNFSM4HQHEGGQ
.

@zulipbot claim

@zulipbot claim

Closing, as we've instead gone with using the same role field model we have for normal users. See, for example, #22405.
Thanks for working on this @thedeveloperr and @m-e-l-u-h-a-n!


Adding @BetaApi and @InternalApi, adding to core classes

Here are the list of classes in core not getting either annotation (meaning they will go to GA when the library goes to 1.0.0):

ApiClock
ApiFunction
ApiFuture
ApiFutures
ApiFutureCallback
AsyncPage
Page
RetrySettings

Codecov Report

Merging #275 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #275      +/-   ##
============================================
+ Coverage     71.16%   71.17%   +0.01%
  Complexity      554      554
============================================
  Files            80       80
  Lines          2736     2737       +1
  Branches        275      275
============================================
+ Hits           1947     1948       +1
  Misses          683      683
  Partials        106      106

Impacted Files
Coverage Δ
Complexity Δ

...va/com/google/api/gax/core/AbstractApiService.java
82.14% <ø> (ø)
13 <0> (ø)
:arrow_down:

...gax/core/internal/ListenableFutureToApiFuture.java
100% <ø> (ø)
1 <0> (ø)
:arrow_down:

...c/main/java/com/google/api/gax/core/NanoClock.java
66.66% <ø> (ø)
4 <0> (ø)
:arrow_down:

...a/com/google/api/gax/core/ForwardingApiFuture.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...ava/com/google/api/gax/core/SettableApiFuture.java
100% <ø> (ø)
2 <0> (ø)
:arrow_down:

.../google/api/gax/core/FixedCredentialsProvider.java
100% <ø> (ø)
2 <0> (ø)
:arrow_down:

...va/com/google/api/gax/core/PropertiesProvider.java
52.63% <ø> (ø)
6 <0> (ø)
:arrow_down:

...ava/com/google/api/gax/core/AbstractApiFuture.java
100% <ø> (ø)
11 <0> (ø)
:arrow_down:

...va/com/google/api/gax/core/CurrentMillisClock.java
83.33% <ø> (ø)
5 <0> (ø)
:arrow_down:

...gax/core/internal/ApiFutureToListenableFuture.java
60% <ø> (ø)
3 <0> (ø)
:arrow_down:

... and 4 more

Continue to review full report at Codecov.

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

Yes, the motivating reason for a class/interface to go GA with GAX is if it is exposed on the surface of GCJ libraries that are going GA.

I rebased instead of merged because of the significant changes - PTAL again

LGTM


Update hyperv-network-virtualization-technical-details-windows-server.md

There is no documentation regarding the incompatibiliyt of Set switch and hnv v1 and we had customers opening cases with this issue and complaining afterwards that this is not documented

@adelina2712 - Thanks for the addition! I'm merging now.


Sibling selector support?

Is it possible to express this CSS snippet as a JSS sheet? And without resorting to globals? If possible, it doesn't seem obvious.
.switch { /* ... */ }
.switch__input { /* */  }
.switch__input:checked + .switch__toggle { /* */ }
.switch__input:checked + .switch__toggle:before { /* */ }
.switch__input:not(:checked) + .switch__toggle:before { /* */ }

Example DOM:

  <input class="switch__input" type="checkbox">

My intent would be making the switch__toggle styling dependent only on view-related concerns (i.e. whether the sibling input is :checked), thus avoiding introducing new classes to reflect component state.

The way I'm doing these kind of things is, to maintain some kind of UI STATE. So "checking/unchecking" a checkbox might set some part of the UI STATE to true/false and some other components or parts of the app might "listen" for changes of the UI STATE and update themselves accordingly.

@serapath It's what I'm doing. The checked state comes from the view (JS). My concern in my concrete example is that

 feeds on its sibling to style itself, and this relies on a sibling selector, which I don't know how to express in JSS.
Sure, one can add classes (say, with --checked ending) either to div.switch or div.switch__toggle to express checked state on .switch__toggle, but given an existing, complex stylesheet which is  developed separately, it would be much simpler to just rely on sibling selectors.

yes, you can use pseudo selectors within  named rules via  jss-nested plugin

Its a nice example, it would be nice to have it in jss-examples repository

Thank you for the pointer. I went ahead and tried it, only having success in my use case with named: false:
window.styles = {
  '.switch__input': {
    '&:checked + .switch__toggle': {background: 'red'}
  },
  '.switch__toggle': {}
}

Stylesheet creation:
jss.use(jssNested).createStyleSheet(window.styles, {named: false}).attach()

yields:
.switch__input {}
.switch__input:checked + .switch__toggle {background: red;}
.switch__toggle {}

However:
jss.use(jssNested).createStyleSheet(window.styles, {named: true}).attach()

yields:
.jss-0-0 {}
.jss-0-0:checked + .switch__toggle {background: red;}
.jss-0-2 {}

I expected .switch__toggle to be renamed to .jss-0-2 in the second declaration.
Would this behavior be out of scope?

Thank you for the pointer. I went ahead and tried it, only having success in my use case with named: false:
window.styles = {
  '.switch__input': {
    '&:checked + .switch__toggle': {background: 'red'}
  },
  '.switch__toggle': {}
}

Stylesheet creation:
jss.use(jssNested).createStyleSheet(window.styles, {named: false}).attach()

yields:
.switch__input {}
.switch__input:checked + .switch__toggle {background: red;}
.switch__toggle {}

However:
jss.use(jssNested).createStyleSheet(window.styles, {named: true}).attach()

yields:
.jss-0-0 {}
.jss-0-0:checked + .switch__toggle {background: red;}
.jss-0-2 {}

I expected .switch__toggle to be renamed to .jss-0-2 in the second declaration.
Would this behavior be out of scope?

I see you misunderstand the concept of named styles, please rtfm)

to be more concrete: you don't  write selectors in named styles .... you write names to access your rules and classes, selectors are generated

&:checked + input would work

the point is to select a sibling you need to use a global selector, which is already a bad thing. If you use . switch__toggle its even worth because now you have jss and bem. The only option I see here is '&:checked + div' if the toggler is div otherwise the other element, but this will work correctly only if you don't have other element with the same tag name.
At the end the best option is wrapper component which handles state.
But what I described above can work too.

you don't write selectors in named styles

Yup. I just reused the selectors as they're valid object key names.
All clear wrt the rest. I discovered that what I'm after is possibly a name resolution step before the renaming takes place, to cover every occurrence of names in forms such and name1 + name2. If such thing existed it would make porting of existing stylesheets to named styles much easier, at risk of misusing object keys.

Yes, you want to write '&:checked + toggler' where toggler is the name of other rule. This feature is not there yet and I am not sure how to implement it. Also I am not sure if there is much value in it.


Feat/gh workflows

This is pending review of our general CI/CD process

I believe this is obsolete, can close @k0gen ?

already implemented in v0.3.5


Incompatibility with Magento 2.4.6-p6 (latest security patch)

Hello,
Seems like there is an incompatibility with the latest Magento version 2.4.6-p6
Before the upgrade

In checkout > shipping, “Ship here” button is working and Shipping methods can be checked

After the upgrade

In checkout > shipping, “Ship here” button is NOT working and Shipping methods cannot be checked

339077672-7a2a6cda-d0dc-4e98-9019-d1bbcf694ec4.webm

I cannot reproduce it on 2.4.7. Please provide the link to your site so I can see what is wrong.

I'm testing this in local so I don't have a link yet to provide.
I'm using the following versions

Can you inspect these elements using developer toolbar and see why they do not appear on hover?

Hello, @pabodah! Have you resolved this issue?

Hello,
This was resolved using <csp>             <policies>                 <storefront_checkout_index_index>                     <scripts>                         <inline>1</inline>                     </scripts>                 </storefront_checkout_index_index>             </policies>         </csp>


Elwayman02 upgrade packages

Slightly updated PR from the ember-cli upgrade

Supersedes #88

Merging - will close #88 - I'm not going to publish 0.6.0 until I get a chance to clean up a few more things though.  Maybe a few days, not too long.


Hotfix/webpack rebuilds

Hotfix for #124 implemented:
See: /src/webpack.js:#L63 and /src/static.js#L314 on this branch for more information.
No integration tests have been added yet, however this test works very well and does NOT increase build times.
Steps to test:
yarn build  <-------- Inside react-static/
cd ../
react-static/bin/react-static create
<<Make Basic Project>>
cd my-static-site/

vim project.json
<<Modify: "start" statement to location of react-static/bin/react-static>>
:wq

yarn start

CLI Output after Hotfix impl:
❯ yarn start
yarn run v1.2.1
$ <path-to-react-start>/react-static/bin/react-static start

=> Copying public directory...
=> [✓] Public directory copied: 1.253ms
=> Building Routes...
=> [✓] Routes Built: 719.381ms
=> Building App Bundle...
=> [✓] Build Complete: 3087.141ms
=> [✓] App serving at http://localhost:3000

Are all the changes to the package.json, .babelrc, etc. really needed? They don't seem to be used to by anything, perhaps you commited them on accident.

Fantastic! Good to merge?

Yup. I've finished up commits on my end. Good to merge, @tannerlinsley. 😄


[ENH] Handle session-specific anatomical data

as of https://github.com/PennLINC/qsiprep/pull/832 anatomical data can be written out to session directories. QSIRecon should be able to find them and use them

This happens when using session-specific processing from qsiprep (--anat-space-definition session).
[adamraikes@r5u13n1 PD_allo]$ apptainer run --containall --writable-tmpfs -B /groups/adamraikes/templateflow:/opt/templateflow -B $PWD/derivatives/qsiprep_0.23.1:/input -B $PWD/derivatives/qsirecon_unstable_v3:/output -B /tmp:/tmp -B /groups/adamraikes/license.txt:/license.txt -B /groups/adamraikes/git_repos/qsirecon/qsirecon:/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsirecon $RECON /input /output participant --participant_label 011 -w /output/scratch  --fs-license-file /license.txt --recon-spec TORTOISE --input-type qsiprep
241105-09:43:00,74 nipype.workflow IMPORTANT:
	 Running QSIRecon version 0+unknown

         License NOTICE ##################################################
         QSIRecon 0+unknown
         Copyright The PennLINC Developers.

         This product includes software developed by
         the NiPreps Community (https://nipreps.org/).

         Portions of this software were developed at the Department of
         Psychology at Stanford University, Stanford, CA, US.

         This software is also distributed as a Docker container image.
         The bootstrapping file for the image ("Dockerfile") is licensed
         under the MIT License.

         This software may be distributed through an add-on package called
         "Docker Wrapper" that is under the BSD 3-clause License.
         #################################################################
241105-09:43:00,447 nipype.workflow IMPORTANT:
	 Building QSIRecon's workflow:
           * BIDS dataset path: /input.
           * Participant list: ['011'].
           * Run identifier: 20241105-094241_0963fb2e-7552-479d-8b94-a441e87fd6ad.
241105-09:43:05,616 nipype.workflow INFO:
	 found ['/input/sub-011/ses-01/dwi/sub-011_ses-01_dir-AP_space-T1w_desc-preproc_dwi.nii.gz', '/input/sub-011/ses-02/dwi/sub-011_ses-02_dir-AP_space-T1w_desc-preproc_dwi.nii.gz'] in /input
Process Process-2:
Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/opt/conda/envs/qsiprep/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsirecon/cli/workflow.py", line 136, in build_workflow
    retval["workflow"] = init_qsirecon_wf()
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsirecon/workflows/base.py", line 44, in init_qsirecon_wf
    single_subject_wf = init_single_subject_recon_wf(subject_id=subject_id)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsirecon/workflows/base.py", line 128, in init_single_subject_recon_wf
    anat_data, status = collect_anatomical_data(
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsirecon/utils/bids.py", line 212, in collect_anatomical_data
    raise ValueError(
ValueError: More than one acpc_seg found.


How to get anonymous module?

Since angular could attach ng-app attribute without value. And one document can exist only one element with ng-app. Why there are no api such as angular.rootModule([]) or something to initial that module? Why we need to specify module name because the name is just that document

This concept of "root module" does not exist. The fact that you can only have one ngApp per document, does not mean that you can have only one app.
ngApp is just syntactic sugar for manually calling angular.bootstrap and passing in the DOM element on which you want to bootstrap an app and the modules you want to load. If you don't specify a module name in ngApp, then no (extra) module is loaded during bootstrap. I.e. no "root module" will be created for you.
(Note, that Angular will always prepend its core module (ng) when bootstrapping.)
So, basically, when you have <some-element ng-app> (without specifying a module), only the core ng module will be loaded. It is not considered a good practice, but you could add more stuff to it if you wanted to.


[MRESOLVER-572] Export internal packages in OSGi metadata as x-internal

This is a forward-port of https://github.com/apache/maven-resolver/pull/510 to master.
This makes maven-resolver-supplier usable as bundle in an OSGi runtime. At the moment the bundle cannot resolve because the internal.impl packages it uses and imports in its OSGi metadata are not exported by maven-resolver-impl.
Simply exporting internal packages fixes that and, although it is discouraged to use internal/impl packages, gives consumers that can accept no API-compatibility guarantees the ability to access these packages.
Adding the directive 'x-internal' is a convention that, at least when using Eclipse PDE, shows a corresponding warning at call-sides.
Fixes https://issues.apache.org/jira/browse/MRESOLVER-572

@HannesWell that branch needs rebase/conflict resolution

@HannesWell that branch needs rebase/conflict resolution

Done.

@gnodet can we proceed with this one? Thanks in advance.


(Enhancement) Adding CLI Banner with cfonts

What ?

Adding a banner to the cli using https://lib.rs/crates/cfonts
Color is based on the text displayed with soldeer version

AIUse

Minimal to determine location of function without interfering with main logic

IMG

Hey, thank you for the PR. We need to see if we can merge this one as it might make the terminal a bit too crowded especially if you use foundry

Hey, thank you for the PR. We need to see if we can merge this one as it might make the terminal a bit too crowded especially if you use foundry

Yes I can see that. Maybe I can make it smaller ?

We can try yes but it will probably merged in 0.4.0 so better try to do the pr against the 0.4.0 branch

↗  Deferred to -  https://github.com/mario-eth/soldeer/pull/199


Fix IVF_SQ8 and IVF_PQ range search return deleted ids

Signed-off-by: yudong.cai<EMAIL_ADDRESS>

/kind improvement

/lgtm


[Enhancement] Add dark steel hoe

We have a lot of dark steel tools, but we do not have a dark hoe. It would be awesome we could have it. No upgrades needed other than normal charge capacity (vibrant gem, capacitors). My farming station would be grateful for it.

see #2426


Question: Any way to export the colors to kitty terminal?

Hello, thank you for your work on this colorscheme, I also really like it! I was wondering if you had a way to generate kitty terminal theme from the color palette here.

The palette is the same as Gruvbox, using the "hard contrast" variant. You could start with the "Gruvbox Dark" or "Gruvbox Material Dark Hard" themes from kitty +kitten themes, and tweak as needed.
This is what I have in my kitty.conf for the dark theme:
background #1d2021
foreground #ebdbb2
color0 #282828
color1 #cc241d
color2 #98971a
color3 #d79921
color4 #458588
color5 #b16286
color6 #689d6a
color7 #a89984
color8 #928374
color9 #fb4934
color10 #b8bb26
color11 #fabd2f
color12 #83a598
color13 #d3869b
color14 #8ec07c
color15 #ebdbb2

active_border_color #458588

If you want the light theme, you can get the color hex codes from templates/palette.yaml. If you want to switch back-and-forth between dark and light, you might be able to get something working with https://sw.kovidgoyal.net/kitty/kittens/themes/#command-line-interface.

Ah perfect, thank you for answering.


docs: Generate docs and publish to GitHub Pages

Instead of using a large README for documentation, use something like mkdocs to create a static site from Markdown sources. Publish the site to GitHub Pages.

My apologies. Ignore this. I meant to create it in aws-okta/aws-okta. (I'd close it if I could!)
https://github.com/aws-okta/aws-okta/issues/5

My apologies. Ignore this. I meant to create it in aws-okta/aws-okta.
It's here now: aws-okta/aws-okta#5


fix: edited platform expense fields columnm mapping for per_diem_num_days

Description

🤖 Generated by Copilot at 4414616
Fix syntax errors and add per diem feature in expense-fields.service.ts. This allows the app to handle the number of days for per diem expenses from the API.

🤖 Generated by Copilot at 4414616

From the ashes of syntax errors we rise
We claim our rightful per diem prize
We map the fields of our expense reports
We defy the API and its cohorts

Clickup
https://app.clickup.com/t/86791a5cz

Closing this one... this thing needs some more changes and bit planning
ref thread:

https://fylein.slack.com/archives/C01S9SGGA8J/p1700040110590769?thread_ts=1700036519.775369&cid=C01S9SGGA8J


Recording disappears once stopped

macOS version: 10.14.3
Kap version: 3.0.0-beta 5
Steps to reproduce

click Kap icon
drag mouse to set recording frame
press record and press 'stop' icon when done recording

Current behaviour
Kap UI disappears but nothing else happens. No notification of completed capture. When I check the output folder, no file has been exported.
 If so, could you send a screenshot of that window @aalokt89?

So now keep getting an Error alert saying it could not run within 5 seconds. And then it freezes and I have to force quit through the Activity Monitor.
https://www.dropbox.com/s/1n22v6r7unrjbr4/KapBug.mov?dl=0

That's not the behaviour you were seeing earlier, right? If so, could you open a separate issue for that @aalokt89?

Update: So the recording experience is very confusing. There seems to be a holding stage before it actually starts recording?
STR:

click on Kap icon. Create capture window. Hit record
The elements outside of the window remain dark. The Kap icon does not have a stop icon.
~5 seconds later the Kap icon has a stop icon and the screen lightens up
If I start moving around BEFORE the stop icon appears and then hit the stop icon, nothing happens. https://cl.ly/521c55c638ac
if I wait and don't not move anything until AFTER the stop icon appears, the preview window pops up. https://cl.ly/927f766bf2a8

If that is indeed supposed to be a holding pattern until the stop icon shows up, there needs to be a much clearer UI element that lets me know this. Maybe a countdown until It's ready to record.
I also think it should stay dark outside the capture window. The lightening of the window was very unexpected and made me think it was done recording. It was also very hard to see the actual capture window

Depending on your environment the recording can start almost immediately or seconds after you hit the record button. The icon should animate in the menubar while the recording is getting started, but I noticed that is missing on your setup @aalokt89:

Here are better quality screencast of the bug. But now it's not working even if I wait until the stop icon appears...
Before stop icon: https://cl.ly/a7b6fd0f1750
After stop icon: https://cl.ly/ea38d6728517
In either case, The appearance of the stop icon is barely noticeable. User's are not naturally looking in that area when they need to focus on what they are planning to record. I assume that once I click on the record button, I can start recording. I still think there needs to be some sort of directional UI that says "wait/start' when it's not ready and a ready to record.

I still think there needs to be some sort of directional UI that says "wait/start' when it's not ready and a ready to record.

I agree, it's not clear enough.
For example, Capto.app has this in the center of the screen when preparing to record:

The problem is that we don't exactly know when to show the tray animation or a 3..2..1 countdown, since aperture takes a few seconds to start recording but it's not always the same. We could show the 3..2..1 after aperture starts recording (currently that's what we do for the tray icon) and then trim the first 3 seconds of the video? Otherwise we mind end up with part of that display in the resulting recording

That's what we've been struggling with for a while @karaggeorge. We could continue showing the overlay and UI in a disabled state with an indeterminate progress indicator until Aperture is ready? That way the UI fading out becomes a much clearer visual queue that the recording is starting alongside the animated menubar icon.

We could show the 3..2..1 after aperture starts recording (currently that's what we do for the tray icon) and then trim the first 3 seconds of the video? Otherwise we mind end up with part of that display in the resulting recording

That's what we considered previously. Some early work you might find useful here: https://github.com/wulkano/kap/pull/283

I have the same problem. I am a Kap 2 user and Kap 3 Beta is not so far from what I'm already used to, so the tiny stop button is not what I find problematic. The real problem is that there is no recording. I'm pretty sure it doesn't even try to save anything, because I would have notice a peak in CPU usage at my terminal.
What I tried so far:

I have tried "waiting for stop icon to appear before moving the mouse" as described above, but it didn't help.
I have changed the movie output directory, but that didn't help either.

Could you go to About Kap in the app and check if you are on the latest beta version @armanozak? You can get to it by right clicking on the menubar icon and selecting it in the menu that appears.

I was on beta-6, but have deleted the beta now.

Thank you for the report @armanozak, we're working on identifying the root cause of this. From what I understand, once you complete the recording, you are not prompted with the editor and a previewing of your recording. To me that that suggests that we weren't able to write a file at all, so there is no source file present and Kap based on these reports the app fails silently. Are you still able to reproduce @aalokt89?

I'm attributing this issue to an error starting the recording, which has been fixed in versions 3.0 and newer. Thank you for you help!


[dev] update mac setup

this fixes make snarkyjs on mac

!ci-build-me

what doesn't work on your machine btw?


Update Readme.md

Mention that Windows is unsupported

Sorry for the slow response and thanks for the good suggestion. I've added this myself along with some instructions on using WSL to get it working.


Error when DEFAULT_MODEL not defined in .env.local and running locally

Title says it all. The readme says it defaults to GPT-3.5-Turbo but in my case it threw an error. When I defined it explicitly it worked fine.
Error: Error serializing .defaultModelId returned from getServerSideProps in "/".
Reason: undefined cannot be serialized as JSON. Please use null or omit this value.

Should be fixed now by #17


Audio Atom

What does this change?
Add Audio Atom
After

+1

Do we know if there is anything we're missing vs. frontend parity now?

@jfsoul From what I see no, here is an example in frontent:
https://www.theguardian.com/australia-news/2020/jun/19/morning-mail-university-fees-to-skyrocket-abetzs-questionable-claim-swan-urges-restraint?dcr=false
I noticed that we do not have any highlighting happening when we tab through, is this something we would like to add? if so we may need to get some designs to know how to display elements selected.

@liywjl I think parity with frontend is good for now, although if we can improve accessibility a followup PR would be great.
Speaking of parity, I believe this is the place to look for frontend's JS: https://github.com/guardian/atom-renderer/blob/master/core/src/main/resources/lib/audio.fjs
Apart from that JS the only interesting thing I can see it do is optionally add acast here: https://github.com/guardian/atom-renderer/blob/master/core/src/main/resources/audio/article/index.scala.html#L6

@jfsoul thank you for pulling up these repos 👍
regarding /audio.fjs the only thing I seem to be missing is the Ophan reporting, I am trying to wrap my head around some of the logic but I cannot seem to find where ophan.record comes from, could you point me in the direction on where this method is defined?
regarding /article/index.scala.html#L6 we need to get a new prop externalAdvertising this will likely need changes on FE from @shtukas

I can't github approve because I made the early commits, but here is a 👍