v0.0.5 on mavericks: ERROR: TypeError: no implicit conversion of nil into String

firstmillion:~ jpc$ gem install -V knife-role-spaghetti
HEAD https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET https://rubygems.org/quick/Marshal.4.8/knife-role-spaghetti-0.0.5.gemspec.rz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/quick/Marshal.4.8/knife-role-spaghetti-0.0.5.gemspec.rz
200 OK
HEAD https://rubygems.org/specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
200 OK
GET https://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
200 OK
Downloading gem knife-role-spaghetti-0.0.5.gem
GET https://rubygems.org/gems/knife-role-spaghetti-0.0.5.gem
302 Moved Temporarily
GET https://bb-m.rubygems.org/gems/knife-role-spaghetti-0.0.5.gem
Fetching: knife-role-spaghetti-0.0.5.gem (100%)
200 OK
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/.cane
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/.gitignore
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/.travis.yml
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/Appraisals
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/CHANGELOG.md
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/CONTRIBUTING.md
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/Gemfile
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/LICENSE
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/README.md
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/Rakefile
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/features/cli.feature
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/features/graphing.feature
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/features/support/env.rb
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/gemfiles/chef_10_latest.gemfile
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/gemfiles/chef_11_latest.gemfile
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/knife-role-spaghetti.gemspec
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/lib/chef/knife/spaghetti.rb
/Users/jpc/.gem/gems/knife-role-spaghetti-0.0.5/lib/knife-role-spaghetti.rb
Successfully installed knife-role-spaghetti-0.0.5
1 gem installed
firstmillion:~ jpc$ cd chef
firstmillion:chef jpc$ knife role spaghetti
ERROR: TypeError: no implicit conversion of nil into String
firstmillion:chef jpc$ ruby -V
ruby: invalid option -V  (-h will show valid options) (RuntimeError)
firstmillion:chef jpc$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
firstmillion:chef jpc$ knife -v
Chef: 11.8.0
firstmillion:chef jpc$ uname -a
Darwin firstmillion.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
firstmillion:chef jpc$ neato -v
neato - graphviz version 2.34.0 (20131030.2223)
libdir = "/Users/jpc/.brew/Cellar/graphviz/2.34.0/lib/graphviz"
Activated plugin library: libgvplugin_quartz.6.dylib
Using textlayout: textlayout:quartz
Activated plugin library: libgvplugin_neato_layout.6.dylib
Using layout: neato:neato_layout
Activated plugin library: libgvplugin_core.6.dylib
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
	/Users/jpc/.brew/Cellar/graphviz/2.34.0/lib/graphviz/config6
		was successfully loaded.
    render	:  dot fig map pic pov ps quartz svg tk vml xdot
    layout	:  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
    textlayout	:  textlayout
    device	:  bmp canon cgimage cmap cmapx cmapx_np dot eps exr fig gif gv imap imap_np ismap jp2 jpe jpeg jpg pct pdf pic pict plain plain-ext png pov ps ps2 psd sgi svg svgz tga tif tiff tk vml vmlz xdot xdot1.2 xdot1.4
    loadimage	:  (lib) bmp eps gif jpe jpeg jpg pdf png ps svg
^Cfirstmillion:chef jpc$ neato -V
neato - graphviz version 2.34.0 (20131030.2223)
firstmillion:chef jpc$

i was getting this error
but i was getting array to string
i realized that i had
role_path      ["/git/chef/roles"]
where it should have been
role_path       "/git/chef/roles"


WIP: Test if 3D plotting is the problem [ci skip]

Okay so something about how we actually plot seems to be the problem. I'll see if I can debug in Windows...


[stable/mariadb] BUG REPORT: fail to re-deploy

Is this a request for help?:
Yeap
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

Version of Helm and Kubernetes:
v2.13.1@618447cbf203d147601b4b9bd7f8c37a5d39fbb4
Which chart:
stable/mariadb
What happened:
Everything is OK during the first time deploy; but fails if deploy again.
What you expected to happen:
Further deploy is successful.
How to reproduce it (as minimally and precisely as possible):

First deploy:

helm install --name mydb stable/mariadb

It works like a charm.

Then try to deploy again; to delete and re-deploy, or add some parameter and upgrade:

helm delete --purge mydb
helm helm install --name mydb stable/mariadb

Then the pod of mariadb keeps crashing.
Anything else we need to know:
Change another release name solve the problem. But if I want to tweak parameters, it fails.
If I turn off replicas the problem still exists.

Solved by deleting pvc.
BTW: Somehow helm delete --purge keeps pvc which is the root cause.

Hi,
Yes. By definition, the PVCs created by a StatefulSet are not deleted when deleting it. These are meant to be deleted manually


[Not for merge yet] Highlight  differently from

This is a port of changes in https://github.com/lezer-parser/javascript/commit/00173306dc20e2b1f364cc30b6de0398156e8f42.
See https://github.com/codemirror/dev/issues/956 for context.
I don't think merging this would actually work unless you backport the changes from https://github.com/codemirror/dev/issues/956 to the old version of @codemirror/highlight and @lezer/lang-javascript. Which I did in my local copy but maybe that's too much. I really want this change though.

A proper way would be to of course actually upgrade. And then do this PR.

It doesn't seem like this works even locally though. Not sure what's up.

Nvm. It does work. (With more other changes.)


Updates readme with latest hapi and lab changes

Includes the following changes to readme.md only in order to bring the hapi and lab syntax up to date:

In  the code for index.js:

Updates hapi with server.connection syntax for port (removing it from Hapi.Server()
Adds module.exports = server;

In  the code for hellovalidate.js:

Updates hapi with server.connection syntax for port (removing it from Hapi.Server()

In the code for test.js:

Adds var lab = exports.lab = Lab.script();
Changes variable Lab to lab
Adds code assertion library as required since hapi split them out

Changes test script in pakage.json from "test": "./node_modules/lab/bin/lab -c" to "test": "lab -c" as suggested in hapi (was causing error otherwise)

Also:

Some minor typo corrections
Addition of screenshot of clearer boom message in Boom section:

I hope this is useful @nelsonic! :information_desk_person:

sweet. :lollipop:


Re-add Pac-Man resolutions pack and Rayman Legends improvements

Pac-Man & The Ghostly Adventures 1 & 2 boot again on Cemu 1.19.0d, so I've taken the time to update and improve the graphic pack. I've also made a bunch of improvements on the graphic pack for Rayman Legends.

huh, what is conflicting?


tutorial getting started document - diabetes.csv data file missing link

Subject : tutorial getting started document - diabetes.csv data file missing link
Symptom : 404 page not found
Description :
In getting started tutorial document, missing "diabetes.csv" link.
Note: The training ML pipeline uses a sample diabetes dataset as training data. If you want to use your own dataset, you need to create and register a datastore in your ML workspace and upload the datafile (e.g. diabetes.csv) ...

diabetes.csv is linking to "https://github.com/microsoft/MLOpsPython/blob/master/data/diabetes.csv" link not "https://github.com/microsoft/MLOpsPython/blob/master/docs/data/diabetes.csv" this page.

The tutorial has been updated significantly.


SALT2 fit doesn't match datapoints - cry for help

Hi there!
I struggle for a long while to create a suitable fit to my data and since I'm running out of ideas, time and hope, I would be so happy if someone could help me out and have a look over my code.
I used data from a published supernova fitted with SALT2 so I can compare my results.
I converted the magnitudes via
vega.band_mag_to_flux(magnitude, band)
This is my relevant code:
vega.band_mag_to_flux(magnitude, band)

dust = sncosmo.CCM89Dust()
model = sncosmo.Model(source='salt2',
                      effects=[dust, dust],
                      effect_names=['host','mw'],
                      effect_frames=['rest','obs'])

model.set(z=0.000804)
model.set(mwebv=0.0088)
model.set_source_peakabsmag(-19.2, 'bessellb', 'vega') #effects x0 of model, not fitted model. Without: x0=1

result, fitted_model = sncosmo.fit_lc(data, model, ['t0', 'x0', 'x1', 'c'], phase_range=(-16, 25))

fig = sncosmo.plot_lc(data, model=fitted_model, errors=result.errors)

What I tried so far, among other things:

adapt hostebv / r_v as a parameter  -->  RunTime Error and values like hostebv = -0.016629,  hostr_v = +63280.407505.
vary phase range --> no effect
vary zeropints (just for testing) --> affects result of peakmagnitude, but not the fit
set z as a free paramter
guess_amplitude True / False

Further, I wonder a bit about the peak magnitude.
From my understanding, the following lines should do excatly the same, but they don't:
fitted_model.source_peakmag('bessellb', magsys='vega'))
and
x0_fit=fitted_model.get('x0')
vega.band_flux_to_mag(x0_fit, 'bessellb')

And last: I have to work with collected published data, so mostly I don't have information about zeropoints and systems.
I guess there is no way to overcome this issue?
Thanks in advance!
Cheers, Sabrina

Hi Sabrina! Sorry you were having trouble and didn't get a reply here. I have a few comments for you:
First, it looks like the fit is as good as it can be given the data: that is, the fitter found the best parameters possible: while adjusting the relative amplitude in different bands could improve the fit, the SALT2 model can't fit arbitrary offsets in each bands (by design): the c parameter adjusts bluer bands relative to redder bands, so decreasing c could make the b-band and i-band fit better, but at the expense of making the v- and r-bands fit worse.
This tells me that either (1) this SN has a really weird spectrum that doesn't match the SALT2 model, or (2) you made an error with the zeropoints or bandpasses of the data.
Was this SN really observed through Bessell filters? The filters should be the actual ones the data was collected in (or adjusted to).
The zeropoints and zeropoint system of the data are important, and can cause the fit you're seeing if not interpreted correctly. (There should really be an entire page in the sncosmo documentation on this; it is a common problem.)
Based on the first line of your code, I'm guessing that you have a table of magnitudes and bands, and you're converting those to flux. Are you sure the magnitudes you have are really in the Vega system? If they're actually in the AB system, you might see something like the fit you're seeing.
Some background: The "zeropoints" in sncosmo photometric data are somewhat arbitrary: you can multiply the flux by a factor of 10, and increase the zeropoint by 2.5, and the implied brightness will be the same (because magnitude = zeropoint - 2.5 * log10(flux) and magnitude is the thing that matters). In your code, if you do vega.band_mag_to_flux(magnitude, band), that gives the flux corresponding to a zeropoint of 0.0.
The magnitude system is the thing the magnitude is relative to: a magnitude of 20.0 in Vega means that the SN is a factor of 10**(20/2.5) dimmer than the Vega spectrum in that particular band. A magnitude of 20.0 in AB means some thing different: the SN is a factor of 10**(20/2.5) dimmer than the AB spectrum in that particular band. Changing the band or the magnitude system changes the meaning of the "magnitude" in terms of exactly how bright the SN is. And because Vega and AB have different relative brightnesses in different bands, assigning the wrong magnitude system to the data can cause relative offsets between bands.

A few other notes:

You shouldn't need to add a "host dust" effect when using the SALT2 model. The c parameter of the model is designed to capture host dust.

x0 is an abritrary model scaling parameter, similar to "amplitude" in other models, and has no intrinsic meaning in terms of flux through any particular band. So this code:
x0_fit=fitted_model.get('x0')
vega.band_flux_to_mag(x0_fit, 'bessellb')

doesn't do what you want.

And last: I have to work with collected published data, so mostly I don't have information about zeropoints and systems. I guess there is no way to overcome this issue?

If you have published magnitudes, the authors should also say what magnitude system they are reporting magnitudes in. (The magnitudes themselves are useless without this information!)

I'm going to convert this issue to a "discussion" for easier reference in the future, but feel free to continue the discussion there!


Setting a custom node interface ID field to support Supabase's Graphql ?

Describe the bug
According to the Supabase docs

By default relay expects the ID field for types to have the name id. pg_graphql uses nodeId by default to avoid conflicting with user defined id columns. You can configure relay to work with pg_graphql's nodeId field with relay's nodeInterfaceIdField option. More info available here.

Does Houdini have a config option like Relay's nodeInterfaceIdField to customize the expected node interface field name?
Reproduction
No response

If I remember correctly, you can set defaultKeys: ["nodeId"] in the config
https://houdinigraphql.com/api/config


compatibility?

This app works with xiaomi lights which are basically yeelights but under another brand? specifically lightbulb essentials.
Also, theres a way to use tokens instead of ids?

This plugin uses the LAN control API for Yeelights which Xiaomi lights do not support. There isn't much that could be used from this plugins code to support the different API that Xiaomi has - maybe there is another plugin that can help. I won't be adding it to this one.


add PipeChannel

Motivation:
There are use-cases for SwiftNIO where there are no actual sockets but
rather two pipe file descriptors - one for input, one for output.
There's no real reason why SwiftNIO shouldn't work for those.
Modifications:
Add a PipeChannel.
Result:
More use-cases for SwiftNIO.

@Lukasa / @normanmaurer this is getting pretty much ready. We need to settle on the correct behaviour for half-close from both sides and I'll add some more tests but the general shape is getting there. Feel free to have an early peek :)

At the moment, we're regressing 2 allocations per connection :|.

ping @Lukasa

@swift-nio-bot test perf please


Feature: input hints

Overview
Fixes #1062
Demo
https://jolly-sand-0ac78c710-1104.centralus.azurestaticapps.net
Notes
Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.
Testing Instructions

Click any of the sidebar samples
Notice an information icon adjacent to the query you selected.
Click on the icon and notice a callout with more information about the query you are running

The focus lines might be better off appearing when a user hovers over the link only
Also, could we use 'Learn more' instead of 'View documentation'?


Login and Register Integration Testing

Waiting on backend specs.
Require backend team to have server running to test.


Remove docker mixin

Resolves #2771
What is being addressed
We don't need the docker mixin anymore.

/test

/test-extended

/test-force-approve
changes after a successful test-extended run are only docs.

/test-force-approve


update readme regarding minor version bump

:+1: does/will the internal release checklist just link to this as a step?

yes! @btm just waiting to push this so I get a good link

+1


How to display a badge with the count of unread notifications?

Hi, this is a great project!
I just can't figure out how to display a badge showing the number of notifications!
Thanks!

Hey @DanielFerreiraJorge ,
You can use django ORM's .count() method to count the number of notifications you want.
# to count all notifications
{{ user.notifications.count }}

# to count only unread notifications
{{ user.notifications.unread.count }}

# same with in the view
notification_count = request.user.notifications.count()
unread_notification_count = request.user.notifications.unread().count()

Hi, thank you very much for the answer!
It worked but I noticed that the number does not increase when new notifications are polled... is it possible to achieve this?
Thanks!

Yep, it is totally possible. That's what the AJAX update feature does for you.
The update notification fetches new notifications every 5 seconds, the JSON data returned has a both normal and unread notification count.
You can override the update_success.js file (it is a simple js function based on jQuery) to modify the comment count badge every time new notifications are received as JSON data.

Haha... thanks!! very easy!

I am closing the issue assuming that I've answered all your concerns.
Feel free to open the discussion if you didn't get your answer :+1:

Hi!
I tried your solution but now, every time I reload the page the counter goes to 0.
Any suggestions on this?


Handle viewport aspect ratio not matching viewport dimensions.

This fixes part of #680.
If an Editor viewport is viewing a particular camera, and that camera specifies an aspect ratio that doesn't match the dimensions of the viewport window, Unreal draws black bars at the sides or at the top and bottom, i.e. letterboxing. No real surprise there, of course.

The perhaps more surprising thing is that FEditorViewportClient::GetViewportDimensions returns the size of the complete window, not the size of the portion in which rendering occurs. That is, the black bars are included in the size.
Having not realized or appreciated this, we were using the window dimensions for LOD computations, and computing the vertical FOV from the aspect ratio implied by the window dimensions. This caused LOD and culling problems, as seen in #680.
So with this PR, we use the actual aspect ratio, and compute the dimensions of the rendered area.
This PR also has a change to get the viewport size from the player controller in-game, rather than the world's game viewport. I don't know of a situation where this will make a difference, but it should be more correct.
Unfortunately this doesn't fix #680. Even with this change, when we're using the Movie Render Queue specifically, the player controller's GetViewportSize always returns 1920x1080 even when a different size has been specified. I spent hours trying to figure out how to get the actual size, but haven't figured it out yet. I wrote a UDN ticket to ask Epic:
https://udn.unrealengine.com/s/question/0D54z00007LQvtdCAD/how-to-get-the-viewport-size-when-using-the-movie-render-queue
So this PR should be a good change worth merging, but some additional work will likely be necessary when we hear back from Epic.

Thanks for the pull request @kring!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

[ ] Cesium for Unreal Samples works.


Create strings.xml

I went ahead and merged #254. Would you argue that the translation provided there is incorrect and should instead be replaced by your proposal?


Question Regarding Channel Independence Code Implementation

Thank you for your previous response and for sharing your work with us!  I noticed that your paper mentions a method introducing channel independence. However, I couldn't locate the corresponding implementation in the model's code definition. Could you kindly point out where this part of the code is implemented?
Thank you once again for sharing! Looking forward to your reply.

Hi @cccccrj, the relevant code should be here:
https://github.com/liuxu77/UniTime/blob/09acfbe9c63fc67db7539590094ac5f328230654/models/unitime.py#L100

Thank you for your response. I have some confusion. The reshape operation you mentioned is essentially transforming the original BxFxPxH tensor into a 3D shape to adapt to the subsequent feature projection layer. You used a Linear layer to map patch_len to d_model. However, I don’t quite understand the relationship between this operation and channel independence.
Channel independence usually means that features in different channels do not influence each other, and the weights of each channel are independent. However, your approach seems more like reshaping the tensor to fit the input shape of the embedding layer, during which the channel features are mixed, rather than directly achieving channel independence. Could you clarify my confusion further? Thank you again for your previous answer.

Hi @cccccrj, the reshaping operation basically combines the first two dimensions: B and F, into one dimension (the F here corresponds to the variable dimension). After combination, the variables are treated as the instances in a batch. Would this explanation resolve the question?


--nameserver option no longer parses multiple nameserver

I noticed that in 1.16.0 it does not appear to be able to parse multiple comma separated nameservers. It looks like param parsing changed a lot. Is there a test for this? or any reason to think there is a regression?  I was seeing the following error:
DNS fowarding for 'dial udp: too many colons in address "<IP_ADDRESS>:53,<IP_ADDRESS>:53"' failed: no more nameservers to try

You can pass mutiple nameserver by passing multiple --nameserver arguments.
It prevents dnsdock to parse the argument --nameserver and let the arguments parsing library to deal with that.

That was it. Using multiple --nameserver arguments works. Thanks. We should likely update the docs to represent that.


Missing lm_head.weight key when using Gemma 7B distributed LoRA recipe with gemma-7b-it

Hi,
I'm having an issue with using the distributed LoRA recipe with instruction-tuned Gemma 7B via the torchtune CLI. The unexpected behavior is very similar to the bug raised in issue #1062 and solved in PR #1064, but instead of the lm_head.weight key being missing from the state_dict, it's missing from the weight_map field of the checkpointer.
After training is complete, torchtune attempts to split the state_dict beginning at line 506 and indexes into self._weight_map at line 508, at which point it errors:
split_state_dicts: Dict[str, Dict[str, torch.Tensor]] = {}
        for key, weight in state_dict[utils.MODEL_KEY].items():
            cpt_idx = self._weight_map[key]  ### fails here
            if cpt_idx not in split_state_dicts:
                split_state_dicts[cpt_idx] = {}
            split_state_dicts[cpt_idx].update({key: weight})

It raises: [rank0]: KeyError: 'lm_head.weight'
I'm using the default config from the recipes folder, except that the checkpointer reads from and outputs to a directory where I've downloaded gemma-7b-it straight from the HF hub. This is on the latest build of torchtune.
Thanks in advance for your help!

Hey @aubreyjstrier. Thanks for raising this.
I think you're right about it being similar to the earlier issue. Re-reading my earlier fix and some of the HF code, I don't actually think we needed those changes. Huggingface models should generally be loaded and saved using from_pretrained, and save_pretrained, which take care of tied embedding weights - the issue at hand was loading weights directly into the model. The Gemma 2B checkpoint doesn't have a keys for an output projection.
At first glance: I think the reason it's failing here is because we build a map of key : {checkpoint_file_id} for the model state dict, so we know to save tensor_0 in checkpoint 0001 and so on. When saving the checkpoint, we don't have an entry for lm_head since we didn't load one from the HF checkpoint in the first place.
I'll have a closer look later but I would be tempted to revert the changes in my PR with some additional testing. cc @pbontrager @ebsmothers

@SalmanMohammadi can you share which PR you're referring to? I assume we can update the checkpoint mapping but I want to see the change.

https://github.com/pytorch/torchtune/pull/1064
I think the issue that the PR was solving was due to the way the user was loading weights into a HF model (i.e. not using from_pretrained, rather than anything to do with our checkpointing.

I'm running into this issue, as well. Will update this Issue as I figure things out.

Reverting #1064 gets the following error trace
Traceback (most recent call last):
  File "/home/jrcummings/.conda/envs/joe-torchtune/bin/tune", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/jrcummings/projects/joe-torchtune/torchtune/_cli/tune.py", line 49, in main
    parser.run(args)
  File "/home/jrcummings/projects/joe-torchtune/torchtune/_cli/tune.py", line 43, in run
    args.func(args)
  File "/home/jrcummings/projects/joe-torchtune/torchtune/_cli/run.py", line 179, in _run_cmd
    self._run_single_device(args)
  File "/home/jrcummings/projects/joe-torchtune/torchtune/_cli/run.py", line 93, in _run_single_device
    runpy.run_path(str(args.recipe), run_name="__main__")
  File "<frozen runpy>", line 291, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jrcummings/projects/joe-torchtune/recipes/lora_finetune_single_device.py", line 648, in <module>
    sys.exit(recipe_main())
             ^^^^^^^^^^^^^
  File "/home/jrcummings/projects/joe-torchtune/torchtune/config/_parse.py", line 50, in wrapper
    sys.exit(recipe_main(conf))
             ^^^^^^^^^^^^^^^^^
  File "/home/jrcummings/projects/joe-torchtune/recipes/lora_finetune_single_device.py", line 643, in recipe_main
    recipe.train()
  File "/home/jrcummings/projects/joe-torchtune/recipes/lora_finetune_single_device.py", line 625, in train
    self.save_checkpoint(epoch=curr_epoch)
  File "/home/jrcummings/projects/joe-torchtune/recipes/lora_finetune_single_device.py", line 517, in save_checkpoint
    self._checkpointer.save_checkpoint(
  File "/home/jrcummings/projects/joe-torchtune/torchtune/utils/_checkpointing/_checkpointer.py", line 535, in save_checkpoint
    ] = convert_weights.tune_to_peft_adapter_weights(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jrcummings/projects/joe-torchtune/torchtune/models/convert_weights.py", line 282, in tune_to_peft_adapter_weights
    value = _permute_lora_matrix(value, num_heads)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jrcummings/projects/joe-torchtune/torchtune/models/convert_weights.py", line 274, in _permute_lora_matrix
    t.view(n_heads, head_dim // 2, 2, rank)
RuntimeError: shape '[16, 96, 2, 8]' is invalid for input of size 32768

Reverting #1064 gets the following error trace

This also looks like a different error to the original poster - strange. FYI the small test I wrote for Gemma checkpointing passes if I use the original checkpointing logic - https://gist.github.com/SalmanMohammadi/e59ff24add75d37a2b81eeaccbff057c.

Just getting caught up on some of this.. I think we should treat this as two separate pieces.
(1) we should revert #1064. I don't think the usage of load_state_dict in #1062 is the correct way to load from a torchtune model with tied weights into an HF model with tied weights. Imo we should adhere to the format actually provided on the hub, which does not contain lm_head.weight. So I think we were doing the correct thing before. The reason HF's from_pretrained works with this checkpoint is because of their usage of _tied_weights_keys (as pointed out by @SalmanMohammadi in the original PR). But I don't think we should try to replicate this on our end; better to adhere to the contract that we return the same state dict format at the end of training as what we got in (i.e. one that doesn't contain lm_head.weight). If we want to load a torchtune checkpoint directly into the CausalLM version of Gemma (which has patched in an extra weight on the backend), it's natural to ask the user to write the same corresponding glue code.
(2) the new error seems to be coming from our PEFT integration. I already chatted with @joecummings about this a bit, but because Gemma 7B does not satisfy num_heads * head_dim = embed_dim, we may need to change this function for saving our LoRA weights into PEFT format. I imagine we will want to just explicitly pass head_dim instead of inferring it like we currently do. Note that we only need to permute the LoRA B matrix (exercise to the reader to figure out why) so we don't need to worry about permuting the A matrix, which now will not have any knowledge of num_heads or head_dim


Proposal: use methods annotation to customize http methods

When writing HTTP APIs I would love to use the right HTTP methods to model my API. I would love to use GET methods for "read" requests and POST for creating new things.
This could be implemented by method annotations, something like:

// @microgen http, middleware, logging, recover, main
type StringService interface {
        // @post
	SaveString(ctx context.Context, name string) (str string, err error)
	// @get
        GetStrings(ctx context.Context) (str string, err error)
}

In this way, it should be in theory possible to generate a REST api that looks okay such that clients of this API can use it while not running go or microgen.
What do you think?

This was implemented, closing.


New Crowdin updates

Note - we will want to squash and merge once approved

Note this pr has been squashed and signed in #452


ui: Move Google Map

Moves the Google Maps to the top of the page.
Here's a preview:

@tronicdata Could you take a look at this and tell me what you think?


Add Docs, changelog for 1.4 dnssec refresh

What does this PR do?
Fixes #3025
Also adds a changelog entry for the new endpoint.
Which TC components are affected by this PR?

[x] Documentation
[ ] Grove
[ ] Traffic Analytics
[ ] Traffic Monitor
[ ] Traffic Ops
[ ] Traffic Ops ORT
[ ] Traffic Portal
[ ] Traffic Router
[ ] Traffic Stats
[ ] Traffic Vault
[ ] Other _________

What is the best way to verify this PR?
Build the docs, open in a web browser, verify API 1.4 cdns page looks reasonable.
Check all that apply

[ ] This PR includes tests
[x] This PR includes documentation updates
[x] This PR includes an update to CHANGELOG.md
[ ] This PR includes all required license headers
[ ] This PR includes a database migration (ensure that migration sequence is correct)
[ ] This PR fixes a serious security flaw. Read more: www.apache.org/security

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2788/
Test FAILed.


Support for libxc@7 and update Spack package

Looks like libxc@7 removed #include <xc_funcs.h> from xc.h and therefore it needs to be included explicitly.
I added the constraint to the Spack package, and will reflect that upstream.
I took the opportunity to update the local Spack package, which has gotten quite out of sync with upstream. (We should probably refine our release procedure.)
Changes to the Spack package compared to upstream:

Added constraint on libxc
Added explicitly dependency on C language
Fixed a few TODOs that were left in the package

Whoops. Looks like I had the wrong branch selected when trying to install. Sorry for the noise.


Explore page

🗺

Thanks Matt! What's left here?

[ ] category tree modal
[ ] category favorite select modal
[ ] hooking up trending api

and some odds and ends that are in the trello board

this is dependent on https://github.com/hummingbird-me/hummingbird-server/pull/127


Send JSON to Freeboard

Hi,
I have been using for long time Dashing.io, that allows websockets communication and it is posible to update a widget/datasource using an API.
Im monitoring stuff with python and powershell and i want to send the JSOn results to the dashboard or some datasource.

Here's an example Python flask app (I do robot stuff, hence the variable names below):
# server.py

import numpy as np
from flask import Flask
from flask import jsonify
from flask_cors import CORS

app = Flask(__name__)
CORS(app)

@app.route('/', methods=['GET'])
def mock_robot():
    joint_angles = np.random.uniform(low=-180, high=180, size=(7, 1))
    joint_torques = np.random.uniform(low=-10, high=10, size=(7, 1))
    pose = np.random.uniform(low=-100, high=100, size=(6, 1))
    wrench = np.random.uniform(low=-100, high=100, size=(6, 1))
    data = {
        'joint_angles': joint_angles.tolist(),
        'joint_torques': joint_torques.tolist(),
        'pose': pose.tolist(),
        'wrench': wrench.tolist()
    }
    return jsonify(data)

if __name__ == '__main__':
    app.run(host='YOUR_IP')

When you run the above script, you should see something similar to the following:
 * Running on http://<IP_ADDRESS>:5000/ (Press CTRL+C to quit)
In Freeboard, set the a datasource with the following:

Type: JSON
URL: http://<IP_ADDRESS>:5000/ (in the case of the above output)

Your Python/JSON data should now be available in Freeboard.


Captcha suggestion

I just have a suggestion, apologies if I'm breaking any rules. Not tryna gain clout or whatever, but I'm sure it would be possible to implement some kind of buster solution like my own Arkose Labs solver which I made because I was sick of the existing solutions or lack thereof. Epic Store is based (not based and redpilled, its bloat) on Electron so it has full Chromium inside. You can try implementing an IBM-Watson using solution/breaker such as the one I made
I'll be working on it and I'll open a pull request. Let me know if it would be welcome
edit: formatting. also its not a bug, i didnt put that flair there

The Epic Games Store login exclusively uses hCaptcha now. The purchase captcha may still be Arkose, but if we're emailing captchas anyway, it might be overkill to solve the one encountered rarely.
Also, it looks like your Arkose solver is solving the number-based audio captcha. This project actually formerly solved those automatically using the Google Speech-to-Text API. However, Epic eventually upgraded their Arkose audio captcha to the latest crowd noise identification problem, so speed recognition services no longer work.
Ultimately, the inherent struggle of automating captcha solves is a technological arms race, and the best solution is to just have a human solve it.


How to get previously deployed contract details?

In hardhat-deploy, it's possible to do this:
const deployment = await hre.deployments.get('...');

Is there a similar way to get contract details using @openzeppelin/hardhat-upgrades? I have a contract that depends on the address of another contract and would like to make the deployment as automated as possible.
Thanks!

We don't offer an out of the box way to get this information.

While hunting down for a similar solution, I crawled across https://ethereum.stackexchange.com/questions/103530/how-to-get-implementation-address-after-deployproxy-open-zepplin-hardhat-up and https://forum.openzeppelin.com/t/integrating-hardhat-deploy-and-openzeppelin-hardhat-upgrades/5585/4
So I guess a general effort towards the possibilities to ease the user-pain of copy/pasting the address of a newly deployed contract is underway.
Could saving the newly deployed proxy contract information as part of .openzeppelin files be an easy solution to help here?
Meanwhile, it's a plain pain to save every deployed contract information  for each network :(

@Magicking Do you have a preferred way of handling this for non-upgradeable contracts?

Not sure to understand the question, my issue is related to upgradeable contracts and the possibility to get the full information of a deployed instance and particularly the possibility to obtain the address of a proxy from other scripts.
It seems that the proxy addresses are present but I'm not certain of the best way to fetch them.

https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/680
Hi, guys, I think it's related but in my issue, I propose a preferred way to save the data fr hardhat at least

If you are using hh deploy you can save previously deployed contracts with pattern like this
`  // Token code
const Token = await ethers.getContractFactory('TestToken');
const token = await Token.deploy();
await token.deployed();
const artifactToken = await deployments.getExtendedArtifact('TestToken');
let tokenDeployments = {
address: token.address,
...artifactToken
}
await deployments.save('TestToken', tokenDeployments);
`


[Project] Test Flight Deployment v1.0.0(1)

[Project] Test Flight Deployment v1.0.0(1)

고생많으셨습니다!


Reset templating pre-built status

The repo should not actually have been removed. See #994. I've reopened #895

FYI, @mlorbetske.


Sans-serif font isn't rendering on website

https://next.carbondesignsystem.com/guidelines/typography/overview#typeface-ibm-plex

"IBM Plex Serif" should be rendered as Plex, seems we aren't bringing this font in anymore.

Some history in case it helps; In v9 codebase we define something like ibm-plex-sans. @carbon/type defines something like IBM Plex Serif. That said, we need @carbon/type code to get IBM Plex Serif rendered.

we are importing @import '@carbon/type/scss/font-face/serif'; and I thought this was working at some point. will look in to it more to see what's missing or what changed


Multiple calls to Close will panic

It's probably worth noting in the documentation that, for the non-backwards-compat branch, more than one call to Close will panic.

@FiloSottile fixed this with https://github.com/braintree/manners/pull/29.


False negative of no-unnecessary-qualifier

Bug Report

TSLint version:
TypeScript version: 3.1.0
Running TSLint via: CLI

TypeScript code being linted
export namespace outer {
  export type Foo<X> = X[]

  export namespace inner {
  	export type Foo = outer.Foo<number>
  }
}

with tslint.json configuration:
{
	"no-unnecessary-qualifier": true
}

Actual behavior
TSLint should yield no error
Expected behavior
It yields error

Seems like a duplicate of #2413. Same for here: it's spooky that there's an outer.Foo and an inner.Foo. Although the rule should be fixed to handle these cases, we should try to avoid them as much as possible.


add a new hexo plugin: hexo-filter-hide-content

Thank you so much for your contribution.


M3-1747 - Add JIRA changelog comparison tool, Add Pre-push hook

This PR adds a helper script that will output the commits in a new version that contain JIRA tickets in the Commit name and PR's that do not contain JIRA tickets. The purpose is for QA and Product Ownership to easily track changes that get into the manager project but are not documented in JIRA).

I have also added a new module for githooks in the project called Husky. This allows us to have pre-push hooks, along with pre-commit and all the other hooks available in git.

I've set up a pre-push hook that will prevent pushing a branches that don't include a manager ticket in the branch name. This can be overridden with --no-verify. I figured this would be a good way to enforce JIRA as the single source of truth of what work goes into the Manager project.
However, if we find this cumbersome, I'm OK with changing it to a warning.
To Test the Compare tool:
yarn compare $NEW_VERSION_TAG_1 $OLDER_VERSION_TAG_2
yarn compare v0.38.0 v0.37.1

To Test the Pre-push Hook:

Branch off this PR
Name the branch something that does not include a Manager JIRA ticket
Attempt to push
Observe, failure and warning

Coverage remained the same at 27.746% when pulling d4fa20411994e1d321b8dddb41d1ccb777e07ca8 on patthiel:M3-1747 into 3d94f9acd53387b87f6480ee3631900cbd772bac on linode:develop.


Dropdown: Add description (sublabel)

Does the component already exist

[X] I confirm that I have checked if the component already exists in any of the Green libraries

For which framework/library you are requesting the component
Angular
Description
Add possibility to provide a description/label information to the dropdown as shown in the example below:

Who will benefit from this feature?
Accessibility
Anything else?
No response

Similar issue: #1048


Nuri/update: Updated market page for stocks and indices

Changes:

Update stocks and indices sections for market page

Type of change

[ ] Bug fix
[ ] New feature
[X] Update feature
[ ] Refactor code
[ ] Translation to code
[] Translation to crowdin
[ ] Script configuration
[ ] Improve performance
[ ] Style only
[ ] Dependency update
[ ] Documentation update
[ ] Release

Hi @njazuli-deriv , from the design the hero graphic is different. Also you may need to replace images/common/deriv-platform-banner.png with phone image found in the design.

Hi @arome-binary , for footer banner, there will be no changes for this card yet since we are focusing more on Stocks & Indices details first.


Respect node version

Depends on #7 and #6
This makes the tests much much slower as fetching the available versions from the dockerhub is really slow (but is cached for an hour after that),  however it's needed to fix a regression in the resin-builder - it may be possible to speed this up but I haven't had time to dig into that
You can compare with the code in https://github.com/resin-io/resin-builder/blob/53029f2c3dea7d43c571e2170ebe7bd41f02554f/src/project-types/nodejs.coffee
 Front conversations

Given that we will fail the build if a the node tag cannot be found, surely we should just allow docker to do the checking for us as it is a lot quicker and the end result is the same?
E.g. don't try to pull all of the tags down, and instead request the image with the tag and if that fails we know it does not exist.
Is there some reason that we cannot do this?

@CameronDiver that is the node version after we've resolved a range, eg if the engine is ^8.0.0 then 8.0.0, 8.1.0, 8.1.1, etc are all valid, so if we just use '8.0.0' and it doesn't exist then the build will fail when it doesn't actually need to (and on top of that we aren't really following what the range means either) - so we need to know all the available versions for the semver range resolution

I actually addressed that in the PR description @CameronDiver, I agree there may well be ways to speed this up (the dockerhub requests are a huge part of the speed issue, as each one is fairly slow and only returns ~10 tags out of a lot (1000s?)) - but I just want to get things working again


Added Ent chopping animation to AnimationID list.

Also added case for Ent trunk animation in idle notifier plugin. Verified idle notifier working when idle after chopping ent trunk.
Closes #12898

The idle notifier additions seem to be missing the crystal/trailblazer axes. Is that intentional?

I couldn't verify that they worked properly, so I did not include them.

This needs rebase. Also, the standard trailblazer animation IDs are present in #13019, so the crystal/trailblazer/infernal trailblazer IDs should be fairly easy to find by using ::anim via the dev tools, even if you don't own the tools themselves.

This needs rebase. Also, the standard trailblazer animation IDs are present in #13019, so the crystal/trailblazer/infernal trailblazer IDs should be fairly easy to find by using ::anim via the dev tools, even if you don't own the tools themselves.

Also added case for Ent trunk animation in idle notifier plugin. Verified idle notifier working when idle after chopping ent trunk.
Closes #12898

How can i add this code to my RuneLite app? would love to have this notifier.

Closing as this PR is stale.


Add a skill to find missing people in a meeting

If your PR is related to a contribution to the taxonomy, please, fill
out the following questionnaire. If not, replace this whole text and the
following questionnaire with whatever information is applicable to your PR.
Describe the contribution to the taxonomy
The current model cannot list all the people who are missing in a meeting.
For example if there are 3 people missing, the model can only list one or two people.
Input given at the prompt
We should have Lily, Lucy, Tom, Tim, David and Pei attending this meeting,we only see David, Pei, Tom and Tim here, tell me who are missing?
Response from the original model
│ #### In the meeting today, we expected to see Lily, Lucy, Tom, Tim, David, and Pei. However, we only see David, Pei, Tom, and Tim present  │
│ at the moment. Therefore, the individual who is currently missing from the meeting is:                                                     │
│                                                                                │
│ 1. #### Lucy: She was expected to be present in the meeting but is currently absent.
Response from the fine-tuned model
We expect (still training in progress):
Lily and Lucy are missing.
Contribution checklist

[x] The contribution was tested with lab generate
[x] No errors or warnings were produced by lab generate
[x] All commits are signed off (DCO)
[x] The qna.yaml file contains at least 5 seed_examples
[x] The qna.yaml file was linted and prettified (yaml-validator can do both)

Note: lab generate output:
INFO 2024-03-14 01:17:55,921 generate_data.py:373 Generation took 5958.84s

Thank you for your contribution to InstructLab! Unfortunately, once a Github repo is made public, all open PRs are automatically closed since they link against a private repo. We have detected that your PR might have been one of the ones affected by this change. If you are still interested in contributing your improvement, please fill out the following short form by no later than May 3rd, and we will get back to you with the additional steps necessary once we have had time to assess the PRs of those still interested:
https://forms.gle/V7SrPPMZDo6iGDYu8


Math exception in OARMIK class for out of reach coordinates

Math exception in OARMIK class for out of reach coordinates. Need to add exception handling around trigonometric functions.

Added exception handler for 'alpha' angle calculation. X,Y,Z reach with arm dimensions yields an illegal cosine value.


Remove History Section

The history section will no longer be used so this should be removed from the site. This is a good first issue for those who want to learn about the project structure

Closed by #215


getSearchSelectors and reduxSearch question about resourceSelector

Hello,
I can't figure out why there is a resourceSelector for both functions.
resourceSelector for getSearchSelectors is mandatory or does it use reduxSeach one by default?
In readme.md there a typo
const {
  text, // search text
  result // book ids
} = getSearchSelectors({
  resourceName: 'books',
  resourceSelector: (name, state) => state.resources.get(resourceName)
})

should be
const {
  text, // search text
  result // book ids
} = getSearchSelectors({
  resourceName: 'books',
  resourceSelector: (name, state) => state.resources.get(name)
})

Hi @amelon,

I can't figure out why there is a resourceSelector for both functions.

I'm not sure I understand your question- but if I'm reading it right, you use the text selector returned to wire up the current value to a managed input or display your current search text perhaps. You use the result selector to display matching results in your view. Does this help clarify any?
Thanks for pointing out the typo in the docs. I'll update them.

Hello @bvaughn,
I will try to make it clearer.
In your example, you declare
const enhancer = compose(
  applyMiddleware(...yourMiddleware),
  reduxSearch({
    resourceIndexes: {
      books: ['author', 'title']
    },
    resourceSelector: (resourceName, state) => {  // <- resourceSelector #1
      return state.resources.get(resourceName)
    }
  })
)

And then in the connecting part
const {
  text, // search text
  result // book ids
} = getSearchSelectors({
  resourceName: 'books',
  resourceSelector: (resourceName, state) => (  // <- resourceSelector #2
    state.resources.get(resourceName)
  )
})

Actually, I'd like to understand usefulness of resourceSelector #2.
It is the same responsability at different time. I think  resourceSelector #2 could be optional.

Thanks for clarifying.
The way redux-search was written, getSearchSelectors is just a tiny helper function to make creating selectors more convenient. It's not stateful (eg. it's not connected in any way to the middleware you created when you passed the result of reduxSearch to compose).
I think you're right that it would be possible to refactor the code so that the 2 factor functions shared more data. If you'd like to contribute a PR, let's chat more about what you have in mind. As for my use of the library, it's pretty trivial to pass a shared function to both redux-search factories so it's not a big deal. Something like...
export function reduxSearchResourceSelector (resourceName, state) {
  return state.resources.get(resourceName)
}

...that is then imported and passed to both reduxSearch(...) and getSearchSelectors(...).

I'm going to close this issue for now since it's not actionable. We can keep chatting here though. :)


Add option  for personal dictionary to be in package.json

I have too many files in my repository's root. For this reason, I would like to be able to move my personal dictionary to package.json. Like this:
{
  "name": "myProject",
  "dictionary": [
    "word1",
    "word2",
    "word3",
    ...
  ]
}

Thanks for the issue! This makes sense to me as a feature. I've seen other NPM packages like Babel or Husky do something similar. I'm imagining something similar to what you suggested: allowing users to put a dictionary under a top-level spellchecker key in package.json:
{
  "spellchecker": {
    "dictionary": ["..."]
  }
}


Pagination Styling

material-react-table version
2.0.4
react & react-dom versions
18.2.0
Describe the bug and the steps to reproduce it
First of all: v2 is amazing so far, thank you for the amazing work.
While upgrading to v2 I realized the Pagination no longer has the css class MuiTablePagination-root. I did a lot of styling in v1 via css, this makes it a bit more complicated (though i found a temporary workaround for now)
I tried using muiPaginationProps to set this class again via `className' , but this didnt work as well.
Minimal, Reproducible Example - (Optional, but Recommended)
Screenshot below is from one of the pagination examples: https://codesandbox.io/p/devbox/material-react-table-example-remote-7n2vhr
I also tried adding muiPaginationProps: { className: "someClassName" } as property, but it didnt seem to change anything as well.
Screenshots or Videos (Optional)

Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms

[X] I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

yeah the pagination component got rewritten in v2, as the built-in MUI one had a ton of issues I had to constantly override and fix.


Embedding for multiscale patches

Hello,
I really like this repo!
Do I understand correctly that the embedder currently only supports single scale patches?
Thanks!
Anne

Yes. The functions for multiscale features will be updated later.


⚠ SceneTime has degraded performance

In ff81626, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1796 ms

Resolved: SceneTime performance has improved in 5416667 after 9 minutes.


Ark: Survival Evolved not working for me

So I am making a Discord.JS bot called Yamamura and I wanted to implement gaming servers into it. Unfortunately, when trying to implement a ARK: Survivor Evolved command, the bot will not respond, even though all the other commands work.
This is my javascript code:
let IP = '<IP_ADDRESS>:7783'
let embed = this.client.util.embed()

    IP = IP.split(':');
    let fullIP = IP.join(':')

    let host = IP[0];
    let port = IP[1] ? parseInt(IP[1]) : 27015;

    console.log(host, port, IP, fullIP)
    try {
      let data = await source.query({
        type: 'arkse',
        host: host,
        port: port
      });

      embed
        .setColor("BLUE")
        .setTitle(data.name)
        .setDescription('[ARK: Survival Evolved](https://store.steampowered.com/app/346110/)')
        .addInline('Server IP', `\`${host}:${port}\``)
        .addInline('Players', `${data.players.length}/${data.maxplayers}`)
        .addField('Map', data.map)
        .setImage('https://cache.gametracker.com/server_info/'+host+':'+port+'/b_560_95_1.png')

      if (data.players.length) {
        let players = [];
        let scores = [];
        let pings = [];
        for (var player of data.players) {
          players.push(player.name);
          scores.push(player.frags);
          pings.push(`${player.ping}ms`);
        }

        embed
          .addInline('Player', '````http\n'+players.join('\n')+'```')
          .addInline('Score', '```http\n'+scores.join('\n')+'```')
          .addInline('Ping', '```http\n'+pings.join('\n')+'```')
          .addField('Join', `<steam://connect/${host}:${port}>`)
      }

      if (data.password) {
        embed.setFooter(`Private Server`, 'https://cdn.discordapp.com/attachments/371531450182402081/573395978833494027/lock.png')
      }

      message.channel.send({embed});
    } catch (e) {
      if (e.toString().includes('UDP Watchdog Timeout')) {
        embed
          .setColor("#FF0000")
          .setTitle("Error: Game server offline")
<EMAIL_ADDRESS>please try connecting to ${fullIP} at a later date`)
          .setYamamuraCredits(true)

        message.util.send({embed});
      } else {
        console.log(e);
      }
    }

This is my console:
<IP_ADDRESS> 7783 [ '<IP_ADDRESS>', '7783' ] <IP_ADDRESS>:7783

Error: Failed all 1 attempts

    at QueryRunner.run (/rbd/pnpm-volume/6959811c-1d7b-489f-b1f0-281ae0d8936c/node_modules/.registry.npmjs.org/gamedig/2.0.14/node_modules/gamedig/lib/QueryRunner.js:88:21)

Attempt #1 - Port=7783 Retry=0:

Error: UDP - Timed out after 2000ms

    at Timeout.setTimeout (/rbd/pnpm-volume/6959811c-1d7b-489f-b1f0-281ae0d8936c/node_modules/.registry.npmjs.org/gamedig/2.0.14/node_modules/gamedig/lib/Promises.js:7:25)

    at ontimeout (timers.js:436:11)

    at tryOnTimeout (timers.js:300:5)

    at listOnTimeout (timers.js:263:5)

    at Timer.processTimers (timers.js:223:10)

I do not believe that this is an issue on my end, considering that other commands with similar code work. If there is any further things I need to do, please let me know

This is the server I tried accessing BTW: https://arkservers.net/server/<IP_ADDRESS>:27021

Gamedig attempts to find the query port automatically, but this is not possible in all cases (when the offset is not deterministic). You are passing port = 7783, but you need to pass 27021.


Added Logical deduction of sequence order given conditions

As described in the README:
This task requires deducing the order of a sequence of objects from a minimal set of conditions. Each instance involves a set of three to seven similar objects in a naturally ordered context (e.g. books of various colors sitting on a shelf) and a set of simple clues regarding their placement (e.g. "the red book is to the right of the green book") such that no clue is redundant. The challenge is to then assign the highest probability to correct statements about which object lies at which position.
Authors: James Simon and Chandan Singh<EMAIL_ADDRESS>and<EMAIL_ADDRESS>

@googlebot I fixed it.

@googlebot I consent.

Thank you for submitting your task! We are in the process of pairing submissions with task reviewers and will be in touch soon.

@AnnaGolubeva,
Thanks for the thoughtful comments, suggestions, and questions! We have done our best to address your concerns below:
Re: Specificity - In response to your questions, we added several details regarding puzzle generation to the “Technical details”. We clarify how we generate the puzzles and verify that they are logically consistent. We also added details about the different orderings and relationships between objects. We also rewrote our explanation of how many “questions” this task involves.
Re: Thoroughness - We have added details around thoroughness to the “Technical details” section of the task. We algorithmically verify that the clues are not inconsistent (i.e. they have exactly one solution) and manually verified that questions for each of the different object properties (e.g. books) and relationship types (e.g. spatial) do not have grammatical issues.
Re: Limitations - We removed our point about contradictory statements in real human language, since it is somewhat confusing and has very limited applicability to our task. For the sake of explanation, here is more detail:
One confounder is that even a perfect model of human language might ascribe logically inconsistent statements a nonzero probability. One reason is that natural language contains mistakes; humans occasionally make contradictory statements of various types, and a perfect language model trained to mimic human language should therefore also occasionally make logical mistakes. It is theoretically possible that a model could perfectly understand a logical deduction challenge yet assign the highest probability to a wrong answer because (in loose terms) it believes that a human would have gotten it wrong. We assume that logical consistency is far more common than inconsistency in natural language and this effect is small enough that it is not a problem.
Re: Difficulty - We clarified notions of difficulty in the technical “Technical details” section.
Re: Behavior of existing language models on task - yes your understanding is correct. We removed some distracting details from this section of the readme to make it clearer.
Re: Novelty / justification - we are glad you agree that the task seems appropriate and clear :)
Thanks again for your thorough comments - our task’s definitely clearer as a result.

Hi,
thanks for the clarifications! The readme is much clearer now and the task description easier to follow. In particular the "Technical details" section is helpful.
A consideration re composition of the task: For a given N, you have 20 random seeds for each of the 5 contexts, resulting in 100 puzzles. That is, there are 20 puzzles for each context. For N=3, there are 6 possible configurations of the objects, and, according to your  puzzle generation rules, 27 possible formulations that describe the configuration, not all of which are equally probable; combinatorially this makes 162 possible puzzles. This motivates  the question: Do you check for repetitions among the puzzles for each N?

I am the second reviewer assigned to review this task. Thank you for your submission!
I think this is an excellent task that meets all of the criteria. Thank you to @AnnaGolubeva for the careful work reviewing this task already and @james-simon for all of the subsequent improvements.
I haven't identified any further issues that need to be addressed.

@AnnaGolubeva Great catch! We ran the numbers, and it turns out for N=3 we do expect to get a few repeats. Experimentally, we were getting about what we calculated. As a fix, we decided to (a) add more object types - we now have 10 per scenario instead of 7 - and randomly choose N of them for each task instead of just taking the first N in the list, which combinatorially boosts the number of unique tasks per N + scenario. There'll still be puzzles for which the underlying logic is the same - I think this is inevitable if we're writing 5*20 problems for N=3 - but it's now quite unlikely they'll have both the same logic and the same set of N objects. Thanks!
@jamiesully Thanks for the review! We're glad to hear it. Feel free to let us know if something later strikes you as needing work.

@james-simon Nice, I think this is a sufficient fix. Could you please add this info to the "Technical details" section?
I think there is no harm in having two puzzles with the same logic but different objects - on the contrary, in fact, I think this tests model's ability to abstract from concrete objects and grasp the logic.

@AnnaGolubeva Done! Yeah, that's fair, and the choice of objects itself can definitely add an interesting extra layer of difficulty, like if the model's thrown off by objects with low prior probabilities (like loquats in a fruit stand).

I had to look up "loquat" myself :D
Thanks for all the edits!
All my questions have been fully addressed.
@chiafullo Accept.

@chiafullo Accept

Hi,
I am the meta-reviewer for this task, and it was brought to my attention that this task could be formulated as a json task. As that is the preferred format when possible, could you generate a static set of puzzles in the task json format?
Cheers,
Isaac

@mathopus for meta review and merge (if acceptable) ^ you beat me to it!

We've reformatted the task as a JSON task!

Looks great! Thank you again for the submission and the last minute json conversion is appreciated!


server: Add initial MetaStore

This PR adds a new internal metadata store for namespace configuration.
This internally uses a normal namespace so that the replica also get's
synchronized. This is just initial work there are a few more issues to
solve regarding replica's getting updated configs and some internal
hardening that needs to be done. Tracking issue for follow up work https://github.com/tursodatabase/libsql/issues/768.
Closes https://github.com/tursodatabase/libsql/issues/501

what's MetaStore?

what's MetaStore?

Storage for metadata (aka namespace configs)

As discussed in our call, I don't think this is the right approach. Instead, I propose that we do the following:

The meta store becomes per-sqld instance. The instance has sole r/w permission to it.
This meta store db file is not stored in the /dbs directory, but at the root, of the directory structure.
The backups are provided by bottomless, by creating a BottomlessWalManager in a similar fashion as it is done for the primary: https://github.com/tursodatabase/libsql/blob/main/libsql-server/src/namespace/mod.rs#L923-L942. The configuration for the backup of the meta-store can be passed as a CLI option.
a connection to the meta-store is created using https://github.com/tursodatabase/libsql/blob/main/libsql-server/src/connection/libsql.rs#L216. we need the active_checkpoint variant to let the connection checkpoint.
The meta-store is initialized prior to openning the NamespaceStore, and it is passed to it. A handle to the namespace store id is passed to the admin API.

Configuration changes regarding a replica are propagated by mean of the replication protocol. The primary sends the relevant configuration to the replica in the handshake response. When the config for a replica changes, the primary requests a new handshake, and the replica updates its config.

Member

@LucioFranco please make sure you split that work into two parts: on instance storage + primary/replica synchronization. The first part is blocking the per namespace jwts so it would be great to get it done quick.

@haaawk ive extracted all the debug out into https://github.com/tursodatabase/libsql/pull/777

@LucioFranco please make sure you split that work into two parts: on instance storage + primary/replica synchronization. The first part is blocking the per namespace jwts so it would be great to get it done quick.

Added a TODO to #768 @MarinPostma and I have a good idea how to do this and yes we can merge this now and unblock your work.

@haaawk @MarinPostma this is ready for review and I've added a test as well.

I left a few comments; feel free to dismiss, merge, and address them in a follow-up.


[BUG] Stone Wand is uncraftable in Engineer's crafting table

The Stone builder's wand has the same recipe as the Build Tool from Structurize, but the default product is the Build Tool
Screenshots

Information:

OS: Windows 10
Modpack Version: v1.0
Amount of RAM Allocated: 20Gb

Thank you for your report, the recipes will be fixed next patch.
For now though, using a normal crafting table and clicking on the arrows will allow switching recipes, although this doesn't work in Engineer's table (which is probably why you changed the name!)


Add possibility to hide elements by passing query parameter

This moment it is necessary to  pass 'buttons' property into  component to  hide controls. It would be great if ready-to-run app provides an ability to  update this property by passing 'editorButtons' query parameter:
https://localhost:3000?editorButtons={}

https://kb.epam.com/display/EPMLSOP/Hiding+items+on+the+control+panel+and+left+tool+bar

https://github.com/epam/ketcher/issues/928


When every data in series has only 1 value, all series data are bound to the first category value of xaxis(Why was this closed & falsely dismissed as repeatative data?)

I don't know why this issue was closed? Can someone please explain why this issue was closed without proper answer? I'm rewriting the problem.
This answer given here does't solve the problem nor answer the scenario i am asking about
And Column distributed chart doesn't solve the problem either for my case where I've a 3 dimensions of data 1) data -total_margin 2)ProductCategory 3)Year
And my data isn't repetitive as was dismissed by the answer given above.
I have a series like this

series: [{
name: 'Bikes',
data: [16240314.115]
}, {
name: 'Bikes',
data: [9520869.049]
}, {
name: 'Bikes',
data: [27832356.658]
}, {
name: 'Bikes',
data: [532399.178]
}, {
name: 'Clothing',
data: [1598657.794]
}, {
name: 'Clothing',
data: [135523.664]
}, {
name: 'Accessories',
data: [4347678.462]
}, {
name: 'Accessories',
data: [376470.596]
}],

And And categories for xaxis as

xaxis: {
categories: ['2011', '2012', '2013', '2014',' 2013', '2014', '2013', '2014'],
}

where every(name,data) pair in the series corresponds to a year in categories correspondingly, so 3 pairs of (Bike,data) corresponds to 3 different year.
And Distributed Columns doesn't provide me the provision to include "Year"
Like I said I need to show -Year,ProductCategory and Total_Margin in the chart
I have a column apex chart. When every series data has 1 value, the chart are bound to the first categories value of xaxis.
I have a column apex chart. When every series data has 1 value, the chart are bound to the first categories value of xaxis.
Then every series data are bound to 2011 in the chart(and not to any other years in the categories)
This scenario happens with every kind of apex chart available on your website
I've the data in this format only, how do i create an apex chart(any apex chart) with the present data
And how do i define the data gap of Y-axis(my data are hugh and I want to give some custom smaller gap format for Y-axis)?
The entire code is below including codepen
`var options = {
series: [{
name: 'Bikes',
data: [16240314.115]
}, {
name: 'Bikes',
data: [9520869.049]
}, {
name: 'Bikes',
data: [27832356.658]
}, {
name: 'Bikes',
data: [532399.178]
}, {
name: 'Clothing',
data: [1598657.794]
}, {
name: 'Clothing',
data: [135523.664]
}, {
name: 'Accessories',
data: [4347678.462]
}, {
name: 'Accessories',
data: [376470.596]
}],
chart: {
  type: 'bar',
  height: 650,
  width:900
},
plotOptions: {
  bar: {
    horizontal: false,
    columnWidth: '55%',
    endingShape: 'rounded'
  },
},
dataLabels: {
  enabled: false
},
stroke: {
  show: true,
  width: 2,
  colors: ['transparent']
},
xaxis: {
  categories: ['2011', '2012', '2013', '2014',' 2013', '2014', '2013', '2014'],
},
yaxis: {
  title: {
    text: '$ (thousands)'
  }
},
fill: {
  opacity: 1
},
tooltip: {
  y: {
    formatter: function (val) {
      return "$ " + val + " thousands"
    }
  }
}

};
var chart = new ApexCharts(document.querySelector("#chart"), options);
chart.render();
`
CodePen Issue

For starters, try to be nice. Your issue is not a bug report. You are asking for help, but it sound as if you are demanding an answer. This is an open source project and no one gets paid to deal with this or a thousand other issues.

I've the data in this format only, how do i create an apex chart(any apex chart) with the present data

Software libraries don't work by trying to fit the data format you have. They expect you to pass the data in a specific format. For apexcharts the data must be passed in the format according to documentation. Your data needs to be transformed, which requires basic JS knowledge and is beyond the scope of this discussion.
You wrongly assumed that each item is series array corresponds to an x-axis category is the same order. That's not how it works.
What you probably wanted to achieve is in this codepen.
xaxis: {
    categories: ['2011', '2012', '2013', '2014']
},

and
series: [{
    name: 'Bikes',
    data: [16240314.115, 9520869.049, 27832356.658, 532399.178]
}, {
    name: 'Clothing',
    data: [NaN, NaN, 1598657.794, 135523.664]
}, {
    name: 'Accessories',
    data: [NaN, NaN, 4347678.462, 376470.596],
}],

Hopefully, that will help you to move forward. I don't have that much time to dig into the rest of your requirements.

The code provided by @sergkop is in a valid format. Please adjust your series data this way and you will be able to render the chart correctly.
Closing this as it is not a bug in ApexCharts.

Hey @sergkop ,
For starter, apex chart has premium service (even if its open source). Since, I asked here politely in the first post,my question was dismissed as repeatative data & tagged "closed" within a few minutes I posted. Yes, I don't expect much from community service without availing premium service of apex charts. But its rude & arrogant to just close it immediately without a chance for other people to view it. I'm new to web development. And yes, I appreciate your short answer but please try to understand why I was upset to be dismissed & closed without a chance & clarity. I wasn't demanding my answer. I was asking why my first question was closed. If the answer was easy basic javascript, then people who closed my answered my question missed out basic javascript option on their product for a most common scenario
https://apexcharts.com/plans/


Forth version (using nltk)

In this next version, let's use the tagging syntax used by nltk.
For example, for pfus1-ase1-mCherry, we now would generate: pGENE-GENE-TAG, in their format it should be:
['p',('fus1', 'GENE'),('-','-'),('ase1', 'GENE'),('-','-'),('mCherry','TAG')]

Initially I thought we could store this as plain text, but I think it's not worth the headache of escaping characters (the default separator is \ but I am sure we will encounter every thinkable separator, I would stick with json, something like this for each allele)
[
{
  "name": "pfus1-ase1-mCherry",
  "pattern": ["p",["fus1", "GENE"],["-","-"],["ase1", "GENE"],["-","-"],["mCherry","TAG"]]
}
]

So for this version, write some code that exports the alleles to this, and a test that verifies that it works from a few examples. To restore our previous patterns, which are also useful to generate the occurrences file, you can do something like this:
"".join([i if type(i)==str else i[1] for i in pattern])

For the separators, make a list of known separators in a text file, for now I imagine it's mostly :-, but we will have to add more in the future. Any subsequent separators in an allele name should be counted as one, so use regex. They will have to be replaced after all other features, as some allele names contain separators in them. We could name the feature "SEPARATOR" but I think for readability is better to use "-" and this is supported by nltk.

Some more things to add to this version:

[ ] Create a folder in the root directory of the repo called analysis, in it:

[ ] Add the script that runs this new pipeline: fourth_version_pipeline.py such that it can be run like this:
python fourth_version_pipeline.py ../Lab_strains/dey_lab/strains.tsv

It should still save the output files in the directory where strains.tsv is.
To use the arguments use the if __name__ == "__main__": syntax in the script

[ ] In the new file, put all function definitions at the top, and then the code that calls them. This helps readability. strain_list = build_strain_list('strains.tsv') should come after all function definitions

[ ] Fix the typo of occurrences (it's two c and two r) on functions and filenames.
[ ] Write format.py for all labs. Some will require further editing, you can ask me about them once you check their strain lists. If you need to do some pre-processing, do it like in the example in tran_lab/format.py and store it in an intermediary excel sheet called post_processed.xlsx like in the example. Like that you can call excel_to_tsv on that one.
[ ] Move strains.tsv from data to Lab_strains/nbrp_strains, and write a format.py for that one as well.
[ ] delete trans_lab folder (the correct name is tran_lab)
[ ] Run your pipeline in all the Lab_strains folders and see that it does not fail for any of those
[ ] Have a look at the common occurrences across labs and see if you can identify more patterns. When you do, add them to the appropriate allele_components toml file. If some don't fit anywhere, add them to the previous google doc and we can discuss.

[ ] Add a section to the readme called running the pipeline to explain what the scripts do, and the outputs the produce. Taking the Lab_strains/nbrp_strains It should cover:

[ ] What format.py does and what you would have to do to write your own format.py for your spreadsheet.
[ ] What the analysis does, and for each output file, what is in the file.

Hello Anamika, I noticed that to read the trees into nltk, we would need to change the output. For example, if we have ase1::NatR:
# The output currently looks like this:
[['ase1', 'GENE'], ['NatR','marker']]
# But it should look like this:
[['GENE', ['ase1']], ['marker', ['NatR']]]
# So that we can make a tree from it:
Tree(*['GENE', ['ase1']])
# or
Tree('GENE', ['ase1'])

You will need to fix this in the pipeline and tests, sorry that we did not pick it up before. Note that the reason for this is to be able to capture nested things like p-Gene:
from nltk.tree import Tree
Tree(*["GENE", ["ase1"]])
Tree(*['PROMOTER', ['p', Tree(*['GENE', ['ase1']])]])

Hello Anamika, I noticed that to read the trees into nltk, we would need to change the output. For example, if we have ase1::NatR:
# The output currently looks like this:
[['ase1', 'GENE'], ['NatR','marker']]
# But it should look like this (note how the value of the strings is in a list):
[['GENE', ['ase1']], ['marker', ['NatR']]]
# So that we can make a tree from it:
Tree(*['GENE', ['ase1']])
# or
Tree('GENE', ['ase1'])

You will need to fix this in the pipeline and tests, sorry that we did not pick it up before. Note that the reason for this is to be able to capture nested things like p-Gene:
from nltk.tree import Tree
Tree(*["GENE", ["ase1"]])
Tree(*['PROMOTER', ['p', Tree(*['GENE', ['ase1']])]])

Hi @manulera, I have made the necessary changes to the code. You can review now


How do lists/root field work?

The documentation doesn't specify how lists and the root field work. I have parent documents, with many child documents that I want to sort, but each will be sorted relative to its parent document, I assume this is where the lists come into play, right?

I don't know exactly what you mean. Could you give some example?

Sure, for example:
Task = Astro.Class({
  fields: {
    name: 'string'
  },
  relations: {
    type: 'many',
    class: 'SubTask',
    local: '_id',
    foreign: 'task_id'
});
SubTask = Astro.Class({
  fields: {
    task_id: 'string',
  },
  behaviors: {
    sort: {
      orderFieldName: 'sortOrder',
      hasRootField: true, //?
      rootFieldName: 'root' //?
    }
  }
});

I now create two tasks, each with 5 subtasks, then I want to rearrange the subtasks for each task (not order the collection as a whole). Get it?

You have to do something like:
Task = Astro.Class({
  fields: {
    name: 'string'
  },
  relations: {
    subTasks: { // YOU HAVE TO NAME RELATION
      type: 'many',
      class: 'SubTask',
      local: '_id',
      foreign: 'task_id'
    }
});

and
SubTask = Astro.Class({
  fields: {
    task_id: 'string',
  },
  behaviors: {
    sort: {
      orderFieldName: 'sortOrder',
      hasRootField: true,
      rootFieldName: 'task_id'
    }
  }
});

Now you can do:
var subtask = /* ... */;
subtask.moveDown();

and it will move a subtask only within a given task

Oh wow, that's even more brilliant than I hoped. Thanks :)

No problem :)


NSEC Portal Searching for Key words

I did search on nsec portal for "maot", and "Military Aspects of Terrain" using "Search All Content" it returned:
https://nsec.esri.com/arcgis/home/item.html?id=bfd513dd62d345bcb07a13aaf3a1e1fc which is a Web Map titled "MaOT Product", (also returned the tag libraries).
It should have also returned:
https://nsec.esri.com/arcgis/home/item.html?id=87f169b7dd324279b2a1bc49ea33706c which is the ArcGIS Pro Template for MAoT.

Not a bug. You have to check "Show ArcGIS Desktop Content" on the left side of the search results page:

:+1:


docs: describe where the build system is evolving to

Add a manifesto which describes where the build infrastructure is slowly
evolving to.  Although a good chunk of the necessary work to enable this
is already in the tree, this helps explain the desired state to everyone
working on the project.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @gottesmm - hopefully this covers what you wanted

@compnerd Is this ready to be merged?

@CodaFi I believe so - I wanted to make sure that all the points that @gottesmm wanted noted have been

@swift-ci please smoke test


[Question] How do I get game IDs?

I'd like to know if there is a legal way for me to see them, thanks ^^

Yes, there is.
Short answer
HTTP Request to Parsec API asking for public room list. (yes, a bit thechnical but no coding skills required)
Long answer
There is no way to do it through Soda yet, because we cannot disclose game id information due to Parsec SDK license. I'm going to post a video tutorial on how to find game ids on my Youtube channel, though.
I'm also considering a window that let's you save the thumbnails from public rooms so you can use them later, the only reason this doesn't exist yet is that I'm worried about the legal impacts of that feature.

That's good to know, thank you


Value.Label() replacement

CUE: v0.4.0-alpha.2
Looking at the Go docs, cue/Value.Label() seems to have been removed / deprecated. Looking at the release notes, this seems like an omission from there.
My main question is the recommended replacement for this removed function. If I have a value, how can I obtain it's label?
Is the following equivalent? (also considering that Value.Path() does not always return a selector?)
s := Value.Path().Selectors()
label := s[len(s)-1]

and if so, may I request that an API function be made available to shorthand this?

The problem with Label is that it is a bit undefined what it returns. For instance, for a field foo it returns the string foo. For a definition named #foo it returns #foo, but for a regular field named #foo it returns "#foo" as well.
Note that it is not officially Deprecated yet. This was done deliberately as there isn't a proper replacement yet. But it is hidden from the API as it is essentially broken.
We could have a Value.Selector as a replacement.

Note that a Selector method is a bit tricky at this moment, as some of the information for selectors is not fully available.
With the Selector API we can fully qualify all paths, including optional fields and pattern constraints. It takes a bit more work to get this information into Value, though. The required fields implementation (which requires structure sharing), will help there.

Ah, thanks for the explanation. Is the necessary selector information currently available further up the value path? (such as the Iterator)

This issue has been migrated to https://github.com/cue-lang/cue/issues/931.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


Login loop customizer

Hello Friends, Kanboard 1.2.9 Ubuntu 18 with customizer installed result in a login screen loop. Any ideas how to fixed?

Downgrade to 1.11.1 for now

Out of curiosity,  are you using an oauth?

Ok, I am using LDAP authentication.


Code Implementation

Hi @WeijingShi  I am trying to implement your code using pytorch geometric... I am facing some issues...Have you tried implementing it using pytorch geometric...?

@Afzal786  are you implementing using pytorch can you share the source code ??

Hi @Afzal786, I have not tried pytorch geometric.  Here is some community effort using pytorch here (thanks to @Shudeng). Hope it helps.


Subpath: This route collides with: "src/pages/404.astro".

What version of starlight are you using?
0.12.1
What version of astro are you using?
3.3.0
What package manager are you using?
yarn
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
I already used Astro for my website and wanted to integrate Astro Starlight manually  to it for my "Help Desk". When I tried to start it, I got the following error:
This route collides with: "src/pages/404.astro".

Because Astro Starlight comes with a 404 as well, I had to remove my top-level 404 page. It works, however, are there any plans to allow two 404 if Starlight gets dropped in as a subpath?
Thanks for all your work here!
Link to Minimal Reproducible Example

Participation

[ ] I am willing to submit a pull request for this issue.

Thanks for the quick reply @delucis
I think opt-ing out Starlights 404 is okay. Perhaps it would be even better to serve the Starlights 404 only if something within the subpath does not match. If soemthing is not found outside of the subpath, meaning outside Starlight, it shoudl show the top-level 404.
I come to this conclusion because the top-level website looks different from Starlight, so it should be okay to show the 404 within each's context for aesthetic reasons.

Perhaps it would be even better to serve the Starlights 404 only if something within the subpath does not match.

That’s probably outside of our control unfortunately without users setting up some custom config on their host. Most static hosts just treat a root 404.html as the 404 page and don’t support multiple. You can work around this with custom config — we do this for multilingual 404s in Starlight’s docs for example — but we couldn’t offer it as a default “works everywhere” behaviour.
Example configs
netlify.toml
[[redirects]]
  from = "/:lang/*"
  to = "/:lang/404/"
  status = 404

vercel.json
{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "routes": [
    { "src": "/(?<lang>[^/]*)/(.*)", "dest": "/$lang/404/", "status": 404 }
  ]
}

(Unfortunately requires Vercel’s deprecated routes config from what I’ve gathered.)

Thanks for the insights and your time @delucis Very much appreciated! For my case everything works fine and I am amazed how smoothly the Starlight integration went for my existing Astro website. This was next level! Feel free to close this issue or to move it to the discussion section of GitHub :)

Just tested, and the same limitation around moving this to the dynamic route still exists in Astro. I’m going to talk to the team to see if this is something we can fix upstream. If it isn’t, we can look at adding a flag to disable Starlight’s 404 injection.

🔗 Internal discussion reference for Astro maintainers

My project [ab]uses the 404.astro page to load the SPA:

I've been looking for workarounds, but so far it's all looking pretty bleak :)
If there was an easy way to turn off Starlight's 404 injection, it would help a ton.

If there was an easy way to turn off Starlight's 404 injection, it would help a ton.

We’ve been discussing it — hopefully will know more next week!
In the meantime, you could add another level of hackiness by loading your SPA from src/content/docs/404.mdx:
---
title: My SPA
---

import SPA from '../../SPA.astro';

<SPA client:load />

In the meantime, you could add another level of hackiness by loading your SPA from src/content/docs/404.mdx:

I did try that, but of course it loads the SPA from inside Starlight (instead of its 404), which is... suboptimal, to put it mildly :-)
I've unblocked our docs development by using a fork - https://github.com/abs/starlight/commit/db448f42754607a0b93e3ab07b47c719f2853fd3
Once y'all come up with a fix, I'd be happy to give it a go!

Ohhhh, yeah of course 😅
Will let everyone know more here next week 🙌

Hello. Any news on how to fix this? This route collides with: "src/pages/404.astro"

Fair question! No progress just yet, but https://github.com/withastro/astro/pull/9439 will allow us to fix this really nicely by enabling us to set a lower priority on Starlight’s injected 404 route. This would let user 404s take over if they exist.
https://github.com/withastro/astro/pull/9439 is a larger PR to Astro and we’re heading towards the holiday period, so I don’t want to promise too much with regards to the timeline, but at least a solution is on the horizon!

https://github.com/withastro/astro/pull/9439 ended up taking a different direction and won’t help with this, so I think it’s time to add a configuration flag to help unblock folks on this — we can always remove the flag in the future if we have better options.
Would someone like to contribute a PR? I’d suggest something like:

Add an option for disabling 404 rendering to the user config

Skip the injectRoute() call if that is set

Update configuration reference with the new option and maybe also the “Custom 404 page” section in the docs

I'd be happy to take a stab at it. Thanks for the helpful instructions to get started!

Thanks @connor-baer! Let me know if you have any questions along the way 🙌


[Enhancement][UDF] optimize UDAF group by performance

What type of PR is this：

[ ] bug
[ ] feature
[ ] enhancement
[ ] others

Which issues of this PR fixes ：
#5803
Problem Summary(Required) ：

run starrocks_clang-format


Add cargo xtask commands for dependencies and vulnerabilities checks

Checklist

[x] Confirmed that run-checks all script has been executed.
[x] Made sure the book is up to date with changes in this PR.

Related Issues/PRs
Fixes issue https://github.com/tracel-ai/burn/issues/965
Changes
This PR adds two new commands to cargo xtask:

cargo xtask dependencies
cargo xtask vulnerabilities

All the checks defined in our github workflows are added. I also implemented all the sanitizers. I did not thoroughly test all of them, some additional tweaks might be necessary.
I tried to be as clear as possible in the command line documentation so that users can just explore what is available and then the help should guide them in order to correctly execute the checks (for instance some checks need to be executed using a nightly toolchain). The cargo third-party commands should be automatically installed as well.
Dependencies documentation generation is also skipped with --no-deps.

Thank you for the review, I pushed some fixes.

Instead of having patterns such as "hi".to_string()", can we reduce allocations using std::borrow::Cow<'static, str>` in the code?

Do you have a concrete example you can share ?

Can we add these new commands to CI?

I was planning to do that but in the end I prefer to open a different PR for this.

Ready for another round of review.
I parsed the strings returned by rustup in the end as @nathanielsimard proposed. I also added some tests and converted some strings to constants. Utils module is now a directory.

@Luni-4 Is that OK with you too ?


Status 404 Gazetteer not running in Elasticsearch

I cannot get mordecai working on my Windows 10 machine.  I have followed the instructions on the Github page but I seem to have a problem with step 3.
I can get a docker container running using:
docker run -d -p <IP_ADDRESS>:9200:9200 -v //c/Users/my_path/geonames_index/:/usr/share/elasticsearch/data elasticsearch:5.5.2
I verify that it is running using:
docker container ls
However, in Python (3.5.0) when I then try:
from mordecai import Geoparser
geo = Geoparser()
geo.geoparse("I traveled from Oxford to Ottawa.")
I get this response:
GET http://localhost:9200/geonames/_count [status:404 request:0.159s]
...
ConnectionError: [WinError for instructions on setting up Geonames/Elasticsearch] Mordecai needs access to the Geonames/Elasticsearch gazetteer to function.: 'See https://github.com/openeventdata/mordecai#installation-and-requirements'
I have taken a look at some of the other issues you have answered and see that my issue is similar to this one.  I have tried creating a elasticsearch.yaml file, and running the docker command:
docker run -d -p <IP_ADDRESS>:9200:9200 -e ES_JAVA_OPTS="-Xms8g -Xmx8g" -e "bootstrap.memory_lock=true" -v //c/Users/my_path/geonames_index:/usr/share/elasticsearch/data -v //c/Users/my_path/elasticsearch.yaml:/usr/share/elasticsearch/config/elasticsearch.yml elasticsearch:5.5.2
as is suggested in that thread.  But when I do so, docker container ls indicates that no container is running.
Update:  The problem was my docker permissions.  By Opening Docker Desktop, navigating to the Shared Drives tab, and checking the drives I wanted to share, applying changes, restarting my machine, and then re-checking drives to share, and applying changes the issue was resolved and I was able to use original docker command docker run -d -p <IP_ADDRESS>:9200:9200 -v //c/Users/my_path/geonames_index/:/usr/share/elasticsearch/data elasticsearch:5.5.2 to use the package.  Feel free to close this issue.

Thanks for the detailed issue and the workaround!


scripts: ci: check_compliance.py: Add out-of-tree dts/bindings

This pull request addresses an issue related to compliance checks that involve tests requiring Kconfig.dts. Currently, Kconfig.dts is generated solely by examining the 'dts/bindings/' directory within ZEPHYR_BASE during compliance checks. However, the existing approach falls short when dealing with out-of-tree repositories.
The modification ensures that compliance checks for tests involving Kconfig.dts not only consider ZEPHYR_BASE but also incorporate the 'dts/bindings/' directories from both the 'zephyr' repository and out-of-tree repositories.

Note that there was some rework of this check on https://github.com/zephyrproject-rtos/zephyr/pull/53502, it got closed for inactivity but maybe there's something that could be picked up again.

@carlescufi @tejlmand please revisit

No more objections from my side, waiting for @tejlmand's review.


Trying to automate README.md update

Just trying this, it probably would make more sense to extract this into a separate GitHub action.

Will close this for now as it's better suited to be extracted into a GitHub workflow

Will close this for now as it's better suited to be extracted into a GitHub workflow


Not working with Lineage OS (android 7.1) because /system is mounted in readonly mode

I've instlaled the app through f-droid on a Lineage OS.
Is seems that the problem is that in lineage OS (and maybe in all android 7 systems ?) /system is mounted in readonly mode, so even with root access the app can't write.
Before the change the app should remount /system with write permission, then save the file, then (for security concern) remount it again in readonly mode.

I confirm the same happens with my nexus 5 on android 7.1.1

#29 would resolve that especially as on some newer devices system can't be mounted rw


Jake/supp 493

Actually can we hold fire on this one, I want to try and get the new origin one in first as it's higher priority


How about hOCR?

There is a branch with this small method: https://github.com/clemenshelm/Tesseract-OCR-iOS/commit/15b5f8f2ae8c6325114623100243ef8168796ae8
It may be useful

There is an issue in the upstream Tesseract regarding setInputName:
https://code.google.com/p/tesseract-ocr/issues/detail?id=463
it seems that it's already merged to the master, but it's better to check, if we have this in our code.

Nice find! If no one else gets to it, I'll try this tonight to see if it's still necessary to use setInputName.

I'm already in progress actually :)
But I'm going to finish work for today soon.
So let me upload things I have for now so you can continue tonight.

so #125 can be a good starting point for you.
There are comments about what's already done there.
I'll come back to this tomorrow.

Hi! I think I had to use setInputName because it didn't work otherwise (as mentioned by @ws233 ). Hopefully this is fixed now and isn't needed anymore.

Feature added with #125.


Better MorphOS support

Right now swef uses the SDK interpreter,
better support the system one called LuaX.

So i can like change it from lua to luax?


[Bug] There is a problem using mysql-to-mysql with sort

What happened
The data synchronization task I created is from MySQL to MySQL. I use the command line to operate sort, and the database information is correct. However, I see that the jobmanager log on Flink shows that I cannot find the source table I want. Do I need to configure any filtering conditions to do this
mysql2mysql.sql
CREATE TABLE `table_11`(
    `name` STRING)
    WITH (
    'connector' = 'mysql-cdc-inlong',
    'hostname' = '<IP_ADDRESS>',
    'database-name' = 'inlong_test',
    'port' = '13306',
    'username' = 'root',
    'password' = 'qsdi1@3',
    'table-name' = 'source_test'
);

CREATE TABLE `table_22`(
    PRIMARY KEY (`name`) NOT ENFORCED,
    `name` STRING)
    WITH (
'connector' = 'jdbc-inlong',
    'url' = 'jdbc:mysql://<IP_ADDRESS>:13306/inlong_test',
    'username' = 'root',
    'password' = 'qsdi1@3',
    'table-name' = 'target'
);

INSERT INTO `table_22`
    SELECT
    `name` AS `name`
    FROM `table_11`;

CLI:
/opt/software/flink/flink-1.13.6/bin/flink run -c org.apache.inlong.sort.Entrance /usr/lib/inlong/inlong-sort/sort-dist-1.9.0.jar --sql.script.file /home/lj/inlong/mysql2mysql.sql
flink jobmanager log:

The log shows that there is actually this table, but it has been filtered out.

What you expected to happen
Can correctly synchronize MySQL to MySQL data
How to reproduce
mysql2mysql.sql
CREATE TABLE `table_11`(
    `name` STRING)
    WITH (
    'connector' = 'mysql-cdc-inlong',
    'hostname' = '<IP_ADDRESS>',
    'database-name' = 'inlong_test',
    'port' = '13306',
    'username' = 'root',
    'password' = 'qsdi1@3',
    'table-name' = 'source_test'
);

CREATE TABLE `table_22`(
    PRIMARY KEY (`name`) NOT ENFORCED,
    `name` STRING)
    WITH (
'connector' = 'jdbc-inlong',
    'url' = 'jdbc:mysql://<IP_ADDRESS>:13306/inlong_test',
    'username' = 'root',
    'password' = 'qsdi1@3',
    'table-name' = 'target'
);

INSERT INTO `table_22`
    SELECT
    `name` AS `name`
    FROM `table_11`;

CLI:
/opt/software/flink/flink-1.13.6/bin/flink run -c org.apache.inlong.sort.Entrance /usr/lib/inlong/inlong-sort/sort-dist-1.9.0.jar --sql.script.file /home/lj/inlong/mysql2mysql.sql
Environment
No response
InLong version
1.9.0
InLong Component
InLong Sort
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@EMsnap PTAL

@LiJie20190102 You need to config the table name with a database such as 'database.table'. It is 'inlong_test .source_test'
in your demo.

Do I still need to add a library name to the target table? After I added it, there was an exception in the jobmanager. The job is still running, but there is no data in the target table.

Functionally functional, the complete file is as follows：
CREATE TABLE table_11(
id bigint,
PRIMARY KEY(id) NOT ENFORCED
)
WITH (
'connector' = 'mysql-cdc-inlong',
'hostname' = '<IP_ADDRESS>',
'database-name' = 'inlong_test',
'port' = '13306',
'username' = 'root',
'password' = 'qsdi1@3',
'table-name' = 'inlong_test.source1'
);
CREATE TABLE table_22(
PRIMARY KEY (id) NOT ENFORCED,
id bigint)
WITH (
'connector' = 'jdbc-inlong',
'url' = 'jdbc:mysql://<IP_ADDRESS>:13306/inlong_test',
'username' = 'root',
'password' = 'qsdi1@3',
'table-name' = 'target1'
);
INSERT INTO table_22
SELECT
id AS id
FROM table_11;


acp won't build

OSX, custom fields version 5.0.1
I have tried with node 8.1.4 and 9.6.1, and I keep getting this after installing and running the build script for the acp, yet the file in question has not been changed:
jasperspeicher:acp jjs$ npm run build

><EMAIL_ADDRESS>build /Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp
> NODE_ENV=production browserify index.js -g [envify --NODE_ENV 'production'] -t [ babelify --presets [ es2015 react ] ]| uglifyjs -c -m > ../../public/js/acp.js

TypeError: /Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/index.js: _esutils2.default.keyword.isReservedWordES6 is not a function
    at Object.isValidIdentifier (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-types/lib/validators.js:167:61)
    at toIdentifier (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-types/lib/converters.js:210:10)
    at Object.toBindingIdentifierName (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-types/lib/converters.js:218:10)
    at exports.default (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-helper-function-name/lib/index.js:41:12)
    at PluginPass.ObjectProperty (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-plugin-transform-es2015-function-name/lib/index.js:20:63)
    at newFn (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/visitors.js:276:21)
    at NodePath._call (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/path/context.js:76:18)
    at NodePath.call (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/path/context.js:48:17)
    at NodePath.visit (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/path/context.js:105:12)
    at TraversalContext.visitQueue (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/context.js:150:16)

Hello.
The plugin does not require to build ACP in order to work. Why do you try to compile the ACP?

@jasperSpeicher  r u trying to run this plugin on node bb 1.9.x ?

@NicolasSiver  when i try to install it, i cannot find this plugin on my ACP, i m on node bb 1.9.2,
does that mean its not compatible with latest ver?