Broken autocompletion

I don't know since when the autocompletion began to be broken.
When I type some words to see the autocompletion list, it looks like:

However, when I press ctrl+p to make it autocompleted, it becomes broken like:

I'm not sure that it's a problem of coc-julia.
Note: the broken word is quite random. For example,

Try to map your <cr> to do completion:
inoremap <silent><expr> <CR> pumvisible() ? coc#_select_confirm()
      \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"

@fannheyward In .vimrc?
Unfortunately, it doesn't work...

Can't reproduce, try to upgrade your LanguageServer.jl https://github.com/fannheyward/coc-julia/issues/163

@fannheyward Should LanguageServer.jl be installed on the base environment?
Is the following correct?:
Install LanguageServer.jl on the base environment and then :CocCommand julia.CompileLanguageServerSysimg if necessary.

coc-julia has bundled the LanguageServer.jl, just run :CocCommand julia.CompileLanguageServerSysimg.

don't know why but cannot fix it...
Do you have an idea for an alternative way?
Can I reinstall all of coc.nvim and coc-julia? If so, can you share how to do it?

Note that this phenomenon occurs since Julia Language Server Indexing packages... appears.

Make sure you're using the latest coc-julia, 0.8.6, this has bundled the LanguageServer.jl that works.
:CocCommand julia.CompileLanguageServerSysimg maybe take 5 mins, please wait to finish.

I reinstalled coc.nvim and coc-julia, so I think that they may be the latest ones.
How to check the version of coc-julia?
+) Yes, I waited for the installation till it's completed.

Install coc-julia by :CocInstall coc-julia

Install finished

- ✓ coc-julia Installed extension<EMAIL_ADDRESS>at /Users/jinrae/.config/coc/extensions/node_modules/coc-julia

but it still be broken.

Try coc-julia v0.9.0 with LanguageServer.jl 4.0.

Install finished

- ✓ coc-julia Installed extension<EMAIL_ADDRESS>at /Users/jinrae/.config/coc/extensions/node_modules/coc-julia

Try coc-julia v0.9.0 with LanguageServer.jl 4.0.

Is there anything that I can help you?

@JinraeKim can you post a mini jl file to reproduce this issue?

function sample_x()
end

function main()
    sa_x  # tried to autocomplete the word `sample_x` from `samp`
end

Sorry, I still can'r reproduce this.

julia
] to pkg, generate helloworld, exit

find .
.
./Project.toml
./src
./src/helloworld.jl

Put your Julia to helloworld.jl

vim version: NVIM v0.5.0-dev+0a653f7ab
node version: v16.2.0
coc.nvim version: 0.0.80-7b4ac377d2

@oblitum @lassepe sorry to ping you, but can you reproduce this?

I can also not reproduce this. In particular, I can also navigate the auto-completion list also with ctr+p as you seem to do (I usually use <tab>).
vim version: NVIM v0.4.4
node version: v16.1.0
coc.nvim version: 0.0.80-4cd2b40390

Maybe it is not a problem with LanguageServer.jl or the coc-julia plugin but rather with your vim-config, @JinraeKim? I can imagine that it is related to the fixes that were made to auto-completion recently here and in LanguageServer.jl. Maybe your old config worked with the old "broken" version of coc-julia because you found a quick-fix inside your vimrc that made it work. Now that the problem is fixed here at the root that quick-fix may break your workflow. (because the behavior of the plugin has changed). Maybe you can post your coc-related vimrc for further investigation.
Speculating on other things that may cause this:

Maybe your coc-julia plugin still finds an old version of LanguageServer.jl. I don't know why that would happen but you could at least try uninstalling it from your global environment to make sure that you are not using an outdated version.
Maybe you are using an old system-image? Try clearing ~/.config/coc/extensions/coc-julia-data/sysimg before you recompile.

Maybe your coc-julia plugin still finds an old version of LanguageServer.jl. I don't know why that would happen but you could at least try uninstalling it from your global environment to make sure that you are not using an outdated version.

It seems that the base environment does not have manually installed LanguageServer.jl.
(@v1.6) pkg> st
      Status `~/.julia/environments/v1.6/Project.toml`
  [fbb218c0] BSON v0.3.3
  [861a8166] Combinatorics v1.0.2
  [b0b7db55] ComponentArrays v0.9.10
  [a6e380b2] ControlSystems v0.9.2
  [f65535da] Convex v0.14.8
  [a93c6f00] DataFrames v1.1.1
  [864edb3b] DataStructures v0.18.9
  [31a5f54b] Debugger v0.6.7
  [0c46a032] DifferentialEquations v6.16.0
  [31c24e10] Distributions v0.24.18
  [587475ba] Flux v0.12.3
  [033835bb] JLD2 v0.4.5
  [6405355b] Mosek v1.1.3
  [1ec41992] MosekTools v0.9.4
  [102ac46a] MultivariatePolynomials v0.3.14
  [76087f3c] NLopt v0.6.2
  [e7bfaba1] NumericalIntegration v0.3.3
  [5fb14364] OhMyREPL v0.5.10
  [1dea7af3] OrdinaryDiffEq v5.53.2
  [d7d3b36b] ParameterSchedulers v0.2.2
  [b98c9c47] Pipe v1.3.0
  [14b8a8f1] PkgTemplates v0.7.16
  [91a5bcdd] Plots v1.14.0
  [295af30f] Revise v3.1.16
  [6038ab10] Rotations v1.0.2
  [5d786b92] TerminalLoggers v0.1.3
  [afbbf031] TypedPolynomials v0.2.9
  [37e2e46d] LinearAlgebra

Maybe you are using an old system-image? Try clearing ~/.config/coc/extensions/coc-julia-data/sysimg before you recompile.
I removed all contents of the directory and tried to make a new sysimg using :CocCommand julia.CompileLanguageServerSysimg.

➜  ~ ls ~/.config/coc/extensions/coc-julia-data/sysimg
sysimg.dylib

/usr/local/bin/julia --project=/Users/jinrae/.config/coc/extensions/node_modules/coc-julia/server/compile_env /Users/jinrae/.config/coc/extensions/node_module
s/coc-julia/server/compile_env/compile.jl -s /Users/jinrae/.config/coc/extensions/node_modules/coc-julia/server/JuliaLS /Users/jinrae/.config/coc/extensions/c
oc-julia-data/sysimg
➜  ~ /usr/local/bin/julia --project=/Users/jinrae/.config/coc/extensions/node_modules/coc-julia/server/compile_env /Users/jinrae/.config/coc/extensions/node_m
odules/coc-julia/server/compile_env/compile.jl -s /Users/jinrae/.config/coc/extensions/node_modules/coc-julia/server/JuliaLS /Users/jinrae/.config/coc/extensi
ons/coc-julia-data/sysimg
[ Info: Building a sysimage for the environment '/Users/jinrae/.config/coc/extensions/node_modules/coc-julia/server/JuliaLS' to '/Users/jinrae/.config/coc/ext
ensions/coc-julia-data/sysimg'.
  0 dependencies successfully precompiled in 1 seconds (6 already precompiled)
  9 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
[ Info: PackageCompiler: creating system image object file, this might take a while...
➜  ~

Error occurs again as

In my case, the error is reproduced especially when the following is on the screen:

Also, several trials may be required to see the error.

Maybe you can post your coc-related vimrc for further investigation.

Please see the bottom of my comment.

I found that this phenomenon disappeared if I don't use julia-vim.
Is it possible to make a conflict with julia-vim?

@JinraeKim currently no, I  didn't yet look for an alternative. FWIW, if you find one please share ;-)

Sure :)
BTW, it's a really sad news to me 'cause I highly depend on the two plugins...

Given that the cause is found related to the two being used together, maybe others here can help further to make them work.

Also, make sure you have latest julia-vim.

Also, make sure you have latest julia-vim.

I removed the previous julia-vim directory and reinstalled it via vim-plug.
So probably it is the latest one.
Is it?

Yep, that's enough for checking their latest stuff.

Note that the YouCompleteMe, neocomplcache, neocomplete and deoplete plug-ins do not work well with the suggestion of possible completions for partial matches

From Julia-vim README, looks like it's not working good with other completion plugins.

I'm going to close this issue. Looks like julia-vim hijack your tab to do completion that conflict with coc.

I agree that this issue should be closed because there is nothing that can be done about this in coc-julia it seems. That said, @JinraeKim for what it's worth: I am also using julia-vim and coc-julia and have no issues with the combination.
I too, noticed one important difference between your vimrc and mine:
You seem to have unicode completion enabled:
let g:latex_to_unicode_keymap = 1  " to avoid conflict with coc-julia and

try replacing it with this:
let g:latex_to_unicode_tab = 0
let g:latex_to_unicode_eager = 0

These settings disable the unicode completion of julia-vim. But the point is that you don't really need them because coc-julia already does the unicode completion for you.

I agree that this issue should be closed because there is nothing that can be done about this in coc-julia it seems. That said, @JinraeKim for what it's worth: I am also using julia-vim and coc-julia and have no issues with the combination.
I noticed one important difference between your vimrc and mine. You seem to have unicode completion enabled for julia-vim.
let g:latex_to_unicode_keymap = 1  " to avoid conflict with coc-julia and

try replacing it with this:
let g:latex_to_unicode_tab = 0
let g:latex_to_unicode_eager = 0

These settings disable the unicode completion of julia-vim. The point is that you don't really need them because coc-julia already does the unicode completion for you.

Unfortunately, this remedy also does not work for me.


Question About Data Augmentation

Hello,
Firstly, I wanted to express my gratitude for your outstanding paper and for generously sharing your code.
Upon reviewing the TDA experiments on the OOD benchmark (A/V/R/S), I noticed that they run rather slowly. My understanding was that AugMix augmentation is employed with 63 views for each test image in the OOD datasets. However, it was mentioned in the paper that only original test images are utilized.
In the "utils.py" file, the "build_test_data_loader" function utilizes the "get_ood_preprocess" function for OOD datasets.
aug_preprocess = AugMixAugmenter(base_transform, preprocess, n_views=63, augmix=True)
This command appears to generate 63 views of augmentation for each individual test image.
I'd like to confirm if I've misunderstood something related to this part.
Thank you very much.
Best,
Yushu

Hello Yushu,
Thank you for your interest in our work! For the OOD benchmark datasets (A/V/R/S), we used the same augmentations as described in TPT. We did not detail this in the paper as it’s not a primary contribution. Also, the paper does not specify that only original test images are used; the augmentations seen in "utils.py" are indeed part of our intended approach.
Hope this helps clarify your queries!
Best,
Adilbek

Dear Adilbek,
Thank you for your prompt response and clarification. Your clarification has addressed my queries effectively.
Best,
Yushu


Button to download script as JSON

I use botc-tools to browse scripts, but once I've found a script, I want to export the script into Pocket Grimoire. That requires me to download the script as JSON and reupload it into PG. Can we add a button to enable script downloading? I'm happy to write the code if you're on board and if you know of a place where the button would look good. (Maybe next to the QR code?)

I like this idea, but adding the button is actually the hard part. Adding one to the QR page seems like a good idea. I'd be happy to accept a PR adding one there.
I've also recently needed a way to get scripts into Pocket Grimoire, and indeed botc-tools is my favorite way to browse scripts. I think dealing with files is a bit of a pain on mobile - can you have the button copy a JSON array to the clipboard suitable for pasting? It's a format only useful for pocket grimoire but I can deal with that for now.

I did a quick test and Pocket Grimoire does support the same format for pasting that the official script tool exports, something like this:
[{"id":"_meta","name":"Reptiles II: Lizard in the City"},"chef","washerwoman","librarian","sailor","general","chambermaid","snake_charmer","flowergirl","undertaker","innkeeper","philosopher","fool","tea_lady","virgin","saint","sweetheart","klutz","drunk","barber","poisoner","devils_advocate","spy","psychopath","baron","al-hadikhia","storm_catcher","djinn"]

It's even permissive of "alhadikhia" (no hyphen) and "tealady" (no underscore) so you shouldn't have to get the character ids that the script tool uses (which are quite frankly a mess).

This was fixed by #17.


[Feature] Homepage Updates

Feature Request
Is your feature request related to a problem? Please describe.
I updated the Next Cloudinary homepage recently. We can either pull the same layout and all, geared towards Svelte, or come up wit ha new design based potentially on if there are existing ecosystem patterns that are common?
https://next.cloudinary.dev/
Not strong preferences but would like to see an update. Happy to help provide a design for it if we don't just go with the same layout. The content is primarily written in Tailwind
https://github.com/cloudinary-community/next-cloudinary/blob/main/docs/pages/index.mdx

Will be released in #112


Second pass of metadata.yml scaffolding

Hoping to get a second pass of metadata.yml scaffolding generated from code.

[ ] Populate variant names. Currently the file contains mentions of the main icon, eg. Add, but no add--alt. Ideally we can add all the available variants of an icon too in the scaffold
[ ] Populate file sizes.

So in below example, only fields need to be manually filled are friendly_name, usage, categories, and aliases.
- name: add
    friendly_name: Add
    usage: This is a description for usage
    categories:
      - Navigation
    aliases:
      - add
      - plus
      - cross
      - create
    sizes:
      - 16
      - 32
    variants:
      - name: add--alt
        usage: This is a description for usage
        sizes:
          - 16
          - 32
      - name: add--filled
        usage: This is a description for usage
        sizes:
          - 16

Moving to carbon-elements repo!


Referencing the previous record/row's value

There needs to be a function or way to reference a record's previous value in the previous row, optionally provide a default or initial value.
Going through the community forum(s) there's a few "solutions" but are honestly a lot of effort for something that in typical spreadsheet-like apps is pretty trivial since you can just reference the first row (with manually inserted data).

Been a year, but maybe still relevant... Does it need to be a function?  What about a .prev member of the Record class (so, rec.prev in a formula)?  That could give access to the previous record(s) in the current record set (i.e. in the current widget) using for all formulas, including triggers and conditional formatting, and would be consistent across sorting and filtering.

I feel like it's complicated by design, not especially due to technical limitation: the notion of precedence here is linked to sorting.
From a user prospective I don't know whether it's intuitive to have record values updated when sorting is changed.

True, I can see cases for using the visible values (i.e. in the current filtered view), or the raw data.  Even something simple like cumulative value can apply in both cases.  Maybe a .prevVisible and a .prevRaw so the programmer can decide?  I'm sure there's more to it, just some ideas.

Let me share a proposed design.
Firstly, keep in mind that @fflorent is right: the notion of precedence is linked to sorting, but sorting is a property of a view, while formulas work on the data level. There may be different views showing different subsets of data in different order. Access rules may limit visible records too. But formulas are only aware of the underlying data, not who is looking at it, or in which view.
The proposal is to add the following functions:

PREVIOUS(rec) (with no other arguments) finds the previous record in the full table, sorted by the internal column used to rearrange records manually (manualSort column). It would match the order you'd see when a table is shown without sorting by any column. (Note that rec in Grist formulas refers to the current record.)
PREVIOUS(rec, group_by=..., sort_by=...) finds the previous record to rec, according to group_by / sort_by. For example, PREVIOUS(rec, group_by="Account", sort_by="Date")
NEXT(...) is just like PREVIOUS(...) but finds the next record.
RANK(rec, group_by=..., sort_by=..., order="asc") returns the rank of the record within the group, starting with 1. Order can be "asc" (default) or "desc".
All the new functions work in amortized O(log N) time per cell (which is a big reason for this effort, since working with sorted data efficiently is very hard to achieve today).

The sort_by argument will support tuples, e.g. ("Category", "Date") and any column ID may be prefixed with - to reverse the order, e.g. ("Category", "-Date"). This allows matching more complex sort orders that can be set in the UI.
All the new functions are based on an enhancement of lookupRecords. When lookupRecords() is used with the sort_by parameter, it will now allow efficient search in sorted results, with the following syntax:
Table.lookupRecords(..., sort_by="Date").find.le($Date)

This will find the record with the nearest date that's <= $Date. The find.* methods are le, lt, ge, gt, and eq, all having O(log N) performance.
Here is an example to show the usefulness of the find.* methods.  In the Payroll template, each person has a history of pay rates, in the Rates table. To find a rate applicable on a certain date (for the Per Hour column), here is how it is done today:
# Get all the rates for the Person and Role in this row.
rates = Rates.lookupRecords(Person=$Person, Role=$Role)

# Pick out only those rates whose Rate_Start is on or before this row's Date.
past_rates = [r for r in rates if r.Rate_Start <= $Date]

# Select the latest of past_rates, i.e. maximum by Rate_Start.
rate = max(past_rates, key=lambda r: r.Rate_Start)

# Return the Hourly_Rate from the relevant Rates record.
return rate.Hourly_Rate

With the new methods, it would be much simpler (and also much faster, when there are many rates for the same person):
rate = Rates.lookupRecords(Person=$Person, Role=$Role, sort_by="Rate_Start").find.le($Date)
return rate.Hourly_Rate

Thanks for the detailed explanation! I'm new to Grist and still learning the details - I didn't realize formulas only operated on underlying data and didn't have a way to use the current view. This all then makes more sense. I figured you'd all had time to think more deeply about it!  That current view record set must exist somewhere?  If so, it's too bad not to have access to it.  But this sounds great, looking forward to future versions.

@dsagal Looks like this issue is solved, doesn't it? :)
https://support.getgrist.com/newsletters/2024-07/#cumulative-functions-previous-next-and-rank
Thanks for that! :tada:

Yes! To conclude, here is the new function that addresses the question: PREVIOUS.
To use it to get a value from the previous row with an optional default, you can do this:
previous_record = PREVIOUS(rec, order_by=None)
previous_value = previous_record.FieldOfInterest if previous_record else default_value_to_use

For a common example, like calculating a cumulative amount, it could be a one-line formula. E.g. in a column named Cumulative of type Numeric (type matters to ensure that the default value of this column is 0 rather than None):
PREVIOUS(rec, order_by=None).Cumulative + $Amount

As for matching the view, order_by and group_by can be used to match the view's sorting and filtering.

Just discovered this today, and it's fantastic for trigger formulas! Thanks a lot :100:


[examples] core_input_gamepad crashes with EXC_BAD_ACCESS (SIGSEGV)

Issue description
Running example/core/core_input_gamepad example program crashes with a EXC_BAD_ACCESS (SIGSEGV) when one disconnects the USB cable. This is mostly due to minimal error checking in the core_input_gamepad example code. Disconnecting the gamepad  is a reasonable thing to do, and there is an opportunity in raylib to avoid this scenario (see PR #2121 that I've put a fix in).
Environment
Macbook Pro, macOS Big Sur Version 11.6 Intel, OpenGL ES 3.0 Renderer: Intel(R) Iris(TM) Plus Graphics 650
Issue Screenshot
sigsegv.pdf
Code Example
I've raised a PR #2121 with a fix.

@lukekras Merged and reviewed!


centos-7 replica container entrypoint fails:

Command:
$ docker run -ti --name freeipa-replica-container -h ipareplica1.developnet.io -v /var/lib/ipa-data:/data -e IPA_SERVER_IP=ip-here -p 53:53/udp -p 53:53 -p 80:80 -p 443:443 -p 389:389 -p 636:636 -p 88:88 -p 464:464 -p 88:88/udp -p 464:464/udp -p 7389:7389 -p 9443:9443 -p 9444:9444 -p 9445:9445 adelton/freeipa-server:centos-7
Usage: ipa-replica-install [options] REPLICA_FILE
ipa-replica-install: error: you must provide a file generated by ipa-replica-prepare
FreeIPA server configuration failed.
Then if I run the command that I think throws the error:
[root@ip-172-31-27-104 /]# /usr/sbin/ipa-replica-install /data/*.gpg
Directory Manager (existing master) password:
Run connection check to master
...
it works - but it does prompt me for the passwords, even though they are in ipa-replica-install-options
[root@ip-172-31-27-104 /]# cat /data/ipa-replica-install-options
# This file was written by cloud-config.
--password=password1
--admin-password=password1

ipa-replica-install: error: you must provide a file generated by ipa-replica-prepare
FreeIPA server configuration failed.

Just place the *.gpg file to /var/lib/ipa-data before you run the container.

but it does prompt me for the passwords, even though they are in ipa-replica-install-options

The ipa-replica-install-options is only processed during the initial setup, not when you run the ipa-replica-install manually.
Also I'm not sure if the comment line in the /data/ipa-replica-install-options doesn't cause the rest of the options to be ignored -- we don't support comments there.

Thanks @adelton it must have been the comment in the options file as when I removed it, it found the gpg file. That wasn't a problem with the first server.


Serialize "non-compact" python theta sketch

Hi,
Is there a way to serialise the theta sketch in python such that more values can be added to it when deserialising?

No, only immutable compact Theta sketches can be serialized. This is intentional to discourage bad practices such as serializing and deserializing after each update. I would suggest structuring your process in such a way that the input is processed in batches (or partitions), and each such batch produces a compact sketch. Later those compact sketches can be merged (union operation).


Scale on small devices are increasing size instead of decreasing

When the width is set and card opened on mobile device in interactive mode the card image take a LOT of space.
Basically
https://github.com/jessepollak/card/blob/2b20e8b2514f3084c476fc54ac4a8bc18412291a/src/coffee/card.coffee#L133
@options.width / baseWidth
when baseWidth e.g. clientWidth is lesser than card width the scale will be larger than 1.
And i guess  it should be vice versa e.g.
baseWidth / @options.width

+1
I'm triying to use the width property also but it just render a huge card image.
There is a workaround?

@rodmtl dont specify width or override transform to none in your css.

Hi! Thanks for reporting this — would you mind providing a screenshot and example width size? I'm not quite sure I'm understanding.

@jessepollak just pass the width option to card contructor e.g. width: 350 ( and remove manual  css styles if there any with hard defined transform like on your demo page) and try to open it on  anything smaller than 350px basewidth. And you will see that instead of decreasing size image will be increased in size.

+1


Typescript: handleAction action has type never for action with identical type

Description
I have 2 actions with same types but different action type and when I handle second action it has never type
export const fetchAdverts = createAsyncActions<
  {
    forUser?: boolean;
    search: { offset: number; limit: number; title?: string };
  },
  { data: Advert[]; count: number },
  void
>(`${REDUCER_KEY}fetchAdverts`);

export const fetchMoreAdverts = createAsyncActions<
  {
    forUser?: boolean;
    search: { offset: number; limit: number; title?: string };
  },
  { data: Advert[]; count: number },
  void
>(`${REDUCER_KEY}fetchMoreAdverts`);

Add handlers for this actions:
export const reducer = createReducer(initState)
  .handleAction(fetchAdverts.success, (_, action) =>
    action.payload.data.map(item => item.id)
  )
  .handleAction(
    fetchMoreAdverts.success,
    (state, action) => [
      ...state,
      ...action.payload.data.map(item => item.id)
    ]
  )

This is incorrect usage, please read the tutorial section carefully especially Constants: https://github.com/piotrwitek/typesafe-actions#constants


Intercept request and add JWT token to request.

Need to fix #21 before continue

The problem is that the response from the server is sent earlier than expected. It is not possible to refresh the token in the request because the server has already sent a 401 code, but not an updated session.

A temporary solution would be to add a refresh token instead of an access token.


Missing background on Highlight.js themes

For most Highlight.js themes background is pretty much part of the theme. However, background is currently missing with vmd.

should be:

Some themes are really ugly without a proper background:

Fixing this issue requires applying a hljs class on pre element or containing div. Unfortunately, it isn't that simple because of a higher-specificity rule in github-markdown-css. I don't really know how to solve that. Any ideas?

Thanks for reporting this!
I found a solution and made a pull request (#78). IMO it's not the prettiest fix but it solves the problem.

I've added the hljs class to the <pre> tags in code blocks (bf66c3a)
and then made every CSS definition in the theme !important so that it overrules the higher-specificity rule from the GitHub styles (91acea5)

I haven't merged this yet as I have only tested it with the Solarized themes. I'd be glad if you could try it out and see if it works for you now and leave some feedback. Just pull the branch.


Update copy-build-files.js

Add "types" to exports to handle issue where typescript wouldn't recognize exported types when using ESM.

Thanks!


Add a start quiz button that when the user pressed it send him to the first question

User Story
AS A coding boot camp student
I WANT to take a timed quiz on JavaScript fundamentals that stores high scores
SO THAT I can gauge my progress compared to my peers

Acceptance Criteria
GIVEN I am taking a code quiz
WHEN I click the start button
THEN a timer starts and I am presented with a question

I made a html section where it show the user the Quiz rules and a start button. I added an event listener that when the user click in it, it will show the first question.


provide an example for return string or[]byte

Current there is an example for read string in resolvefunction, how about return a string? In my mind, we need two methods return pointer and len respect, however how to combined these operation in two methods call?

@losfair cool, I got it.

An example on this would actually be great.  What if I have a wasm function that "takes" a string and "returns" a string, i.e. wants pointer & length of a string, and then pointer for somewhere to write to?  I'm a little lost on how to do that, forgive me.

I see now that this was a silly question.  You need a function in the wasm to allocate memory and return a pointer.


Relax requirements of pandas version

Can we relax the condition?
https://github.com/AlpacaDB/backlight/blob/master/requirements.txt#L1

This makes it difficult...
https://pandas.pydata.org/pandas-docs/stable/whatsnew.html#v0-22-0-december-29-2017

Oh, I see. But we cannot install backlight on container...

If we allow versions of pandas > 0.21.0 for this repo, our client code risk being incompatible with backlight.
We should migrate all our codebase to pandas0.22.x before relaxing the constraint.
cf. issues and PRs on libfs, afp regarding pandas upgrade.

Oh, I see. But we cannot install backlight on container...

For which container? libfs?

https://github.com/AlpacaDB/alpaca-containers/pull/21

I will check it can be installed.

Why do we want to install it in our containers?

Oh just checking compatibility? :+1:

We should avoid using git submodule, I think. Like libalpaca, we should install backlight with pip?

I agree I don't like too much submodules either.
Mmmh maybe we should discuss briefly together about this? Ping me anytime!


Question: Is it possible to include Exteded Delete / update queries

Hi
i think it would be a good idea to include
https://github.com/loresoft/EntityFramework.Extended
delete / update query capabilities in this project

Duplicate of https://github.com/aspnet/EntityFramework/issues/795. Not currently supported, but on our backlog.


Feat(eos_designs): Add support for setting VXLAN Source interface

Change Summary

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes)
[ ] Documentation content changes
[ ] Other (please describe):

Related Issue(s)
Fixes #704
Component(s) name
arista.avd.eos-designs
Proposed changes
Introducing new variable "vtep_loopback" with default value "Loopback1".
If "vtep_loopback" is not set then there will be no change to existing configurations, i.e. Loopback1.
How to test

Checklist:

[x] My code has been rebased from devel before I start
[x] I have read the CONTRIBUTING document.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have updated molecule CI testing accordingly
[ ] All new and existing tests passed (pre-commit, make linting and make sanity-lint).

@lermilov - Thanks for this PR - please also update the documentation -> https://github.com/aristanetworks/ansible-avd/blob/devel/ansible_collections/arista/avd/roles/eos_designs/doc/l3ls-evpn/fabric-topology.md


Updated beancount_web.api to follow changes to render_entry_context.

The default branch of Beancount has had an API change on render_entry_context.
This updates your project to the change.
Test and merge at your convenience.

Thanks, @blais!


Next Learn: not-found.tsx image shows not-found.js - Ch 13

The image that shows where the not-found file is located shows a javascript file, but the text refers to not-found.tsx

Thank you @MarcoPeretti, fixed, should be landing soon 👍🏼


The first week of the year, always contains 4 January.

https://en.wikipedia.org/wiki/ISO_week_date

The link you are referencing is to the ISO Calendar standard. This is not the same thing as what people in Hungary might consider the first week of the year. That is a culture specific thing.
@adambrunner, do you think this change should be there?

In all hungarian calendar what I see, this (12.sept. - 18.sept.) week is the 37th of the year.
But unfortunately I don't find official documentation from this

@mj1856 do you know where is this in CLDR? I couldn't find the key.

Closing this in favor of #3429.


Example of inferencing a Tensorflow lite model with parsing_serving_input_receiver_fn using C++ API

I have followed the Tensorflow2 documentation to convert my trained  tf.estimator model to tflite model; in order to convert my model, first I had to save my model in saved_model format with a input_receiver_fn and then convert it with SELECT_OPS flag:
classifier = tf.estimator.LinearClassifier(n_classes=2, model_dir = classifier_dir, feature_columns=features)
classifier.train(input_fn = lambda: trian_fn(features = train_datas, labels = trian_labels))

serving_input_fn = tf.estimator.export.build_parsing_serving_input_receiver_fn(tf.feature_column.make_parse_example_spec(features))

classifier.export_saved_model(classifier_dir+"\saved_model", serving_input_fn)

converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir = saved_model_dir , signature_keys=['serving_default'])
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS, tf.lite.OpsSet.SELECT_TF_OPS]
tflite_model = converter.convert()
with open('model.tflite', 'wb') as f:
  f.write(tflite_model)

I wanted to run my tflite model on an ARM device without python support so I built the C++ interpreter shared libs with Bazel as it is explained in the documentation :
Cross-compile for armhf with Bazel
Select TensorFlow operators C++

My model has 3 input features but when I try to use the following guide for inferencing I get a segmentation fault.
I used the following code to extract my model details:
interpreter = tf.lite.Interpreter(model_path="./model.tflite")
interpreter.allocate_tensors()
print("all ok")
# Print input shape and type
inputs = interpreter.get_input_details()
print('{} input(s):'.format(len(inputs)))
for i in range(0, len(inputs)):
    print('{} {}'.format(inputs[i]['shape'], inputs[i]['dtype']))

# Print output shape and type
outputs = interpreter.get_output_details()
print('\n{} output(s):'.format(len(outputs)))
for i in range(0, len(outputs)):
    print('{} {}'.format(outputs[i]['shape'], outputs[i]['dtype']))

I got the following output:
all ok
1 input(s):
[1] <class 'numpy.bytes_'>

2 output(s):
[1 2] <class 'numpy.bytes_'>
[1 2] <class 'numpy.float32'>

first few lines of the output of   tflite::PrintInterpreterState(interpreter.get())  are:
INFO: Created TensorFlow Lite delegate for select TF ops.
INFO: TfLiteFlexDelegate delegate: 1 nodes delegated out of 25 nodes with 1 partitions.

Interpreter has 54 tensors and 26 nodes
Inputs: 0
Outputs: 38 34

Tensor   0 input_example_tensor kTfLiteString  kTfLiteDynamic          0 bytes ( 0.0 MB)  1

The output illustrates that the input shape is not the same as the original model, also the input type is <class 'numpy.bytes_'> but the Tensorflow 2 model inputs are [numpy.float32, numpy.float32, numpy.float32].
my input dictionary for prediction in TF2 model is something like : {'feature0' : data0, 'feature1' : data1, 'feature2' : data2}
here is the Google Colab link to the project
I tried to fill the input buffer with a vector of zeros but it was without success. Here is my C++ code to load a tflite model and feed it inputs for prediction. can someone please point me to the right direction since I could not find any examples or related documentation for feeding inputs to converted tf.estimator with a serving_input_fn.
#include <cstdio>
#include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/kernels/register.h"
#include "tensorflow/lite/model.h"
#include "tensorflow/lite/optional_debug_tools.h"

int main()
{
  // Load model
      std::unique_ptr<tflite::FlatBufferModel> model = tflite::FlatBufferModel::BuildFromFile("model.tflite");

  // Build the interpreter with the InterpreterBuilder.
  tflite::ops::builtin::BuiltinOpResolver resolver;
  tflite::InterpreterBuilder builder(*model, resolver);
  std::unique_ptr<tflite::Interpreter> interpreter;
  builder(&interpreter);
  tflite::PrintInterpreterState(interpreter.get());

  // Allocate tensor buffers.
  interpreter->AllocateTensors();
  printf("=== Pre-invoke Interpreter State ===\n");
  tflite::PrintInterpreterState(interpreter.get());

  // Fill input buffers
  std::vector<float> tensor(3, 0);	//Vector of zeros
  int input = interpreter->inputs()[0];
  float* input_data_ptr = interpreter->typed_input_tensor<float>(input);
  for(int i = 0; i < 3; ++i)
  {
  	*(input_data_ptr) = (float)tensor[i];
  	input_data_ptr++;
  }
  // Run inference
  interpreter->Invoke();
  printf("\n\n=== Post-invoke Interpreter State ===\n");

  return 0;
}

The original model uses an example proto as input internally, which is used by the TF estimator API. So, the converted TFLite model needs one input, example proto as a byte array. Could you create an example proto, in a form of byte array, with three features in your inference code?

@abattery  Thank you for the comment, I have no previous knowledge about example photos if is there any documentation references, or can you provide a simple example for just one feature?

Here is the possible code in Python to generate an example protobuf byte.
    features = collections.OrderedDict()
    features["feature_one"] = ...
    features["feature_two"] = ...
    features["feature_third"] = ...

    tf_example = tf.train.Example(features=tf.train.Features(feature=features))
    input_tensor = tf_example.SerializeToString()

@abattery Thanks, are the methods for generating  Example protobuf bytes available in C++ API, or should I implement my own?

The example proto is a part of Tensorflow core project. If you can link to Tensorflow core project, you may use the following methods for example protobuf object creation. Or it is possible to create an example proto based on protobuf library.
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/example/feature_util.h

@abattery I will try to feed an example proto to my model using C++ and I will post the results. thank you.

@abattery I read about proto buffers and example protos in Tensorflow, I decided to first verify my model in python and then write the C++ interpreter, I created my own example protobuf:
def _float_feature(value):
  """Returns a float_list from a float / double."""
  return tf.train.Feature(float_list=tf.train.FloatList(value=[value]))
def serialize_example(feature0, feature1, feature2):
  feature={'feature0': _float_feature(feature0),
            'feature1': _float_feature(feature1),
            'feature2' : _float_feature(feature2)}
  example_proto = tf.train.Example(features=tf.train.Features(feature=feature))
  return example_proto.SerializeToString()
serialized_example = serialize_example(0,0,0)
serialized_example

the output is : b'\nB\n\x14\n\x08feature0\x12\x08\x12\x06\n\x04\x00\x00\x00\x00\n\x14\n\x08feature1\x12\x08\x12\x06\n\x04\x00\x00\x00\x00\n\x14\n\x08feature2\x12\x08\x12\x06\n\x04\x00\x00\x00\x00'
I tried to feed the example to model as you mentioned:
interpreter = tf.lite.Interpreter(model_path="model.tflite")
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
interpreter.set_tensor(input_details[0]['index'], serialized_example)

but I get the following error:
ValueError: Cannot set tensor: Dimension mismatch. Got 0 but expected 1 for input 0.

Could you try interpreter.resize_tensor_input before assigning the value?

@abattery Sorry for the late feedback, Tested it and got a runtime reset; is there a way to change the input function so it accepts three feature inputs as an array with shape [1 1 1]? it saves a lot of trouble.

Hi, Estimator will be deprecated from Tensorflow 2.12 since it uses Tensorflow V1 behavior.
Could you please migrate from Estimator to Keras API which will enable you to perform the aforementioned tasks, such as model building, gradient application, training, evaluation, and prediction.
Refer Migration guide here https://www.tensorflow.org/guide/migrate/migrating_estimator for more details. Thanks!


CMS Permissions

To grant access to the cms module you have to enable the api-admin-lang and api-cms-layout. each of those permission problems should be delivered trough the cms module.

Does this way match to any CMS module? Can't get permission on http://magecom.net/  Am I doing smth wrong?

not possibilty at the moment as those modules are so closed related to each other.


root numpy for root 6.08.00

We are trying to ise latest root 6.08.00 ( https://github.com/root-mirror/root/tree/v6-08-00-patches ) but noticed that root_numpy does not compile with latest changes in 6.08.00. We get compilation errors like
root_numpy/tmva/src/factory.pyx:28:25: error: 'class TMVA::Factory' has no member named 'AddEvent'
_factory.AddEvent("Signal", treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx:30:25: error: 'class TMVA::Factory' has no member named 'AddEvent'
_factory.AddEvent("Background", treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx: In function 'PyObject* __pyx_pf_13_libtmvanumpy_2factory_add_events_multiclass(PyObject*, PyObject*, PyArrayObject*, PyArrayObject*, PyArrayObject*, bool)':
root_numpy/tmva/src/factory.pyx:58:23: error: 'class TMVA::Factory' has no member named 'AddEvent'
_factory.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx: In function 'PyObject* __pyx_pf_13_libtmvanumpy_4factory_add_events_regression(PyObject*, PyObject*, PyArrayObject*, PyArrayObject*, PyArrayObject*, bool)':
root_numpy/tmva/src/factory.pyx:87:23: error: 'class TMVA::Factory' has no member named 'AddEvent'
_factory.AddEvent("Regression", treetype, event[0], weight)
^
error: command 'gcc' failed with exit status 1

is  there any root numpy tag/branch which can go with latest root?

https://github.com/root-mirror/root/search?utf8=✓&q=AddEvent it appears these still exist. Are you sure you're building ROOT with TMVA support enabled? The default is ON for sure, but it might have gotten built with it off?

See our docs here (under the root_numpy.tmva header):
http://rootpy.github.io/root_numpy/reference/index.html
This should probably be in a more prominent spot, but we don't yet support the new TMVA interface as of 6.07. Also see #258

To force root_numpy to exclude building the TMVA interface, do something like this:
NOTMVA=1 pip install --upgrade --user root_numpy

Thanks @ndawe , setting NOTMVA=1 allowed us to build it without tmva.


Support multiple volume access groups per compute cluster

Description
Previously, the SolidFire storage plug-in for managed storage had a 1:1 mapping between a compute cluster and a volume access group (VAG). A VAG is a type of ACL in the SolidFire cluster.
This PR expands that support to be 1:M.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

How Has This Been Tested?
I confirmed after the code changes that you can now have multiple volume access groups support a single compute cluster. Also, you can still have a single volume access group support a compute cluster.
Checklist:

[x] I have read the CONTRIBUTING document.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

@blueorangutan package

@mike-tutkowski a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1810

@blueorangutan package

@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✖debian. JID-1861

@blueorangutan test

@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-2447)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 82719 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2503-t2447-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_certauthority_root.py
Intermitten failure detected: /marvin/tests/smoke/test_routers.py
Intermitten failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 64 look OK, 1 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_04_restart_network_wo_cleanup
Failure
4.02
test_routers.py

I doubt this Jenkins error has anything to do with this PR:

T E S T S
Running streamer.ByteBufferTest
Tests run: 400, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.194 sec - in streamer.ByteBufferTest
Running streamer.BaseElementTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.231 sec - in streamer.BaseElementTest
Running common.ClientTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.575 sec - in common.ClientTest
Running rdpclient.MockServerTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.055 sec <<< FAILURE! - in rdpclient.MockServerTest
testIsMockServerCanUpgradeConnectionToSsl(rdpclient.MockServerTest)  Time elapsed: 1.043 sec  <<< ERROR!
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at sun.security.ssl.Handshaker.activate(Handshaker.java:529)
at sun.security.ssl.SSLSocketImpl.kickstartHandshake(SSLSocketImpl.java:1492)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1361)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at rdpclient.MockServerTest.testIsMockServerCanUpgradeConnectionToSsl(MockServerTest.java:166)
Error in mock server: Received fatal alert: handshake_failure
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2038)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1135)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at streamer.debug.MockServer.run(MockServer.java:122)
at java.lang.Thread.run(Thread.java:748)
Results :
Tests in error:
MockServerTest.testIsMockServerCanUpgradeConnectionToSsl:166 » SSLHandshake No...

I have never agreed with that, and i still oppose it but i'm the minority. In reviewing (but also in backtracking problems) it is very convenient to separate them. And yes, we can always squash our complete history if we so desire ;)

@mike-tutkowski the idea of separating into commits into feature/functional changes and (formatting or cleanups) is very good. @DaanHoogland convinced me to do that, and it helps reviewers a lot. Then, when the PR is ready to be merged, we squash+merge.
BTW: there is that e-mail thread @DaanHoogland started, and then we stopped discussing [1]. Please share your follow-ups and ideas there, so we can continue this debate and convert it into a method that can satisfy our needs.
[1]<EMAIL_ADDRESS>

@rafaelweingartner @DaanHoogland I went ahead and sent my comments to dev@ regarding that e-mail thread.
In the meanwhile, I have pushed another commit on top of the prior one for this PR. Per my e-mail to dev@, I think we should end up squashing the commits of a PR prior to merging it (use the commits as a temporary history during the life of the PR).

@blueorangutan package

@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2173

@blueorangutan test

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

All managed-storage tests have passed. Any test that notes a failure was due to an environmental issue. Once the environmental issue was corrected, the test was re-run and passed.
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt
results.txt

I added more integration testing and squashed the prior commits into one in preparation for merging this PR.

I also do not believe any of the regression tests that failed are related to this PR.
@DaanHoogland @rafaelweingartner Any further comments on this PR? If not, perhaps one of you can give a LGTM. That will make two and I can merge this PR.

I do think everything is fine. However, I do suggest you using in your next PRs what @DaanHoogland proposed regarding formatting commits.

Sounds good. I have two other open PRs at the time being, so I can look into it for them.


Stuck after Zero CFR Estimate send for IAO review

Describe the bug in current situation
If a ministry coordinator created a CFR Fee Form and Send for IAO review and/or unknowingly changed status to Fee estimate with "ZERO ESTIMATED AMOUNT / BALANCE" (like only electronic estimate !)  , then request will fall into a "Limbo"
Link bug to the User Story
Impact of this bug
Describe the impact, i.e. what the impact is, and number of users impacted.
Chance of Occurring (high/medium/low/very low)
Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?
Steps to Reproduce
Steps to reproduce the behavior:

Go to request in Call for records as MInistry User
Create a CFR form with only "Electronic records Estimate" . or with any zero balance estimate and Save.
Change request state to Fee estimate. So by default system will make it 'IAO Review in progress"
System stays in Limbo - No further edits possible nor to create a new CFR form

Actual/ observed behaviour/ results
Expected behaviour
A clear and concise description of what you expected to happen. Use the gherking language.
Screenshots/ Visual Reference/ Source
If applicable, add screenshots to help explain your problem. You an use screengrab.

Closing, as this is a duplicate of #3749 (which is estimated, and captured possible resolution options)


Update CONTRIBUTORS.md Thanks

@coolnishant Please resolve the conflicts. Pull the master changes, it'll fix the conflicts.


az ad app create remove requirement for EOF

Is your feature request related to a problem? Please describe.
Reference: https://stackoverflow.com/questions/55500388/issue-creating-azure-app-registration-with-az-cli
There seems to be a dependency on certain parameters requiring a file as it's expecting an EOF.
Command Example: az ad app create --display-name gizmo-auto-create --required-resource-accesses [{"resourceAppId": "00000002-0000-0000-c000-000000000000","resourceAccess": [ {"id": "a42657d6-7f20-40e3-b6f0-cee03008a62a","type": "Scope"}]}]
Running this gives me the error: SyntaxError: unexpected EOF while parsing
However simply adding that same text to some file, say manifest.json and passing that file path as a the parameter value makes this work. Like why is that a dependency?
Describe the solution you'd like
We should be able to pass a string that is formatted in JSON in these parameters without relying on either having a file already created or creating the file in a script.
Example Command That Should Work: az ad app create --display-name gizmo-auto-create --required-resource-accesses [{"resourceAppId": "00000002-0000-0000-c000-000000000000","resourceAccess": [ {"id": "a42657d6-7f20-40e3-b6f0-cee03008a62a","type": "Scope"}]}]
Describe alternatives you've considered
The automation script that I'm building is built around python3 since the azure cli docker image supports it, I tried io.StringIO, but that doesn't have EOF so it still errors out with SyntaxError: unexpected EOF while parsing. Also tried converting to JSON using json.dumps(variable), but that also gives me the same error.
Additional context
We're converting our automation process to run on Linux Docker containers w/ the azure-cli image. It's adding unnecessary complexity to have to create a file that has for example app roles and then another file containing permissions, and then calling that file. Have not tested this, but even if you could add both parameters to a single file, the unnecessary complexity still stands.
Edit:
Same can be said about az ad app update as well since it also has the requirement of EOF

Thank you for reaching us. We will investigate this issue.

add to S170

SyntaxError: unexpected EOF while parsing doesn't mean it requires EOF, but instead it meets an unexpected EOF where it shouldn't.
This command:
az ad app create --display-name gizmo-auto-create --required-resource-accesses [{"resourceAppId": "00000002-0000-0000-c000-000000000000","resourceAccess": [ {"id": "a42657d6-7f20-40e3-b6f0-cee03008a62a","type": "Scope"}]}]

doesn't work is because it is not quoted correctly, so double quotes and whitespaces are interpretative by the shell.
Since #3850, SyntaxError: unexpected EOF while parsing can be raised by ast.literal_eval, but in that case, it is caught and the original ValueError from json.loads will be thrown out.
https://github.com/Azure/azure-cli/blob/e6e437a80639616c9871d1d9248bbb1a65be268e/src/azure-cli-core/azure/cli/core/util.py#L398-L404
If you are still seeing SyntaxError, you may be using a very old version of Azure CLI.
Here is my test result in Cloud Shell:
# Fail if JSON is not quoted
$ az ad app create --display-name gizmo-auto-create --required-resource-accesses [{"resourceAppId": "00000002-0000-0000-c000-000000000000","resourceAccess": [ {"id": "a42657d6-7f20-40e3-b6f0-cee03008a62a","type": "Scope"}]}]
Expecting property name enclosed in double quotes: line 1 column 3 (char 2)

# By quoting the JSON, the app is created successfully
$ az ad app create --display-name gizmo-auto-create --required-resource-accesses '[{"resourceAppId": "00000002-0000-0000-c000-000000000000","resourceAccess": [ {"id": "a42657d6-7f20-40e3-b6f0-cee03008a62a","type": "Scope"}]}]'
{
  "acceptMappedClaims": null,
  "addIns": [],
  "allowGuestsSignIn": null,
  "allowPassthroughUsers": null,
  "appId": "4c2c2fc5-0244-4a1b-a0fa-85ede9d69054",
  ...

You may check Quoting issues for more information.


Subplots from plot_image results produce unexpected aspect ratio changes

Hi,
When using the SyncPlots that plot_image returns to plot several images in a subplot manner, the aspect ratio of the last images is not respected. Is there a better way to make subplots using plot_image results?
This code should reproduce the issue, where only the first plot_image works as expected (see issue_1_1.png and issue_1_2.png, both generated by changing the size of the plotting window in VS Code and only the first image respecting the required aspect ratio), and the others do not. It also shows that the problem is similar to when heatmap is used (see issue_1_3.png, where all the plots change their aspect ratio).
using KomaMRI
using PlotlyJS

slice_abs_1 = zeros(64,64)

max_scale = findmax([findmax(slice_abs_1)])[1][1]
firstPlotTrace = plot_image(slice_abs_1, title="An image", zmin=0, zmax=max_scale);
secondPlotTrace = plot_image(slice_abs_1, title="An image", zmin=0, zmax=max_scale);
thirdPlotTrace = plot_image(slice_abs_1, title="An image", zmin=0, zmax=max_scale);
fourthPlotTrace = plot_image(slice_abs_1, title="An image", zmin=0, zmax=max_scale);
plotData = [firstPlotTrace secondPlotTrace; thirdPlotTrace fourthPlotTrace];
PlotlyJS.relayout!(plotData, title_text="Comparison")
display(plotData)

fig1 = make_subplots(rows=2, cols=2)
add_trace!(fig1, heatmap(z=slice_abs_1,transpose=false,zmin=0,zmax=max_scale,colorscale="Greys", aspect_ratio=:equal), row=1, col=1)
add_trace!(fig1, heatmap(z=slice_abs_1,transpose=false,zmin=0,zmax=max_scale,colorscale="Greys", aspect_ratio=:equal), row=1, col=2)
add_trace!(fig1, heatmap(z=slice_abs_1,transpose=false,zmin=0,zmax=max_scale,colorscale="Greys", aspect_ratio=:equal), row=2, col=1)
add_trace!(fig1, heatmap(z=slice_abs_1,transpose=false,zmin=0,zmax=max_scale,colorscale="Greys", aspect_ratio=:equal), row=2, col=2)
display(fig1)

issue_1_1.png:

issue_1_2.png:

issue_1_3.png:

For context, I ran into this problem when using Windows 11, Julia 1.9.3, KomaMRI 0.7.4, PlotlyJS 0.18.10, and VS Code 1.84.2 (the code is executed using the terminal)

Hi, thanks for looking into this. I modified the code to have a minimal working example to reproduce the issue.
I think this is a problem with PlotlyJS and how it deals with subplots. Apparently it does not preserves the layouts, as the subplot itself is a layout. One quick solution would be to do something like this:
for k = 2:4
    plotData.plot.layout[Symbol("yaxis$k")][:scaleanchor] = "x$k"
    plotData.plot.layout[Symbol("yaxis$k")][:scaleratio] = 1
end

Not sure if there is something we can do to preserve the layouts when using subplots @beorostica ?

It is weird because it is preserving some information
using KomaMRI
using PlotlyJS

slice_abs_1 = zeros(64,64)

max_scale = findmax([findmax(slice_abs_1)])[1][1]
firstPlotTrace = plot_image(slice_abs_1, title="darkmode=true", zmin=0, zmax=max_scale, darkmode=true);
secondPlotTrace = plot_image(slice_abs_1, title="darkmode=true", zmin=0, zmax=max_scale, darkmode=true);
thirdPlotTrace = plot_image(slice_abs_1, title="darkmode=false", zmin=0, zmax=max_scale, darkmode=false);
fourthPlotTrace = plot_image(slice_abs_1, title="darkmode=false", zmin=0, zmax=max_scale, darkmode=false);
plotData = [firstPlotTrace secondPlotTrace; thirdPlotTrace fourthPlotTrace];
for k = 2:4
    plotData.plot.layout[Symbol("yaxis$k")][:scaleanchor] = "x$k"
    plotData.plot.layout[Symbol("yaxis$k")][:scaleratio] = 1
end
display(plotData)

Hi,
In case it is useful, I ended up writing an "alternative" function using the plotly() backend for Plots instead of using several plot_image calls:
function multiple_plots(images, titles, main_title, aspect_ratio; plot_params = Dict("colorbar"=>"individual"))
    plotly()
    plots = []
    index = 1
    if haskey(plot_params, "show_axis")
        show_axis = plot_params["show_axis"]
    else
        show_axis = false
    end
    if haskey(plot_params, "show_grid")
        show_grid = plot_params["show_grid"]
    else
        show_grid = false
    end

    if plot_params["colorbar"] == "global"
        clims = extrema(vcat(images...))
        if aspect_ratio != 1
            if haskey(plot_params, "force_aspect_ratio")
                if plot_params["force_aspect_ratio"] == true
                    println("Warning, forcing aspect ratio to be another value rather than 1.")
                else
                    println("Making aspect ratio equal to 1, use plot_params[\"force_aspect_ratio\"]=true to avoid this.")
                    aspect_ratio = 1
                end
            else
                println("Making aspect ratio equal to 1, use plot_params[\"force_aspect_ratio\"]=true to avoid this.")
                aspect_ratio = 1
            end
        end

        for image in images
            plot_i = Plots.heatmap(image', color=:grays, aspect_ratio=aspect_ratio, showaxis = show_axis, grid = show_grid, title = titles[index], plot_titlevspan = 0.1, top_margin=10*Plots.px, clims=clims, colorbar=false)
            push!(plots, plot_i)
            index = index + 1
        end
        trace = clims[1]:0.01:clims[2]

        display(Plots.plot(plots..., Plots.heatmap((trace).*ones(size(trace)[1],1), legend=:none, c=:grays,  xticks=:none, yticks=(1:size(trace)[1]/10:size(trace)[1], string.(round.(LinRange(clims[1], clims[2], 10), digits=1)))), layout=@layout[grid(2,2) a{0.03w}], plot_title=main_title))
    else
        for image in images
            plot_i = Plots.heatmap(image', color=:grays, aspect_ratio=aspect_ratio, showaxis = show_axis, grid = show_grid, title = titles[index], plot_titlevspan = 0.1, top_margin=10*Plots.px)
            push!(plots, plot_i)
            index = index + 1
        end

          display(Plots.plot(plots..., plot_title = main_title, plot_titlevspan=0.1))
    end

end

A simple usage would be just:
using Plots

slice_abs_1 = zeros(64,64)
slice_abs_2 = zeros(64,64)
slice_abs_3 = zeros(64,64)
slice_abs_4 = zeros(64,64)

multiple_plots([slice_abs_1, slice_abs_2, slice_abs_3, slice_abs_4], ["1", "2", "3", "4"], "Multiple plots", 1.13; plot_params=Dict("colorbar"=>"global", "force_aspect_ratio"=>true, "show_axis"=>true, "show_grid" => true))

The result:

Some things I learned in the process and are unfortunately yet to be solved:

When using individual color bars, the aspect ratio must compensate for the inclusion of it by having a value less than 1.
When using a global color bar, the aspect ratio must compensate for the inclusion of it by having a value more than 1. The example proves the point.

I guess that there should be another way to make this right, but so far I haven't dedicated too much time to it. Moreover, this function should work with any other "image" and it does not require Koma at all. But, that makes me wonder whether it would be a good idea to have a plot_images function in Koma and solve this issue programmatically. Or, to make plot_image compliant with aspect_ratio changes for multi-plot figures? Or, if the recommendation should be to manually adjust aspect_ratio while calling plot_image?
Anyways, hope it is useful for anybody.


Migrate to Gradle 4.6

Coverage remained the same at 87.5% when pulling cad1658d44fca3a15757f3b3769ebb58b252a0d1 on chali:Gradle46Migration into 7d943d00d291548a846384e5188b0b894d7f810c on nebula-plugins:master.


setup-nv-boot-control: support t194 p2888 fabs 401 and 402

The stock TEGRA_BUPGEN_SPECS are unchanged (supporting only fabs 400 and 402), so this is not changed here.
However, for the emmc efi variable workarounds we need to look for these fabs when applicable. Notably missing from this workaround was the listed 402 fab, the apparently new 401 fab, and also the industrial 600 fab, all of which need this workaround. So this is now all boardid=2888 configurations.
Also handled here is the gen_compat_spec. This was changed a bit to apply the workarounds for older know board skus, and leave the newer style for all unlisted fabs.

I have one doubt, and that is the original code only named the 400 fab. Obviously it needs the 4xx fabs moving forward. I don't know about the industrial/600 fab - is it correct that this doesn't use a spi flash and would therefore need the workaround?

I've also back-ported this to nanbield and kirkstone.

Great, thanks!


Fabric deletion should synchronously clean-up all relevant IM objects

Problem
Fabric deletion doesn't actually synchronously clean-up affected IM objects today. They each discover this implicitly when they get around to allocating exchanges off of a session that no longer exists.
Solution
Register for OnFabricChanged in the IM engine, and use that to drive the clean-up.

Issue Review: Keeping in v1.0 for now.


Enable recursion

Now that function calls have been (mostly) implemented, we can start looking into enabling recursion. There may be a few checks that we should remove and make sure that we're not recursively inlining function bodies in the AST.

I think ideally we'd remove AST inlining altogether before enabling recursion.  The issue is we still don't globally name everything in the AST, so it's possible for functions with the same local name to be confused.
But yeah, I'm sure we could add some hacks to keep inlined AST but ensure that recursion is still correct, maybe with some simple function tagging to distinguish same named functions.

@tritao what is the current state of this?


Bump version to 1.8.0 for ovirt 4.5

To keep translations and other dependencies between ovirt 4.4 (project version 1.7) and ovirt 4.5 separate, bump the project version to 1.8.
The zanata project version has been updated accordingly:

Translations for ovirt 4.4 / project 1.7 are at: https://zanata.ovirt.org/iteration/view/ovirt-web-ui/1.7
Translations for ovirt 4.5 / project 1.8 are at: https://zanata.ovirt.org/iteration/view/ovirt-web-ui/1.8

All tests passed

All tests passed


Remove hadoop deps from core

Hadoop dependencies do not appear to be required in polaris-core
Add explicit Javax Servlet API to Spark tests in polaris-service, which is referenced from Spark's metrics-related classes.
How Has This Been Tested?
Gradle-based tests

Looks like the missing dependency broke a regression test:
polaris-1  | java.lang.NoClassDefFoundError: org/apache/hadoop/shaded/com/ctc/wstx/io/InputBootstrapper

Thanks for the pointer @eric-maynard : I reworked this PR by moving the hadoop dependencies rather than removing them.


Add Policy CRD to helmfile post rc7

What happened in your environment?
We would need to add Policy CRD to the helmfile once we have released rc7:
https://github.com/deislabs/ratify/blob/main/helmfile.yaml#L59
What did you expect to happen?
No response
What version of Kubernetes are you running?
No response
What version of Ratify are you running?
No response
Anything else you would like to add?
No response
Are you willing to submit PRs to contribute to this bug fix?

[X] Yes, I am willing to implement it.

Closed by https://github.com/deislabs/ratify/pull/1031


Hope compose-jb adds its own file selector API instead of continuing to use the old java's awt and swing

Hope that compose-jb adds its own file selector API instead of continuing to use the old java's awt and swing.
Benefits:

It will reduce the burden of error-prone interaction between kotlin and java
It will reduce the burden of importing too many dependencies
Direct and efficient

In our application we have created it based on a tree view composable.
Willing to share these composables once more generic -- but do not know where to share ...
Drop me message if interested.

@christoph-grimm you could submit a PR to this repo and add it as a component. It would really help. I'd be willing to contribute to it once available.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Hide own offer afterwards I bought item

Seems we should "hide" own offers on NFT you already own? wyt?
performed at https://beta.kodadot.xyz/bsx/gallery/2362109764-1

👋

let's hide them and give user option to cancel these in other place (such as master offer component etc.)


Invalid cast error

Describe your bug here. Mind you, if you are modding, please try testing your bug in a clean version of the engine instead, this ensures the bug is actually caused by the engine itself. Also, if you're using an older version of JSE, please try the latest action build in the Actions tab or the latest release build. The issue has probably been fixed since that version. Oh yeah, and also be sure to check the pinned 'JS Engine: Known Issues' issue, to double check if your issue hasn't already been found!
I added this mod of Suffering Siblings v3 charted into the JS engine and it keeps crashing with an "Invalid cast error"
https://gamebanana.com/mods/483736
Command Prompt/Terminal/Crash logs (if existing)
StrumNote.hx (Line 243)
PlayState.hx (Line 6807)
PlayState.hx (Line 6391)
PlayState.hx (Line 4419)
flixel/group/FlxGroup.hx (Line 770)
PlayState.hx (Line 4417)
flixel/FlxState.hx (Line 239)
flixel/FlxGame.hx (Line 749)
flixel/FlxGame.hx (Line 679)
flixel/FlxGame.hx (Line 558)
openfl/events/EventDispatcher.hx (Line 426)
openfl/display/DisplayObject.hx (Line 1398)

Uncaught Error: Invalid Cast

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.
No, I don't know what is causing it or how, In psych 6.3 it doesn't crash, But in the JS engine with the recent version (which has 6.3ver of Psych) it crashes with the error mentioned before

I used an online XML validator by codebeautify to check if it was valid, but it kept crashing with an invalid cast error

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
Nothing
If you use 1.12.0 or earlier, did you have Optimized Chart Loading turned on?
None
Did you check for any similar issues to what you're reporting? Check, then come back here. If there is a similar issue, then do not report the issue, otherwise it will be marked as a duplicate.
No

this means you changed the note color settings to "char-based" and turned off "enable color shader" which means the shader never gets initialized

Turning shaders off actually worked
Thanks

@moxie-coder thx for referencing!

@moxie-coder thx for referencing!

np


Please release TFLite wheels for Beaglebone

The prebuilt wheels of the Tensorflow Lite interpreter for armv7l do not run on the Beaglebone, triggering an "invalid instruction" error. They seem to have been built for the Raspberry Pi using the -mfpu=neon-vfpv4 build option which is appropriate for that hardware, but not all armv7l devices.
Pull request #28724 added a bbb make target which produces a usable library on the Beaglebone, but when building the wheel, the code still assumes rpi:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tools/pip_package/build_pip_package.sh#L42-L45
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tools/pip_package/build_pip_package.sh#L85-L87
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tools/pip_package/setup.py#L54-L56
Since it is rather complicated to build, it would be great if official releases could be made. And in the interim, it would be helpful to note on the releases page what hardware features the builds require, to avoid confusion and frustration over incompatible wheels.

I don't have a Beaglebone device.
Could you share the result of the following command?
$ cat /proc/cpuinfo

This is from a Beaglebone Blue. I think it is the same CPU as the Beaglebone Black. Note that vfpv4 is not supported by the processor.
root@arm:~# cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 2 (v7l)
BogoMIPS	: 597.19
Features	: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x3
CPU part	: 0xc08
CPU revision	: 2

Hardware	: Generic AM33XX (Flattened Device Tree)
Revision	: 0000
Serial		:<PHONE_NUMBER>000000

I am trying to track this down as well.
I'd like to get the associated wheels.
https://www.tensorflow.org/lite/guide/python
build for Beagle Bone Black.
Illegal Instruction upon invoking models which invoke fine on an RPI.
I've solved this before with the C intepreter. However I'd like to use Python this time.

Use the bbb target where available. The lines I linked to in the top post are where you need to hack the code to use bbb where it says rpi. Good luck.

Does anyone have a tflite wheel that they already compiled for the beaglebone black?

Nevermind, I compiled using @bobharris instructions and got it working. Here is the wheel

hopefully someone who have been successfully build the python wheel for bbb can share the wheel here, thank

You can find my wheel here: tflite_runtime-2.16.0-cp39-cp39-linux_armv7l.whl.  Build instructions: here.


Podspec for both ios and osx usage

Differentiating the few files that are currently incompatible with osx.
This would enable the podspec to also be used with mac targets once updated and pushed to cocoapods.

Hi @damienpontifex, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, AZPRBOT;

👍


Find out which ciphers suite are used for ssl/tls connection?

Not sure if this is possible yet (maybe in the logs).
It would be nice to see somewhere  what cipher suite is used for a connection.
Both ends would be interresting for me. (client-->znc, znc-->Server)
e.g. output I'm looking for:
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (Maybe even with TLS Version info)

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

I believe client should show you client --> ZNC or at least HexChat does that.
* * Certification info:
*   Subject:
*     OU=mkaysi
*     CN=lakka.kapsi.fi
*<EMAIL_ADDRESS>*   Issuer:
*     OU=mkaysi
*     CN=lakka.kapsi.fi
*<EMAIL_ADDRESS>*   Public key algorithm: rsaEncryption (2048 bits)
*   Sign algorithm sha256WithRSAEncryption
*   Valid since Dec 23 09:30:13 2014 GM to Dec 20 09:30:13 2024 GM
* * Cipher info:
*   Version: TLSv1/SSLv3, cipher ECDHE-RSA-AES128-GCM-SHA256 (128 bits)
* * Verify E: self signed certificate.? (18) -- Ignored
* Connected. Now logging in.

May I ask where you would want to see this information though?  And for which connection side?  ZNC -> IRC, or client -> ZNC, or all of those?
Alternatively, if you want to see all supported ciphers that the ZNC SSL listener is configured for, you can run a cipher scan or a TestSSL.sh test against the server to see what's available.  I use Linux, and testssl.sh or cipherscan to run checks from remote servers to my sites (or from my system to my servers).  Both support port selection (so you can specify https://site.tld:9876 and such.  The only problem is they have their own OpenSSL built binaries that are usually superior to the versions existing in the OpenSSL binaries of linux distributions, and support more ciphers, but its your call whether you use those binaries or not.  (testssl.sh is superior and checks far more than just ciphers, unless you only want to see the ciphers and protocols, in which case just use cipherscan)

Well Both sides would be nice to see.
I know I can use a scanner to see what the Server supports. But then I still don't know what znc and the irc did agree on in the end. (Because of e.g. messed up SSLCiphers settings it connects different then I thought or wanted) Same for the Client site.


moolticute: 1.00.1 -> 1.01.0 | Add hughobrien as maintainer

Description of changes
Upstream Release Notes
This package was previously broken, original maintainer seems absent so putting myself forward. Prior fixes I have made

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@hughobrien There should be 3 separate commits:

1 for version bump
1 for adding yourself to global maintainers
1 for adding yourself to this package's maintainers.

Thank you, I've corrected this.


vsf 1.12.1 get error Type 'StorefrontModule' is missing the following properties from type 'VueStorefrontModule'

i am facing same above issue , can any one help?