How to create first user at setup time?

When you setup the service the first time you try to access it you get taken to the setup screen to create the first user.
What would be the canonical way of creating such a user in an automatic way at setup time?
I want to do this because I also want to use the REST API to create my services and checks at setup time using Ansible.
I noticed that there is an auth_user table in the PostgreSQL database:
cabot=# select id,last_login,is_active,is_superuser,is_staff,username,email from auth_user;
 id |          last_login           | is_active | is_superuser | is_staff | username |      email
----+-------------------------------+-----------+--------------+----------+----------+-----------------
  1 | 2020-10-15 18:59:14.462219+00 | t         | t            | t        | admin    |<EMAIL_ADDRESS>
Would just INSERTing a user into that table at setup time be enough to get an admin user going, or would I have to do something extra? Or is there a better way of achieving the same result?

I see the password is hashed using pbkdf2_sha256 with 36000 iterations and using a salt.
How can I find out the salt so I can inject the password correctly?

I think I found the correct way. The cabotapp/cabot Docker image exposes the django-admin command:
/ # django-admin --help

Type 'django-admin help <subcommand>' for help on a specific subcommand.

Available subcommands:

[auth]
    changepassword
    createsuperuser

...

I think using createsuperuser and changepassword via django-admin is the correct answer.

Yes that's correct

I tried running:
export DJANGO_SUPERUSER_PASSWORD=my-secret-password
django-admin createsuperuser --noinput --username admin --email<EMAIL_ADDRESS>
On my Cabot installation, but the password that ends up in the database doesn't look correct, and I can't login using it.
When I look in the database the password has a different format. Normally it looks like this:
pbkdf2_sha256$36000$aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=

But now I'm seeing something like this:
!aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

In the password column. Doesn't seem right.

@dbuxton can you reopen this?
I cannot get this to work using django-admin createsuperuser. Either it doesn't respect DJANGO_SUPERUSER_PASSWORD or the format of the password it puts into auth_user table is incorrect.

I have tried running the same command twice with the same value of DJANGO_SUPERUSER_PASSWORD but the resulting value in password column is different every time. I think its ignoring DJANGO_SUPERUSER_PASSWORD.

Oh, it appears Cabot is still using a quite old 1.11.11 version of Django from March 6, 2018:
/ # django-admin version
1.11.11

https://docs.djangoproject.com/en/3.1/releases/1.11.11/
And according to this comment the support for DJANGO_SUPERUSER_PASSWORD was added in 3.0:

As of Django 3.0 (per the docs) you can use the createsuperuser --no-input option and set the password with the DJANGO_SUPERUSER_PASSWORD environment variable, e.g.
https://stackoverflow.com/a/59467275

Yep, the 1.11 documentation makes no reference to DJANGO_SUPERUSER_PASSWORD:
https://docs.djangoproject.com/en/1.11/ref/django-admin/#createsuperuser

Right you are; it looks like you have to inject in some code like this:
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin'<EMAIL_ADDRESS>'pass')" | python manage.py shell

Yes, but where do I find manage.py? I can't find it in the Docker image:
/ # find / -iname 'manage.py'
find: /proc/tty/driver: Permission denied
/ #

When I look in the module folder I see only the contents of the cabot subfolder of this repo:
/ # ls -l /usr/local/lib/python2.7/site-packages/cabot
total 144
-rw-r--r--    1 root     root           217 Jan 30  2019 __init__.py
-rw-r--r--    1 root     root           307 Jan 30  2019 __init__.pyc
-rw-r--r--    1 root     root          1361 Jan 30  2019 cabot_config.py
-rw-r--r--    1 root     root          1016 Jan 30  2019 cabot_config.pyc
drwxr-xr-x    6 root     root          4096 Jan 30  2019 cabotapp
-rw-r--r--    1 root     root           716 Jan 30  2019 celery.py
-rw-r--r--    1 root     root           974 Jan 30  2019 celery.pyc
-rw-r--r--    1 root     root           446 Jan 30  2019 celeryconfig.py
-rw-r--r--    1 root     root           616 Jan 30  2019 celeryconfig.pyc
-rw-r--r--    1 root     root           200 Jan 30  2019 context_processors.py
-rw-r--r--    1 root     root           461 Jan 30  2019 context_processors.pyc
-rw-r--r--    1 root     root           212 Jan 30  2019 entrypoint.py
-rw-r--r--    1 root     root           545 Jan 30  2019 entrypoint.pyc
-rw-r--r--    1 root     root          3868 Jan 30  2019 rest_urls.py
-rw-r--r--    1 root     root          3986 Jan 30  2019 rest_urls.pyc
-rw-r--r--    1 root     root         11436 Jan 30  2019 settings.py
-rw-r--r--    1 root     root          9903 Jan 30  2019 settings.pyc
-rw-r--r--    1 root     root           759 Jan 30  2019 settings_ldap.py
-rw-r--r--    1 root     root           858 Jan 30  2019 settings_ldap.pyc
-rw-r--r--    1 root     root           255 Jan 30  2019 settings_utils.py
-rw-r--r--    1 root     root           677 Jan 30  2019 settings_utils.pyc
drwxr-xr-x    4 root     root          4096 Jan 30  2019 templates
-rw-r--r--    1 root     root          8652 Jan 30  2019 urls.py
-rw-r--r--    1 root     root          8575 Jan 30  2019 urls.pyc
-rw-r--r--    1 root     root           141 Jan 30  2019 version.py
-rw-r--r--    1 root     root           311 Jan 30  2019 version.pyc
-rw-r--r--    1 root     root           165 Jan 30  2019 wsgi.py
-rw-r--r--    1 root     root           349 Jan 30  2019 wsgi.pyc

So it looks to me like manage.py is just not included in the image.

It appears that cabotapp/cabot image is not created from the Dockerfile in this repo but rather this one:
https://github.com/cabotapp/docker-cabot/blob/master/Dockerfile

I've opened an issue with them about missing manage.py: https://github.com/cabotapp/docker-cabot/issues/43
They have had that mentioned before in https://github.com/cabotapp/docker-cabot/issues/1 but they got around by running migrations using cabot migrate.

Actually, the contents of /usr/local/bin/django-admin are quite similar to manage.py:
/ # cat /usr/local/bin/django-admin

#!/usr/local/bin/python

# -*- coding: utf-8 -*-
import re
import sys

from django.core.management import execute_from_command_line

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(execute_from_command_line())

It works!
/ # django-admin shell
Python 2.7.15 (default, Dec 21 2018, 03:51:20)
[GCC 6.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.contrib.auth.models import User
>>> User.objects.create_superuser('admin'<EMAIL_ADDRESS>'pass')
<User: admin>

And I was able to log in.
Thanks for help @dbuxton !


How strong is the model in kyu/dan?

Excuse me if I can find this info somewhere but I wasn't able to do it. What level for the current model is estimated?

A brief answer is
A lot of strength comes down to number of playouts (which depends on time / hardware).
With even modest hardware I suspect we are 3p+ and on good hardware all the strong engines seem to be able to win regularly against 7p+

@sethtroisi 3p/7p are no longer indications of strength; they are measures of achievement.
@smolendawid We're definitely past pro level in match settings.  A github repo at one point tracked AI strength: https://github.com/breakwa11/GoAIRatings  but it doesn't appear to have been updated lately.

Great to know, congratulations to all the team. Thank for the answer

@sethtroisi by a number of playouts you mean --num_readouts? I'd like to play against a strong model but 000737-fury with 10 readouts doesn't seem too strong.

10 readouts is far too low. You should try at least 800 or 1600

And do you know how many readouts is possible on Raspberry PI in some reasonable time, let's say 5-10 sec?

I don't know about the full model. But we trained a quantized model that can be run on an Edge TPU, which is very fast: https://coral.ai/projects/minigo/


--generator=run-pod/v1 is deprecated and should be replaced

kubectl run --generator=run-pod/v1 nginx-dev --image=Nginx
should be repalced by
kubectl run nginx-dev --image=Nginx --restart=Never

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

ID: 84495e76-eca6-ddc9-989f-01c844aaa29d
Version Independent ID: de2a46f6-59c7-f4bd-c409-ea8d04741a6d
Content: Use Azure AD and RBAC for clusters - Azure Kubernetes Service
Content Source: articles/aks/azure-ad-rbac.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

@ezYakaEagle442
Thanks for the feedback! We are currently investigating and will get back on this.

@ezYakaEagle442 I discussed with doc author on updating this document. Author is checking on this doc update.
I am assigning the issue to content author.

Thank you @ezYakaEagle442 for the feedback!
I have updated the article to address your feedback and the changes should be available soon.


chore: croc-hunter-jenkinsx to 0.0.71

chore: Promote croc-hunter-jenkinsx to version 0.0.71

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


fix compatibility with node v22

replace import assert keyword with with, see https://github.com/livecycle/preevy/issues/492
upgrade azure package to support node v22

fixes #492

Is that both backward and future compatible?


Localising tenant retrival from username and getting tenant from session while authorising the admin

With https://github.com/wso2/product-is/issues/16357, we need to modify the carbon console login as $. With that change, if the user name is email type then the username should append the tenant domain.

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/5996057667

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/5996057667
Status: failure

PR builder completed Link: https://github.com/wso2/product-is/actions/runs/5996057667 Status: failure

This is because in [1] login with email would be changed, cause this produce a behavioural change,
[1]-https://github.com/wso2/product-is/blob/a4ffe1555b7d3cf18c32d86b5b05c56dd28bfd3b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/user/mgt/CARBON15051EmailLoginTestCase.java#L85

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6180585766

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6180853965

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6180585766
Status: cancelled

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6180853965
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6181744006

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6181744006
Status: cancelled

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6181972954

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6181972954
Status: success


Integrate unicore-hub SSO functionality

@miltontony Hey, I have this here. What am I doing right, wrong, and where can I go next? :+1:

@codiebeulaine reviewed the password reset bits of the PR, looks good, left some comments.

:+1:  :cake: all around!!


Removing Playlist thumbnail when adding songs

My Playlists are showing properly in app and in game, however, as soon as I add a new song to any playlist, the concerned thumbnail disapperas in app and in game. I then have to add it again manually.
Not critical at all but I also noticed that some songs which used to be in these playlist disappeared.
Don't know if it is related or if it is linked to the cache issue that already got reported.
FYI, I only have around 10 Playlist and most of them have between 20 to 40 songs.
If you need more info, feel free to let me know!
Merry Christmas in advance :)

EDIT: The missing are probably linked to the cache issue as they are no longer showing in the app so by saving the playlist, the "missing" songs get removed from the playlist I guess

This is a valid issue. I could reproduce it. I will have to fix it :) This is due to the last update.


[CT-2727] [Bug] dbt docs serve edits the manifest.json

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
When I run dbt docs serve --port 8000 it edits the manifest.json, the index.html, and the partial_parse.msgpack in the target folder.
I have verified that this edit happens by looking at the last modified timestamp on the file as well as by manually making edits to the json which then are reverted upon running docs serve.
Expected Behavior
dbt docs serve --port 8000 to not edit any files in the target folder
Steps To Reproduce
Unclear if other are able to replicate this. I'm using dbt-core=1.5.0 and dbt-bigquery=1.5.0 on linux.
These are steps I can take to replicate

opened a terminal
activate the virtual environment I use for dbt, containing dbt-core and dbt-bigquery
used cd to navigate to the dbt project folder
ran ‘dbt docs serve --port 8000’

I have a single terminal open on the local machine and am not hosting documentation. I have tried restarting the machine first.
Relevant log output
N/A

Environment
- OS: Debian 4.19.0-24-cloud-amd64
- Python: 3.7.12
- dbt:1.5.0

Which database adapter are you using with dbt?
bigquery
Additional Context
See here for original issue and discussion.

Thank you for opening this issue @Nisond !
I read through the discussion in Discourse that you linked -- thank you for including that helpful context. 🧠
It sounds like your concrete goal in this instance is to do post-processing of manifest.json and add hyperlinks to model descriptions. While trying to accomplish that, it sounds like you were surprised that dbt docs serve doesn't just use the manifest.json as-is.
Follow-up questions
Could you give an example of a model description that you'd be adding a hyperlink to?
Also, what would be the barriers to adding those hyperlinks to the descriptions directly like below?
Before
models/_models.yml
models:
  - name: legendary_creatures
    description: This description doesn't have any hyperlinks

After
models/_models.yml
models:
  - name: legendary_creatures
    description: >
      [`Legendary_creatures`](https://en.wikipedia.org/wiki/Category:Legendary_creatures) is a category on Wikipedia.
      [Deadpool](https://en.wikipedia.org/wiki/Deadpool) was listed in the top-10 as-of 2023-06-22 ([ref](https://en.wikipedia.org/wiki/Wikipedia:Popular_pages#Legendary_Creatures)).

I think this might be resolved by https://github.com/dbt-labs/dbt-core/pull/7554?

@Nisond we believe this was resolved by https://github.com/dbt-labs/dbt-core/pull/7554 and available in dbt-core 1.5.1 and onwards.
Could you give that a shot and let us know if you run into any problems?


ID. mapper

can you make it also work on the db ids?
SGD:S000003289
SGD:S000003289
SGD:S000002691
these are the only IDs I can  download from Amigo.

We're not currently loading the SGD:... IDs into Chado.  It's not a big job to load them too.

no hurry, but it would be useful. It would also be useful for Amigo to export gene names or of names but I tried every option.....

I mostly implemented it today so it should be live on Tuesday morning.

brill ;)

That's working now.

As a bonus we can now put SGD: IDs in the search box.

I updated the documentation :)


OpenAPI/Swagger JSON type schema support + many small fixes I came across

As described by https://github.com/Kotlin/dataframe/issues/142
This PR contains a custom OpenAPI -> DF Marker conversion and implementation in the Gradle- and KSP plugin.
There are also a lot of tests, but I'm not yet 100% confident I've caught every edge case (there are many...).
Docs are updated too.
Let me know if there are any major things (or minor ones, all are welcome) that need changing or if you have some more testing ideas.

okay, I looked over additionalProperties... https://swagger.io/docs/specification/data-models/dictionaries/
Let's see how I can add that

Since I changed so much I'm gonna provide a small overview of the changes I made. Might make it easier to review. I'll go through the changed files:

Linting changes (sorry, but improves readability)
Docs for OpenAPI and jsonoptions
replaced all occurrences of "splitted" with "split" because English
updated kotlinDatetime and made it api() for jupyter etc.
ImportDataSchema gained jsonOptions with typeClashTactic and keyValuePaths
starting with kdoc in some functions (more will come later)
convertTo

convertIf in dsl: way more powerful than convert(KType, KType), allows you to specify via a condition function whether you want to do a certain conversion and provides fromType and toSchema in ConverterScope. convert still has priority over convertIf
convertTo can now happen for any empty df (both 0 rows or 0 columns)
manual converters can now happen for any type of target column, not just value columns. user conversion happens before df conversion making some conversions that were previously impossible possible.
Value columns of datarows can become column groups, same as value columns with all nulls.
value columns of dataframes can become frame columns
absent columns can be created iff it's a nullable typed value column, DataRow<Something?> for a group column or frame column.

containsNoData() helper function (created that once but don't use it anymore, might still be useful? opinion needed)
enums can implement DataSchemaEnum to control how they are (en/de)coded from/to datasets instead of using just their name
code generation can now generate enums and type aliases too
DefaultReadDfMethod now provides actual Marker instead of just a name
nullability helpers for FieldType
bugfix for MarkersExtractor regarding nullableProperties
contains in BaseColumn is now operator fun
Bugfix for concat of DataFrames without columns (rows must still count up, else schema conversions will break)
String+Number can become Comparable, this was always the case but order dependent. That now always gives the same result thanks to a bugfix in commonParents() and commonType()
ISO_DATE_TIME support in parser from string
CodeGenerator.Companion.urlReader is now split into urlDfReader and urlCodeGenReader where the former is used to generate a dataframe from the data and types from that, while the latter directly generates types (for openapi)
Similar split for SupportedFormat into SupportedDataFrameFormat and SupportedCodeGenerationFormat
createColumn()

bugfix for empty iterables always making column groups. Now uses guesstype or creates value column
bugfix for iterables with just nulls always making a frame column, now also uses guesstype or creates value column
can now create Column group with iterable of datarows too

small fix in printing newlines of data schemas
createEmptyColumn and createEmptyDataFrame variants with numberOfRows
ColumnSchema, aside from type now also has contentType for extra type info for Group- and Frame columns (instead of just getting DataRow<*> or DataFrame<*>. Very useful for new convertIf method. intersectSchema also tries to merge these contentTypes if possible. extractSchema will make them Any?.
toSnakeCase() helper function
TODO more...


WIP: Remove Tensorflow dep in grpc remote models.

This PR remove the dependency on tensorflow when using the remote grpc models.

The needed protos are added to the repo, Not sure if we need these in the future but there is an edited version of the prediction_service.proto because we only use the predict api so removing the other apis means fewer _pb2.py files are needed.
There is a script that can build these protos but again probably not needed
The _pb2.py files are committed.
Remote services are updated to use these to build tensor protos rather than using tensorflow for it.

This needs more testing before it can be merged

I am going to close this for now as we are moving toward a 2.0 release ASAP


Add trace headers if not provided in response

Description

Updated http tracing middleware to add trace headers to response if it's absent
Updated unit tests

Issue reference
Please reference the issue this PR will close: #1677
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[ ] Created/updated tests
[x] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs #[654]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

TO-DO:

Add this logic to gRPC tracing middleware as well
Add doc on how to use this trace header from response

@shalabhms isn't it good to merge this logic to  this middleware? If possible, it is good to place it to the same place.

@shalabhms isn't it good to merge this logic to this middleware? If possible, it is good to place it to the same place.

Yes it is and that was our first approach and we picked this one due to grpc path. This commit  is the step paved for to take care of things in middleware only. I am currently looking for as how safely we can move that code and merge in the middleware.

/ok-to-test

/ok-to-test

lgtm. @youngbupark , could you please take a re-look ?


Implemented Auxiliary Chain model and related test cases.

Fixes #54

Looks like Travis is facing some problems downloading nvm dependencies. Have verified that these test cases run successfully on local machine.


Cannot get any data into any Post method

I have a very simple controller method
@Post("/register")     register(@Req() request: any, @Res() response: any) { console.log(JSON.stringify(request.body)); return "";      }
and I'm trying to pass in some post data using the curl CLI iunder windows:
curl -X POST -H "Content-Type: application/json" -d "{ \"email\"<EMAIL_ADDRESS>\"name\": \"john\", \"password\": \"1\" }" localhost:8080/api/auth/register
Somehow I cannot for the life of me get any of the data to come through i.e. the body is  a l w a y s  empty.
I have absolutely no idea where the problem is as the @Get methods work no problem.
Please advise.
Thansk you so much.

Right, so it turned out to be partially an express.js issue - where the bodyParser needs to be registered in the right order to other middlware e.g. router. I have opted to switch from createExpressServer() to useExpressServer() to have more control of the initialization process. I suspect the createES() method has an issue somewhere.
Anyway, hope it;ll help someone as I was going a little bit mad.

Express 4.x is modular so you need to have eg. body-parser and cookie-parser installed and loaded explicitly by yourself. It's not routing-controllers fault, it's just how the express behave itself, so I think the issue could be closed now.

That is correct. Thanks for the input.


Cannot create file/folder wrong path

VSCode Version: 1.31.1 (1.31.1)
OS Version: maxOS Mojave 10.14.3

Steps to Reproduce:

when I want to create file/floder
new file/ new floder  in wrong path
U can check my pointer was in 'pages'    btw my vscode setting  'a' -create new file  'shift+a' create new floder
when I want to create a new file in '/pages'
point jump in '/pages/admin'  but I just want to create new file in '/pages/'
btw I ready setting '"workbench.list.keyboardNavigation": "simple",'

Does this issue occur when all extensions are disabled?: Yes/No

Dup of https://github.com/Microsoft/vscode/issues/68574


[IgnoredReturnValue] Add returnType?.isNothing() check

Fixes https://github.com/detekt/detekt/issues/7765

Warnings

:warning:
This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

  Generated by :no_entry_sign: dangerJS against 4c9189c7c4367c34e17db9dd626aa8a57f704755


VS code show experimental features as errors

Description:
VS Code shows experimental features as syntax errors.

Affected Versions:
0.990.0

Enable the Allow Experimental flag in VSCode plugin in order to support the experimental features in Language Server.

Hence closing the issue


Translate docs for ja

I translated docs with Githbook style.
https://github.com/GitbookIO/gitbook#multi-languages
I hope that is merge this PR. :)

ありがとう!


⚠ Bofrost.es has degraded performance

In 20900d2, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2088 ms

Resolved: Bofrost.es performance has improved in 8299014 after 6 minutes.


activeTintColor and inactiveTintColor doesn't take effect

After updating to 0.4.0, it fixes things like tabBarVisible but now the activeTintColor and inactiveTintColor doesn't take effect on labels. The tabIcons are able to handle it because it is a component and I change colors if focused is true or false. Anyone can help me with this?
Here's my code:
const BottomNav = createMaterialBottomTabNavigator({
  Home: {
    screen: HomeStack,
    navigationOptions: ({navigation}) => ({
      tabBarLabel: 'Home',
      tabBarIcon: ({ focused }) => <Icon name='home' style={{ fontSize: PixelRatio.getPixelSizeForLayoutSize(10) }} color={setColorIfFocused(focused)} />
    })
  },
  Friends: {
    screen: FriendsStack,
    navigationOptions: ({navigation}) => ({
      tabBarLabel: 'Friends',
      tabBarIcon: ({ focused }) => <Icon name='people' style={{ fontSize: PixelRatio.getPixelSizeForLayoutSize(10) }} color={setColorIfFocused(focused)} />
    })
  },
  Notifications: {
    screen: NotificationsStack,
    navigationOptions: ({navigation}) => ({
      tabBarLabel: 'Notifications',
      tabBarIcon: ({ focused }) => <Icon name='notifications' style={{ fontSize: PixelRatio.getPixelSizeForLayoutSize(10) }} color={setColorIfFocused(focused)} />
    })
  },
  Profile: {
    screen: ProfileStack,
    navigationOptions: ({navigation}) => ({
      tabBarLabel: 'Profile',
      tabBarIcon: ({ focused }) => <Icon name='person' style={{ fontSize: PixelRatio.getPixelSizeForLayoutSize(10) }} color={setColorIfFocused(focused)} />
    })
  },
},{
  activeTintColor: '#f0edf6',
  inactiveTintColor: '#3e2465',
});

@jandrell-formoso which version of react-native-paper do you have installed?

@jandrell-formoso which version of react-native-paper do you have installed?

"react-native-paper": "^1.11.1"

This package requires at least version 2.0.1. This props weren't supported in React native paper 1x

Thank you @satya164 ! It now works 👍


fix import in PyARMViz.py

Fix import in PyARMViz.py

Hi!
Please vote for my contribution to the project (https://github.com/Mazeofthemind/PyARMViz/pull/22).
I want to solve this problem for other users.
I tried to contact the repository owner via gmail.


Put the error message in the activity log when dragging and dropping files to the file share snapshot's editor

Storage Explorer Version: 1.15.0-dev
Build: 20200806.6
Branch: master
Platform/OS: Windows 10/ CentOS 7.6.1810 (Core) / MacOS Catalina
Architecture: ia32/x64
Regression From: Not a regression
Steps to reproduce:

Expand one storage account -> File Shares.
Create a file share -> Click 'View Share Snapshots' button on its toolbar.
Drag and drop one file to the current editor -> Check the result.

Expect Experience:
The error message shows in the activity log.
Actual Experience:
The error message shows in an information bar.

More Info:
For blobs, the error message shows in the activity log.

Fix merged into main

Fix merged into main


does not print Arabic text

First please check that your printer has an Arabic font installed. Just print a test page using the buttons on your printer. In the output, you MUST see Arabic characters.
If in the test page of your printer you see Arabic characters then you probably need to implement your custom character mapper based on the code table of your printer. You have to implement your mapper similar to the WCharMapperCT42
class. Please pay attention to the code below. By the way what is your printer? I can help you more if I know your printer brand? And please keep in mind that if you are printing English fine the you need to implement a character mapper such as the WCharMapperCT42 class.
public class printerFactory {
    ....

    public static WCharMapperCT42 getActiveCharMapper(Context context) {
        /*Pay attention that based on the Farsi/Arabic font that is installed on the device you may need to
          pick another mapper to print Farsi/Arabic correctly. For printing English, most of the fonts
          are consistent with mappers.*/

        if (PrefMng.getActivePrinter(context)==PrefMng.PRN_WOOSIM_SELECTED)
            return new WCharMapperCT42();

        if (PrefMng.getActivePrinter(context)==PrefMng.PRN_RONGTA_SELECTED)
            return new WCharMapperRongtaDef();

        //Bixolon printer mapper. The mapper also used for all other printers not listed above.
        return new WCharMapperBixolonDef();
    }

....
}

First please check that your printer has an Arabic font installed. Just print a test page using the buttons on your printer. In the output, you MUST see Arabic characters.
If in the test page of your printer you see Arabic characters then you probably need to implement your custom character mapper based on the code table of your printer. You have to implement your mapper similar to the WCharMapperCT42 class. Please pay attention to the code below. By the way what is your printer? I can help you more if I know your printer brand? And please keep in mind that if you are printing English fine the you need to implement a character mapper such as the WCharMapperCT42 class.
public class printerFactory {
    ....

    public static WCharMapperCT42 getActiveCharMapper(Context context) {
        /*Pay attention that based on the Farsi/Arabic font that is installed on the device you may need to
          pick another mapper to print Farsi/Arabic correctly. For printing English, most of the fonts
          are consistent with mappers.*/

        if (PrefMng.getActivePrinter(context)==PrefMng.PRN_WOOSIM_SELECTED)
            return new WCharMapperCT42();

        if (PrefMng.getActivePrinter(context)==PrefMng.PRN_RONGTA_SELECTED)
            return new WCharMapperRongtaDef();

        //Bixolon printer mapper. The mapper also used for all other printers not listed above.
        return new WCharMapperBixolonDef();
    }

....
}

Hi saeed i am facing issue regarding arabic. it did appear as blank. my device is sunmi. and it support arabic.

First please check that your printer has an Arabic font installed. Just print a test page using the buttons on your printer. In the output, you MUST see Arabic characters.
If in the test page of your printer you see Arabic characters then you probably need to implement your custom character mapper based on the code table of your printer. You have to implement your mapper similar to the WCharMapperCT42 class. Please pay attention to the code below. By the way what is your printer? I can help you more if I know your printer brand? And please keep in mind that if you are printing English fine the you need to implement a character mapper such as the WCharMapperCT42 class.
public class printerFactory {
    ....

    public static WCharMapperCT42 getActiveCharMapper(Context context) {
        /*Pay attention that based on the Farsi/Arabic font that is installed on the device you may need to
          pick another mapper to print Farsi/Arabic correctly. For printing English, most of the fonts
          are consistent with mappers.*/

        if (PrefMng.getActivePrinter(context)==PrefMng.PRN_WOOSIM_SELECTED)
            return new WCharMapperCT42();

        if (PrefMng.getActivePrinter(context)==PrefMng.PRN_RONGTA_SELECTED)
            return new WCharMapperRongtaDef();

        //Bixolon printer mapper. The mapper also used for all other printers not listed above.
        return new WCharMapperBixolonDef();
    }

....
}

Hi saeed i am facing issue regarding arabic. it did appear as blank. my device is sunmi. and it support arabic.

sorry it appear as chinese type character

Do you see Arabic characters on the test page?
Le samedi 18 décembre 2021, 15 h 20 min 18 s UTC+3:30, Nouman Shehzad @.***> a écrit :
First please check that your printer has an Arabic font installed. Just print a test page using the buttons on your printer. In the output, you MUST see Arabic characters.
If in the test page of your printer you see Arabic characters then you probably need to implement your custom character mapper based on the code table of your printer. You have to implement your mapper similar to the WCharMapperCT42 class. Please pay attention to the code below. By the way what is your printer? I can help you more if I know your printer brand? And please keep in mind that if you are printing English fine the you need to implement a character mapper such as the WCharMapperCT42 class.
public class printerFactory {
....
public static WCharMapperCT42 getActiveCharMapper(Context context) {
    /*Pay attention that based on the Farsi/Arabic font that is installed on the device you may need to
      pick another mapper to print Farsi/Arabic correctly. For printing English, most of the fonts
      are consistent with mappers.*/

    if (PrefMng.getActivePrinter(context)==PrefMng.PRN_WOOSIM_SELECTED)
        return new WCharMapperCT42();

    if (PrefMng.getActivePrinter(context)==PrefMng.PRN_RONGTA_SELECTED)
        return new WCharMapperRongtaDef();

    //Bixolon printer mapper. The mapper also used for all other printers not listed above.
    return new WCharMapperBixolonDef();
}

....
}
Hi saeed i am facing issue regarding arabic. it did appear as blank. my device is sunmi. and it support arabic.
sorry it appear as chinese type character
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: @.***>


withMutations without using set in mutator safe to use?

We have noticed that you don't have to use set withing your withMutations mutator
car.withMutations(t => {
  t.color = "red";
  t.brand = "Volvo";
});

The benefit for us is that we get the typing since we use typescript. But Is this safe to use?

It appears to be a safe, but currently undocumented, feature. Under the hood it just calls 'set'.

Specifically only for Records, yes it is an experimental feature


Uppercase Letters in cluster name gives error in consumers

Burrow has issues reading the consumers from a cluster with uppercase letters in the name. The cluster is recognized, including the topics but when the consumer endpoints is hit, it returns an empty array.
While this happens, burrow outputs warn level logs as follow
{     "level": "warn",     "ts":<PHONE_NUMBER>.5585341,     "msg": "unknown cluster",     "type": "module",     "coordinator": "storage",     "class": "inmemory",     "name": "default",     "worker": 6,     "cluster": "Module-Core-Kafka-Cluster",     "consumer": "claims-intake-java",     "topic": "test-topic",     "partition": 27,     "topic_partition_count": 0,     "offset": 8741,     "timestamp":<PHONE_NUMBER>000,     "owner": "",     "client_id": "",     "request": "StorageSetConsumerOffset" }
That consumer should be in the correct cluster but it shows as unknown. This does not happen when the cluster's name is fully lower case. I need to set burrow in production and the cluster name can not be changed as I am using Amazon MSK.
If it has a workaround apart from changing the name, please help me out. Or it has to get fixed

capital

Upper case*

+1


Scratch org creation hangs when sfdx fails due to socket timeout

Describe the bug
sfdx force:org:create fails with error - Socket timeout occurred while listening for results but CumulusCI doesn't handle the error and hangs. CumulusCI should capture the error and retry.
Reference: https://trailblazer.salesforce.com/issues_view?id=a1p4V000001U1BhQAK
Reproduction steps
Unable to provide a reliable reproduction steps since this is randomly occurring in our CI.
Your CumulusCI and Python versions
cci 3.43
Python 3.9
sfdx 7.116.2
Operating System
dockerized debian slim (official py39 image)
Windows environment

[ ] Command Prompt
[ ] PowerShell
[ ] Bash on Windows
[ ] WSL

CumulusCI installation method
pip
Error Gist
No response
Additional information
No response

Related to https://github.com/forcedotcom/cli/issues/1149

Closing as underlying SFDX bug has been fixed - please reopen if this issue occurs again.


Update to tendermint-rs v0.22 crates

Release notes:
https://github.com/informalsystems/tendermint-rs/blob/master/CHANGELOG.md#v0220

@jkilpatr I might look at doing one other small refactoring PR first, but other than that it's good to go


Permission error in linux

When I use flutter run -d linux -v, this error appears:
[        ] CMake Error at cmake_install.cmake:66 (file):
[   +1 ms]   file INSTALL cannot copy file
[        ]   "/home/codedoctor/Dokumente/Flow/app/build/linux/x64/debug/intermediates_do_not_run/app"
[        ]   to "/usr/local/app": Permission denied.

 I can't imagine how that error message is related to the plugin?

This are the only error that I get. If I remove the plugin, everything works fine.

I've did a quick google for that error message and just found two problems reported, and both suggest running flutter clean - did you try that?
https://github.com/flutter/flutter/issues/59890
https://github.com/flutter/flutter/issues/73881#issuecomment-760216098

Oh thanks. After reboot it works and flutter clean it works.


cross fails with "failed to create directory - file exists"

Steps to reproduce:
mkdir -p /tmp/.cargo
rm -rf ~/.cargo
ln -sT /tmp/.cargo ~/.cargo
git clone https://github.com/zserik/crulz-rs.git
cd crulz-rs
git checkout 754196bbbc4d99ed6634e83b8e3d2b7571ce7209
cross check --target armv7-unknown-linux-musleabihf

(working directory (should be rather irrelevant) is equivalent to: https://github.com/zserik/crulz-rs/tree/754196bbbc4d99ed6634e83b8e3d2b7571ce7209)
It happens when either $CARGO_HOME, $CARGO_HOME/registry, $CARGO_HOME/registry/cache or $CARGO_HOME/registry/index (or multiple of them) are symlinks.
I tried to run (with the same target):

cross check
cross clippy
cross build
cross build --release

I got the following error:
error: failed to create directory `/cargo/registry/cache/github.com-1ecc6299db9ec823`
error: failed to create directory `/cargo/registry/index/github.com-1ecc6299db9ec823`

Caused by:
  File exists (os error 17)

It happens when either $CARGO_HOME, $CARGO_HOME/registry or $CARGO_HOME/registry/index (or multiple of them) are symlinks.

e.g. there should be an option to specify additional path mappings/mounts for docker.

You can now use [build.env] or [target.(...).env] to specify additional bind mounts for the Docker container, as documented here. You can also use DOCKER_OPTS if absolutely needed to  provide raw arguments to Docker, in case the configurations above (which uses the --volume keyword) isn't above. I'll see if I can find a workaround for mounting a cargo install that is a symlink.

This doesn't reproduce anymore, but there are other issues: if there isn't various different binaries available, then it will fail. A simple example that works is:
$ mkdir registry
$ export CARGO_HOME=$(realpath registry)/.cargo
$ export XARGO_HOME=$(realpath registry)/.xargo
$ ln -s ~/.cargo "${CARGO_HOME}"
$ ln -s ~/.xargo "${XARGO_HOME}"
$ git clone https://github.com/cross-rs/rust-cpp-hello-word
$ cd rust-cpp-hello-word
$ cargo build                                           # works
$  cross build --target aarch64-unknown-linux-gnu       # also just works

There is, however, an unrelated issue with podman, which has permissions errors. Entering the container using the build command, we can see that they're mounted with root permissions.
$ ls -la / | grep argo
drwxrwxr-x.   1 root   root     164 Jul  3 22:57 cargo
drwxrwxr-x.   1 root   root       6 Jun  2 03:36 xargo

Meanwhile, in Docker, they're mounted as the current user:
ls -la / | grep argo
drwxrwxr-x.   1 1000 1000  164 Jul  3 22:57 cargo
drwxrwxr-x.   1 1000 1000    6 Jun  2 03:36 xargo


Expose ALB Listener Rule internals

The listener rule may be used to add more conditions, such as custom header matching or path matching.
Also uses the new conditions property, which replaced the deprecated hostHeader property.

:tada: This PR is included in version 1.53.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


cargo build --all-targets executes build.rs twice in beta and nightly

build.rs
Repro
clone https://github.com/stepancheg/cargo-build-rs-twice
cd cargo-build-rs-twice
Stable:
% rm xx/*; cargo +stable build --all-targets && ls xx/
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling libc v0.2.41
   Compiling fgfgf v0.1.0 (file:///Users/nga/tmp/cargo-build-rs-twice)
    Finished dev [unoptimized + debuginfo] target(s) in 2.59 secs
50421

Nightly:
% rm xx/*; cargo +nightly build --all-targets && ls xx/
   Compiling libc v0.2.41
   Compiling fgfgf v0.1.0 (file:///Users/nga/tmp/cargo-build-rs-twice)
    Finished dev [unoptimized + debuginfo] target(s) in 2.85s
50513	50514

build.rs writes a pid file into xx/ directory.
Two pid files in xx directory mean that build.rs was executed twice in nightly.
% cargo +nightly version
cargo 1.28.0-nightly (f352115d5 2018-05-15)
% cargo +stable version
cargo 1.26.0 (0e7c5a931 2018-04-06)

This is sort-of intentional behavior change. When executing build scripts, Cargo passes env-vars like PROFILE, OPT_LEVEL and such, which could be different for lib, tests and becnhmarks. Previously, cargo executed build.rs once, but that could have been wrong.
@ehuss @alexcrichton we've decided that this is an ok change of behavior, but probably it isn't? I certainly see how this could be surprising, and that in the common case, when build.rs does not inspect those env-vars, this could lead to genuinely duplicated work as well.

cc https://github.com/rust-lang/cargo/pull/5384, which introduced the changes.

Related to #4929 there's a question about how build should handle benchmarks if you don't specify --release.  If we built them in dev mode, that would fix this issue†.  I'm warming up to that idea, it would be more consistent.  It would also provide a means to more easily debug a benchmark if they desire.  I imagine it is rare that someone will try to build a benchmark and then run it manually (unless there is some IDE that does this instead of running bench?).  build --release --bench ... would continue to use the "bench" profile.
I'm not sure how surprising build --benches building with "test" profile would be.
Let me know what the cargo team thinks of that idea, and I can work on it.
† Overridden test profile with different debug or opt-level would still trigger this behavior.


Can the API Key and secret be made optional? I just want to read the public channel data

Currently I am using this module to collect public sockets data but without the key and secret, the client object does not seem to get any data from the exchange. Is there a way to provide None objects? or no key to the client class and still use this to get public channel data from binance?

In theory they are already optional. There is no validation of the provided key and secret so you can pass empty string.s Any public call will work and those requiring the key and secret will return with an error.
Example:
from binance.client import Client client = Client("","") response="client.get_symbol_info(symbol="ETHBTC") print(response)

Thanks for the info. I had issues getting the data on the binance websockets.


Update README for sui-framework

We still have references of Diem and no mention of sui-move
https://github.com/MystenLabs/sui/tree/main/crates/sui-framework

Yeah, I've never touched (or even seen) this README. Asking @sblackshear and @awelc for guidance as I'm not sure what replaces: https://github.com/diem/diem move-cli
We have Move docs now in:
https://github.com/move-language/move
And a SUI CLI (formerly wallet) coming in:
https://github.com/MystenLabs/sui/pull/2786
So what replaces move-cli? Also, I imagine the sui_programmability/framework path under Building should also be updated to reflect all of the crates-related moving we've been doing:
claymurphy@Clays-MacBook-Pro sui % cd sui_programmability
claymurphy@Clays-MacBook-Pro sui_programmability % ls
examples
claymurphy@Clays-MacBook-Pro sui_programmability % pwd
/Users/claymurphy/sui/sui_programmability
claymurphy@Clays-MacBook-Pro sui_programmability %

All, please advise. We truly need to better coordinate all of these changes and docs...

@Clay-Mysten sorry, I've assigned this buddy to you by default hoping you can ping one of us. We want to use sui-move here and not the move CLI (the latter just won't compile). I can take it.

Thanks @damirka. Please note, sui move is going away in:
https://github.com/MystenLabs/sui/pull/2786/
Now that I know the intent, I will start the update by merely replacing the manual work with our existing install docs.

Please take a look:
https://github.com/MystenLabs/sui/pull/2868

Thanks to @huitseeker for his approval. Glad to have you back!


Robot client migration (Arduino Mega -> ESP32)

not ready for merge but just want to have a PR to see whats going on here and prepare to merge soon

thank you for updating the docs 🙏🏾


How get view template for Mail in Repository Class

private class MySaveHandler : SaveRequestHandler<MyRow>
    {
        protected override void AfterSave()
        {
            base.AfterSave();
            var emailModel = new OrderEmailModel();
            emailModel.RequestedBy = Connection.ById<UserRow>(Row.UserId).DisplayName;
            emailModel.UrgencyLevel = Connection.ById<UrgencyChoicesRow>(Row.UrgencyLevel).Name;
            emailModel.Line = Connection.ById<LineChoicesRow>(Row.Line).Name;
            emailModel.Facility = Connection.ById<FacilityChoicesRow>(Row.Facility).Name;

            if (Row.DetailList != null)
            {
                List<OrderDetailsEmailModel> ordDetails = new List<OrderDetailsEmailModel>();
                foreach (var item in Row.DetailList)
                {
                    OrderDetailsEmailModel ordDetail = new OrderDetailsEmailModel();
                    ordDetail.PartNo = item.ItemName;
                    ordDetail.Description = item.Description;
                    ordDetail.Vendor = item.Vendor;
                    ordDetail.Cost = item.Cost == null ? "" : item.Cost.ToString();
                    ordDetail.Quantity = item.Quantity == null ? "" : item.Quantity.ToString();
                    ordDetails.Add(ordDetail);
                }
                emailModel.OrderDetails = ordDetails;
            }

            var emailSubject = "Order " + Row.OrderId + " - Pending Approval";
            string emailBody = TemplateHelper.RenderViewToString(HttpContext.RequestServices,
                MVC.Views.ManageOrders.Orders.OrderEmail, emailModel);
            var email =<EMAIL_ADDRESS>            Common.EmailHelper.Send(emailSubject, emailBody, email,"abc");
        }
    }

I am getting error in "HttpContext.RequestServices"

It would help to know what error you are getting - not just where you are getting an error .
HttpContext.RequestServices might be null ..

it may be, because u dont have httpcontext.
that happens, if you are running bkg tasks for example.
in that case, u have to fake that http context

Closed due inactivity
Also check the issue guidelines.
If you still need help, you can ask this on stackoverflow with our new tag.
https://stackoverflow.com/tags/serenity-platform


Rewrite url handling

Should be some more options to overwrite the base url. Clean up and centralize the URL handling inside of typemill.
Options for example:

Use X-Forwarded Header (checkbox)
Use absolute URLs (standard)
Use relative URLs
Use relative URLs with base-folder.
Use own base-URL

postponed to version 1.4.2

not relevant anymore.


update(team): updated the teams to reflect Los Angeles Rams

@BurntSushi hey Andrew, I've updated the STL Rams to LA Rams, the abbreviation seems to LA, that is what nfl.com uses. Please verify and merge if all is well. Thanks.
Also if you could let us know when the next build will be sent to pip install repo. Thanks.

I am probably not going to get around to it until at least next week.

Thanks for the PR though! I'll look into merging soon.

I agree that LA must be added, but I'm thinking that STL should be retained as a permanent member of the teams list since there have been 7 seasons of games played by that team in nflgame.
If they are kept, could probably add an edge case to update_players script to avoid trying to hit the non-existent http://www.nfl.com/teams/roster?team=STL roster page.

I'm going to go with @ochawkeye's idea for now. I didn't really design nflgame with the idea that team names might change over time, so we'll have to live with hacks for now.


Items show not in time order, but in order in json

If the data is not in time order, as the slider is moved appear in the order presented in the json. This may be hard to work around, but should be noted in the ReadMe.
This can be demonstrated by moving one of the Features from near the bottom to the top in the demo. It's easy to see because the sample is of something moving more or less in a line across the page.
This Stackoverflow discussion  describes a fix. Maybe it could be used to add an option to sort.
If I could get it working for my own case maybe I could be more specific. But I'm lost in Leaflet and JS at the moment.

Feel free to submit a pull request if you managed to integrate the sort function properly in the code :-)


Switch to firefox from google-chrome

I want to switch from google-chrome to firefox

I forgot that I have to change the groups icons from google chrome to firefox nerd font icon

And in the openbox config now have the google-chrome keybinding, it will be changed to firefox


[CI,troubleshooting] Struggling to get veriblelint CI tests working locally.

In working with @mwbranstad to clean up an urgent PR: https://github.com/lowRISC/opentitan/pull/3004, I'm trying to address the CI errors.  The failing CI check says that I need to run the following command:
util/dvsim/dvsim.py -t veriblelint hw/top_earlgrey/lint/top_earlgrey_lint_cfgs.hjson

After working with @cindychip and @msfschaffner on (slack) it was noted that I didn't have verible installed.  I do now, and for good measure, I've gone through the installation instructions another time to be sure that everything is functional.  I am now getting the following errors:
INFO: [LintCfg] looking for result data file at /home/martin/devel/opentitan/scratch/rv_plic_example.lint.veriblelint/espkg/default/results.hjson
INFO: [LintCfg] [results page]: [rv_plic_example] [/home/martin/devel/opentitan/scratch/rv_plic_example.lint.veriblelint/espkg/results_Thu.09.10.20__05.35.24AM.md]
INFO: [FlowCfg] [results]: [rv_plic_example]:
## RV_PLIC_EXAMPLE Style Lint Results

### Thursday September 10 2020 05:35:24AM UTC
### Revision: [`47bdd1c`](https://github.com/lowrisc/opentitan/tree/47bdd1cc553fdff7703078303157429fa03a91d1) on `espkg`
### Lint Tool: VERIBLELINT

|  Build Mode  |  Tool Warnings  |  Tool Errors  |  Lint Warnings  |  Lint Errors  |
|:------------:|:---------------:|:-------------:|:---------------:|:-------------:|
|   default    |       0 W       |      1 E      |       0 W       |      0 E      |

### Errors and Warnings for Build Mode `'default'`
#### Tool Errors
ERROR: Setup failed : "python3 /home/martin/devel/opentitan/hw/ip/prim/util/primgen.py /home/martin/devel/opentitan/scratch/rv_plic_example.lint.veriblelint/espkg/default/lint-veriblelint/generated/lowrisc_prim_clock_mux2-impl_0/impl_input.yml" exited with an error code. See stderr for details.

This then leads to failures in all tests:
|                                                     Name                                                     |  Tool Warnings  |  Tool Errors  |  Lint Warnings  |  Lint Errors  |
|:------------------------------------------------------------------------------------------------------------:|:---------------:|:-------------:|:---------------:|:-------------:|
|             [AES](https://reports.opentitan.org/hw/ip/aes/lint/veriblelint/latest/results.html)              |       0 W       |      1 E      |       0 W       |      0 E      |
|   [ALERT_HANDLER](https://reports.opentitan.org/hw/ip/alert_handler/lint/veriblelint/latest/results.html)    |       0 W       |      1 E      |       0 W       |      0 E      |
|     [ENTROPY_SRC](https://reports.opentitan.org/hw/ip/entropy_src/lint/veriblelint/latest/results.html)      |       0 W       |      1 E      |       0 W       |      0 E      |
|      [FLASH_CTRL](https://reports.opentitan.org/hw/ip/flash_ctrl/lint/veriblelint/latest/results.html)       |       0 W       |      1 E      |       0 W       |      0 E      |
|            [GPIO](https://reports.opentitan.org/hw/ip/gpio/lint/veriblelint/latest/results.html)             |       0 W       |      1 E      |       0 W       |      0 E      |
|            [HMAC](https://reports.opentitan.org/hw/ip/hmac/lint/veriblelint/latest/results.html)             |       0 W       |      1 E      |       0 W       |      0 E      |
|             [I2C](https://reports.opentitan.org/hw/ip/i2c/lint/veriblelint/latest/results.html)              |       0 W       |      1 E      |       0 W       |      0 E      |
|         [NMI_GEN](https://reports.opentitan.org/hw/ip/nmi_gen/lint/veriblelint/latest/results.html)          |       0 W       |      1 E      |       0 W       |      0 E      |
|            [OTBN](https://reports.opentitan.org/hw/ip/otbn/lint/veriblelint/latest/results.html)             |       0 W       |      1 E      |       0 W       |      0 E      |
|         [PADCTRL](https://reports.opentitan.org/hw/ip/padctrl/lint/veriblelint/latest/results.html)          |       0 W       |      1 E      |       0 W       |      0 E      |
|          [PINMUX](https://reports.opentitan.org/hw/ip/pinmux/lint/veriblelint/latest/results.html)           |       0 W       |      1 E      |       0 W       |      0 E      |
|    [RV_CORE_IBEX](https://reports.opentitan.org/hw/ip/rv_core_ibex/lint/veriblelint/latest/results.html)     |       0 W       |      1 E      |       0 W       |      0 E      |
|           [RV_DM](https://reports.opentitan.org/hw/ip/rv_dm/lint/veriblelint/latest/results.html)            |       0 W       |      1 E      |       0 W       |      0 E      |
| [RV_PLIC_EXAMPLE](https://reports.opentitan.org/hw/ip/rv_plic_example/lint/veriblelint/latest/results.html)  |       0 W       |      1 E      |       0 W       |      0 E      |
|        [RV_TIMER](https://reports.opentitan.org/hw/ip/rv_timer/lint/veriblelint/latest/results.html)         |       0 W       |      1 E      |       0 W       |      0 E      |
|      [SPI_DEVICE](https://reports.opentitan.org/hw/ip/spi_device/lint/veriblelint/latest/results.html)       |       0 W       |      1 E      |       0 W       |      0 E      |
|            [UART](https://reports.opentitan.org/hw/ip/uart/lint/veriblelint/latest/results.html)             |       0 W       |      1 E      |       0 W       |      0 E      |
|          [USBDEV](https://reports.opentitan.org/hw/ip/usbdev/lint/veriblelint/latest/results.html)           |       0 W       |      1 E      |       0 W       |      0 E      |
|    [USB_FS_NB_PE](https://reports.opentitan.org/hw/ip/usb_fs_nb_pe/lint/veriblelint/latest/results.html)     |       0 W       |      1 E      |       0 W       |      0 E      |
|         [USBUART](https://reports.opentitan.org/hw/ip/usbuart/lint/veriblelint/latest/results.html)          |       0 W       |      1 E      |       0 W       |      0 E      |
|     [SOCKET_1N](https://reports.opentitan.org/hw/ip/tlul/socket_1n/lint/veriblelint/latest/results.html)     |       0 W       |      1 E      |       0 W       |      0 E      |
|     [SOCKET_M1](https://reports.opentitan.org/hw/ip/tlul/socket_m1/lint/veriblelint/latest/results.html)     |       0 W       |      1 E      |       0 W       |      0 E      |
|   [ADAPTER_REG](https://reports.opentitan.org/hw/ip/tlul/adapter_reg/lint/veriblelint/latest/results.html)   |       0 W       |      1 E      |       0 W       |      0 E      |
|  [ADAPTER_SRAM](https://reports.opentitan.org/hw/ip/tlul/adapter_sram/lint/veriblelint/latest/results.html)  |       0 W       |      1 E      |       0 W       |      0 E      |
|     [SRAM2TLUL](https://reports.opentitan.org/hw/ip/tlul/sram2tlul/lint/veriblelint/latest/results.html)     |       0 W       |      1 E      |       0 W       |      0 E      |
|      [TOP_EARLGREY](https://reports.opentitan.org/hw/top_earlgrey/lint/veriblelint/latest/results.html)      |       0 W       |      1 E      |       0 W       |      0 E      |
| [TOP_EARLGREY_ASIC](https://reports.opentitan.org/hw/top_earlgrey_asic/lint/veriblelint/latest/results.html) |       0 W       |      1 E      |       0 W       |      0 E      |

Digging deeper, when I try the failing command in dvsim:
python3 /home/martin/devel/opentitan/hw/ip/prim/util/primgen.py /home/martin/devel/opentitan/scratch/usbuart.lint.veriblelint/espkg/default/lint-veriblelint/generated/lowrisc_prim_clock_mux2-impl_0/impl_input.yml

I get the following errors:
martin@mudita:~/devel/opentitan$ python3 /home/martin/devel/opentitan/hw/ip/prim/util/primgen.py /home/martin/devel/opentitan/scratch/top_earlgrey_asic.lint.veriblelint/master/default/lint-veriblelint/generated/lowrisc_prim_clock_buf-impl_0/impl_input.yml
Implementations for primitive clock_buf: generic
Inspecting generic module /home/martin/devel/opentitan/hw/ip/prim_generic/rtl/prim_generic_clock_buf.sv
Creating SystemVerilog module for abstract primitive
Abstract primitive written to /home/martin/devel/opentitan/prim_clock_buf.sv
Creating core file for primitive clock_buf.
Traceback (most recent call last):
  File "/home/martin/devel/opentitan/hw/ip/prim/util/primgen.py", line 411, in <module>
    main()
  File "/home/martin/devel/opentitan/hw/ip/prim/util/primgen.py", line 403, in main
    return _generate_abstract_impl(gapi)
  File "/home/martin/devel/opentitan/hw/ip/prim/util/primgen.py", line 382, in _generate_abstract_impl
    Dumper=YamlDumper)
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 200, in dump
    return dump_all([data], stream, Dumper=Dumper, **kwds)
TypeError: dump_all() got an unexpected keyword argument 'sort_keys'
martin@mudita:~/devel/opentitan$

I'm at a loss for what to do next.  Any advice?

For the record, I'm running Ubuntu 16.04.7 LTS on this system.
With the following versions of the required packages:
$ dpkg -l autoconf bison build-essential clang-format curl     doxygen flex g++ git libelf1 libelf-dev libftdi1-2 libftdi1-dev libssl-dev     libusb-1.0-0 make ninja-build pkgconf python3 python3-pip     python3-setuptools python3-wheel python3-yaml srecord tree xsltproc     zlib1g-dev xz-utils
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                                Version                                Architecture                           Description
+++-===================================================================-======================================-======================================-===========================================================================================================================================
ii  autoconf                                                            2.69-9                                 all                                    automatic configure script builder
ii  bison                                                               2:3.0.4.dfsg-1                         amd64                                  YACC-compatible parser generator
ii  build-essential                                                     12.1ubuntu2                            amd64                                  Informational list of build-essential packages
ii  clang-format                                                        1:3.8-33ubuntu3.1                      amd64                                  Tool to format C/C++/Obj-C code
ii  curl                                                                7.47.0-1ubuntu2.16                     amd64                                  command line tool for transferring data with URL syntax
ii  doxygen                                                             1.8.11-1ubuntu0.1                      amd64                                  Documentation system for C, C++, Java, Python and other languages
ii  flex                                                                2.6.0-11                               amd64                                  fast lexical analyzer generator
ii  g++                                                                 4:5.3.1-1ubuntu1                       amd64                                  GNU C++ compiler
ii  git                                                                 1:2.7.4-0ubuntu1.9                     amd64                                  fast, scalable, distributed revision control system
ii  libelf-dev:amd64                                                    0.165-3ubuntu1.2                       amd64                                  libelf1 development libraries and header files
ii  libelf1:amd64                                                       0.165-3ubuntu1.2                       amd64                                  library to read and write ELF files
ii  libftdi1-2:amd64                                                    1.2-5build1                            amd64                                  Library to control and program the FTDI USB controllers
ii  libftdi1-dev                                                        1.2-5build1                            amd64                                  Development files for libftdi1
ii  libssl-dev:amd64                                                    1.0.2g-1ubuntu4.16                     amd64                                  Secure Sockets Layer toolkit - development files
ii  libusb-1.0-0:amd64                                                  2:1.0.20-1                             amd64                                  userspace USB programming library
ii  make                                                                4.1-6                                  amd64                                  utility for directing compilation
ii  ninja-build                                                         1.5.1-0.1ubuntu1                       amd64                                  small build system closest in spirit to Make
ii  pkgconf                                                             0.9.12-1                               amd64                                  manage compile and link flags for libraries
ii  python3                                                             3.5.1-3                                amd64                                  interactive high-level object-oriented language (default python3 version)
ii  python3-pip                                                         8.1.1-2ubuntu0.4                       all                                    alternative Python package installer - Python 3 version of the package
ii  python3-setuptools                                                  20.7.0-1                               all                                    Python3 Distutils Enhancements
ii  python3-wheel                                                       0.29.0-1                               all                                    built-package format for Python
ii  python3-yaml                                                        3.11-3build1                           amd64                                  YAML parser and emitter for Python3
ii  srecord                                                             1.58-1.1ubuntu1                        amd64                                  collection of powerful tools for manipulating EPROM load files
ii  tree                                                                1.7.0-3                                amd64                                  displays an indented directory tree, in color
ii  xsltproc                                                            1.1.28-2.1ubuntu0.3                    amd64                                  XSLT 1.0 command line processor
ii  xz-utils                                                            5.1.1alpha+20120614-2ubuntu2           amd64                                  XZ-format compression utilities
ii  zlib1g-dev:amd64                                                    1:1.2.8.dfsg-2ubuntu4.3                amd64                                  compression library - development

Verible version is 0.0-520-g650c6cc.
Python version is 3.5.2
Here are my python package versions:
flake8                       2.5.4
GitPython                    3.0.4
hjson                        3.0.1
ipyxact                      0.2.4
isort                        4.3.21
livereload                   2.6.1
Mako                         1.0.3
meson                        0.53.2
mistletoe                    0.7.2
premailer                    3.6.1
pyelftools                   0.26
pyftdi                       0.29.4
Pygments                     2.4.2
pytest                       5.0.1
pytest-timeout               1.3.4
PyYAML                       3.11
tabulate                     0.8.6
yapf                         0.28.0

Verilator info:
martin@mudita:~/devel/opentitan$ verilator -V
Verilator 4.099 devel rev v4.040-57-gbed3101

The problem is that PyYAML's dump_all function has only had a sort_keys argument since version 5.1, released in May 2019. You have version 3.11. Looks like we have a missing ">= 5.1" in our python requirements file.

Can you try patching python-requirements.txt (possibly by grabbing the linked PR, but it's a 1-line change, so it might be easier to do manually)? Then run pip -r python-requirements.txt as usual and re-try. Hopefully everything will work!

Hi @rswarbrick.  Thank you so much.  This indeed fixes that.
However for the record of potential admin problems. it does seem that for some reason I already had a distutils-managed version of this so Pip was less than helpful in addressing that.  The resolution options out there are less than tidy.  I chose to just delete the old yaml packages.
The good news however is that this is working.   Thank you!


Adding GLUECoS Hinglish and Spanglish code-switching bemchmark

Adding a Dataset

Name: GLUECoS
Description: a Microsoft Benchmark to evaluate code-switching for only two language pairs but a variety of tasks
Paper: https://aclanthology.org/2020.acl-main.329/
Data: https://github.com/microsoft/GLUECoS
Motivation: We currently only have one other dataset for code-switching

Instructions to add a new dataset can be found here.

Hi @yjernite I am interested in adding this .
In the repo they have also added a code mixed MT task from English to Hinglish here. I think this could be a good dataset addition in itself and then I can add the rest of the GLUECoS tasks as one dataset. What do you think?


improve docs build system

Current list of stuff to solve:

[x]  build an overview page of available versions (see also #267)
[ ] move docs to separate repo to keep footprint small (?)
[ ] remove PR builds on merge/close (not necessary anymore, as PR docs are not uploaded to gh-pages anymore)
[x] Fix version number indicated in docs sidebar
[x] find a way to enable PR doc previews for forks or disable it for forks altogether (It is now disabled, and instead uploads the built docs as an artifact (#277) )
[x] point the latest tag version instead of the master branch per default.
[ ] build tutorials in parallel
[ ] Can parts of this be externalized into github action modules?

Original message
The git push fails with permission denied, despite an access token being provided.
Maybe it uses the secrets from the fork instead of the main repo.

Since RTD now fully supports PR builds, it may be worth switching to that service:
https://docs.readthedocs.io/en/stable/guides/autobuild-docs-for-pull-requests.html
this also solves versioning of docs and having a separate master and stable documentation.

This will serve to redirect the old docs to the new one:
https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/creating-a-custom-404-page-for-your-github-pages-site
and
<!DOCTYPE HTML>

        <meta charset="utf-8">
        <meta http-equiv="refresh" content="0;url={{THE_NEW_URL}}" />
        <link rel="canonical" href="{{THE_NEW_URL}}" />

            The page been moved to {{THE_NEW_URL}}

After some tryouts I ran into the issue that RTD does not provide us with enough time and RAM to execute the tutorials.
I considered rtds-action to execute the notebooks on GH actions, but
it currently does not support integration with pull-requests (https://github.com/dfm/rtds-action/issues/1).
Therefore, for now I will stick with github actions. It also allows parallel builds or more tutorials in the future.
I just need to figure out

delete old PR builds to clean up the gh-pages branch
point the latest tag version instead of the master branch per default.
find a way to enable PR doc previews for forks or disable it for forks altogether.
Bonus: build an overview page of available versions

https://github.com/scverse/cookiecutter-scverse/issues/40 might be a better solution

Superseded by #372


Footer section is not responsive

What's wrong with the existing documentation
The footer section is not displayed in mobile devices.
Could you assign this me under gssoc24.
I want to work on this...
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Assign me @huamanraj @anuragverma108,
I already submit PR.
I thought you label me then it see it is bot...
My PR is not mergeg.....


Segmentation fault (core dumped) while running miniasm

Hi,
I used minimap2 get a paf file, and then I used miniasm to get the gfa file. It gave me the following error info. Could you give me any suggestions on this?
minimap2 -t 28 -x ava-ont N_all_filt.fq N_all_filt.fq | gzip -1 > ont.paf.gz
miniasm -f ~/scsio/Nanopore/Data/N_all_filt.fq ont.paf.gz > ont.gfa

[M::main] ===> Step 1: reading read mappings <===
/opt/gridview//pbs/dispatcher/mom_priv/jobs/76753.mgr.SC: line 12: 24731 Segmentation fault      (core dumped) ~/app/miniasm-master/miniasm -f ~/scsio/Nanopore/Data/N_all_filt.fq ont.paf.gz > ont.gfa

I get the same error. Looks that no one cares about this tool anymore.


Version 1.10.0 - "invalid blocks specified" in Django admin site

Django 5.1.2
django-fastdev 1.10.0
DEBUG = True
1.10.0 fails with the exception 'invalid blocks specified' - exception page extract below.
1.9.0 works fine. My own pages seem unaffected. Please let me know what additional info you need.
PS - I'm the Pat you've helped a lot on the iommi discourse :-)
Extract from settings.py:
ALLOWED_HOSTS = []

# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_fastdev',
]

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'mysite.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = 'mysite.wsgi.application'

# Database
# https://docs.djangoproject.com/en/5.1/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'db.sqlite3',
    }
}

# Password validation
# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]

# Internationalization
# https://docs.djangoproject.com/en/5.1/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'America/New_York'

USE_I18N = True

USE_TZ = True

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.1/howto/static-files/

STATIC_URL = 'static/'

# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

Visiting localhost:8000/admin with 1.10.0 shows the exception page:

Exception
       at /admin/

Invalid blocks specified:

    nav-breadcrumbs
    nav-sidebar

Valid blocks:

    blockbots
    bodyclass
    branding
    coltype
    content
    content_subtitle
    content_title
    dark-mode-vars
    extrahead
    extrastyle
    footer
    messages
    nav-global
    object-tools
    pretitle
    responsive
    sidebar
    stylesheet
    title

Request Method: | GET
-- | --
http://localhost:8800/admin/
5.1.2
Exception
Invalid blocks specified:      nav-breadcrumbs     nav-sidebar  Valid blocks:      blockbots     bodyclass     branding     coltype     content     content_subtitle     content_title     dark-mode-vars     extrahead     extrastyle     footer     messages     nav-global     object-tools     pretitle     responsive     sidebar     stylesheet     title
/home/pat/git/djangomoney/lib/python3.12/site-packages/django_fastdev/apps.py, line 428, in extends_render
django.contrib.admin.sites.index
/home/pat/git/djangomoney/bin/python
3.12.6
['/home/pat/git/djangomoney',  '/home/pat/git/djangomoney',  '/home/pat/pycharm/plugins/python-ce/helpers/pycharm_display',  '/usr/lib/python312.zip',  '/usr/lib/python3.12',  '/usr/lib/python3.12/lib-dynload',  '/home/pat/git/djangomoney/lib/python3.12/site-packages',  '/home/pat/pycharm/plugins/python-ce/helpers/pycharm_matplotlib_backend',  '/home/pat/pycharm/plugins/python-ce/helpers/pycharm_plotly_backend']
Tue, 08 Oct 2024 15:01:02 -0400

Error during template rendering

In template /home/pat/git/djangomoney/lib/python3.12/site-packages/django/contrib/admin/templates/admin/index.html, error at line 1

Invalid blocks specified:

    nav-breadcrumbs
    nav-sidebar

Valid blocks:

    blockbots
    bodyclass
    branding
    coltype
    content
    content_subtitle
    content_title
    dark-mode-vars
    extrahead
    extrastyle
    footer
    messages
    nav-global
    object-tools
    pretitle
    responsive
    sidebar
    stylesheet
    title

1 | {% extends "admin/base_site.html" %}
-- | --
{% load i18n static %}

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" href="{% static "admin/css/dashboard.css" %}">{% endblock %}

{% block coltype %}colMS{% endblock %}

{% block bodyclass %}{{ block.super }} dashboard{% endblock %}

{% block nav-breadcrumbs %}{% endblock %}

To reproduce the issue

Create venv and install Django 5.1.2, django-fastdev 1.10.0
Follow the Django getting started (or your own experience) to create a minimal Django project and app.
Add django-fastdev to the end of INSTALLED_APPS in settings.py
Run python manage.py migrate
Run python manage.py runserver
Visit the localhost:8000/admin link and see the traceback.

I've been doing some debugging. Line numbers refer to Django 5.1.2 and django-fastdev 1.10.0.
So the immediate cause of the missing blocks nav-breadcrumbs,  nav-sidebar, and usertools is that they're guarded by an {% if not is_popup %} at line 32 of .../.lib/python3.12/site-packages/django/contrib/admin/templates/admin/base.html. This appears to prevent the template compilation triggered by fastdev's get_extend_nodes_parent from finding the offending blocks.
I'll do some more digging into change histories to see what's causing this.

OK - it looks like change d597e615 Anders Hovmöller<EMAIL_ADDRESS>is the root cause. It's an interaction between block validation (definitely want this) and Django template conditional block definition handling. Over to you, @boxed , this is beyond me!

Thanks! Fixed now and released in 1.11.0

Sorry @boxed  :-(, but you might want to reopen this. I just tested and I'm seeing the same issue. I'll keep digging into Django, but I think the issue might be that the Django Template parser doesn't add block definitions inside the if false -
{% if var_with_value_false %}
    {% block this_is_not_added_to_the_nodelist %} {% endblock %}
{% else %}
    {% block this_is_added_to_the_nodelist %} {% endblock %}
{% endif %}

I'll do some more investigating, but I think that there's nothing you can do by looking at nodelists - Django isn't adding those blocks for you to find. I have a couple of ideas:

Either we find a way of passing fastdev's instance of the Template parser the same context that Django is using for the page
or we look at using the Lexer's token stream instead and look for block definition Tokens. I think this will work for fastdev's purposes, but you'd know better.

I hope (family permitting) to spend some time today chasing this.

I added a {% block %} inside an {% if %} to my test case. Hmm.. I did find an issue that {% for %} had a similar bug though. Maybe that's your case?
I've pushed the fix for this case, could you try the latest code on master?

Will do. {% for %} isn't the issue I'm seeing. The missing blocks are in an {% if %} starting at line 32 of .../.lib/python3.12/site-packages/django/contrib/admin/templates/admin/base.html (Django version 5.1.2)

After I fixed the problem in https://github.com/boxed/django-fastdev/issues/47#issuecomment-2408610254, the original exception returned. Looking at the context, it is the one Django is using to render the page, which invalidates my first assumption in https://github.com/boxed/django-fastdev/issues/47#issuecomment-2408585873. So I'm going to have do more digging into what Django is doing.
@boxed - Sorry to be so chatty in the comments, but I want to keep you up to date with what I'm trying as you seem to be working on this too. I can keep commenting here, or do you have a Discord for fastdev?

I don't have a discord, but you can use the Unofficial Django Discord or iommi offtopic channels

I have a candidate fix - see the new pull request. What was happening is that collect_valid_blocks needs to also collect nested blocks from IfNode and ForNode to find the conditionally defined blocks. Please review in case the patch makes the code too lenient now, but at least the exception has gone away.

I released 1.12.0 with this fix

I released 1.12.0 with this fix

Thanks

I wonder if this is too narrow too... but yea, it's a lot better at least.

Good point. I'm going through the Django source now to look at other node types.

I ended up with
        def collect_valid_blocks(template, context):
            result = set()
            for x in template.nodelist:

                if isinstance(x, (ExtendsNode, IncludeNode)):
                    result |= collect_nested_blocks(x)
                    result |= collect_valid_blocks(get_extends_node_parent(x, context), context)
                elif hasattr(x, 'child_nodelists'):
                    # to be more explicit, could make the condition above
                    # isinstance(x, (AutoEscapeControlNode, BlockNode, FilterNode, ForNode, IfNode,
                    # IfChangedNode, SpacelessNode))
                    result |= collect_nested_blocks(x)
            return result

but I'm worried this may have opened the floodgates. We could use the explicit list of nodes, but this is future proof.
Please let me know if you want a pull request.

After thinking overnight, and some checking this morning, we don't need to do special handling for IncludeNode. It appears to be wrapped in a BlockNode and so get's processed as part of that. I ended up with:
        def collect_valid_blocks(template, context):
            result = set()
            for x in template.nodelist:
                if isinstance(x, ExtendsNode):
                    result |= collect_nested_blocks(x)
                    result |= collect_valid_blocks(get_extends_node_parent(x, context), context)
                elif hasattr(x, 'child_nodelists'):
                    # to be more explicit, could make the condition above
                    # 'isinstance(x, (AutoEscapeControlNode, BlockNode, FilterNode, ForNode, IfNode,
                    # IfChangedNode, SpacelessNode))' at the risk of missing some we don't know about
                    result |= collect_nested_blocks(x)
            return result

and am submitting a pull request.


Remove TGFConfig ref. Configs were not being overwritten correctly

Also glide update

Pull Request Test Coverage Report for Build 663

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 16.11%

Totals

Change from base Build 659:
0.0%

Covered Lines:
140

Relevant Lines:
869

💛  - Coveralls


JIT: Support all atomic intrinsics

Part of #5280 (and #4290). Please merge after #5383.
TODO:

[x] Check lowest supported CUDA/HIP version
[x] Add docs

@asi1024 Now that I think about it, I don't really understand Numba's atomic API design (which CuPy follows?) I think we should be able to follow closely with the C API and support jit.atomic_add(array[index], value) instead of the current approach (jit.atomic_add(array, index, value)), as we have __getitem__ properly implemented in JIT. The understanding is we take the pointer to array[index]. Do I miss something?

Do I miss something?

Maybe it's not easy to construct target = _compile._indexing(array, index, env) when we are given only array[index]...

Maybe it's not easy to construct target = _compile._indexing(array, index, env) when we are given only array[index]...

I think so too. It is difficult to handle pointers directly in Python syntax.

Jenkins, test this please.

Jenkins CI test (for commit 3f6950a94cda5416936772628dc7185072212aa6, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins, test this please

Jenkins CI test (for commit 3dae76603d90562a6b648e8a8021af9a443b4194, target branch master) failed with status FAILURE.

Jenkins CI test (for commit e59864e8e4e50731b3d6580acaf6d80a306bbe46, target branch master) failed with status FAILURE.

For the atomicCAS error: it looks like only sm70 (and above) supports the unsigned short version:
$ grep -R /usr/local/cuda-10.2/include/ --include=*.{h,} -e 'atomicCAS\>'
/usr/local/cuda-10.2/include/device_atomic_functions.h:__DEVICE_ATOMIC_FUNCTIONS_DECL__ int atomicCAS(int *address, int compare, int val) __DEF_IF_HOST
/usr/local/cuda-10.2/include/device_atomic_functions.h:__DEVICE_ATOMIC_FUNCTIONS_DECL__ unsigned int atomicCAS(unsigned int *address, unsigned int compare, unsigned int val) __DEF_IF_HOST
/usr/local/cuda-10.2/include/device_atomic_functions.h:__DEVICE_ATOMIC_FUNCTIONS_DECL__ unsigned long long int atomicCAS(unsigned long long int *address, unsigned long long int compare, unsigned long long int val) __DEF_IF_HOST
/usr/local/cuda-10.2/include/crt/sm_70_rt.h:__SM_70_RT_DECL__ unsigned short int atomicCAS(unsigned short int *address, unsigned short int compare, unsigned short int val) __DEF_IF_HOST

@asi1024 any idea for the cause of atomicDec error on Windows? 😅

@leofang Probably because uint32 character is 'L' on windows. I shouldn't have implemented AtomicOp class using dtype character ...
https://gist.github.com/asi1024/60da8cf4d45db6c772ce59643a3b972e

Ouch! But, isn't "I" representing numpy.uintc which in turn means uint32?

dtype.name might be better than dtype.char?

It's so confusing...Why didn't atomic_inc fail on Windows like atomic_dec? They support the same type (uint32), but only the latter fails?!

Jenkins, test this please

Jenkins CI test (for commit 53055e8db293fa4388b6ab9e4ef88b2d8b49076a, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins CI test (for commit 53055e8db293fa4388b6ab9e4ef88b2d8b49076a, target branch master) succeeded!

dtype.name might be better than dtype.char?

This sounds good, but I couldn't think of a way to make use of it if the atomic functions are initialized with the dtype characters, so I added a little workaround which should hopefully deliver the desired behavior.

It's so confusing...Why didn't atomic_inc fail on Windows like atomic_dec? They support the same type (uint32), but only the latter fails?!

Still can't figure out this...
Jenkins, test this please

Jenkins CI test (for commit 2e57006f7abfb5d846f336829c0a0920a781fc30, target branch master) succeeded!

I can't figure out why didn't atomic_inc fail too, but I think this PR is OK with the test workaround!

Thanks, @asi1024!


Update to work with latest version of ctrulib

ctrulib has a new branch with updated functions for GPU/sound and lots of stuff. Please update or make another branch of sf2dlib to work with these changes :smile:

I tried installing the latest ctrulib, sf2dlib and citra. I managed to compile the sample but I just get a red screen on NH2.5 on O3ds and citra is throwing all sorts of errors.
Is this the same issue or should I raise a new one?

The great-refactor branch is not yet ready. There is a lot to be changed still. I would keep using master until it is ready.

I used the master branch so guess mine is a different issue.

I'll update sf2d when ctrulib upstreams the refactor.

The "great refactor" branch has been merged to the master one, and a new ctrulib version has been created.
You can now update your lib :smile:


[NextJS] Only static values are allowed inside of a stylex.create() call

Problem Description:
I am encountering an issue with Next.js 14.0.4 when using Stylex. The error message I'm receiving is:
Error ...src/app/common/components/ui/Card/index.js: Only static values are allowed inside of a stylex.create() call.

Folder Structure:

As you can see above I have my globalToken.stylex.js file directly under the app folder. Its contents mirror those of the globalToken.stylex.ts file in the next-js-example folder.
Code Snippets:
Here is the content of my CardTokens.stylex.js file:

import * as stylex from '@stylexjs/stylex';

export const tokens = stylex.defineVars({
    arrowTransform: 'translateX(0)',
});

And the relevant section in the Card/index.js file:
import React from 'react';
import stylex from '@stylexjs/stylex';
import { globalTokens as $, spacing, text } from 'app/globalTokens.stylex';
import { colors } from<EMAIL_ADDRESS>import { tokens } from './CardTokens.stylex';

const MOBILE = '@media (max-width: 700px)';
const REDUCE_MOTION = '@media (prefers-reduced-motion: reduce)';

const bgDefault = `rgba(${$.cardR}, ${$.cardG}, ${$.cardB}, 0)`;

const styles = stylex.create({
    link: {
        display: {
            default: 'flex',
            [MOBILE]: 'block',
        },
        alignItems: 'center',
        justifyContent: 'flex-start',
        flexDirection: 'column',
        borderRadius: spacing.xs,
        backgroundColor: {
            // default: bgDefault,
            // ':hover': `rgba(${$.cardR}, ${$.cardG}, ${$.cardB}, 0.1)`,
        },

Issue:
The error disappears when I comment out the line:
 import { globalTokens as $, spacing, text } from 'app/globalTokens.stylex';

Is the issue related to globalToken not being a relative import? This seems unlikely as all values used are static, and nothing is dynamic.
I would greatly appreciate any insights or assistance in resolving this issue. Thank you for your time and help.

Hey, I think this is a duplicate of issue #40
https://github.com/facebook/stylex/issues/40

import { globalTokens as $, spacing, text } from 'app/globalTokens.stylex';

This is not a relative import and so it won't work at the moment. Use ../, i.e. a relative path to make it work. If that fixes the issue, it's a duplicate of #40 as mentioned by @nedjulius.
BTW, will be fixing this issue soon.

Wow! @nmn You were right, the following was what worked for me:
import { globalTokens as $, spacing, text } from '../../../../globalTokens.stylex';

Good to know this and thanks for the assurance that it will be fixed soon. Thank you for your time

Closing this as it's a duplicate of #40

I get this issue even with relative imports. For example you can use this repo to reproduce it. https://github.com/millnut/storybook_foundations/tree/feature/stylex-support
Any idea why this could be happening ?
Node version: v18.18.2


Update Windows Jenkins Agent init script to keep the connection opened indefinitely

The previous version would exit after some time, leaving the Jenkins agent unusable

Hi @clguimanMSFT, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor. If you're full-time or an intern, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


Add --tags feature for mani sync

Is your feature request related to a problem? Please describe
I only want to sync certain repos on certain machines. Currently, mani sync only has the option to clone my repos.
Describe the solution you'd like
I want to be able to clone a sub-set of my repos, such as: mani sync --tags main
Additional context
The same should probably apply to --paths and --projects as well.
Thanks!

I like this feature, should be easy to implement.

Will be released today as v0.22.0.

Awesome, thank you! I'll test it out as soon as it gets updated in the AUR

I just tested the feature and it works great. Thanks again!


[Tests] include year in custom format string

Tests started failing on master as of 5 days before the end of the year.
Because the custom format string disregarded the year, it seems to break whenever "5 days from now" is in January.
I was able to get tests to pass by changing all of the "5"s to "1"s, which confirmed it's the year boundary causing the problem. I then reverted that and added the year into the custom format string, which fixed the issue.

Coverage remained the same at 85.524% when pulling 2835d01dd8ab7aba6b17b3470f35ec1b0066feb5 on fix_test_bombs into f0b6f2f99d52220c014f2f88be74722419d4ed61 on master.

Added some more cleanup and "improving coverage" commits as well.

Coverage increased (+0.7%) to 86.248% when pulling 85d5f3d8698473d5bd5fdf999404e8e2098bdca4 on fix_test_bombs into f0b6f2f99d52220c014f2f88be74722419d4ed61 on master.

Coverage increased (+0.7%) to 86.248% when pulling 85d5f3d8698473d5bd5fdf999404e8e2098bdca4 on fix_test_bombs into f0b6f2f99d52220c014f2f88be74722419d4ed61 on master.

Going to merge this prior to 2018 :-)


Update Node.js version in README.md

I tried to follow the instructions in README.md but failed at step 4 (yarn install) because @citation-js/plugin-bibtex requires Node.js version 16.0.0 or higher, but step 2 in the current README.md explicitly asks to use 14.15.5. This PR updates the README.md to instruct the use of 16.20.2.

Already addressed in https://github.com/ResearchHub/researchhub-web/pull/1681


Fix link in types README

Summary
This PR fixes a link in the types README.
Release Note
NONE

Welcome aboard!


node netstats OSX

After some hours on OSX this error stops gmon:
gunbot-monitor/node_modules/node-netstat/lib/utils.js:72
    stream.on('data', function (data) {
          ^

TypeError: Cannot read property 'on' of undefined
    at exports.emitLines (gunbot-monitor/node_modules/node-netstat/lib/utils.js:72:11)
    at exports.async (gunbot-monitor/node_modules/node-netstat/lib/activators.js:48:5)
    at module.exports (gunbot-monitor/node_modules/node-netstat/lib/netstat.js:63:9)
    at NetData.calculateConnections (gunbot-monitor/src/modules/netData.js:35:5)
    at Timeout.interval.setInterval [as _onTimeout] (gunbot-monitor/src/modules/netData.js:30:44)
    at ontimeout (timers.js:380:14)
    at tryOnTimeout (timers.js:244:5)
    at Timer.listOnTimeout (timers.js:214:5)

Add try catch.

Should be fixed in 0.0.30

new error now:
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: spawn netstat ENFILE
    at exports._errnoException (util.js:1018:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Also happens on archlinux and ubuntu (16.04.).

Finally had a chance to look into this.  It would appear gmon is leaking file descriptors, and it's unrelated to netstat.  Get the pid of gmon and run this:
while true ; do lsof -p 17273 | wc -l ; sleep 5 ; done

Change 17273 to the pid of gmon.   It steadily climbs until it finally blows.   Will try and look further when I get a chance.

I thought it might be the fs.stat call (which really isn't needed) but it's not.
It's a bug in the read-last-lines library.  It never closes file handles.
issue
Have to see if there are any competing libraries, or the difficulty of roll-your-own.

Updated version supports Gunbot v9 now. No need for the read-last-lines library anymore.


Load a list of templates in Search based message extension.

I want to load a list of templates ['template a', ' template b', 'template c'] inside a search based message extension and I want that template to be loaded as a plain text inside the compose message box.
But Before I load that template in the compose message box, I want to do some quick action.
Let's say I have selected template a from the list. Upon the selection of the template, I should receive a selectItem event (Just like it's mentioned in the doc but it's not working).
After I receive the event, I would be able to modify or change the template on my service & then I will return template a to the Message Extension.
The returned template a should be loaded into the compose box as a plain text so that the end user will be able to modify the same text and able to send it to teams.

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

ID: 06016378-5b30-cc4e-e53a-a9c46a2a3a13
Version Independent ID: d013f99a-0ee5-67d3-ee79-67bc1a0b4557
Content: Define messaging extension search commands - Teams
Content Source: msteams-platform/messaging-extensions/how-to/search-commands/define-search-command.md
Product: msteams
GitHub Login: @clearab
Microsoft Alias: anclear

@LuciferDoCode  - Apologies we missed this question. Adding answer for community members with same query.

In order to get event when user select any item from result, you need to first add Tap action and handle OnTeamsMessagingExtensionSelectItemAsync.
You can find complete code here: Teams Messaging Extensions Search

            var previewCard = new ThumbnailCard
            {
                Title = "First",
                Tap = new CardAction { Type = "invoke", Value = "1" }
            };

        protected override Task<MessagingExtensionResponse> OnTeamsMessagingExtensionSelectItemAsync(ITurnContext<IInvokeActivity> turnContext, JObject query, CancellationToken cancellationToken)
        {
            // Handle the select item event
        }

As a response to select item we can only send card attachments like Hero card, Adaptive card. Sending plain text is not supported. You can find more details in Respond to user requests documentation.

Marking this issue as close for now, but feel free to re-open if you are still facing any issues.