Fixed GLES20 NoSuchMethodError on Android API < 17

The new GLES20 code used some convenience methods that were added in API 17, causing instant crashes on older devices. This PR swaps out these methods for older ones that should be compatible with all API levels supported by libGDX.
If someone has a device with API < 17, please test this to make sure it fixes the problem. This does not seem to cause any regressions on my 7.0 device.

Can confirm the problem on Emulator API 16:
07-01 19:51:40.493 2633-2651/? E/AndroidRuntime: FATAL EXCEPTION: GLThread 108
    java.lang.NoSuchMethodError: android.opengl.GLES20.glGetActiveAttrib
        at com.badlogic.gdx.backends.android.AndroidGL20.glGetActiveAttrib(AndroidGL20.java:291)
        at com.badlogic.gdx.graphics.glutils.ShaderProgram.fetchAttributes(ShaderProgram.java:841)
        at com.badlogic.gdx.graphics.glutils.ShaderProgram.<init>(ShaderProgram.java:173)
        at com.badlogic.gdx.graphics.g2d.SpriteBatch.createDefaultShader(SpriteBatch.java:162)
        at com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:126)
        at com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:80)
        at com.badlogic.gdx.scenes.scene2d.Stage.<init>(Stage.java:100)
        at com.badlogic.gdx.tests.g3d.BaseG3dHudTest.createHUD(BaseG3dHudTest.java:69)
        at com.badlogic.gdx.tests.g3d.ShaderCollectionTest.createHUD(ShaderCollectionTest.java:304)
        at com.badlogic.gdx.tests.g3d.BaseG3dHudTest.create(BaseG3dHudTest.java:63)
        at com.badlogic.gdx.tests.g3d.ShaderCollectionTest.create(ShaderCollectionTest.java:132)
        at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:310)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1505)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Can confirm the problem on Emulator API 16

Is that with or without this change?

Without. Everything's fine I will now test the change. ;-)

Crash is gone on API level 16 with this PR.


Remove nightly NVIDIA GPU multiprocess CI.

This CI seems to be dead.

You should also remove the directory: .github/workflows/slurm_job_scripts/ It is used only by this script.

You should also remove the directory: .github/workflows/slurm_job_scripts/ It is used only by this script.

Done.


Consider using Go modules

Go 1.12 and up contain a nifty feature called go module system which works very similar to how npm performs.
https://blog.golang.org/using-go-modules
This also allows me to pin to versions and prevent pollution and collision with Go packages already in GOPATH; as explained here - I have a project X which depends on Y @ 1.0.0 and this project also depends on Y @ 2.0.0. The current layout doesn't allow them to coexist and hence collision happens. Go modules is one of the way to solve it.
 We were busy in setting up the base and missed this. Thanks for pointing out. Will surely do in the following commits!


Pretrained model?

Can a pretrained model be included so that we don't have to train it ourselves?

yaa, that would be REALLY helpful.

Can a pretrained model be included so that we don't have to train it ourselves?

Can someone share the well pre-trained model because we don't have sufficient computational resources (GPU's, RAM). Please, share and help us.

I want a pre-trained model of Asia teenager.

我想要一个预先训练好的亚洲青少年模型。

Can a pretrained model be included so that we don't have to train it ourselves?

Can someone share the well pre-trained model because we don't have sufficient computational resources (GPU's, RAM). Please, share and help us.

抱歉为不会英语，我训练了一个针对中国网红的模型，效果不是很好但值得一试
Download Link：model.h5

@Urban-Ash can you share the pre-trained model with us, this might looks like very helpful


Contracts should be billed when consumption reports are received

Currently a contract can be billed for 2 reasons:

Public IP usage / name usage
Resources used on a node

The contract billing is done in a loop where the frequency is every 600 blocks (1hour). When the node sends consumption reports, the amount due is accumulated on the contract. Whenever the billing frequency triggers a contract to be billed, this amount due + the cost for any public ip usage is deducted from the user's wallet.
Now if for example the node stops pushing reports due to:

downtime
updating
other reasons (bugs, network issues, ..)

Issues

This will cause the contract will be stuck in the billing loop forever or until the user cancels it since the chain cannot remove it from the loop because the node can later still come back online and push reports.
The node can resume reporting and the chain will bill the user for the moment the last report was received until now. This causes a contract to get billed for a period where the node was offline because the chain doesn't know about the downtime of a node.

Proposed solution
We can solve the issues above by billing "resources used" separately from billing public ips, name, rent contract, ..
So when the node pushes a report for a contract, we bill the user directly for the amount of resources used for the given period.
To know for which period to bill the user for "resouces used" the node needs to send:
a) the total seconds the resources were used
b) the report could contain a start / end timestamp for a period where the resources were used. This can be used to calculate on chain how much this costs.
We need to benchmark how this solution would behave if for example 20 nodes send a batch of reports (10-20 reports) at the same given time in the same block. Since it needs to process all contracts in the reports and calculate how much is due + distribute cultivation rewards it could easily take a lot of processing time.
Note
On chain, all contract costs are calculated per second. We check how many seconds have passed since the last report to calculate how much the user should pay for the given timespan. Zero-OS nodes send consumption reports at given intervals which is not really aligned with the billing cycles.
We originally designed the smart contract billing loop to take into account for public ips that are reserved on a contract. A public ip should be billed at a regular interval.
If we keep the billing loops for the public ip and name costs we minify the load on the system as well. Since the billing loop is triggered in an OnFinalize method (in essence some function which runs after all the transactions are procesed in a block) it could also have it's technical limitations. It could be that alot of contracts need to be billed at the same height and that the OnFinalize method could take a large amount of time which could stall block production or completely stop it. Since the projected amount of contracts with a public ip is not that high (atleast not in the first period of threefold grid being live) we can keep this billing loop at a minimal runtime execution time.

Deprecated in favor of https://github.com/threefoldtech/tfchain/issues/238


Update bg.json

Added myself to list of maintainers

I've been studying programming for three years and am currently working on a React project. I would like to contribute to the the Bulgarian translation of the React documentation. I learned about this opportunity from Val Georgiev.


Bumped Scale package to 5.1.1

Bump of Scale version to fix DCOS 1.10 support.  I did not add a new version to the Universe directory structure as this is just a patch release.  Let me know if that is not the correct way to bump for patches. Thanks!

@gisjedi please create a new version directory


Exposing unused fields in FastAPI docs

Inheritance from this (https://github.com/fastapi-users/fastapi-users/blob/ae9f52474ba2c7baebeb923e4d03aea479765362/fastapi_users/schemas.py#L64) Base class causes fields is_active, is_superuser, is_verified to be exposed in /register endpoint auto-generated FastAPI doc. But they are not being involved in the process of registration. So it causes confusion for front-end implementing client side.
My guess on why it is made this way - to support manual creation of users by admins of system. If it is the case why not implement two separate flows for these actions (and separate schemas as well)?
Otherwise, what was the point?
Thanks in advance, just trying to understand the motivation behind this solution.

I also encountered this, I had to test and make sure that these fields are really not used.
Still, you made an amazing library!


FINERACT-885: Fixing dates in ClientLoanIntegrationTest to avoid failures end of month

Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[x] Commit message starts with the issue number from https://issues.apache.org/jira/projects/FINERACT/. Ex: FINERACT-646 Pockets API.

[x] Coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions have been followed.

[x] API documentation at fineract-provider/src/main/resources/static/api-docs/apiLive.htm has been updated with details of any API changes.

[x] Integration tests have been created/updated for verifying the changes made.

[x] All Integrations tests are passing with the new commits.

[x] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the list.)

Our guidelines for code reviews is at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide

@vorburger if you can merge this, it should stop all the Travis builds from failing today... of course tomorrow things should work even without this - and for another 27 days.


tx-pool: Make txpool independent of primitive tx types

Related #8668

@tcoratger Just want to make sure i'm not blocking you here or anything? looks like its a finished version of mine!

@tcoratger Just want to make sure i'm not blocking you here or anything? looks like its a finished version of mine!

@JackG-eth I think this will be reviewed soon by @mattsse but this is just scaffolding as the issue was "quite urgent" but this doesn't close completely the issue as we still have the constraints:
/// Trait for transaction types used inside the pool
pub trait PoolTransaction:
    fmt::Debug
    + Send
    + Sync
    + Clone
    + From<PooledTransactionsElementEcRecovered>
    + TryFrom<TransactionSignedEcRecovered>
    + Into<TransactionSignedEcRecovered>
{

with
    + From<PooledTransactionsElementEcRecovered>
    + TryFrom<TransactionSignedEcRecovered>
    + Into<TransactionSignedEcRecovered>

that should be removed completely in the abstracted version to close the issue. Indeed, in the end what we want is to no longer depend in this trait on specific type of transactions and this is not yet the case here. I just made simplifications and put the necessary types in place to facilitate the work later as doing everything on a single PR would have been too long and time consuming to review.
What I think you can do is once this PR is merged you can go back from there to do the final abstraction and finish the job, wdyt @mattsse ?

great, this sgtm!
reviewing in a bit, ty!


esbuild: 0.11.15 -> 0.11.16

added helper script to generate Nix expression for new releases

Motivation for this change
Upstream update.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

You can replace your custom update.sh by doing
{ buildGoModule, fetchFromGitHub, lib, nix-update-script }:

and
  passthru.updateScript = nix-update-script {
    attrPath = pname;
  };

in the derivation instead.

Using an existing method seems like a good idea. Also feel free to take maintainership from me.


Add CodingReadme section on script passes

For whatever it's worth, I proof-read it and it looks good to me.


Interface with Unity-Data-Services

Use U-DS to download input data and upload output data

@LucaCinquini i think we should split the 'download data from U-DS' functionality from the 'ingest data the SPS processed' in terms of Epics. It would be better scoped.testable if we do that, but let me know what you think.

Sure that's fine - I will take care of that.

Closing this epic since it is replaced by the 2 separate Epics for data download/upload.


Support --save-pk in demo_video_x.py

Currently the implementation of --save-pk is missing (and incorrectly named as "--save-pt") in demo_video_x.py.
This PR adds this implementation and outputs a res.pk file similar to demo_video.py.
However, if anyone wants to import the pickle file into Blender, you will have to replace files in the original add-on with these hybrik_blender_addon_modified_files that I modified for SMPLX models (make sure to choose "Smplx Neutral" as your model before importing the pickle file).

Thank you for this additional work, especially since the existing commented code in demo_video_x.py was left commented out and buggy. While your changes indeed generate the pickle file, using your changes to the blender add on only has a single frame from the generated dance video. There seems to be no animation playback.
Perhaps I am missing something?
Thaks again!

Did you download the Smplx Neutral and select 'Simplx Neutral' before importing the pickle? @alevonian

Hi Orenwang,
Thanks for the quick reply.
I added the SMPLX_NEUTRAL.npz and SMPLX_NEUTRAL.pkl inside the hybrik_blender_addon.zip, inside the same directory (hybrik_blender_addon) where you had your mods (init.py and convert2bvh.py), and readded the plugin, but I get the same result, no geometry when choosing simplx neutral and importing the pickle file.
Perhaps adding the male and female also is needed (if that is what you are suggesting)?

Does this make it clearer?
hybrik_blender_addon
│   __init__.py
│   convert2bvh.py
│   README.md
│
└───data
│   │   basicModel_f_lbs_10_207_0_v1.0.2.fbxt
│   │   basicModel_m_lbs_10_207_0_v1.0.2.fbx
│   │   smplx-neutral.fbx

You need to use the fbx format model, same as the female and male models used by the original add-on provided in this repo.

Yes, that is what I figured, but I have to find simplx-neutral.fbx somewhere. :)

Just download it in the SMPLX page. Due to licensing, no one can distribute it directly.

Hah, ok, it is working now. It took like 3 minutes for Blender to finish processing the pickle file, but it worked.
Thanks you so much!

The bones are incorrectly oriented and the models jumps all over the place, so there may be additional settings to correct for that, but at least it animates.

Currently the implementation of --save-pk is missing (and incorrectly named as "--save-pt") in demo_video_x.py.
This PR adds this implementation and outputs a res.pk file similar to demo_video.py.
However, if anyone wants to import the pickle file into Blender, you will have to replace files in the original add-on with these hybrik_blender_addon_modified_files that I modified for SMPLX models (make sure to choose "Smplx Neutral" as your model before importing the pickle file).

Hi, I'm very new here. I use your PR code, but it turns out:
assert pose_input.shape[0] == 1, 'Only support single batch inference for now'
Di I miss something? Any hint will be appreciated~

Just download it in the SMPLX page. Due to licensing, no one can distribute it directly.

Hi, there~ Nice work!  I use your code and run well. But there is a problem about fingers. The last joint of every finger will up after extract bvh in blender. Can you check out this issue?  Thanks!

Currently the implementation of --save-pk is missing (and incorrectly named as "--save-pt") in demo_video_x.py.
This PR adds this implementation and outputs a res.pk file similar to demo_video.py.
However, if anyone wants to import the pickle file into Blender, you will have to replace files in the original add-on with these hybrik_blender_addon_modified_files that I modified for SMPLX models (make sure to choose "Smplx Neutral" as your model before importing the pickle file).

Thanks for your work on implementing / putting back .pkl export for HybrIK-X! I've finally been able to get something useful out of it, it's amazing. :) I'm grateful for the updated Blender addon files as well. Now, when comparing HybrIK-X's raw output and the imported .pkl in Blender, the hands seem to suffer quite a bit... Do you have any idea why? The fingers are hooked and distorded, which is a pity because you can still see the capture hand poses underneath.
So yeah, any help or clue regarding a way to fix this would be awesome.

@BobHop it's hard to tell what goes wrong without more info. Maybe some screenshots, or reproducible files?

Indeed. Sorry for the lack of info. Besides, I found a way to correct it!
Here are four screenshots to better describe the problem:

Original picture
Same with raw HybrIK-X overlay
Imported .pk animation in Blender, default smplx-neutral.fbx model
Same imported .pk file, but with updated smplx-neutral.fbx model

Having read the previous comments in this discussion, initially I took the smpl-neutral.fbx file from SMPL-X's Unity package; the result is what you see in picture number 3. Later on, I had a look at SMPL-X's Blender Add-on because it features FBX export. So I tried... In an empty scene in Blender, using SMPL-X's addon (the '300 shape components' version) I added the SMPLX_NEUTRAL model and exported it as an .fbx, overwriting the one in the data folder of HybrIK-X's addon. I then tried another import of the same .pk animation and got what you seen in picture number 4. Fingers fixed!!
The hand poses aren't perfect, of course – but they're identical to the HybrIK-X raw output, so I guess that's the best fidelity we can obtain using this method. To me, it's still one of the best methods because HybrIK-X requires only one camera, uses less VRAM yet is rather fast, can work with cropped bodies to some extent... You don't get as much accuracy as other methods, especially for the hands, but it's really ok for simple animation needs.

PS : Oddly, the "Export FBX" button in SMPL-X's Blender add-on produces an .fbx file that doesn't fix the hands (i.e. by clicking the "Update Joint Locations", which is how I obtained result number 4). But using Blender's export to FBX, does produce a "better" .fbx for that matter. The SMPL-X add-on offers some options I didn't try though: I exported "for Unity" but there's also a "for Unreal" choice; maybe this would give different results.


Feature Request: Support more complex devices/hybrid devices and device groups

It seems that the library detects a system consisting of multiple separate components only as one of these. In my case it is a CU401-B that is detected as gas heating but consists of (at least) a gas burner and a air-to-water heat pump (and has been expanded by a separate buffer also under control of the central controller. In a more complex case you might even encounter a Vitocontrol M or HS because someone built a hybrid system of whatever he likes (e.g. a pellet burner and a water-to-water heat pump cooling his solar panels). The simplest solution would be adding a device type "hybrid system"/"big bag of assorted nuts" and let the consumer figure out what to do with all of it which would work for me but I expect this to become more and more interesting for multi-tenant buildings where everybody should get access to his own energy management data.
config_entry-CU401B.json

Would it be possible for you to also get the data from your gateway directly from the API?

Use https://documentation.viessmann.com/installationgatewayfeatures-featuresapi-mw-iot/v2#installationgatewayfeatures-featuresapi-mw-iot_Get_gateway_features

Would it be possible for you to also get the data from your gateway directly from the API?

If I found out how to this I might.
Using https://api.viessmann.com/iot/v1/equipment/installations?includeGateways=true I got my installationmid and my gatewayserial. Inserting them into  https://api.viessmann.com/iot/v2/features/installations/undefined/gateways/undefined/features I'm getting a
{
  "viErrorId": "|ca25eada-49c46946e5668e6d.",
  "errorType": "EVEREST_ERROR",
  "message": "",
  "extendedPayload": {
    "code": "404",
    "reason": "Client does not exist"
  }
}

Sorry. Above my paygrade. Just close it; I will survive ignoring my heating system.


Added ignore keyword

Added ignore keyword for translation updater-script. Well, to use a new feature you need just add ignore keyword to the first line in any lang file check it out in it.yaml file.

Thank you Paul!
Can you please make a pull request to develop branch only and check your changes again? I don't see changes related to the python-script and the changes in this request should not go into master.
Thank you again!

Hi Paul, I checked your originial code and found the change in your master branch. Can you merge that to develop and then make pull request with develop to develop?
Sorry, a bit complicated but for understanding: I merge all changes to develop until the release is ready, then I do a lot of manual and auto-testing, so that only ready and tested releases go into master for production.
Thank you very much!

Hello,
Sure!
Sorry for delay


shouldDisableDate sets all disabled dates with the wrong date

Environment

Tech
Version

material-ui-pickers
2.0.4

material-ui
3.5.1

React
16.6.0

Browser
chrome@70

Peer library
<EMAIL_ADDRESS>

Steps to reproduce

npm i --save<EMAIL_ADDRESS>Create a datepicker
Use shouldDisableDate and try to enable only a specific weekday

Expected behavior
I expect only mondays to be selectable
Actual behavior
Everyday of the week is rendered with the date of the closest monday.
Live example
https://codesandbox.io/s/32081pr86

I am seeing plain example of picker in sandbox

@dmtrKovalenko  Sorry, forgot to save the file, check it now

Instead of checking day for Monday you are mutating each day object to be the Monday of the week
Try (date) => date.day() === 1

Ops, that was noobish of me. Thanks


fix for BUG #2 : BzAPI server on which your software depends is going…

… away

The problem that I had was a configuration issue. I removed my comment.

@sylvestre So the fix is working?

Nope, I wasn't trying with your patch first. I will try tomorrow. Thanks
again
(however, travis is not happy with your change)

@sylvestre I guess the issue was with the configuration. I have updated the fix which you have done and travis is not showing any issue now

Looks like we are still good.


separate picker and store options

@lukemelia's point well taken, the filepicker call actually takes two separate options hashes, not one options hash with one or two sub-hashes, so I've separated them out.  This also eliminates the need for options.useStore - if storeOptions is provided then it uses pickAndStore().  I've updated the README to reflect these changes.
Sorry about the whitespace - I'm not sure how to configure my editor to match the original files.

I like this change -- I think the it makes the usage pattern clearer.

We could also consider deprecating support for the options hash, to provide people with an easier upgrade.

@lukemelia that's a great idea.  I considered trying to support both styles but didn't want to just leave them both in place.  Deprecation is a great idea.  I'm willing to add that if it works for the DudaDev folks.

sure guys, go for it.


IO firmware: Output a disarmed pulse on lockdown

@kd0aij This should lock the system down with a disarmed pulse.

@kd0aij could you cross test somehow? Don't want to interrupt your workflow though with the test.

cherry-picked into master at f10770a 11Feb, kill switch had no effect on v2, works properly on v4

Did your v2 config have a disarmed pulse set? It will not work without.

And we're you using the IO or FMU outputs / main / aux?

QAV250 config uses quad_x mixer, and
PWM_DISARMED = 900
PWM_AUX_DISARMED = 1000

Rebased, added test command, force pushed.

Fixed and tested on master.


Tag a new release, v0.2.0

Unless there are any pending bug fixes, we should tag a new release (including https://github.com/kinvolk/kube-spawn/pull/161)

We have a 0.2.0 milestone, let's do some triage :)

Conformance tests:<PHONE_NUMBER>15_sonobuoy_2f2e207a-afce-461c-af74-bfcda01be9a7.tar.gz
Ran 124 of 698 Specs in 2737.575 seconds
SUCCESS! -- 124 Passed | 0 Failed | 0 Pending | 574 Skipped PASS


Use sudo hostapd/hostapd/hostapd beacon.conf and Get an error!

Hi,I compiled the program,  used the "sudo hostapd/hostapd/hostapd beacon.conf" in raspberry 4b  ,and find the error:Configuration file: beacon.conf
rfkill: WLAN soft blocked
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr d8:3a:dd:da:a1:7b and ssid "DroneIDTest"
Failed to set beacon parameters
wlan0: Could not connect to kernel driver
Interface initialization failed
wlan0: interface state COUNTRY_UPDATE->DISABLED
wlan0: AP-DISABLED
wlan0: Unable to setup interface.
wlan0: interface state DISABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan0 wasn't started
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
How could i solve it?
Many thanks!

The "rfkill" line looks suspicious. From the readme of the repo:
"Check that there is nothing preventing the usage of the Wi-Fi HW by running the tool rfkill. Any SW block should be possible to unblock via the same tool."


[Doc] Add valid micro-service details

Description
Add valid micro-service details.
The GenAI build mega-service on top of micro service and server.
This DOC describe the steps to check and validate the mciro-servcie and server in detail.

@xiguiw , thanks for the PR. Please modify the Docker image names to be consistent with https://github.com/opea-project/GenAIExamples/commit/8ae28ebfdec1472a0d030694023f226d7f9a056d.

@xiguiw  Please rebase your code and fix the conflict. And also test with latest code and then update the document.

@xiguiw Please rebase your code and fix the conflict. And also test with latest code and then update the document.

Updated.
Test with latest code.
@lvliang-intel  @Spycsh  Please help to review.
Thanks!

Please fix the spell issue,
how_to_valid_service.md:60: happend ==> happened, happens, happen

Please fix the spell issue, how_to_valid_service.md:60: happend ==> happened, happens, happen

Done. Thanks!


There seems to be an issue with the error histogram in the code

Hello, I noticed that the error histogram in spotless_trainer.py looks strange while reading the code. I would like to ask you for advice
            info["err"] = torch.histogram(
                torch.mean(torch.abs(colors - pixels), dim=-3).clone().detach().cpu(),
                bins=cfg.bin_size,
                range=(0.0, 1.0),
            )[0]

the shape of 'torch.mean(torch.abs(colors - pixels), dim=-3).clone().detach().cpu()' is 1xWx3, it looks really strange, shouldn't it be 1xWxH？

Hi,
Thank you for pointing out the issue. The correct form is dim=-1, and the code has been updated accordingly.
I have verified the corrected form on patio and patio_high using sls-mlp to check if the results deviate significantly from the reported standard deviation in this re-implementation of SpotLessSplats. The results remain within the reported standard deviation:
patio:
PSNR: 22.647, SSIM: 0.8603, LPIPS: 0.057 Time: 0.006s/image Number of GS: 441674
patio_high:
PSNR: 23.199, SSIM: 0.8137, LPIPS: 0.151 Time: 0.004s/image Number of GS: 753848


Add CVE-2024-50623 detection

Did verify the template and did small change to the version , so now the result is the same as the research : https://github.com/watchtowrlabs/CVE-2024-50623/blob/main/CVE-2024-50623.py   , the targets that the script was tested against were giving 403 when testing the reading of file

isnt this missing the digest ?

That's just something generated from nuclei


New org: Center for Space Governance

https://forum.effectivealtruism.org/posts/5HEFJKHGpcT49RK6y/announcing-the-center-for-space-governance

Ready (check https://github.com/riceissa/aiwatch/commit/8b5ed6605e73742b9cefad440731506513d8e921) and added to organizations.sql (check https://github.com/riceissa/aiwatch/commit/da2e1af414df60907ca3d2d441a1ac34cc4abb6b).

The Twitter username seems wrong in organizations.sql (third column from the right).

"Carson E." should be "Carson Ezell".

Everything else looks good!


.po file does not work

i create new .po file and check dashboard.html template load i18n and using {% trans "TEXT" %} format to load text but unfortunately translation does not work. can anyone help me fix this problem?
dojo/locale/
├── en
│   └── LC_MESSAGES
│       └── django.po
└── fr
    └── LC_MESSAGES
        └── django.po

If I remember correctly many preparation steps for localisation have been performed unfortunately have not been finished yet.

But more people asking for this functionality might reopen the discussion.


Typo fix in the script path for isotracker notification.

Currently ISO Tracker notifications fail as there is a typo in the script path - apologies!

Thanks @sil2100!


Exception: ERROR: The 'make' utility is missing from PATH

If I execute start.sh I get the following error in the step
Building wheels for collected packages: pynacl
  Building wheel for pynacl (PEP 517) ... error

[...]
 ----------------------------------------
  ERROR: Failed building wheel for pynacl
Failed to build pynacl
ERROR: Could not build wheels for pynacl which use PEP 517 and cannot be installed directly

Using python 3.8.5 in an venv on Ubuntu Server 20.04 LTS.
Any ideas how to fix this?

You are likely missing python dev tools. Install them with:
sudo apt install libpython3-dev build-essential

Hi. Thanks for your quick reply.
I unfortunately run into the next error using your command.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:9.2) but it is not going to be installed
 libpython3-dev : Depends: libpython3.8-dev (>= 3.8.2-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

My Ubuntu Server 20.04 LTS is running on a Raspberry Pi 4, could this be the reason?

I used aptitude to install both packages (and to downgrade libc6).


chore(infra): remove poetry in devcontainer.json

Description

Removes poetry and replaces it with Personal Dismay Python Dependency Manager in .devcontainer/Dockerfile and .devcontainer/devcontainer.json with relevant CLI changes,

Closes
Closes #3461

.devcontainer/devcontainer.json is a json file and should have trailing commas, do you want me to remove that?

@Alc-Alc idk i just use it in github codespaces

@all-contributors add @Alc-Alc for infra


Update introducing-jsx.md

This feels like nit picking, constants are technically variables wrt general vocabulary. I think I'll leave it as is. Thank you for the PR!


Per-user read-only / read-write permission?

After read doc and some code I found there's no per-user r/w permission support in wsgidav?

I am actually looking into some readonly per user session my self. The DavProvider interface does have a is_readonly method. I am dynamically updating every request setting this to either True or False dependent on different things like should the file be readonly and who the user is, etc. It seems to not always override the value though. Maybe the value gets set on server startup and set in the environment?

@fpemud @mar10
I have added this functionality to my DavProvider by adding logic per request to DavProvider.is_readonly.  I am not sure how you are integrating WsgiDAV into your stack @fpemud  i.e. if you are implementing the WsgiDAV interfaces or not but it is achievable with little work on a custom interface. I think if you need some special user r/w permission support then implement a DavProvider and update is_readonly appropriately and you should achieve your desired result.


Manually enable cross-compilation on linux_aarch64

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@HosameldinMohamed  this is to unblock https://github.com/conda-forge/yarp-feedstock/pull/19 to have yarp conda-forge binaries that we can use on platforms such as Jetsons or similar.


Create method to read GeoJson() as object

I want to read a simply GeoJson file. So I create a script like this
let mut f = File::open("lyon-subway.geo.json").expect("file not found");

let mut geojson_str = String::new();
f.read_to_string(&mut geojson_str).expect("something went wrong reading the file");

let geojson: GeoJson = geojson_str.parse::<GeoJson>().unwrap();
println!("{:?}", geojson);

Now I wan't to use geojson as object (iterates on Feature object by example) but I don't find any way to do this..
for feature in geojson.features {
    println!("{:?}", feature.properties);;
}

Is existing a way to do this? Is it possible to implement it?

You have to match on your geojson enum. Something like:
match &geojson {
    &GeoJson::FeatureCollection(ref fc) => {
        for feature in &fc.features {
            match &feature.geometry {
                &Some(ref geometry) => match geometry.value {
                    Value::Polygon(_) => { println!("Polygon: {:?}", geometry.value); },
                    Value::MultiPolygon(_) => { println!("MultiPolygon: {:?}", geometry.value); },
                    // other geometries go here
                    _ => println!("Other geometry")
                },
                _ => println!("No feature could be processed")
            }
        }
    },
    // you can also match on GeoJson::Feature and GeoJson::Geometry, then sub-match as above
    _ => println!("Found a Feature or a Geometry")
};

Thank you a lot for your answer!


Successful compile and missing references C++

Cython Version 0.27.3 via conda-forge
I can successfully compile a cython module, but on import an getting unknown reference errors on linux (not OS X).  This is a C++11 code base.  I am compiling the linked cpp using the same compiler and manually placing the .so into the appropriate anaconda python lib directory; compilation is working.
A tiny example is below.  Using nm, I can see that the cython generated .so has undefined symbols (also fails on import).  Version(std::string) is not being defined for some reason.
U csm::Version::Version(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
U std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@@GLIBCXX_3.4.21
U std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@@GLIBCXX_3.4.21

setup.py
import os
import pkg_resources
import sys
import sysconfig
from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
from Cython.Distutils import build_ext

# Look for the csmapi headers in the standard location
incdir = os.path.dirname(sysconfig.get_path('include'))
incdir = os.path.join(incdir, 'csm')

INCLUDE_DIRS = [incdir]
LIBRARY_DIRS = []  # This assumes that libcsmapi is installed in a standard place
LIBRARIES = ['csmapi']
COMPILE_ARGS = ['-g', '-std=c++11','-zdefs'] #, '-std=c++11']

def generate_extension(path_name, sources):
    return Extension(path_name,
                sources=sources,
                extra_compile_args=COMPILE_ARGS,
                language='c++',
                include_dirs=INCLUDE_DIRS,
                runtime_library_dirs=LIBRARY_DIRS)
                #library_dirs=LIBRARY_DIRS,
                #libraries=LIBRARIES)

if sys.platform == 'darwin':
    COMPILE_ARGS.append('-mmacosx-version-min=10.9')

# Create the extensions
extensions = [generate_extension('cycsm.isd', ['cycsm/isd.pyx']),
              generate_extension('cycsm.version', ['cycsm/version.pyx']),
              generate_extension('cycsm.csm', ['cycsm/csm.pyx']),
              generate_extension('cycsm.model', ['cycsm/model.pyx']),
              generate_extension('cycsm.correlationmodel', ['cycsm/correlationmodel.pyx']),
              generate_extension('cycsm.rastergm', ['cycsm/rastergm.pyx'])]

setup(
    name='cycsm',
    version='0.1.0',
    cmdclass = {'build_ext':build_ext},
    ext_modules=cythonize(extensions),
    description='Cython wrapper to the Community Sensor Model API.',
    author='Jay Laura',
    packages = find_packages(),
    include_package_data=True)

Cpp Header:
#include <string>
#include <iosfwd>
#include <vector>
#include <sstream>

namespace csm
{

class CSM_EXPORT_API Version
{
public:
   explicit Version(const std::string& version);
      //> This constructor makes a Version object with the given string version.
      //  The string should be a sequence of numbers separated by periods (".").
      //<

   Version(int major, int minor, int revision = -1);
      //> This constructor makes a Version object with the given major, minor,
      //  and revision version information.  The major and minor versions must
      //  be greater than or equal to 0, or an exception will be thrown.  If the
      //  revision is less than zero, it will be omitted from the object.
      //
      //  The resulting version string will look like "major.minor.revision".
      //<

   ~Version();
      //> This is the destructor.  This class has no virtual methods, and
      //  should not be derived from.
      //<

Pxd
from libcpp.string cimport string
cdef extern from "Version.h" namespace "csm":
    cdef cppclass CppVersion "csm::Version":
        CppVersion(int major, int minor, int revision) except +
        CppVersion(string ver) except +

Pyx
cdef class Version:
    def __cinit__(self, ver=None, major=1, minor=0, revision=0):
        if ver != None:
            self.thisptr = new CppVersion(ver.encode())
        else:
            self.thisptr = new CppVersion(major, minor, revision)

Please use<EMAIL_ADDRESS>or, possibly, stack overflow, for user support.


Upgrade logback to 1.4.14

Since there is a CVE, it is suggested to upgrade to 1.4.14 or other patched versions
https://avd.aquasec.com/nvd/2023/cve-2023-6378/
https://logback.qos.ch/news.html#1.3.14
I tried to see how I could update the project myself locally, but even with Intellij, I didn't manage to have a working config after 3 hours (or I didn't understand the structure enough). I see that the jars are copied locally in the repo, and no standard java-like configuration is used.

Maybe @stevenh can help ? :)


Add error message to HTML when connecting to metrics source fails

Fixes #75

NetflixOSS » Hystrix » Hystrix-pull-requests #63 SUCCESS
This pull request looks good


Push Message interval

Hello,
I've set my update interval to 0, which matches the server's cron job.
How is the cron set up? What's the interval there? 5 minutes?

30 minutes at the moment, do you want lower?

Well yes I was thinking it was on 5 minutes, is it possible / ok to set it to 5 minutes?
What do you think?
I personally would like to receive updates every 5 minutes.
Fortunately this is configurable in settings for every user. :wink:

5 min in use

Ok thanks


Licensing and Repository Ownership [Tilesheets]

There are two legal issues need to be taken care of by the end of next week.
1.) Licensing
There was discussion on the #gamepedia IRC channel previously about this.  I forget what the final open source license was decided on and if it was for OreDict or Tilesheets.
The company(Curse Inc.) is requesting to be able to use Tilesheets under the MIT license.  However, if not MIT then GPLv2 would be acceptable.
Preferably the license would be included in the repository in the root folder titled similar to "LICENSE" in all capital letters.
2.) Repository Ownership
Even though Tilesheets is used primarily on a Gamepedia wiki the primary maintainers of the Tilesheets project are not Curse employees or contractors.  As such legal has informed us that it would be best that the repository ownership be officially transfer to either the personal Github account of a primary maintainer or a an organization account controlled by the primary maintainers.  I will facilitate transferring the repository to the location decided.

If you are going to move it, move it to the FTB-Gamepedia group. It's where we host our bots/libraries/other software.

I'm cool with the MIT license. The discussion was about HeaderCount, which did get relicensed.

I am okay with MIT.

This appears to be the representative group of non-Curse employee/contractor contributors.  Are we good to move it over to the FTB-Gamepedia group?

I'm good with both MIT and the move.

I am also alright with it being moved to FTB-Gamepedia.

@elifoster, I gave the FTB team here access to transfer the repository.  I can not complete it myself since I do not have access to FTB-Gamepedia.

MIT is my favorite license!

I'm good with this.

You have my permission.

:+1:

Fine by me.


[UX] Brainstorm new Figma layout for meshery settings interface

Current Behavior

This is the current settings interface

Desired Behavior

Implementation

Acceptance Tests

Mockups

Contributor Guides and Handbook

🎨 Wireframes and designs for Meshery UI in Figma
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Awesome, I'll assign it to you then! @joanamadasun

Hey, would love to work on this too


[Tracking] Archive unmaintained and unused Devhub repositories

We may also consider deleting repositories that are no longer relevant or useful:

[x] https://github.com/substrate-developer-hub/substrate-proof-of-existence

Covered in tutorials already?

[ ] https://github.com/substrate-developer-hub/utxo-workshop

Highly requested to this day... maybe we can point those to https://github.com/kulupu/kulupu ?

[ ] https://github.com/substrate-developer-hub/rustdocs

@jimmychu0807 related to #352 we might want to simply copy these builds into the new repo?

[ ] https://github.com/substrate-developer-hub/substrate-tools

@chevdor @stiiifff maybe marketplace replaces this...? and the Awesome list?

[ ] https://github.com/substrate-developer-hub/migration-example

Related to #163 cc @apopiak

[ ] https://github.com/substrate-developer-hub/frontier-workshop/

@JoshOrndorff you gave a great sub0 workshop that should replace this soon?
https://github.com/substrate-developer-hub/substrate-docs/issues/177

Related to the already archived https://github.com/substrate-developer-hub/substrate-enterprise-sample cc @riusricardo

[ ] https://github.com/substrate-developer-hub/substrate-cms
[ ] https://github.com/substrate-developer-hub/pallet-did

No, all of these unchecked are still in need of feedback and all still are public regular repos (not archived) 🙏


CTHUB ITVR - Hide Non-Relevant Tables in Metabase "Our Data Section"

Describe the task
Hide or clean up tables within the "Our Data" section of CTHUB/Metabase to prevent users from seeing them, as they are not relevant and would likely cause confusion. See image below.
Purpose
The purpose of this task is to enhance user experience by removing visibility of tables that users would not understand.
Acceptance Criteria

[ ] Identify tables in the "Our Data" section of Metabase that users are not expected to understand or find relevant.
[ ]  Hide the identified tables from the user interface.
[ ] Ensure that the hiding of tables does not affect the functionality of the ITVR dashboard.

Additional context

Development Checklist

[ ] in administration settings, under table metadata for ITVR, make all those not needed tables hidden

Hey team! Please add your planning poker estimate with Zenhub @emi-hi @tim738745


Interval rewriting failing on negative integer literals

pending further analysis

Do we have more information on this, or some kind of example demonstrating the issue?

The simple example I noticed it on is just any fact with an interval like values(-3..3), i.e. an interval with a negative integer.
I still need to do some further analysis, but suspect that ArithmeticTermRewriting and IntervalRewriting get into each other's way in some fashion.


Delet This

I'm sorry, I don't think GitHub lets me delete issues. You're completely free to delete your account tho


Frequent disconnecting while debugging in single runs

Expected behaviour
No disconnection while idling in the debugger
Actual behaviour
Wait in the debugger for more than 2 seconds, and the connection is dropped
Environment Details

Karma version (output of karma --version): 1.3.0
Relevant part of your karma.config.js file

// karma.conf.js
module.exports = function (config) {
    config.set({
        browsers: ["PhantomJSDebug"],
        frameworks: ["mocha"],
        customLaunchers: {
            PhantomJSDebug: {
                base: "PhantomJS",
                debug: true,
            },
        },
        files: ["test.js"],
        browserNoActivityTimeout:<PHONE_NUMBER>,
    })
}

// test.js
describe("debug", function () {
    it("works", function () {
        debugger
    })
})

Steps to reproduce the behaviour

Install the relevant packages (npm i karma karma-mocha karma-phantomjs-launcher mocha)
Run karma start --single-run
Open the inspector page
Idle there for a couple minutes or so.

It then proceeds to disconnect, ignoring the astronomically high browserNoActivityTimeout. I suspect part of it is because the main loop is blocked, ensuring the websocket doesn't get any data. Sending the test data from a web worker should alleviate the problem, since it's no longer blocked by the debugger on the main thread. (Long running tests would also benefit from this.)
On the other hand, it's odd that the timeout is even being ignored at all. It's extremely difficult to debug failing PhantomJS tests when this is going on (and it's very specific to that platform).

Here's the output of the above, but with --log-level debug:
09 01 2017 16:47:42.749:DEBUG [config]: Loading config /home/isiah/dev-projects/js/tmp/tmp/karma.conf.js
09 01 2017 16:47:42.775:DEBUG [config]: autoWatch set to false, because of singleRun
09 01 2017 16:47:42.779:DEBUG [plugin]: Loading karma-* from /home/isiah/dev-projects/js/tmp/tmp/node_modules
09 01 2017 16:47:42.783:DEBUG [plugin]: Loading plugin /home/isiah/dev-projects/js/tmp/tmp/node_modules/karma-mocha.
09 01 2017 16:47:42.791:DEBUG [plugin]: Loading plugin /home/isiah/dev-projects/js/tmp/tmp/node_modules/karma-phantomjs-launcher.
09 01 2017 16:47:42.919:DEBUG [plugin]: Loading inlined plugin (defining launcher:PhantomJSDebug).
09 01 2017 16:47:42.953:DEBUG [web-server]: Instantiating middleware
09 01 2017 16:47:43.103:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
09 01 2017 16:47:43.104:INFO [launcher]: Launching browser PhantomJSDebug with unlimited concurrency
09 01 2017 16:47:43.122:INFO [launcher]: Starting browser PhantomJS
09 01 2017 16:47:43.124:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-45794312
09 01 2017 16:47:43.153:DEBUG [launcher]: /home/isiah/dev-projects/js/tmp/tmp/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs --remote-debugger-port=9000 --remote-debugger-autorun=yes /tmp/karma-45794312/capture.js
09 01 2017 16:47:43.179:INFO [phantomjs.launcher]: ACTION REQUIRED:
09 01 2017 16:47:43.180:INFO [phantomjs.launcher]:
09 01 2017 16:47:43.180:INFO [phantomjs.launcher]:   Launch browser at
09 01 2017 16:47:43.181:INFO [phantomjs.launcher]:   http://localhost:9000/webkit/inspector/inspector.html?page=2
09 01 2017 16:47:43.181:INFO [phantomjs.launcher]:
09 01 2017 16:47:43.181:INFO [phantomjs.launcher]: Waiting 15 seconds ...
09 01 2017 16:47:43.411:DEBUG [phantomjs.launcher]: Launch the debugger page at http://localhost:9000/webkit/inspector/inspector.html?page=2
Waiting 15 seconds for debugger page to launch...

09 01 2017 16:47:58.604:DEBUG [phantomjs.launcher]: Launching page http://localhost:9876/?id=45794312...

09 01 2017 16:47:58.640:DEBUG [web-server]: serving: /home/isiah/dev-projects/js/tmp/tmp/node_modules/karma/static/client.html
09 01 2017 16:47:58.685:DEBUG [web-server]: serving: /home/isiah/dev-projects/js/tmp/tmp/node_modules/karma/static/karma.js
09 01 2017 16:47:58.888:DEBUG [karma]: A browser has connected on socket /#rXWT0YOccqIkSjOBAAAA
09 01 2017 16:47:58.941:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=rXWT0YOccqIkSjOBAAAA
09 01 2017 16:47:59.033:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket /#rXWT0YOccqIkSjOBAAAA with id 45794312
09 01 2017 16:47:59.035:DEBUG [launcher]: PhantomJS (id 45794312) captured in 15.93 secs
09 01 2017 16:47:59.059:DEBUG [phantomjs.launcher]:

09 01 2017 16:47:59.064:DEBUG [middleware:karma]: custom files null null
09 01 2017 16:47:59.065:DEBUG [middleware:karma]: Serving static request /context.html
09 01 2017 16:47:59.070:DEBUG [web-server]: serving: /home/isiah/dev-projects/js/tmp/tmp/node_modules/karma/static/context.html
09 01 2017 16:47:59.087:DEBUG [middleware:source-files]: Requesting /base/node_modules/mocha/mocha.js?0491afff0b566ea45cd04c9164a355dba705689e /
09 01 2017 16:47:59.088:DEBUG [middleware:source-files]: Fetching /home/isiah/dev-projects/js/tmp/tmp/node_modules/mocha/mocha.js
09 01 2017 16:47:59.091:DEBUG [web-server]: serving (cached): /home/isiah/dev-projects/js/tmp/tmp/node_modules/mocha/mocha.js
09 01 2017 16:47:59.103:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-mocha/lib/adapter.js?e8826109cf50b958ee4bd667517729ffdd4de363 /
09 01 2017 16:47:59.104:DEBUG [middleware:source-files]: Fetching /home/isiah/dev-projects/js/tmp/tmp/node_modules/karma-mocha/lib/adapter.js
09 01 2017 16:47:59.107:DEBUG [middleware:source-files]: Requesting /base/test.js?b9347b9d7feb3456bf8dfe34e7e7578ad5c59d3c /
09 01 2017 16:47:59.108:DEBUG [middleware:source-files]: Fetching /home/isiah/dev-projects/js/tmp/tmp/test.js
09 01 2017 16:47:59.109:DEBUG [web-server]: serving (cached): /home/isiah/dev-projects/js/tmp/tmp/node_modules/karma-mocha/lib/adapter.js
09 01 2017 16:47:59.111:DEBUG [web-server]: serving (cached): /home/isiah/dev-projects/js/tmp/tmp/test.js
09 01 2017 16:47:59.114:DEBUG [web-server]: serving: /home/isiah/dev-projects/js/tmp/tmp/node_modules/karma/static/context.js
PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 1 SUCCESS (0 secs / 0 secs)
09 01 2017 16:49:24.313:DEBUG [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected during run, waiting 2000ms for reconnecting.
09 01 2017 16:49:26.316:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 tPhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnectedundefined
PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 1 DISCONNECTED (1 min 27.053 secs PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 1 DISCONNECTED (1 min 27.053 secs / 0 secs)
09 01 2017 16:49:26.325:DEBUG [karma]: Run complete, exiting.
09 01 2017 16:49:26.327:DEBUG [launcher]: Disconnecting all browsers
09 01 2017 16:49:26.361:DEBUG [launcher]: Process PhantomJS exited with code 0
09 01 2017 16:49:26.362:DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-45794312
09 01 2017 16:49:26.373:DEBUG [launcher]: Finished all browsers

If it helps, if you set autoWatch to true and singleRun to false, you could click the debug button in the browser that opens up (cannot use PhantomJS in this case I believe), and set a breakpoint to debug the test.
Not sure if it would help you work around this case though with PhantomJS.

@wesleycho I appreciate the tip (didn't know --single-run would cause similar issues in GUI browsers), but for headless browsers like PhantomJS, yeah, not so much... :frowning:

@wesleycho @isiahmeadows  Is this same as issue mentioned in #2447 ?

@dignifiedquire I believe this will be fixed by adding a big numerical value for processKillTimeout property.  I have created a PR #2541 to update the docs.
But, in order to be used by @isiahmeadows, we might need to release a version.
@isiahmeadows Is it possible for you to check directly from master? Do you require a release?

@vivganes you can always specify to consume a specific commit with npm. Karma doesn't have a build process, so it wouldn't depend on anything special being done.

I'd strongly prefer a release, but I can at least try master or whatever
you all use for nightlies, until it's released (I control it exclusively,
but it's for a decently sized testing framework). It's basically blocking
me from debugging an unusual, obscure bug in a dependency that won't easily
reproduce, something I'm not looking forward to.


disable handlebar html escape

I ran into the following situation:
i did a generator for a reducer where you can define an initial state with its initial value,
e.g.
theme: "default"
a template for this might look like this:
{{propertyName}}: {{initialValue}}
Because initialValue could be anything (true, 42, "Rosebud", null, undefined), i probably would not put quotes in the template, so the user would need to pass the values with quotes if they are strings.
The problem is now, that handlebars will write html entities in the file if you pass quotes!
Workaround is to use tripple brackets {{{initialValue}}} but its likely to forget that. While on webpages, escaping is a good default behaviour, its bad in code generators.
I think there is an option to disable escaping globally for handlebars and we should consider to do so

I think this could go nicely with the work that is being proposed in #10. Another templateRenderer could easily be created called handlebarsNoEscape. Or a 3rd party handlebars templateRenderer could be plop.loaded and accept a handlebars config object.

I just wanted to leave my thoughts. I completely agree with @amwmedia. Having different default behavior than what Handlebar's docs initially lay out is confusing and potentially harmful to the experience. I think that having a seperate template renderer is probably the most ideal workaround - allowing different functionality for those that need it

I found another issue https://github.com/amwmedia/plop/issues/112
i believe that handlebars is the wrong tool for code generation. handlebars is made for html.

Simply speaking for myself and not for the project:
Explain WHY handlebars is the wrong tool for code generation. There's nothing about it that's explicitly for HTML coding and even escaping has it's uses outside of HTML. I would suggest becoming more comfortable with the limitations and abilities handlebars has.
As a seperate idea - there is already work being done to allow for handlebars replacements (see https://github.com/amwmedia/plop/issues/104#issuecomment-362702547). It's now just a matter of waiting for the development process to see the feature become implamented


[mat-menu] programmatic openMenu should not focus first menu option

Reproduction
https://stackblitz.com/edit/angular-cxsudr?file=app/nested-menu-example.html
Steps to reproduce:

Click "Open Menu"
First menu option gets focused (wrong)
Hovering over the other menu options does not release the first focused menu option
After hovering within a sub menu the first menu option's focus is removed

Expected Behavior
When using the programmatic openMenu(), no menu option should get focused.
Actual Behavior
First menu option gets focused (and is also not removed during hovering of other menu options).
Environment

Angular: 8.1.0
CDK/Material: 8.0.2
Browser(s): chrome
Operating System (e.g. Windows, macOS, Ubuntu): windows

+1

This is a defacto duplicate of https://github.com/angular/components/issues/15936
which requests the ability to specify the behaviour.

What's the use case for this behaviour? The focus needs to be moved inside the menu, otherwise people using screen readers won't get notified, and can't navigate with keyboard inside the menu.

Duplicate of #15936

@jelbourn
I accept your explanation in https://github.com/angular/components/issues/15936#issuecomment-634989803 that the first item has to be selected.
There is another issue, which is explained in:

Hovering over the other menu options does not release the first focused menu option
After hovering within a sub menu the first menu option's focus is removed

First menu option gets focused (and is also not removed during hovering of other menu options).

In general, hoving doesn't change browser focus. IMO this is working as intended.


how to set value to afArrayField ?

Schema={};
Schema.Gain=new SimpleSchema({
gain:{
type:Array
},
'gain.$':{
type:Object
},
'gain.$.serviceId':{
type:String,
max:33
},
'gain.$.logs':{
type:Number,
min:1
}
});
Gains.attachSchema(Schema.Gain);
Template.gainsTab.helpers({
service:function(){
return Services.find();
},
uniqueFormId:function(){
return 'form-'+this._id;
}
});
<template name="gainsTab">
{{#each service}}
{{#autoForm type="insert" id=uniqueFormId collection="Gains"}}
{{> afArrayField name="gain"}}
<button type="submit">Send</button>
{{/autoForm}}
{{/each}}
</template>
How to set the value of 'gain.$.serviceId' for each ServiceId using a helper?
I tried {{> afArrayField name="gain" value=arrayReturnedFromHelper}} but didn't works
Thanks

I'm having the same problem. How did you solve this ? thanks !

I know it's been years, for those who came to this issue for solution:
consider using doc attribute in autoForm .
in this case
{{#autoForm type="insert" id=uniqueFormId collection="Gains" doc=formData}}
  {{> afArrayField name="gain"}}
  <button type="submit">Send</button>
{{/autoForm}}

where formData = {gain: returnGain()}


Returning complex objects from rust to R

Thanks for working on this!
I am using extendr to write a statistical package in rust with R bindings. As part of this, I would like to return a more complex object from rust to R (basically a tree).
The documentation does not seem to mention any methods for this, but looking at the tests I was able to build the following prototype:
use extendr_api::prelude::*;

#[extendr]
fn my_function(start: i32, stop: i32) -> Tree {
    Tree::new(start, stop)
}

pub struct Tree {
    pub start: i32,
    pub stop: i32,
    pub split: Option<i32>,
    pub left: Option<Box<Tree>>,
    pub right: Option<Box<Tree>>,
}

impl Tree {
    pub fn new(start: i32, stop: i32) -> Tree {
        let left: Option<Box<Tree>>;
        let right: Option<Box<Tree>>;

        let split: Option<i32>;

        if stop - start > 10 {
            split = Some((stop + start) / 2)
        } else {
            split = None
        }

        println!("start={}, stop={}, split={:?}", start, stop, split);

        if let Some(split_) = split {
            left = Some(Box::new(Tree::new(start, split_)));
            right = Some(Box::new(Tree::new(split_, stop)));
        } else {
            println!("Both None.");
            left = None;
            right = None;
        }

        Tree {
            start,
            stop,
            split,
            left,
            right
        }
    }
}

#[extendr]
impl Tree {
    pub fn start(&self)  -> i32 { self.start }
    pub fn stop(&self) -> i32 { self.stop }
    pub fn split(&self) -> Option<i32> { self.split }
    pub fn left(&self) -> &Self { self.left.as_ref().unwrap() }
    pub fn right(&self) -> &Self { self.right.as_ref().unwrap() }
}

extendr_module! {
    mod my_module;
    fn my_function;
    impl Tree;
}

This compiles, however behaves unexpectedly:
> tree <- my_function(0, 12)
start=0, stop=12, split=Some(6)
start=0, stop=6, split=None
Both None.
start=6, stop=12, split=None
Both None.
> tree$start()
[1] 0
> tree$stop()
[1] 12
> tree$split()
[1] 6
> tree$left()
<pointer: 0x55b4cd5c3810>
attr(,"class")
[1] "Tree"
> tree$left()$start()
[1] 2697332
> tree$left()$stop()
[1] 0
> tree$left()$split()
[1] NA
> tree$left()$left()
<pointer: 0x55b4cd0737d0>
attr(,"class")
[1] "Tree"
> tree$left()$left()$start()
[1] 32

There is some defect when accessing $left(). Note that it should get constructed correctly based on the print statements.
Is there a possibility to return Option<Box<Tree>> or Option<&Tree> from left() instead of panicking? I get error[E0277]: the trait bound Box: From<Box> is not satisfied (same for Option<Tree>).
Is there a possibility to return an object s.t. one can directly access attributes (without methods)?

How would you approach this?

The problem with returning a non-static reference is that R does not know how to handle lifetimes.
There is no "extra" information that conveys that left has the same lifetime as Tree
Currently, we convert a reference into a EXTPTR R object, but if the underlying object
is garbage collected, we end up with a dangling pointer.
I would like to make ExternalPtr<T> behave the same way as Rc with a deref with Target = T
You could then build your tree in an R-safe way with Nullable<ExternalPtr<T>> instead
of Option<Box>>.

@andy-thomason Have you made ExternalPtr<T> behave in this way?


onShow event?

Are there onShow and onShown events?
If I put other directive like angualrjs google map it doesn't work in side this modal service.
The angualrjs Tree control also not able to work in side this modal service.

I don't believe there is a documented way to emit these events from custom interfaces like the modal service. In this case I would suggest the best thing to do is set properties on your controller when the modal is created, and trigger the rendering or setup of the child directives from that.


[es] Added concepts/services-networking/endpoint-slices.md to Spanish

/kind feature
/language es
/sig docs
/area localization
/assign @ramrodo @electrocucaracha
resolves https://github.com/kubernetes/website/issues/45441

/lgtm

/lgtm

Thanks!
/approve


Add shamilton to maintainers

Motivation for this change
Wasn't yet on the maintainers list.
Things done
Added Scott Hamilton aka me to the list.

Please rename the PR or drop https://github.com/NixOS/nixpkgs/pull/87935/commits/9c7dcca4f4f272ad5c02389b8d86a1a06ea448bd from this PR.

Moved to https://github.com/NixOS/nixpkgs/pull/87938


Add social media logos and extract Footer CSS

Add social media icons and link to the footer. Added for CCM's Twitter and Instagram accounts, and the Spotify artist page.
Also extract footer-related CSS from style.css and created a logo Sass mixin.

@mauriceyap For some reason this layout looks bad in Safari and on mobile. Can you take a look?

@mauriceyap For some reason this layout looks bad in Safari and on mobile. Can you take a look?

should be fixed


toString() and parseJson() are not compatible with JSON spec

Per JSON Spec...

A value can be a string in double quotes, or a number, or true or false or null, or an object or an array. These structures can be nested.

But we throw away (or don't handle properly for some reason) any double quotes in a JSON array when we convert toString().

Double Quotes retained correctly when encapsulated as expected by single quotes

'[ "dentsu mcgarrybowen Regents Place 10 Triton Street", "London NW1 3BF", "+44 (0)20 3640 5592", "For new business enquiries please contact our Marketing and New Business Director, Oli Richards", "For everything else please email us", "© 2020 mb - uk", "22 Torrington Place London, WC1E 7HJ 0203 640 5592" ]'.toString()

To Reproduce
Import the below provided Dataset test.openrefine.tar.gz project file as a test case.
Steps to reproduce the behavior:

Try to Add a column based on FETCH column with the following GREL expression to convert the parsed out array to a String:

forEach(value.parseHtml().select("p"),v,v.htmlText()).toString()

Notice that in Preview and after clicking OK in the column that double quotes were not retained and useful structure that was needed by retaining the quotes is now lost completely.

Current Results
Expected Behavior
I would expect this String value representation with Double Quotes retained for JSON structure to be stored in the cell as such:
[ "dentsu mcgarrybowen Regents Place 10 Triton Street", "London NW1 3BF", "+44 (0)20 3640 5592", "For new business enquiries please contact our Marketing and New Business Director, Oli Richards", "For everything else please email us", "© 2020 mb - uk", "22 Torrington Place London, WC1E 7HJ 0203 640 5592" ]
Screenshots
Good JSON array structure I want to keep as a String and push into a cell

But the type is an array

Shown below we see toString() mangles and loses that good structure where by default it should keep it. If necessary perhaps a parameter option added IF we wanted to throw away that structure or manipulate the formatting of the String ( #816 concerns numbers not JSON arrays as strings.)

Versions

Operating System: Windows 10
Browser Version: Firefox latest
JRE or JDK Version: JDK15
OpenRefine: OpenRefine 3.5 Beta1

Datasets
test.openrefine.tar.gz
Additional context
Looking at the array possibilities on https://www.json.org/json-en.html
I think our test cases could also probably be expanded and improved for not only parseJson() but also toString() to include JSON values that are string in double quotes, along with another array,  and not only number, true, false, null as we currently test.

Hi @thadguidry and @Mengfan-Zhu,
I do not think toString is meant to be an inverse to parseJson. The role of the toString function is to provide a representation of the given object as a string, there is nothing relating it to JSON a priory. Sure, in some cases it might coincide, but that is by accident rather than by design.
I think that instead of "fixing" the toString function, we should rather:

introduce a toJson function which would be the inverse to parseJson
clear up any confusion in the documentation implying that toString should be used as inverse of parseJson (I have not checked if the documentation is misleading about that)

Another advantage of introducing a new function is that we are sure not to break any workflows which rely on the current behaviour of this function. Also, it avoids the addition of obscure new parameters to the toString function, which would require the user to have a close look at the documentation to understand what they are.

@wetneb Sure, we can call a new function toJson.

@wetneb @thadguidry Thank you for your reply. If I understand correctly, do you want a new function toJson instead of adding a parameter for toString? The functionality of toJson is still what @thadguidry describes above, right?

That's right! Adding more comments on your PR.

That's right! Adding more comments on your PR.

OK. I will do modification and update later

Hmm I just tried updating the documentation for this and realized we already have a jsonize function actually… that is unfortunate! So we should just have closed the issue without change.


Invalid service name  in docker-compose.yml

In file docker-compose.yml just remove '-' in services names such as kibana-config and web-client.
Otherwise, it causes an error 'Invalid service name "kibana-config" - only [a-zA-Z0-9] are allowed'

Could you try upgrading docker compose ?


Adds Dev Container configuration for GitHub Codespaces

This PR adds a devcontainer.json file, which creates an easy setup of Dev Containers for GitHub Codespaces.
Pull Request for adding the configuration for the Dev Container environment.
This makes the development process more convenient and enjoyable for everyone.
Feel free to edit the devcontainer.json to work to make it better for this repository.

You can view the changes within the repository by clicking on the Code button in the top-right corner, followed by the Create codespace on devcontainer button.

This creates a codespace on this branch with the configuration suggested.

let me be honnest I've no idea what this mean, but it looks great for contributers, love it thank you very much

let me be honnest I've no idea what this mean, but it looks great for contributers, love it thank you very much

In a nutshell, it allows to create a super easy VS Code environment with all the npm packages installed and all the extensions you would use.
So that you can jump straight into development, anywhere, on any device (coding on iPad 🗿) in the browser as long as you have an internet connection.
Less time setting up, more time developing.


Run swiftlint in lenient mode

Having build of project blocked because of stylistic uses that SwiftLint
equates with "errors" could discourage developers, especially beginners.

@barijaona I added some SwiftLint changes, since a new warning has appeared in SwiftLint 0.42. I took the opportunity to get rid of some nit-picky warnings.


Cleanup sendBatch function

This code has synchronous (no batching) code with a mutex in the Write method which is correct because AWS request is being made with a token, then a new token is stored. This needs to be synchronized to prevent concurrent problems. So far so good.
However, when batching is enabled, method sendBatch is executed in a goroutine and immediately after that a lock is acquired therefore there is no benefit of concurrency here. Goroutines have no effect, therefore I propose to drop this and simply send batches synchronously. This cleans the sendBatch function a bit (I am not sure why defer was not used there).
While I haven't reproduced, this might actually fix an existing bug filed as https://issues.redhat.com/browse/RHCLOUD-16717 - in short, tokens do not match because sending data is not sequential. This patch cleans the code and makes sure the receiver is guaranteed to be always sending sequentially as long as there are not multiple instances of the same group/stream. There is a workaround that just hides the problem: https://github.com/RedHatInsights/platform-go-middlewares/pull/26

I have incorporated this patch into commit in: https://github.com/RedHatInsights/platform-go-middlewares/pull/32


got reference error VUE_PROD_DEVTOOLS is not defined when using<EMAIL_ADDRESS>

Vue version
3.4.6
Link to minimal reproduction
https://vuejs.org/guide/quick-start.html#enabling-import-maps
Steps to reproduce
create a Vue app by using import maps by following this link: https://vuejs.org/guide/quick-start.html#enabling-import-maps
What is expected?
the app should work
What is actually happening?
app doesn't load and we get the following error in the js console:
Uncaught ReferenceError: __VUE_PROD_DEVTOOLS__ is not defined
<anonymous> runtime-core.esm-bundler.js:8070

System Info
No response
Any additional comments?
No response

The error message you posted shows that you used runtime-core.esm-BUNDLER.js, not runtime-core.esm-BROWSER.js
As there was no runnable reproduction provided, I'm assuming that already was the mistake and can close this.

I am literally using this:
	<script type="importmap">
{
	"imports": {
		"vue"<EMAIL_ADDRESS>	}
}
	</script>

That may be the case. I can't replicate what you do since you did not share a reproduction.
Something on your end seems to import the bundler vue version. Thats not normal. What that is, I cant guess.

Sorry. Here is http://baudejogos.net/vuetest.html
It's a simple test example that worked before and now it keeps crashing with that same error. This is happening in the rest of the site.
Wondering why suddenly the bundler became in the way...

I have the same issue. I can reproduce it with the example given by Parcel with a production build.
It still worked in version v3.4.0-rc.1 and is broken since version v3.4.0-rc.2. I assume it broke with this commit: https://github.com/vuejs/core/commit/ee68c525f06e02c78655ade680a579e4cf85a314#diff-5ab5fe7b450649335062cee0ca4f1499ae23f78f1460b187873afbe21093ef0bR160

If you check your network tab - that happens because of the other package you have incluced, which you get from jsdelivr.
jsdelivr's esm support automatically rewrites imports the the matching urls on jsdelivr, and that rewrite results in a rewrite to esm-bundler.
Are you saying this exact same file from jsdelivr worked before?

exactly. it worked since I started using v-viewer in my website. it broke approximately last week :(
do you know is there a fix or workaround to make it to work again?

I have the same issue. I can reproduce it with the example given by Parcel with a production build.
It still worked in version v3.4.0-rc.1 and is broken since version v3.4.0-rc.2. I assume it broke with this commit: ee68c52#diff-5ab5fe7b450649335062cee0ca4f1499ae23f78f1460b187873afbe21093ef0bR160

That sounds like a different issue, namely that Parcel doesn't support that new Flag yet which the bundler version expects to be set one way or another. You should be able to inject that as a global yourself through parcel's config

You're right insofar as the handling of the defaults happens in the build tool integrations, and Parcel's vue integration is not maintained by us. (You also don't find a Parcel section on our docs.
We can likely amend the docs in that regard.

<script>
	var __VUE_PROD_DEVTOOLS__ = false
</script>

I solved everything with this at the start of my html...