I moved from version 1.1.5 to 2.0.0-null-safety-3 - wrong decoding

I was using excel 1.1.5 before and had an application where I upload a file and it reads the data on a mobile device. When I moved to version 2.0.0-null-safety-3, uploading the same file it decodes it differently. When decoded after the 25th row it starts misplacing the fields. When I check the whole file decoded - "print(excel.tables[table].rows.toString())" I see that the item "excel.tables[table].rows[i][13].value" its not the same as the one I provided on the file and substitutes it with excel.tables[table].rows[I][3].value on the decoded version.  Please I would really appreciate some help.
var filePath = "xxxxxxx";
var bytes = File(filePath).readAsBytesSync();
var excel = Excel.decodeBytes(bytes);

for (var table in excel.tables.keys) {
  print(excel.tables[table].rows.toString());
  for (int i = 3; i < excel.tables[table].rows.length; i++) {

  print(excel.tables[table].rows[i][13].value);

}

What I figured out is that it switches the position of  items in the same row in the decoded file Column 3 with Column 13th. After the 25th row, Column 13 becomes Column 3 and Column 3 becomes Column 13.

Another thing that I found is that when I generate the file from the app and load it directly to the app the excel.decode() decodes it correctly. But if the file gets modified from an excel application and then gets loaded excel.decode() decodes it incorrectly.

me also facing this error. f1 | Apple | 500 | Ei | StoreFront | Apple | Fruits | MMK | -- no problem
f1 | Apple | 500 | Ei | StoreFront | Apple | Fruits | MMK | 300 --error instead of 500 and 300 it showing Datetime String value

Hello everyone - Solution,
After some research and everything I found a workaround that hope it works for some of you. What I did is the following

I moved from excel 1.1.5 package to a fork of the same library - flutter_excel: ^1.0.1 (https://pub.dev/packages/flutter_excel) - this library pretty much the same and will work with your existing code

Pros/Cons
-->  even though its a fork the decoding issue is not fixed so pretty much you cannot use it to open excel files reliably
--> this library will work with all your other dependencies if upgraded to a newer versions (for example pdf and printing dependencies)
--> you can use the library to create all excels and use existing functionalities

Now for the decoding piece of the excel I used a different package
spreadsheet_decoder: ^2.1.1 (https://pub.dev/packages/spreadsheet_decoder) which pretty much works the same way as excel 1.1.5 with the only difference that you need to know the name of the sheet you want to utilize and its not dynamic (still playing with it).

Hello everyone - Solution,
After some research and everything I found a workaround that hope it works for some of you. What I did is the following

I moved from excel 1.1.5 package to a fork of the same library - flutter_excel: ^1.0.1 (https://pub.dev/packages/flutter_excel) - this library pretty much the same and will work with your existing code

Pros/Cons --> even though its a fork the decoding issue is not fixed so pretty much you cannot use it to open excel files reliably --> this library will work with all your other dependencies if upgraded to a newer versions (for example pdf and printing dependencies) --> you can use the library to create all excels and use existing functionalities

Now for the decoding piece of the excel I used a different package
spreadsheet_decoder: ^2.1.1 (https://pub.dev/packages/spreadsheet_decoder) which pretty much works the same way as excel 1.1.5 with the only difference that you need to know the name of the sheet you want to utilize and its not dynamic (still playing with it).

Thank you for your reply. I love you. I solved problem with your this message. I wish you have a nice day!

@simeonangelov94 @developer-caleb Can you please share the sample example.

@justkawal is there any way i can open xlsx file with sheet that contains chart for now it always crashes when opening file with sheets that have
Is there any workaround that i can open file read other sheets that don't have charts in them

Sorry, For now we don't parse charts.


Exposed used and free methods on CortexMHeap

Added two methods that expose existing functions on the Heap:

https://docs.rs/linked_list_allocator/0.8.4/linked_list_allocator/struct.Heap.html#method.used
https://docs.rs/linked_list_allocator/0.8.4/linked_list_allocator/struct.Heap.html#method.free

The functions should be generic enough that it doesn't pin alloc-cortex-m to a specific implementation. This is the reason the documentation mentions that the methods return an "estimate", as future implementations might not be accurate.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jonas-schievink (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.


Updating Masternode - error Libraries after executing monoecid

When running the command: monoecid
I get the following error message:
monoecid: error while loading shared libraries: libzmq.so.5: cannot open shared object file: No such file or directory
What can I do?
Thanks for everybody who response.

I actually have the same problem. I have been meaning to go on discord to ask this but haven't had the time recently. Hopefully someone has an answer.

sudo apt-get -y install libzmq3-dev
Run this under your root user and everything should work out.

Thanks for your answers - everything works fine now


login admin pannel doesnt work

Hello,
google says thats a common issue - but i want to bring it to the table again.
First - thanks for this awesome free tool.
Second - i cant login, i set up the username / pw correct.
Installed it, make a good database, but i cant login.
"incorrect username or password"  - when i set the "backend" to public,
i can login and its working fine. But i need it to make private.
Do you have any suggestions ?
Greetz

There are numerous issues about this. Some close, some still ongoing, under varying setups. Search, see what applies to your case.


Deploy via CDK requires extra dependencies

Hi,
I am trying to follow the first option here:  https://github.com/sladg/nextjs-lambda/blob/master/docs/CDK.md.  I am finding the my cdk deploy fails because of missing dependencies.  Namely:  next, react, react-dom, and config.json.
I think it has to do with this line.  To test this, I removed the chunk of code from dist/index.js that starts with // lib/server-handler/index.ts and I am able to get past these dependencies.
Thanks

Hey! Can you share some sample app? This is meant specifically for NextJS. Aka. not having next as dependency is not really an option :)

Hi,  thanks for the response.
I have recreated the problem here:  https://github.com/jlong-icon/next-lambda-cdk-issue-demo.  Here is how. you can recreate the issue (from my repo):

In my-app, run yarn, yarn build, npx @sladg/nextjs-lamabda pack
In cdk, run yarn, yarn build, yarn cdk deploy.

You should see the following error:
Error: Cannot find module 'next/dist/server/next-server'
Require stack:
-<EMAIL_ADDRESS>
You can add the error dependencies if you want, but eventually it'll error because it is missing config.json as there is no way around this (except modifying dist/index.js like I said above).
Let me know if you have nay problems or trouble recreating my steps.

You are running npx @sladg/nextjs-lamabda pack inside my-app, however, according to error, it resolves to cdk folder.
<EMAIL_ADDRESS>
Considering the route, you are not running npx from global cache, but from locally installed instance. Remove it from dependencies everywhere and try again :)

Hi, thanks for taking the time to respond.  Sorry I have been slow to respond, I have been on vacation.
I am not sure if I understand your last comment.  My issue is not with pack (in my-app/).  Rather, my issue is with yarn cdk deploy (from the cdk/) directory.  And I do need @sladg/nextjs-lambda in cdk/ because I am referencing it in lib/cdk-stack.ts (as are you on line 3 of your example here).
I'm reluctant to try your suggestion in the edit.  I'd prefer to keep my deployment separate from my app.  And the only way I can think to truly have a single package.json is to run create-next-app and cdk init in the same directory, which may introduce other conflicts.


[WIP] Add Simplified-Chinese translation

WIP. Please don't merge yet.

Do you think I should translate the ASM config part? There're a lot of terms there I'm not sure how to express in Chinese/should not translate into Chinese. If I only translate some of them it'll look pretty weird.
By the way, I found some unused translation key. Not sure if I translated them correctly because I don't know where they were being used.
update.fail.nopom.dev
ui.edit.method.insert
ui.history.index
ui.history.time
ui.history.stacksize
ui.info.other

Those items were removed recently when the history window got updated.
Current:
screenshots/save-state-view.png

update.fail.nopom.dev - This was used in an older iteration of the auto-updater. I'll delete it from the translation files.
ui.edit.method.insert - Looking at this is kinda confusing. The name would imply it should relate to methods but instead if you look at the sub-items such as ui.edit.method.insert.title its used for opcodes. This is probably an oversight on my part. ui.edit.method.insert is unused.
ui.info.other is unused too. I was going to have some extra information on a separate tab next to the logging tab, but never got around to actually doing anything with it. If you have any ideas on what can be put there I'm open to suggestions.

A small typo in en.json#L193:
"ui.bean.class.outermethod.desc": "Name of the method in the outer class that this class was written in. This is class is anonymous if non-null."

This is class is anonymous if non-null. ->
This class is anonymous if non-null.

If you find any issues do add them to the PR.

I don't want to change any file besides zh-cn.json because they may cause conflicts when merging. This is WIP so it'll be some time before all commits can be merged, and by then there may be... you know
(ah such pain expressing myself in foreign language..)

For "ui.bean.class.outermethod.desc" I re-read it and replaced it with the exact wording of the ClassNode documentation for the field.

All translation were basically completed.
I don't think I have enough energy and patience to handle the CFR part, and, it's really not that important, sooooo I'll just go and pretend it's all done :smirk:

:+1: merging, awesome work!


Tax Setting Page - Remove tax type field from create  tax setting page and remove create date from list

Describe the bug

currently we are not using purchase entry so tax field should hide/remove from create page
We only show output tax while using
remove/hide create date column from tax setting list
user can not understand meaning of count column so show some text on hover

https://www.berrycast.com/conversations/24ae299b-060a-55f6-bd07-bf8b99231d22

Tax setting Count (Company and Process Flow inner Use Tax setting)

Count is of => Company's Tax Setting for Auto billing OR Per-Project Billing + ProcessFlow tax selected


Remove SqlTypeSystem

Currently, moor uses the SqlTypeSystem class which describes how to map Dart values from and to values understood by the database. This works, but has proven to be overly complex and expensive:

it was supposed to support custom types, but those were realized through type converters
looking up the right type for each mapped column at runtime is expensive (the generator can turn this into a static call)
integration into Dart's null safe typesystem is mediocre
custom type systems are not supported by isolates

I think we can remove that class and the SqlType classes, replacing them with static methods to transform values. The class will be deprecated in the next moor release and removed in the next major version bump.
Related todos:

Remove the database parameter from generated fromData methods on data classes, it's no longer necessary (but breaking to remove)
(#1556): Don't expect the converted type in the custom companion constructor.

@simolus3 I see in sql_types.dart that we should use SqlTypeSystem instead. Yet here you state that this is going to be removed.
If you remove the SqlType classes, inspector tools like drift_inspector (and a soon to be announced new tool to replace it) will not be able to extract type information from the GeneratedColumn classes required to build comprehensive tools.
Please keep this in mind when removing identifiable column type information from the library 🙏

Thanks for your work on drift_inspector and your feedback! At the moment, we have a typeName field on generated columns, giving you the type of the column at runtime, is that enough for your use case or are you looking for more?
Initially, the type system was there so that the mapping of values could be configured, but type converters are a cleaner solution to that problem and it's more efficient to sidestep this mechanism in some cases. This is why I want to remove it entirely (it doesn't have much use at the moment inside of drift). Obviously if there's specific information you need for inspectors that we're not providing outside of deprecated classes, I want to change that ^^

If I recall correctly, I just moved away from typeName since it is marked as deprecated 😂

Oh right, type.sqlName() is is then :D That one is used by drift though, so there'll be a replacement if SqlTypes are going.

I could use that for now. Though that loses some context about some fine grained info such as: bools and datetimes.
I guess I'll keep it as-is for now and when the breaking change finally happens, look as to what I can use instead (I used to use column is GeneratedColumn<bool> 😅)

This is done now.
@NicolaVerbeeck In the upcoming drift 2.0 release, you will be able to use GeneratedColumn.type which is now an enum over all supported drift types. So hopefully it's even nicer to use than matching type names represented as a string :)
In addition, in drift 2.0 it will be possible two switch between two storage modes for datetimes (the current unix timestamps as integer mode and a text-based mode). You can use databaseInstance.options.types.storeDateTimesAsText to check which mode is active (and generally use databaseInstance.options.types.read to map a column from SQL to Dart now.
If you run into any issues migrating to drift 2.0 (not released yet), please let me know. Thanks for all your work on the local storage inspector!

@simolus3 What is the time frame for release 2.0? I will start working after my holidays

My rough estimate is "sometime this month". I have most of the breaking changes I want in, but I still need to do some testing and proof-reading for the documentation. So no reason to be in a hurry, I just wanted to give an early heads-up :)


Typo

Step 6: In the type of information in this column is radio button list, select Choice.
Delete "radio button list"

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

ID: 379862e0-89e8-8e6b-b686-77d6836f0434
Version Independent ID: 29fc7f25-b6b5-26d2-69f3-eada7fff64b3
Content: Install and configure the Expense Report sample for canvas apps - PowerApps
Content Source: powerapps-docs/maker/canvas-apps/expense-report-install.md
Service: powerapps
GitHub Login: @yijw2017
Microsoft Alias: yijw

Disregard.  I misread it.


hbar is affected by #show strike: …

hbar is affected by #show strike: … unexpectedly.
#import "@preview/physica:0.9.3": hbar
#show strike: set text(gray)
$hbar planck.reduce$

Because the solution in https://github.com/typst/typst/issues/355 uses the strike function.
https://github.com/Leedehai/typst-physics/blob/443c963013b5cfea64818fa71990fefde9c93131/physica.typ#L750
Could this behaviour be documented in the manual? (I don't think there is a robust fix before https://github.com/typst/typst/issues/420 is resolved.)

Ah, that's a bit unfortunate. I'm on a travel and don't have my laptop with me now, though.. if you are convenient, could you make the edit to the markdown file and regenerate the PDF? Or, I'll modify when I'm back in a week or so.

It is not an urgent issue, and that's fine. I can make the edit, but…

make the edit to the markdown file

do you mean physica-manual.typ?
Besides, it looks like that the PDF in the current repo predates typst 0.12.0, and now there are many subtle changes. It may take some time before I figure out if additional changes are required.


Intellisense not working

I'm using vscode editor from the last past two years. now I am getting a problem with vscode Intellisense. I'm working on javascript language. few minutes of working on vscode after that Intellisense suddenly stops working .after that i restart vscode. it will work again . but again after few minutes vscode Intellisense not working .,.///

Same problem here with latest macOS and VSCode version 1.41.1.

This problem also puzzles me. Even worse, vscode editor can't figure out whst javascript file is!

Same.

I was also having the same problem (windows 10).
Reverting to version 1.40.0 fixed it for now.
I've also disabled auto-updates from the settings until this is fixed.

/needsMoreInfo


Chart.Show missing

I thried to use XPlot in latest FsLab:
    (*** hide ***)
    #load "packages/FsLab/FsLab.fsx"

    (*** define-output:loading ***)
    open Deedle
    open System.IO

    (*** define-output:chart ***)
    open XPlot.GoogleCharts

    let data =
        [
            "Rome", 2761477, 1285.31
            "Milan", 1324110, 181.76
            "Naples", 959574, 117.27
            "Turin", 907563, 130.17
            "Palermo", 655875, 158.9
            "Genoa", 607906, 243.60
            "Bologna", 380181, 140.7
            "Florence", 371282, 102.41
            "Fiumicino", 67370, 213.44
            "Anzio", 52192, 43.43
            "Ciampino", 38262, 11.
        ]

    let options =
        Options(
            region = "IT",
            displayMode = "markers",
            colorAxis = ColorAxis(colors = [|"green"; "blue"|])
        )

    let chart =
        data
        |> Chart.Geo
        |> Chart.WithLabels ["Population"; "Area"]
        |> Chart.WithOptions options
        |> Chart.Show

    (*** include-it:chart ***)

/cc @tpetricek

Hello Steffen, you don't need the Chart.Show method when working with FsLab. It's now an extension method in a separate package because, according to Tomas, the WPF bits cause issues on Mac/Linux.
I think the old documentation is confusing you here, I'll try to release the new one this weekend.

thx

If I remove the Chart.Show the it crashes with NPE:

The "let chart =" line is causing this, delete it and adjust the following block's indentation.

But then how does it detect what I want to output? I thought it's matched
by name
On May 30, 2015 1:15 PM, "Taha Hachana"<EMAIL_ADDRESS>wrote:

The "let chart =" line is causing this, delete it and adjust the following
block's indentation.
—
Reply to this email directly or view it on GitHub
https://github.com/TahaHachana/XPlot/issues/12#issuecomment-107024355.

it works anyway

The FsLab API for this is not very nice :-(. There are three commands:

(*** include-it:<snippet-name> ***) which includes the it value (last thing evaluated) from an earlier snippet
(*** include-value:<value-name> ***) which includes whatever is assigned to the specified F# variable
(*** include-output:<snippet-name> ***) includes whatever evaluating the snippet printed (and also R outputs)

I would really like to revisit this and have a nicer mechanism (and also documented). It is a bit hard because we need to keep the source as valid F# code. But I suspect we could just have better defaults (automatically embed the most sensible thing).


Remove Python 3.6 from haiku's CI

Motivation

Fix the CI of haiku: https://github.com/optuna/optuna-examples/actions/runs/1841778736.
Description of the changes

As in the title, Remove Python 3.6 from haiku's CI because haiku and jax have dropped Python 3.6 supports.

Oh, black in checks failed.

Your master branch is up-to-date?

To fix the CI, I've created #84.

I merged https://github.com/optuna/optuna-examples/pull/84. Please update the PR to merge or rebase.

done


Default values for settings

Could we collect the default values for the settings variables in one place, for example in a dict,
`APIS_DEFAULTS = {"APIS_BASE_URI": "http://apis.info/", ....}`

and uniformly read them everywhere like so:
`getattr(settings, 'APIS_BASE_URI', APIS_DEFAULTS['APIS_BASE_URI'])`

so that the default strings are not hard-coded all over the repository.

Linking also to the settings repo for completeness' sake: https://github.com/acdh-oeaw/apis-acdhch-default-settings which contains a large number of APIS-specific variables in its settings file.
The repo can be included as dependency as a stopgap solution to (unknown) variables being required to be set. (Or serve as reference, and in the long-term help get rid of those variables.)

If there are unknown variables required to be set, then thats a bug.

I meant "unknown" in the sense of "I/you/we might not actually know what variable X does" and was perhaps using "required" a bit loosely. E.g. APIS_BASE_URI is not strictly required to be set, but the defaults it falls back on are useless and will produce nonsense data in your DB, so you'd better make sure it is set.

The references repository does in fact not use the acdh-specific default settings

Ah true, it doesn't incorporate them – I think I even asked if that didn't render the dependency redundant when we met last week? Forgot about that, sorry, only remembered this was a repo which included it in its dependency list.


Add Perl.

Thank you for your first PR and the support of the project. I have verified your changes on the website and everything is correct.


#3196: Sunburst chart causes performance issues

charts 1.4.1
Steps to reproduce:

Open some table (~2-8K rows, ~300-400 columns)
Open 6-8 views
Add some viewers to the views
Add a sunburst and configure two columns: one with 6-10 categories, another one with 80-100 categories
Save project, refresh browser page

Expected results: Sunburst should not cause any performance issues.
Actual results: Performance is slow after adding and configuring sunburst. After saving and re-loading page is frozen for a while.

Data for reproducing the issue:
sunburst.zip

Charts 1.4.2


add scrollOffset for binding

Hi!
I need get current scroll offset in parent View.
I added binding for it.
Have a nice day!

Hey @AndriiZakhliupanyi thank you for your work! Have a wonderful day!

Thanks for the quick review!
When will you update to 0.1.4?

Done

Thanks!


Compare Versions feature

Related: #19

--allbranches can crash if a branch doesn't have a congfig file - make it so the branch is just ignored in those cases.

Currently it builds all in one SQLite database. Consider building one DB per version and linking them with the attach feature https://www.sqlite.org/lang_attach.html as this might make it easier to pick up in hub?


Add support for Helper Blocks to doc generator

Describe the bug
The documentation generator does not include the necessary information for annotating parameters that use the helper blocks functionality.
Affects

[ ] Designer
[ ] Blocks editor
[ ] Companion
[ ] Compiled apps
[ ] Buildserver
[ ] Debugging
[x] Other... documentation

Expected behavior

The documentation generator should annotate method parameters with the corresponding helper block information.
Steps to reproduce

Build ucr
Run the dev server
Open the documentation for a user interface element, such as the HorizontalArrangement and note that the types still show numbers, etc. (which are still allowed) but by default the setters will include attached helper blocks, not numbers. This may be confusing. In new code, the items are not annotated at all since there isn't a fallback type.

Weird, I thought I actually did this. Maybe I just fixed the markdown generator and forgot about the other one haha. Anyway, hopefully that gives someone a place to start with updating the docs generator!

Ok. I think I understand. It seems as though the fully qualified class name is getting converted into CSS classes in HTML, and I'll just need to add some CSS to account for it in my branch.

E.g., I created FileScopeEnum and the HTML that gets generated has class="com google appinventor components common FileScopeEnum bo".

The CSS fix worked. We may want to think about how we might generate CSS for the helper block annotations.


Fix the Xor method

There is currently a method called xor that lives in /lib/xor.js.
It is incomplete and needs to be fixed!
Acceptance Criteria:

Running yarn test xor results in tests passing.

Please include the skeleton of a new method + an accompanying test for someone else to work on at the time of creating a pull request!

Dibs :)


number of windows

Greetings,
I would like to have the number of windows displayed as well. (If not too difficult to develop and doesn't hurt performance much.)
aTdHvAaNnKcSe

Hi @HuBandiT,
This shouldn't be too difficult to add! I'll mark it for the next version.

Thank you in advance!

@HuBandiT, I have released v0.4.0 on GitHub and AMO! You will find the new option to count the total number of windows in this version.
https://github.com/DaAwesomeP/tab-counter/releases/tag/v0.4.0
https://addons.mozilla.org/en-US/firefox/addon/tab-counter-webext/versions/?page=1#version-0.4.0

( Yikes how many windows I have! )
Confirmed! Thank you!


Get AST for query with error

I sucessfully use ZetaSQL to obtain AST for different queries. But if query contain any issue, I receive only error. For example for the query
select   from my_table;

I will get only the following error and no any AST:
ERROR:
  Code: InvalidArgument
  Message: Syntax error: SELECT list must not be empty

Is it possible to get some kind of AST for such SQL queries with issues or for incomplete queries?

If it failed to parse, there is no AST to return.  The error object
returned should include the error location in the input SQL string, and
depending on the Options you pass and which API you're calling, that
location can be included automatically in the error string to show a
highlight of where the error occurred.

Thank you @jshute111!
Yes, I successfully use the response from ZetaSQL with error position to highlight words in SQL:

But my idea was that if I can get AST I can suggest customer to insert some table names like this (for valid sql):

It is hard to understand cursor context without AST. Do you have any plans to return AST for error state if possible?


Superset configuration on a production version of superset in docker

Expected results
The ability to add a superset configuration on a production version of superset running on docker.
Actual results
Unable to configure a superset configuration on docker.
Environment

superset version: 1.1.0
python version: 3.8.5
node.js version: 10.19.0

Additional context
I am new to superset, I have followed the steps from here and I am successfully running a non-dev version of superset on docker. Now I wanted to enable a configuration ENABLE_TEMPLATE_PROCESSING which is set to False by default. How do I do this? I have read this section but it only says you need to create a file superset_config.py and add it to your PYTHONPATH. I am not a python dev so I do not know how to do this and how this works with the docker container. Anyone can help?

You can volume mount a superset config into the container

@nytai  Could you please give me an example of it?

Hi,
I have a similar setup, here's what I did
Dockerfile :
FROM .......superset parent image you want

ADD superset_config.py  /app/pythonpath/

and the file superset_config.py itself contains your configuration
FEATURE_FLAGS = {
    "ENABLE_TEMPLATE_PROCESSING": True
}

less flexible than a mounted volume but works in a serverless environment.

Hi,
I have a similar setup, here's what I did
Dockerfile :
FROM .......superset parent image you want

ADD superset_config.py  /app/pythonpath/

and the file superset_config.py itself contains your configuration
FEATURE_FLAGS = {
    "ENABLE_TEMPLATE_PROCESSING": True
}

less flexible than a mounted volume but works in a serverless environment.
Just docker build from this Dockerfile and you can deploy on your production env.

Thanks, but I am already running superset using docker-compose and I was trying to figure out on which path to mount it to.

Got it, I added the FEATURE_FLAG in the superset_config.py which was present in the cloned repository path superset/docker/pythonpath_dev.


Don’t mutate line endings in assertParseWithAllNewlineEndings

My current suspicion is that this is causing swift-syntax CI failures, probably caused by https://github.com/apple/swift/pull/67729. While I investigate what the root cause is, just run a normal assertParse here to fix CI.

@swift-ci Please test


install: Eliminate need to set ALLOWED_HOSTS by default

I think we could make ALLOWED_HOSTS no longer a mandatory setting by including EXTERNAL_HOST in it by default.  We should look into doing so.

I merged a fix for this just now.


Support multi-value fields like array_name[] or many checkboxes with the same name

Hey,
The original conditionize.js works with names with [] but it would be nice to upgrade to conditionize.flexible.js...
The original version cleaned the parameter to take this into account
https://github.com/renvrant/conditionize.js/blob/4120b6d6aa1d2303e3e30aaf62bbf6c917010475/conditionize.jquery.js#L49
The new version uses \w in a regex which doesn't match [\w+]
https://github.com/renvrant/conditionize.js/blob/4120b6d6aa1d2303e3e30aaf62bbf6c917010475/conditionize.flexible.jquery.js#L31
Perhaps changing the regex to (#?[\w\[\]]+) will fix this issue?

Hi Ismail,
I see your point. But it's a bit tricky about names with []. It's not just about adding brackets to regex. The problem is that such inputs may have many values. So, which one to use then? Could you provide your non-working example? It would save some time for me to figure something out.

@rguliev I have the same issue with names with []

Hi @BassemN ,
Could you provide an example describing your problem with some context?

Yes, I can see this being a problem too, with many CMS using weird class names with brackets etc...

@BassemN, Thanks! Additional thanks for https://cdn.jsdelivr.net/gh/renvrant/conditionize.js@ - it will make my life easier:)
Well, I must admit it, I have never used brackets in names like that. Usually, I use them for multifields like
<input type="text" name="my_favorite_books[]">
<input type="text" name="my_favorite_books[]">
<input type="text" name="my_favorite_books[]">
<button id="add_book_btn">Add a book</button>

And according to the regex change suggested by @IsmailM : (#?[\w\[\]]+), I think that the initial question is about such a case. But it is ambigous to get values and check conditions for such fields. That is why I refused to add it without any further details.
I add a support for names like "my_favorite_book[0]", "my_favorite_book[1]", etc. But it would not work well for names like "my_favorite_book[]" anyway.

@rguliev Welcome :)
We hope to see support for [] names shortly :pray:

Is there any ETA on this as it is very critical for my project as my checkboxes & selects are using names[ ] and it is not ideal to use ID's for this project, thank you.

My situation is similar to this you mentioned above :
<input type="text" name="my_favorite_books[]"> <input type="text" name="my_favorite_books[]"> <input type="text" name="my_favorite_books[]"> <button id="add_book_btn">Add a book</button>
How can i use the name selector in this situation above?

@CodeCurosity As I said, for such cases the plugin would not work well. The problem is that it is ambiguous which value you want to check. It would help if you provide a more detailed example with the context.

Here https://codepen.io/digtalmind/pen/ZVOYYr
For checkboxes & select we have to use [ ] next to the name so it can be submitted as an array.

What does the condition data-condition="my_favorite_books==1" mean? At least one checked?
Well, here are options you have:

Is possible with the current version. Just add ID's. I know it is not elegant but it works right now and acceptable.
~15 Jan 2019. Wait for support of names like 'my_favorite_books[0]', 'my_favorite_books[1]' as described above and add the numbers to the names.

As for 'my_favorite_books[]' it is not considered for implementation because it is a very unclear case. I think it's easier to add some JS (as you will need it anyway if you use muti-fields) to add numbers to IDs or names.

data-condition="my_favorite_books==1" means checkbox has a value of 1 then there is another checkbox with a value of 2, as you may have not noticed checkboxes  have predefined values, it won't work as on & off switch.

Yeah, sorry did not notice values.
Well, it works without brackets) But it may lead to some data loss on the backend. Anyway, options 1 and 2 described above still possible.

For it to work without brackets we also have to remove [ ] from names which we can't do, its just very odd that we have to tell client to use names for certain fields and ids for other fields.

You can use both names and IDs; or names for all fields and add IDs only for those used in conditions. Or you can name them without brackets like my_favorite_book-1, my_favorite_book-2, etc.(which seems a bit ugly) and parse it on the backend.

Thanks to IsmailM this solution worked perfectly : https://codepen.io/ismailm___/pen/QzEbyZ?editors=1010

Try data-condition="my_favorite_books[] == 2" and check first checkbox + second checkbox (order matters: firtst then second)
Try to replace it with text inputs

Pen is updated and it works fine.

Closed related issue #28 . Let's keep our discussions in one place. Our summary so far:
Not working cases

Multi-value checkboxes

<input type="checkbox" name="options" value="1">Option1
<input type="checkbox" name="options" value="2">Option2
<input type="checkbox" name="options" value="3">Option3
<button id="add_book_btn" class="conditional" data-condition="options == 2">

Multi-value fields with names like input_name[]. For example,

Favorite book name<input type="text" name="my_favorite_books[]">
Favorite book name<input type="text" name="my_favorite_books[]">
Favorite book name<input type="text" name="my_favorite_books[]">
<button id="add_book_btn" class="conditional" data-condition="my_favorite_books[] == 3">

Array inputs like my_favorite_book[0][name], my_favorite_book[1][name]. i.e. the name itself is unique in DOM, but data is send to servers as an array. This is a bit different issue, but will be solved with the problem 2.

Suggested solution

Square brackets added as a valid part of a name.
In case when one name has multiply values (related inputs in a DOM) array will be used as a value in data-condition. I.e. in case 1: options will be interpreted as [1,2,false] if only first two are selected, in case 2 my_favorite_books[] will be resolved to ['Book1', 'Test', '']. Case 3 will be closed automatically along with 2nd.

About ETA
Because of the end of the year, I have a lot of work to do at my work. I will try my best to implement it faster but I cannot estimate it earlier than the middle of Jan.
If some of you do not want (or cannot) wait for it you can create a branch, let's say multivalue-fields and implement suggested solution. Adding tests is encouraged:)

So Multi Value Checkboxes don't even work with names, id's & names with [ ] , i have tried below doesn't work either, this is very critical we can wait for name [ ]  but it should work with ID's, look at the example below :
<input id="mybox" type="checkbox" name="my_favorite_books[]" value="1">Option1
<input id="mybox" type="checkbox" name="my_favorite_books[]" value="2">Option2
  <input id="mybox" type="checkbox" name="my_favorite_books[]" value="3">Option3

<button id="add_book_btn" class="conditional" data-condition="#mybox==1 && #mybox==2">Add a book</button>

Thanks, @BassemN.
Here another link: https://stackoverflow.com/a/37280087/5055891. So it will not be supported anyway since it is invalid usage of id.

Yes i think giving unique id's to each of my input is the ideal way to go at the moment as my field names are coming from labels and i only wanted to make it easier for my clients to see the names while they are creating the logic, now i will just generate the unique id next to the input so they can use ID's, thanks guys :+1:

Welcome:)

Multi Radio buttons also don't seem to work although i am using id's for condition and each radio button has different id but same name.
https://codepen.io/digtalmind/pen/ZVOYYr/

You are confusing things. Radio buttons are not a multi-value inputs. Multi-value means that an input has many values and when you send it to the server side it will appear something like an array. On the other hand, using the same name for many inputs in case of a radio button is an expected syntax. Why? Because radio button takes only one value even though you have many inputs with the same name. Because it is the way radio buttons are designed and work. So you can just ask for a value of a radio button. In case of your example just try data-condition="my_favorite_books == 1".

I never mentioned anywhere that radio buttons are multi value, i just mentioned i have multi radio buttons, previously we had issues with multi check boxes with same name or [ ] so i replanned everything and decided to stick to ID's now that i have given unique id to every input radio buttons doesn't seem to work with ID's? the sole purpose of using multi radio buttons is so clients can select one value from multiple options, i still can't get head wrapped around that why it doesn't work with ID even though i gave the value?
I tried data-condition="#id" or data-condition="#id == 2" none of these options work multiple radio buttons.
I think this is very odd.

I tried to manually change trigger for each radio input, see if this is correct
jQuery("#input_265104d").change(function(){jQuery("#input_265104d").trigger("change");});
It throws this error
Uncaught RangeError: Maximum call stack size exceeded

I can trigger change event manually but unfortunately fields are generated on the fly and i can only get unique id of each input, i can't defined other radio buttons id's in a function.
Can i manually trigger change event on each input by specifying just that input unique ID?

I think you have to write some additional javascript handling event triggering. Or maybe it will be simpler for you to write your own conditionize.js working just for your special project. But it is out of scope here. I would recommend asking at Stack Overflow with comprehend description, so more people could help you.

@CodeCurosity Just chiming in to say @rguliev is correct and the use case you're describing seems very specific to what you're trying to achieve. You may wish to try writing your own event handling or forking this plugin to make changes specific to your needs.

Thanks guys yes i will do that :+1:

Hey guys, end of january, anything on this issue, its really bugging my clients to not been able to use radio button and checkboxes at all.

Hi @CodeCurosity,
Sorry, for delays. It takes more time that I estimated because I decided to reorganize and cover everithing by tests . I ended up with creating a conditionize2. I will write more about it later.
For your question. For now, you can use  multivalue-fileds branch from conditionize2. It works with multifieds as far as I checked. It is not documented and covered by tests yet. But the idea is quite simple: if a field has many values then its value is array with values of each input. Otherwise, it works as usually. You can see some examples in demo.html.
Please, take into account that usage will be changed slightly soon.  I will add some parameters to give more control. In general it will look something like this

Hi,
Sounds great, although i tried with radio buttons but it doesn't seem to do anything, how do we make it work with radio button using my_favorite_book[] as name and here is the condition i tried.
data-condition="my_favorite_book[] == 3"
Thanks.

The problem is that now my_gavorite_books[] is an array. So your condition becomes something like [false, “2”, false] == 3 which is always false. Try something like my_favorite_book[].indexOf(‘3’) !== -1
P.S. For further discussions, please, use issues in the new repo, since it’s irrelevant here.

Hey!
I have some news. I finished conditionize2.js -- an improved version of conditionize.js. What changed:

multivalue fields support (which closes this issue)
more control on actions (it is not restricted to only show/hide, you can even add your custom handlers)
better testing (for now it's manual, but I plan to make them automated)
a lot of examples (for now you can see them in the manual test)
docs added
some improvements for development: eslint for jQuery, pre-commit hook for minified version.

Why I did not keep it in this repo:

Since I became the only maintainer, I wanted to have more control over the repo settings
I wanted to get rid of backwards compatibility with the first conditionize.js version

The new version is a fork from this repo because I wanted to give credits to other contributed developers. First, I thought about transferring the repo but I was not able to contact the owner anyway.
So now I stop maintenance of conditionize.flexible.js and all updates/issues will be in conditionize2.js. I highly recommend migrating to it since it has better support and more features. In the README you can find instructions for migration.

Thank you for the inspiration and the opportunity to contribute!


hugo compiles (sass ) file very slow on mac os system

What version of Hugo are you using (hugo version)?

➜  blog git:(develop) hugo server
Start building sites …
hugo v0.90.1+extended darwin/amd64 BuildDate=unknown

                   | ZH  | EN
-------------------+-----+------
  Pages            | 131 | 132
  Paginator pages  |   3 |   3
  Non-page files   |   3 |   3
  Static files     | 129 | 129
  Processed images |   0 |   0
  Aliases          |  36 |  35
  Sitemaps         |   2 |   1
  Cleaned          |   0 |   0

Built in 7717 ms
Watching for changes in /Users/maogou/work/blog/{archetypes,content,static,themes}
Watching for config changes in /Users/maogou/work/blog/config/_default
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address <IP_ADDRESS>)
Press Ctrl+C to stop

![121639462210_ pic_hd](https://user-images.githubusercontent.com/48229139/146005185-688527f3-c04c-4b01-946d-64118b582a28.jpg)

Does this issue reproduce with the latest release?
yes
my issue ↓↓
The same blog code compiles very fast on windows 10 OS  wls, but compiles very slow on mac os system, please help me

Thanks for getting in touch, but it feels like this is a question  that would be better suited to the Hugo Discussion Forum.  We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug. You may also find the answers you search for in Hugo Documentation.


[Spack] Package Manager: Update Domain

The domain endpoint of Spack packages moved. This fixes our shields.
cc Spack: @tgamblin @vsoch

Warnings

:warning:
This PR modified service code for spack but not its test code. That's okay so long as it's refactoring existing code.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @ax3l!

  Generated by :no_entry_sign: dangerJS against 54ce5881accaed4fd6f0286b3f7bd01cda3eb78e


Encourage conventional commits

I've been using conventional commits on other projects and have been enjoying the benefits, opening this to gauge interest.

Hi! Thanks for the great work on this so far! I'll be using this for a few production apps that I'll building and hope to contribute back my changes.
We use conventional commits across all our apps and it's a great way to manage changesets and releases. It also has helped us to be more organized and detailed with our commits.


NO-ISSUE: Refactor to use isoeditor library internally for initrd

Refactor the assisted image service's handler for the initramfs to make use of the identical code in the isoeditor library's NewInitRamFSStreamReaderFromISO() function.

/retest


Server crashing on Ubuntu 22.04 LTS

Hey guys I am trying to set up a dedicated server on my Linux (running Ubuntu 22.04) host but the docker container wont stay up for more than ~1 minute before shutting down. I don't see any logs and it doesn't actually save any files to my directory.
Here is my docker-compose.yaml
services:
  enshrouded:
    image: sknnr/enshrouded-dedicated-server
    container_name: enshrouded
    ports:
      - "15636:48969/udp"
      - "15637:15637/udp"
    environment:
      - SERVER_NAME: "My Server"
      - SERVER_PASSWORD: "MyPassword"
      - GAME_PORT: 15636
      - QUERY_PORT: 15637
      - SERVER_SLOTS: 4
      - SERVER_IP: <IP_ADDRESS>
    volumes:
      - ./save_data:/home/steam/enshrouded/savegame

I changed the sever IP from the <IP_ADDRESS> that was in the README to <IP_ADDRESS> based on the advice from this issue
I also noticed that when I got connected to the server enshrouded_server_example.json was not updated with my information so I manually updated that and restarted the container but no luck there either.
Maybe I am missing something with the docker-compose?

My 2 cents to get the container running, using an exposed volume, like you (instead of letting docker handle the volume).

I had to create the user and chown the volume location with that user:group.groupadd enshrouded -g 10000
useradd enshrouded -u 10000 -g 10000 -m -s /bin/bash
chown -R enshrouded:enshrouded /path/on/host/enshrouded

And then in the compose, the source needs to reflect this folder, obviously.services:
  enshrouded:
    image: sknnr/enshrouded-dedicated-server:latest
    ports:
      - "15636:15636/udp"
      - "15637:15637/udp"
    environment:
      - SERVER_NAME=TestEnshrouded
      - SERVER_PASSWORD=testing
      - GAME_PORT=15636
      - QUERY_PORT=15637
      - SERVER_SLOTS=16
      - SERVER_IP=<IP_ADDRESS>
    volumes:
      - type: bind
        source: /path/on/host/enshrouded
        target: /home/steam/enshrouded/savegame
        bind:
          create_host_path: true
    restart: unless-stopped
    network_mode: bridge

I think you reversed the external:internal port, unless you somehow changed the internal port in the config file.
If you use different in-out ports for dockerized steam-dedicated servers, they work, if you connect directly. But most of the times, they will not properly propagate to the serverlist.

@TrueOsiris Okay, do I need to make the enshrouded user on the server?
Also, I just messed up my docker config when I was copying it over, that's my bad it should be this
    ports:
      - "15636:15636/udp"
      - "15637:15637/udp"

I'll update it in my original question too.

The user doesn't need to be named 'enshrouded'. It can be anything.
You need to create (or have) a user and group, both with id 10.000.

The alternative is having docker manage the persistent volume, as the dev of this repo is doing.
services:
  ...
    volumes:
      - enshrouded-persistent-data:/home/steam/enshrouded/savegame

volumes:
  enshrouded-persistent-data:

Then the volume is also persistent, but u can only reach it through docker commands.
Docker then will handle rights and users, making this part easier.
However, in most cases you do not want that, as you want to backup & restore files in those exposed volumes on an OS level.
The fact that the container access its volumes with user & group 10000 is embedded in the image and might even be embedded in the dedicated server software, imho.

Yes, in your originally compose file, you have the volume being presented as a bind mount. When using the bind mount you need to make sure the directory is owned by 10000:10000. You do NOT need to create the user on the host. Simply chown -R 10000:10000 /your/mount/directory. Also you should use an absolute path for the host portion of the directory, not a relative one.
The reason in all of my examples I have Docker/Podman create the volume is because the permissions will be correct for the container and you don't have to worry about it. For most people this will be fine. For folks with different storage setups they may choose to do a bind mount to utilize specific storage, that is fine. You just need to make sure the permissions are correct on the directory you are bind mounting, that the directory actually exists, and that you use an absolute path.

You do NOT need to create the user on the host. Simply chown -R 10000:10000 /your/mount/directory
I absolutely was unaware that this was possible.

Yeah, all of that is fine. I just try to use path of least resistance in all of my examples for folks that may not be as experienced.

The user doesn't need to be named 'enshrouded'. It can be anything. You need to create (or have) a user and group, both with id 10.000. Also, u need to make that user+group the owner of the exposed volume folder.

The alternative is having docker manage the persistent volume, as the dev of this repo is doing.
services:
  ...
    volumes:
      - enshrouded-persistent-data:/home/steam/enshrouded/savegame

volumes:
  enshrouded-persistent-data:

Then the volume is also persistent, but u can only reach it through docker commands. Docker then will handle rights and users, making this part easier. However, in most cases you do not want that, as you want to backup & restore files in those exposed volumes on an OS level.
The fact that the container access its volumes with user & group 10000 is embedded in the image and might even be embedded in the dedicated server software, imho.

Okay so I followed the instructions in this comment and updated my docker-compose to reflect it but I am still not able to get this to run. I think it might still be related to file permissions but I am not sure.
If I just start the server without any data the server starts fine and runs without crashing but it still doesn't write anything to the host computer. But if I pre-seed the server with another save folder it will write to the log files.

Then it will continue and start the server like normal (I think? According to the logs) but I am unable to connect to it from another computer.

groupadd enshrouded -g 10000
useradd enshrouded -u 10000 -g 10000 -m -s /bin/bash
chown -R enshrouded:enshrouded /path/on/host/enshrouded
What does path/on/host mean, is it in the Docker container or locally?

Well /path/on/source is just a fake file path, but that is the path the save file on the actual local server.
But we ended up just starting a new server because we weren't that far into it. It has been working for us fine for a few weeks now though, including through restarts!


Introduce categories component to capsule datagrid configuration

See https://github.com/sulu-io/sulu/blob/aa88f37a5a5560daa14ed71da2db794b82f646bb/src/Sulu/Bundle/CategoryBundle/Resources/views/Template/content-types/category_list.html.twig

Can you elaborate a bit more what this is about?

we should create a category-select component to capsule the configuration for the datagrid ... if you want to include categories into a form you have to include the datagrid with the whole configuration and not only the category-select component (:

I don't think we'll change that in the old UI anymore :slightly_smiling_face:


chore: Update build and test workflow

Add support for multiple operating systems in the build_and_test job
Run all tests on windows-latest and macos-latest
Add release job to automate the release process

Resolved #15


Cannot build the app

Hi,
I got an error when building the app:
[Tue Jan 26 2021 15:14:46.970]  ERROR    Invariant Violation: Tried to register two views with the same name RNCWebView [Tue Jan 26 2021 15:14:46.971]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication) [Tue Jan 26 2021 15:14:48.600]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
I found react-native-webview in the main node_modules, however I also found it in the child node_modules under react-native-quill-editor module:
/node_modules/react-native-webview  (image 1)
/node_modules/react-native-quill-editor/node_modules/react-native-webview (image 2)

I see "react-native-webview" again in the react-native-quill-editor node_modules folder!??

sorry, Now I use wml to run example, This is not best practice.
"scripts": {
    "postinstall": "cpy 'assets/quill.html' '../../android/app/src/main/assets/'",
    "wml:add": "wml add ./ ./Example/node_modules/react-native-quill-editor/",
    "wml:clean": "watchman watch-del-all",
    "android": "cd ./Example && yarn android && cd ../  && wml start",
    "ios": "cd ./Example && yarn ios && cd ../ && wml start"
  },

I plan rewrite it to match https://callstack.com/blog/adding-an-example-app-to-your-react-native-library/

sorry, Now I use wml to run example, This is not best practice.
"scripts": {
    "postinstall": "cpy 'assets/quill.html' '../../android/app/src/main/assets/'",
    "wml:add": "wml add ./ ./Example/node_modules/react-native-quill-editor/",
    "wml:clean": "watchman watch-del-all",
    "android": "cd ./Example && yarn android && cd ../  && wml start",
    "ios": "cd ./Example && yarn ios && cd ../ && wml start"
  },

I plan rewrite it to match https://callstack.com/blog/adding-an-example-app-to-your-react-native-library/

fix in<EMAIL_ADDRESS>

fix in<EMAIL_ADDRESS>


exercise/065_builtins2.zig not compiling

Upon fixing line no. https://github.com/ratfactor/ziglings/blob/7417f01d5d8fa8bed84849684501c71b821dff68/exercises/065_builtins2.zig#L73 (ps., not using self) I'm getting compilation error.
error: the following command failed with 1 compilation errors:
/usr/bin/zig build-exe /home/raytracer/Downloads/git-materials/my_repos/ziglings/exercises/065_builtins2.zig --cache-dir /home/raytracer/Downloads/git-materials
/my_repos/ziglings/zig-cache --listen=-
exercises/065_builtins2.zig:148:22: error: expected type 'type', found 'builtin.Type'
    return @typeName(myType)[14..];
                     ^~~~~~
/usr/lib/zig/std/builtin.zig:228:18: note: union declared here
pub const Type = union(enum) {
                 ^~~~~

Edit exercises/065_builtins2.zig and run 'zig build' again.

Is this expected ?
As the error says, that the argument should be of 'type', if I remove the @typeInfo() which returns builtin.Type, program runs perfectly as now the maximumNarcissism() is getting the type and not builtin.Type.
Pls confirm it

Is this expected ?

No, and for me it works:
zig version 0.12.0-dev.3090+f5aad4728
Compiling: 065_builtins2.zig
Checking: 065_builtins2.zig
PASSED:
A Narcissus loves all Narcissuses. He has room in his heart for: me myself.

Maybe you entered the wrong solution.

that line is part of exercise.
    // Oh dear, we seem to have done something wrong when calling
    // this function. We called it as a method, which would work
    // if it had a self parameter. But it doesn't. (See above.)
    //
    // The fix for this is very subtle, but it makes a big
    // difference!
    const Type2 = Narcissus.fetchTheMostBeautifulType();


Build Number Format information needed

I think there used to be some examples and details on using the Build Number Format -- can these be added back in?
Ex: $(Date:yyyyMMdd).$(rev:r)

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

ID: 0fa5a83c-70fd-6925-a8c8-256b21c21a2e
Version Independent ID: 75f4a136-7245-7878-2953-6b68272fe4ec
Content: Build options - Azure Pipelines
Content Source: docs/pipelines/build/options.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

@ravensorb  Thank you for the feedback.
The issue has been noted in https://github.com/MicrosoftDocs/vsts-docs/issues/4211 and provides links to the previous samples.
Please refer there for further status update on the issue.


Rounding on barcharts?

Is there any way to apply custom styling to round the bar chart for the top of each columns itself?

Hi! With the Tremor Npm package, this is not possible.


Fix compiler warnings in example projects

Motivation
A recent example project was added that had a compiler warning which wasn't caught by CI. We can have our example code free of warnings and ensure they remain so by compiling them with -warnings-as-errors in CI.
Modifications

Fix compiler warnings in example.
Build with -warnings-as-errors in examples CI pipeline.

Result
Example projects compile without warnings.
Test Plan
CI updated.

Oh, this is annoying:
[16/19] Compiling HelloWorldURLSessionClient Client.swift
/tmp/test-examples.sh.mM8MYEM7LH/swift-openapi-example-cache/x86_64-unknown-linux-gnu/debug/CBacktrace.build/module.modulemap:2:14: error: umbrella directory '/tmp/test-examples.sh.mM8MYEM7LH/swift-openapi-example-cache/checkouts/swift-backtrace/Sources/CBacktrace/include' not found
    umbrella "/tmp/test-examples.sh.mM8MYEM7LH/swift-openapi-example-cache/checkouts/swift-backtrace/Sources/CBacktrace/include"

This is leftover because we're using the shared cache/build dirs, which produces a warning. I guess we cannot enable -warnings-as-errors in CI then.
Will update PR to just fix the code to remove the compiler warning instead.


Fix Indentation Error Reported by Checkstyle

Make sure set the target branch to develop
What is the purpose of the change
Fix the indentation error reported by Checkstyle.
Brief changelog

Fix indentation of code within Configuration.java

Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

Merging #4884 (2a9a2db) into develop (0909aa9) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##             develop    #4884      +/-   ##
=============================================
- Coverage      43.26%   43.22%   -0.04%
+ Complexity      7678     7668      -10
=============================================
  Files            991      991
  Lines          68726    68726
  Branches        9100     9100
=============================================
- Hits           29732    29705      -27
- Misses         35253    35277      +24
- Partials        3741     3744       +3

Impacted Files
Coverage Δ

...rg/apache/rocketmq/proxy/config/Configuration.java
51.85% <100.00%> (ø)

...apache/rocketmq/remoting/netty/ResponseFuture.java
77.55% <0.00%> (-4.09%)
:arrow_down:

...rocketmq/remoting/netty/NettyRemotingAbstract.java
50.00% <0.00%> (-3.96%)
:arrow_down:

...e/rocketmq/remoting/netty/NettyRemotingClient.java
40.21% <0.00%> (-3.52%)
:arrow_down:

...a/org/apache/rocketmq/filter/util/BloomFilter.java
60.43% <0.00%> (-2.20%)
:arrow_down:

...mq/client/impl/consumer/RebalanceLitePullImpl.java
69.86% <0.00%> (-1.37%)
:arrow_down:

...client/consumer/store/RemoteBrokerOffsetStore.java
68.14% <0.00%> (-0.89%)
:arrow_down:

...he/rocketmq/client/impl/consumer/ProcessQueue.java
61.92% <0.00%> (-0.46%)
:arrow_down:

.../apache/rocketmq/logging/inner/LoggingBuilder.java
63.60% <0.00%> (-0.32%)
:arrow_down:

...ava/org/apache/rocketmq/filter/util/BitsArray.java
59.82% <0.00%> (ø)

... and 7 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Create ability to update marc record subject headings

Given a marc record, produce a modified record, keeping the original LC heading intact while adding replacement lc subject heading for undesired terms:
Original Heading
650  _0 $a Illegal aliens $v Drama.
Modified Headings
650  _0 $a Illegal aliens $v Drama.
~650  _7 $a Undocumented immigrants $v Drama. $g Illegal aliens--Drama. $2 local $9 NjP [this heading will be used for display in Blacklight, with $g added for ease of indexing]~
650  _7 $a Undocumented immigrants $v Drama. $2 local $9 NjP

This is no longer needed, as the ChangeTheSubject project moved in a different direction.


Disable authentication in dev env

Hi guys,
First and foremost thank you for the nice work here. My question is if it is possible to disable authentication while in dev env? Maybe using feature flags or something like that.

You can certainly do that but I wouldn't recommend it as your app is going to behave significantly different in dev than in the prod mode then. You could do something like that by using a common parent route for all authenticated routes that conditionally mixes in the AuthenticatedRouteMixin (or doesn't do so in dev mode).
As I said I'd strongly recommend against that though. You could have something in dev mode that allows you to login with a fake session or so with a simple button click.

Thank you, I will try it out :)


Resolve actual type for decorator

Current resolution:
const name123 = "name"

@table(name123)
class Table {}

This will currently resolve to a table name of name123 in the ABI, but it should resolve to "name"

Okay @learnforpractice, lets switch it to string only and throw error if isQuoted is false


Implement support for secp256k1

As a user, I need to be able to use my TokenNet key in CoinNet in order to use CoinNet without going through YAA (Yet Another Airdrop).
Definition of Done:

[ ] There is a crypto_scalarmult_secp256k1 similar to crypto_scalarmult_ed25519 with secp256k1
[ ] There is a crypto_scalarmult_secp256k1_base similar to crypto_scalarmult_ed25519_base with secp256k1
[ ] There is a noclamp version of those scalarmult functions

Depends on #208

Should this be unblocked?

We should also take a look at the implementation of Schnorr in Bitcoin Cash

After discussing more extensively about the transition process, we decided not to go through with this.


Added item and price count, styled table

Changes

Added total item count to the shopping list
Added total cost of the shopping list
Added style to match the site

Status: Approved!! 🎉🎉
Nothing else to say that is time to merge it!!


Distinguish compactList from runsAndLumis in LumiList

If you see the class docstring, compactList should be a range of lumis
{ '1':[[1,45],[50,80]]}
while runsAndLumis should be a list of individual lumis
{ '1': [1,2,3,4,6,7,8,9,10]}

Yeah, what are you saying? Both of these forms can work in the constructor depending on what values you pass. Can you describe what you need? This code is shared with CMSSW and I maintain both parts of it, so if you tell me what you need to do, I can do it.
I wasn't actually telling you "Use this code," I just wanted you to be aware that it existed because for a long, long time, WMCore rolled its own code for this stuff.

What I needed today was just to know beforehand whether we had one or another (and a method to return each of them).
What could also be useful is to implement other methods to return the list of lumis in both formats (provided a run number).
This guy
https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/JobSplitting/Harvest.py#L168
would also be a good candidate to go in there (or it was your last commit maybe :))

No, but I saw that function which reminded me that I should do something similar in my code.
So you should be able to do something like LumiList.getRunsAndLumis()['4'] and fetch all the lumis in a list for run 4? Or even LumiList.getRunsAndLumis(run=4)
I can do that, the problem comes with expanding theoretical lists like {'4':[1,9999999999]} which is perfectly valid but unstorable. :-)


Don't break if no content for service framework

Fixes this bug: https://www.pivotaltracker.com/story/show/144457253
We've seen some 500s in production for someone trying to look at DOS services "service pages".  We should 404 requests for service IDs on frameworks that don't have a display_service manifest.

Have we definitely checked referer for these log entries? I wonder if we could redirect to some other page instead, perhaps there's something we can show?

The 'referer' is empty for these requests - which I think means it's someone entering the URL directly?  Quite possibly one of us to be honest.

Updated to check for g-cloud meta-framework rather than swallow all ContentNotFoundErrors.


Added logs for per-service metric duplication

What does this PR do?

Checklist

[ ] This is an enhancement of existing features, or a new feature in existing plugins

[ ] I have updated CHANGELOG.asciidoc
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] Added an API method or config option? Document in which version this will be introduced
[ ] I have made corresponding changes to the documentation

[ ] This is a bugfix

[ ] I have updated CHANGELOG.asciidoc
[ ] I have added tests that would fail without this fix

[ ] This is a new plugin

[ ] I have updated CHANGELOG.asciidoc
[ ] My code follows the style guidelines of this project
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I have updated supported-technologies.asciidoc
[ ] Added an API method or config option? Document in which version this will be introduced
[ ] Added an instrumentation plugin? Describe how you made sure that old, non-supported versions are not instrumented by accident.

[ ] This is something else

[ ] I have updated CHANGELOG.asciidoc

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2023-03-22T11:33:56.985+0000

Duration: 15 min 4 sec

:grey_exclamation: Flaky test report
No test was executed to be analysed.
:robot: GitHub comments
Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run benchmark tests : Run the benchmark tests.

run jdk compatibility tests : Run the JDK Compatibility tests.

run integration tests : Run the Agent Integration tests.

run end-to-end tests : Run the APM-ITs.

run windows tests : Build & tests on windows.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)


Feature Request: Support Obsidian Advanced URI in Open Daily Note

Feature Requested
By changing your od Open URL to obsidian://advanced-uri?daily=true it will open, or create (I couldn't figure out how to do this currently), a new note with the specified template configured in Daily Note.
The simple change would require using the Daily Note plugin, however.  Perhaps a toggle config?
Checklist

[x] The feature would be useful to more users than just me.
[x] I have checked the feature overview and the feature doesn't already exist.
[ ] If it is an entirely new feature and not just a feature improvement: The requested feature makes more sense to be implemented in Alfred than in a plugin. (Please briefly outline why you think so!)

I will definitely implement this since more daily note capabilities are basically the number one request. But when I do it, I want to implement it properly and in a more comprehensive way than just changing the URI, which will take a bit of time.
I'll implement all the daily note feature requests and improvements some time soon all in one go.
Basically a duplicate of #22, therefore closed.


Update README.md

thank you @benjamingr :tada:

If you're here already - does this package support overlay? (backdrop)

not currently no :disappointed:

Ok, what about responsive screens?

not sure, I believe it should, the styles are all overridable as well.


Filters as a native dashboard (v2) construct

Making a list of ideas around how dashboard filters should work in dashboard v2.
Scope awareness. The filter affect only the charts and elements in its scope. Existing scopes should include:

global (above tab-line)
tab
section
more granular?

Maybe hovering the filter highlights the charts affected by the filter.
Per-filter configuration:

type: select - radio - ? (radio probably not critical / MVP)
multiple or single select
sort order (based on metric / reverse / alphabetical)
limit?
show background bar (histogram)
cascading-options (wether higher level filter should affect the values in the dropdown), maybe a whitelist blacklist approach?

Making it clear on charts that are filtered, maybe a filter icon that highlight which control are affecting the chart when hovered?
More input is welcomed.

Jinja templating filters, i.e. changes in the filter affect values in the template params. We currently have a few use cases where templates seem like a good solution for producing many related but still slightly different charts while using fewer data sources (currently working on a chart feature to enable overriding the datasource template params in the chart). This would probably need some sort of schema to be able to generate the filter, so probably not something for MVP, but potentially down the road.

Some additional ideas on this:

Any chance for Filtered MultiSelect with Selections like this:  http://insin.github.io/react-filtered-multiselect/.  This would be great when you have larger lists and can easily search on selected (right) and unselected (left).   Not sure if this is a different viz or can be incorporates to existing viz

Default Capabilities at filter level?  First/Last Value by whatever Sort Order (Metric, Alphabetical).

Would any of these be viable?

Has single select in Table view functioning as a “filter on” action been given any further thought? Similar to Tableau in some ways

@fordhamedu there's clearly a need for better constructs around visualizations being able to post filter actions to the dashboard (like the Table viz can currently do). Not sure how those should be scoped (should it affect the whole dashbaord? the section? the tab?)
Maybe really good dashboard-native filtering removes some of the need for that.

On-the-fly grouping. I often find that my filters affect how I want to group my charts. If, for instance I filter by region I might want to se a chart grouped by product, but if I then change my filter to product, I want to see that same chart grouped by region. Etc. So having a groupby element which can be made to affect specific charts would be very valuable.

the process of “select then deselect then select another” to isolate and explore the connected data in multiple charts within one dashboard can be counterintuitive to most users. Especially within longer tables it’s an easy oversight to forget the last deselect, and then confusing the data that’s displayed.  A optional single select and optional filter on would enable a user to easily switch between aggregate and isolated selections and passing variables through markdown, iframe, and any url Parmaters On a single Dashboard. That would be awesome

In addition to showing background bar (histogram), would it be helpful to include statistics (e.g. % count, raw count) for each value? This way the user can get an accurate measure which may not be apparent from histogram? Or maybe the stats show up when you hover over the histogram bar.

We have some work in progress that would enable context-aware filtering for multiple filter boxes in dashboard / explore view. I feel that could be useful here. Adding @emlittleworth

Hey everyone, as @JamshedRahman mentioned at Twitter we have work in progress for cascading (or context-aware) filtering.
Another project we have coming up that is relevant here is cross-filtering. We brought this up at the Superset meeting on 6/29. We haven't yet decided on design but are hoping it'd have similar functionality to this example: https://dc-js.github.io/dc.js/. For example, when you select "Loss" in the "Days by Gain/Loss" chart, the other charts filter using that value as well.

@emlittleworth curious whether you're thinking client-side cross filtering or more of a  "filter events emitted from within charts"?
The first one would require massive changes, I doubt whether it's actually reasonable or even possible to do this.
The second is totally doable, and the Table visualization can actually do this today if you turn on the feature.

Definitely filter events emitted from within charts. This seems reasonable since we already have a notion of dashboard filters through the filter box. This feature would enable other visualizations to trigger dashboard-wide filtering. Thanks, I'll have to look into the Table visualization.

Here's how it's done in the Table visualization:
https://github.com/apache/incubator-superset/blob/master/superset/assets/src/visualizations/table.js#L155-L159
It's more or less just a matter of hooking filter events up in other visualizations, though it's a bit more complicated than that. Beyond emitting the filtering event, it'd be nice to have visual components (tooltip, context menu, ...) that would make it clear what is about to happen when you click and present multiple options where necessary. While the table component knows about the dimensional context (we know one cell correspond to a single dimension value) it's easier there. A single bar in a bar chart may represent 2 dimension members and may have to emit 2 filters.

Oh yeah good point about multiple dimensions. And I agree about the visual components as well. Another thing to keep in mind there is how we should display charts that cannot be filtered because they don't contain the filter dimension.

Ideally the dashboard app should make it very clear which filters are active and which charts they affect.  Maybe hovering an active filter components would highlight the targets, or hovering a filtered chart would highlight the related "source" filters.

Yeah that sounds good. Can you elaborate your thinking on cascading filters? What do you mean by "maybe a whitelist blacklist approach"?

@mistercrunch
We would like to add a proposal for the native dashboard filter as outlined in the first post. We are looking for feedback and approval before implementing.
Dashboard changes

Global filters will be the focus of the MVP

Tab and section filters would work similarly but will not be included in the initial implementation. The initial focus will be to replace the existing Filter Box chart with a native, global dashboard filter

The filter component is drag & drop from the insert panel, similar to tabs

Global filters go above dashboard-level tabs and below the dashboard title (see images below for an example)
Tab filters go below tabs
Section filters go at the top of the section

New filters can be added when the dashboard is in "Edit Mode" via a button that appears after the list of filters

Individual filters are added based on datasource / column name
Clicking the New Filter button will open a modal with "Data Source" and "Column" options to select the filter column
If the column selected is a time column, the 'Since' / 'Until' filters will be added

Filter controls for the dashboard are initially collapsed and can be expanded / collapsed as needed (see images below for an example)
Additional options such as timegrain and instant filtering are added via the configuration cog

Chart changes

Filter box will be removed as a chart type
Filter boxes that are currently included in dashboards will need to be removed from the dashboard and options will be added as global filter options
All existing filter box charts are deleted (not sure what else can be done with them since they can't be added to dashboards anymore)

URL changes

The preselect_filters query parameter can still be used to fill in filters via a link. It is currently a map which includes the Filter Box ID. The format will need to change into a map of column name to arrays instead

Old format

{
    "414": {
        "column1": [
            "value1",
            "value2"
        ]
    },
    "12": {
        "column2": [
            "value3"
        ]
    }
}

New format

{
  "column1": [
      "value1",
       "value2"
  ],
  "column2": [
      "value3"
  ]
}

This change can be made backwards compatible by collecting the filters in the old format, ignoring the ID, and applying the filter values based on the column name

Dashboard mockups
Collapsed filters

Opened filters

New filter dialog

hi @jaylindquist i like your proposal.
Can we have a more generic time range filter, which is used for setting time range for charts in scope (global, single tab level or single section)? It doesn't associated with any datasource, but when apply this time filter to each chart, probably need some smart way to bind to the right column of different chart.

@graceguo-supercat Today superset has a "Time Column" for filters that it uses to manage which column to filter on.
I'm not sure how a generic time filter would work. For instance, a table of events that have a start_date column and end_date column. If a user wanted to filter on all events starting in January, they wouldn't want the filter to apply to the end_date column as well.
They would need to specify which column(s) the time range should apply to.

Deprecating filter_box may be tricky as you'll need a [perhaps complex] db migration script, and that may leave the layout of dashboards messed up (users would find an empty hole).
Personally I'm thinking we could just put the viz type on life support and add a "deprecated" stamp on the thumbnail png, or making it inaccessible from the viz type switcher modal. Eventually could encourage dashboard owners to remove those from their dashboards, maybe some alert when in edit mode.
I think the add/edit filter modal needs more options: whether it should be based on a metric, sorting specification, allow_multi_choices.

I collected following feature requests from open source community, and from Airbnb usage:

Filter component or filter_box from explore view? Given @mistercrunch comments above, I assume existed filter_box viz type will keep working as it, and will introduce new filter component lived inside dashboard. So there will be two types of filters working together.

Scoped filter

Filter should be visible (scroll up/down is ok, but not extra tab switch) when it is applicable to any charts.
Top level filters:
Filter is placed in dashboard without tab, or at top section of dashboard with row-level tabs. So that filters are always visible in the dashboard.
Top level filters will apply to all charts in the dashboard.
Tab level filters:
Tab level filters are placed inside a Tab component. As long as the tab component is visible, filters will apply to all charts in the same tab.

Easy UI for user to see which charts are affected by which filter, and easy add immune from the filter.

Easy UI to group multiple filters, and allow user define cascade filters.
Current filters are filter_box that generated from explore view, so each of filter_box (can have multiple dropdowns) contains one slice of constraint, whereas dashboard may have multiple filter_boxes to add many constrains. If this is the case, i see our users always update one filter_box in dashboard, apply it, wait all charts in dashboard finished loading, then update another filter_box, wait another round of loading...It is very frustrating in daily use.
So I am thinking dashboard should allow user group a few filter_boxes(and native filter components) together, in which user can update each filter but don't trigger dashboard level loading events. In the group user can also make cascade filters (where one filter react on other filters's selected values). And in the end user can apply all selected values altogether in 1 dashboard level load. This will greatly improve the dashboard filters usability.

After user update filter and trigger the dashboard level load, can we have UI indicator showing filter is applying or done? Some of our dashboard is crazy big so it's hard to scroll back and forward to check if every chart is ready  😓

Keep filter state in URL parameter [#5374]
If user applied filter in dashboard, can we update dashboard's url parameter (or anywhere as a state of history), like url for explore view? So that when user refresh dashboard, the previously applied filters are still be memorized.
Dashboard should not automatically save filter parameter unless user saved them as default_filter metadata.

These are all proposals. I would like to leave @xtinec who implements this feature to decide final list. Thank you!!

Is there somewhere to track the progress of these changes?

I apologize for the lack of updates on this. Our team hit a series of emergencies that took priority over the filter changes. We've only now been able to start the work.
Changes will be going into my forked at https://github.com/jaylindquist/incubator-superset/tree/feature/native-filter

Due to our changing priorities, we have been unable to complete the dashboard level filters feature. You can find our in progress work on my feature branch (https://github.com/jaylindquist/incubator-superset/tree/feature/native-filter) and I can create a PR if you are interested in keeping what we've been able to start.
Completed tasks:

Add a drag-and-drop filters container at the top of dashboards
Add filters to the filter container (filters are added, but configuration is hard coded)
Remove filters from container
Remove filters container from dashboard
Update Dashboard short links to create preselect_filters parameter without chart IDs. URL short links are now generated as { "column1": ["val1"], "column2": ["val2", "val3"] }
Update preselect_filters parameter to support filters without chart IDs while being backwards compatible. preselect_filters now supports the above format as well as the existing format { "chartId1": { "column1": ["val1"]}, "chartId2": { "column2": ["val2", "val3"]}}

The following shows adding filters to an existing dashboard:

There is still work to be done:

Creating a modal to add new filters
Manage date filters for each datasource
Global filter configuration (for example, instant filtering)
Saving selected filter options when the dashboard is saved

If you would like me to create a PR for this work, let me know. I apologize for not being able to complete the feature, but other tasks took priority for us.

Any update on Cascading filters?

Hello. Do you have any ETA about native filters?

Also curious about this.  Doesn't look like any work on Jay's branch since 2018.

=(

Piling on for the cascading filter logic (i.e. in a multiple-filter widget, only allow combinations that exist as a row in the filter datasource; and some precedence logic, like top-to-bottom).
You can achieve the above by creating each filter individually (and setting the precedence logic in the slice immunity configs), but then you lose the option of a single refresh button to prevent all the charts from refreshing when you're in the middle of updating filter selections.  So conversely to cascading logic, it would be good to have:

a "refresh" widget that could gate multiple filters and only publish them when the button is pressed
some visual queue on each of the filters that is awaiting a refresh (i.e. filters that have changed from their published value, and will be updated once the button is pushed

Lastly, a "refresh" button is also good aesthetically if you have a lot of filters, since you have freedom in placing them, vs. a single widget where they all have to be stacked vertically.

One more thing for filters, it would be great if I could specify 'value' and (optional) 'label' fields, so that I can use more informative names to display in the filter, and pass the more functional value back to a query, e.g.
Aggregation Filter:

label: "Agg by Sum", value: "SUM("
label: "Agg by Average", value: "AVG("

Would love this much needed feature.

The last commit on the branch mentionned by @mistercrunch is about one year old.
Should we consider this feature request dead? Are there alternative plans considered?

Do we have any plans on having cascading filters ? For example : In World Bank's data, if we choose  a region, only those countries (that comes in that region) are populated in the country filter

We still need this... I recently started using Superset. I loved the tool but filtering constraint is making it hard to sell it to my team who will be working on it.


Bug: grammatical errors

Describe the bug

Current: individual contributors' activity
Should be: individual contributor's activity

Current: users latest issue comments
Should be: user's latest issue comments

Steps to reproduce

Location: Second para of Tracking and Responding to Contributor Activity Levels
Location: Last para of Your Profile

Please assign me when the triage label will be removed


Change the way first contribution is handled in conjugate samplers to avoid Windows compiler warning

At the moment the conjugate samplers are written so they compile to the following C++
firstTime = 1;
for(i=1; i<= static_cast(dependents_dpois_nodeFunctions.size()); ++i) {
if(firstTime == 1) {
firstTime = 0;
contribution_shape = dependents_dpois_values[(i) - 1];
contribution_rate = dependents_dpois_coeff[(i) - 1];
} else {
contribution_shape = contribution_shape + dependents_dpois_values[(i) - 1];
contribution_rate = contribution_rate + dependents_dpois_coeff[(i) - 1];
}
}
This generates Windows compiler warnings that contribution_[shape | rate] may be uninitialized in the last 2 lines (since it can't follow the logic here).
Can we change it (around lines 592-623 of MCMC_conjugacy), maybe to something like this:
if(dependents_dpois_nodeFunctions.size() > 0) {
contribution_shape = dependents_dpois_values[0]; // of course [1] in R
contribution_rate = dependents_dpois_coeff[0];
if(dependents_dpois_nodeFunctions.size() > 1) {
for(i=2; i<= static_cast(dependents_dpois_nodeFunctions.size()); ++i) {
contribution_shape = contribution_shape + dependents_dpois_values[(i) - 1]; // of course [i] in R
contribution_rate = contribution_rate + dependents_dpois_coeff[(i) - 1];
}
}
}
We could also add an 'addTo' DSL function that would generate to += in C++.

I don't believe the solution proposed above would work, since the key point of this is that the "contribution" terms be initialized to 0 (or a zero-vector, or 0-array), then cumulatively sum the contributions from **any different dependent distributions which are present ** -- and in full generality, we don't know which dependent distributions have a non-zero number of terms, so we don't know when each "contribution" term will first be used.
I worked around this in a different manner.  I added logic to the conjugacy system to infer the dimensionality of each "contribution" term, then it initializes each such term to either 0, a 0-vector, or a 0-array, as appropriate.  Then code surrounding the dependent distributions is simplified, since it need only do a += operation (or the equivalent, since we don't support +=   ).  Future conjugacy cases could arise where this inference won't work, but it will stop and print a helpful error message.
Ran the conjugacy testing section of test-mcmc.R, and it appears to work.
Closing this issue, since the warnings hopefully should stop in Windows now.


Add debug logs to watchdog test

How to categorize this PR?

/area testing
/kind flake
What this PR does / why we need it:
Adds some logging to the watchdog test to help debugging the flake.
Which issue(s) this PR fixes:
Part of https://github.com/gardener/gardener/issues/5836
Special notes for your reviewer:
Release note:

NONE

Just to try this out:
/label tide/merge-method-merge

/lgtm


Guiding new users on settings change in settings UI

Follow up on #28463 on guiding how to change settings for new users.
We can go for several options:

Show notification box for new users with the same text ("DEFAULT SETTINGS: Place your settings in the file to the right to overwrite") as currently under search bar.
Make this text as a separate bar underneath search, with ability to close it with x button, as in peek widgets.

As soon as notification is closed, as a user I should not see this information any more (assumption is that I became educated on how to change settings)
I would personally prefer the second option, because top notifications are usually too annoying.

An information widget is shown when a settings editor is opened.


Refactor the codebase into multiple sub-packages

container: a dummy struct representing an option or an arg defintion
flow: contains the execution flow logic (after, before, action)
fsm: contains the Finite State Machine used to parse arguments according to a spec
lexer: tokenizes a spec string
parser: generates an FSM from a token stream
matcher: contains the various matchers (used as transitions in the FSM) (option, argument, ...)
values: contains the default flag.Value implementations supported by mow.cli

Changes Unknown when pulling 724e462a18af344dda2308f42c3bf7bf5c507693 on refact-internal-pkgs into ** on master**.

Changes Unknown when pulling be5320e2c66a680b56919029eed16b9587e84eb0 on refact-internal-pkgs into ** on master**.

Coverage increased (+7.2%) to 95.37% when pulling 7ebb9cf6796a4139812967af4b958eb00af88b94 on refact-internal-pkgs into 9b48959731c5f921a5875a58e6e11e33ac0a8e55 on master.

Coverage increased (+7.6%) to 95.784% when pulling 9585ec9b3e8fddb234ef16a09660fe720baebb65 on refact-internal-pkgs into 9b48959731c5f921a5875a58e6e11e33ac0a8e55 on master.

Coverage increased (+7.8%) to 95.992% when pulling 8bd9b1327eaea1e471752e93e0902f3716d00650 on refact-internal-pkgs into 9b48959731c5f921a5875a58e6e11e33ac0a8e55 on master.

Coverage increased (+7.8%) to 95.992% when pulling 167d6183b5b4a11f6c23ae9d4e34e82fbbf181f3 on refact-internal-pkgs into 9b48959731c5f921a5875a58e6e11e33ac0a8e55 on master.


feat: find right cargo for remote buffer

Fixes #14
Note that this only is available since emacs 27. Let me know if the compatibility of emacs < 27 matters, I can add a check.

@sunng87 thank you!

Thank you for the quick release!


Add message to audit log

See linked issue https://github.com/mia-care/node.js-mia-care-template/issues/23

@nicola88 Can the message potentialy contain user sensible data? If so, are we OK with this?

It should not contain sensitive information, if they are present there is little we can do except instructing developers to ensure data is processed appropriately (see the security section in the audit trail doc).


Has Cityscapes dataset been tested with LinkNet?

I'm trying to run the Cityscapes dataset with LinkNet against the LUA Torch version of this at LinkNet but I'm running into fatal runtime errors such as
torch.FloatTensor constructor received an invalid combination of arguments - got (float, float, int, int) but expected...

Has anyone tested the master branch code in this scenario?
If so, what was the command line for train.py?

I encountered the same problem, any solutions?

Any updates so far? Having the same issue.


ISE when doing SET on an invalid proprety

CREATE TYPE Lol { SET ha := "crash"; };
produces
ERROR: InternalServerError: schema class 'ObjectType' has no field 'ha'
  Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md

Same story with migrations;
The error does, tbh, make it pretty clear what the problem is, but we ought to produce a real error.

errors.InvalidDefinitionError should be good enough


feature: change video aspect ratio.

set video aspect ratio override
get current video aspect ratio override
clear current video aspect ratio override

I tested if this is possible via the AspectRatio widget but this did not work for me so i implemented this feature :).
-> MPV docs: https://mpv.io/manual/master/#options-video-aspect-override

If this is possible you are probably right. I will try when i have time. Thanks for your suggestion :)

See #76.


CI: pylint to ruff

Why was this merged and the comment marked as resolved?

Why was this merged and the comment marked as resolved?

@adeebshihadeh moving to +160 line to another PR because I think it will be cleaner
https://github.com/commaai/openpilot/pull/29279


[Memory Leak] ServerPlayer is leaked when a player dies

Describe the bug
When a player dies, InventoryListener.allListeners holds an instance of dead player
To Reproduce
Steps to reproduce the behavior:

Login
/kill @s
Use IDE or do memory dump to check alive objects and you will see at least 2 ServerPlayers

Expected behavior
Maybe use stopListening for dead player instance (grab from Clone event) and startListening for new player instance (BE CAREFUL WITH CLONE EVENT, THE NEW PLAYER INSTANCE WILL CHANGE THE ID AFTER THE EVENT, SO IF YOU STORE IN A HASHSET BEFORE THIS CHANGE IT WILL NEVER HAVE A HASHCODE AS SAME AS IN A LATER MOMENT, USE PlayerEvent.PlayerRespawnEvent TO GRAB THE NEW PLAYER INSTANCE WITH THE FINAL ID/HASH)
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Bit the bullet and figured out how ItemSubPredicates worked, and moved to those instead of having an InventoryListener


ci: Re-add CodeQL analysis GitHub workflow

Restored code quality changes made by #6402 and later reverted by #6418.

I think I'm missing some context on this PR and the description field is blank.
Can you explain a bit more (in docs or in the PR description) on the functions added here and what this delivers?

@aaronsteers It starts with https://github.com/meltano/meltano/pull/6402, wherein I added a CodeQL analysis workflow. This workflow comes recommended by GitHub. It scans our code for vulnerabilities, then uploads the results to https://github.com/meltano/meltano/security/code-scanning for the branch it scanned.
In the original PR it discovered some issues, so I attempted to resolve them. One of these fixes was that we didn't have subresource integrity checks. To fix this I found the appropriate hashes for the resources we were loading, and added the checks. Unfortunately I neglected to add the crossorigin="anonymous" attribute. This broke the search feature in the docs, and later somehow took down the whole site. It went unnoticed during review, and once the changes were merged in @tayloramurphy noticed, and began a Slack thread: https://meltano.slack.com/archives/C02JXFEC9T2/p1657739197021349
To resolve the outage, we merged in https://github.com/meltano/meltano/pull/6418, which reverted the changes.
This PR re-adds the changes, along with crossorigin="anonymous" set as needed to avoid a similar breakage.
To avoid similar problems in the future, we'll need to improve our UI testing. There is an old issue about this (https://github.com/meltano/meltano/issues/501), but I don't think it's applicable anymore. A related (open) issue is

https://github.com/meltano/meltano/issues/3212.

@WillDaSilva thanks for jumping in!
That's exactly right.

Merging, since search functionality works as expected...


Received Data Error or Not Correct

Import
import 'package:roslibdart/roslibdart.dart' as roslib;
Topic

msg_type: type:  "std_msgs/UInt8MultiArray",

backpackTopic = roslib.Topic(
          ros: ros,
          name: '/topic/button/backpack',
          type: "std_msgs/UInt8MultiArray",
          reconnectOnClose: true,
          queueLength: 10,
          queueSize: 10);

Error
App Side
I/flutter (12948): {"layout":{"dim":[{"label":"btn_lt_0","size":1,"stride":0},{"label":"btn_lt_1","size":1,"stride":0},{"label":"btn_rt_0","size":1,"stride":0},
{"label":"btn_rt_1","size":1,"stride":0}],"data_offset":0},
"data":"AQAAAA=="}

Flutter Error
 [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'String' is not a subtype of type 'List<dynamic>?' in type cast

host machine

topic echo

layout:
  dim:
  - label: btn_lt_0
    size: 1
    stride: 0
  - label: btn_lt_1
    size: 1
    stride: 0
  - label: btn_rt_0
    size: 1
    stride: 0
  - label: btn_rt_1
    size: 1
    stride: 0
  data_offset: 0
data:
- 1
- 0
- 0
- 0
---

I would use string as type rather than some complicated type like uintmultiarray. Then transform that string, which is in json format , back to whatever structure you need .

@tmtong
I changed uint8multiarray to int8multiarray
It's works fine
Thanks