feat: Text color ranges

Closes #1126
This PR does not use contenteditable. Instead it re-renders the canvas on text change and hides the text area content.
Todo:

[x] Render ranges to canvas
[x] Support adding and editing of ranges
[x] Collaboration
[ ] Test RTL text
[ ] Expanding and contracting color ranges on change (when editing inside a range)
[ ] Special case for selecting all text and changing stroke color. This should clear color ranges and set the stroke color and not create a color range across the whole string
[x] Selecting a color and then typing to create a new color range (0-width range) - probably will require inserting a temporary ZWJ to apply the color to then replace it with the user entered text or remove it onSubmit. Alternatively we might be able to store another field like newColorRangeIndex: {index: number; color: string} | null, it gets set to the cursor position when you want to create a new 0-width color range
[x] Stroke color picks up on color to the right, when it should be looking at the color on the left (in LTR langs). Likely related to the above
[x] Newlines cause a bunch of jankiness (off by N error)
[ ] Selection appears "on top" of text - not sure this is solvable with the transparent text area approach however
[ ] History

Co-authored-by: Gideon Caspi @GideonCaspi
Co-authored-by: Nicholas Fitton @NickFitton

We have a problem with grapheme clusters or multi-codepoint-letters or whatever you want to call them. The core issue with the current code is that  [...'🤌🏼👌🏿'] => [ '🤌', '🏼', '👌', '🏿' ]
https://user-images.githubusercontent.com/9257001/167246490-05ecd607-74e9-4d6d-ab9a-741cbb0d01a6.mov

A bug I just found, hopefully will be solved when I implement expanding/contracting ranges but noting it down to check later:
https://user-images.githubusercontent.com/9257001/167318197-550480d1-9056-45d4-a600-b367cd5b5ee6.mov
Basically the stroke/caret color doesn't update correctly when removing chars from the end of a color range.

@DanielJGeiger @dwelle Could I get a sanity check on the approach here? Especially with regards to how we're storing colorRanges on text.
Just want to make sure this is on the right track before I go deep into implementing color range change on insertion/deletion/replacement of text.

I found a slight bug: when editing text, I have to click on the "#" symbol before clicking the stroke color, or else the entire text reverts to the default color.


Wrong defines checked when compiling with -std=c11

There is some code which checks for C11 features, such as atomics. Usually C11 is enabled by passing -std=c11
However there are many checks like #ifdef linux which will then fail due to linux not being defined. In general (IIRC) the symbols from the compiler all are of the form __foo__, especially starting with a double underscore
I think it would be a good idea to check and replace such macros and add CI for using standard C11

Thanks, at first glance the old-style symbol checks are limited to the benchmarks and to the cpuid detection code of a few platforms - which would explain why this has not bitten anybody yet.

At least for #ifdef linux I can confirm this. I noticed that because the build in CMake failed after getarch outputs bogus values which is actually a bug in that code: https://github.com/xianyi/OpenBLAS/blob/0d98ce202cd504f6f591ba0d1d6d67c0cf08af75/cpuid_power.c#L105 misses a return statement for the "default" case when none of the defines matches. Maybe a style using #if-elif-else error would be better so this is caught at compiletime?

Why not c18 right away?

Would be nice to back original statement with a report from static checker being used.
Once c11 is enabled also asm sections stop working, while gnu11 would permit them.

@brada4 there is nothing that would mandate use of -std=c11 in the related PR. The only C11-ish feature we are optionally interested in is Atomics (and I am not aware that std=c11 breaks inline assembly with gcc ?)

Why not c18 right away?

I wasn't suggesting to raise any required standard but just wanted to point out that when compiling in standard compliant C the define linux does not exist. This can be verified by running gcc -dM -E -std=c11 - < /dev/null | grep linux
I hope that helps

asm is not defined with c11 , the build actually stops step later.
gnu11/ gnu18 work just fine and define linux

seriously what compiler is that ? Does not happen with gcc7/gcc9  on either x86_64 or power. In any case there was nothing here about forcing people to use -std=c11

clang 10.0.1 present in termux app on android compiling aarch64 cannot expand macro yielding which is asm nopnopnop
basically git pull/apt install make gcc perl/make 'CC="cc -std=c18" ' nothing done to damage anything

I think something if !def asm && def __asm -> define asm __asm

clang 8 in termux still has/had __linux , think you uncovered another bug: the YIELDING macro in common.h has an "asm" that should be asm (like all the others)

Will make a PR

There is a bunch of those in zarch and alpha - do they deserve blanket editing?

Not sure we want to touch zarch, and alpha is very probably dead anyway


The most important issue in the world

Hi. I'm from cxx.Дискуссионная. We talked about your project there, and we would really appreciate If you could add a skin which looks like balls because of our specific preferences

Oh no, it's really a serious mistake of our team not to add this in the first place. Expect positive news and stay tuned
-best regards, Alpha Engine team


create --init-dir option when 'rasa init --no-prompt'

Proposed changes:

When we initialize project using rasa docker image, we are facing permission error. like issues#4653
We can use follow command -> docker run -v $(pwd):/app rasa/rasa:latest init --no-prompt --init-dir /app

Status (please check what you already did):

[X] added some tests for the functionality
[ ] updated the documentation
[X] updated the changelog (please check changelog for instructions)
[X] reformat files using black (please check Readme for instructions)

@ricwo @akelad Is there more activity for merging this request? Or just wait?

@RielKIM looks great as it is, I'll merge it. Thanks for contributing 🎉

@RielKIM looks great as it is, I'll merge it. Thanks for contributing 🎉

I will try to make quality contributions in the future. Thank you for all.


Update plugin and dependency versions.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/bdg-utils-prb/133/
Test PASSed.

Coverage remained the same at 40.532% when pulling 1bc21017542b9354ef03a466a52e65495b6528db on heuermh:update-dep-versions into d0317cc2243f1eca963e9c73bb8f3237eede96c3 on bigdatagenomics:master.


[GEP-24] Fix: Configure DiscoveryServerDown alert only when discovery server is enabled

How to categorize this PR?

/area ipcei
/label ipcei/oidc
/kind bug
What this PR does / why we need it:
[GEP-24] Fix: Configure DiscoveryServerDown alert only when discovery server is enabled.
#9746 unconditionally configured the DiscoveryServerDown alert which fires for gardens that does not have the gardener discovery server enabled.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
/cherry-pick release-v1.96
cc @dimityrmirchev
Release note:

Fix a bug that unconditionally enables the `DiscoveryServerDown` alert even when the Gardener Discovery Server is not enabled.

/cherry-pick release-v1.96

/lgtm
/approve

/needs rebase


HubSpot API Method Updates

Property, Association and Association Label requests
Test coverage for same

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

:rocket: PR was released in<EMAIL_ADDRESS>:rocket:


Feature Request: localize Confirmation Subject

First of all, thanks for this plugin! It's great to be able to use templates now for our emails!
It would be nice if we could translate the Confirmation Subject line from inside the control panel on multi language sites. I understand we could add an invisible field on the form to do this, but the control panel way is a much more convenient and perhaps safer way of doing it IMHO and could also be used by customers.

Without further help from you or other this is not possible currently.
Please re-open this issue. Nothing has changed.

@Friksel We do not support Multisite with this free plugin. If you need additional features then you're going to be better off with Freeform or Formie. There are just too many things to consider with multisite support for such a simple plugin.


Revert systemd interface version to 2 [19.09 backport]

This backports https://github.com/NixOS/nixpkgs/pull/68906 to 19.09. It prevents users having to reboot when upgrading to 19.09.

@grahamcofborg eval

Rebased on top of 19.09.

@GrahamcOfBorg eval


Proposing changing Separator text on iOS to conform to guidelines

I noticed that the current list separator on iOS has a non-default styling for the text. Here is a screenshot from the kitchen sink application.

However, looking at the UI guidelines supplied by Apple, text for a separator would look like so:

I'm thinking of creating a pull request to make the changes necessary to update the font size, colour, and padding from the side. Would these changes be welcomed?
Currently I use two Separators to get similar spacing between list items as used by Apple in multiple grouped TableViews (see screenshot below). What does the team think about having increased padding between the text and the top of the separator?

react-native, react and native-base version

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

@vtsatskin A pull request would be very welcome!

@sankhadeeproy007 I'm just waiting for a resolution to my issues with running the KitchenSink app with the latest version of native-base so I can start testing my changes: https://github.com/GeekyAnts/NativeBase-KitchenSink/issues/53

Update to latest version 2.2.0 and use group prop with Separator component.


Enable republishing of dirty tags

This PR enables us to publish tags to the content-store, without also publishing the curated lists.
Trello:

Currently, when a topic or mainstream browse page is curated, but the changes have not yet been published, we cannot republish the page without also publishing the changes.
So that we don't have to republish changes in this case, record the contents of the details hash field sent to publishing-api in a column in the Tags table.  When republishing, just used the stored value.  When publishing changes to the curated lists, first update the stored value, and then send it.
We'll populate the initial values in the columns by reading from the content store (and we'll need to be careful to ensure that this doesn't conflict with any publish actions which happen at the same time).
This is a blocker for adding the /topic/ namespace, and also for the batch republishing of browse pages when new browse pages are created.

https://trello.com/c/lBeQH9bz/218-enable-republishing-of-dirty-tags
Note that we have chosen to save the groups array from the details hash, because the details hash also contains the beta label. Including the entire details hash would expose us to the exact same problem when changing the beta-label.
One time task to run: rake populate_published_groups
Review per-commit.

A few small points, otherwise this looks good to me.


MemN2NDialog.predict wrongly mix predictions

The predict method does not work as the combination of the models (shared/task-specific) appear to be wrong.
As to dig there to fix it.

(optsemproj) Florents-MacBook-Pro:MemN2N-mtl flo$ python single_dialog.py --epochs 1 --data_dir ../data/personalized-dial
og-dataset/small
Started Task: 1
/Users/flo/anaconda3/envs/optsemproj/lib/python3.6/re.py:212: FutureWarning: split() requires a non-empty pattern match.
  return _compile(pattern, flags).split(string, maxsplit)
Candidate Size 43863
Profiles: {('female', 'elderly'): 0, ('female', 'middle'): 1, ('female', 'young'): 2, ('male', 'elderly'): 3, ('male', 'm
iddle'): 4, ('male', 'young'): 5}
vocab size: 14590
Longest sentence length 21
Longest candidate sentence length 13
Longest story length 15
Average story length 6
Training Size 6024
Validation Size 6015
Number of epochs: 1
Epoch 1
[array([42346, 40778, 42346, 42346, 40778, 40778]), array([3220,  583,  583, 3220, 3220]), array([42346, 42346, 42346, 43
244, 36507]), array([32407, 11808, 11808, 11808, 18250, 11808, 18250, 18250]), array([3220,  583,  583,  583]), array([ 3
220, 42346, 42346, 42346])]
Traceback (most recent call last):
  File "single_dialog.py", line 260, in <module>
    chatbot.train()
  File "single_dialog.py", line 160, in train
    train_preds=self.batch_predict(trainP, trainS, trainQ, n_train)
  File "single_dialog.py", line 213, in batch_predict
    pred = self.model.predict(p, s, q)
  File "/Users/flo/Documents/Etudes/EPFL/ma5/optsemproj/personalized-dialog/MemN2N-mtl/memn2n/memn2n_dialog.py", line 415
, in predict
    return np.mean(results)
  File "/Users/flo/anaconda3/envs/optsemproj/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 2909, in mean
    out=out, **kwargs)
  File "/Users/flo/anaconda3/envs/optsemproj/lib/python3.6/site-packages/numpy/core/_methods.py", line 70, in _mean
    ret = umr_sum(arr, axis, dtype, out, keepdims)
ValueError: operands could not be broadcast together with shapes (6,) (5,)


8.1 support

I know this is isn't the best way to make a request, but I'm not sure what channels to go through in regards to bringing DX12 to Windows 8.1
Windows 7 is almost EOL and yet it has DX12 for select games but not 8.1. I use 8.1 on many of my machines as it's faster than 7, and it's still technically supported. Either I downgrade to 7 (which I'd rather not do, due to it being outdated) or upgrade to Windows 10 (which again, I'd rather not do as I cannot do a direct upgrade since I have a Mac Pro that requires me to patch the MBR to enable AHCI... so upgrading would likely break the installation/fail).
Are there any plans to bring DX12 to 8.1, rather than just 7? I know 8.1 has a smaller install base but there are still many people that use it for gaming, especially since it's lighter than Windows 10 so it plays nicer on older hardware.

There are no plans to bring D3D12 to Windows 8.1 at this time, no.


Dashborad: Back to top button (on desktop) should be inside the max width

There is no button, regardless of the number of cards and scale
https://www.screencast.com/t/rbeUeEspcf
Checked on Dev environment
Device used: desktop


Annotations in class broken?

I've tried adding this plugin:
https://github.com/scikit-hep/boost-histogram/pull/447/checks?check_run_id=1000258530
And I get:
##[error]self = <test_axis.TestRegular object at 0x7f907321b520>

Which doesn't help find the line of the test (though it's slightly better than not having the red error line). Would this be fixable?
Edit: Also parametrized tests. Which is pretty much most of my tests. :'(
Edit: Actually, it doesn't seem to be outputting anything. Is there something that needs configuring?
Edit yet again: Locally, this works. So maybe I just don't know where to look for the failure annotations?

Ahah, maybe I found the issue? It seems that it reports the beginning of the function the failure was in, instead of the line that failed, and the annotation don't show up then, since only part of the function changed, not the whole function, and GitHub requires that something changes to show the annotation. Or I could be completely wrong.

Looks like the plugin made annotations for ../tests/test_axis.py. You ran tests in build directory and the plugin didn't resolve relative paths!
This is a bug, so I'll fix it.

It will be fixed with #11 and #12

I've just released version 0.0.8 containg fix of it, thanks!


Vim-Syntastic showing ignored python errors Ubuntu 16.04

Syntastic and flake8 in vim not ignoring errors provided in flake8 config file.
I am using flake8 for python code linting with Syntastic in vim. I have a flake8 config file per flake8 documentation absolute_path_to_home/.config/flake8 which ignores error E251. Now, when I run flake8 from command line  by typing
flake8 --config=absolute_path_to_home/.config/flake8 my_python_code_that_is_being_checked.py

then flake8 ignores the error E251. However, when I run flake8 inside vim using <F7> the error window inside vim shows E251 despite it being ignored in the flake8 config file.
To make sure that Syntastic is calling the flake8 with right arguments I added the following to my .vimrc
let g:syntastic_python_checkers = ['flake8']
let g:syntastic_python_flake8_args='--config=absolute_path_to_home/.config/flake8'
let g:syntastic_debug = 1

I checked the Syntastic call inside vim using :messages and get the following info
syntastic: 4.483755: CacheErrors: Invoking checker: python/flake8
syntastic: 4.484046: SyntasticMake: called with options: {'errorformat': '%E%f:%l: could not compile,%-Z%p^,%A%f:%l:%c: %m,%A%f:%l: %m,%-G%.%#',
'makeprg':'flake8 --config=absolute_path_to_home/.config/flake8 my_python_code_that_is_being_checked.py', 'env': {'TERM': 'dumb'}}
syntastic: 4.615727: system: command run in 0.131497s
syntastic: 4.617432: getLocList: checker python/flake8 returned 1
syntastic: 4.618452: getLocList: checker python/flake8 run in 0.134634s

So if the message above is to be believed then Syntastic is indeed calling flake8 with the right config file so I am not sure why E251 is still being displayed. For good measures below is what my absolute_path_to_home/.config/flake8 file
[flake8]
ignore = E251

Is this a known bug? What am I doing wrong? Will appreciate any help. Thank you.

Syntastic doesn't invent error messages by itself, so what you're seeing is either because the message isn't actually produced by syntastic, or the flake8 run by syntastic is not the same flake8 you run in a terminal, or (pretty unlikely but not unheard of) flake8 run from inside Vim produces different results than flake8 run in a terminal.
Please set syntastic_debug to 3, run the checker, and post the (entire) output of :mes.

Here is the output after setting syntastic_debug to 3
"absolute_path_to_home/project_dir/src/work_dir/my_python_code_that_is_being_checked.py" 432L, 26159C written
syntastic: 6.320162: g:syntastic_version = '3.9.0-31 (Vim 704, Linux)'
syntastic: 6.320326: &shell = '/bin/bash', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shelltemp = 1, &shellxquote = '', &autochdir = 0, &shellxescape = ''
syntastic: 6.320859: UpdateErrors (auto): default checkers
syntastic: 6.321233: CacheErrors: default checkers
syntastic: 6.321970: g:syntastic_aggregate_errors = 0
syntastic: 6.322183: getcwd() = 'absolute_path_to_home/project_dir/src/work_dir'
syntastic: 6.328272: CacheErrors: Invoking checker: python/flake8
syntastic: 6.328620: SyntasticMake: called with options: {'errorformat': '%E%f:%l: could not compile,%-Z%p^,%A%f:%l:%c: %m,%A%f:%l: %m,%-G%.%#', 'makeprg': 'flake8 --config=absolute_path_to_home/.config/flake8 absolute_path_to_home/project_dir/src/work_dir/my_python_code_that_is_being_checked.py', 'env': {'TERM': 'dumb'}}
syntastic: 6.490698: system: command run in 0.161861s
syntastic: 6.490803: checker output: ['absolute_path_to_home/project_dir/src/work_dir/my_python_code_that_is_being_checked.py:157:201: E501 line too long (281 > 200 characters)', 'absolute_path_to_home/project_dir/src/work_dir/my_python_code_that_is_being_checked.py:205:201: E501 line too long (235 > 200 characters)', '']
syntastic: 6.491056: raw loclist: [{'lnum': 157, 'bufnr': 1, 'col': 201, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text': 'E501 line too long (281 > 200 characters)'}, {'lnum': 205, 'bufnr': 1, 'col': 201, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text': 'E501 line too long (235 > 200 characters)'}]
syntastic: 6.491246: getLocList: checker python/flake8 returned 1
syntastic: 6.491361: python/flake8 raw: [{'lnum': 157, 'bufnr': 1, 'col': 201, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': 'E', 'pattern': '', 'subtype': 'Style', 'text': 'line too long (281 > 200 characters) [E501]'}, {'lnum': 205, 'bufnr': 1, 'col': 201, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': 'E', 'pattern': '', 'subtype': 'Style', 'text': 'line too long (235 > 200 characters) [
E501]'}]
syntastic: 6.491487: quiet_messages filter: {'type': 'style'}
syntastic: 6.491607: filtered by quiet_messages: []
syntastic: 6.491673: getLocList: checker python/flake8 run in 0.163336s
syntastic: 6.491810: aggregated: {'_sorted': 0, '_name': '', '_owner': 1, '_columns': 1, '_rawLoclist': []}
Press ENTER or type command to continue

There is no E251 in the output of flake8.  There are two E501, and they are both removed by your quiet_messages.  If you see any error output at all it comes from a different plugin, not syntastic.

Thanks for clarifying, I think nvie/vim-flake8 (which I have in my .vimrc) is what is showing me the error inside my vim and not Syntastic. Syntastic is correctly ignoring the errors in flake8 config but vim-flake8 is not reading the flake8 config file properly I assume. Thanks again.


Option for the MBS Version of Cloudberry

Hello, love the project and it works very well inside Docker on Synology units.
I have a question.... Is there a way to change/build the app using Cloudberry MBS (Managed Backup Service) program, rather than the Backup that's offered on the main Cloudberry website?
Essentially each MBS provider gets their own management console and install file for the various operating systems and the provider then licenses the various installs/accounts. I'd like to be able to link Cloudberry inside Docker to the licenses/app offered by MBS if possible.
Currently you can't do this with this container as it doesn't give the usual MBS login options when you first setup your backup.
A bit of info about the MBS offering is here https://www.cloudberrylab.com/managed-backup.aspx
Does that make sense?
Thanks

Hi,
Is this software available for download to everyone?

Hello,
It's available to everyone who has a MBS (Managed Backup Service) account. The download is available for Windows, Linux etc and are built (on request when new versions are released) and when they are built they include all of your own branding and a unique download link is published.
When the backup software is installed on client computers is it not called "Cloudberry Backup", it's shown as "XYZ Backup Name" or whatever you choose in your branding options.
In short, it's exactly the same product as the retail version, just custom branded and licenses are managed and allocated by the reseller.

Here is the download link.  I think this the same product just rebranded.
It appears to be an open download requiring activation after a 15 day trial.
I opened a ticket with Cloudberry Labd this week on an unrelated matter.
Instead of cloudberry backup for Linux all of their emails are being signed
MSP Backup which is part of a new group of products dubbed MS360.
Not sure about MBS but it sounds like a custom branded build would require
a corresponding docker build for each custom download link.
https://www.cloudberrylab.com/download.aspx?prod=cbbub1214&p=linux
In any event we just saw a new release of Cloudberry backup for Linux. It
remains to be seen if these are really two tracks or if the old product
will be renamed.
Sent from my phone.  Please forgive me if the message seems terse or pithy.
On Tue, Dec 10, 2019, 1:45 PM mpcjames<EMAIL_ADDRESS>wrote:

Hello,
It's available to everyone who has a MBS (Managed Backup Service) account.
The download is available for Windows, Linux etc and are built (on request
when new versions are released) and when they are built they include all of
your own branding and a unique download link is published.
When the backup software is installed on client computers is it not called
"Cloudberry Backup", it's shown as "XYZ Backup Name" or whatever you choose
in your branding options.
In short, it's exactly the same product as the retail version, just custom
branded and licenses are managed and allocated by the reseller.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jlesage/docker-cloudberry-backup/issues/18?email_source=notifications&email_token=AB4PCRQW7VDN4WYKZK6BNPDQX75VRA5CNFSM4JPF7LJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGQ4LRY#issuecomment-564250055,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB4PCRR4G2C6DVSIIQI7JCTQX75VRANCNFSM4JPF7LJA
.

Yes CloudBerry Lab changed its name, but @mpcjames is talking about a different product of the company: the managed backup (different from the standalone backup this container is implementing).

It's available to everyone who has a MBS (Managed Backup Service) account.

Then can this account be created by everyone?  The signup form include a couple of business related fields.  I'm asking this question because without account, it would be hard for me to implement and test anything.

It's available to everyone who has a MBS (Managed Backup Service) account.

Then can this account be created by everyone? The signup form include a couple of business related fields. I'm asking this question because without account, it would be hard for me to implement and test anything.

Yes it's possible to create a trial account. Then you can download the package on the linux machine from the download menu.
A container for this app version would be great !
Thanks
David


Add test for creating service from template

Signed-off-by: Paul S. Schweigert<EMAIL_ADDRESS>
Changes
Adding test for #214
/assign @maximilien

Can you address govet issues?

I don't see any... only failure I see is the codecov one


Placeholder classnames doesn't seem to work

glamor version: 2.20.40
jest-glamor-react version: 3.2.1
node version: 8.9.1
yarn version: 1.3.2

What happened:
When running snapshot testing the classnames are not being replaced with placeholder classnames.
Reproduction repository:
https://github.com/jameswlane/jest-glamor-react-issue
Problem description:
My snapshots are using glamor classnames
exports[`<LineScaleRandom> <LineScaleRandom> Mount 1`] = `
<LineScaleRandom
  loading={true}
>

</LineScaleRandom>
`;

Hi @jameswlane,
That's odd. I'm not sure what's going on. Could you dig a little deeper to figure out what the problem is? Perhaps dive into your node_modules and put a few console.logs around?

@kentcdodds,
I can do that, It was getting late so I thought I would pop it on here to get some visibility on it. Maybe it was something that's been seen before. I will dig around tonight starting here and see what I can come up with.

@kentcdodds, figured out the issue that was effecting the placeholder classnames.
Style that effected filter:
'> div': {display: 'inline-block'}

Style that worked:
' > div': {display: 'inline-block'}

The missing space before the > was the culprit.
It would work fine in the browser but when the filter did the comparison it would fail.
return rule.selectors.some(selector => {
  const baseSelector = selector.split(/:| |\./).filter(s => !!s)[0]
  return nodeSelectors.some(
    // sel:  .css-yap912 === css-yap912>   returns FALSE
    // sel:  .css-yap912 === .css-yap912>  returns FALSE
    sel => sel === baseSelector || sel === `.${baseSelector}`,
  )
})

Awesome! Thanks for finding that! Do you think you could make a pull request to fix it (including tests)?

I can look at it this weekend.
First I want to test it with a number of multiple selectors:
> // Child
~ // Siblings
+ // Adjacent
a:visited // Pseudo-classes
p::first-line // Pseudo-elements

See how glamor will handle them and what ones could cause a failure.
Then we could look at the end of the baseSelector and if a selector exist we could strip it off for the comparison.

Sounds super! Anything you can do to improve things in this regard would be fantastic :+1:

I am thinking something as simple as this should get everything.
I plan to make sometime today to TDD it out.
searchText.match(/[^>|~|+|:]*/)

Ran into a few issues this weekend, I could use a second set of eyes.
Here is what I found out:
Pseudo-classes and Pseudo-elements do not effect this bug, so we can not worry about them.
a:visited // Pseudo-classes
p::first-line // Pseudo-elements

As for the child selector:
> // Child

I added the following to test here, but my regex seems to not be very strong this weekend. I have yet to find a regex that will match and allow me to select everything before the selector.
  {
    title: 'child',
    styles: {
      '> div': {
        display: 'inline-block',
      },
    },
  },

Last one that's throwing me off:
~ // Siblings
+ // Adjacent

I added the following to test here and its throwing a Error: undefined:1:723: missing '}' that has me at a loss.
  {
    title: 'siblings',
    styles: {
      '~ div': {
        display: 'inline-block',
      },
    },
  },
  {
    title: 'adjacent',
    styles: {
      '+ div': {
        display: 'inline-block',
      },
    },
  },

Why don't you go ahead and open a pull request with what you have and we'll see what we can do about it :)


Lint warnings #19

Description

This PR focuses on lint changes for lib/update.
Type of change

Internal change (not necessarily a bug fix or a new feature)

TODOs

[x] Self-review the change
[ ] Perform manual testing
[ ] Address review feedback

Implementation

Performance/Scaling

Testing done

Additional information

Can any of the admins review this?


TLS encryption to proxied workloads

It should be possible for requesters of the ingress-per-unit relation to ask for Traefik to establish TLS when routing requests to them. This, in turn, requires extending the relation data protocol to allow the specification of CA and Server certificates submitted by single units and/or Juju applications.
Note: This issue is not about providing TLS to Traefik itself from the outside of the Kubernetes cluster, which is covered by #6.

@sed-i we can close this one, right?

Not yet, this is about internal TLS. #100 is just for termination (external).

We have this.


std::map key conversion with to_json

I read that you can use maps as long as a std::string can be constructed from the key.
I don't understand why this doesn't work. As I've written it I think it's fulfilling the constraint I mentioned above.
enum class EC {
    A
};

static void to_json(json& j, EC const& ae) {
    j = std::string{"FD"};
}

static void from_json(const json& j, EC& ae) {
    ae = EC::A;
}

int main()
{
    std::unordered_map<EC, int> imap;
    json j = imap;
}

The problem is already when the unordered map is defined:
#include <unordered_map>

enum class EC {
    A
};

int main()
{
    std::unordered_map<EC, int> imap;
}

Error:
c++ -Isrc -std=c++11    issue.cpp   -o issue
In file included from issue.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/unordered_map:369:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__hash_table:16:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:599:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1010:38: error: implicit
      instantiation of undefined template 'std::__1::hash<EC>'
    : public integral_constant<bool, __is_empty(_Tp)> {};
                                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/unordered_map:383:18: note: in
      instantiation of template class 'std::__1::is_empty<std::__1::hash<EC> >' requested here
          bool = is_empty<_Hash>::value && !__libcpp_is_final<_Hash>::value
                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/unordered_map:765:13: note: in
      instantiation of default argument for '__unordered_map_hasher<EC, std::__1::__hash_value_type<EC, int>, std::__1::hash<EC> >' required here
    typedef __unordered_map_hasher<key_type, __value_type, hasher>   __hasher;
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
issue.cpp:9:33: note: in instantiation of template class 'std::__1::unordered_map<EC, int, std::__1::hash<EC>, std::__1::equal_to<EC>,
      std::__1::allocator<std::__1::pair<const EC, int> > >' requested here
    std::unordered_map<EC, int> imap;
                                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3171:29: note: template is
      declared here
template <class _Tp> struct hash;
                            ^
1 error generated.
make: *** [issue] Error 1

This can be fixed by defining a hash for type EC (note this is a very naive implementation):
namespace std
{
    template<>
    struct hash<EC>
    {
        std::size_t operator()(const EC& e) const
        {
            return 0;
        }
    };
}

Unfortunately, this does not yet fix the problem:
c++ -Isrc -std=c++11    issue.cpp   -o issue
In file included from issue.cpp:2:
src/json.hpp:1102:9: error: static_assert failed "could not find to_json() method in T's namespace"
        static_assert(sizeof(BasicJsonType) == 0,
        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~
src/json.hpp:1111:16: note: in instantiation of function template specialization
      'nlohmann::detail::to_json_fn::call<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long
      long, double, std::allocator, adl_serializer>, const std::__1::pair<const EC, int> &>' requested here
        return call(j, std::forward<T>(val), priority_tag<1> {});
               ^
src/json.hpp:1201:9: note: in instantiation of function template specialization
      'nlohmann::detail::to_json_fn::operator()<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long,
      unsigned long long, double, std::allocator, adl_serializer>, const std::__1::pair<const EC, int> &>' requested here
        ::nlohmann::to_json(j, std::forward<ValueType>(val));
        ^
src/json.hpp:2287:28: note: in instantiation of function template specialization 'nlohmann::adl_serializer<std::__1::pair<const EC, int>,
      void>::to_json<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double,
      std::allocator, adl_serializer>, const std::__1::pair<const EC, int> &>' requested here
        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
                           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1752:31: note: in instantiation of
      function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long
      long, double, std::allocator, adl_serializer>::basic_json<const std::__1::pair<const EC, int> &, std::__1::pair<const EC, int>, 0>'
      requested here
            ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...);
                              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1668:18: note: in instantiation of
      function template specialization 'std::__1::allocator<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long
      long, unsigned long long, double, std::allocator, adl_serializer> >::construct<nlohmann::basic_json<std::map, std::vector,
      std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>, const std::__1::pair<const EC,
      int> &>' requested here
            {__a.construct(__p, _VSTD::forward<_Args>(__args)...);}
                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1514:14: note: (skipping 8
      contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            {__construct(__has_construct<allocator_type, _Tp*, _Args...>(),
             ^
src/json.hpp:1096:16: note: in instantiation of function template specialization 'nlohmann::detail::to_json<nlohmann::basic_json<std::map,
      std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>,
      std::__1::unordered_map<EC, int, std::__1::hash<EC>, std::__1::equal_to<EC>, std::__1::allocator<std::__1::pair<const EC, int> > >, 0>'
      requested here
        return to_json(j, std::forward<T>(val));
               ^
src/json.hpp:1111:16: note: in instantiation of function template specialization
      'nlohmann::detail::to_json_fn::call<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long
      long, double, std::allocator, adl_serializer>, std::__1::unordered_map<EC, int, std::__1::hash<EC>, std::__1::equal_to<EC>,
      std::__1::allocator<std::__1::pair<const EC, int> > > &>' requested here
        return call(j, std::forward<T>(val), priority_tag<1> {});
               ^
src/json.hpp:1201:9: note: in instantiation of function template specialization
      'nlohmann::detail::to_json_fn::operator()<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long,
      unsigned long long, double, std::allocator, adl_serializer>, std::__1::unordered_map<EC, int, std::__1::hash<EC>, std::__1::equal_to<EC>,
      std::__1::allocator<std::__1::pair<const EC, int> > > &>' requested here
        ::nlohmann::to_json(j, std::forward<ValueType>(val));
        ^
src/json.hpp:2287:28: note: in instantiation of function template specialization 'nlohmann::adl_serializer<std::__1::unordered_map<EC, int,
      std::__1::hash<EC>, std::__1::equal_to<EC>, std::__1::allocator<std::__1::pair<const EC, int> > >,
      void>::to_json<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double,
      std::allocator, adl_serializer>, std::__1::unordered_map<EC, int, std::__1::hash<EC>, std::__1::equal_to<EC>,
      std::__1::allocator<std::__1::pair<const EC, int> > > &>' requested here
        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
                           ^
issue.cpp:33:14: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector,
      std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator,
      adl_serializer>::basic_json<std::__1::unordered_map<EC, int, std::__1::hash<EC>, std::__1::equal_to<EC>,
      std::__1::allocator<std::__1::pair<const EC, int> > > &, std::__1::unordered_map<EC, int, std::__1::hash<EC>, std::__1::equal_to<EC>,
      std::__1::allocator<std::__1::pair<const EC, int> > >, 0>' requested here
    json j = imap;
             ^
1 error generated.
make: *** [issue] Error 1

I'm not sure about this yet. :-(

@theodelrieu Any idea on this? This may be related to #600.

(Not helpful, but worth noting:)
The README says:

Likewise, any associative key-value containers (std::map, std::multimap, std::unordered_map, std::unordered_multimap) whose keys can construct an std::string and whose values can be used to construct JSON types (see examples above) can be used to to create a JSON object.

In this example, there is no conversion from EC to std::string possible. The conversion to json is not used here, and I am not sure whether it is a good idea to use it.

Indeed, only map-like types with a key convertible to std::string are supported by default.
However, you can partially specialize adl_serializer like this:
namespace nlohmann {
template <typename T>
adl_serializer<std::unordered_map<EC, T>> {
  // define to_json/from_json here
};
}

Cool, thanks. I'll give that a try.
Why is this not supported via to/from_json?
On Tue, Jun 6, 2017, 06:27 Théo DELRIEU<EMAIL_ADDRESS>wrote:

Indeed, only map-like types with a key convertible to std::string are
supported by default.
However, you can partially specialize adl_serializer like this:
namespace nlohmann {template
adl_serializer<std::unordered_map<EC, T>> {
// define to_json/from_json here
};
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nlohmann/json/issues/607#issuecomment-306470641, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAG6-RuN3cKIwG78WBgH8dEk1-NUdaK8ks5sBUWVgaJpZM4NvoOD
.

We support JSON serialization for enums and enum classes by default, using the underlying numeric value.
However, in this case, we are not converting an enum into a JSON value, but as a part of a JSON value (an object here). The library cannot call a to_json method to convert the key for that reason, this is why providing your own methods are not helping here.
The approach I mentioned ahead will allow you to handle that key "stringification" yourself.
This is a more advanced use of the arbitrary type conversion feature, you can find more info in this Readme section

I agree with @theodelrieu. You need to provide your own enum-to-string conversion.

@nlohmann and by that you mean via the adl_serializer specialization? Because, I am providing enum-to-string conversion (at least, I thought I was via to/from_json)
I'll try out the adl_serializer. Do I have to build the json from the map myself? That is, what's the bare minimum I can provide in the serializer to get the serializing/deserializing?

The to/from_json functions only describe how a type can be converted to json. In your case, you described how EC is converted to json.  However, there is no conversion from EC to std::string provided.

Okay, thanks.
What is the proper usage of adl_serializer for populating from a map? I don't need a whole example, necessarily. I'm just not clear on where to start. Thanks.
namespace nlohmann {
template <typename T>
adl_serializer<std::unordered_map<EC, T>> {
  // define to_json/from_json here
  void to_json(json& j, std::unordered_map<EC, T> const& map) {
    // loop on map entries here?
    // j = ...
  }

  // likewise for from_json?
};
}

I think @theodelrieu can help with that.

First, do not forget to make your methods static.
Something like this will work:
for (auto const& elem : map) {
  auto const strKey = convertToString(elem.first);
  j[strKey] = elem.second;
}

Of course there needs to be a to_json method for each type T that will be used in your map.
Same thing for the from_json, but you need to modify the loop to expose the key:
for (auto const& elem : json::iterator_wrapper(j)) {
  auto const enumKey = enumFromString(elem.key());
  map[enumKey] = elem.value();
}

@RobotCaleb - Did @theodelrieu s hints work for you?

I switched away from this to just being explicit with tinyxml2. I appreciate your prompt responses, though.


ibc: use ibc-types 0.3.0 instead of main

Failing WASM check: @avahowell suspects we just need to click on the std feature for the ibc-types dep.

Heads up, we just merged https://github.com/penumbra-zone/ibc-types/pull/38 which we'll definitely want in for Testnet 55. If subsequent testing with https://github.com/penumbra-zone/penumbra/pull/2803 looks good, we'll either want to bump ibc-types to 0.3.1 to include the latest, or keep the dep on main for now. What we don't want is to pin 0.3.0 of ibc-types for 55, which would ship a known-bad ibc implementation.


Add remove-decorators extension

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Simple extension to replace
@Entity(tableNames.users)
export class User {
    @Field()
    @PrimaryGeneratedColumn('uuid')
    user_id: string;

    @Field()
    @Column({ unique: true })
    username: string;
}

with this
export class User {
    user_id: string;

    username: string;
}

useful for NestJS types sharing

based on json-format existing extension https://github.com/raycast/extensions/tree/59087c124218d0aa70034caa193aaa6d15a905a7/extensions/json-format/

Thank you, will review it!!!


unhandled exception (let me know if you need some .esp)

TES3Merge.log

Can you try with this, and trigger the crash again?
TES3Merge-Test.zip

Fixed in e09becfa36ad375334432f3c8a8ae791b7d0bac0


ESM export incorrectly uses require

laravel-vite-plugin recently added support for ESM, e.g. so one can set "type": "module" in the root package.json of a laravel project. This gives a hint to node that ESM should be assumed for all *.js files.
It seems tsup as configured for this project over bundles dependencies, and results in a ESM export that cannot be used in a ESM laravel project.
npm run build
failed to load config from /my-laravel-project/vite.config.js
error during build:
Error: Dynamic require of "events" is not supported
    at file:///my-laravel-project/node_modules/@infrasym/laravel-favicon-vite-plugin/dist/index.js:12:9
    at Object.<anonymous> (file:///my-laravel-project/node_modules/@infrasym/laravel-favicon-vite-plugin/dist/index.js:5595:16)
    at node_modules/xml2js/lib/parser.js (file:///my-laravel-project/node_modules/@infrasym/laravel-favicon-vite-plugin/dist/index.js:5951:8)
    at __require2 (file:///my-laravel-project/node_modules/@infrasym/laravel-favicon-vite-plugin/dist/index.js:15:50)
    at Object.<anonymous> (file:///my-laravel-project/node_modules/@infrasym/laravel-favicon-vite-plugin/dist/index.js:5975:16)
    at node_modules/xml2js/lib/xml2js.js (file:///my-laravel-project/node_modules/@infrasym/laravel-favicon-vite-plugin/dist/index.js:5990:8)
    at __require2 (file:///my-laravel-project/node_modules/@infrasym/laravel-favicon-vite-plugin/dist/index.js:15:50)
    at file:///my-laravel-project/node_modules/@infrasym/laravel-favicon-vite-plugin/dist/index.js:5996:29
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

As a workaround you can change tsup to tsup-node in the package.json build script. Since favicons is only a devDependency here that needed to be installed as well in my project.
This could just be a weird tsup bug, but at the same time wouldn't it be best to avoid bundling so many dependencies in the first place in the outputted dist? Right now the 2 outputted dist files index.cjs and index.js have a size of ~500 KB combined, instead of  ~7 KB with tsup-node (of course this ignores the size of the favicons package that may need to be installed).

@DevJMD Is this a dead project as this error is still here and makes this useful script not usable.


Irregular footer behavious

The Footer in scholarships and job pages is showing unwanted behavior of appearing on top of the other elements.

NOTE: the file structure is based on the PR that has been accepted for issue #189 and it is suggested to only accept the PR after the PR for #189 has been merged as the file structure is very different

please assign me


adding the missing dependency for event-stream

Hi, if I didn't misunderstood everything, I think that the event-stream package dependency is missing. Adding it to the package.json let me use this package tha I simply love: thank's a lot for it!

hmm I suspect it might be missing from template-lint. The event-stream stuff happens there. I will wipe everything and pull the projects again. Cheers for the heads up. Btw, feel free to request rules or changes

Sorry being a total idiot, yes you're right its right there index.js. :D

Uh, yep.. there was a direct reference in index.js.. Sorry for non mentioning it. Anyway: thank's again!


Bump pylint, pydantic, remove "artifacts.yaml" logic

👀
This will require Studio BE update - we need to remove old logic that works with artifacts.yaml - that will make Studio MR backend codebase more easy to work with! To clarify, before we already removed "write" access to old artifacts.yaml, but kept "read" access. Now we remove "read" access as well. (Please notice, that will lead to some users losing info about model versions that are 3+ months old, but I hope that's ok).
So once this merged, consider bumping major or minor version, but not the patch.

Codecov Report
Patch coverage is 96.92% of modified lines.

:exclamation: Current head 649e3fa differs from pull request most recent head afddc5e. Consider uploading reports for the commit afddc5e to get more accurate results

Files Changed
Coverage

gto/api.py
ø

gto/cli.py
0.00%

gto/utils.py
ø

gto/config.py
96.66%

gto/__init__.py
100.00%

gto/base.py
100.00%

gto/git_utils.py
100.00%

gto/registry.py
100.00%

gto/tag.py
100.00%

:loudspeaker: Thoughts on this report? Let us know!.

cc @amritghimire about changes required in BE ^

@pmrowla, I assume this is what you meant to make it compatible with py-template. There are few things still that should be fixed - like remove top-level silence statements here https://github.com/iterative/gto/blob/bumping-versions/gto/config.py#L1, but overall it should be ready for py-template I hope!

close https://github.com/iterative/gto/issues/400

Since studio depends for now on MLEM and MLEM depends on the first Pydantic, will those co-exist fine together or does it means we need to upgrade / drop MLEM dependency?

We discussed this in today's team meeting and decided not to merge this PR due to the breakages involved. We don't want to risk merging this for now.
Most of the pylint/mypy changes has been cherry-picked into the main branch, and CI is now running from Python 3.8 - 3.11 versions now.
I have created #413 that supports both Pydantic v1 and v2, so there's no immediate need to migrate to use pydantic v2 APIs too.


[BUG] ModAssistant 2.2.2 Crashes on Startup

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When starting the app,  the new mod refresh screen displays and counts all mods,  then displays an unhandled Exception box 4 times and closes.

crash.log
I have attached the screen shot and the crash.log file.
Expected Behavior
No response
Steps To Reproduce
No response
Environment
- Mod Assistant Version: 2.2.2
- OS: Windows 10
- Virtualized: no

Anything else?
No response

huh.  that one is new.  probably an easy fix, and I owe a version drop today anyway.  give me a few hours to duplicate

Thanks man.   No problem.  Just thought you'd want to know.

so, it's a bad mod.  this in a modDesc.xml will do it
<iconFilename><stuff>a.dds</stuff></iconFilename>  (empty or missing is fine though)
At any rate, it shouldn't crash when it happens though

Dang,  I figured it was a mod.   Just don't remember what I added lately.  LOL.

Fwiw, I left that error message in the log - and of course, it's gonna fail to load the icon file, so look for the ones that are missing :)

Downloaded and verified the 2.2.3 and the issue is resolved.   Thanks for the quick turnaround!


rush install error

"rush install" command is not successful on Mac OS NodeJS - v12.13.1
Error: Command failed: npm install --no-save @bentley/imodeljs-darwin-x64@1.
│ npm ERR! code E404
│ npm ERR! 404 Not Found - GET https://registry.npmjs.org/@bentley%2Fimodeljs-
│ npm ERR! 404
│ npm ERR! 404  '<EMAIL_ADDRESS>is not in the npm registr
│ npm ERR! 404 You should bug the author to publish it (or use the name yourse

iModel.js backends do not yet support MacOS, but we're working on it.
The list of currently supported platforms can be found here: https://imodeljs.github.io/iModelJs-docs-output/learning/supportedplatforms/
I'm sorry this has been an inconvenience for you.


Render Markdown in Table

Hey, hkgnp - I love your plug-in 💚
Just a little thing. It would be great if the table could render markdown, e.g. bold, italics, links. Here an example:

Thank you for your work!

Available in latest version.

@benjypng The rendering works in the content, but not in the title. Could this be added as well?


[bug] Pydantic script rail fails with nested objects

Describe the bug
When I try to use pydantic models within

That is indeed much better and I've started with this one at first, but it was crashing with other errors :D
Let me double check once again

OK, my prompt has curly brackets in it and it was fine when I was using xml, but with .from_pydantic it fails:
File /usr/local/Caskroom/mambaforge/base/envs/careerbot/lib/python3.10/site-packages/guardrails/rail.py:204, in Rail.load_prompt(root, output_schema)
    201 @staticmethod
    202 def load_prompt(root: ET._Element, output_schema: Schema) -> Prompt:
    203     """Given the RAIL <prompt> element, create a Prompt object."""
--> 204     return Prompt(
    205         source=root.text,
    206         output_schema=output_schema.transpile(),
    207     )

File /usr/local/Caskroom/mambaforge/base/envs/careerbot/lib/python3.10/site-packages/guardrails/prompt/base_prompt.py:20, in BasePrompt.__init__(self, source, output_schema)
     18 # If an output schema is provided, substitute it in the prompt.
     19 if output_schema:
---> 20     self.source = source.format(output_schema=output_schema)
     21 else:
     22     self.source = source

KeyError: ' font-family'```

part of prompt:

style.
    .Fraser-106 { font-family:FranklinGothic,sans-serif;font-size:10.6pt }
    .Fraser-200 { font-family:FranklinGothic,sans-serif;font-size:20.0pt }
    .Fraser-110 { font-family:FranklinGothic,sans-serif;font-size:11.0pt }
    .Fraser-110-22675f { font-family:FranklinGothic,sans-serif;font-size:11.0pt;color:#22675f }
    .Fraser-125 { font-family:FranklinGothic,sans-serif;font-size:12.5pt }
    .Fraser-100 { font-family:FranklinGothic,sans-serif;font-size:10.0pt }
    .Symser-106 { font-family:SymbolMT,sans-serif;font-size:10.6pt }
    .Ariser-106 { font-family:Arial,sans-serif;font-size:10.6pt }
    .Fraser-106-22675f { font-family:FranklinGothic,sans-serif;font-size:10.6pt;color:#22675f }

How do I escape them?

.replace('{', '{{').replace('}', '}}').replace('&', '&') seems to be working

But the issue is that the resulting guard.base_prompt schema lacks descriptions from docstring of pydantic classes like if used to be in the

Here is the example:
from guardrails.utils.pydantic_utils import register_pydantic
from pydantic import BaseModel

class Movie(BaseModel):
    '''
    Movie info

    Args:
        rank (int): Rank 1-10
        title (str): Movie title
    '''
    rank: int
    title: str

prompt = """
Create a random movie
@complete_json_suffix_v2
"""
guard = gd.Guard.from_pydantic(Movie, prompt=prompt)
print(guard.base_prompt)

Outputs:
Create a random movie

Given below is XML that describes the information to extract from this document and the tags to extract it into.

<output>
    <integer name="rank"/>
    <string name="title"/>
</output>

ONLY return a valid JSON object (no other text is necessary), where the key of the field in JSON is the `name`
attribute of the corresponding XML, and the value is of the type specified by the corresponding XML's tag. The JSON
MUST conform to the XML format, including any types and format requests e.g. requests for lists, objects and
specific types. Be correct and concise.

Here are examples of simple (XML, JSON) pairs that show the expected behavior:
- `<string name='foo' format='two-words lower-case' />` => `{{'foo': 'example one'}}`
- `<list name='bar'><string format='upper-case' /></list>` => `{{"bar": ['STRING ONE', 'STRING TWO', etc.]}}`
- `<object name='baz'><string name="foo" format="capitalize two-words" /><integer name="index" format="1-indexed"
/></object>` => `{{'baz': {{'foo': 'Some String', 'index': 1}}}}`

As you see the rank and title unfortunately lack descriptions. Am I doing something wrong?

OK, I digged into your code a bit and found out that it should be
import guardrails as gd
from pydantic import BaseModel, Field

class Movie(BaseModel):
    '''
    Movie info
    '''
    rank: int = Field(description="Rank 1-10")
    title: str = Field(description="Movie title")

prompt = """
Create a random movie
@complete_json_suffix_v2
"""
guard = gd.Guard.from_pydantic(Movie, prompt=prompt)
print(guard.base_prompt)

Please update the docs!

0.2.0 was released with doc updates related to this issue.  Please see the specific updated docs page here and let us know if you continue to experience related problems.  We also now include both XML and Pydantic implementations in all of our examples.


Add initial support for a hygon csv verifier

@BaoshunFang Can you take a look at the CI error?

@BaoshunFang You can run cargo fmt to solve the current CI error.

Done


https over http in docs

Build successful! See generated HTML docs (may take a while till they are available):
http://ci.kiegroup.org/job/kie-docs-pullrequests/200/artifact/docs/drools-docs/target/generated-docs/html_single/index.html
http://ci.kiegroup.org/job/kie-docs-pullrequests/200/artifact/docs/jbpm-docs/target/generated-docs/html_single/index.html
http://ci.kiegroup.org/job/kie-docs-pullrequests/200/artifact/docs/optaplanner-wb-es-docs//target/generated-docs/html_single/index.html


SubpixelConv2D or Deconv2D?

@igul222 Thanks for your good code!
I am confused about why you use SubpixelConv2D for shortcut upsampling but not Deconv2D? SubpixelConv2D brings better results?

it should work better, but it's also slower. using it only in the shortcuts is a compromise.


[site] Revert "Fix dashboards to 2023.10.16 regression" : 7472e1d5

This reverts commit 7472e1d5ba328649db6b25c134a7e6c649d2b312.
It also changes a table in util/site/fetch_block_stats.py, which was modified the meantime to a similar effect for the block-diagram.

I just built this locally and the results match the latest report.
Thanks @hcallahan-lowrisc :)


fix: use 12 or 24 word Secret Key

Description
The app supports 12 or 24-word Secret Keys. The UI should reflect that.
This PR

changes the placeholder and the descriptive text.
removes unused component Seed.

For details refer to issue #726
Type of Change

[ ] New feature
[x] Bug fix
[ ] API reference/documentation update
[ ] Other

Does this introduce a breaking change?
no
Are documentation updates required?
No
Testing information
"12 words" shown correctly (from integration test):

Checklist

[x] Code is commented where needed
[x] Unit test coverage for new or modified code paths
[x] Tag 1 of @hstove or @kyranjamie or @aulneau for review

@friedger can you rebase this over release/connect-2 (which was itself just rebased off master) and then force push over this?

@friedger can you rebase this over release/connect-2 (which was itself just rebased off master) and then force push over this?

Included in #725 , thanks!

Included in #725 , thanks!


Header Style for selectRow

For column headers, I know you can style like this:
const columns = [{ headerStyle: { backgroundColor: '#215E95', color: 'white'} }]
How do I do this for selectRow header column? As far as I can tell, it only has options for the selected row style.
const selectRow = { mode: 'checkbox', clickToSelect: true, style: { header: 'yellow' } }

@ALuongIBM yeah, so far we didn't provide a way to custom the selection header, I will implement this ASAP, thanks

Thank you!

@AllenFang @ALuongIBM
I am trying to change the text color of the selected row and I am using the code as below.
const selectRowProp = {   mode: 'radio',   style: { color: 'pink' },   clickToSelect: true,   hideSelectColumn: true,   onSelect: onRowSelect, }
But it isn't working now. Do you have any idea?

@rufoot we allow developer to custom the row style or class: https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/basic-row.html#row-style-class
So you can use above ways to custom the row, then the only remain thing is how do you know which row is selected. selectRow.onSelect will help you

we fixed this issue, CHANGELOG
Please upgrade the packages which listed above to get newest patch, thanks
@ALuongIBM in your case, please use selectRow.headerColumnStyle thanks!

Thanks for the quick turnaround! I appreciate you checking the issues so frequently.


gi-panel-div bug

Hello; While exporting GraphInsight SDK, I extract it as npm package from 提供 NPM 包，支持 Tree Shaking，原生集成到 React 项目中. After making the necessary additions to my project, on the right when first opened 属性面板
(gi-panel-div)
part stays open all the time and does not close. I checked the version differences, I was using antd 15 from the beginning, then even though I downgraded to 14, the same problem persisted. All other packages are same as sample code in codesandbox including graphin. I would be very happy if you could help me with the problem.

@BoyYangzai 跟进一下


Updated vars to lets

Thanks for your pull request. Unfortunately, this project is no longer maintained.


Row custom style

Hi, Can you share me some idea about custom styling of a particular row after loading all data on data-table. I want to apply row style on a particular row which met some specific condition. It will be a great help! Thanks in advance.

I resorted to doing something like this, though it's not reactive, it does work.
  computed: {
    isCompleted() {
      return this.row["completed"]
    }
  },

  methods: {
    updateRowColor(value) {
      if (value) {
        this.$el.closest('tr').classList.add('success')
      } else {
        this.$el.closest('tr').classList.remove('success')
      }
    }
  },

  mounted() {
    this.updateRowColor(this.row[this.field])
  },

  watch: {
    isCompleted(value) {
      this.updateRowColor(value)
    }
  },


replace uses of path with filepath, to address operability across…

… multiple OS

approval is still required for this to push.
forced push was for a rebase on origin/master.


Add example on how to use this to deploy a docker-compose setup to Web App for container

as title

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

ID: d767aebb-620e-9ad3-e906-3e2bafa02ee9
Version Independent ID: c8cb5a48-ccdf-778c-1547-a10db74cb56c
Content: Docker Compose task - Azure Pipelines & TFS
Content Source: docs/pipelines/tasks/build/docker-compose.md
Product: devops
GitHub Login: @erickson-doug
Microsoft Alias: dastahel

An example would be awesome.

@stevo-knievo
here's how I do it, directly in Azure Web App for now:

it was simply easier than finding how to do it manually in Azure Pipelines... but I'd like to do it from my CI and not through the automated web hook on the Azure side.

Thanks @phil-lgr! Same here. I would like to use Azure Pipelines as well. I'm wondering how to replace the image tag in the docker-compose.yml file from the current build $(Build.BuildId) and keep the other image tags.

I ended up doing it from a npm script
something like:
"docker:tag:client:releasev": "cross-var docker tag $npm_package_config_docker_registry/$npm_package_name$npm_package_config_docker_client_image_name:$npm_package_version $npm_package_config_docker_registry/$npm_package_name$npm_package_config_docker_client_image_release:$npm_package_version",
where the $npm_packge_* are npm env variable

so I tag my images latest and also with the package.json version, and then I push both to the registry

Any update on when this feature will be available. I’d like to use it from pipelines and do manually in azure

Still waiting for this feature to be fleshed out. Actually using DevOps/Azure Pipelines is terrible due to this documentation being terrible.

This feature has gone live now

Please let us know if you have any feedback.

Is there an example document somewhere that explains how to use this feature from Azure Devops?
Your screen shot above doesn't provide any such details.

This feature has gone live now

Please let us know if you have any feedback.

Hi @azooinmyluggage , nice one.
This is exactly what I need.
Where is this feature? I can't seem to find it.
Regards
Andy

Is there an example document somewhere that explains how to use this feature from Azure Devops?
Your screen shot above doesn't provide any such details.

@ceemafour It is available in a 'Azure Web App for Containers' task.


It stops working recently

It just shows Error fetching stock 😞 null
I think it is because Google finance stops providing service:  http://finance.google.com/finance/info?client=ig&q=rng

I have experienced the same behavior. It also appears that npm test doesn't cover accessing the external APIs.


Some function stuff

Signed-off-by: liach<EMAIL_ADDRESS>

Hmm, so no one reviews this? This at least maps a nested class...


Add button to subscribe/unsubscribe for boards

As a user, I want to be able to subscribe for interesting boards

Each listed board has a subscribe button
Successful subscribing shows a success message
The subscribe button turns to unsubscribe after subscribing
Successful unsubscribing shows a success message
The unsubscribe button turns to subscribe after unsubscribing

@atamankina Really nice AC!!

QA Done:
All according to AC, apart from no (written) message when subscribing/unsubscribing. not necessary however, as the UX is good enough to understand it with the colouring of the heart in red/grey. top!


Listings not resolving properly on mainnet

As a result of recent router changes, we are finding a large set of listings which are not resolving properly.
(Note: This bug appears to only affect 0.13.3-rc1.)

I've noticed in 0.13.3 I cannot resolve by IPFS listings with older format hashes... e.g. zb2rheTAmRB27kY5BfT396nYXh8ktZ5K1PYT9aKb4YT8qDQCk


Are there any event handlers to deal with the "error-opening" event

mongodb : 2.1.18
monk version:3.1.2
when my mongo is down ,then i can not get anything .so i add a callback in Manager.prototype.then
,i got the error below :
``
(node) warning: possible EventEmitter memory leak detected. 11 error-opening listeners added. Use ```

emitter.setMaxListeners() to increase limit.
Trace
at Manager.addListener (events.js:252:17)
at Manager.once (events.js:278:8)
at Manager. (E:\git\NatureCloud\node_modules\monk\lib\manager.js:175:10)
at Manager.then (E:\git\NatureCloud\node_modules\monk\lib\manager.js:173:10)
at storageMetaInfoDB.myMongoDB (E:\git\NatureCloud\db\mongodb.js:13:10)
at new storageMetaInfoDB (E:\git\NatureCloud\db\storageMetaInfoDB.js:12:10)
at Object. (E:\git\NatureCloud\lib\k8s\kubernetes.js:30:21)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)

 i hava to add a   callback function in Manager.prototype.then or  Manager.prototype.catch to get what happened ?

What is happening?
When you start using monk, you usually don't wait for the connection to do queries:
const db = monk()

db.get('users').find()

Let's say we have 15 queries like this throughout the node app. Each of those queries will register an event listener to know when they will actually be able to query the database. Once the connection is opened (or closed), the event listeners are freed.
Does it answer your question or did I misunderstood?


How simple to train CycleR2R

Hello,
I am very interested in your CycleR2R method, but I don't seem to find where I can train a CycleR2R model in the code, could you please tell me how to use the code of Cycle2R?
Thank you for your assistance!

In particular, how should I use this code when working with my own RAW and RGB datasets


examples/skeletalanimation/skeletalanimation.cpp line 570:

vertex.pos = glm::make_vec3(&skinnedMesh->scene->mMeshes[m]->mVertices[v].x);
vertex.normal = glm::make_vec3(&skinnedMesh->scene->mMeshes[m]->mNormals[v].x);
vertex.uv = glm::make_vec2(&skinnedMesh->scene->mMeshes[m]->mTextureCoords[0][v].x);
vertex.color = (skinnedMesh->scene->mMeshes[m]->HasVertexColors(0)) ? glm::make_vec3(&skinnedMesh->scene->mMeshes[m]->mColors[0][v].r) : glm::vec3(1.0f);

The function loadmesh()，vertex.pos.x vertex.pos.y vertex.pos.z all is equal to the mVertices[v].x，mesh data is error？

Can you please elaborate? It's not clear from your description if this is a bug, a question or a suggestion.

skinnedMesh->scene->mMeshes[m]->mVertices 0x0000016646349eb0 {x=-137.281006 y=364.010986 z=1633.54004 }
vertex.pos = glm::make_vec3(&skinnedMesh->scene->mMeshes[m]->mVertices[v].x);
but use glm::make_vec3 after, vertex.pos value is {x=-137.281006 r=-137.281006 s=-137.281006 ...},
I think is a bug?

I think I find real problem, the skeletalanimationmesh.vert UBO line 12:
layout (binding = 0) uniform UBO
{
	mat4 projection;
	mat4 view;
	mat4 model;
	mat4 bones[MAX_BONES];
	vec4 lightPos;
	vec4 viewPos;
} ubo;

but in skeletalanimation.cpp line 368:
struct {
	glm::mat4 projection;
	glm::mat4 model;
	glm::mat4 view;
	glm::mat4 bones[MAX_BONES];
	glm::vec4 lightPos = glm::vec4(0.0f, -250.0f, 250.0f, 1.0);
	glm::vec4 viewPos;
} uboVS;

order of view and model is different，so can not show mesh in example well, is a bug...

Yes, that's obviously wrong. I'll take a look at it.

the sample is ok now, thanks.
the sample can not rendering skinned mesh(only render a floor) before I fixed uboVS.model matrix.
In the function updateUniformBuffers() line 942:
uboVS.view = viewMatrix * glm::translate(glm::mat4(1.0f), glm::vec3(cameraPos.x, -cameraPos.z, cameraPos.y) * 100.0f);
uboVS.view = glm::rotate(uboVS.view, glm::radians(rotation.x), glm::vec3(1.0f, 0.0f, 0.0f));
uboVS.view = glm::rotate(uboVS.view, glm::radians(rotation.z), glm::vec3(0.0f, 1.0f, 0.0f));
uboVS.view = glm::rotate(uboVS.view, glm::radians(-rotation.y), glm::vec3(0.0f, 0.0f, 1.0f));
uboVS.viewPos = glm::vec4(0.0f, 0.0f, -zoom, 0.0f);
uboFloor.projection = uboVS.projection;

uboVS.model is invalid. there are not assigned a useful value but vertexshader used it.

I have reworked parts of that sample. All matrices should now be properly initialized.


Don't log bot matches in ranked

Hard work, data isn't great and requires too much manual data manipulation for something that's only in Bronze.


encode and sign the ext option

The signing spec/guide indicates that an optional extensions can be encoded in an http signature but the reference implementation did not enable such. This pull request modifies the signer to encode the ext option if specified by the caller. I also added a signer test and verify test for this scenario.
Regards.

Looking at the relevant section of the draft specification, I believe the extensions parameter is not meant to simply be included as a string value.  Given that, I'm more inclined to change the documentation to state that extensions is reserved for future use and omit any implementation details for now.

Well yes. I got in the lazy habit of referring to the markdown description rather than the draft because the markdown description is more human friendly. But I see what you mean and I will revise approach. It is a pity however that the draft has expired and there is no actual "Signature Authentication Scheme Registry" at IANA (that I can find).


Trying to check out zjstatus, but it fails

Describe the bug
Trying to check out zjstatus, but apparently it does not want to load :(
not sure if its a zjstatus thing or zellij bug, direct me if necessary
To Reproduce
Steps to reproduce the behavior:

run new session with zjstatus.wasm defined

Expected behavior
zjstatus would show as in screenshots
Screenshots

Desktop (please complete the following information):

OS: Linux
Zellij version: v0.40.1
Version: 0.17.0

Layout
How does the layout look like? Please copy it into a code block.
layout {
    default_tab_template {
        children
        pane size=1 borderless=true {
            plugin location="file:~/.config/zellij/plugins/zj_status.wasm" {

            }
        }
    }
    tab name="☍ dev" {
        pane
    }
    tab name="ꆛconfig"{
        pane
    }
 }

Additional context
ERROR  |zellij_server::plugins::w| 2024-07-23 16:36:37.374 [async-std/runti] [/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.40.1/src/plugins/wasm_bridge.rs:1224]: failed to start plugin 0 for client 1

Caused by:
    0: failed to recover cache dir
    1: WebAssembly translation error: Error when converting wat: expected at least one module field
            --> <anon>:1:1
             |
           1 |
             | ^

Try to download it with wget. This works perfectly on my side. So I guess that's the problem, why it doesn't load.
Then we can close the issue, if it loads fine when downloaded manually

yep, you are completely right, my bad forgetting the redirect
Thank you so much!


Bounce.md

Community Contribution
Link to live project, video, or image:

Sharing

[x] I would be happy to have my project shared on The Coding Train's social media!

Instagram:
Twitter:

https://editor.p5js.org/arnavraspberrypi/sketches/f4idrhqrU


Use globally installed phantomjs

We're using a CI service that is built on top of Docker images. To get the build time down, and in case the tar containing phantomjs is down, I was installing phantomjs in the container globally using npm install -g<EMAIL_ADDRESS>Whenever there's an npm install on the project it still goes and downloads phantomjs.
Looks like an `npm install -g`; unable to check for already installed version.
Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2

Is there any way around this behavior? I'm currently using grunt-contrib-qunit which depends on this library.
Thanks!

Agree. I tried solution, but this is does not helped me. Local phantomjs available, global phantomjs too, binary defined in PATH, but receiving does again and again.

@donny-dont also you can try my temporary solution — install phantomjs from local directory.
{
  "devDependencies": {
    "phantomjs": "./assets/phantomjs"
  }
}

Anybody resolved this issue? I am facing same issue installing phamtomjs on circleci.

@donny-dont Please let me know if you found any solution to this problem.

This is an issue with https://github.com/Medium/phantomjs as it is the package that install PhantomJS binaries. So please report the issue on their issue tracker.
Closing this for now, feel free to ask if you have followup questions.


Error when saving/loading rnn module after calling weights() or bias()

Hey I'm running into an error when saving/loading the module after calling weights() or bias(). Can be reproduced below:
require 'cudnn'

local input = torch.randn(1, 1, 5):cuda()

local rnn = cudnn.RNNReLU(5, 5, 1):cuda()
print(rnn:forward(input))

local weights = rnn:weights()
local biases = rnn:biases()

torch.save('temp.t7', rnn)
local rnn = torch.load('temp.t7')

print(rnn:forward(input))

Thanks!

The call to cudnnGetFilterNdDescriptor here modifies the strings dataType, format and self.datatype and remove the first part of them: for example CUDNN_DATA_FLOAT becomes N_DATA_FLOAT. This leads to an error when you try to save the model because the datatype is wrong.
I am not sure why this function call does that though...

Ok the problem is that cudnn actually modifies the string that we give it (for some reason) and in this case, it modifies the lua internalized strings.

Strange issue hopefully someone can explain why this occurs... @albanD any workaround possible at the time being? Thanks!

You can use this branch as a temporary fix. I am not 100% sure this is the best way to solve this, but will do until we find a long term solution.

thanks to Alban, this is fixed in trunk.

Thanks @albanD!


Repo as "Awesome"

Hey
Also maybe this repo can be renamed to "Awesome android app" or something since its a refined list of tools and settings all inside one app, also may help to give visibility to this.
Check https://github.com/sindresorhus/awesome
And just wanted to share this awesome with cool plugins/tools/things/any for mobile learning and best practices...
https://github.com/MakinGiants/awesome-mobile-dev
Its aligned with quality matters so maybe add it to readme here as reference or an update from you guys it with cool things learned from here or something will be "awesome" (lol).

Naa this doesnt make sense, an "awesome" is another thing...

:)


Gamerpower API uses

API Requests
Giveaways

Filter By Options:

Type

Game, Loot, Beta

Platform

PC, Steam, Epic Games Store, itch.io, gog, origin, ubisoft, battlenet, drm-free, ps5, ps4, xbox series x/s, xbox one, switch, android, ios, vr

Sort By Options:

Date
Value
Popularity

Giveaway

Uses the id to fetch info on a specific free game for use in the details page

Pages
Free Games Page

Lists free games in individual cards that you can filter and sort through

Details Page

Shows only one free game with more info about the game, if any, and can be accessed via the free games page

All of these are implemented


Add a client API doc generator so that we don't need to write API documents for each Turms client

Done.


No updates from F-droid

I have a message in app(I use 1.0 from F-droid), that new version 1.0.2 is avaliable.
I don't like apps that check updates directly from app. (It is windows way).
Why there is no last version in F-droid?

You'll have to ask whoever was responsible for uploading it there in the first place. I don't use F-droid.

I think you just need to update "versionCode" in build.gradle


Fixes the issue with the automatic deployment to Github feature.

Fixes #1334
Changes:

Made the automatic deploy to Github work again. The problem was arising due to the recent change in the API specification of a library being used in the project. Found and fixed it and the problem is solved.

Server Link: http://secure-meadow-20680.herokuapp.com

Hi @Princu7 Can you please mention the link in the library specification where it is changed.
I have to see that, before merging this.
Also, please make sure to submit proper tests for each PR so that codecov  is not failed.
Thanks a lot :)

@aayusarora Thanks so much for the review :grinning: . Here is the link to the docs of the library which we are using:
http://mikedeboer.github.io/node-github/#api-gitdata-createReference
Mainly, the process related to the upload and commit of the files was working fine but the app was stuck when we were creating the GH-pages branch after the previous process has completed. For creating a branch from the latest commit, we have to take the sha reference from the current aka, the master branch here. The sha was not getting extracted properly. This is where the error was coming from. It's a bit hard to debug from the library because it doesn't mention the response clearly. You can also look at the Github API specs because the library which we are using is just a wrapper for that.
And the code coverage is not failing. It remains the same as the previous. It's just that the difference doesn't increase the coverage.

Okay, I found the documentation on the Github official API docs. This is what the response is supposed to look like:
{
  "ref": "refs/heads/featureA",
  "url": "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA",
  "object": {
    "type": "commit",
    "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd",
    "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd"
  }
}

The wrapper library which we are using provided us the exact same format in response earlier.
So, we extracted the sha by:
var sha = res['object']['sha']
Now the response after the recent version update of the library, the response was changed to something like this:
{
data: {
  "ref": "refs/heads/featureA",
  "url": "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA",
  "object": {
    "type": "commit",
    "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd",
    "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd"
   }
 }
}

So now we have to extract the sha like this:
var sha = response['data']['object']['sha']
Hope, it is a bit more clear now. Thanks :)


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-26-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3784

Questions ?
Please refer to the Backport tool documentation


Fix typing error of __aexit__

This should take Optional types for exc_type, exc, and tb, as
well as taking a BaseException instead of an Exception.
Fixes #98

Hi Shawn. Thanks for creating this pull request. Let me have a look. :)
This is what I see in the "Files changed" tab:

I'll admit that I'm a bit hung over but the only change that I can see is to the formatting. Is there a semantic difference hidden somewhere here?
Thanks again for creating this pull request.

Hi Shawn. Thanks for creating this pull request. Let me have a look. :)
This is what I see in the "Files changed" tab:

I'll admit that I'm a bit hung over but the only change that I can see is to the formatting. Is there a semantic difference hidden somewhere here?
Thanks again for creating this pull request.

Oh, haha. I edited the released copy in my venv, and I just copypasta'd the fix I used to the master branch. I hadn't even realized it was already fixed 😅
The format change just came about because vscode probably did that because it thought the line was too long.

Oh, haha. I edited the released copy in my venv, and I just copypasta'd the fix I used to the master branch. I hadn't even realized it was already fixed 😅
The format change just came about because vscode probably did that because it thought the line was too long.


Implement black in our codebase (attempt 2)

Complete the jobs from #46. Try to implement black... again.
This time, I am planning to run black in the codebase, to avoid the issues caused in #46.

As I expected, the black --check . step is failing. So I have to run black to reformat the code.

Waiting for the code scanning to merge.


Update ledger protos to 0.7.0

Signed-off-by: James Taylor<EMAIL_ADDRESS>

updated along with the code to match in PR #37


Better Rolls

Hi
Can you make this module trigger better rolls cards?

I second this request!  integration with Better Rolls would be excellent!

support added


[Styles] -- nosplash

Splash screen removed.

@maelswarm can you pull / resolve merge conflicts here


Support delayed start for playback

This adds a new PlayOptions property, "wait" to allow use of the when parameter of AudioBufferSourceNode.start(), which can provide for more precise timing of audio playback than triggering audio in sync with the regular JS event loop. This new property is also supported in legacy mode, for feature parity, but offers no performance advantage in that mode.

Thanks @ericente, good one.


Build API for fetching Raspiblitz log

https://github.com/cstenglein/raspiblitz-web/issues/49

Endpoint is in, but not tested yet on a real Raspiblitz. Access via http://<IP_ADDRESS>:8000/latest/system/get_debug_logs_raw. Make sure to pass a valid JWT token.

Sorry for the confusion, the next release will change the file home.admin/XXdebugLogs.sh to https://github.com/rootzoll/raspiblitz/blob/dev/home.admin/config.scripts/blitz.debug.sh


⚠ Bofrost.de has degraded performance

In b085340, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 929 ms

Resolved: Bofrost.de performance has improved in ccdbfe3 after 13 minutes.


Corrections to import-a-google-font Russian

Reviewed and corrected Russian translation of the article (native speaker)

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@Aiganymus everything LGTM! Thank you for helping us improve this section. Looking forward to your next contribution!


Release Faros Destination as a npm package

Description
Release Faros Destination to npm and allow using it as a library. This would allow using it in a new project with the addition of new converters.
User will now be able to create their own package and add the Faros Destination and Destination Runner package it and run in Airbyte
Example

/* entrypoint for package with custom converters
export function mainCommand(): Command {
  const destinationRunner = new FarosDestinationRunner();

  destinationRunner.registerConverters('MyCustomSource',[
      new CustomSourceBuilds(),
      new CustomSourceArtifacts()
  ])
  return destinationRunner.program;
}

Type of change

[ ] Bug fix
[X] New feature
[ ] Breaking change

@chalenge one last thing - can you please update the README in https://github.com/faros-ai/airbyte-connectors/tree/main/destinations/faros-destination with how to use the new package?


Test kit e2e

WIP
the structure changed as follows:
every library now includes tests/e2e-testkit directory that contains the docker-compose of each implementation
and the implementation resources with this interface:
interface IImplementationResources {
    initEnv(): Promise<void> - initialize database enviorment - run mock server/ docker-compse up
    shutdownEnv(): Promise<void>
    setActive(): Promise<void> | void - set the enviorment variables
    cleanup(): Promise<void> | void   - delete all the schemas
    supportedOperations: SchemaOperations[] - returns a list of supported operations
    name: string
}

There is new class E2EResources (TBD), that receives implementation resources, and the main function and provides all the needed methods for e2e tests.
You can see a usage to the test kit in #338 draft PR.

In addition, some of the docker compose files contain the networks section and some do not, why this inconsistency?

Please add details about what must be done for the MongoDB's tests to run if the tests were run in the previous way

In addition, some of the docker compose files contain the networks section and some do not, why this inconsistency?

fixed

Please add details about what must be done for the MongoDB's tests to run if the tests were run in the previous way

done


Use sndio on OpenBSD

This library apparently uses OSS on OpenBSD currently, this seems unnessecary. The underlying library supports sndio which is OpenBSDs native audio library. Switching to sndio would mean this would have no additional dependencies on OpenBSD. I believe audio(4) would be preferably on NetBSD also.

Fixed in https://github.com/gen2brain/malgo/commit/c79ff816a6a39a25fef7427d6ae82f963db908c9 .


Mac installer must add LICENSE to setup-files

Branch: 0.15.x
Expected behaviour: /installers/osx/setup-files/ folder must have an LICENSE file, so it will be included on the .dmg package.
Current behaviour: LICENSE file is not included in setup folder.

Fixed in #203.


App initialization

Used for internal apps as well as for plugins. The pluginpart is
currently missing, in fact that the main OpenSlides part is more
important. Apps can give their models and mainmenu entries.
Routes are not enabled, because the routes have to be static for webpack
to build the bundles. If we want to keep lazy loading, I see no
possibility to encapsulate the routes from the site-routing module.

@tsiegleauq Please review.

@tsiegleauq Renamed core->common. Should be mergeable now.


Expose Data struct and create document from an instance

Currently, we have a Data struct for each model with serializing and deserializing capabilities. From a user's view, creating a new model from such an instance will be great.
Is this feasible? As far as I know, it might need some extra effort for fields with default values (like MongoDB's id) and some internal types (like DateTime).
Please correct me if I misunderstood something. And I can help with the dev works.

While this could be doable, it goes directly against why I designed Prisma Client Rust the way I did haha.
This sort of pattern is what ORMs like SeaORM do, and while it can be nice it requires either specifying every field to create or using Default, which is something I decided against here. Instead I opted for the field-by-field creation model, with a Vec for all non-required fields.
To keep with this model, I could add a method on Data that calls model::create with the struct's data?

I agree with your main point, the only suitable scenenario for this is about bulk creating. It is not a very common case. If it would introduce more trouble than its benefit and breaks the system's design, it might not be a good idea to implement.
The underlying problem is that I am wondering if there some good practice to decouple the creation of the entity creation and DB operations. Use Data struct as an intermediate data transfer object comes to my mind first, so I raised this issue.
In this system, is there something to serve for this? I think the Create struct might also be capable for that?

I'm not quite sure what you mean by 'the only suitable scenario for this is about bulk creating'.
The model::create() function allows you to decouple assembling a Vec of create data from a call to create_many, unless you're using something other than create_many?

Sorry for the misunderstanding. I just meant creating in the former comment.
Well as you said and shown in the create_many sample code, I guess using Create to decouple creating data entity and real IO is the preferred way in this system?

I'm not quite sure what you mean by 'the only suitable scenario for this is about bulk creating'.
The model::create() function allows you to decouple assembling a Vec of create data from a call to create_many, unless you're using something other than create_many?

Yeah pretty much, there isn't a Create struct but there is the create model function. In case you thought it returns a struct, it returns a tuple as documented here.

Thanks for the help! This is the solution for me. And also, you could close this issue if you do not like this idea.

I'm gonna implement something like this with Create structs


Visitor info is not being set in the offlineForm

I think this issue is related to the Zendesk Chat SDK and not to this repo, but I'm opening the issue here to see if anyone has the same issue or if somebody knows how to tackle it.
Right now I'm starting the chat with this configuration:
    ZendeskChat.startChat({
      name: userAttributes.name,
      email: userAttributes.email,
      phone: userAttributes.phone_number,
      behaviorFlags: {
        showAgentAvailability: true,
        showChatTranscriptPrompt: true,
        showPreChatForm: true,
        showOfflineForm: true,
      },
      // The preChatFormOptions are optional & each defaults to "optional" if omitted
      preChatFormOptions: {
        department: 'required',
        name: 'hidden',
        email: 'hidden',
        phone: 'hidden',
      },
    })

So the showOfflineForm is set to true, and the preChatFormOptions are setting to avoid asking for name and email, and I'm also setting the name and the email of the visitor, but when there isn't an agent online the offline form is still asking for name and email.
You can see what I say in this picture:

Looks like there are more people having the same issue but Zendesk support is useless: https://develop.zendesk.com/hc/en-us/community/posts/360051090313-iOS-Chat-SDK-v2-pre-fill-offline-form
I don't know if I can solve the issue implementing the method sendOfflineForm. I'm actually implementing it here just in case.

I am just here to confirm the same issue using Zendesk Chat V2 SDK using custom providers on Flutter portability, Zendesk does not help to fix the issue on their side


Gridsome GraphQL playground timing out

Description
Using onegraph.com with either one of Gridsome's official or unofficial GraphQL plugins, it's impossible to view the Schema.
Steps to reproduce
Visit Gridsome's GraphQL playground, then press the Schema tab. It loads until it errors out and there's nothing, but an empty environment.
Expected result
Schema results, and the playground intact.
Actual result
Blank screen, and Errors out:
SyntaxError: Syntax Error: Expected Name, found ) (98:3)
   96 |
   97 |     auths: ONEGRAPH_OneGraphServiceAuths
>  98 |   ): ONEGRAPH_Viewer!
      |   ^
   99 |
  100 |
  101 |   airtable(
    at t.start.line (parser-graphql.js:1)
    at Object.parse (parser-graphql.js:1)
    at Object.parse (standalone.js:13721)
    at Hs (standalone.js:17145)
    at Ws (standalone.js:17381)
    at formatWithCursor (standalone.js:17397)
    at standalone.js:32917
    at Object.format (standalone.js:32926)
    at Object.t.prettify (utils.ts:22)
    at Object.l [as getSDL] (createSDL.ts:94)
es @ react-dom.production.min.js:209
Playground.tsx:295 SyntaxError: Syntax Error: Expected Name, found ) (98:3)
   96 |
   97 |     auths: ONEGRAPH_OneGraphServiceAuths
>  98 |   ): ONEGRAPH_Viewer!
      |   ^
   99 |
  100 |
  101 |   airtable(
    at t.start.line (parser-graphql.js:1)
    at Object.parse (parser-graphql.js:1)
    at Object.parse (standalone.js:13721)
    at Hs (standalone.js:17145)
    at Ws (standalone.js:17381)
    at formatWithCursor (standalone.js:17397)
    at standalone.js:32917
    at Object.format (standalone.js:32926)
    at Object.t.prettify (utils.ts:22)
    at Object.l [as getSDL] (createSDL.ts:94)
(anonymous) @ Playground.tsx:295
2GraphQLEditor.tsx:587 Uncaught TypeError: Cannot read property 'getWidth' of null
    at GraphQLEditor.tsx:587
react-dom.production.min.js:209 TypeError: Cannot read property 'off' of undefined
    at r.componentWillUnmount (SDLEditor.tsx:108)
    at react-dom.production.min.js:209
    at as (react-dom.production.min.js:214)
    at ls (react-dom.production.min.js:220)
    at du (react-dom.production.min.js:253)
    at t.unstable_runWithPriority (scheduler.production.min.js:19)
    at Vi (react-dom.production.min.js:122)
    at fu (react-dom.production.min.js:248)
    at Zs (react-dom.production.min.js:239)
    at react-dom.production.min.js:123
es @ react-dom.production.min.js:209
scheduler.production.min.js:14 Uncaught TypeError: Cannot read property 'off' of undefined
    at r.componentWillUnmount (SDLEditor.tsx:108)
    at react-dom.production.min.js:209
    at as (react-dom.production.min.js:214)
    at ls (react-dom.production.min.js:220)
    at du (react-dom.production.min.js:253)
    at t.unstable_runWithPriority (scheduler.production.min.js:19)
    at Vi (react-dom.production.min.js:122)
    at fu (react-dom.production.min.js:248)
    at Zs (react-dom.production.min.js:239)
    at react-dom.production.min.js:123

Environment
System:
    OS: macOS 10.15.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz
  Binaries:
    Node: 12.18.3 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.6 - /usr/local/bin/npm
  Browsers:
    Chrome: 84.0.4147.89
    Firefox: 78.0.2
    Safari: 13.1.2
  npmPackages:
    @gridsome/source-graphql: ^0.1.0 => 0.1.0
    gridsome: ^0.7.0 => 0.7.19
    gridsome-source-graphql: ^1.0.2 => 1.0.2

It appears to be timing out in other words and never renders the schema.

This was not an issue with Gridsome, but may have been GraphQL playground issue? It's been magically resolved in any case, and I'm satisfied with that.


electron-rebuild  errer

when i run  ./node_modules/.bin/electron-rebuild -$(electron -v)
it's log  Couldn't find electron-prebuilt and no --node-module-version parameter set, always rebuilding
how to solve it? thanks!

Change your command to
./node_modules/.bin/electron-rebuild -v $(electron -v)

https://github.com/electron/electron-rebuild/blob/master/src/cli.js#L13

@MarshallOfSound  thanks
but run ./node_modules/.bin/electron-rebuild -v $(electron -v)
it log ```
Couldn't find electron-prebuilt and no --node-module-version parameter set, always rebuilding
Canary file 'common.gypi' doesn't exist

run : sudo npm rebuild --runtime=electron --target=1.3.3 --disturl=https://atom.io/download/atom-shell --build-from-source
now it's ok


fix(docs): matomo-analytics website url

🔗 Linked issue

❓ Type of change

[x] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

fix external link to matomo website

Thanks!