Suggestion Role Management

Should have the ability to:

Create
Delete
Set color
Manage permissions

So basically everything you can do from the discord interface?

Correct. I'd like to have the ability to automate that process.

What is there to automate? Make a command for automatic role creation? Is that what you want?
What is the use case for automating role creation?

Yes, that is exactly what I want. To be able to spin up & down roles as needed.
The use case goes hand with https://github.com/jonas747/yagpdb/issues/740
I have a server that hosts tabletop RPG groups, and the person running the game, gamemaster, will want to spin up a private channel for them and their players.
The idea is that when a game master wants to start a new game, they could just execute the following custom command and it'd spin up a new channel for them.
{{$args := parseArgs 1 "Campaign Name" (carg "string" "Campaign name")}}
{{$options := (cslice
"A hooded figure, shrouded in darkness, approaches you..."
"Above the tavern, a dragon's roar can be heard..."
"An unmarked letter appears at your feet. It emanates dark smoke and voice is heard in your head..."
 The floorboards shatter as hands reach out from the ground..."
"As a child, your town was ravaged by the green skull banner. 30 years later you see the banner approaching in the distance..."
)}}
{{$rInt := randInt 6}}

{{$campaignName := (title ($args.Get 0))}}
{{$roleName := (joinStr "" "5E " (title ($args.Get 0)) "")}}
{{$channelName := (reReplace " " ($args.Get 0) "-")}}
{{$type := "5E"}} {{/*Add as arg in future */}}

{{/* $channelID := create channel in category => return ID */}}
{{/*$roleID := create role & make mentionable => return ID */}}

{{/*DB format: <.User.ID>_<type[string]>_<name[string]>_<lfg[bool]>_<archived[bool]>_<$channel_ID>_<$role_ID> */}}
{{$entry:= (joinStr "" (.User.ID) "_" $type "_" $campaignName "_true_false_unknown_unknown" "")}}

{{/* change from $channelName to $channelID when able */}}
{{dbSet 1001 $channelName $entry}}

{{ $embed := cembed
"description" (joinStr "" "** \n" $campaignName "**\n\n**Game Master: **" (.User.Mention) "\n**Ruleset: **" $type "\n**Status: ** [OPEN]" "" )
"color" 9021952
"timestamp" currentTime
"author" (sdict "name" (index $options $rInt) "icon_url" "https://cdn.discordapp.com/emojis/725168618257514506.png?v=1" )
}}

{{sendMessageNoEscape nil (complexMessage "content" (joinStr "" (mentionRoleID<PHONE_NUMBER>89578242 ) " a new campaign just opened!" "" ) "embed" $embed)}}

The command doesn't have a purpose currently because I would still need to create the role & channel for the member manually.
Once the game was completed.. months down the road, the GM could just run remove-campaign <x> and it would removed the channel & role.

I think it's really helpful, and I'd like to see an option to set the role position too.

I think you already have kinda an option to do this:
you can role a member and create a ticket, create custom CC to add users to the ticket that is able to be executed by that role...
At this point, you would be limited to 10 simultaneous channels using the tickets. Should work not?

That's a really good solution to his problem. However, the ability to create a role, modify the role (change colour, position, etc.), using CC would be really useful.

Let me comment on that:
Color roles: i never see the purpose why people use permissions in combination with color on a role in general, while you can create different color roles and separate permissions from them you don't have the need for any position or anything, no perms on a color role just means a color, making it they can be set above all regular roles and you can change them easy...
Creating and modify roles: While every permission system on operating systems works with stacking permissions using the AGDLP method I don't see why you would have the need to combine all perms into 1 role, you create multiple roles with permissions that can be added, then the bot can fully automate that again you instead of giving 1 role you add 3 or 5 depending what rights you want to give to the user, it more clear that way.
Example: your mod can ban and kick, a super moderator need to have access to bot, you add only manage server to super moderator and give the super mod also the moderator role. he can do now what is needed to perform his tasks without you having the need to copy the moderator role and adding manage server to it, there is no need to adjust all other parameters and it easy to manage because you know the super mod can only manage server more then a regular mod...
It would be nice to be able to give/change permissions, coding wise for the bot it would cost many hours in building in wrong use by code, making it a lot of work while in a way you are already able to perform actions like this by adding a permission role to a user using the AGDLP method

I don't think I've clearly stated the issue. So let me try again. I want to leverage YAGBDB to create new roles so that I can assign the role to a new channel and a small group of people to give them a private channel with a "channel leader" for back of better words.
I get creating roles and channels can be done through the interface, but so can everything else that the bot does. The purpose of this ticket is to add the ability to spin up and down roles as needed so a person doesn't have to manually do it.
I would agree that creating a ticket and linking the users to the ticket would work if I just wanted to link small group together, but that's not the purpose of this request.

i completely understand what you say, tho the limit of tickets is 10 you can actually do this yourself, create x amount of channels you want to have available, create for each of those channels 1 roles a "member" and a general role for the whole list that can trigger the commands the "team leader", make a DB entry that tracks available channels for leaders and members to use, you have the option to add people, same as the ticket, but no limitation of 10 channels...
While you ask from the devs to build in a check you not go over the channel limits, roles limits, creation of channels limit, all discord limitation stuff they need to do, what ends up with the same result, only your CC take less time because you only have to work with bot limitations and not discord limitations, so creating what you want with CC would take 1% of the time they need to spend on creating stuff you can already do, what in my opinion is wasted time...
Then we come to the part where I ask you if you ever have seen the amount of code needed in a CC just to read the permissions, that would leave no space for actual other code when you adjust permissions. Coming down to the part you also ask for functions from the dev where it all comes down to the part: you spent more time and the dev spent more time then needed while you already can do what you want...
-the roles you want to be created can be premade by you, copied x amount of times depending on how many channels you want, that cost you like 10 minutes while coding it would be 10x that time
-the channels is the same, rename them on start and you good to go
-when you use the ticket system you don't have to deal with all that stuff, even have more functionality because you can call 5 ticket functions in 1 CC, then you loop back to the same CC if you need more (adding users would be possible to add 10x 6 users per minute that way)

then the documentation would take even more time...
-"this ticket is to add the ability to spin up and down roles as needed so a person doesn't have to manually do it." still comes down the fact Discord is limited to 250 roles and 500 channels/ 50 channels per category...
While the ticket system add users to a channel and not roles you can set you CC to ignore all other channels in your discord and have an easy only 1 role needed for all channels with a channel leader making it you would be able to save on 10 tickets 10 roles used...

My conclusion is basically:
You maybe want to spend more time on creating scripts instead of creating and copying some roles (copy roles work easy, you set all perms on the everyone role and when you create a role you get those perms on the new role), then you can copy some channels depending the amount you want and place them in a category that you easy collapse, so when no activity in those they not visible. And you don't use the build-in ticket feature when you stay under 10 channels needed...
You seem not to understand if you want the bot to create roles they need to be reserved in the total of 250 roles, making it you actually better just create them instead of reserving them...
I think it's unfair to ask at the devs to do 100x the amount of coding because you want to spent more time and not use the existing features that the bot has...

I'm well aware of the role and channel limitations on a discord server. I'm also not asking to handle error checking. I'm also well aware that creating a role, channel, or message is a POST request to discords API. That can be passed through, similar to any other error. I can spin up generic channels and roles and and assign them to each other and use tickets and the db functionality to handle who can see those channels. That is easy to script out and would be an interim solution. However, that's like using a saw to hammer in a nail. Just because you can do it doesn't mean it's the proper tool for the job.

Euh if you don't error handle your request to an API the API times you out in x amount of cases. 1 user can time out the bot then and that need to be avoided at all cost...

okay.. so listroles gives a count so the methodology exists to get count, is if (roles.count le max) { \\ send request } else {ignore} you could even have an internal cooldown at server level to reduce frequency of requests and chance of ddos attacks.


[KYUUBI #2390] RuleEliminateMarker stays in analyze phase for data masking

Why are the changes needed?

Avoid creating duplicate data masking projection to prevent errors in #2390
How was this patch tested?

[x] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

cc @packyan, hope this PR solves the issue

Codecov Report

Merging #2394 (31c5d07) into master (86c6b1f) will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #2394      +/-   ##
============================================
+ Coverage     62.62%   62.72%   +0.10%
  Complexity       69       69
============================================
  Files           357      360       +3
  Lines         16964    17137     +173
  Branches       2298     2311      +13
============================================
+ Hits          10623    10749     +126
- Misses         5346     5380      +34
- Partials        995     1008      +13

Impacted Files
Coverage Δ

...ugin/spark/authz/ranger/RangerSparkExtension.scala
100.00% <100.00%> (ø)

...g/apache/kyuubi/session/KyuubiSessionManager.scala
86.66% <0.00%> (-10.21%)
:arrow_down:

...ache/kyuubi/engine/spark/SparkProcessBuilder.scala
80.51% <0.00%> (-5.60%)
:arrow_down:

...ache/kyuubi/operation/KyuubiOperationManager.scala
94.44% <0.00%> (-1.64%)
:arrow_down:

...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala
80.62% <0.00%> (-1.25%)
:arrow_down:

...in/scala/org/apache/kyuubi/server/api/v1/dto.scala
72.60% <0.00%> (-0.74%)
:arrow_down:

...in/scala/org/apache/kyuubi/config/KyuubiConf.scala
96.30% <0.00%> (-0.05%)
:arrow_down:

...g/apache/kyuubi/operation/BatchJobSubmission.scala
65.47% <0.00%> (ø)

...che/kyuubi/engine/hive/operation/GetTypeInfo.scala
100.00% <0.00%> (ø)

...apache/kyuubi/session/KyuubiBatchSessionImpl.scala
81.81% <0.00%> (ø)

... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86c6b1f...31c5d07. Read the comment docs.

cc @packyan, hope this PR solves the issue

I test this PR on spark 2.4.4 spark sql cli, it works perfectly, I think we can close it.

thanks, merging to master


Create a combined chart

For example check this example RSChartExample >> #example03Plot and transform it into a class that we can reuse with different values
please also provide tests for that
Maybe we can use this
| x line1 line2 line3 |

x := 0.0 to: 2 count: 100.

line1 := LinePlot new
	x: x;
	y: (x raisedTo: 2);
	yourself.

line2 := LinePlot new
	x: x;
	y: (x raisedTo: 3);
	yourself.

line1 := LinePlot new
	x: x;
	y: (x raisedTo: 3);
	yourself.

combined := CombinedPlot withAll: { line1. line2. line3 }.
combined
	title: 'Hello world'.
	xtitle: 'X Axis'
	ytitle: 'Y Axis';
	show

finish


Speech to Text component

Description:
Add support for an STT platform like TTS.
Platforms aka Provider can simply add and represent the supported function. A WebView GET allows to read what is supported by this provider and for setup the audio recording correct. With POST it can stream audio sample and the provider stream this to external service.
We have a custom HTTP header for transfer send the details about audio bitstream:
X-Speech-Content: format=wav; codec=pcm; samplerate=16000; bitrate=16; language=de_de
Related issue (if applicable): fixes #
Example entry for configuration.yaml (if applicable):
stt:

Checklist:

[ ] The code change is tested and works locally.
[ ] Local tests pass with tox. Your PR cannot be merged unless tests pass
[ ] There is no commented out code in this PR.
[ ] I have followed the [development checklist][dev-checklist]

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

Samplerates and Bitrates are both correct

Our standard is to separate words with underscore in variable names and with capital letter in Pascal case names. I can't find samplerate in any dictionary. There is sample rate or sampling rate mentioned in Wikipedia eg.
We should use correct language.

I am with Martin. It should be two words.

Sorry, this got merged without the two word change included. PR with the two words is here https://github.com/home-assistant/home-assistant/pull/28535


54 path mappings

Added Path Mapping Support via pathMappings option. Added Tests. Reorganized test project to support path mappings.
fixes #54

I believe I've made all requested changes. Let me know if you need anything else.

FYI, I believe I've made all requested changes here.

FYI, I believe I've made all requested changes here. Let me know if there's anything else, or at least remove the "requested changes" attribute if they have been made properly -- if that's possible.

@johnrom thanks for this. Works a treat with my first attempt at debugging in vscode with docker wordpress/xdebug. It'll be vscode itself but the debugger response into mapped paths is very fast compared to atom.


chore: release main

:robot: I have created a release beep boop
logger: 1.2.6
1.2.6 (2024-11-18)
Bug Fixes

bump non-breaking dependencies to latest (#366) (748cbab)

run: 1.1.2
1.1.2 (2024-11-18)
Bug Fixes

bump non-breaking dependencies to latest (#366) (748cbab)

search: 1.0.8
1.0.8 (2024-11-18)
Bug Fixes

bump non-breaking dependencies to latest (#366) (748cbab)

secret: 1.2.3
1.2.3 (2024-11-18)
Bug Fixes

bump non-breaking dependencies to latest (#366) (748cbab)

static-server: 3.1.1
3.1.1 (2024-11-18)
Bug Fixes

bump non-breaking dependencies to latest (#366) (748cbab)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/versini-org/node-cli/releases/tag/logger-v1.2.6 :sunflower:

:robot: Release is at https://github.com/versini-org/node-cli/releases/tag/run-v1.1.2 :sunflower:

:robot: Release is at https://github.com/versini-org/node-cli/releases/tag/search-v1.0.8 :sunflower:

:robot: Release is at https://github.com/versini-org/node-cli/releases/tag/static-server-v3.1.1 :sunflower:


'geostyler-demo' with linked 'geostyler' cannot be started

Bug
Describe the bug
I followed  the instructions how to develop GeoStyler UI components. But the final website on localhost:3000 does not load  and shows errors. I reproduced it on two computers.
To Reproduce
Steps to reproduce the behavior:

Checkout GeoStyler 9f280731658a636b7252abdb54478418261f9551 and GeoStyler-Demo https://github.com/geostyler/geostyler-demo/commit/459c63f76a23ea047e02fcc9ddb4e594a234ba55 (the latest commits  at the time of writing)
Follow the steps described in the README

git clone https://github.com/geostyler/geostyler.git
cd geostyler
npm i
npm link
npm run build

cd ..
git clone https://github.com/geostyler/geostyler-demo.git
cd geostyler-demo
npm i
npm link geostyler
npm run start

Open localhost:3000
The website does not load and shows error messages.

Expected behavior
The GeoStyler-Demo UI should be visible at  localhost:3000
Desktop (please complete the following information):

OS: Linux Mint 19 Tara
Browser:

Mozilla Firefox 86.0
Chromium 87.0

Screenshots

Error messages
:3000/static/js/vendors~main.chunk.js:303738 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (:3000/static/js/vendors~main.chunk.js:303738)
    at Object.useContext (:3000/static/js/vendors~main.chunk.js:303746)
    at InternalSelect (:3000/static/js/vendors~main.chunk.js:83219)
    at renderWithHooks (:3000/static/js/vendors~main.chunk.js:468309)
    at updateForwardRef (:3000/static/js/vendors~main.chunk.js:470281)
    at beginWork (:3000/static/js/vendors~main.chunk.js:472050)
    at HTMLUnknownElement.callCallback (:3000/static/js/vendors~main.chunk.js:453701)
    at Object.invokeGuardedCallbackDev (:3000/static/js/vendors~main.chunk.js:453750)
    at invokeGuardedCallback (:3000/static/js/vendors~main.chunk.js:453803)
    at beginWork$1 (:3000/static/js/vendors~main.chunk.js:476567)
    at performUnitOfWork (:3000/static/js/vendors~main.chunk.js:475531)
    at workLoopSync (:3000/static/js/vendors~main.chunk.js:475507)
    at performSyncWorkOnRoot (:3000/static/js/vendors~main.chunk.js:475125)
    at scheduleUpdateOnFiber (:3000/static/js/vendors~main.chunk.js:474557)
    at updateContainer (:3000/static/js/vendors~main.chunk.js:477706)
    at :3000/static/js/vendors~main.chunk.js:478089
    at unbatchedUpdates (:3000/static/js/vendors~main.chunk.js:475275)
    at legacyRenderSubtreeIntoContainer (:3000/static/js/vendors~main.chunk.js:478088)
    at Object.render (:3000/static/js/vendors~main.chunk.js:478171)
    at Module.<anonymous> (:3000/static/js/main.chunk.js:35923)
    at Module../src/index.tsx (:3000/static/js/main.chunk.js:36002)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at fn (:3000/static/js/bundle.js:151)
    at Object.1 (:3000/static/js/main.chunk.js:36016)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at checkDeferredModules (:3000/static/js/bundle.js:46)
    at Array.webpackJsonpCallback [as push] (:3000/static/js/bundle.js:33)
    at :3000/static/js/main.chunk.js:1
:3000/static/js/vendors~main.chunk.js:303738 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (:3000/static/js/vendors~main.chunk.js:303738)
    at useRef (:3000/static/js/vendors~main.chunk.js:303778)
    at FormItem (:3000/static/js/vendors~main.chunk.js:74264)
    at renderWithHooks (:3000/static/js/vendors~main.chunk.js:468309)
    at mountIndeterminateComponent (:3000/static/js/vendors~main.chunk.js:470921)
    at beginWork (:3000/static/js/vendors~main.chunk.js:472001)
    at HTMLUnknownElement.callCallback (:3000/static/js/vendors~main.chunk.js:453701)
    at Object.invokeGuardedCallbackDev (:3000/static/js/vendors~main.chunk.js:453750)
    at invokeGuardedCallback (:3000/static/js/vendors~main.chunk.js:453803)
    at beginWork$1 (:3000/static/js/vendors~main.chunk.js:476567)
    at performUnitOfWork (:3000/static/js/vendors~main.chunk.js:475531)
    at workLoopSync (:3000/static/js/vendors~main.chunk.js:475507)
    at performSyncWorkOnRoot (:3000/static/js/vendors~main.chunk.js:475125)
    at scheduleUpdateOnFiber (:3000/static/js/vendors~main.chunk.js:474557)
    at updateContainer (:3000/static/js/vendors~main.chunk.js:477706)
    at :3000/static/js/vendors~main.chunk.js:478089
    at unbatchedUpdates (:3000/static/js/vendors~main.chunk.js:475275)
    at legacyRenderSubtreeIntoContainer (:3000/static/js/vendors~main.chunk.js:478088)
    at Object.render (:3000/static/js/vendors~main.chunk.js:478171)
    at Module.<anonymous> (:3000/static/js/main.chunk.js:35923)
    at Module../src/index.tsx (:3000/static/js/main.chunk.js:36002)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at fn (:3000/static/js/bundle.js:151)
    at Object.1 (:3000/static/js/main.chunk.js:36016)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at checkDeferredModules (:3000/static/js/bundle.js:46)
    at Array.webpackJsonpCallback [as push] (:3000/static/js/bundle.js:33)
    at :3000/static/js/main.chunk.js:1
:3000/static/js/vendors~main.chunk.js:303738 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (:3000/static/js/vendors~main.chunk.js:303738)
    at Object.useContext (:3000/static/js/vendors~main.chunk.js:303746)
    at InternalButton (:3000/static/js/vendors~main.chunk.js:69241)
    at renderWithHooks (:3000/static/js/vendors~main.chunk.js:468309)
    at updateForwardRef (:3000/static/js/vendors~main.chunk.js:470281)
    at beginWork (:3000/static/js/vendors~main.chunk.js:472050)
    at HTMLUnknownElement.callCallback (:3000/static/js/vendors~main.chunk.js:453701)
    at Object.invokeGuardedCallbackDev (:3000/static/js/vendors~main.chunk.js:453750)
    at invokeGuardedCallback (:3000/static/js/vendors~main.chunk.js:453803)
    at beginWork$1 (:3000/static/js/vendors~main.chunk.js:476567)
    at performUnitOfWork (:3000/static/js/vendors~main.chunk.js:475531)
    at workLoopSync (:3000/static/js/vendors~main.chunk.js:475507)
    at performSyncWorkOnRoot (:3000/static/js/vendors~main.chunk.js:475125)
    at scheduleUpdateOnFiber (:3000/static/js/vendors~main.chunk.js:474557)
    at updateContainer (:3000/static/js/vendors~main.chunk.js:477706)
    at :3000/static/js/vendors~main.chunk.js:478089
    at unbatchedUpdates (:3000/static/js/vendors~main.chunk.js:475275)
    at legacyRenderSubtreeIntoContainer (:3000/static/js/vendors~main.chunk.js:478088)
    at Object.render (:3000/static/js/vendors~main.chunk.js:478171)
    at Module.<anonymous> (:3000/static/js/main.chunk.js:35923)
    at Module../src/index.tsx (:3000/static/js/main.chunk.js:36002)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at fn (:3000/static/js/bundle.js:151)
    at Object.1 (:3000/static/js/main.chunk.js:36016)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at checkDeferredModules (:3000/static/js/bundle.js:46)
    at Array.webpackJsonpCallback [as push] (:3000/static/js/bundle.js:33)
    at :3000/static/js/main.chunk.js:1
:3000/static/js/vendors~main.chunk.js:303738 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (:3000/static/js/vendors~main.chunk.js:303738)
    at useState (:3000/static/js/vendors~main.chunk.js:303768)
    at useBreakpoint (:3000/static/js/vendors~main.chunk.js:75322)
    at Table (:3000/static/js/vendors~main.chunk.js:85347)
    at renderWithHooks (:3000/static/js/vendors~main.chunk.js:468309)
    at mountIndeterminateComponent (:3000/static/js/vendors~main.chunk.js:470921)
    at beginWork (:3000/static/js/vendors~main.chunk.js:472001)
    at HTMLUnknownElement.callCallback (:3000/static/js/vendors~main.chunk.js:453701)
    at Object.invokeGuardedCallbackDev (:3000/static/js/vendors~main.chunk.js:453750)
    at invokeGuardedCallback (:3000/static/js/vendors~main.chunk.js:453803)
    at beginWork$1 (:3000/static/js/vendors~main.chunk.js:476567)
    at performUnitOfWork (:3000/static/js/vendors~main.chunk.js:475531)
    at workLoopSync (:3000/static/js/vendors~main.chunk.js:475507)
    at performSyncWorkOnRoot (:3000/static/js/vendors~main.chunk.js:475125)
    at scheduleUpdateOnFiber (:3000/static/js/vendors~main.chunk.js:474557)
    at updateContainer (:3000/static/js/vendors~main.chunk.js:477706)
    at :3000/static/js/vendors~main.chunk.js:478089
    at unbatchedUpdates (:3000/static/js/vendors~main.chunk.js:475275)
    at legacyRenderSubtreeIntoContainer (:3000/static/js/vendors~main.chunk.js:478088)
    at Object.render (:3000/static/js/vendors~main.chunk.js:478171)
    at Module.<anonymous> (:3000/static/js/main.chunk.js:35923)
    at Module../src/index.tsx (:3000/static/js/main.chunk.js:36002)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at fn (:3000/static/js/bundle.js:151)
    at Object.1 (:3000/static/js/main.chunk.js:36016)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at checkDeferredModules (:3000/static/js/bundle.js:46)
    at Array.webpackJsonpCallback [as push] (:3000/static/js/bundle.js:33)
    at :3000/static/js/main.chunk.js:1
4:3000/static/js/vendors~main.chunk.js:303738 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (:3000/static/js/vendors~main.chunk.js:303738)
    at Object.useContext (:3000/static/js/vendors~main.chunk.js:303746)
    at Modal (:3000/static/js/vendors~main.chunk.js:79639)
    at renderWithHooks (:3000/static/js/vendors~main.chunk.js:468309)
    at mountIndeterminateComponent (:3000/static/js/vendors~main.chunk.js:470921)
    at beginWork (:3000/static/js/vendors~main.chunk.js:472001)
    at HTMLUnknownElement.callCallback (:3000/static/js/vendors~main.chunk.js:453701)
    at Object.invokeGuardedCallbackDev (:3000/static/js/vendors~main.chunk.js:453750)
    at invokeGuardedCallback (:3000/static/js/vendors~main.chunk.js:453803)
    at beginWork$1 (:3000/static/js/vendors~main.chunk.js:476567)
    at performUnitOfWork (:3000/static/js/vendors~main.chunk.js:475531)
    at workLoopSync (:3000/static/js/vendors~main.chunk.js:475507)
    at performSyncWorkOnRoot (:3000/static/js/vendors~main.chunk.js:475125)
    at scheduleUpdateOnFiber (:3000/static/js/vendors~main.chunk.js:474557)
    at updateContainer (:3000/static/js/vendors~main.chunk.js:477706)
    at :3000/static/js/vendors~main.chunk.js:478089
    at unbatchedUpdates (:3000/static/js/vendors~main.chunk.js:475275)
    at legacyRenderSubtreeIntoContainer (:3000/static/js/vendors~main.chunk.js:478088)
    at Object.render (:3000/static/js/vendors~main.chunk.js:478171)
    at Module.<anonymous> (:3000/static/js/main.chunk.js:35923)
    at Module../src/index.tsx (:3000/static/js/main.chunk.js:36002)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at fn (:3000/static/js/bundle.js:151)
    at Object.1 (:3000/static/js/main.chunk.js:36016)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at checkDeferredModules (:3000/static/js/bundle.js:46)
    at Array.webpackJsonpCallback [as push] (:3000/static/js/bundle.js:33)
    at :3000/static/js/main.chunk.js:1
:3000/static/js/vendors~main.chunk.js:303738 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (:3000/static/js/vendors~main.chunk.js:303738)
    at Object.useContext (:3000/static/js/vendors~main.chunk.js:303746)
    at InternalSelect (:3000/static/js/vendors~main.chunk.js:83219)
    at renderWithHooks (:3000/static/js/vendors~main.chunk.js:468309)
    at updateForwardRef (:3000/static/js/vendors~main.chunk.js:470281)
    at beginWork (:3000/static/js/vendors~main.chunk.js:472050)
    at HTMLUnknownElement.callCallback (:3000/static/js/vendors~main.chunk.js:453701)
    at Object.invokeGuardedCallbackDev (:3000/static/js/vendors~main.chunk.js:453750)
    at invokeGuardedCallback (:3000/static/js/vendors~main.chunk.js:453803)
    at beginWork$1 (:3000/static/js/vendors~main.chunk.js:476567)
    at performUnitOfWork (:3000/static/js/vendors~main.chunk.js:475531)
    at workLoopSync (:3000/static/js/vendors~main.chunk.js:475507)
    at performSyncWorkOnRoot (:3000/static/js/vendors~main.chunk.js:475125)
    at scheduleUpdateOnFiber (:3000/static/js/vendors~main.chunk.js:474557)
    at updateContainer (:3000/static/js/vendors~main.chunk.js:477706)
    at :3000/static/js/vendors~main.chunk.js:478089
    at unbatchedUpdates (:3000/static/js/vendors~main.chunk.js:475275)
    at legacyRenderSubtreeIntoContainer (:3000/static/js/vendors~main.chunk.js:478088)
    at Object.render (:3000/static/js/vendors~main.chunk.js:478171)
    at Module.<anonymous> (:3000/static/js/main.chunk.js:35923)
    at Module../src/index.tsx (:3000/static/js/main.chunk.js:36002)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at fn (:3000/static/js/bundle.js:151)
    at Object.1 (:3000/static/js/main.chunk.js:36016)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at checkDeferredModules (:3000/static/js/bundle.js:46)
    at Array.webpackJsonpCallback [as push] (:3000/static/js/bundle.js:33)
    at :3000/static/js/main.chunk.js:1
2:3000/static/js/vendors~main.chunk.js:303738 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (:3000/static/js/vendors~main.chunk.js:303738)
    at Object.useContext (:3000/static/js/vendors~main.chunk.js:303746)
    at InternalButton (:3000/static/js/vendors~main.chunk.js:69241)
    at renderWithHooks (:3000/static/js/vendors~main.chunk.js:468309)
    at updateForwardRef (:3000/static/js/vendors~main.chunk.js:470281)
    at beginWork (:3000/static/js/vendors~main.chunk.js:472050)
    at HTMLUnknownElement.callCallback (:3000/static/js/vendors~main.chunk.js:453701)
    at Object.invokeGuardedCallbackDev (:3000/static/js/vendors~main.chunk.js:453750)
    at invokeGuardedCallback (:3000/static/js/vendors~main.chunk.js:453803)
    at beginWork$1 (:3000/static/js/vendors~main.chunk.js:476567)
    at performUnitOfWork (:3000/static/js/vendors~main.chunk.js:475531)
    at workLoopSync (:3000/static/js/vendors~main.chunk.js:475507)
    at performSyncWorkOnRoot (:3000/static/js/vendors~main.chunk.js:475125)
    at scheduleUpdateOnFiber (:3000/static/js/vendors~main.chunk.js:474557)
    at updateContainer (:3000/static/js/vendors~main.chunk.js:477706)
    at :3000/static/js/vendors~main.chunk.js:478089
    at unbatchedUpdates (:3000/static/js/vendors~main.chunk.js:475275)
    at legacyRenderSubtreeIntoContainer (:3000/static/js/vendors~main.chunk.js:478088)
    at Object.render (:3000/static/js/vendors~main.chunk.js:478171)
    at Module.<anonymous> (:3000/static/js/main.chunk.js:35923)
    at Module../src/index.tsx (:3000/static/js/main.chunk.js:36002)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at fn (:3000/static/js/bundle.js:151)
    at Object.1 (:3000/static/js/main.chunk.js:36016)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at checkDeferredModules (:3000/static/js/bundle.js:46)
    at Array.webpackJsonpCallback [as push] (:3000/static/js/bundle.js:33)
    at :3000/static/js/main.chunk.js:1
:3000/static/js/vendors~main.chunk.js:479838 The above error occurred in the <ForwardRef(InternalSelect)> component:
    in ForwardRef(InternalSelect)
    in div
    in DataLoader
    in Wrap (at App.tsx:265)
    in div (created by FormItemInput)
    in div (created by FormItemInput)
    in div (created by Col)
    in Col (created by FormItemInput)
    in FormItemInput (created by FormItem)
    in div (created by Row)
    in Row (created by FormItem)
    in FormItem (at App.tsx:264)
    in form (created by ForwardRef(Form))
    in ForwardRef(Form) (created by ForwardRef(InternalForm))
    in SizeContextProvider (created by ForwardRef(InternalForm))
    in ForwardRef(InternalForm) (at App.tsx:226)
    in div (at App.tsx:225)
    in div (at App.tsx:218)
    in FormProvider (created by ProviderChildren)
    in LocaleProvider (created by ProviderChildren)
    in ProviderChildren (created by Context.Consumer)
    in LocaleReceiver (created by ConfigProvider)
    in ConfigProvider (at App.tsx:217)
    in App (at src/index.tsx:8)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
console.<computed> @ :3000/static/js/vendors~main.chunk.js:479838
:3000/static/js/vendors~main.chunk.js:479838 The above error occurred in the <ForwardRef(InternalSelect)> component:
    in ForwardRef(InternalSelect)
    in div
    in StyleLoader
    in Wrap (at App.tsx:255)
    in div (created by FormItemInput)
    in div (created by FormItemInput)
    in div (created by Col)
    in Col (created by FormItemInput)
    in FormItemInput (created by FormItem)
    in div (created by Row)
    in Row (created by FormItem)
    in FormItem (at App.tsx:254)
    in form (created by ForwardRef(Form))
    in ForwardRef(Form) (created by ForwardRef(InternalForm))
    in SizeContextProvider (created by ForwardRef(InternalForm))
    in ForwardRef(InternalForm) (at App.tsx:226)
    in div (at App.tsx:225)
    in div (at App.tsx:218)
    in FormProvider (created by ProviderChildren)
    in LocaleProvider (created by ProviderChildren)
    in ProviderChildren (created by Context.Consumer)
    in LocaleReceiver (created by ConfigProvider)
    in ConfigProvider (at App.tsx:217)
    in App (at src/index.tsx:8)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
console.<computed> @ :3000/static/js/vendors~main.chunk.js:479838
:3000/static/js/vendors~main.chunk.js:476036 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (:3000/static/js/vendors~main.chunk.js:303738)
    at Object.useContext (:3000/static/js/vendors~main.chunk.js:303746)
    at InternalSelect (:3000/static/js/vendors~main.chunk.js:83219)
    at renderWithHooks (:3000/static/js/vendors~main.chunk.js:468309)
    at updateForwardRef (:3000/static/js/vendors~main.chunk.js:470281)
    at beginWork (:3000/static/js/vendors~main.chunk.js:472050)
    at HTMLUnknownElement.callCallback (:3000/static/js/vendors~main.chunk.js:453701)
    at Object.invokeGuardedCallbackDev (:3000/static/js/vendors~main.chunk.js:453750)
    at invokeGuardedCallback (:3000/static/js/vendors~main.chunk.js:453803)
    at beginWork$1 (:3000/static/js/vendors~main.chunk.js:476567)
    at performUnitOfWork (:3000/static/js/vendors~main.chunk.js:475531)
    at workLoopSync (:3000/static/js/vendors~main.chunk.js:475507)
    at performSyncWorkOnRoot (:3000/static/js/vendors~main.chunk.js:475125)
    at scheduleUpdateOnFiber (:3000/static/js/vendors~main.chunk.js:474557)
    at updateContainer (:3000/static/js/vendors~main.chunk.js:477706)
    at :3000/static/js/vendors~main.chunk.js:478089
    at unbatchedUpdates (:3000/static/js/vendors~main.chunk.js:475275)
    at legacyRenderSubtreeIntoContainer (:3000/static/js/vendors~main.chunk.js:478088)
    at Object.render (:3000/static/js/vendors~main.chunk.js:478171)
    at Module.<anonymous> (:3000/static/js/main.chunk.js:35923)
    at Module../src/index.tsx (:3000/static/js/main.chunk.js:36002)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at fn (:3000/static/js/bundle.js:151)
    at Object.1 (:3000/static/js/main.chunk.js:36016)
    at __webpack_require__ (:3000/static/js/bundle.js:852)
    at checkDeferredModules (:3000/static/js/bundle.js:46)
    at Array.webpackJsonpCallback [as push] (:3000/static/js/bundle.js:33)
    at :3000/static/js/main.chunk.js:1

I added https://github.com/geostyler/geostyler#troubleshooting to the Readme as this is an ongoing issue.


imagenet accuracy

I see higher accuracy than reported in readme.
export DATA_DIR=/../CK-TOOLS/dataset-imagenet-ilsvrc2012-val/
$ ./run_local.sh tf resnet50 gpu --accuracy
Accuracy qps=129.15, mean=0.006666, time=387.14, acc=73.87, queries=50000, tiles=50.0:0.0060,80.0:0.0065,90.0:0.0089,95.0:0.0118,99.0:0.0120,99.9:0.0122

yes, I see exactly the same number. Will update it.

the accuracy code final, with LoadGen etc.?

yes, just running mobilenet as well.

I got the following for mobilenet
Accuracy qps=149.30, mean=0.005368, time=3.35, acc=69.80, queries=500, tiles=50.0:0.0034,80.0:0.0034,90.0:0.0035,95.0:0.0037,99.0:0.0058,99.9:0.5135

same number here.

SSD-mobilenet:
TestScenario.SingleStream qps=186.31, mean=0.017249, time=26.84, acc=93.33, mAP=0.23, queries=5000, tiles=50.0:0.0172,80.0:0.0177,90.0:0.0180,95.0:0.0182,99.0:0.0189,99.9:0.0202
Please verify and update readme if needed @guschmue . Thanks!

reminder to update the readme of mobilenet and ssd-mobilenet @guschmue

fixed.


Gettext\Loader\PoLoader doesn't exist

When I try to use this code:
require_once __DIR__ . "/vendor/autoload.php";

use Gettext\Loader\PoLoader;

$loader = new PoLoader();

$dir = "/app/";

$t = $loader->loadFile($dir . "languages/it.po");

print_r($t . "YE::::);

it doesn't show anything on the page. Also "YE:::::" doesn't show up.
Sorry for ignorance, I'm a beginner of PHP.

The code is wrong, you miss the final quote in print_r($t . "YE::::);

The code is wrong, you miss the final quote in print_r($t . "YE::::);

Oh, sorry, I'm a noob.

I have one more question. How can I get a translation (for example "Hi") from the $t variable?
Can i register ($t->register) it?


mcuboot: enable use on RICSV with ram load mode

this enables the use of mcuboot on riscv with ram load mode.
for that a function to get the flash_img_get_upload_slot() is needed.

We have some problems in ci, now that CONFIG_ROM_START_OFFSET isn't ignored anymore on RISCV platforms and actually used.

The CI issues will have to be addressed.

@tkng-rivos @snematbakhsh ping ??

fixed nit.


Consider moving google/cloud/storage/emulator/... to a separate repo

https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/storage/emulator contains an emulator for GCS written in python. It is used by this project, but I believe it's also used by other projects as well (or will be soon? maybe someone can correct me if I'm wrong). The owners of this repo (@googleapis/cloud-cxx-owners) do not actually own or work on this code, may not be python experts, and may not be the right people to troubleshoot issues w/ this code.
I think we probably want to move google/cloud/storage/emulator/... to a separate repo.
Who will own the new repo? Not sure, but I'd look to @frankyn to either own it or help identify appropriate owner(s).
How will we (and others) access the emulator? Do other teams use it today out of this repo today? How do they do that? Maybe we can continue doing that. Or maybe it can be published in a docker image, or as a pip module, or add it to gcloud alpha emulators.
When should this happen? There's no urgency, but I'd say now would work. Later would work too if now is booked.
What should move? All the (python) emulator code in https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/storage/emulator
Thoughts? @frankyn @coryan Feel free to add others who you think might have opinions.

IIUC, the C++ library uses the emulator to run local Storage integration tests, is that no longer true @coryan?

We do use the emulator in our GCS tests. Are we the only folks who use it or do other teams/projects use this emulator as well?

We are planning to use to support the retry strategy alignment project with Storage clients in other languages. Shared design doc with you.

Thanks, Frank. OK, so it sounds like other teams will be using the GCS emulator. Then I'm back to the original post where I think the C++ library repo is not the right place for the python-based GCS emulator to live. It seems like it would be better if the emulator moved to a separate repo w/ appropriate owners assigned (likely not @googleapis/cloud-cxx-owners), and then we will continue to use the emulator just like all the other client libraries.
WDYT?

I think it makes sense to split it out given we want to use it across languages. I have reservations about doing a split now because it could signal to customers that it's fully supported (which it's not but we could change that).

Cool. Moving it before other libraries start depending on it living here may make things easier, but I'm happy to not push that requirement on you. Re customer, a clear and loud README that says it's unsupported etc?

I'll find time for us to sync along with the Storage EM. cc: @danielduhh

I am actually in the process of doing this, see googleapis/storage-testbench#24


[JavaScript][Extensibility] [Min/max limit not set on number input]

Platform
What platform is your issue or question related to? (Delete other platforms).

[ ] JavaScript

Author or host
Host: Microsoft Teams (multi-window).
Version of SDK
JS v2.5.0.
Details
On a custom number type input, if the limit min/max is set to 0, it is set as undefined and hence the range validation is not effective.

@dclaux are you able to take a look at this real quick? @golddove who;d been investigating with the Teams dev.

@aroraketan given that this cannot be reproduced with the default implementation of NumberInput, and assuming that your custom NumberInput:

Extends the base NumberInput
Replaces its rendering by overriding internalRender

My conclusion would be that your custom control code doesn't properly set the min and max values on your replacement control. Please check that and let me know.

Scratch the above - there is indeed a bug in the base NumberInput implementation whereas if min or max are set to 0 they are not set on the input control.
I will fix today.


Adding my project

Description

Issue Ticket Number
Fixes #(issue_number)

Checklist:

[ ] I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING.md
[ ] I have cross-checked that the dataset I'm uploading is not present in the project
[ ] I have cross-checked that the dataset is present in the correct folder

We already do have the Breast Cance and Stocks price dataset.


crust_node example returns the same endpoint multiple times

When trying to bootstrap to an existing "server" crust node by doing
target\debug\examples\crust_node.exe 5555 -b 5483

I get the following output:

Received IPv4 address <IP_ADDRESS>:5493

Received IPv4 address <IP_ADDRESS>:5555

Received IPv4 address <IP_ADDRESS>:5555

Received IPv4 address <IP_ADDRESS>:5555

This repeated address represents previous failed attempts to bootstrap off the server.

Lots of changes since this issue was first reported:

crust_node example is now crust_peer

The options given to crust_peer in this report now fails with:

Could not decode 5555 as valid IPv4 or IPv6 address.

This issue can be fixed by changing 5555 argument to <IP_ADDRESS>:5555.

The report had some implicit/hidden information. If the user try to blindly execute the command, he'll get:
Listening for new connections on Tcp(54638), and listening for UDP broadcast on port 5483.
NOTE: Transport connect <IP_ADDRESS>:5555 failure due to Connection refused (os error 111)
Failed to bootstrap from provided peers with error: No bootstrap node got connected
Since peers were provided, this is assumed to NOT be the first node of a new network.
Exiting.
An unknown error occurred

To run the example, I'm actually using:
cargo run --example crust_peer -- -b 5483

Anyway, the bug report is quite old and I can't reproduce the error. I guess it was solved by some old commit. I'm closing it now.


Added psptools to encrypt when building

Would resolve #1
I didn't want to mess with the applications Makefile so the global Makefile will do all the work. Tested on my 2K with OFW loaded.

https://github.com/catmagicspell/themadump/issues/1#issuecomment-2170052852


Wip 315 syncronise branch

Its quite a large PR but it's only to catch up on the develop branch since many changes have been added (such as datetime management that i needed)

I only added a dataset with synthetic data on COVID and solve the conflicts

Easier to look at the changes made in the three last commits

Coverage report
 Click to see where and how coverage changed
FileStatementsMissingCoverageCoverage(new stmts)Lines missing

  server/lomas_server
  app.py
83
  constants.py

  mongodb_admin.py

  server/lomas_server/admin_database
  factory.py

  utils.py

  server/lomas_server/dataset_store
  lru_dataset_store.py

  server/lomas_server/dp_queries/dp_libraries
  diffprivlib.py

  factory.py

  opendp.py

  smartnoise_sql.py

  utils.py

  server/lomas_server/private_dataset
  factory.py

  path_dataset.py

  private_dataset.py

  server/lomas_server/routes
  routes_admin.py

  routes_dp.py

  utils.py

  server/lomas_server/tests
  test_api.py

  test_api_diffprivlib.py
27-30
  test_mongodb_admin.py

  test_mongodb_admin_cli.py

  server/lomas_server/utils
  collection_models.py

  config.py

  query_examples.py

  query_models.py

Project Total

The report is truncated to 25 files out of 34. To see the full report, please visit the workflow summary page.

This report was generated by python-coverage-comment-action

How do you synchronise ? You branched of feature/opendp et rebased from master ? or something else?

How do you synchronise ? You branched of feature/opendp et rebased from master ? or something else?

I merged develop in my current branch and solved the conflicts (especially due of the restructuring of certain files). A rebase would take me forever.


Query regarding the code

Hi @jianrenw,
Firstly, congratulations on the great work, and many thanks for sharing the repository.
The method to use tracker in semi-supervised setup for 3D object detection is quite appealing, and I am trying to do something similar. I tried to lookup in your code for how the GNN based tracker is implemented. But I could not find it, maybe I am missing something. It would be really great if you could point me to it please?
Looking forward to your reply.
Thank You !
Cheers,
Anuj

@anuj-sharma-19 , Did you get any updates regarding that?


How to use base64encode insise element

I try make an XML like this. But i don't know how to use with bulder.element
<?xml version="1.0"?>
    <bookshelf>
      <book>
        PHRpdGxlIGxhbmc9ImVuZ2xpc2giPkdyb3dpbmcgYSBMYW5ndWFnZTwvdGl0bGU+CiAgPHByaWNlPjI5Ljk5PC9wcmljZT4=
      </book>
      <book>
        PHRpdGxlIGxhbmc9ImVuZ2xpc2giPkxlYXJuaW5nIFhNTDwvdGl0bGU+CiAgICAgICAgPHByaWNlPjM5Ljk1PC9wcmljZT4=
      </book>
      <price>132.00</price>
    </bookshelf>

and data is
<?xml version="1.0"?>
    <bookshelf>
      <book>
        <title lang="english">Growing a Language</title>
        <price>29.99</price>
      </book>
      <book>
        <title lang="english">Learning XML</title>
        <price>39.95</price>
      </book>
      <price>132.00</price>
    </bookshelf>

There are countless examples of how to use the builder in the test: https://github.com/renggli/dart-xml/blob/main/test/builder_test.dart
To create a book element with arbitrary string data use: builder.element('book', nest: base64encoded), where base64encoded is a String of your encoded data.

thanks for that i has been do it already


Adjust code to 38f6fd96793e031427be801612abf07d8d649d50

Can one of the admins verify this patch?

What is the rationale for this PR?

Thanks for the change! The documentation has been updated, so closing this out.


ugdg

Coverage remained the same at 80.353% when pulling b001d1fa72e8f74ce06ffa5dacdf7c25f37bbefc on Pengyuz:ugdg into b1ea2e04a00c94cc15a242cf39386b298869cb2b on CS2103AUG2017-W09-B3:master.


Make python scripts python3 compatible.

With the assistance of the python module six (seems to be mostly standard), the
python module is now python2 and python3 compatible. No magic future.

LGTM


"response_schema" results in KeyError

Description of the bug:
Hello, I'm trying to recreate the example at: https://github.com/google-gemini/cookbook/blob/main/examples/json_capabilities/Text_Summarization.ipynb. After specifying the classes and creating the generation_config, while invoking the genai.GenerativeModel model with generation_config results in a KeyError.
In [22]: from google import generativeai as genai
         from typing_extensions import TypedDict

In [23]: genai.__version__
Out[23]: '0.7.1'

In [24]: class Character(TypedDict):
            name: str
            description: str
            alignment: str

        class Location(TypedDict):
            name: str
            description: str

        class TextSummary(TypedDict):
            synopsis: str
            genres: list[str]
            locations: list[Location]
            characters: list[Character]

In [25]: generation_config = {
            "response_mime_type": "application/json",
            "response_schema": TextSummary
        }

In [26]: model = Genai.GenerativeModel(
            model_name=model_name,
            generation_config=generation_config,
        )

Traceback (most recent call last):

  Cell In[26], line 1
    model = Genai.GenerativeModel(

  File ~\AppData\Local\anaconda3\Lib\site-packages\google\generativeai\generative_models.py:86 in __init__
    self._generation_config = generation_types.to_generation_config_dict(generation_config)

  File ~\AppData\Local\anaconda3\Lib\site-packages\google\generativeai\types\generation_types.py:213 in to_generation_config_dict
    _normalize_schema(generation_config)

  File ~\AppData\Local\anaconda3\Lib\site-packages\google\generativeai\types\generation_types.py:184 in _normalize_schema
    response_schema = content_types._schema_for_class(response_schema)

  File ~\AppData\Local\anaconda3\Lib\site-packages\google\generativeai\types\content_types.py:298 in _schema_for_class
    schema = _build_schema("dummy", {"dummy": (cls, pydantic.Field())})

  File ~\AppData\Local\anaconda3\Lib\site-packages\google\generativeai\types\content_types.py:383 in _build_schema
    unpack_defs(parameters, defs)

  File ~\AppData\Local\anaconda3\Lib\site-packages\google\generativeai\types\content_types.py:404 in unpack_defs
    ref = defs[ref_key.split("defs/")[-1]]

KeyError: '#/definitions/TextSummary'

Actual vs expected behavior:
No response
Any other information you'd like to share?
No response

Hi @ganjigajanan,
I have tried in the similar way passing the generation_config  while declaring the model and it works for me as expected, can you take a look at the gist and make and try and let me know if still the error persists.
model = genai.GenerativeModel(
    model_name="gemini-1.5-pro-latest",
    generation_config={"response_mime_type": "application/json", "response_schema": TextSummary},
)

Thanks

Hi,
I have the same error. Running Python 3.10.2 on Mac.
Was there a resolution to this? Could it be to do with Pydantic version?
Cheers,
David

Update:
I did a check on my pydantic install, which was as follows:
pydantic==1.10.14
pydantic_core==2.14.6
Upgrading pydantic yielded:
pydantic==2.8.2
pydantic_core==2.20.1
With this the KeyError issue is removed and the Gemini API performs as expected. (Now I need to check for any dependencies on my project to the Pydantic v1...)

I'm also having an issue with response_schema not working as intended. It appears to  ignore all keys of a Dict except the first one. This is my class:
class SubtitleObject(typing.TypedDict):
    index: str
    content: str

This is the response I'm getting:
[{'index': '0'}, {'index': '1'}, {'index': '2'}, {'index': '3'}, {'index': '4'}, {'index': '5'}, {'index': '6'}, {'index': '7'}, {'index': '8'}, {'index': '9'}, {'index': '10'}]

Even the official docs show the same bug:


Movie profile loading can take some time

First profile can still be a little slow, but all others have been sped up so closing the issue


Code Collapse/Expand issue using +. Elements must end on same col

VSCode Version: Code - Insiders 1.16.0-insider (aa42e6ef8184e8ab20ddaa5682b861bfb6f0b2ad, 2017-09-01T15:40:17.463Z) (Also present in 1.15.1)
OS Version: Windows_NT x64 10.0.15063

Extension
Author (truncated)
Version

copy-relative-path
ale
0.0.1

vscode-great-icons
emm
2.1.15

beautify
Hoo
1.1.1

team
ms-
1.122.0

Steps to Reproduce:

Open a file (using HTML/CSS/JS locally)

Ensure code block is in expanded state and opening and closing div tags are in different col number. See red x below at the opening tag and another at closing tag.

When clicking on the "+" to collapse, the code block is collapsed, but the the div ends up inside the collapsed code block.

Now, ensure the closing div is on the same col as below:

click on the "+" to collapse, the code block is collapsed, the div is now outside the collapsed code block as below:

Reproduces without extensions: Yes

What you observe is as expected. Folding is based on indentation only.
The request for language aware folding is #3422


Failed to load API definition for EvicdenceReport.

Describe the bug
when accessing the API definitions for an EvidenceReport resource via http://localhost:8080/fhir/swagger-ui/?page=EvidenceReport  server responds with a 400 status
To Reproduce
Steps to reproduce the behavior:

start an empty hapiproject/hapi docker image with fhir version R5
docker run --e hapi.fhir.fhir_version=R5 -p 8080:8080 hapiproject/hapi:v6.4.0
Using the browser go to http://localhost:8080/fhir/swagger-ui/?page=EvidenceReport
Scroll down to the bottom o the page
See the error "Failed to load API definition."

Expected behavior
Interactive access to the API to test operations. Other resources work without problem.
Screenshots

Environment (please complete the following information):

HAPI FHIR Version 6.4.0
OS: Ubuntu 22.04
Browser: Brave
Docker desktop: 4.15.0 (93002)

For my case, I fixed it by re-check server_address in application.yaml

I changed to https://my-subdomain.my-domain.com/fhir. For your case, it might be http://localhost:8080/fhir
Note:

Check these values first before configure server_address

If it not correct, you couldn't load /api-docs


Bump Precommit Java Examples Timeouts

Adds a 15 minute bump to the workflow timeouts for PreCommit_Java_Examples_Dataflow and PreCommit_Java_Examples_Dataflow_Java21 actions that have been getting cancelled before completing on the 2.53.0 release branch

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @damccorm @chamikaramj

LGTM


Self test adapted to latest changes in JsonPreprocessor code

Hi @namsonx ,
please test and give a "Go", then I merge your pull-request to develop_6.1.
Thank you,
Thomas

Hi @namsonx , please test and give a "Go", then I merge your pull-request to develop_6.1. Thank you, Thomas

Hello @test-fullautomation,
I tested and it's ready to "Go".
Thank you,
Son


Inconsistency in NavBar Products Tab

Description
Double clicking on Products works perfectly, but when clicking on arrow icon, it doesn't closes. (Minor Bug)
CodeSandbox/Snack link
No response
Steps to reproduce

Go to https://gluestack.io/
Double Click on Arrow Icon right to Products tab in Navbar
See inconsistency

gluestack-ui Version
1.0
Platform

[ ] Expo
[ ] React Native CLI
[ ] Next
[X] Web
[ ] Android
[ ] iOS

Other Platform
No response
Additional Information
Video Link : https://drive.google.com/file/d/14ZNLV-duZbBKOzs3uwa3_oMhvFNHAAvj/view?usp=sharing

I would like to work on this, if this gets assined to me.

Thanks for reporting. This issue has been resolved now.


transgui: unstable-2023-10-19 -> unstable-2024-02-26

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for transgui is: A cross platform front-end for the Transmission BitTorrent client
meta.homepage for transgui is: https://sourceforge.net/p/transgui
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2024-02-26 in filename of file in /nix/store/0h3wsqdc02l9qw2djwqkrpi902a2h9z8-transgui-unstable-2024-02-26

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
transgui

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/0h3wsqdc02l9qw2djwqkrpi902a2h9z8-transgui-unstable-2024-02-26 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A transgui https://github.com/r-ryantm/nixpkgs/archive/8c8b1ae2e729c04c8384da0722566063c17f918c.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/8c8b1ae2e729c04c8384da0722566063c17f918c#transgui

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/0h3wsqdc02l9qw2djwqkrpi902a2h9z8-transgui-unstable-2024-02-26
ls -la /nix/store/0h3wsqdc02l9qw2djwqkrpi902a2h9z8-transgui-unstable-2024-02-26/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

transgui

Maintainer pings
cc @RamKromberg for testing.

/nix/store/0h3wsqdc02l9qw2djwqkrpi902a2h9z8-transgui-unstable-2024-02-26/bin/transgui works fine on stable.


Add files via upload

@languint The first verification stage is complete: the official domain for  Glenbard South High School is www.glenbardsouthhs.org, to the best of my knowledge. This is just an informational note. The pull request is still under review. The review may take some more time. I greatly appreciate your patience. Here is the proof of domain ownership: https://www.glenbardsouthhs.org/staff-directory/

@languint Pull request merged. Please start requesting the licenses in about an hour, to let the changes to propagate through our system. Thank you.


format units in list

We need to  get the correct unit for display. We should walk down the list of units from largest to smallest until one comes back over 1 then that's our unit. Also let convert from decimal to fractions as is traditional in recipes.

This should be working I start at the biggest volume and move towards the smallest until i get a whole number once I have a whole number we are done


Make build/layout/paint profiling cheaper

Turning on debugProfileBuildsEnabled, debugProfileLayoutsEnabled, or debugProfilePaintsEnabled causes significant performance overhead, which is why these options are disabled by default. They do make the timeline more useful, though, and there's value in figuring out if we could enable these options by default.
Open questions:

Are these options expensive because calling the timeline API so often is expensive?
Or is the majority of the expense caused by the implicit runtimeType.toString() calls that happen to log the name of the RenderObject/Widget to the timeline?
If it is the latter, could we use a kernel transformer to replace the runtimeType.toString() calls with the actual static string name of the RenderObject/Widget they are called on to make these options cheaper?

Even if we don't want to turn these options on by default, making them cheaper has the benefit that one can still make accurate performance statements from traces with these options enabled. Right now, traces with these options enabled only allow for relative statements (x is slower than y in the same trace).
/cc @dnfield @kenzieschmoll @jacob314

One additional option is to perform some filtering of the events dispatched to only include user created widgets. This should reduce the # of events by ~10X while still solving the majority of problems. Users need to be able to tell which of their widgets is slow so they can optimize not optimize the framework itself.
For example, suppose your Widget creates a ListView that is very slow as it creates 1000 widgets in a non-lazy manner. You would still see the ListView showing up as slow but you wouldn't see the internals of the ListView. This could be accomplished with the creation location transformer modified to only track a boolean of whether the widget is created from package Flutter or not.
Fyi @bkonyi as there might also be some ways to optimize tracing in the Dart VM if the expensive element is json serialization of these events.

FWIW, #93086 makes this much worse, by doing a lot of work when adding these timeline events. If we can actually make this representative of performance in profile builds, we should make sure to hide the additional information in profile builds.

The timeline API itself isn't very expensive, assuming you're not logging tons of arguments (there's a conversion from a Dart Map -> Dart String -> copy to Malloc'd memory). If no service requests for the timeline are made, logging events shouldn't result in much of a performance hit.
For serialization, we don't deserialize the arguments JSON, so the actual JSON serialization of individual timeline events shouldn't vary much with the exception of the cost of copying the arguments string into the serialization buffer. Obviously if there's lots of timeline events in the time range requested, this can add up quite a bit and result in a very large JSON response.

It's not so much that they're expensive, so much that the overhead is a significant fraction of the actual total work done for the own-length of events we're measuring. If you walk a tree of 1000 nodes, and each node takes 1000 instructions, 20 of which are for timeline events, then you have executed 1,000,000 instructions, 20,000 of which are for the timeline, which is 2%. That's going to make the results less precise than if you only spent 20 instructions out of 980,020, however you cut it.
(I made those numbers up. I've no idea what the actual overhead is or what the actual time taken per node is.)
Historically, we have had cases where merely measuring the performance was literally the source of our performance problems. I don't really see how this can ever not be the case when measuring many short events.


Great image, would you consider adding support for custom modules?

Awesome image, thank you for sharing.
Would you consider adding support for a couple of things to this:

LDAP module, similar to this one here: https://hub.docker.com/r/virtuman/docker-nginx/~/dockerfile/
not sure if anyone ever uses or if anyone would benefit from this, but generally a good module: nginx_upload_progress
virtual host stats: nginx-module-vts
with-http_geoip_module
with-http_image_filter_module
with-libatomic
with-http_image_filter_module
possibly add an Environment variable to append to ./configure statement, ie. $ADDITIONAL_CONFIGURE_PARAMETERS

some of the modules support dynamic loading (like geoip).
here's a very good implementation of dynamic modules:
https://github.com/ngineered/nginx-php-fpm/blob/master/Dockerfile
combination of both of these image builders would create and ultimate nginx image
Thank you for consideration

Thanks for your comments. I'm definitely open to suggestions about useful modules for the build, while at the same time trying not to go crazy with cruft.
The currently installed modules are only those which I find regular use for.  If you would like to create pull requests for modules you find particularly useful, along with supporting arguments then I will definitely consider adding them to the Dockerfiles.


re-examine/redo @font-face

the current implementation is rather weak, and doesn't participate well in the hashing goodness; further I haven't really used it extensively yet. open to ideas.

I'm trying to use fontFace for work and I discovered I had to do this:
fontFace({ fontFamily: 'Roboto', fontWeight: 300, ... })
...
const roboto = fontFace({ fontFamily: 'Roboto', fontWeight: 600, ... })

Maybe changing the api so the fontFace function may accept an array of fonts of same family or something else would be nice.


Merge extended features in default

As we incrementally add new features, it makes the entire code more complex.
It's better to merge extended features into the base code in default.

@matetokodi @zherczeg
It seems that arm32-jit fails in atomic_with_offsets.wast and atomic.wast
Would you please check it?

This PR hopefully fixes the bug: #292


Optimize deployment

We haven't mussed much with production performance.  If we stay on Heroku, start here: https://devcenter.heroku.com/articles/rails4

Note: Commit 5e0e22a9bf6b95c97d4563171bec1aadc8cc31da and commit b5d060292747b3691e69244ccf52cc24052fd458 are steps in this direction.

Commits 5e0e22a and commit b5d0602 made big steps in this direction.  We can always improve performance more, but currently that's not our big issue, and Fastly will make more of a difference.  Specific performance issues and solutions can be added as a separate issue, but I think we can close this generic one now.

Note: commit 52f08cc0938c07675690eb0be36a9cc80578bb86 added heroku_rails_deflate to auto-compress in production, and that significantly helps (it'll help even more once we deploy a CDN).  Commit 8513904bae3537322797a858904be0748db38736 (resize badge image) helped a little too.


I wish this API didn't require the client secret...

I wish this API didn't require the client secret...
Originally posted by @TylerLeonhardt in https://github.com/microsoft/vscode/issues/152055#issuecomment-1155995803

Why?


Code-snippets padding fix

We had an ask from design to remove the padding from extra padding from the code snippets box
See here: https://github.com/viamrobotics/app/pull/3704
Removed the extra padding from the top and left of the code snippet component and added padding all around

Don't forget to pnpm build in the ui dir and add lock file : )


When I run install-zstack.sh the Command line fail

Could not find a version that satisfies the requirement CherryPy==3.2.4 (from zstacklib==0.6) (from versions: )
No matching distribution found for CherryPy==3.2.4 (from zstacklib==0.6)
but why?

Are you able to manually install CherryPy by pip commas?
On Monday, May 25, 2015, SilentTT<EMAIL_ADDRESS>wrote:

Could not find a version that satisfies the requirement CherryPy==3.2.4
(from zstacklib==0.6) (from versions: )
No matching distribution found for CherryPy==3.2.4 (from zstacklib==0.6)
but why?
—
Reply to this email directly or view it on GitHub
https://github.com/zstackorg/zstack/issues/33.

--
Yongkang You

It's issue of SSL library of Linux. You need to upgrade the openssl to the latest version


GsaAPI.Prop2D Thickness not working

https://github.com/arup-group/GSA-Grasshopper/blob/33b46f2dcdacb528ec248d741f4a2432fc6569e1/GhSA/Components/1_Properties/CreateProp2d.cs#L213

Thickness was renamed to Description and was there the whole time - doh!


Add ticks for the x-axis

See Linus comment: Here the tics are also in the space between the y-axis and the first bar and a tic in between the percentage axis and the last bar. I have used the same space on the tics as in between the bars.
Planning poker score: 3 (0-89 Fibonacci)

The issue is obsolete in the new code refactor and handled in D3 instead.


licensee  usage

allow ad hoc cli matching of individual license files not in a
particular project location
I might be the only person in the universe who wants this, in which case I'm happy to create a ruby script for myself that [ab]uses licensee rather than have this be in licensee.

Thanks @mlinksva!


Can show distance same as Google Map ?

Hi,
I use your library in React Native. It work well but your result return distance between 2 points look like doesn't same as google map. I think GG Map distance is the road distance but your are not.
So in your library is there any method can return the road distance as GG Map ? Thank you.

The geolib library calculates the linear distance between two geocoordinates and not the route between two places as Google Maps.


TRYING TO COMMIT

Please check if this PR fulfills these

[ ] The commit message is descriptive of changes
[ ] You have tried at least one local test (this includes viewing the changes on your local fork)
[x] Docs have been added / updated as needed (for bug fixes / features)

What kind of change does this PR introduce?

[ ] Typo / Doc Update
[ ] Bug Fix
[x] Feature / New Item

What is the new behavior (if this is a feature change)?

[ ] Added Interview Technical Question
[ ] Added Interview Whiteboard Question
[ ] Corrected existing items
[ ] Other

Adding new question ? Please check if this PR fulfills these

[ ] <title> tag has been updated
[ ] <h1> tag has been updated
[ ] new file is kabob-case-like-this.html
[ ] link to question has been added in technical.html or whiteboard.html

Other information:

It looks like the commit worked! However, I think the comment was more descriptive of the code before this change, so I'm going to close this Pull Request. I hope to see you open a new one soon!


Add certificate policy of type any policy id

Description
Add a function for getting the certificate policy. Currently only
"Any Policy" is supported.
Added initial tests for oid module
Status
READY
Requires Backporting
NO
Additional comments
Any additional information that could be of interest
Todos

[x] Tests
[x] Documentation
[x] Changelog updated
[ ] Backported

@Patater Thank you for your comments!
I have addressed your comments and added another test data, using a valid oid, but not for this type.
I have squashed the modifications to first commit, for quicker process, as these are minimal changes

@Patater I removed the extra line and pushed to first commit.
Please review


set sync_committee_size on start

A potential fix for #87. I figured hooking in at New would be sufficient. The only issue I can think of would be that having a multi with different testnet configs could be an issue. (though I am not sure why someone would do this) I am open to other options.

NOTE incomplete as is. Would require enforcing JSON when we detect that clients are running on a non-standard network


helm chart config

The new chart has a hardcoded config of: []. There needs to be a way for the user to specify the config, as it is not good for a user to manually edit a file that helm manages.
I think this can be easily acomplished by changing
https://github.com/ceph/ceph-csi/blob/release-v1.1.0/deploy/rbd/helm/templates/csiplugin-configmap.yaml to instead of:
data:
  config.json: |-
    []

do:
data:
  config.json: |-
{{ toJson .Values.config | indent 4 }}

and add to values.yaml:
config:
  []

I will pick this up, hopefully tomorrow also implementing:
https://github.com/ceph/ceph-csi/pull/555#discussion_r314618704

awesome :+1:
/assign @wilmardo


Support for corrected Llama

Hey GPTQ-for-LlaMa maintainers 👋  @qwopqwop200 @MasterTaffer
I'm a maintainer from HuggingFace 🤗 , responsible for text generation. Llama was not compatible with left-padding, which is required for batched generation, so a fix was applied (https://github.com/huggingface/transformers/pull/22382). This added a new non-optional input in the inner layers, which breaks your code (see this issue).
I believe that potential fixes include:

Catching position_ids here, setting it here, and passing it to the layer() calls;
Pinning transformers to a version prior to this commit, e.g. 5506d0496957cde19318eee3d34ee682b654abe8 (the commit immediately before)

Cheers!

Modified the current code to support.

This was still an issue for me and the suggested changes by @gante worked for me. So I suggest to re-open the issue. Thanks for the great repo!


Gamepad Support

Discussed in https://github.com/Schneegans/Fly-Pie/discussions/224

Originally posted by ChillaMatt June  4, 2022
This may be a stretch, but a suggestion would be to allow the user to use a gamepad to control fly-pie.
I have a home theater pc with Fly-Pue installed. It works really great, but I think it would be awesome to have a gamepad as an input.

I was just looking around for actually developed open-source input-remapping projects and found that AntiMicro found a follow-up, which might be a nice companion to achieve GamePad-support:
AntiMicroX - from the ReadMe:

Description
AntiMicroX is a graphical program used to map gamepad keys to keyboard, mouse, scripts and macros. You can use this program to control any desktop application with a gamepad on Linux🐧 and Windows 🪟.
It can be also used for generating SDL2 configuration (useful for mapping atypical gamepads to generic ones like xbox360).

We support X.org and Wayland.
Features:
Mapping of gamepads/joystick buttons to:
keyboard buttons
mouse buttons and moves
scripts and executables
macros consisting of elements mentioned above
Assigning multiple switchable sets of mappings to gamepad.
Auto profiles - assign profile to active application window (not in Wayland https://github.com/AntiMicroX/antimicrox/issues/303).
This program is currently supported under various Linux distributions.
This might especially be useful to build a bridge to WSL2-based Linux-GUI-apps and ways to use Fly-Pie in this environment?


Invalid environment variables whenever I used env function anywhere outside main server file

Trying to access { env } anywhere outside the main fastify server file throws "Invalid environment variables" error so to solve this I have to use the library on the main file and send the env variables as arguments to functions that needs it for example await injectPlugins(app, env.CORS_ORIGIN, env.SECRET_KEY); I pass the fastify instance "app" and the two env variables so I can use them in another file to use cors origin for cors plugin and secret key for jwt plugin. Is there a way to use it in other files directly ?
Full code :
main.ts inside src folder :
import Fastify, { FastifyInstance } from "fastify";
import { Server } from "socket.io";
import { injectPlugins } from "./utils/plugins";
import { injectRoutes } from "./utils/routes";
import { injectSchemas } from "./utils/schemas";
import { env } from "../env";

export const app: FastifyInstance = Fastify();

declare module "fastify" {
  interface FastifyInstance {
    authenticate: any;
  }
}

declare module "fastify" {
  interface FastifyInstance {
    io: Server;
  }
}

async function build() {
  await injectPlugins(app, env.CORS_ORIGIN, env.SECRET_KEY);

  await injectRoutes(app);

  await injectSchemas(app);

  app.get("/", async function handler(_, reply) {
    reply.status(200).send("Welcome to my server! 🎉");
  });
}

async function main() {
  await build();

  try {
    app.listen({ port: 8080 }, (_, address) => {
      console.log(`server listening on: ${address}`);
    });
  } catch (e) {
    console.error("Server error: ", e);
    process.exit(1);
  }
}

main();

plugins.ts inside src/utils folder:
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
import jwt from "@fastify/jwt";
import cookie from "@fastify/cookie";
import cors from "@fastify/cors";
import io from "fastify-socket.io";

export async function injectPlugins(
  app: FastifyInstance,
  cors_origin: string,
  secret_key: string
) {
  await app.register(cors, {
    origin: cors_origin,
    credentials: true,
  });

  await app.register(jwt, {
    secret: secret_key,
    cookie: {
      cookieName: "accessToken",
      signed: false,
    },
  });

  app.decorate(
    "authenticate",
    async (request: FastifyRequest, reply: FastifyReply) => {
      try {
        await request.jwtVerify();
      } catch (e) {
        reply.status(500).send(e);
      }
    }
  );

  await app.register(cookie, {
    secret: secret_key,
  });

  await app.register(io);
}

can you post a reproduction repo? might sound silly when you have provided code but if i should set up a project manually for each issue that quickly accumulates to time i don't have :/

here's the repo for the code : https://github.com/mudai11/chess-thing/tree/main/server

That repo seems to be private. Please provide a public one / Stackblitz etc

@juliusmarminge sorry I made it private a few days ago, it's public again if you want to take a look at it.
https://github.com/mudai11/chess-thing/blob/main/server/src/main.ts
The problem lies in injectPlugins() inside build(), you can see that I'm passing env var as arguments because if I were to import env inside injectPlugins() that's inside /utils/plugins.ts file directly it won't work and gives me an "Invalid environment variables" error.

i faced the same error today. i was gonna open up an issue but glad i searched.
my error looks like:

Unhandled Runtime Error
Error: Invalid environment variables

i was using env.MODE in server but wanted it on client as i wanted to set a client-cookie in browser in next.js so i moved it to shared.
import { createEnv } from "@t3-oss/env-nextjs"
import { z } from "zod"

// see https://env.t3.gg/docs/nextjs
export const env = createEnv({
	server: {

	},
	client: {

	},
	shared: {
		MODE: z.enum(["development", "production", "staging"]),
	},
	experimental__runtimeEnv: {
		MODE: process.env.MODE,
	},
})

i include this component below in my global layout.tsx
"use client"

import Cookie from "js-cookie"
import { useSearchParams } from "next/navigation"

import { env } from "@app/lib/env"

export function SetAffiliateCookie() {
	console.log(env.MODE)
	const searchParams = useSearchParams()
	const via = searchParams.get("via")
	if (via) {
		Cookie.set("hw_affiliate", via, {
			expires: 30,
			domain: env.MODE === "development" ? "localhost" : ".helloworld.com",
			secure: true,
			sameSite: "lax",
		})
	}

	return null
}

the funny part is it logs the above console perfectly as development but still gives runtime error.
 ❌ Invalid environment variables: { MODE: [ 'Required' ] }
 X<EMAIL_ADDRESS>(29:0) @ onValidationError
 X Error: Invalid environment variables
    at eval (./app/lib/env.ts:10:74)
    at (ssr)/./app/lib/env.ts (/home/projects/stackblitz-starters-agiu7i/.next/server/app/page.js:162:1)
    at __webpack_require__ (/home/projects/stackblitz-starters-agiu7i/.next/server/webpack-runtime.js:33:42)
    at eval (./app/components/Affiliate.tsx:8:66)
    at (ssr)/./app/components/Affiliate.tsx (/home/projects/stackblitz-starters-agiu7i/.next/server/app/page.js:151:1)
    at __webpack_require__ (/home/projects/stackblitz-starters-agiu7i/.next/server/webpack-runtime.js:33:42)
null
 ✓ Compiled in 1358ms

@juliusmarminge here's my repro -> https://stackblitz.com/edit/stackblitz-starters-agiu7i

Your issue is similar to this: https://github.com/t3-oss/t3-env/issues/209
tldr; shared envs should be used carefully and most of the times you're actually looking for a public client variable


Skip group tests if group is not set

Slack apparently requires you to pay money now to create a user group. This means creating a new Slack just to test the bot is unwieldy.
I simply made it skip the group tests if the test_group is falsy.

Slack apparently requires you to pay money now to create a user group

Really? I can still create private groups in a free slack team.

Ohh is "private group" === "private channel"? That would have saved me some time :).
http://venturebeat.com/2015/10/27/slack-launches-group-chats-turn-private-groups-into-private-channels/
Mind if I make a new PR which re-names it in that case?

I understand this issue is closed, but a definitive answer was never stated, only as in the form of a question from from @csaftoiu

Ohh is "private group" === "private channel"?

Yes, apparently it is. This caused confusion for me as well hopefully this comment will help others know ahead of time. I would also be in favor of a renaming, or at the least make this distinction clearer in the documentation. I don't mind submitting the changes personally since it looks like this was never followed through on (as far as I can tell).
Great framework though guys, glad I happened upon it.

@DannyHinshaw The folks at slack renamed private groups to private channels at the end of 2015. A pull request to catch our testing infrastructure up with the change would be most welcome :) Even better, if the code could handle an env var named SLACKBOT_PRIVATE_CHANNEL if present, falling back to SLACKBOT_PRIVATE_GROUP, that'd be neat since there's more than a few of us with travis setup and this kind of change takes a while to propagate.

@jtatum , cool you got it. I'll be starting on this today since I was planning on doing some plugin work anyways. Slack also just updated their terminology for 'Teams', we're 'WorkSpaces' now... rolls eyes.
Think I'll save looking into that for another time


Newsletter

A section for collecting emails such that whenever any new BOSC event is scheduled, the subscribers are notified automatically, will serve as a great tool to advertise and increase BOSC's reach.

@axyut Do you want a subscription form or a notification section?

I've not thought of a complete implementation but the general idea is it will be in the Contact section in bottom of the Home Page.

UI part

Subscribe to Newsletter button will be placed right side of the Send Message
Make Message input box not required by placing * on other two input fields
Remove both  Say Hi and Membership radio button

Logic part

When Subscribe to Newsletter is pressed, email is collected forward to a newsletter service
Find the feasibility of integrating newsletter service right in the app without using any 3rd party/external services.
If Astro and Js allows such features, create newsletter service
Implement such that whenever Send Message is hit, it is possible to add user automatically to newsletter subscription as well

this is partially implmented currently as there are some errors, but is completely working on the dev env so this will be closed and bugs issues will be opened


Menu not populated with xsessions

Hi, I just installed Ly compiled from source in Debian 11 amd64, kernel 5.10.0-18, with Xorg 1:7.7+22.
When booting, I am correctly greeted with Ly, but the only options in the menu are "shell" and "xinitrc".
xinitrc launches xfce correctly, but I'd like to be able to use my other WMs.
My /usr/share/xsessions directory is populated, and has correct user permissions. LightDM does correctly show and lauches them.
I tried uncommenting the xsessions key in config.ini with no change.

I'm sorry, I didn't note you are supposed to clone recursively. Closing.


BUG input vue variable update not triggered ????????? !!!!!!!!!!!!!!!!!!!!!!!

Version
2.4.1
Reproduction link
http://jsfiddle.net/vadvad/1pohLabg/22/
Steps to reproduce
I ask this but issue was closed by posva, writed:  Vue cannot listen back to setting the value directly into the DOM element. This is not true see Evan You write in yyx990803 commented on Jul 29, 2014 https://github.com/vuejs/vue/issues/372
This is not work. Please return my previous issue https://github.com/vuejs/vue/issues/6135 for solution !
What is expected?
type = ok
What is actually happening?
type = not

Evan You write in yyx990803 commented on Jul 29, 2014
Vue does not detect the changes when directly setting value on input elements, that is by design. If you know when your external lib has changed the input value, you can manually trigger a change event on your input element to notify Vue to sync the value back to the model.
https://github.com/vuejs/vue/issues/372

Vue was not even reach v1.0.0 in the year 2014...

Dude, I showed you on the forum that triggering a real DOM Event works like an hour ago, here:
https://forum.vuejs.org/t/variable-not-updated-by-triggering-from-outside-but-triggered-by-onclick/14389/13?u=linusborg
Doing it with jQuery (which does whatever god knows behind the scenes) does not seem to work, agreed - but that's not our concern, we aim to be compatible with vanillaJS first an foremost.
I will close this issue again. If I have to close another issue for this, it might be the last one you open in this repository.


Make tags case insensitive

French  and french  are 2 different tags with different recipes.

Duplicate of #406

duplicate issue

This is fixed in the repo, it just hasn't reflected in the website yet

I'm late here, but how does the tag system works ? Is it created server side or can is it just html href I don't know about ?

Recipes contain a list of tags at the bottom of their markdown file like ;tags: tag1 tag2 tag3. Whenever a commit is pushed or merged into master it executes the makefile which builds all the HTML files from markdown, including the tags. So the tagging system is all built from the makefile.
The reason the change hadn't reflected on the site yet was because CI was broken for a bit there #413


Cuda Cmake Vs2019 warnings about architectures

Required Info

Camera Model
D435

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win (10)

Platform
PC

SDK Version
2.32

Language
C++

Segment
desktop app

Issue Description
I'm building the sdk with the Cuda flag and I ran into a problem where I had to manually add the
Cuda_toolkit_root_dir -
I downloaded the latest Cuda and the path is
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6
I was also missing(according to cmake) the Cuda sdk location. After some research I found that "samples" was the sdk location so for
Cuda_sdk_root_dir  I added
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/extras/CUPTI
I also tried with the sdk_root_dir empty.
I don't think the variable is important but IDK?
The files generated but I got this warning:

 CMake Warning (dev) in CMakeLists.txt
Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
  empty CUDA_ARCHITECTURES not allowed.

I researched further and was suggested
cmake --help-policy CMP0104 - which showed a large text block about deprecation after v3.18... I didn't understand the implications.
Does this warning mean Cuda has not been enabled with realsense?
Thanks.

Is there a test script to see if Cuda is being used?


FileTarget: Use last-write-time for archive file name

Fixes #367

Hey! Do you need some help on the mono build?

Hey! Do you need some help on the mono build?

@304NotModified Yes, please. I am trying to debug the mono solution using Xamarin on Mac OS X. I can produce the error but it seems the debugger cannot find the dll's because they are built to a different folder than the Output folder of the NLog.UnitTests.mono project.
Any tips on debugging mono?

I never debug on Mono - would be nice though. I just search for the changes compared to the non-mono.

@304NotModified I found the problem, but I'm not sure how to fix it. It seems that on Unix-based systems a file's last write time does not include the milliseconds. But these three particular tests make archives several times within one second so that we archive to the same file name each time.
It is probably reasonable to assume that this will not happen during typical use, so I think the tests need to be fixed. As far as I can tell, we can either skip these tests for mono, or we could change them to use TimeSource in stead of real time, so we can skip 1 second between logs.
What do you think?

@304NotModified I found the problem, but I'm not sure how to fix it. It seems that on Unix-based systems a file's last write time does not include the milliseconds. But these three particular tests make archives several times within one second so that we archive to the same file name each time.

Great finding! The precision is in seconds?

The precision is in seconds?

That's correct, but I managed to get around that. Travis-CI passes :).

But it seems like we are having an issue with AppVeyor :(

I removed the commit that moved the methods, and merged the latest changes :P.

Thanks again!


[Android] Error with basic generated code when trying to inspect an element

On Android, I generated an app (eg: react-native init FoodShip) then ran it on an emulator API 23.
When doing F2, then "Inspect Element" then tapping some text I get this error:

+1
I have been working on an Android app for a couple months now, both 0.12 and 0.13 have had this problem and it has gone on ignored. Sad to see that facebook isn't concerned with giving the android devs a good experience.

Hi there! This issue is being closed because it has been inactive for a while.
If you'd like you can create an issue on Product Pains.
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix. Thanks!


Enhancing Contact Us.

@tushargupta1504 I would like to add more questions like age, weight, any medical condition option to the contact us questionnaire. As it will make it better and more professional. Please assign this task to me.

I would like to work on this by enhancing more options in contact us pls assign me this @tushargupta1504

is the issue of UI resolved if not can you assign this to me