CC0013 Check for applicability as argument

(This is a tricky one)
Consider this code:
if (condition)
{
    return Method(value1);
}
else
{
    return Method(value2);
}

Instead of rewriting as:
return condition ? Method(value1) : Method(value2);

Rewrite as:
return Method(condition ? value1 : value2);

@paulomorgado It's interesting, but complex. What do you think about @code-cracker/owners ?

I like it, but this is going to vnext. :)

I would like to implement this. I started to prototype this to see if it could be easily integrated.
The proposed refactoring is already working in the prototype.
I came across some issues I would like to discuss.

Is it okay to start working on this?
I created branch from the master branch of my fork. Should I use vnext instead?
How should methods with multiple arguments be handled:

// Option1: Don't support multiple arguments. Refactor as before
    Method(1,1)
else
    Method(1,2)
refactor: cond?Method(1,1): Method(1,2)

// Option2: Allow multiple arguments, if both method calls use the same
// overload and differ only in one argument.
refactor: Method(1,cond?1:2)

//Option3: Allow multiple arguments and replace every argument that differs.
//This is bad for multiple reasons, but most import it is a breaking change
//because the condition is evaluated multiple times.
    Method(1,1)
else
    Method(2,2)
refactor: Method(cond?1:2,cond?1:2)
// I currently implemented option 2.

What else should be supported (argument 1 is the argument to be replaced
with the conditional expression):

Constructor: new A(1) else new A(2) refactor: new A(cond?1:2)
Property access before method call:

this.Method(1)
this.Service.Method(1)

Method call between property access:

this.GetService(1).IsOnline
this.GetService().GetUser(1).Name

Indexer: arr[0] else  arr[1] refactor: arr[cond?0:1]

What should be tested

Instance method (done)
Instance method with several overloads (missing)
Static methods (missing)
Method call to a dynamic object (missing)
Local functions (C# 7, not possible yet, shouldn't be needed)
Calls to anonymous functions/Lambda, e.g. Action<int> action=arg=>{}; if (cond) action(1); else action(2); (shouldn't be needed)

Sure, send a PR!


Text only button

I'm basically trying to do this, which currently works with a node-red integration, it would make more sense to get that from HA directly :

Closest I can get is this, but I'd like to remove the icon :

Maybe I missed something ?

Hmm, i think this is not possible (yet). I will add a "hide icon" option in the button configuration.

Ok, just a quick update. This is the closest, I can get:

So just adding a "hide icon" should be enough to get exactly, what you need.

Exactly, the fact it displays the default icon can actually be a problem.


typo in append_analysis_explenation_text

It seems that there is a typo in the function name.
append_analysis_explenation_text - > append_analysis_explanation_text

Thanks @OlegBEZb, good catch! are you interested in creating a pull request with the change?


Passing functions in clientOptions

Hi. Is it possible to pass functions in clientOptions, like render, createFilter and create in the Email Contacts Selectize example?
Edit: Answering my own question, the solution is to use yii\web\JsExpression, i.e.
'render' => [
  'item' => new JsExpression("
    function(item, escape) {
      return '<div>' +item.name+'</div>';
   }")
]

Great @tapaheh


Connection failures seen with RHEL-9 Gateway nodes

What happened:
On RHEL-9/CoreOS 413.92.xx nodes when OCP is installed with OpenShiftSDN, it was seen that connectivity between non-Gateway to non-Gateway nodes is broken. Upon debugging the issue, the problem turns out to be wrong configuration related to reverse path filtering (i.e., /proc/sys/net/ipv4/conf/vx-submariner/rp_filter) for vx-submariner interface on the Gateway nodes.
Surprisingly, when the route-agent, after creating the vx-submariner, configures the LooseMode Reverse Path filtering on the iface, there is no error from from the netlink library, but the LooseMode (aka "2") configuration is not applied on the interface.
2023-03-31T18:43:27.319Z DBG ..oxy/gw_transition.go:47 KubeProxy            The current node has become a Gateway
2023-03-31T18:43:27.319Z ERR ..oxy/routes_iface.go:159 KubeProxy   Error retrieving link by name "vx-submariner" error="Link not found"
2023-03-31T18:43:27.319Z INF ..oxy/gw_transition.go:55 KubeProxy     Creating the vxlan interface: vx-submariner on the gateway node
2023-03-31T18:43:27.320Z DBG ../kubeproxy/vxlan.go:279 KubeProxy  Successfully configured reverse path filter to loose mode on "vx-submariner"
2023-03-31T18:43:27.392Z INF ..oller/controller.go:150 EventController  Event controller started

Note: This issue is applicable only when using OpenShiftSDN and not with OVN-K CNI.
What you expected to happen:
non-Gateway to non-Gateway communication should work fine.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
A quick work-around is to restart the route-agent pods using the following command and this will fix the issue.
kubectl delete pod -n submariner-operator -l app=submariner-routeagent

Environment:
Submariner version 0.15.0-m3,
Kubernetes Server version: v1.26.2+06e8c46,
OCP 4.13.0-rc0
RHEL-9/CentOS Stream CoreOS 413.92.202303190222-0

An easy way to reproduce the issue is to run the following commands on a RHEL-9 node:
ip link add vxlan-sm type vxlan id 112 dev eth0 dstport 4789
ip link set dev vxlan-sm up
cat /proc/sys/net/ipv4/conf/vxlan-sm/rp_filter
echo 2 > /proc/sys/net/ipv4/conf/vxlan-sm/rp_filter
ip addr add <IP_ADDRESS>/24 dev vxlan-sm
cat /proc/sys/net/ipv4/conf/vxlan-sm/rp_filter

The output of /proc/sys/net/ipv4/conf/vxlan-sm/rp_filter would be 1, in this case.
Adding a small delay of 100ms after creating the interface fixes the issue:
ip link add vxlan-sm type vxlan id 112 dev eth0 dstport 4789
ip link set dev vxlan-sm up
sleep 0.1
cat /proc/sys/net/ipv4/conf/vxlan-sm/rp_filter
echo 2 > /proc/sys/net/ipv4/conf/vxlan-sm/rp_filter
ip addr add <IP_ADDRESS>/24 dev vxlan-sm
cat /proc/sys/net/ipv4/conf/vxlan-sm/rp_filter

The output of /proc/sys/net/ipv4/conf/vxlan-sm/rp_filter would be 2, in this case.

The default is set to 1 in /usr/lib/sysctl.d/50-redhat.conf. Since gateway nodes are supposed to be pretty much dedicated to the tunnel, I wonder if it would be OK set set the default to 2 — not by changing the configuration file on the host, but by writing 2 to the net.ipv4.conf.default.rp_filter sysctl. That way new interfaces would have rp_filter set to 2 by default.

But it would affect all the interfaces created on the Host, including the interfaces created by the CNI/other-applications which may not be desirable.

But it would affect all the interfaces created on the Host, including the interfaces created by the CNI/other-applications which may not be desirable.

Right, I was thinking that by the time the gateway agent started, the host’s interfaces should have settled down, but that might well not be the case.


Unclear input data structure of layoutreader

Describe
Model I am using (layoutreader): How should I prepare my input data to use script decode_seq2seq.py and the pretrained model? It's not clearly stated anywhere and please help.

@ManuelFay Thank you for the great job! As for your question, we run LayoutReader on ReadingBank dataset and we filter out the pages with more than 511 tokens. For other datasets, I agree the sliding window is a feasible solution.

@SimeonZhang Hi, it is easy to run LayoutReader in text only settings by using the corresponding model_name and model_name_or_path in args. You can also run the layout only settings with the layoutlm_only_layout flag in args. As for different shuffle rates, you can try the sentence_shuffle_rate in args.

hi，when I change input_folder to my data and make layoutlm_only_layout ,the progress still shows the original data?
Can you give me some suggestions? Thanks

@HYPJUDY  @ManuelFay  Thank you for sharing your code. I was wondering what's your approach with sorting in top-down / left-right? do you look at bottom and left of bboxes? do you know if reading bank data is sorted in this manner?

From the LayoutReader paper it is mentionned it is best to do so. It's then just a matter of sorting the list with a double key in Python, take any point from the boxes as long as it's consistent.
Note that some libraries (pdfplumber with textflow, pytesseract) include a text orderer usually better than the top-down-left-right heuristic that might be easier to use !
Cheers !

From the LayoutReader paper it is mentionned it is best to do so. It's then just a matter of sorting the list with a double key in Python, take any point from the boxes as long as it's consistent. Note that some libraries (pdfplumber with textflow, pytesseract) include a text orderer usually better than the top-down-left-right heuristic that might be easier to use ! Cheers !

Thanks!

From the LayoutReader paper it is mentionned it is best to do so. It's then just a matter of sorting the list with a double key in Python, take any point from the boxes as long as it's consistent. Note that some libraries (pdfplumber with textflow, pytesseract) include a text orderer usually better than the top-down-left-right heuristic that might be easier to use ! Cheers !

I use bboxes = sorted(bboxes, lambda x:[x[0], x[1]]) to get left-right-top-down order and adjust texts accordingly, but I find the result is much worse than the order from Tesseract, which confuses me a lot, can you give me some suggestions about it, thanks

Hi, maybe there is something wrong in function load_and_cache_line_order_examples as well?
It tries to load a single file only. However, it is expected to load several files from a folder, as in function load_and_cache_layoutlm_examples.

Actually, the load_and_cache_line_order_examples is deprecated. You can reproduce a similar function if you need to conduct such experiments.

I have tried loading the model (for evaluation / decode) as instructed above, but I was not able to bypass the following input data-related error. I limited the inputs to just the first data chunk (m1) from the test set.
10/31/2022 10:51:48 - INFO - s2s_ft.modeling_decoding -   Weights of LayoutlmForSeq2SeqDecoder not initialized from pretrained model: ['bert.pooler.dense.weight', 'bert.pooler.dense.bias', 'cls.seq_relationship.weight', 'cls.seq_relationship.bias']
10/31/2022 10:51:48 - INFO - s2s_ft.modeling_decoding -   Weights from pretrained model not used in LayoutlmForSeq2SeqDecoder: ['crit_mask_lm_smoothed.one_hot']
10/31/2022 10:51:49 - INFO - s2s_ft.utils -   Creating features from dataset at data/exp-ocr-formatting/layout_reader_data/test
10/31/2022 10:51:49 - INFO - s2s_ft.utils -   Start loading data/exp-ocr-formatting/layout_reader_data/test/dataset-test-s2s-text-m1.json
100%|███████████████████████████████████████| 7722/7722 [02:44<00:00, 47.04it/s]
  0%|                                                  | 0/1931 [00:00<?, ?it/s]10/31/2022 10:54:41 - INFO - s2s_ft.s2s_loader -   Input src = [CLS] ( a ) ( b ) ( c ) ( d ) ( e ) ( f ) ( g ) ( h ) 08 ##00 - 09 ##10 history of ghana armed forces l ah g ##h ##q ( ed ##n ) 09 ##15 - 104 ##0 review sv ##c writing 1 , 2 & 3 d sr sd ##s wed 104 ##5 - 111 ##5 coffee break - mess 12 sep 18 112 ##0 - 124 ##0 review sv ##c writing 1 , 2 & 3 d sr sd ##s 124 ##5 - 133 ##0 library orientation - library librarian 133 ##5 - 145 ##5 lunch 1500 - 1800 research methods md ##ip ah dr n ku ##rant ##in md ##ip 501 501 05 ##30 - 06 ##30 physical training pt pt 48 eng ##r pt ##is 08 ##30 - 09 ##55 review sv ##c writing 4 - d reg ##t sd ##s th ##u 1000 - 104 ##0 communication : definition , types and barriers to - l sr u of g 13 sep 18 communication ah coffee break 104 ##5 - 111 ##5 communication : definition , types and barriers to 112 ##0 - 1200 - l u of g communication ( con ##t ) ah speaking and listening skills in communication 120 ##5 - 124 ##5 l u of g ah effective speaking : strategies in communication 125 ##0 - 134 ##0 l u of g ah lunch 134 ##5 - 143 ##0 - - research methods 1500 - 1800 md ##ip mess dr n ku ##rant ##in md ##ip ah 501 501 08 ##00 - 08 ##35 p ah dc ##a cultural awareness fr ##i 08 ##30 - 104 ##0 d sr ds os ##w introduction and review os ##w 1 & 2 14 sep 18 104 ##5 - 111 ##5 coffee break issue of cs ##t 1 112 ##0 - 134 ##0 effective writing ( techniques for clarity in - l ah u of g sentence , writing balance prose , techniques for essay writing ) lunch 1400 - 145 ##5 md ##ip md ##ip research methods 1500 - 1800 ah dr n ku ##rant ##in 501 501 sat 15 sep 09 ##00 - 1500 cultural orientation acc ##ra acc ##ra dc ##a – for [SEP] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD] [PAD]
  0%|                                                  | 0/1931 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "data/exp-ocr-formatting/layout_reader/unilm/layoutreader/decode_seq2seq.py", line 345, in <module>
    main()
  File "data/exp-ocr-formatting/layout_reader/unilm/layoutreader/decode_seq2seq.py", line 271, in main
    instances.append(proc(instance))
  File "/Users/vprecup/Code/ml-sds-notebooks/notebooks/data/exp-ocr-formatting/layout_reader/unilm/layoutreader/s2s_ft/s2s_loader.py", line 162, in __call__
    input_mask[second_st:second_end, second_st:second_end].copy_(
RuntimeError: The size of tensor a (0) must match the size of tensor b (511) at non-singleton dimension 1

Hi @ManuelFay thanks for sharing the code, I tried and works really well! , one question, do you have any suggestions on how to optimize the inference time, I notice it took like 7 seconds for a single doc.

Hi @ManuelFay thanks for sharing the code, I tried and works really well!, one question, do you have any suggestions on how to optimize the inference time, I notice it takes like 7 seconds for a single doc.

It is really long... The authors recommend a few things in the repo (cuda libs to go faster and do ops in a quantized way). Apart from that, simplest is probably to use heuristics to split the page into "safe" subpages and then reconstruct them one at a time since speed is square proportional to sequence length in transformers. It does kind of lose most of it's purpose though...
Maybe the authors are working on a more efficient model or have tips

@ManuelFay this code should definitely be added to the repo! I almost gave up trying to use this model lol. Thanks for the help.

Thank you for the code @ManuelFay ! Unfortunately, the results are not great with tesseract as input. At least I could test it though :)

This may be a naive question but are the layout-only results reported in the paper obtained by running inference with the model trained on layout+text but without any token embeddings or is it a different model trained on layout-only features? I thought it was the latter but the above posts make me think it might be the former.
Also, based on what I'm seeing should we only be using the --layoutlm_only_layout but not --layout_only_dataset? If the latter is used then it forces the use of the deprecated load_and_cache_line_order_examples. However, if we don't specify --layout_only_dataset then it loads all the text-based data. Is this the right thing to do?

Hi @Jesteinbe, sorry for the confusion. Let me specify the meaning of each argument.
In our paper, we have two sets of experiments: 1) the token-level reading order (Table 2, 3, 4); 2) 2) the line-level reading order (Table 5, 6).
In the first setting (token level), we have two changes to the standard setting: the shuffle rate and w/ or w/o layout. I assume the shuffle rate is easy to understand from the code. As for the "w/ or w/o layout", it is realized by --layoutlm_only_layout (standing for: the layoutlm model is used but only layout features are considered). This argument will remove the word embeddings in the model so the model can only learn from the layout information. (See Line 203 in s2s_ft/modeling.py).
In the second setting (line level), the text lines are extracted by the OCR engines. Since each bounding box now corresponds to a line instead of a token, it is not straightforward to model it in the standard setting where the bounding box and word are matched to each other. So our solution is that we use placeholders as text input for each text line (see Line 370 in s2s_ft/utils.py). This is triggered by --layout_only_dataset standing for a dataset that only has layout features.
I think it is not hard to tell the difference between load_and_cache_line_order_examples and load_and_cache_layoutlm_examples from the code. And these two functions can also be used in other cases depending on the exact using scenarios.
If you have any other questions, please let us know :)

Thanks @zlwang-cs! I'll play around with things a bit more and let you know if I have any other questions.


adjust dual energy 'eta' parameter

Use a slightly larger eta parameter to determine when to switch between the conservative energy update and the non-conservative internal energy update. This sets eta = 1e-3, consistent with Schneider et al. (2017).
The CFL number for the HydroHighMach test problem (from Ryu et al. 1993) has been increased, since it is now stable up to CFL ~ 0.45.

/azp run

/azp run


Adding flowPosition support to dataflow. Upgraded HPA to autoscaling/v2

Q
A

Bug fix?
no

New feature?
no

API breaks?
no

Deprecations?
no

Related tickets

License
Apache 2.0

What's in this PR?

autoscaling/v2 has now been released. Migrated the helm template to deploy v2 instead of v2beta2
NiFiKop's NiFiDataflow CRD supports flowPosition. Added support for this in helm
Upped version of chart to v1.1.0

Why?

To support flowPosition via helm
Additional context

Checklist

[x] Implementation tested
[x] Error handling code meets the guideline
[x] Logging code meets the guideline
[x] User guide and development docs updated (if needed)
[x] Append changelog with changes

LGTM


[OSCI] Add New Author shashwat

Description
Added New author Shashwat
Issues Resolved
N/A
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

@AwesomeSauce42 please address Josh's comments and we should be good to go!

@AwesomeSauce42 please address Josh's comments and we should be good to go!

Hi sir, I've made the changes mentioned by sir Josh. Please review!

@joshuarrrr could you confirm the changes? Thanks!


How can i copy a slide for a new slide

I want to read slide from a ppt，copy to a new PPT，and keep the anim
Then i wirte code:
    pre = Presentation('test.pptx')
    presentation = Presentation('1.pptx')
    pre.slides.add_slide(presentation.slides[14].slide_layout)
    pre.save('test.pptx')

when i run the code：
The console print：

when i open the test.pptx，happen this：

How can fix it？If you know，please tell me，ths~

python-pptx does not support cross-presentation operations like copying a slide from one presentation to another presentation or using one presentation's slide layout to form a slide in another presentation.

Can i copy a slide from a presentation and add it to the same presentation

Hi, when feature will be available please ? How much to invest to make it ?


create Helm chart

Summary of changes
https://github.com/crate/cloud/issues/614
Checklist

[ ] Relevant changes are reflected in CHANGES.rst
[ ] Added or changed code is covered by tests
[ ] Documentation has been updated if necessary
[ ] Changed code does not contain any breaking changes (or this is a major version change)

LGTM, maybe consider adding a NOTES.txt? https://helm.sh/docs/chart_template_guide/notes_files/


Migrations on fresh instance broken

version: '3.6'
services:
  postgres:
    image: postgres:14
    restart: always
    volumes:
      - ./docker/data/db:/var/lib/postgresql/data
      - ./docker/initdb.d:/docker-entrypoint-initdb.d:ro
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-secretpgpassword}
      POSTGRES_DB: postgres
    ports:
      - '5432:5432'
  graphql-engine:
    image: hasura/graphql-engine:v2.7.0
    depends_on:
      - postgres
    restart: always
    environment:
      HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-secretpgpassword}@postgres:5432/postgres
      HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
      HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
      HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
      HASURA_GRAPHQL_LOG_LEVEL: debug
      HASURA_GRAPHQL_ENABLE_CONSOLE: 'true'
    ports:
      - '8080:8080'
  hasura-auth:
    image: nhost/hasura-auth:latest
    depends_on:
      - postgres
      - graphql-engine
    env_file:
      - .env
    environment:
      HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-secretpgpassword}@postgres:5432/postgres
      HASURA_GRAPHQL_GRAPHQL_URL: http://graphql-engine:8080/v1/graphql
      AUTH_SMTP_HOST: mailhog
      AUTH_SMTP_PORT: 1025
    ports:
      - '4000:4000'
    volumes:
      - ./email-templates:/app/email-templates
  mailhog:
    image: mailhog/mailhog
    environment:
      SMTP_HOST: mailhog
      SMTP_PORT: 1025
      SMTP_PASS: ${AUTH_SMTP_PASS}
      SMTP_USER: ${AUTH_SMTP_USER}
      SMTP_SECURE: '${AUTH_SMTP_SECURE}'
      SMTP_SENDER: ${AUTH_SMTP_SENDER}
    ports:
      - 1025:1025 # smtp server
      - 8025:8025 # web ui
    volumes:
      - ./docker/data/mailhog:/maildir

Taken from here including .env file, NOTHING was changed.
output from docker:
><EMAIL_ADDRESS>start /app

> node ./dist/start.js

{"level":30,"time":1654105997406,"pid":19,"hostname":"1e7e70946518","msg":"Log level: info"}

{"level":30,"time":1654105998252,"pid":19,"hostname":"1e7e70946518","msg":"Waiting for Hasura to be ready..."}

{"level":30,"time":1654105998263,"pid":19,"hostname":"1e7e70946518","msg":"Hasura is ready"}

{"level":30,"time":1654105998263,"pid":19,"hostname":"1e7e70946518","msg":"Applying migrations..."}

(node:19) UnhandledPromiseRejectionWarning: Error: Migration failed. Reason: An error occurred running 'create-migrations-table'. Rolled back this migration. No further migrations were run. Reason: schema "auth" does not exist

    at applyMigrations (/app/dist/migrations.js:62:19)

    at processTicksAndRejections (internal/process/task_queues.js:95:5)

    at async start (/app/dist/server.js:43:5)

(Use `node --trace-warnings ...` to show where the warning was created)

(node:19) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

(node:19) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Is there something in your docker/initdb.d local folder? There should be an script that creates the auth schema:
https://github.com/nhost/hasura-auth/blob/main/docker/initdb.d/0001-create-schema.sql

interesting, removed whole folder, cleaned up docker, did git clone again chmod 777 and it worked now, i guess something got messed up when doing git clone?

That is weird indeed, happy you found a solution. I cannot reproduce on my end.
Closing for now unless the problem occurs again


Allow limiting a package to a list of scopes.

Only consider commits from those scopes or no scope for those packages. No scope = all scopes.

It won't make sense to generate empty versions now—if only one package has scoped changes, only it should be updated. This could be done without breaking by only applying this rule when scopes are in effect, but I think that would be too confusing.


Readme Cleanup / CI tests added / License

Added tests to the build process along with additionally running the builds on mac/windows

The build is failing because there is no local factomd node, options are to either setup a local node in the travis script or have the tests call the open-node. Will still be requiring a local walletd to be running.


model error

ImportError: No module named speech

when I exec "sudo make", it  tells me  "ImportError: No module named torch", it works good yesterday,
what happend? @awni

If you change the name of the repository from speech-master to speech it should solve the import speech error.


Adding additional disposable domains seen in the wild

The domains addressed in this PR were submitted as registration email addresses on a site with which I work.  The commit messages for each reference the source, for validation that they are disposable.
Where variants of the domain already existed (e.g., yopmail, guerrillamail) I added the new ones to the files where the existing ones were listed though I'm not sure those are really accurate.  For example, guerrillamail is listed as time bound when to my read it's really a trash domain.

@ba66e77 thanks for your contribution.  If you find an inaccuracies in the place domains are filed, please submit a pull request with a reference to the source to confirm the change.  Thanks again.


Is this one documented: f7 52 00 6e 64 03 00 0a 0f 00 00 00 00 00 f0

Messing around with my G1XFour in editor mode i've found that manually changing the AUTOSAVE feature (with the knobs) the pedal sends:
f7 52 00 6e 64 03 00 0a 0f 00 00 00 00 00 f0 or f7 52 00 6e 64 03 00 0a 0f 01 00 00 00 00 f0
I guess the 9th byte sets it on or off

hi @colatino - I am pretty sure @mungewell posted that on his page - but I cannot find it. Thanks for sharing.
My guess is you got the f7 and f0 round the wrong way?
If you can confirm then I can add it - or if you like I can give you permission to edit the wiki (assuming I can work out how)
BTW I merged this one from "issue" to the Wiki for the modern pedals (B1/G1/G5n etc)
f0 52 00 6e 64 03 00 0a 01 PP 00 00 00 00 f7 that displays the window at FX PP + 1.

Yes, i did switch f0/f7 by mistake.

I'm finishing a new version of my controller pedal.
This time I'm finally using a microcontroller instead of the Pi Zero so the cost will be greatly reduced, it is written in c++ (Arduino style) instead of python and in addition to toggling effects off/on, has tap-tempo for delays and global BPM (tap-bpm?).
Still have a lot of tests to do but I'm expecting to make the repo publicly available by next weekend.

I've just uploaded a video showing the taptempo functionality added to the G1XFour

@Colatino Nice work on the video and your project!


Installed Networkx 2.7.1 for first Outreachy task

Completed the first task for Outreachy

Set up Local Development Environment for Networkx

This is great! Thanks @peacelovingng


wip

Thank you for your contribution to the Graph Data Science Client project.

Before submitting this PR, please read Contributing to the Neo4j Ecosystem.
Make sure:

[ ] You signed the Neo4j CLA (Contributor License Agreement) so that we are allowed to ship your code in our library
[ ] Your contribution is covered by tests

superseded by https://github.com/neo4j/graph-data-science-client/pull/781


Stop prefering 32-bit for vstest.console

Description
vstest.console should stop prefering 32-bit, and instead run as 64-bit.

Wait with merging this until we agree upon it in the internal ticket where I tagged you :)

The CPP tests are fixed by running the correct version of the test in process.
The CUIT tests are still ignored.


xGov-100 - GPU-based vanity address generator for Algorand

Please have a look at the proposal document. Any related questions and discussions are welcome here.

What is the differentiating factor when compared to
https://algovanity.com/

What is the differentiating factor when compared to https://algovanity.com/

It's the performance. AlgoVanity is ~500 addrs/s on my i7-4790K and the GPU tool is ~290000 addrs/s on my good old GTX 950.

Proposer, please post your algorand forum discussion thread link here. Thank you.

If you get funded for this it would be neat if it can be hooked into the algokit task vanity-address command.

If you get funded for this it would be neat if it can be hooked into the algokit task vanity-address command.

That's an interesting idea and I see no problem with anyone getting it integrated into the algokit. The generator will most likely come as a ready to use importable Python module too, not just a command line tool.

@nonfungibleab my email is<EMAIL_ADDRESS>

Thank you!
On Tue, Mar 12, 2024 at 9:58 PM Marcin Zawiejski @.***>
wrote:

@nonfungibleab https://github.com/nonfungibleab my email is
@.***
—
Reply to this email directly, view it on GitHub
https://github.com/algorandfoundation/xGov/pull/100#issuecomment-1991367183,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYHZUMMCPT4CFOFZ7XVWH2LYX3NWPAVCNFSM6AAAAABAC4FHJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGM3DOMJYGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

The project has been delivered and the source code is available in the repository below:
https://github.com/dragmz/pyagg
I'd like to invite the community to give it a try and leave any comments / bug reports etc.
Additionally to what's been funded here with xGov, I'm also publishing a Rust port of the utility at:
https://github.com/dragmz/rsagg
The Rust port performs much better on high end GPUs like RTX.

Ciao Marcin, xGov-100 deliverables review has concluded and is approved to
proceed for payment.
I'll process the payment request for 47,474 Algo within the next couple of
days and let you know of the estimate pay date.
Thanks for participating in the xGov pilot and for your patience with the
lengthy process.
Best, Adri
On Sun, Aug 4, 2024 at 7:32 PM Marcin Zawiejski @.***>
wrote:

The project has been delivered and the source code is available in the
repository below:
https://github.com/dragmz/pyagg
I'd like to invite the community to give it a try and leave any comments /
bug reports etc.
Additionally to what's been funded here with xGov, I'm also publishing a
Rust port of the utility at:
https://github.com/dragmz/rsagg
The Rust port performs much better on high end GPUs like RTX.
—
Reply to this email directly, view it on GitHub
https://github.com/algorandfoundation/xGov/pull/100#issuecomment-2267462048,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYHZUMLUGJBGJMDXZMEAUR3ZPXYMTAVCNFSM6AAAAABAC4FHJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGQ3DEMBUHA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Add more document publish related events

Add events for when publisher is disposed with pending actions, when documents are submitted for publishing and when exceptions are thrown by action update event handlers

cc: @tg-msft


Remove version: CentStudio.CentBrowser version 5.1.1130.128

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://static.centbrowser.com/win_stable/5.1.1130.128/centbrowser_5.1.1130.128.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 911)


Migrate POC code we want to keep

Migrate the POC code we want to keep from app-lib

See commits on main in https://github.com/Altinn/altinn-k8s-operator


Move AppSourceCop.json into .codeAnalysis folder

Is your feature request related to a problem? Please describe.
The AppSourceCop.json file currently lives in the root directory of the application.
This is messy and makes it trickier to organize and locate.
Being in a sub-folder also lends itself better to centralized settings, i.e. sub-modules.
Describe the solution you'd like
The AppSourceCop.json file should live under the .codeAnalysis folder, as it's directly related to code analysis.
Alternatives?

Have the AppSourceCop look in multiple locations for the file?
Merge into another settings file, i.e. ruleset.json?

Closing this issue as by-design as we do not have plans going in this direction. In the last months, we have introduced the AppSourceCop.json property baselinePackageCachePath which allows to clean up projects by separating baselines for the AppSourceCop from the extension dependencies.
If you would like to have a .codeAnalysis folder introduced, please log an idea at https://aka.ms/BusinessCentralideas, or vote up the idea if its already there. We're constantly monitoring top Ideas and will consider them for a future release.


Online-Text-Analyzer

Describe the project
This is a web app that helps the user to manipulate text according to their need, it provides the functionalities like:
Removing extra spaces or extra lines from the text.
Convert uppercase to lowercase and vice-versa.
Extract E-mails from the text.
Count the number of words and characters in the text, etc.
This web app will be developed using ReactJS, which also provides a theme-switching feature(Light-mode and Dark-mode).
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[ ✔] New Project

@zugzwang03 @TusharKesarwani I accidentally deleted the old issue I request to please assign me this issue again I have completed the project just need to create the pull request now.


Features: Does Wagtail come with User Management?

OK, I will not ask about every little feature here, but this is a BIG one and I can not find one single word about this in the Wagtail docs, what seems like a major omission, aka documentation bug.
Does Wagtail provide any kind of user management features? Like a configurable user registration (confirm by email / confirm by admin), password restore / change, user import / export, token handling for the API / rate limiting etc, etc. - all the things a modern CMS delivers usually? I know Django must be quite powerful, but I am not asking about LDAP, SAML, OAuth or Kerberos, these would be very important to have of course, but I am asking just for the most basic kind of user management one could imagine (like e.g. Wordpress out-of-box experience).
User management is a very basic feature set of any CMS, also it is very good to not have to invent security related wheels again, one of the most important aspects of open source, so I wonder if that important stuff is not here?
If this is all "do-it-yourself" - exists some mature extension / Django app that handles these features already? And, BTW, if it exists, why is it not part of Wagtail?
Thanks!

Hey @supersexy, please use Wagtail’s support channels for questions like this. The issue tracker is only for bug reports and feature requests.

This is a documentation bug and you should take it serious, not close it.

@supersexy I think lots of people would agree that there is a lot to improve about the Wagtail’s documentation, but your original issue is worded like a support request in my opinion, not a bug report.
If you do want to flag issues with the documentation that’s very much appreciated. In that case though it would be helpful if you were more specific about the problems you’ve encountered (for example what keywords you searched, in what parts of the docs you were expecting information to be there that wasn’t there, what you found that sounds related but doesn’t go as far as you were expecting).
But again this is unlikely to get your questions answered (unless you’re ready to wait for someone to make a PR with the updated documentation), so if you do want some help figuring out what Wagtail offers I would suggest looking at our support channels instead of the issue tracker.


Flexible query parser

/^regular expression$/
user:hogelog
repo:hogelog/tokite title:"foo bar"
...

Do not support OR query at first.

Drop regular expression query feature.


Support passing dpkg options

Support passing dpkg::options, as mentioned in documentation.
The setting will be applied globally, there's no way to pass the option to unattended upgrades only :disappointed:

The setting will be applied globally, there's no way to pass the option to unattended upgrades only 😞

That looks like a good reason to do this in your apt profile and not in your unattended_upgrade profile.

@smortex You're right, it might be confusing. There's an open issue for supporting independent configuration file.


Add exceptions for OpenShift Virtualisation

@dominikholler Can you provide a link to the dockefiles?

@dominikholler Can you provide a link to the dockerfiles?

https://catalog.redhat.com/software/containers/container-native-virtualization/virt-cdi-importer-rhel9/633ffae45e9aa29cb935ca72?architecture=amd64&image=6601ae2c16b1b63a2fb91a41&container-tabs=dockerfile
https://catalog.redhat.com/software/containers/container-native-virtualization/virt-launcher-rhel9/633ffae66804229d44d4c75a?architecture=amd64&image=65eb469817260331dcb562ef

/lgtm
/assign @rhmdnd


Unused resources when used in Lambda expressions

I have stumbled upon an issue while using retrolambda + Android + lint. Lint verification tool fails on finding strings referenced from string resources when that string is used in same place as a lambda expression. Simple example can be:
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setMessage(R.string.message)
	.setPositiveButton(R.string.close, (dialog, which) -> {
		switch (which) {
			case DialogInterface.BUTTON_POSITIVE:
				dialog.dismiss();
				break;
		}
	}).show();

This when running ./gradlew lint will cause R.string.close produce a lint warning: The resource R.string.close appears to be unused and in my case fail the build. I could of course ignore that by using tools:ignore or pass Resources fetched String from outside the method call wherever I am using lambda expressions but that doesn't seem the right way. Code should be readable and short, this is the target of lambda expressions as well, so adding code to satisfy lint because of retrolambda seems like going against that principle. For instance this doesn't produce any warnings after adding String string = getString(R.string.close) and referencing it in AlertDialog.Builder.setPositiveButton(...):
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
String string = getString(R.string.close);
builder.setMessage(getString(R.string.message, body.getError().getData()))
	.setPositiveButton(string, (dialog, which) -> {
		switch (which) {
			case DialogInterface.BUTTON_POSITIVE:
				dialog.dismiss();
				break;
		}
	}).show();

This is superseded by https://github.com/evant/gradle-retrolambda/issues/96 (and that there is now a workaround).


dataViewerDependencyService to derive the interpreter from the DebugEvaluator

From: #10638
After: #10639

Replace the usage of the PythonEnvironment (the interpreter) from the parameters of the dataViewerDependencyService methods and use the DebugEvaluator instead. Evaluate code to get the interpreter path then use the old interpreter code.

closing this for now and leaving the main issue open


Fix JSON encoding bug

What does this PR do
This PR addresses an issue where newlines or other characters passed as Terraform variables were not encoded correctly.
This PR change how we handle JSON encoding for a slice of bytes. Without first converting to a string or other type, a slice of bytes will be JSON encoded as a base64 string. Previously we had worked around this using fmt.Sprintf however this produced inconsistencies in the encoding. Here we instead convert the slice of bytes to a string which we then encode using json.Marshal.

LGTM, thank you @phoban01


Question: information state targetting

I'm trying to rewrite OOS (http://mlanctot.info/files/papers/aamas15-iioos.pdf) and specifically information state targeting.
Part of it is to write a function which takes two ActionObservation sequences and returns if they are compatible (it's possible to get from the current infoset to the target infoset).
In OpenSpiel, neither the InformationState / InformationStateAsNormalizedVector provide "incremental" information: it's a domain-dependent representation of the whole AO sequence.
Observation or ObservationAsNormalizedVector do these "incremental" observations: however how is the observation of "no observation" encoded in phantom games? Empty vector?
Also, do you think it would make sense to store the ActionObservation for each player in State (similarly to how history_ is stored)? It is not possible to do a currentState->parentState lookup, so to retrieve the whole AO for arbitrary state you'd have to make targetted tree traversal from the root to this state.
I'm asking this specifically in the context of OOS, where you will be given a target infoset (or State, in the Bot API), but you might not know what it's ActionObservations are (if you didn't visit this infoset before and cached it). The result is that you cannot target this infoset efficiently.

That seems costly to have turned on by default (since the observations are potentially large vectors)

Did you consider other representation of observations, as the one for neural networks? Maybe something game specific, for example GoofspielObservation which would contain the actual information (win/lose/draw in a round, nature card and possibly cards revealed) from which other representations could be built (such as for neural networks?). These game-specific observations can be much much smaller (probably 1 or 2 orders of magnitude compared to one-hot encoding of doubles :) ).

Support an optional way to turn it on, but have it switched off by default.

I'd be careful about putting more mutability/statefullness into State :) I suggest these kinds of settings should be const-ed, i.e. there can be a RootStateFactory(bool capabilityX, bool capabilityY, ...) which sets them up, and disallows user to turn them off later, so that we don't have some states which do have AOs and some which don't.
I thought about subclassing for type safety, i.e. StateWithCapabilityX, but then all other methods will have to return StateWithCapabilityX, and make rest of the code type incompatible. This would indeed require templating... everything ...
This seems like rather a common design problem, so maybe someone with more C++ experience can help? @Dugy

I can add a bunch of methods that return the collections and/or const refs to them.

I think it would be useful to think about these directly how they relate to information state forests. (thread #1). Who should be the "memory owner" of AOs? State? But then we should be very careful about mutating state into children, because the external AO pointers (for example in the infoset forest) will become corrupt. Maybe this would be an appropriate place for usage of shared_ptr?

absl::optional<std::vector<std::pair<Observation, Action>>>>

Please avoid the use of std::pair<x,y> in code that should be exposed by the API.  I noticed at many places in the code usage of x = a.first anyway to bypass this. I suggest using a simple two-fielded struct, where you can see .x / .y and can directly click on it and figure out it's type fast.
In "internal" use (private, maybe protected methods of a class) it's fine, since the "leakage" of these details will be limited.

I would not be surprised if there was a bug in it (in case you plan to use it, be aware)

Thanks, good to know.

I don't like the use of complex template magic-- it makes working with C++ unnecessarily complicated...

I dislike it too and have a friend who helps me with it all the time haha :-) so I understand the sentiment.

This seems like rather a common design problem, so maybe someone with more C++ experience can help?

I am not sure if I fully understand the context. In case I got it right, this seems like a setting that would apply to all instances. One such property alone can be conveniently handled by various ad hoc approaches, but these tend to accumulate and after adding several such properties, it gets messy. A proper solution may be a variable in some struct with other settings like this passed as a shared pointer or something to all instances, it may be a singleton, it may be a preprocessor macro... all depends on the frequency how often you might want to change it.

Did you consider other representation of observations, as the one for neural networks?

There are observation strings as well, btw. But, yes, as I mentioned in another thread, this is what Neil did in the Hanabi Learning environment. I think it's ultimately the way to go, but we haven't needed rich observations for anything (yet) because the team who has been using it for research (so far!) has mostly been interested in end-to-end learning algorithms, and we can easily change the observations if we wanted to.
Probably we'll need to do this eventually because people will obviously want to do more game-specific stuff. Right now, that's not easy in OpenSpiel (by design!) but people will want to define their own observations (and other game-specific stuff) so we ultimately want to support it. In fact we listed it in our Call for Contributions.

I'd be careful about putting more mutability/statefullness into State :)

Sure, I agree generally.  I was suggesting a simple way to support OOS (and another use case I will have soon). We already have a history of integers in there, so it seems natural to complement it with optional (Observation, Action) histories, which seem generally useful, i.e. it will likely be needed again.
The subclassing is not such a bad idea. Or rather, interfaces. Each interface provides a new functionality (pure virtual methods) and only some games can implement them. Since the games are subclassing State already, they would then just need to subclass the interfaces too, and provide those extra methods. Rather than templates this just means down casting, which could make the code a bit awkward and messy, which is why I suggest adding it to State, since it's something that really is generally useful and we have it already.

I think it would be useful to think about these directly how they relate to information state forests.

My suggestion is avoiding the problems you list because it would not be a pointer to some dynamic structure. I want to avoid that, because then all the clone methods would need to be deep clones and it just makes everything more complicated than necessary.

Please avoid the use of std::pair<x,y> in code that should be exposed by the API.

No, I will not. I have had this argument many times, and I remain unconvinced. std::pair is a well-understood type. Every C++ programmer in existence know what .first and .second do. Pairs are perfect for simple tuples, and there is a lot of use cases for two-valued tuples where a struct would be overkill. If every tuple had to use a struct instead, then your code base explodes with custom types and everyone has to lookup what those objects are to understand what is in them (which is terrible for the main core API functions!) Also, your argument with structs implies that people are not naming their variables properly, and we should avoid that. E.g. it is very clear what action_and_prob.first and action_and_prob.second are, and we should simply make sure these standards are upheld.

I dislike it too and have a friend who helps me with it all the time

This is exactly why they are bad, and I bolded in red letters the "Keep It Simple" design philosophy in the docs and paper. If you need someone's help to do something that the language should make easy, then the answer is not to go to someone else and get help. The correct answer is: don't use those language features. Why? Because it would mean you're narrowing the scope of people that can understand the code (even the implementer doesn't fully understand it!) and it becomes harder to use by everyone. What's worse is that this problem gets even worse over time. If you narrow the scope, then you'll attract more C++ template experts (and alienate everyone else), which means the problem just gets slowly worse over time, until it's basically hard to use for everyone (even the experts).
C++ has a bad reputation among researches because it's too complex. But that does not need to be the case. It's only "too complex" when you don't guard against complicated language features. The C++ code in OpenSpiel is forcefully simple, and we want to keep it that way. So your aversion to complex use of C++ templates is more than welcome here.


[improvement] improve relation between notification strategy and alarm group on ui

Purpose of the pull request
improve relation between notification strategy and alarm group on ui
Brief change log
improve relation between notification strategy and alarm group on ui

when notification strategy equal NONE

when notification strategy not  equal NONE

The difference between them is whether to display the alarm group
Verify this pull request

This pull request is code cleanup without any test coverage.
this close #11771

Codecov Report

Merging #12200 (2634202) into dev (d1e409e) will increase coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##                dev   #12200   +/-   ##
=========================================
  Coverage     39.40%   39.40%
+ Complexity     4131     4130    -1
=========================================
  Files          1011     1011
  Lines         37824    37824
  Branches       4348     4348
=========================================
+ Hits          14904    14905    +1
+ Misses        21191    21189    -2
- Partials       1729     1730    +1

Impacted Files
Coverage Δ

...er/master/dispatch/host/assign/RandomSelector.java
77.77% <0.00%> (-5.56%)
:arrow_down:

...r/plugin/task/sqoop/parameter/SqoopParameters.java
55.12% <0.00%> (-1.29%)
:arrow_down:

...erver/master/processor/queue/TaskEventService.java
80.35% <0.00%> (+5.35%)
:arrow_up:

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


Karpenter conversion webhooks do not work on chart version 1.0.2

Description
Observed Behavior:
karpenter Chart version: 1.0.2
karpenter-crd Chart version: 1.0.2
with webhooks enabled in values as follows:
karpenter-crd:
  webhook:
    enabled: false
karpenter:
  enabled: true
  webhook:
    enabled: false

The webhooks fail with the below error with no indication as to why:
{"level":"ERROR","time":"2024-09-11T20:30:53.969Z","logger":"controller","message":"Reconciler error","commit":"b897114","controller":"nodeclaim.podevents","controllerGroup":"","controllerKind":"Pod","Pod":{"name":"istio-gateway-internal-secret-init-84df655d8b-sdxn4","namespace":"istio-system"},"namespace":"istio-system","name":"istio-gateway-internal-secret-init-84df655d8b-sdxn4","reconcileID":"86d25014-bd4b-4b5d-852f-a5c4d50fe7c4","error":"Internal error occurred: failed calling webhook \"validation.webhook.karpenter.sh\": failed to call webhook: the server rejected our request for an unknown reason"}

Expected Behavior:
Webhook to work in 1.0.2
Reproduction Steps (Please include YAML):
https://github.com/aws/karpenter-provider-aws/issues/6847#issuecomment-2344630870
Versions:

Chart Version: 1.0.2
Kubernetes Version (kubectl version): 1.29+ eks

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Can you share if there is anything in the logs that indicates why the webhook rejected the request? I'm also curious if this even made it to the webhook or if something is getting in the way of the network traffic to the service/pod.

@jonathan-innis nothing beyond this.
{"level":"ERROR","time":"2024-09-11T20:30:53.969Z","logger":"controller","message":"Reconciler error","commit":"b897114","controller":"nodeclaim.podevents","controllerGroup":"","controllerKind":"Pod","Pod":{"name":"istio-gateway-internal-secret-init-84df655d8b-sdxn4","namespace":"istio-system"},"namespace":"istio-system","name":"istio-gateway-internal-secret-init-84df655d8b-sdxn4","reconcileID":"86d25014-bd4b-4b5d-852f-a5c4d50fe7c4","error":"Internal error occurred: failed calling webhook "validation.webhook.karpenter.sh": failed to call webhook: the server rejected our request for an unknown reason"}
This is from Karpenter logs.
I'm assuming this was trying to validate a nodeclaim which didn't have group field set.
Reading the docs for the migration to v1. Can you confirm that 0.37.3 doesn't mutate resources?
Its worth noting that at the point I got this error all the resources I have defined for node-pools etc in my chart were already upgraded to v1 spec and deployed prior to deploying Karpenter 1.0.2 chart
My path was:

Upgrade to 0.37.3
Upgrade all manifests to v1 spec on 0.37.3
Deploy Karpenter 1.0.2

Upgrade all manifests to v1 spec on 0.37.3

When you run through this part of your upgrade, did this also have the v1 storage version? Even with the resources on the v1 spec, if they aren't stored on the correct storage version, there can be issues during the upgrade.

@jonathan-innis Found a couple of folks who encountered the same https://github.com/aws/karpenter-provider-aws/issues/6847#issuecomment-2318901834
and https://github.com/aws/karpenter-provider-aws/issues/6879#issuecomment-2315685456
Deleting the validating webhooks altogether resolves this. I think they are carried over from 0.37.3 and are not needed on 1.0.2? Can you confirm? Its weird that they are not cleaned up upon upgrade automatically.

Agreed, this looks like an issue with the interaction that Karpenter has with Argo. We definitely need to look at this since we shouldn't be leaving behind MutatingWebhookConfigurations and ValidatingWebhookConfigurations after the upgrade.

So, I think that we tracked it down. There's an open issue here that actually specifically describes this interaction between Knative and ArgoCD. What it comes down to is that ArgoCD refuses to delete objects with ownerReferences -- even if it was the original creator of the object.
Because knative injects an owner reference onto the ValidatingWebhookConfiguration and MutatingWebhookConfiguration as part of its reconciliation flow, this causes ArgoCD to ignore these objects when pruning and leave them behind on the cluster. I'm trying out what happens when we don't have these owner references by patching the knative package that we are using here: https://github.com/aws/karpenter-provider-aws/pull/7042 to see if that resolves the issue (I suspect it should).
Code link to where ArgoCD does this check: https://github.com/argoproj/gitops-engine/blob/master/pkg/cache/cluster.go#L1167

Could this be part of the issue?
https://github.com/aws/karpenter-provider-aws/blob/main/charts/karpenter/Chart.yaml
^-- v1.0.0 of the helm chart should use v1 CRDs
but from what I can tell it's referencing v1beta1 CRDs
Also in the future it'd be nice if EKS Blueprints karpenter addon could get some love.
https://github.com/aws-quickstart/cdk-eks-blueprints/issues/1078
I tried doing a fresh install of 1.0.2 where there should be no need to convert crds and stuff, but that doesn't work, and installs older beta versions of the CRDs from what I can tell and I think it might be the fault of the upstream helm chart.

We just released latest patch versions of pre-v1.0 versions that fix this issue so that these configuration resources aren't leaked. Please use one of the following versions prior to going to 1.0.x since these versions remove the ownerReference that is causing Argo to leak the resources and causes the failure on upgrade:

v0.33.10
v0.34.11
v0.35.10
v0.36.7
v0.37.5

Closing since this should be resolved now.


No media when sip.js browser is receiver, using VPN

Describe the bug
I'm using basic SIP.js 0.19.0 Web.SimpleUser() typescript app, from chrome browser. When I start call from browser, all works. When I receive calls in browser, sip signalling works fine but I can't hear audio. I have a VPN setup where "private_ip" is VPN interface address and "public_ip" is STUN resolved address.
After debugging and comparing the signalling, I noticed this ICE candidate is missing from the browser's 200 OK, when browser is receiver. Note that the candidate is present in the browser's INVITE, when browser is sender and all works:
a=candidate:1234934969 1 udp<PHONE_NUMBER> "public_ip"59220 typ srflx raddr "private_ip" rport 59220 generation 0 network-id 1
My question is if you have any idea why in 200OK that candidate is not sent and what can I do about it?
To Reproduce (if possible)
Web.SimpleUser() receiver using VPN interface.
Expected behavior
RTP media to be sent over VPN interface.
Observed behavior
RTP media is sent over local interface connected to wifi, not over VPN interface.
Environment Information

Backend Server and version: kamailio 4.4, rtpengine <IP_ADDRESS>
Browser and version: Chrome Version 89.0.4389.90 (Official Build) (64-bit)

Full logs with sip trace please.

Hi, I've attached console logs when browser is both sender and receiver.
sender.log
receiver.log

Hello,
have you solved this problem?
I'm facing similair issue and don't know how to fix it.
I'm using v0.20.0

Hi,
No, I didn't solve this problem.
Thanks,
Stefan

Hi,
If this is still an issue, can you please send the receiver.log again with the UserAgent logLevel option set to "debug".  It's apparently not spending any time waiting for candidates, so would just like to confirm it's just getting the 2 host candidates which are getting put in the SDP of the 200 Ok. If that's the case, then SIP.js is doing what it is supposed to be doing and this is a network/webrtc support issue and not a bug.
Thanks,
John


This is a preview SDK for the new features introduced in 2018-05-01-preview API version

Description
This is a preview SDK for the new features introduced in 2018-05-01-preview API version, and is expected to be available along with the stable SDK 1.3.0 (already on Nuget). Added corresponding tests, bumped up the version from 1.3.0 to 1.4.0-preview.  Pull Request for Swagger: https://github.com/Azure/azure-rest-api-specs/pull/2796

This checklist is used to make sure that common guidelines for a pull request are followed.

[X] Please add REST spec PR link to the SDK PR
[X] I have read the contribution guidelines.
[X] The pull request does not introduce breaking changes.

General Guidelines

[X] Title of the pull request is clear and informative.
[X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[X] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[X] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[X] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
[X] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

@dsgouda, regarding the first comment "Please create a generate.ps1 and regenerate the code", I want to double-check the right steps with you before I do that.

We have a generate.cmd already.
To generate using this, I will have to first update the autorest configuration in the azure-rest-api-specs repo (README.md) to introduce a new tag for this API-version and then change the default tag from 2018-01-01 to 2018-05-01-preview, correct?

If this is the right approach, I will send out a PR for that autorest configuration change in the azure-rest-api-specs repo.

@dsgouda, I have made all the changes except for the props file. Even though I ran "msbuild build.proj /t:Build /p:Scope=SDKs\EventGrid", the \src\SDKs\EventGrid\AzSdk.RP.props file didn't get updated, and that's likely because we have both dataplane and management SDKs, and I remember @shahabhijeet mentioning earlier that some work needed to be done to enable it to be maintained for both data plane and management plane. So, until that's done, I am guessing it is okay.

@kalyanaj thanks for the feedback


Add example of Slice Tests

Summary by Sourcery
Add a module to demonstrate Slice Tests using Spring Boot Test Slice.
New Features:

Introduce a new module to demonstrate Slice Tests with Spring Boot.

Tests:

Include tests for the new module.

@sourcery-ai help


make proto-gen

Description
This PR just runs make proto-gen
I don't really know how to use unclog and never have but will give it a
5th try

PR checklist

[x] Tests written/updated
[x] Changelog entry added in .changelog (we use
unclog to manage our changelog)
[x] Updated relevant documentation (docs/ or spec/) and code comments

I just need to mention that if we're going to push unclog, then we need to include the commands for the ad file. Please please please cause that would be sweet.

oh it just gobencher failing.  gobencher always fails. 🤷

This fails our protobuf code generation check and doesn't build: https://github.com/cometbft/cometbft/actions/runs/4900600023/jobs/8752262026
How did you generate these changes? Are you perhaps using the cosmos/gogoproto gogofaster plugin locally? If so, please note that the migration to cosmos/gogoproto only happened for v0.38.x and v0.37.x (see https://github.com/tendermint/tendermint/pull/9356 and https://github.com/tendermint/tendermint/pull/9381).

I just need to mention that if we're going to push unclog, then we need to include the commands for the ad file. Please please please cause that would be sweet.

Have you read the docs? https://github.com/informalsystems/unclog#adding-a-new-unreleased-entry

@faddat what's the context for this PR?


Conversion check

This code adds the ability to audit the type conversion code.  This code was then used to print out the conversion table and identify errors.

A quick test of the conversions
Primitives and Boxed
                 Name                  Type boolean char short int long float double j.l.Character j.l.Byte j.l.Short j.l.Integer j.l.Long j.l.Float j.l.Double j.l.Object
0                None         Py 'NoneType'                                                      I        I         I           I        I         I          I          I
1                True             Py 'bool'       X    I     I   I    I     I      I             E        E         E           E        E         E          E          I
2               False             Py 'bool'       X    I     I   I    I     I      I             E        E         E           E        E         E          E          I
3              int(1)              Py 'int'       I    I     I   I    I     I      I             E        E         E           E        E         E          E          I
4              int(2)              Py 'int'       I    I     I   I    I     I      I             E        E         E           E        E         E          E          I
5         float(12.3)            Py 'float'       E          E   E    E     I      X                      E         E           E        E         E          E          I
6      JBoolean(True)        Java 'boolean'       X                                                                                I
7            JChar(1)           Java 'char'            X                                         E                                                                       I
8           JShort(1)          Java 'short'                  X                                                      E                                                    I
9             JInt(1)            Java 'int'                      X                                                              E                                        I
10           JLong(1)           Java 'long'                           X                                                                  E                               I
11        JFloat(2.1)          Java 'float'                                 X                                                                      E                     I
12       JDouble(3.5)         Java 'double'                                        X                                                                          E          I
13  j.l.Boolean(True)    Java 'j.l.Boolean'       I                                                                                I
14   j.l.Character(1)  Java 'j.l.Character'            I                                         X                                                                       I
15       j.l.Short(1)      Java 'j.l.Short'                  I                                                      X                                                    I
16     j.l.Integer(1)    Java 'j.l.Integer'                      I                                                              X                                        I
17        j.l.Long(1)       Java 'j.l.Long'                           I                                                                  X                               I
18     j.l.Float(2.1)      Java 'j.l.Float'                                 I                                                                      X                     I
19    j.l.Double(3.5)     Java 'j.l.Double'                                        I                                                                          X          I
20     j.l.Integer(1)    Java 'j.l.Integer'                      I                                                              X                                        I
21         JObject(1)       Java 'j.l.Long'                           I                                                                  X                               I
22       JObject(1.1)     Java 'j.l.Double'                                        I                                                                          X          I
23   JObject(1, JInt)    Java 'j.l.Integer'                      I                                                              X                                        I

The part regarding boxed types is incorrect.  In Java we can have both a conversion to int and Integer without conflict.  I don't think our internal 4 level match can fit this case.
Checking the other objects
Objects and casts
                               Name                  Type char j.l.String j.l.Object j.l.Number j.l.Class j.l.Exception [I [D
0                        bytes('c')            Py 'bytes'    I          X          I
1                          str('c')              Py 'str'    I          X          I
2                        str('abc')              Py 'str'               X          I
3                      JString('b')     Java 'j.l.String'               X          I
4                      JObject('a')     Java 'j.l.String'               X          I
5                        j.l.Object         Java 'JClass'                          I                    X
6                 j.l.Object.class_      Java 'j.l.Class'                          I                    X
7                      j.l.Object()     Java 'j.l.Object'                          X
8                         JObject()     Java 'j.l.Object'                          X
9               JObject(1, JObject)     Java 'j.l.Object'                          X
10           JObject(None, JObject)     Java 'j.l.Object'                          X
11                    j.l.Throwable  Java 'j.l.Throwable'                          I
12                    j.l.Exception  Java 'j.l.Exception'                          I                                  X
13                      j.l.Byte(1)       Java 'j.l.Byte'                          I          I
14  JObject(j.l.Byte(1),j.l.Number)     Java 'j.l.Number'                          I          X
15                           dict()             Py 'dict'
16                           list()             Py 'list'                                                                I  I
17                            [1,2]             Py 'list'                                                                I  I
18                          [.1,.2]             Py 'list'                                                                E  I
19            JArray(JInt)([1,2,3])          Java 'int[]'                          I                                     X

Seems fine to me.

This pull request was originally just to help me to revise the documentation by printing out the conversion table automatically.  But it lead to discovery of a number of bugs that needed to be resolved.

Cast operations were hitting a bad path during __init__ leading to an error.
Cast operations were stealing a global reference leading to objects disappearing out from under themselves.
Char was incorrectly being matched to float on the conversion table.
Arbitrary length strings were matching to char.
Object casting was using the wrapper type rather than the object type when casting leading to the issue it was not possible to upcast properly.

@marscher As this is vital code and it is deep in the guts I am going to commit this code without review as every other pul should depend on this one.  I performed all the usual requirements such as autopep8 and testing so I think it is pretty safe.  There are a few conversions in the test that are still worrisome, but they are issues discovered rather that introduced.  Char from float and Char from long strings should both be explicit rather than none to help support proxies.  And the block regarding boxed appears to be all explicit rather than implicit.   Our current matching system is not completely matched as we need a preferred vs implicit to break up ties types.  Further, we are really harsh about java primitive types, we can afford to have some level of implicit conversions in the table.  As it stands we can have casting for an overload fail from minor changes in the signature.  That said, nothing here appears to introduce a problematic behavior that we can't live with.  At worst we force a unnecessary cast, as opposed to accepting  something we would rather not happen.   Please run the testConversion.py script and report anything you see as a problem to issues and I will take care of it.


A known issue with Mathjax may be need to remedy.

There is a known issue with hugo when using Mathjax. Official documents show a way to remedy this problem.
By the way, I try to fix this problem by myself, but I found < in mathjax-markdown-solution.html which is showed in official documents has been escaped and mathjax doesn't work. Hope this helps.

Sorry, can you elaborate on that example? I remember reading that page, and I think it's not up to date.

I upload a test html in my cdn and this the markdown file
See file in my markdown editor :

Hm, sorry for letting this stagnate @Jinxiapu. I think when I get a chance, I'm going to try out KaTeX, which is an alternate rendering system. I've heard good things about it, for awhile. Won't be getting to this for a bit, but wanted to give you an update.

There's some discussion about this on this issue. I tried out mmark, and it works as expected:

with basically the same input file. For reference, you can find that input file here. Switching to markdown immediately breaks things. In all cases, it seems like you can use $$ as your delimiter -- for non-inline, just don't put other text on the line.
Given how much easier working with mmark seems to be, I'm going to leave things the way they are and consider mmark the supported way to create files that must render latex. I'm happy to discuss if you disagree, but it's probably better for everyone's sanity to do it this way.
Lastly, I might try out KaTeX in the future, but am putting that off for now. If anyone desperately wants that, I'll make it a higher priority.

And thank you for making the issue!


Links Broken

When on the index.html page, the post can be read but when I click the link to the post, it cant find the file. When i change the link to the file from /2011/07/12/filename to 2011/07/12/filename (eg no slash at the start) it works fine, but i done want to do this every time I publish my jekyll site. Any suggestions?

Seems not to work.
Baseurl entry in _config.yml
baseurl:     /~abb635

Link without baseurl config: http://localhost:4000/2011/12/19/hello-world.html
Link with baseurl config:      http://localhost:4000/2011/12/19/hello-world.html

Are you using {{site.baseurl}} in your templates? It won't do anything automagically; the only advantage of using "baseurl" over any other config variable is that you can override it with --base-url.

Uhm. Thanks for this information. I should have looked at the source code.


Wierd URL stuff

If I go to http://drone.io/shadowfacts/EnFusion, everything works perfectly fine. But if I go to http://drone.io/shadowfacts/EnFusion/ I get a 404 page not found error. The second URL should work as well.

hey there, thanks for taking the time to log a bug. This repository is for the open source version of Drone which is a different project / codebase. I'm closing this here since it doesn't impact the open source version, but I'll get it added to our issue tracker for the Drone.IO service


Module 1 exercises [Doreen Mufwanzala]

Please "drag & drop" exercise 1 pdf file below.
excise1.pdf

Please "drag & drop" exercise 2 pdf file below.
EXECISE2.pdf

Please UPDATE THE TITLE of this "Issue" in the title bar above with your name.

If you haven't done so, please go back to Module 1 and make sure to take
the post-training survey. Participating in surveys is required for receiving
the "GALUP Certificate" by the University of Florida.

Well done, Doreen. You clearly grasped the material outlined in Module 1 and successfully applied it to these exercises. Thank you for your participation! Please make sure to finish the post-module1 survey which you can find at here.

corrected exe.3 module2
LAND CONDITION MODULE 3 EXR 2.pdf


Mobs that pick up MythicDrops dupe the Drop

When a Mob picks up any generic MythicDrop item, such as a Zombie or Skeleton. It will drop 2 copies of that MythicDrop item on death. I believe this has something to do with a conflict MythicDrops randomization of drops.
Suggestion: Prevent MythicDrops from dropping an extra item when the Mob has picked one up already
or Prevent Mob pickup when MythicDrops plugin is active.

Sorry for very very late bump, After updating to 1.12 last week, this issue started to happen on my server as well.

There's a config option you can change that will prevent mobs from picking up items.


How to fine-tune large models?

Hello all,
How should I finetune a large model? Are there implementations like peft in Python for Candle? Specifically, how should I train a quantized, LoRA model? I saw candle-lora, and plan to use that but do not know how to quantize a large model.

An example with a pipeline such as this could be extremely useful.

Might be worth making an issue in the candle-lora repo for this?

Sure!

https://github.com/EricLBuehler/candle-lora/issues/17

is there anyway with candle to make finetune of say mistral? instead of a lora?


WindowManager: android.view.WindowLeaked

Library Version:
3.0.2
Describe the Bug:
WindowManager: android.view.WindowLeaked
To Reproduce:
MaterialDialog(this, BottomSheet()).show{
   lifecycleOwner(viewLifecycleOwner)
}

Open BottomSheetDialog, rotate device.
WindowManager: android.view.WindowLeaked: Activity ...AppActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{910b88f V.ED..... R....... 0,0-1080,1920} that was originally added here
        at android.view.ViewRootImpl.<init>(ViewRootImpl.java:368)
        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:299)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
        at android.app.Dialog.show(Dialog.java:319)
        at com.afollestad.materialdialogs.MaterialDialog.show(MaterialDialog.kt:368)

This can be true for any dialog. You need to dismiss dialogs when your Activity is pausing or being destroyed. The lifecycle module if this library can help automate that.

It's already in code and it crash with it.
MaterialDialog(this, BottomSheet()).show{
lifecycleOwner(viewLifecycleOwner)
}

If remove BottomSheet() - all is ok

Java Version ?

This is reproducible without bottom sheets as well.

BottomSheet.onDismiss should always return true or by itself call  hideKeyboard();  super.dismiss() from MatedialDialog.dismiss
Currently BottomSheet does not call Dialog,dismiss() and that lead to WindowLeaked

Solution.

Make a subclass inherited from MaterialDialog and LifecycleObserver interface.
Dismiss the subclass instance at the device orientation change, using like @OnLifecycleEvent(Lifecycle.Event.ON_STOP) annotation on the dismiss function, so that it is called at onPause() or onStop() from underlying fragment or activity which is Lifecycle Owner.

There is already a lifecycle extension for this library that does that.

@afollestad Any reason why my proposal is not implemented yet?

Time.


Default Bookmark Folder, copying and importing bookmarks

This is a Bug Report
Description
Hi. When importing saved bookmarks from an .html bookmark file in firefox 90.0.2 (64-bit) with default bookmark folder 3.1.0 enabled, and set to save bookmarks in firefox's "bookmarks menu" folder by default, all bookmarks in custom folders and sub-folders from the .html file just get imported as one big list into the "bookmarks menu" folder, and all the custom bookmark folders from the .html file are empty.
Also, when copying, or dragging and dropping saved bookmarks from the "bookmarks menu" folder into firefox's "bookmarks toolbar" or "other bookmarks" folders when default bookmark folder is enabled, the bookmarks don't get copied properly. They just briefly appear to get copied and then automatically disappear.
The only way to properly copy bookmarks to any of firefox's other bookmarks folders other than the default folder for saved bookmarks, or to import bookmarks in the correct custom folders and sub-folders from an .html bookmark file is to disable default bookmark folder, copy or import the bookmarks, then enable default bookmark folder. Is there a way to get it to work properly without having to disable it each time you want to copy or import bookmarks? Thanks.
Steps to reproduce the problem

With default bookmark folder enabled, copy bookmarks from firefox's "bookmarks menu" into one of firefox's other bookmarks folders.
Import bookmarks in custom folders and sub-folders from an .html bookmark file.
Disable default bookmark folder and copy bookmarks from firefox's "bookmarks menu" into one of firefox's other bookmarks folders.
Import bookmarks in custom folders and sub-folders from an .html bookmark file.
Enable default bookmark folder.

Expected behavior
Saved bookmarks should be copied properly to firefox's other bookmarks folders, or imported in the correct custom folders and sub-folders from an .html bookmark file without having to disable default bookmark folder.
Specifications

Version of the add-on: 3.1.0

Firefox edition: Firefox (regular edition)
Firefox version: 90.0.2 (64-bit)
Firefox language: English

Platform/OS: Windows
Platform/OS version: 7 & 10 64 bit

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

I have the same problem, and think the OP described it well.  I'd say the default folder function should not be invoked when restoring a bookmark file.

A similar problem. If the default save folder is set to (for example) "Other Bookmarks", when a previously saved json file is restored, all the bookmarks, including those in Bookmarks Toolbar, are 'flowing' in the Other Bookmarks folder.


Cross-site scripting vulnerability

Example URL: https://www.thisworddoesnotexist.com/w/jesdabest/eyJ3IjogIjxTQ1JJUFQ-YWxlcnQoJ2plc2RhYmVzdCcpPC9TQ1JJUFQ-IiwgImQiOiAiYW4gYWxlcnQgcGxhY2VkIGR1cmluZyBhIHZpZGVvIHJlY29yZGluZy4iLCAicCI6ICJub3VuIiwgImUiOiAiPFNDUklQVD5hbGVydCgnamVzZGFiZXN0Jyk8L1NDUklQVD4iLCAicyI6IFsiPFNDUklQVD5hbGVydCgiLCAiJyIsICJqZXMiLCAiZCIsICJhYmVzdCIsICInIiwgIik8L1NDUklQVD4iXX0=.53iUkLV3kFioMfmibqWu6403RBPA3xxYXfEiRheMoc8=
To avoid this, HTML entities (namely "<" and ">") should be escaped (to < and >) before being written to HTML.
 Of course, cross-site scripting on thisworddoesnotexist.com is of limited impact anyway!

@jes  nice and clever demo! Let me patch this up quickly.
One other Q: did you hack the URL or get the generator to make the URL? I have an HMAC signature to try to prevent people from hacking the URL too much

Fixed and deployed in https://github.com/turtlesoupy/this-word-does-not-exist/commit/1adcbf61917c61e18eb5aa9f476d1b181798cbcd#diff-1b70e363fa87bcde7a9ebc0769bbbc3d

I edited the word in the URL to remove the script tags, because it is not checked, but I didn't hack any of the base64 stuff (although I did try!)


json-server not working in Github codespaces

Hello,
I am a beginner learning web development and I am having issues running the json-server package in my GitHub Codespaces. When I try to run it, the page just keeps loading and doesn't open. I have tried following the troubleshooting steps in the documentation, but I am still having the same issue.
Could you please assist me with this issue?
Thanks in advance

To resolve the issue with JSON Server in GitHub Codespaces, try the following steps:

Check Port: Ensure JSON Server is running on port 3000, or use a different port with the -p option.
Browser Console: Check for errors in the browser's developer console.

If issues persist, please share any error messages or additional details.


Ruby <IP_ADDRESS> is not unattended

This window comes up (but it does not block the install from finishing):

https://github.com/oneclick/rubyinstaller2/issues/43

I got this yesterday and didn't have time to do anything about it. Menu
pops up giving you three options to install.
I only have Ruby installed as Vagrant needs it.
Paul
On 28 May 2017 10:30 a.m., "Rob Reynolds"<EMAIL_ADDRESS>wrote:

I will see if I can get a picture next time I run into this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/chocolatey/chocolatey-coreteampackages/issues/742,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMK2y5IMMYD0ZvSsDqnltmVnYlYgOaTkks5r-T6qgaJpZM4NomSB
.

@pauby vagrant doesn't really need it though, they have included the binaries for ruby in the installer.

@AdmiringWorm I checked the vagrant package and the previous version and neither have a dependency on Ruby. I have no idea what is going on with Ruby then!
Apologies guys. False alarm. But I did see the Ruby pop just the other day as I said, while installing a chocolatey package (that I'm sure was vagrant).

I checked the vagrant package and the previous version and neither have a dependency on Ruby. I have no idea what is going on with Ruby then!

Exactly, a dependency for it have never been needed (as far as I know), the necessary ruby binary have always (again, as far as I know) been installed with the vagrant installer.

ANYWAYS, with that said. The problem with the ruby installer not being silent would definitely need to be fixed. Although, I've checkout the issue @ferventcoder linked to and it looks like this will be fixed automatically when the next ruby version is released (should we just wait it out, or actually do something before it's released?)

My view is if it's going to be fixed in the next release, assumiong that is weeks anot months away, then I wouldn't waste the time on fixing it. Tag the package as 'notsilent' and move on.

considering adding the tag notsilent would require a new push anyhow, it should probably be looked into making it silent (for this version) anyhow.
Unfortunately, I'm not going to do that though (well not anytime soon anyhow)

I dont think any action is required here from us.

Note that we can add the noridkinstall - https://github.com/oneclick/rubyinstaller2/wiki/FAQ#user-content-silent-install (the note there is only for anything past 2.4.1-1.
So it looks like this - /verysilent /dir="c:\ruby24" /tasks="assocfiles, modpath, noridkinstall"
And then we wait for the next release unless we want to start using the double zeros at the end until x is greater than 1 in 2.4.x. My vote is for waiting but adding that additional item.

Created https://github.com/chocolatey/chocolatey-coreteampackages/pull/744.

I think its better to just leave it as it is as it affects only the single version that way (in non detrimental way). If we push this we will probably pollute several versions with added suffixes.

I am inclined to agree with @majkinetor on the basis that the new version of Ruby that will address this is imminent. As I said previously if it's week or months away then, now that we know what the change is and it's fairly straightforward, should be done.

RubyInstaller-2.4 is usable without MSYS2, but compilation of source gems requires MSYS2 (for nokogiri, rails, etc.). RubyInstaller2's default is to install a separate MSYS2 instance (typically into c:/msys64). However since chocolatey already ships MSYS2 as well, I think it's obviously to make use of that package.
Therefore I would recommend to set noridkinstall explicit and recommend the MSYS2 package somehow. However I'm not really familiar with chocolatey and it's possibilities.

Previous versions of RubyInstaller didn't know the ridkinstall or noridkinstall parameters, but simply ignore them if given. Similarly RubyInstaller-2.4 ignores parameters other than these in the FAQ.

RubyInstaller-2.4 is usable without MSYS2, but compilation of source gems requires MSYS2

This practically means its unusable IMO. Source gems are more rule then exception.

That is not specifically as true anymore - for very highly used gems, there are platform-specific gems that don't require compilation. Take a look at FFI and nokogiri (the bane of my existence as a Ruby Windows developer).
That said, Jekyll I believe still requires DevKit, and Jekyll-based blogs / sites are heavily used.

I prefer that we use the MSYS2 bundled with Ruby - just to cut down on any incompatibility issues. It would be nice to say that never happens, but Ruby on Windows is already quite finnicky, I'd rather not introduce anymore elements into the equation.

I don't want an exact version dependency on the MSYS2 package either, as that could introduce weird incompatibilities outside of Ruby where someone is using the machine MSYS2 package for other things and needs updated versions. I actually preferred the vendored MSYS2 approach here as it will continue to allow me to have multiple versions of Ruby (and architectures MinGW vs MinGWx64) without fear of being setup incorrectly.


[Lit]: Include Lit as a core dependency for web components

The problem
Related issue for carbon-web-components:
https://github.com/carbon-design-system/carbon-web-components/issues/723
End users currently need to install lit-element and lit-html manually as part of their application setup. Many other web component design system teams includes as part of their projects. In addition, upgrading Lit (especially major versions) currently would require a major version release to handle.
The solution
Include lit-element and lit-html as core dependencies to the project.
Application/website
Carbon for IBM.com
Business priority
Medium Priority = upcoming release but is not pressing
What time frame would this ideally be needed by (if applicable)
Ideally can bring in soon, so teams using the library can start removing lit-element/lit-html from their application setup.
Examples
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Will need to update the web components template once this is published in production.


api-server: refine query not found error

What problem does this PR solve?

Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
test:
GET http://localhost:3450/q/events 404 (Not Found)
{
    "message": "The config file of query <events> can not be found."
}

cc: @634750802


Update .gitignore

Grab related patterns from the microsoft/vcpkg .gitignore file. Primary change is to prefix / when matching the root folders in the repository.

Relevant area that the values were cribbed from https://github.com/microsoft/vcpkg/blob/master/.gitignore#L282-L303


Add markdown changes for Tomorrow theme

I changed the markdown faces to be more readable. This is inline with common other themes for other editors. Looks like this:

@pkryger that's weird, the CI tests fail on ubuntu-latest, snaphot, but they do pass with version 27.1 and also locally on my mac (emacs-mac 21.1):
.emacs.d/.ci on tomorrow-markdown-theme-changes ● ❯ ./unit-test-cl.sh
+ set -e
++ cd /Users/pgrenet/.emacs.d
++ pwd -P
+ EMACS_DIR=/Users/pgrenet/.emacs.d/
+ EMACS=emacs
+ emacs -Q --batch --eval '
(progn
   (setq debug-on-error t
         user-emacs-directory "/Users/pgrenet/.emacs.d/")
   (when (and (version< emacs-version "27")
              (not (fboundp (quote define-fringe-bitmap))))
     (defun define-fringe-bitmap (&rest args)
       "Workaround for missing function in pre-27 non GUI purcell/setup-emacs."
       (car args)))
   (load-file "/Users/pgrenet/.emacs.d//init.el")
   (load-file "/Users/pgrenet/.emacs.d//modules/init-util-cl.t.el")
   (ert-run-tests-batch-and-exit))'
Loading /Users/pgrenet/.emacs.d/init.el (source)...
Loading /Users/pgrenet/.emacs.d/prefs.el (source)...
Loading /Users/pgrenet/.emacs.d/recentf...
Cleaning up the recentf list...
Cleaning up the recentf list...done (0 removed)
Turn on helm-projectile key bindings
Iedit default key binding is C-;
../modules/init-gdb.el:Warning: Use ‘with-current-buffer’ rather than
    save-excursion+set-buffer
../modules/init-gdb.el:Warning: Use ‘with-current-buffer’ rather than
    save-excursion+set-buffer
Loading /Users/pgrenet/.emacs.d/emacs-custom.el (source)...
Loading /Users/pgrenet/.emacs.d/after-init.el (source)...
Loading /Users/pgrenet/.emacs.d/taps/markdown-mode/after-init.el (source)...
Loading /Users/pgrenet/.emacs.d/taps/markdown-mode/markdown-mode-table.el (source)...
Loading /Users/pgrenet/.emacs.d/taps/markdown-mode/osx-dictionary.el (source)...
Loading /Users/pgrenet/.emacs.d/taps/org-mode/after-init.el (source)...
Loading /Users/pgrenet/.emacs.d/taps/util/after-init.el (source)...
PC keyboard mode (ALT is meta)
Loading /Users/pgrenet/.emacs.d/taps/window-manager/after-init.el (source)...
Fixing OS-X powerline bug
Loading /Users/pgrenet/.emacs.d/modules/init-util-cl.t.el (source)...
Running 1 tests (2021-04-02 11:39:36-0400, selector ‘t’)
   passed  1/1  test-exordium-no-obsolete-aliases (0.004204 sec)

Ran 1 tests, 1 results as expected, 0 unexpected (2021-04-02 11:39:36-0400, 0.004343 sec)

I don't have a Ubuntu machine ready to test with unfortunately. Any ideas?

I have an Ubuntu machine, but not sure if it is "latest" enough. I'll check this afternoon. I don't see how this PR could have done anything, though.

I guess the culprit is the latest emacs rather than latest ubuntu. Reading log, I can see that it complains about facemenu-menu in highlight, i.e.,
[...]
36:  Debugger entered--Lisp error: (void-variable facemenu-menu)
37:  byte-code("\304\10\305\306\307$\210\304\10\310\311\312$\210\313\301!\2038\0\314\11\315\316#\210\314\11\317\320#\210\314\11\321\322#\210\314\11\323\324#\210\314\11\325\326#\210..." [menu-bar-edit-menu menu-bar-edit-region-menu facemenu-mouse-menu facemenu-menu define-key-after [hlt-copy-props] (menu-item "Copy Text Properties" hlt-copy-props :help "Copy text properties at point, for subsequent past...") paste [hlt-yank-props] (menu-item "Paste Text Properties to Region" hlt-yank-props :help "Paste previously copied text properties to text in..." :enable (and (hlt-nonempty-region-p) (not buffer-read-only) hlt-copied-props)) hlt-copy-props boundp define-key [separator-highlight] ("--") [hlt-yank-props] (menu-item "Paste Text Properties" hlt-yank-props :help "Paste previously copied text properties to text in..." :enable hlt-copied-props) [hlt-unhighlight-region-for-face] (menu-item "Unhighlight for Face..." hlt-unhighlight-region-for-face :help "Remove highlighting for a given face in the region") [hlt-unhighlight-region] (menu-item "Unhighlight" hlt-unhighlight-region :help "Remove highlighting (faces) in the region") [hlt-highlight-regexp-region] (menu-item "Highlight Regexp..." hlt-highlight-regexp-region :help "Highlight parts of region that match a regexp") [hlt-highlight-region] (menu-item "Highlight" hlt-highlight-region :help "Highlight all text in the region") easy-menu-add-item nil ["Paste Text Properties to Region" hlt-yank-props (and (hlt-nonempty-region-p) (not buffer-read-only) hlt-copied-props)] dp ["Copy Text Properties" hlt-copy-props t] ["Paste Text Properties to Region" hlt-yank-props (and (hlt-nonempty-region-p) (not buffer-read-only) hlt-copied-props)] ["Copy Text Properties" hlt-copy-props t] custom-declare-group highlight "Highlighting." :prefix "hlt-" :group editing convenience wp faces :link url-link :tag "Send Bug Report" "mailto:drew.adams@oracle.com?subject=highlight.el ..." (url-link :tag "Download" "https://www.emacswiki.org/emacs/download/highlight...") (url-link :tag "Description" "https://www.emacswiki.org/emacs/HighLight") (emacs-commentary-link :tag "Commentary" "highlight") ...] 22)
38:  require(highlight nil t)
39:  (not (require 'highlight nil t))
40:  (if (not (require 'highlight nil t)) (display-warning 'use-package (format "Cannot load %s" 'highlight) :error) (use-package-statistics-gather :config 'highlight nil) (use-package-statistics-gather :config 'highlight t))
41:  (progn (use-package-statistics-gather :init 'highlight nil) (if (not (require 'highlight nil t)) (display-warning 'use-package (format "Cannot load %s" 'highlight) :error) (use-package-statistics-gather :config 'highlight nil) (use-package-statistics-gather :config 'highlight t)) (use-package-statistics-gather :init 'highlight t))
42:  (condition-case err (progn (use-package-statistics-gather :init 'highlight nil) (if (not (require 'highlight nil t)) (display-warning 'use-package (format "Cannot load %s" 'highlight) :error) (use-package-statistics-gather :config 'highlight nil) (use-package-statistics-gather :config 'highlight t)) (use-package-statistics-gather :init 'highlight t)) ((debug error) (funcall use-package--warning145 :catch err)))
43:  eval-buffer(#<buffer  *load*-394842> nil "/home/runner/work/exordium/exordium/.emacs.d/modul..." nil t)  ; Reading at buffer position 923
44:  load-with-code-conversion("/home/runner/work/exordium/exordium/.emacs.d/modul..." "/home/runner/work/exordium/exordium/.emacs.d/modul..." t t)
45:  require(init-elisp nil t)
[...]

I guess that's the cost living on the edge.
But my reasoning could be off after two weeks with roller, paint, screwdriver and IKEA furniture. I literally, two hours ago finished putting together the desk I'm writing this on.

Ok. I’ll dig in a bit later this weekend to see if I can fix it. Happy construction.

I found the problem. Module init-elisp.el uses package highlight.el which references variable facemenu-menu, without requiring/loading facemenu.el before. Facemenu is built-in. This recent commit in Emacs makes facemenu/el no longer preloaded.
My fix is just to require facemenu before requiring highlight in init-elisp. Of course the proper fix should be in highlight itself. I may send them a PR if I can make sure I found the proper repo.


Two small issues with 'hub login'

Two small issues related to hub login:

Your system sends an email when I hub login. The email was taking a minute or two to arrive, but when I clicked the link in the email, Hub would say:

Error! Gateway Timeout: HTTP status code 504; transport: received the unexpected content-type "text/html"

This happened three times. Perhaps you could extend the timeout period?

I entered an incorrect email and got this message:

We sent an email to the account address. Please follow the steps provided inside it.
Error! User not found

Perhaps you should check the account exists before reporting that an email was sent. Not a big deal, but every detail matters in the user interface.

Cool, thanks! I opened a new ticket for your second point over on the repo where accounts are managed.
for the first part, we were planning this https://github.com/textileio/textile/issues/206 which is just to let you still use the link of the first email by resuming.

Can we close this one here in favor of the other two tickets in textile/textile?

If you wish...


bugfix get_key_code() returns ASCII CODE as RFB key code

Hi, I try use this OSS for my product.
But I got Type Error using key_down 'a'.
sample code:
require 'net/vnc'
Net::VNC.open 'localhost:2', :shared => true, :password => 'matzisnicesowearenice' do |vnc|
  key_down 'a'
  key_up 'a'
end

result:
Traceback (most recent call last):
        4: from aaa.rb:2:in `<main>'
        3: from /usr/local/var/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/ruby-vnc-1.1.0/lib/net/vnc.rb:92:in `open'
        2: from aaa.rb:5:in `block in <main>'
        1: from /usr/local/var/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/ruby-vnc-1.1.0/lib/net/vnc.rb:196:in `key_down'
/usr/local/var/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/ruby-vnc-1.1.0/lib/net/vnc.rb:196:in `pack': no implicit conversion of String into Integer (TypeError)

Looks fine to me - guess this is among the things that never got properly fixed for 1.9.