Feature | Rowan Berries 🍒🍒🍒

@Arkensor created a fresh branch and fork (cleaning my end up)
following your coments from: https://github.com/EveronLife/EveronLife/pull/94
Resolved?

[x]  What is the DefaultMaterial_2D_View?
[x]  What are these berries? Maybe we can give them a more specific name? If not at least we need to fix the capitalization of the assets e.g. Berries.xob
[ ]  The asset is quite big still, especially the texture. Maybe @12gabriel3 has some tips on how to get this asset smaller?
[ ]  You accidentally committed lots of changes regarding plums. Both assets and on the map. I think for this PR you should only add the berry asset and not change anything else.

@Arkensor created a fresh branch and fork (cleaning my end up)
following your coments from: https://github.com/EveronLife/EveronLife/pull/94
Resolved?

[ ]  What is the DefaultMaterial_2D_View?
[ ]  What are these berries? Maybe we can give them a more specific name? If not at least we need to fix the capitalization of the assets e.g. Berries.xob
[ ]  The asset is quite big still, especially the texture. Maybe @12gabriel3 has some tips on how to get this asset smaller?
[ ]  You accidentally committed lots of changes regarding plums. Both assets and on the map. I think for this PR you should only add the berry asset and not change anything else.

Regarding asset, it's 48KB for the .fbx + 68KB for the tiff.

@Arkensor this follows https://github.com/EveronLife/EveronLife/pull/50
The existing berry tree prefab in the game is a Rowan tree.
Had a look at it seems these berries are edible, but may cause stomach aches if eaten raw so they're cooked before consumption.
Will look at the convention issues later today.

The existing berry tree prefab in the game is a Rowan tree.

Alright, then that is ok. We just need to find a good RP use for it then. Maybe you can check what kind of products are made from them :=)

From Wikipedia:

Fresh fruit are usually not tasty, but they can be debittered and made into compote, jelly, jam, a tangy syrup, a tart chutney, or juice, as well as wine and liqueur, or used for tea or to make flour.

So maybe they can't be consumed directly but can be processed into Jam or used in Wine production

updated @Arkensor


support constructors in Navigate > Symbol

Named constructors, for example, Array.ofSize() aren't handled by Navigate > Symbol.

I can see constructors in the results, they even show up in Navigate > Class. The navigation is broken though, it opens the file but doesn't navigate to the constructor itself. I'm going to fix that.

Oh, actually results show up if they are in libraries (because constructors are compiled to their own class). It doesn't work for constructors defined in the current project.

If you type ofSize, it will now correctly navigate to the named constructor.

Great!
Sent from my iPhone

On 5 Oct 2016, at 11:57, Bastien Jansen<EMAIL_ADDRESS>wrote:
If you type ofSize, it will now correctly navigate to the named constructor.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


:= operator cannot be jitted by at least the cuda module

Reporting a bug

[X] I have tried using the latest released version of Numba (most recent is
visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[X] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

Bug descritpion
the := operator fails to load properly, the error message is
Type of variable '$30binary_subscr.2' cannot be determined, operation: unknown operation, location: unknown location (0:0)
File "unknown location", line 0:

This message does not lead to any solution , even though the operator can be jitted in other configurations
Code to reproduce bug
from numba import cuda
import numpy as np

@cuda.jit
def bugged(array):
    i = cuda.grid(1)
    if i < array.shape[0]:
        if (value_used_for_more_complex_computation := array[i]) < 4.:
            array[i] = 1. # this should work

if __name__ == '__main__':
    array = np.zeros((10), int)
    try:
        bugged[1, 10](array)
    except Exception as E:
        print(E)
    print(array)

I can reproduce the message with the code given above. This also appears not to work with @njit or @jit - a slightly modified version follows:
from numba import jit
import numpy as np

@jit
def bugged(array, i):
    #i = cuda.grid(1)
    if i < array.shape[0]:
        if (value_used_for_more_complex_computation := array[i]) < 4.:
            array[i] = 1.  # this should work

if __name__ == '__main__':
    array = np.zeros((10), int)
    try:
        bugged(array, 1)
    except Exception as E:
        print(E)
    print(array)

which produces the traceback:
$ python repro2.py
repro2.py:5: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "bugged" failed type inference due to: Type of variable '$20binary_subscr.2' cannot be determined, operation: unknown operation, location: unknown location (0:0)

File "unknown location", line 0:
<source missing, REPL/exec in use?>

  @jit
Failed in object mode pipeline (step: object mode backend)
$20binary_subscr.2

File "repro2.py", line 9:
def bugged(array, i):
    <source elided>
    if i < array.shape[0]:
        if (value_used_for_more_complex_computation := array[i]) < 4.:
        ^

During: lowering "$28compare_op.5 = $20binary_subscr.2 < $const26.4" at repro2.py (9)
[0 0 0 0 0 0 0 0 0 0]

IR dump of the function (when passed a list rather than an array - shouldn't make too much difference):
label 0:
    array = arg(0, name=array)               ['array']
    i = arg(1, name=i)                       ['i']
    $6load_attr.2 = getattr(value=array, attr=shape) ['$6load_attr.2', 'array']
    $const8.3 = const(int, 0)                ['$const8.3']
    $10binary_subscr.4 = getitem(value=$6load_attr.2, index=$const8.3, fn=<built-in function getitem>) ['$10binary_subscr.4', '$6load_attr.2', '$const8.3']
    $12compare_op.5 = i < $10binary_subscr.4 ['$10binary_subscr.4', '$12compare_op.5', 'i']
    bool14 = global(bool: <class 'bool'>)    ['bool14']
    $14pred = call bool14($12compare_op.5, func=bool14, args=(Var($12compare_op.5, repro3.py:7),), kws=(), vararg=None) ['$12compare_op.5', '$14pred', 'bool14']
    branch $14pred, 16, 40                   ['$14pred']
label 16:
    value_used_for_more_complex_computation = getitem(value=array, index=i, fn=<built-in function getitem>) ['array', 'i', 'value_used_for_more_complex_computation']
    $const26.4 = const(float, 4.0)           ['$const26.4']
    $28compare_op.5 = $20binary_subscr.2 < $const26.4 ['$20binary_subscr.2', '$28compare_op.5', '$const26.4']
    bool30 = global(bool: <class 'bool'>)    ['bool30']
    $30pred = call bool30($28compare_op.5, func=bool30, args=(Var($28compare_op.5, repro3.py:8),), kws=(), vararg=None) ['$28compare_op.5', '$30pred', 'bool30']
    branch $30pred, 32, 40                   ['$30pred']
label 32:
    $const32.0 = const(float, 1.0)           ['$const32.0']
    array[i] = $const32.0                    ['$const32.0', 'array', 'i']
    jump 40                                  []
label 40:
    $const40.0 = const(NoneType, None)       ['$const40.0']
    $42return_value.1 = cast(value=$const40.0) ['$42return_value.1', '$const40.0']
    return $42return_value.1                 ['$42return_value.1']

It appears that the IR for the assignment of the binary subscript is missing, and this is likely due to a bug in numba/core/interpreter.py.

This did work with Numba 0.52:
$ python -c "import numba; print(numba.__version__)"
0.52.0

$ python repro2.py
[0 1 0 0 0 0 0 0 0 0]

As this is a regression, we should attempt to resolve it for 0.54 (or sooner if it seems necessary - given that there's probably not too much jitted code with walruses out there, my estimation would be that 0.54 is appropriate).

This bug was introduced in
ac44f596301c005b2871b1281794590147cfbeb9 is the first bad commit
commit ac44f596301c005b2871b1281794590147cfbeb9
Author: Ehsan Totoni<EMAIL_ADDRESS>Date:   Sun Dec 13 17:13:06 2020 -0500

    Avoid temp variable assignments

 numba/core/interpreter.py | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

walrus operator is also mishandled when use in call argument list:
foo(args:=(*(0, 1, 2),), *args)

(not supporting this maybe a good thing 😏)


feature : add the encode function to the JSONEncoder class

Modified JSONEncoder.
When it contains nan, it will be converted to None just before JSON encoding.

I will close this PR as it was created by mistake.


How to validate Redirect URLs?

Hi, Thanks so much for this wonderful demo. But right now, Clients are accepting any redirect URL, which is a huge problem (especially with implicit authorization).
Can you provide some tips/pointers on how to validate Redirect URLs? i.e. Each client has a list of allowed Redirect URLs, and authorize dialog requests must redirect to only those URLs. I tried, but couldn't find the right place to put this check...

Oh man, I should have replied sooner.  The location of the warning is within
oauth2.js

// WARNING: For security purposes, it is highly advisable to check that
//          redirectURI provided by the client matches one registered with
//          the server.  For simplicity, this example does not.  You have
//          been warned.
return done(null, client, redirectURI);

Typically you do the validation based on the trusted clients that sign up.  They give you a URL for their redirect and you associate that with the client id they have also given you.

Better late than never :) Thanks so much for this work @FrankHassanabad, it saved us a lot of time figuring out oauth2orize


[Epic] Helia Node Type

js-ipfs (embedded) node type was removed in #1225, helia can be a viable replacement. Consider helia as a node type.

Are there any issue about this feature? I would like to use embeded node type directly in browser


Do not check src/Settings/User.hs into the repository

Any changes a user of Hadrian makes to that file should not get included into their GHC commits (by accident).
Possible solution:

git mv src/Settings/User.hs src/Settings/DefaultUser.hs
In build.sh, if src/Settings/User.hs is missing, either abort or show a warning and cp src/Settings/DefaultUser.hs src/Settings/User.hs.

Checking out old revisions of Hadrian will cause some problems though.

A file can be committed and also .gitignored, in which case I believe git add -u, git add /path/to/repo, etc, will not pick up any change to it.

I think @bgamari has already suggested the .gitignore solution mentioned by @Ericson2314. I like it. If I ever need to actually commit to src/Settings/User.hs I will find a way to do that (e.g. simply via the GitHub web interface).
For now I am keeping src/Settings/User.hs outside of .gitignore because I change it pretty frequently. But if it is annoying let's .gitignore it.
Thoughts?

git add -f src/Settings/User.hs would still work.

Actually, both solutions have problems.
An update to src/Settings/DefaultUser.hs (or src/Settings/User.hs) in master, can cause, when

keeping User.hs outside repository: build failure
adding User.hs to .gitignore: merge conflict

Both will cause spj to send a confused email to ghc-devs.
Compare this to the current situation, where adding some new setting to mk/build.mk.sample does not cause any problems for a user with an existing mk/build.mk file.
Not urgent to come up with a better solution. Adding to .gitignore is fine for now.

My suggestion is to use include paths. Have User.hs.sample in the ideal place for user settings, and a separate empty user settings file somewhere nice and obscure. Put the User.hs.sample path first on the include path so we pick it up if it exists but use empty settings of they don't.

@ndmitchell Sorry I don't quite follow. Could you elaborate?
This is how I understood your comment.
We have two files:

hadrian/src/Settings/User.hs just as we have currently. It is not in .gitignore.
Initially missing file, e.g. hadrian/UserSettings.hs, which a user can create by copying src/Settings/User.hs and editing it as desired. This file is in .gitignore.

When compiling Hadrian we somehow play with include paths, so that hadrian/UserSettings.hs takes precedence if it exists.
Is this roughly what you suggest? This sounds more complicated than the previous (src/Settings/User.hs is in .gitignore) solution, but will probably help to avoid the problems mentioned by @thomie. I also like the fact that user-defined settings can live outside src in this way, just in the Hadrian root.

I'd have hadrian/UserSettings.hs.sample and hadrian/src/UserSettings.hs. Users would create hadrian/UserSettings.hs which is picked up by the include path if present and is in .gitignore. I don't think it's very complicated (just one extra -I flag), and it does solve all the issues.

Thanks, I see! So initially we have hadrian/UserSettings.hs.sample == hadrian/src/UserSettings.hs?
Is it important to use hadrian/src/UserSettings.hs instead of the current hadrian/src/Settings/User.hs?

They must both have the same module name, so yes, they can't be equivalent.
I would initially have hadrian/src/UserSettings.hs say "don't edit this, see hadrian/UserSettings.hs" and have it be complete but empty - e.g. userSettings = mempty, in contrast to hadrian/UserSettings.hs which would have lots of commented-out/when False code to do lots of interesting/relevant things.

@ndmitchell Right, thanks, this makes sense, although I'm still unclear on some details. You seem to have a much clearer idea on how this will work -- could you perhaps put this into a PR?

Hi, I believe I have implemented the discussed approach (see https://github.com/KaiHa/hadrian/commit/a53edf19c21a7cd289eee3f3de65ea23e27f111a). At least in my implementation there is the problem that hadrian is not recompiled by cabal if the file with the user settings is newly added. Does anyone have an idea what I did wrong or how It could be improved?

Many thanks @KaiHa! Good that you've spotted the issue that Cabal doesn't detect the newly added settings file. @ndmitchell Have you got an idea how to workaround this?

Thanks @KaiHa! Unfortunately there's a bug in GHC that it depends on the CPP files included, not the non-existence of files earlier in the include path. This is a bug with CPP include paths, but the bug does not happen for Haskell include paths, so you need to avoid CPP and do the same include path trick but switching on which Haskell file is first in the include path.

I created https://ghc.haskell.org/trac/ghc/ticket/12135 with a small reproduceable ticket. It's a bug in GHC, not Cabal.

Just to make sure I understood right, @ndmitchell you mean by adding . before src to the hs-source-dirs in the cabal file?

@KaiHa, yes, that's what I'd expect.

OK, I have amended my changeset (see https://github.com/KaiHa/hadrian/commit/123bdb37674bfe60509886ec92c99e80b0588966). I tried to touch as few files as possible. This time the newly added file is recognized.

@KaiHa @ndmitchell Thank you!
@KaiHa Could you raise a PR with your changes?


chore: typo fix

CLA: trivial

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

@paulidale did you intend to approve?

This pull request is ready to merge

Merged to the master branch. Thank you for your contribution.


Channelz, Reset JSON Pointer

Without this the json ended up misformatted

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++
  [ = ]       0 [None]      +8  +0.0%

  [ = ]       0 TOTAL       +8  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++
  [ = ]       0 [None]      +8  +0.0%

  [ = ]       0 TOTAL       +8  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++
  [ = ]       0 [None]      +8  +0.0%

  [ = ]       0 TOTAL       +8  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[trickle] No significant performance differences

[trickle] No significant performance differences

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,016,509      Total (=)      2,016,509

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,123,086      Total (>)     11,123,082

 No significant differences in binary sizes

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,016,509      Total (=)      2,016,509

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,123,080      Total (<)     11,123,085

 No significant differences in binary sizes

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,016,509      Total (=)      2,016,509

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,123,080      Total (=)     11,123,080

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,016,509      Total (=)      2,016,509

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,123,084      Total (>)     11,123,076

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences


Prepare 1.5.1

Proposed changes:

prepare 1.5.1 release

Status (please check what you already did):

[ ] made PR ready for code review
[ ] added some tests for the functionality
[x] updated the documentation
[ ] updated the changelog
[ ] reformat files using black (please check Readme for instructions)

version.py? Also i'm merging more futures btw: https://github.com/RasaHQ/rasa/pull/4861

uargh, why do we have a version.py

I'll tag it


Tries to convert comments that may cause issues

eg, this is one of the files:
// import CodaBarWriter from './oned/CodaBarWriter'

And it errors out:
[scanImport] File not found: {
  srcFile: 'esm/core/MultiFormatWriter.js',
  importName: 'esm/core/oned/CodaBarWriter',
  importCode: "// import CodaBarWriter from './oned/CodaBarWriter'",
  name: './oned/CodaBarWriter'
}

Thanks for reporting the bug. This issued should be fixed and released update as<EMAIL_ADDRESS>:rocket:
If you're still having problem with the updated version, please feel free to re-open the issue :)


[Example] Filter a very large file/set of files to a smaller file/sets of files

Originally via https://github.com/filecoin-project/bacalhau/issues/560

Good example


[NTR] spiny VIP neuron

Please check that the term does not already exist by using the ontology search tool OLS:
https://www.ebi.ac.uk/ols4/ontologies/cl
cell label:
spiny VIP neuron
Text definition:
A vip GABAergic cortical interneuron with a soma located in L1-3 of the neocortex in Mmus. This neuron has a multipolar morphology with spiny dendrites concentrating on L1 of the cortex and has a burst firing electrophysiological signature with highly dynamic dendritic spines.
Database_cross_reference:
PMID:35418660
Has a related synonym:
superficial VIP-positive spiny neuron
Database_cross_reference:
PMID:35418660
Has a related synonym:
multipolar VIP neuron
Database_cross_reference:
PMID:35418660
anatomical structure:
neocortex
parent term:
vip GABAergic cortical interneuron
@aleixpuigb
A new term to review.

@JABelfiore @Caroline-99 @aleixpuigb to review

Thank you for the term request, @AvolaAmg

Has a related synonym:
superficial VIP-positive spiny neuron

I think it can be an exact synonym, since superficial is referring to location L1 and L2/3:

Text definition:
A vip GABAergic cortical interneuron with a soma located in L1-3 of the neocortex in Mmus. This neuron has a multipolar morphology with spiny dendrites concentrating on L1 of the cortex and has a burst firing electrophysiological signature with highly dynamic dendritic spines.

Definition looks good. What is the nomenclature for VIP? I see it often capitalized, but the CL term vip GABAergic cortical interneuron is not. Should it be amended? If not, this term might also have to be spiny vip neuron, but I prefer the first option and capitalize in the definition.

Hi @aleixpuigb thanks for your review. The paper I cite as a reference uses the capitalised version. I would prefer it capitalised as well if that is okay as VIP stands for vasoactive intestinal peptide and so it is an acronym.
Apart from that I will turn this ticket into a PR.

Great, then you can relabel vip GABAergic cortical interneuron to VIP GABAergic cortical interneuron in this ticket.

These are the terms that has vip in lower case in label, symbol, definition or synonym:

happy to capitalise all of them


filter out cause_ids which are not in gbd_mapping; relative_risk

quick fix so that we can have smoking_prevalence in data artifact

This seems like it will do some of the same things that Kate's logging PR will do wrt cli.py ! You each converged on the same UI improvements. I don't think it's a big deal, you can work it out on merge


When loading a new data file with time after loading one w/o time, chart thinks there is no time

Note that the error message doesn't display, but you can see that the x-axis does not get parsed as time, but instead as an iteration.

Thanks guys! I've prolly introduced that.


Web client

Hi,
congratulations for this very nice project !
I would like to know if a web client was planned. If not, have you any recommandations to start making one ?

Thanks!
Do you mean like a web debugger / profiller? If so, check out Node Inspector:
https://github.com/node-inspector/node-inspector
This does that really well and I wouldn't want to tread on its toes.
If you meant something else, could you please amplify for me?

Closing this, but you can still reply / ask more questions!

I think the question is more about using this in the browser (eg: with browserify). Together with an UI library like this one this would be great.

Ah - that makes sense. Yeah, that would be kind of awesome.
Perhaps vantage could have an addon made that made it a web server and it could just throw over the interface pre-packaged into it.
i.e., I listen with vantage on port 80, and then if I browser to localhost:80/vantage, it could return a browser-based 'console'.


New+ changes the behaviour of create new folder shortcut in windows10

Microsoft PowerToys version
0.87.1
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
New+
Steps to reproduce
Use "create new folder" shortcut in Win10 with new+ enabled, opens default New+ template folder instead of making the new folder.
It seems that ctrl+may+N shortcut is shared in boths functions.
✔ Expected Behavior
Create new folder shortcut makes a new folder in current directory
❌ Actual Behavior
Create new folder shortcut  opens default new+ template folder when active
Other Software
No response

/dup #36387


Add ability to customize model calls

As noted in the OpenAI docs, there are various parameters to the API that are not currently exposed, such as temperature, frequency_penalty, logit_bias, etc. We should provide some way to control what values are used when the agent makes calls.

+1, I think this should be available both as fixed config for the agent, and also as something you can override in each run.

I think we should be very selective about which parameters we have specific support for in PydanticAI, but we should provide a (relatively) easy way to customize models calls further.
So far, I think the only parameter we need PydanticAI to explicitly support is:

temperature

Are there any other parameters we should explicitly support?
You can already do some customization by passing a custom client to most of our Model types, but that only allows customization of session level variables
Need to think about the best API support setting arbitrary settings. Consideration:

can we make it typesafe?
do these settings need to be changed on an individual request basis, or for all requests in a run?

max_tokens is also very important. Models can sometimes over-generate if not restricted, and that makes each call too slow and expensive, and is hard to catch when you are parsing the result into an object.

can we make it typesafe?

An extra_params subtype for each model type? I think that's acceptable - having to maintain a consistent interface for all models is going to be a nightmare to maintain. As a consumer of the API, if I decided to customise the call it probably means that I know the model well.

do these settings need to be changed on an individual request basis, or for all requests in a run?

I'd like to have both. A default setting for the agent, and the ability to override on a per-call bases.

How can we customize Gemini models and include a system instruction, safety settings, and generation configuration?
The new and old SDKs provide the option of including a system instruction, safety settings, and generation hypers (though a bit differently in each). In 2.0 for example, this is done via a GenerateContentConfig instance.  See the following links:

https://googleapis.github.io/python-genai/#system-instructions-and-other-configs
https://googleapis.github.io/python-genai/#typed-config
https://googleapis.github.io/python-genai/#safety-settings

The Instructor library wraps supported models with their own classes which seems to work pretty well in my experience. I think something along those lines is worth consideration.
As I mention above, how this happens under the previous API is different depending on whether you are using the Gemini API or the Vertex API ... and the unified 2.0 SDK is yet a bit different from both of those.


[Enhancement] Restore compile options that were turned off by mistake

Fixes #issue
The compile option is removed mistaked by the pr: https://github.com/StarRocks/starrocks/pull/19827
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

@Mergifyio backport branch-3.1


Update execute() to work with molecule 4

Are you sure those changes to pre-commit are related to the update to execute()? Updating the tooling should happen in a separate PR.

Are you sure those changes to pre-commit are related to the update to execute()? Updating the tooling should happen in a separate PR.

@ziegenberg - I have removed the changes to pre-commit tooling, execute() functionality is all that is modified by this PR now.


TypeError: Fetch argument None has invalid type <class 'NoneType'>

as i am using 'tf.compat.v1.summary.merge_all()' function to srtup tensorboard in MNIST hand written dataset but it was returning  as output

can you plz help me out


Stop tracking time to first frame because it is unreliable.

[x] Stop tracking time to first frame because it is unreliable.
[x] Track time to complete reassemble instead.

@Hixie
Fixes https://github.com/flutter/flutter/issues/6400

We may wish to consider renaming the metric, so that we have clean data.


Eliminate the ambiguity of "-h" option

Currently, the "-h" option serves as an alias for both "--headerFile" and "--help" long options, causing ambiguity.
When entering "ClangSharpPInvokeGenerator -h" in the command line, it prompts:

Required argument missing for option: '-h'.

However, entering "ClangSharpPInvokeGenerator --help" outputs the help information correctly.
To eliminate ambiguity, we have three options:

Use "-h" as the short version of "--headerFile".
In this case, since "-h" cannot serve as the short version of "--help" anymore, we cannot rely on the default help message generated by System.Commandline. This aligns with the current behavior of "-h" as well.

Use "-h" as the short version of "--help".
In this case, we must change this line:
https://github.com/dotnet/ClangSharp/blob/f0501f7370c01064676f3e8100c4fe76dc3a7c62/sources/ClangSharpPInvokeGenerator/Program.cs#L31
either delete the "-h" alias or use a different one(-H or -hf, for example).
(BTW, if we think -hf is a good option name, should we change the long version to --header-file?)

Replace --headerFile to another name, so that we can use a short option which is not -h.

This pull request adopts solution 1. Please let me know if you have any other preferences.

BTW, this still works:

ClangSharpPInvokeGenerator -c h

TODO: Update ClangSharpPInvokeGenerator usage in https://github.com/dotnet/ClangSharp/blob/main/README.md#generating-bindings.

2 is the better option here, IMO.
-h is a very common shorthand for help and so having --headerFile default to something like -hf is overall less problematic.

2 is the better option here, IMO.
-h is a very common shorthand for help and so having --headerFile default to something like -hf is overall less problematic.

Hi. Thanks. I will update this PR soon.

Hi. @tannergooding I have updated the PR.
The usage for ClangSharpPInvokeGenerator in README.md has also been updated to synchronize with the output of --help and -c help.


Enhance clippy linter configuration

This PR aims to enhance the code quality of the smart contracts by standardizing the configuration of the Clippy linter in use. Previously, the configuration was inconsistently applied across the various crates of the project, leading to inconsistent code quality. This PR introduces the following changes:

Uses Cranky to streamline and ensure the uniform application of Clippy's configuration across all project crates,
Stricter Clippy configuration to improve overall code quality.

The code has been updated accordingly. Coverage has decreased very slightly, but I don't think this has any impact given the nature of the changes, which are stylistic.

size-limit report 📦

Path
Size

target/wasm32-unknown-unknown/release/okp4_objectarium.wasm
427.74 KB (-0.24% 🔽)

target/wasm32-unknown-unknown/release/okp4_law_stone.wasm
636.59 KB (-0.01% 🔽)

target/wasm32-unknown-unknown/release/okp4_cognitarium.wasm
756.79 KB (-0.31% 🔽)

All right! I propose to merge this one so that we can rebase the other PRs in progress and let them benefit from the quality increment provided. Thx.


javascript/jslint checker error format has changed

Looks like the jslint guys have changed the format of their errors (again). Need to update the syntax checker to account for this.

@MarcWeber and I worked ( read Marc :P ) on a new errorformat yesterday.. here is the most syntastic friendly version we made. ( still kinda wonky tho )
'%Z%mLine\ %l\,\ Pos\ %c,%C\#%m,%E%f'

Hey, im about to go out right now, but briefly:
i have also updated the error format with similar results, and i have
hacked  the jslint code to add a --sloppy option to get rid of all the
"use strict" warnings. I would have sent a pull request to the jslint
maintainer earlier but my internet was down.
Ill email an update later as i have to leave right now :)
Marty
On 12/23/2011 04:05 PM, Aaron Bieber wrote:

@MarcWeber and I worked ( read Marc :P ) on a new errorformat yesterday.. here is the most syntastic friendly version we made. ( still kinda wonky tho )
'%Z%mLine\ %l\,\ Pos\ %c,%C\#%m,%E%f'

Reply to this email directly or view it on GitHub:
https://github.com/scrooloose/syntastic/issues/135#issuecomment-3262113


How to pin .bat or .cmd files

pttb.exe (and syspin.exe) will not pin .bat or .cmd files to the taskbar. But there is a way:

ren FOO.cmd FOO.exe
pttb.exe FOO.exe
certutil -f -encodehex "%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\FOO.lnk" FOO.enc 12
ssr.exe -w -q 657865=636d64<PHONE_NUMBER>65=0063006d0064 FOO.enc
certutil -f -decodehex FOO.enc "%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\FOO.lnk"
del FOO.enc
ren FOO.exe FOO.cmd
pttb.exe -r

Notes: 1. or may be a .bat (or other?) file.  2. FOO.exe now pinned.  3. FOO.enc is a one line text file.  4. ssr.exe is Simple Search and Replace utility, any similar will do. 657865 is the string for 'exe'; 636d64  is for 'cmd' or use  626174 for 'bat'. Be aware these are lowercase values.  5. Replaces modified .lnk file. 6. No longer needed. 7. Back to original name. 8. May not be needed.
Now clicking the pinned .cmd file will run it. Change properties/icon as needed.
crackfed

You could also create a shortcut to your .bat file and add cmd /c to the target field of this shortcut:
target: cmd /c "path/to/script.bat"
You should then be able to pin that shortcut to the taskbar.


uri_template: pre compile regex in uri template matcher

Commit Message: Avoid compiling regex in every match, instead pre-compile regex on constructor
Additional Description:
Risk Level: low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

FYI uri_template rewrites are currently also compiling regex on every execution, this is probably not ideal as well, but it's more tricky or impossible to fix because it appears to be using runtime information to construct the regex

/retest


SyntaxError: missing ) after argument list

after adding in the package.json
{
  "scripts": {
    "migrate": "ts-node node_modules/node-pg-migrate -j ts"
  },

We are getting below error while doing npm run migrate up
\node_modules.bin\node-pg-migrate:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1055:15)
at Module._compile (node:internal/modules/cjs/loader:1090:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Object.require.extensions. [as .js] (node_modules\ts-node\src\index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at phase4 (node_modules\ts-node\src\bin.ts:649:14)
at bootstrap (\node_modules\ts-node\src\bin.ts:95:10)

@jayeshtcpl have you figured out how to fix this? Facing the same issue at the moment.

I changed the path as below, and it worked fine.
{
  "scripts": {
    "migrate": "ts-node node_modules/node-pg-migrate/bin/node-pg-migrate -j ts"
  },


[move prover] implement async framework running multiple boogie instances

This PR implements a framework that runs multiple prover task instances(Boogie commands) concurrently and returns the result of the fastest running instance. The framework is general in that the run_tasks function takes in a task parameter of any type that implements the newly created ProverTask trait.
In this PR, we use the framework to run Boogie with different random seeds by passing in a task of type RunBoogieWithSeeds which implements ProverTask trait. See move-prover/src/prover-task-runner.rs for more details.
To use this feature, run the prover with flag --num-instances followed by the number of instances to run, such as
--num-instances 5. The default value is 1.
Addresses issue #5675.

It would be nice to have a comment somewhere to explain the motivation for this scheme. It isn't at all obvious that Boogie's execution time is sensitive to a random seed, and that it can sometimes hit particularly bad points where it takes much longer to run.

\land

/land


Follow up for pull/393

Rename data-id for modules to data-moduleid, fix issue with colour scheme of list action in the admin modules list, fix adding/removing from calendar clickable area in student view.
Setting to High Priority as my previous PR broke a thing.

Assigning to @Coenego for review.


Update data.json

It looks like is a conflict. Could you fix this? If you need any help let me know :nerd_face:

Thank you😄, Yeah I have fixed the conflicts. Now check and make an approval.

It looks like is a conflict. Could you fix this? If you need any help let me know 🤓

Yeah, I have fixed the conflicts. Now check and make an approval.

Looks Good 👍 Thank you 😄

Thanks😃

@AllanRegush , I have made changes. Have a look over it

@eddiejaoude Right over here, @AllanRegush says it shows some conflicts. But it didn't. Review my pull request, Please!

@kumarankm Please be patient. A lot of people in opensource are volunteers. They have obligations in life, work, school, family. Please be courteous to your peers.

@AllanRegush Sorry😥, I didn't mean that. I was contributing to this for the first time, so I got super excited. Thanks for the help😄


Updated Java learning sources

Added some more learning resources related to Java.
Issue #6

Thank you very much!


Fixes OAuth2 authorization_uri assignement error.

Fixing issue where options' keys are required to be passed as symbols, but which eventually causes an error when attempting to compare with string keys for URI query values.
For demonstration/reproduction of the error in the current signet version, see this gist:
https://gist.github.com/swifthand/7c35c2c56619db5abbfd

Worth pointing out that test failures are identical to those errors currently on the master branch according to Travis. One does involve lib/signet/oauth_2/client.rb but not in a manner related to this pull request.


Support named parameters for prepared statements

Support named parameters like this
Map<String, Object> resultIdMap = new HashMap<>();
resultIdMap.put("ids", resultIds);
data.raw(Person.class, "select * from Person WHERE id IN :ids", resultIdMap)

and support duplicated parameters
try (Result<Tuple> result = data.raw("select * from Person WHERE id = :id and name = :name and id = :id", parameters)) {
            assertEquals(result.first().<Number>get("id").intValue(), people.get(0).getId());
        }

Will look this over thanks!


conhost crashes on SetConsoleWindowInfo

Found a new issue with conhost in Windows 10 20H1/2004 as pushed to the release preview ring.
Windows 10 build 19041.208 (up to date release preview ring) on a Surface Book 2 15", conhost.exe file version 10.0.19041.153.
The following code, compiled as CUI and launched from a cmd.exe prompt, will crash conhost, closing the window.
int main()
{
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
SMALL_RECT srNewWinSize;
srNewWinSize.Top = 1;
srNewWinSize.Left = 1;
srNewWinSize.Right = 40;
srNewWinSize.Bottom = 20;
SetConsoleWindowInfo(hStdOut, TRUE, &srNewWinSize);
}
This used to work fine in previous versions of Windows 10, it seems to be a new issue with 20H1/2004.

hmm

This seems to be working properly for me. Digging more.

I don't recall signing off on any conhost changes that would have given it a different build number than 19041.1 (!)

Looks like it's working properly for me on .152/.208 as well.
If you can get a dump from conhost.exe when this happens, can you send it to me? E-mail's in my GitHub profile. :smile:

Some system32 files are 19041.1 dated Dec 7, 2019, others are 19041.153 dated April 167 and May 12, 2020 (spotted container.dll and computecore.dll for example), some are even 19041.84 (werui.dll).
I've sent a crash dump by e-mail, let me know if you need any other.

Puzzlingly, it looks like we're falling over while trying to render an area that's absolutely on the screen. What other buffer parameters are you using? Starting width/height, buffer width/height?

I don't have any non-default setting in the registry, no UseDx in HKCU\Console.
Startup configuration is, I believe, the default for cmd.exe: Window size is 120×30, Buffer is 120×9001, CP is 437, and font is Consolas at size 16.
Note I have EN-US as UI language, but also French and Japanese language packs installed (so console sees MS Gothic, Mincho, NSimSun, SimSun-ExtB, and installed the 4 Cascadia fonts systemwide, but the console is using Cascadia when the crash occurs.
Also, regional format is set to French (France), just in case you use APIs that rely on user's number formats somewhere (dot isn't the default decimal separator), and the system ANSI codepage is EN-US.
Shall I send a few other crash dumps to see if you can find other details?

This is a real thinker. Sure, a couple more crash dumps might help, but... I'm utterly baffled. If that's the reproducer, and those are the conhosts, and it's just what you get when you run it from CMD this should be an absolute bullseye :smile:

Gonna hold this one for a sec.

@DHowett Thanks, I'll get back to you with some more crash dumps once we're done with Build, Mixed Reality Dev Days and a day or two of sleep to recover 😅

@zadjii-msft No, testing on Win11 22621.900 (Release Preview channel) doesn't crash anymore.
I'm not sure when it got fixed, but it might be a good idea to keep this scenario as a test to catch any regression with the console API.
Closing this now.


Python error when trying to enable plugin

When enabling the plugin this error comes back but iti seems like it does get enabled but none of the buttons or features work
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\addon_utils.py", line 401, in enable
mod.register()
File "C:\Users\puree\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\cats-blender-plugin-0-19-0_init_.py", line 319, in register
bpy.context.window_manager.addon_support = {'OFFICIAL', 'COMMUNITY', 'TESTING'}
ValueError: bpy_struct: item.attr = val:: 'TESTING' not found in ('OFFICIAL', 'COMMUNITY')

same issue

Make sure you use the dev version of cats:
https://github.com/absolute-quantum/cats-blender-plugin/tree/development
Direct link to zip file: https://github.com/absolute-quantum/cats-blender-plugin/archive/refs/heads/development.zip
The current released versions will not work blender 3.6.
Also Blender 4.0 is also not supported by cats due to the fact cats has no been updated plus MMD tools which cats uses is outdated. I would either find a unofficial version which supports blender 4.0 or downgrade to blender 3.6.

Try replacing
bpy.context.window_manager.addon_support = {'OFFICIAL', 'COMMUNITY', 'TESTING'}
with
bpy.context.window_manager.addon_support = {'OFFICIAL', 'COMMUNITY',}

facepalm
Yes that will fix this error however as stated the main branch shouldn't really be used on newer versions of blender for many reasons. (Dev version contains fixes and compatibility changes the main branch doesn't have from what I am aware of).
But especially shouldn't be using blender 4.0 as the above fix will only put a very small bandage on a larger wound and you will run into A LOT of issues especially when using the main branch on 4.0.

I found this problem recently, and more faults have not been checked yet. I wonder if there is a branch that has been fixed that can be used?

There are unofficial versions of cats which does fix issues for 3.6.and 4.0. however there is no official source and indoubt there will be as at this point cats has been abandoned by the original developer and was community supported on the dev branch but it also seems that this support has more or less ended due to issues with the owner of the repo.
However for blender 4.0 there are ones that fix cats issues however mmd tools is still not updated fully for blender 4.0 so even if you fix cats side of things for 4.0 we still have to wait for mmd tools to be fully updated and compatible.

tks! next I will try MMD Tools to solve this problem.
Thanks again for your reply!

The OP issue is not a MMD tools issue and is a cats issue just fyi.
However mmd tools for 4.0 is being worked on, it's just slow atm. If you are having an issue please post it on cats first before going to MMD tools so it can be confirmed if it's a MMD tools or a cats issue, unless you know for certain it's a mmd tools issue.
If you are using 4.0 there are fixes of cats in pull request #648 which you can apply yourself, however make sure you use the dev version of cats if you do.

Same issue, I downgraded to blender 3.6 and it still persists

Maybe your should read this, no point reporting issues as this cats is basically abandoned.


Mapillary viewer link to viewed image

Description
Mapillary's image viewer in Rapid used to have a link that would take you directly to the image on mapillary.com/app/. Now it takes you to Mapillary.com which is not really helpful.

We should be able to show the username now as we completed a LAMA to allow this.
Can we have the link go directly to the viewed image?

Oscar has provided links to the relevant attribution code in the viewer.

Here is a reference of how the MJS attribution works out of the box for reference https://mapillary.github.io/mapillary-js/examples/component-pointer

There is a cutoff at 640px viewer width where we show the compact attribution.
The attribution has two links:
Logo -> mapillary.com
"images by ..." text -> mapillary.com/app?...<image_id>

As a temporary workaround, you can copy the photo ID from the URL. For example, if the URL has &photo=mapillary/790125865041194 in the hash, then https://www.mapillary.com/app/?pKey=790125865041194 takes me to the photo in Mapillary.


chore: make callback of next in beforeRouterEnter more consistent

Improve #2728. Make callback of next to be called as same order as beforeRouterEnter.

@posva , I will add a test for it. I intend to add the test in navigation guards, but I find that the test code in this file never execute because it just return when find use PhantomJS, and currently only use PhantomJS.

I see, I will take a look next week then and keep you posted. Thanks for #2749 BTW!

As you said, it does fix #2761 too, I added a test for that. I will add another test for the other case too

As you said, it does fix #2761 too, I added a test for that. I will add another test for the other case too

Thx.


nyc report seems to fail when run against coverage from old versions of Istanbul

I have an unusual monorepo that consists of two packages. One package is a fairly standard npm module. The other package is a Polymer element. As you can imagine, the workflows for testing and reporting coverage for these two packages is quite different, but they do both ultimately output Istanbul coverage reports.
Because this is a monorepo, I want to merge these reports into one single report. However, nyc report does not seem to handle the coverage file for the Polymer element as expected.
Expected Behavior
nyc report works with any Istanbul-generated coverage JSON file. In particular, the coverage for nodecg-widget-obs is generated by<EMAIL_ADDRESS>Observed Behavior
nyc report seems to not properly account for ignored lines in these older coverage files, and the HTML reports display an error when attempting to view individual files.
Bonus Points! Code (or Repository) that Reproduces Issue
https://github.com/nodecg/nodecg-obs
Run the following commands to clone the repo, run the tests, move the coverage of both projects into the top-level .nyc_output folder, and run a combined report:
git clone git@github.com:nodecg/nodecg-obs.git
cd nodecg-obs
npm install -g bower<EMAIL_ADDRESS>npm install

# This will appear to hang for a while, but give it a minute.
npm test
npm run report

You'll get both a text report and an HTML report (in the coverage directory). The text report is mostly accurate, but seems to not be accounting for ignored lines. The HTML report is the same, but attempting to view the coverage for individual files in the nodecg-widget-obs project displays the following error:

Forensic Information
Operating System: Windows 10 x64
Environment Information: https://gist.github.com/Lange/a3688b2dfa68ed3460a0d58521c0442f
Thanks for your time and for this fantastic tool!

Update: this error also happens when using the --reporter=text-lcov, which prevents me from piping test results to coveralls: https://gist.github.com/Lange/4eed096eaf56665c03e53c086d6a1ecf

@Lange unfortunately there have been some breaking changes between the Istanbul 1.x instrumentation format (which nyc uses), and the old 0.x releases of Istanbul; some of which are documented here:
https://github.com/istanbuljs/istanbuljs/blob/master/packages/istanbul-lib-instrument/v0-changes.md
merging the old style and new style reports is not likely going to be possible.

I actually no longer have this issue, because the package I was using has updated to use a modern version of istanbul/nyc and now outputs compatible coverage data. All good!


animation player signals

I'm opening this because the v3 API changes issue is close... or I don't know which one is currently open.
The AnimationPlayer node has these signals:

animation_changed(String old_name, String new_name)
animation_started(String name)
finished()

When auto generating functions for these signals through the GUI we'd end up with names like _on_AnimationPlayer_animation_started etc. Kind of an overkill. I propose these be changed in v3 to:

changed(String old_name, String new_name)
started(String name)
finished(String name) <- also include info on which animation finished playing

hm. I'm not 100% sure.
but, we can have several AnimationPlayer nodes, and can connect with auto generated functions.
- Node
    - Sprite
    - AnimationPlayerForSomething
    - AnimationPlayerForAnotherThing

if we want to make a connection to auto generated functions in Node (root),
shouldn't we make that long function name?

Hm, I think I should close my issue #7444 because this issue is more "detailed"...

@volzhs I'm not sure what you're saying. In your case the GUI would create _on_AnimationPlayerForSomething_changed() & _on_AnimationPlayerForAnotherThing_changed() for example for the change() signal.

@razvanc-r in that case, I agreed with your suggestion.
I thought you suggest changing very short function name without considering AnimationPlayer node names.
I guess I misunderstood.

I am fine with the way it works, I thin it's clearer and should be the default. That said, if you want to add some option to use shorter names because you are more comfortable with that, go ahead

in the meantime, kicking to 3.1


PHP 5.4 support

Hello, how can I run live on php5.4? We have the app in this version and cannot upgrade to 5.6. What should I change, or maybe there is a repository working somewhere?

Hello @lukowskipl ! We dropped support for PHP 5.4 and PHP 5.5 in v2.9.0. You can download the previous version v2.8.3 for compatibility with PHP 5.4 and PHP 5.5, and you'll be able to use the services which were supported by PHP 5.4 at that time.
Simply running composer install google/apiclient on PHP 5.4 will also pull the most up-to-date dependencies possible for that version of PHP.


[1.1.10+1.21+fabric] Incompatible with Better Statistics Screen

What happened?
Minecraft crashes when opening inventory on Quilt (I haven't tested on Fabric). This doesn't happen when only one of the 2 mods (Better Statistics Screen or Emi) is installed.
Steps to reproduce

Enter in a world
Press E to open the inventory
Minecraft crashes.

Relevant log output or crash report
Log: https://mclo.gs/pRFCsFM
Crash report: https://mclo.gs/CZVRfwI
Other installed mods

Better Statistics Screen 3.12.3+fabric-1.21
EMI 1.1.10+1.21+fabric
Quilted Fabric API (QFAPI) / Quilt Standard Libraries (QSL) 11.0.0-alpha.3+0.100.7-1.21
TCDCommons API 3.12.1+fabric-1.21

I also opened the issue on Better Statistics Screen's repository: https://github.com/TheCSMods/mc-better-stats/issues/133

This item group concurrency issue should be resolved in 1.1.11


2024-11-26_01-35-44_master-next_aws-cli-v2

Automatically created.

Backport failed for kirkstone-next, because it was unable to cherry-pick the commit(s).
Please cherry-pick the changes locally and resolve any conflicts.
git fetch origin kirkstone-next
git worktree add -d .worktree/backport-10504-to-kirkstone-next origin/kirkstone-next
cd .worktree/backport-10504-to-kirkstone-next
git switch --create backport-10504-to-kirkstone-next
git cherry-pick -x 5d18797e6d23914c5e406a70e20c7de716816e7f

Backport failed for scarthgap-next, because it was unable to cherry-pick the commit(s).
Please cherry-pick the changes locally and resolve any conflicts.
git fetch origin scarthgap-next
git worktree add -d .worktree/backport-10504-to-scarthgap-next origin/scarthgap-next
cd .worktree/backport-10504-to-scarthgap-next
git switch --create backport-10504-to-scarthgap-next
git cherry-pick -x 5d18797e6d23914c5e406a70e20c7de716816e7f

Successfully created backport PR for styhead-next:

#10512


Sample with ASP user, Role and Groups

Hi, can you please add a sample web app, that could be cloud ready like ABP or Serenity, that has user, role and group management baked in with permissions.
thanks

Hi, you can find more information on the website . Role and user/group management is handled in the application under Management ˃ Security. More information can be found here.


Streaming fails without restart

We run the docker image provided from this repo on an AXIS P1467-LE Bullet Camera. The streaming works as expected. But after few hours of streaming the following error occurs:
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning.  Please run 'gdb gst-launch-1.0 8' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

The process is not restarted and the streaming stops.
It would be nice, that the process just exits and it is restarted by Docker automatically.

Thanks for the issue and the associated PR, we accepted your contribution with heartfelt thank you! apologies again for delay in addressing the feedback.


Bump pyodbc for python3.7 compatibility

Motivation
First version working with python3.7
Review checklist

[ ] PR has a meaningful title or PR has the no-changelog label attached
[ ] Feature or bugfix has tests
[ ] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo
[ ] If PR adds a configuration option, it has been added to the configuration file.

Thanks!


Add support for omitempty in JSON tags

Adds a new configuration option json_tags_omit_empty which adds omitempty to JSON tags.
Closes https://github.com/sqlc-dev/sqlc/issues/1098
Closes https://github.com/sqlc-dev/sqlc/issues/1084
Related To:
https://github.com/sqlc-dev/sqlc/discussions/1132
https://github.com/sqlc-dev/sqlc/discussions/1087

What's the progress on this? Is this PR just waiting for a review?

Thoughts on an option for setting omitempty on nullable fields only? Slightly more of a pain to implement since JSONTagName doesn't know the nullability of its field.

Is there an updated status here? Seems like a good fix

I don't know if the quality of the code is good, but this feature looks valuable. Reusing the sqlc-generated structs would be great. If they can be extended in any way via config options like this one, it makes them versitile.

I'd like to have this feature as well

Any update on merging it? There does not seem to be any interaction from contributors in this PR

@kyleconroy could you please have a look over this PR?

looking forward to see this PR get closed 👍🏽

For those waiting for this feature - a workaround is to run this after SQLC has done generating. A parse is performed of the given file and omitempty tags are added to non-ignored fields that have existing json tags.
The script was hacked up without much care so take it as a word of warning if it does not work for your edge case.
package main

import (
	"bytes"
	"go/ast"
	"go/format"
	"go/parser"
	"go/token"
	"log"
	"os"
	"strings"
)

const filePath = "./src/data/models.go"

func main() {
	// Parse the source code
	fset := token.NewFileSet()
	f, err := parser.ParseFile(fset, filePath, nil, parser.ParseComments)
	if err != nil {
		log.Fatal(err)
	}

	// Modify the AST
	ast.Inspect(f, func(n ast.Node) bool {
		switch x := n.(type) {
		case *ast.StructType:
			for _, field := range x.Fields.List {
				if field.Tag == nil {
					continue
				}
				if field.Tag.Value == "" || field.Tag.Kind != token.STRING {
					continue
				}

				field.Tag.Value = modifyJSONTag(field.Tag.Value)
			}
		}
		return true
	})

	// Write the output back to the original file
	var buf bytes.Buffer
	err = format.Node(&buf, fset, f)
	if err != nil {
		log.Fatal(err)
	}
	outputFile, err := os.Create(filePath)
	if err != nil {
		log.Fatal(err)
	}
	defer outputFile.Close()
	_, err = outputFile.Write(buf.Bytes())
	if err != nil {
		log.Fatal(err)
	}
}

func modifyJSONTag(tagValue string) string {
	tagValue = strings.Trim(tagValue, "`")

	tags := strings.Split(tagValue, " ")
	var modifiedTags []string

	for _, tag := range tags {
		// Only modify JSON tags, leave others as they are.
		if !strings.HasPrefix(tag, "json:") {
			modifiedTags = append(modifiedTags, tag)
			continue
		}

		jsonQuoted := tag[5:]                        // Remove "json:" prefix
		jsonValue := strings.Trim(jsonQuoted, "\"")  // Remove quotes
		jsonOptions := strings.Split(jsonValue, ",") // Split options

		// Check if "omitempty" is already present
		hasOmitempty := false
		for _, opt := range jsonOptions {
			if opt == "omitempty" {
				hasOmitempty = true
				break
			}
		}

		// Add "omitempty" if not present and the field is not ignored
		if !hasOmitempty && jsonOptions[0] != "-" {
			jsonOptions = append(jsonOptions, "omitempty")
		}

		// Reconstruct the JSON tag
		newJSONTag := "json:\"" + strings.Join(jsonOptions, ",") + "\""
		modifiedTags = append(modifiedTags, newJSONTag)
	}

	// Reconstruct the full tag
	return "`" + strings.Join(modifiedTags, " ") + "`"
}


introduce group subscription handlers

it should be possible to define event handlers on the global level of the feature or on the group of the same buttons. These events will cause changes on widgets initiated from outside.
sketching idea
class SomeFeature implements IFeature {
   @Load('likesService.public.name')
   private likesService;
   ...
    button({ // `this` is bound to the button instance
        label: likesService.send(this)
              .on(()=>this.state=WAITING)  //null filter may stay for subscription status events
              .on('likeChanged', likeNr => this.label=likeNr)    // likeNr changed by *this* widget
        ...
        on : {
               tx_running: ()=> this.state=WAITING;
               like_changes: (likeNr) => this.like = likeNr; // likeNr changed by *some other* widget
        }
     });
   ...
}//clazz

@alsakhaev : what is the semantic difference between actions defined in  button directly (like exec ) and those defined on section on: { ... } ?
Example from sencha:
Ext.create('Ext.Button', {
    renderTo: Ext.getBody(),
    text: 'My Button',
    listeners: {
        mouseover: function() {
            this.hide();
        },
        hide: function() {
            // Waits 1 second (1000ms), then shows the button again
            Ext.defer(function() {
                this.show();
            }, 1000, this);
        }
    }
 });

Which of implementation strategies is the better one?

individual event handler for each widget instance?
the same group event handler for each widget instance with the widget as a parameter?


Update inbound-parse.md

Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @Whatthefoxsays,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX


Compilation Warning for Lab 2

Hello, I submitted my code for Lab 2 to CodeCrunch and got the following compilation warning:
Exception in thread "main" com.sun.tools.classfile.Dependencies$ClassFileError
at jdk.jdeps/com.sun.tools.jdeps.ClassFileReader.scan(ClassFileReader.java:165)
at jdk.jdeps/com.sun.tools.jdeps.ClassFileReader.entries(ClassFileReader.java:114)
at jdk.jdeps/com.sun.tools.jdeps.Archive.contains(Archive.java:95)
at jdk.jdeps/com.sun.tools.jdeps.JdepsConfiguration$Builder.addRoot(JdepsConfiguration.java:495)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.buildConfig(JdepsTask.java:597)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:557)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:533)
at jdk.jdeps/com.sun.tools.jdeps.Main.main(Main.java:49)
Caused by: com.sun.tools.classfile.ConstantPool$InvalidEntry: unexpected tag at #1: 118
at jdk.jdeps/com.sun.tools.classfile.ConstantPool.(ConstantPool.java:244)
at jdk.jdeps/com.sun.tools.classfile.ClassFile.(ClassFile.java:82)
at jdk.jdeps/com.sun.tools.classfile.ClassFile.read(ClassFile.java:58)
at jdk.jdeps/com.sun.tools.classfile.ClassFile.read(ClassFile.java:52)
at jdk.jdeps/com.sun.tools.jdeps.ClassFileReader.scan(ClassFileReader.java:160)
... 7 more
I am unsure of what is going on and have no idea how to address this warning. I would appreciate any help possible.

Hi. There seem to be something blocking you from compiling.

I got the same warning as well but the autograder graded my submission without any problem despite the warning

I got the same warning as well but the autograder graded my submission without any problem despite the warning

Same here

Same here i got the warning too

Me three.
I can’t recreate the issue though…

Same I got the warning but the autograder graded my submission without any issues.

There was some issue on codecrunch and we have regraded the existing submissions that are affected. It should be fixed now.


_reader not set in FilePrinter

The field _reader of BasePrinter is not set when using a FilePrinter. Because of that, the Read method of the BasePrinter throws a NullReferenceException and the printer status is not read.

@naaeef thank you for the PR!  The reader thread only opens if live status back is turned on, so I never tested this scenario. Please feel free to open issues for other bugs you find!  I will build a new nuget package and version up the library in the next week or two once I finish the fixes for the biggest outstanding issue, #10 .


Add catch handler to acquireTokenSilent method so that the promise will be rejected up the chain

I had an issue where acquireTokenSilent failed and I was not able to catch that error because the aquireTokenSilent method itself never rejected the promise. I have updated the commonjs and es6js files to fix this issue in this pull request.

Add catch handler to acquireTokenSilent method so that the promise will be rejected up the chain and callers of this function will be able to
implement their own error handling.
Prior to this change, a caller of acquireTokenSilent could not catch
certain errors and would receive an "uncaught (in promise)" error

@freeman-g Thank you for your contribution. The pull request shows a bunch of line deletions and additions and which makes it difficult to analyse the actual code changes. Would you be okay if I just add the catch handler myself to the functions that return a promise in UserAgentApplication.ts.

@rohitnarula7176 sounds good to me. I have format-on-save turned on in VSCode, so that may have changed some of those lines. At the end of the day, I just added the following to acquireTokenSilent:
                return _this.authorityInstance.ResolveEndpointsAsync()
                    .then(function () {
                        // refresh attept with iframe
                        //Already renewing for this scope, callback when we get the token.
                        if (_this._activeRenewals[scope_1]) {
                            _this._logger.verbose("Renew token for scope: " + scope_1 + " is in progress. Registering callback");
                            //Active renewals contains the state for each renewal.
                            _this.registerCallback(_this._activeRenewals[scope_1], scope_1, resolve, reject);
                        }
                        else {
                            if (scopes && scopes.indexOf(_this.clientId) > -1 && scopes.length === 1) {
                                // App uses idToken to send to api endpoints
                                // Default scope is tracked as clientId to store this token
                                _this._logger.verbose("renewing idToken");
                                _this.renewIdToken(scopes, resolve, reject, userObject_1, authenticationRequest_1, extraQueryParameters);
                            }
                            else {
                                _this._logger.verbose("renewing accesstoken");
                                _this.renewToken(scopes, resolve, reject, userObject_1, authenticationRequest_1, extraQueryParameters);
                            }
                        }

    // add this part
                    }).catch((err) => {
                        reject(err)
                    });


Div gets blured after animation

After runing
animate({   el: 'article',   translateY: ['100%', '0%'],   scale: [0,1] })
my div gets blured completely

Fixed in v2.0.0


WinGet install fails without elevation

Describe the bug
WinGet install fails with error 0x80070005 : Access is denied if run from a non-elevated prompt.
To Reproduce
winget install -i WinObjEx64

Expected behavior

Screenshots

Environment
Windows 11 23H2, build 22631.3235

WinObjEx64 doesn't require elevation to start.

@hfiref0x: WinObjEx64 does not fail.  The WinGet install is what fails.

I've never produced any winget installs for this program and have no idea who did that. Guess this is not my fault.

Fair enough.  Yeah, looking at the manifests, it was @w3lld0ne, not you.  I'll close this and see if there's any way to raise the issue with @w3lld0ne or just submit a PR for it myself.  Sorry for the bother.

@sharpjs this seems like not an issue with the package (it installs perfectly fine for me on clean VM from unelevated terminal), but with your WinGet instance or smth.


feat: get access token & refresh tokens for server type SASJS

Issue
No issue to link.
Intent
Support SASJS server for:

getting access tokens
refreshing tokens

Implementation
Updated isMethodSupported is updated, to have third(SASJS) serverType.
Renamed auth utilities:

current getAccessToken to getAccessTokenForViya
current refreshTokens to refreshTokensForViya

Added new auth utilities:

getAccessTokenForSasjs
refreshTokensForSasjs

++ Mocked Specs
Checks
No PR (that involves a non-trivial code change) should be merged, unless all items below are confirmed!  If an urgent fix is needed - use a tar file.

[x] All sasjs-cli unit tests are passing (npm test).
Mocked:

Server:

[ ] All sasjs-tests are passing (instructions available here).
[ ] Data Controller builds and is functional on both SAS 9 and Viya
SAS VIYA:

SAS 9:

Data Controller on SAS 9 have this issue


Improve invalid primary color Material ThemeData exception report

Steps to Reproduce

Hi,
I've just had the following error occurring in my flutter project.
It says to report it, so I have!
Let me know if there's anything further I can help with. I haven't yet found a flaw in my code that is causing this - but that doesn't mean there isn't one!
Many thanks,
Nuar
Logs

I/flutter (12320): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (12320): The following assertion was thrown building WidgetsApp-[GlobalObjectKey
I/flutter (12320): _MaterialAppState#dbb31](dirty, state: _WidgetsAppState#0f7c8):
I/flutter (12320): 'package:flutter/src/widgets/title.dart': Failed assertion: line 24 pos 15: 'color != null &&
I/flutter (12320): color.alpha == 0xFF': is not true.
I/flutter (12320):
I/flutter (12320): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (12320): more information in this error message to help you determine and fix the underlying cause.
I/flutter (12320): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (12320):   https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (12320):
I/flutter (12320): When the exception was thrown, this was the stack:
I/flutter (12320): #2      new Title
package:flutter/…/widgets/title.dart:24
I/flutter (12320): #3      _WidgetsAppState.build
package:flutter/…/widgets/app.dart:1181
I/flutter (12320): #4      StatefulElement.build
package:flutter/…/widgets/framework.dart:3921
I/flutter (12320): #5      ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:3835
I/flutter (12320): #6      Element.rebuild
package:flutter/…/widgets/framework.dart:3656
I/flutter (12320): #7      ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:3818
I/flutter (12320): #8      StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:3960
I/flutter (12320): #9      ComponentElement.mount
package:flutter/…/widgets/framework.dart:3813
I/flutter (12320): #10     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3052
I/flutter (12320): #11     Element.updateChild
package:flutter/…/widgets/framework.dart:2855
I/flutter (12320): #12     ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:3846
I/flutter (12320): #13     Element.rebuild
package:flutter/…/widgets/framework.dart:3656
I/flutter (12320): #14     ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:3818
I/flutter (12320): #15     ComponentElement.mount
package:flutter/…/widgets/framework.dart:3813
I/flutter (12320): #16     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3052
I/flutter (12320): #17     Element.updateChild
package:flutter/…/widgets/framework.dart:2855
I/flutter (12320): #18     ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:3846
I/flutter (12320): #19     Element.rebuild
package:flutter/…/widgets/framework.dart:3656
I/flutter (12320): #20     ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:3818
I/flutter (12320): #21     StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:3960
I/flutter (12320): #22     ComponentElement.mount
package:flutter/…/widgets/framework.dart:3813
I/flutter (12320): #23     Element.inflateWidget
package:flutter/…/widgets/framework.dart:3052
I/flutter (12320): #24     Element.updateChild
package:flutter/…/widgets/framework.dart:2855
I/flutter (12320): #25     RenderObjectToWidgetElement._rebuild
package:flutter/…/widgets/binding.dart:933
I/flutter (12320): #26     RenderObjectToWidgetElement.mount
package:flutter/…/widgets/binding.dart:904
I/flutter (12320): #27     RenderObjectToWidgetAdapter.attachToRenderTree.
package:flutter/…/widgets/binding.dart:850
I/flutter (12320): #28     BuildOwner.buildScope
package:flutter/…/widgets/framework.dart:2294
I/flutter (12320): #29     RenderObjectToWidgetAdapter.attachToRenderTree
package:flutter/…/widgets/binding.dart:849
I/flutter (12320): #30     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget
package:flutter/…/widgets/binding.dart:736
I/flutter (12320): #31     runApp
package:flutter/…/widgets/binding.dart:780
I/flutter (12320): #32     main
package:flutter_travel/main.dart:4
I/flutter (12320): #33     _runMainZoned..  (dart:ui/hooks.dart:200:25)
I/flutter (12320): #38     _runMainZoned.  (dart:ui/hooks.dart:192:5)
I/flutter (12320): #39     _startIsolate.  (dart:isolate-patch/isolate_patch.dart:300:19)
I/flutter (12320): #40     _RawReceivePortImpl._handleMessage  (dart:isolate-patch/isolate_patch.dart:171:12)
I/flutter (12320): (elided 6 frames from class _AssertionError and package dart:async)
I/flutter (12320): ════════════════════════════════════════════════════════════════════════════════════════════════════
D/EGL_emulation(12320): eglMakeCurrent: 0xd319b980: ver 2 0 (tinfo 0xe6fff690)
Screenshot:

[√] Flutter (Channel dev, v1.6.0, on Microsoft Windows [Version 10.0.17134.950], locale en-US)
• Flutter version 1.6.0 at C:\Users\anwar\Documents\flutter
• Framework revision ed90d05596 (3 months ago), 2019-05-14 17:09:29 -0700
• Engine revision 832cdacc6f
• Dart version 2.3.1 (build 2.3.1-dev.0.0 a0290f823c)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\anwar\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-Q, build-tools 28.0.3
• ANDROID_HOME = C:\Users\anwar\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 37.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[√] VS Code (version 1.37.0)
• VS Code at C:\Users\anwar\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.3.0
[√] VS Code, 64-bit edition (version 1.25.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.3.0
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• No issues found!
My Code:
import 'package:flutter/material.dart';
import 'package:flutter_travel/CustomShapeClipper.dart';

void main() => runApp(MaterialApp(
  title: 'Flight Ticket',
  debugShowCheckedModeBanner: false,
  home: HomeScreen(),
  theme: appTheme,
));

Color firstColor = Color(0xFFF47D15);
Color secondColor = Color(0xFFEF772C);

ThemeData appTheme = ThemeData(
  primaryColor: Color(0xFF3791A),
  fontFamily: 'Oxygen'
);

List<String> locations = ['Boston (BOS)', 'New York City (JFK)'];

class HomeScreen extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: <Widget>[
          HomeScreenTopart(),
        ],
      ),
    );
  }
}

const TextStyle dropDownLabelStyle = TextStyle(color: Colors.white, fontSize: 16.0);
const TextStyle dropDownMenuItemStyle = TextStyle(color: Colors.black, fontSize: 16.0);

//Top Part of Screen Ui
class HomeScreenTopart extends StatefulWidget {
  HomeScreenTopart({Key key}) : super(key: key);

  _HomeScreenTopartState createState() => _HomeScreenTopartState();
}

class _HomeScreenTopartState extends State<HomeScreenTopart> {

  var selectedLocationIndex = 0;
  var isFlightSelected = true;

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: <Widget>[
        ClipPath(clipper: CustomShapeClipper(),
          child: Container(
            height: 400.0,
            decoration: BoxDecoration(
              gradient: LinearGradient(
                colors: [
                  firstColor,
                  secondColor
                ]
              )
            ),
            child: Column(
              children: <Widget>[
                SizedBox(height: 50.0),
                Padding(
                  padding: const EdgeInsets.all(16.0),
                  child: Row(
                    children: <Widget>[
                      Icon(Icons.location_on, color: Colors.white),
                      SizedBox(width: 16.0),
                      PopupMenuButton(
                        onSelected: (index){
                          setState(() {
                           selectedLocationIndex = index;
                          });
                        },
                        child: Row(
                          children: <Widget>[
                            Text(locations[selectedLocationIndex], style: dropDownLabelStyle),
                            Icon(Icons.keyboard_arrow_down, color: Colors.white,)
                          ],
                        ),
                        itemBuilder: (BuildContext context) => <PopupMenuItem<int>>[
                          PopupMenuItem(
                            child: Text(locations[0], style: dropDownMenuItemStyle),
                            value: 0,
                          ),
                          PopupMenuItem(
                            child: Text(locations[1], style: dropDownMenuItemStyle),
                            value: 1,
                          )
                        ],
                      ),
                      Spacer(),
                      Icon(Icons.settings, color: Colors.white)
                    ],
                  ),
                ),
                SizedBox(height: 50.0),
                Text('Where would\nyou want to go?',
                style: TextStyle(
                  fontSize: 24.0,
                  color: Colors.white
                  ),
                  textAlign: TextAlign.center,
                ),
                SizedBox(height: 30.0),
                Padding(
                  padding: EdgeInsets.symmetric(horizontal: 32.0),
                  child: Material(
                    elevation: 5.0,
                    borderRadius: BorderRadius.all(Radius.circular(30.0)),
                    child: TextField(
                      controller: TextEditingController(text: locations[1]),
                      style: dropDownMenuItemStyle,
                      cursorColor: appTheme.primaryColor,
                      decoration: InputDecoration(
                        contentPadding: EdgeInsets.symmetric(horizontal: 32.0, vertical: 14.0),
                        suffixIcon: Material(
                          elevation: 2.0,
                          borderRadius: BorderRadius.all(Radius.circular(30.0)),
                          child: Icon(Icons.search, color: Colors.black),
                        ),
                        border: InputBorder.none
                      ),
                    ),
                  ),
                ),
                SizedBox(height: 20.0),
                Row(
                  mainAxisSize: MainAxisSize.min,
                  mainAxisAlignment: MainAxisAlignment.spaceAround,
                  children: <Widget>[
                    InkWell(
                      onTap: (){
                        setState(() {
                         isFlightSelected = true;
                        });
                      },
                      child: ChoiceChip(Icons.flight_takeoff, "Flights", isFlightSelected)
                    ),
                    SizedBox(width: 20.0),
                    InkWell(
                      onTap: () {
                        setState(() {
                         isFlightSelected = false;
                        });
                      },
                      child: ChoiceChip(Icons.hotel, "Hotels", !isFlightSelected)
                    ),
                  ],
                )
              ],
            ),
          )
        )
      ],
    );
  }
}

class ChoiceChip extends StatefulWidget {

  final IconData icon;
  final String text;
  final bool isSelected;

  ChoiceChip(this.icon, this.text, this.isSelected);

  _ChoiceChipState createState() => _ChoiceChipState();
}

class _ChoiceChipState extends State<ChoiceChip> {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: 18.0, vertical: 8.0),
      decoration: widget.isSelected ? BoxDecoration(
        color: Colors.white.withOpacity(0.15),
        borderRadius: BorderRadius.all(
          Radius.circular(20.0),
        )
      ) : null,
      child: Row(
        mainAxisSize: MainAxisSize.min,
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: <Widget>[
          Icon(
            widget.icon,
            size: 20.0,
            color: Colors.white,
          ),
          SizedBox(width: 8.0),
          Text(
            widget.text,
            style: TextStyle(
              color: Colors.white,
              fontSize: 16.0
            )
          )
        ],
      ),
    );
  }
}

primaryColor: Color(0xFF3791A)
Alpha != 0xff
I think u forgot 'f' at the start

@KirolousNashaat yes, that's correct. Colors usually specify all 8 hex digits.
This isn't really a bug although the error message could be improved by displaying the problematic color value.

I changed this issue's title to focus on the problem that should be fixed.

I didn't notice that. It's working now. Thanks a lot!!


Safari 13 does not have ResizeObserver turned on by default

ResizeObserver was turned on by default in Safari TP 97 (released today December 18th):
https://webkit.org/blog/9672/release-notes-for-safari-technology-preview-97/
https://trac.webkit.org/changeset/251822/webkit/

Thanks!


Support for David Whittaker

My wish is to play the good old games music :)

.dw files are an audio file format (a so-called "exotic" module, i.e. a custom, non-tracker format) used in a number of Commodore Amiga games by the well-known composer David Whittaker.

There are lots of files available at
http://ftp.amigascne.org/mirrors/ftp.modland.com/pub/modules/David Whittaker/David Whittaker/
I think I remember that the original program could play this format,
Thank YOU!

Thanks! These should actually work but it looks like hippo is crashing when trying to play these. I will take a look at this.

I was also trying to play .dw files, but hippoplayer doesn't seem recognize them. The docs says that the UADE plugin should support it, but I cannot find the plugin in settings 🤔
Created a thread in discussions about it (sorry if it's redundant)
https://github.com/HippoPlayer/HippoPlayer/discussions/212

See #212


incompatiable with Anydesk

I use 8K VDD and I tried to remote with Anydesk. Everytime I switch screen from real one to 8K VDD, Anydesk crushed. I am using windows server 2025 (almost windows 11). Is there a method to fix that or any remote software recommond for VDD screen?
Thank you for your work, I am looking forward for the new version with manual GPU selection.
Wish you have a good day.

It might not be supported on the system (or AnyDesk directly). For example, OBS won't record above 4k for me on a 4070ti due to Graphics API limits. The new build that's coming soon will allow you to attach the driver to your GPU, which will help in some use cases, but I have not tested in AnyDesk yet. I will soon!

Did you ever test this @itsmikethetech ?


Measure distance by the depth map

How could I measure the distance by the output depth map? What is the unit of it?
From test_simple.py,
# PREDICTION
input_image = input_image.to(device)
features = encoder(input_image)
outputs = depth_decoder(features)

disp = outputs[("disp", 0)]

How could I measure the absolute distance of each pixels by the disp(disp mean disparity, or it is depth?) tensor?Thanks

I'm not sure where the code snippet you are referring to is coming from.
For MiDaS the output is inverse depth up to unknown sale and shift, e.g. only relative depth is available. You'd need additional measurements to find the scale and the shift to get absolute measurements.

Closing due to inactivity

Just curious, what additional measurements do we need to find the scale and the shift?
Does this imply that we have to compare prediction with ground-truth depth to figure out the scale and the shift?


Refactor the file storage for code optimization and readibility issue #569

Pull Request: Codebase Improvement - Centralized Files and Structured Organization
Description
This pull request addresses issue #569 , which focuses on enhancing the current state of the repository featuring a Movie Streaming Website. The existing codebase is in need of significant improvements to optimize maintainability and organization.
Changes Made

Centralized CSS and JS Files: Consolidated all CSS and JS code into single, external files for efficient code management.
Component-Based Structure: Created separate files (HTML, CSS, JS) for individual components such as cards, navbars, and footers. This restructuring greatly enhances the ease of maintenance.
File Structure Reorganization: Introduced a structured file organization system, including a 'pages' folder to contain all HTML files, a 'css' folder for CSS files related to various components, and a 'js' folder for scripts associated with dynamic components.
Image Standardization: Placed all movie poster images in a dedicated folder, ensuring image quality and resolution consistency. We removed blurry/stretched images and added high-definition posters.
Code Refactoring: The entire codebase underwent a thorough refactoring process for improved logic, coding style, and overall structure. We removed unnecessary checks and optimized the code for better performance.
Code Formatting: Checked and applied Prettier formatting to all pages to ensure code consistency.

Additional Notes
This was undeniably one of the most challenging and intricate tasks I've undertaken. The existing codebase was complex and required careful disentangling to achieve a more organized and efficient structure. The code was, to put it politely, one of the most intricate and messy I've encountered. However, I am confident that these improvements will significantly enhance the project's maintainability and contribute to a more streamlined codebase.
If further adjustments, refinements, or specific guidelines are needed, please provide your feedback. We are committed to delivering these enhancements effectively.
Closes #569

@purnasth please host your branch on GitHub pages and share the live website link, so I can review and make sure all the functionalities are still intact.

Sorry to say but not every code is 100% efficient. While trying to fix one issue there, I had to encounter many of the others and it took more than an hour and it was a very tedicious task. So some of the bugs still can be fixed by yourself after checking it.

Sorry to say but not every code is 100% efficient. While trying to fix one issue there, I had to encounter many of the others and it took more than an hour and it was a very tedicious task. So some of the bugs still can be fixed by yourself after checking it.

Thank you for your efforts in attempting to refactor the codebase, I genuinely appreciate your contributions. However, it's essential to ensure that the functionality of the website remains intact as we make these improvements.
I completely understand that refactoring can be a challenging and time-consuming task, especially in a project with such an extensive codebase. That's precisely why I encourage breaking down the work into manageable sub-tasks, as described in the task description. By tackling smaller portions of the project one step at a time, we can maintain a functioning codebase throughout the process.
For instance, you could start by organizing the images for a few HTML pages or centralizing the CSS for a specific component. Like try to structure all the images in a dedicated folder for a few HTML pages, or try removing the scroll-to-top button CSS from all HTML files and creating a single CSS file for it and linking it with all pages, etc. This incremental approach will help you make steady progress without compromising the website's core functionality.
Feel free to open an issue and propose changes that align with this structured, step-by-step strategy.
Please feel free to reach out if you have any questions.

https://www.purnashrestha.com.np/Movie-Streaming-Website

https://www.purnashrestha.com.np/Movie-Streaming-Website

@purnasth please share a link that is based on your branch. This link doesn't have the changes you made.
You can use GitHub pages for your branch.


Lifetime hooks

Elements have to be drawn every frame. If they're not drawn, they are removed from the Scene's event system.
It can be useful to know when an element is added or removed from the event system: The element is effectively enabled or disabled, which might mean that some resources need to fetched or cleaned up.
I propose the following API:
context:onEnable(function()
    // ...
end)

context:onDisable(function()
  // ...
end)

Added by 116736f


How to reproduce visualization results in README?

Thanks for your wonderful work!
I'd like to reproduce the visualization results in your README.
I tried to add following 2 lines before demo/demo.py#L29:
from detectron2.projects.idol import add_idol_config
    add_idol_config(cfg)

But it returrn this:
appuser@0916140fb4f2:~/VNext/demo$ python demo.py --config-file ../projects/IDOL/configs/ytvis19_swinL.yaml --video-input ../0b6db1c6fd.mp4 --output ../out --opts MODEL.WEIGHTS ../YTVIS19_SWINL_643AP.pth
[08/05 06:23:21 detectron2]: Arguments: Namespace(confidence_threshold=0.5, config_file='../projects/IDOL/configs/ytvis19_swinL.yaml', input=None, opts=['MODEL.WEIGHTS', '../YTVIS19_SWINL_643AP.pth'], output='../out', video_input='../0b6db1c6fd.mp4', webcam=False)
/home/appuser/.local/lib/python3.7/site-packages/torch/functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at  ../aten/src/ATen/native/TensorShape.cpp:2157.)
  return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
[08/05 06:23:28 fvcore.common.checkpoint]: [Checkpointer] Loading from ../YTVIS19_SWINL_643AP.pth ...
<EMAIL_ADDRESS>global /io/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (2927) open Could not find encoder for codec_id=27, error: Encoder not found
<EMAIL_ADDRESS>global /io/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (3002) open VIDEOIO/FFMPEG: Failed to initialize VideoWriter
<EMAIL_ADDRESS>global /io/opencv/modules/videoio/src/cap.cpp (595) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.6.0) /io/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): /tmp/video_format_test3zylu0ek/test_file.mkv in function 'icvExtractPattern'

  0%|                                                                                | 0/20 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "demo.py", line 178, in <module>
    for vis_frame in tqdm.tqdm(demo.run_on_video(video), total=num_frames):
  File "/home/appuser/.local/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
    for obj in iterable:
  File "~/VNext/demo/predictor.py", line 129, in run_on_video
    yield process_predictions(frame, self.predictor(frame))
  File "~/VNext/detectron2/engine/defaults.py", line 317, in __call__
    predictions = self.model([inputs])[0]
  File "/home/appuser/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "~/VNext/projects/IDOL/idol/idol.py", line 249, in forward
    video_len = len(batched_inputs[0]['file_names'])
KeyError: 'file_names'

Could you give me some hint about how to pass right batched_inputs to forward function?

same error

Same error. Please can you help us?

I am using ytvis19_swinL.yaml  and YTVIS19_SWINL_643AP.pth as model weights. We can skip the 'file_names' error by removing ['file_names'] from this command: video_len = len(batched_inputs[0]['file_names']). But it remains a problem related to the predictions outputted by the model. It contains these keys: dict_keys(['image_size', 'pred_scores', 'pred_labels', 'pred_masks']) and not any of the detectron expected ones: "panoptic_seg", "instances" or "sem_seg" used for formatting qualitatively the output. Do we have to modify the detectron2 functions somehow for the IDOL configuration?
Thanks a lot

Did you find any solution for that?

I'm struggling with the some error:
video_len = len(batched_inputs[0]['file_names']) KeyError: 'file_names'
Did you find a solution please?

Not yet solved. Can the authors help here?!
Thanks

If you did training, did you get AP results after evaluation in the log.txt file?!
I'm trying to get somewhere with this repository, but even though I manage the train the code, I couldn't see results and I couldn't able to test that results with demo either.
Please help!!

Hi, I have the same problem, have you solved it ?

https://github.com/wjf5203/VNext/issues/11#issuecomment-1348089140

Hi, I have the same problem, have you solved it ? thanks

I'm struggling with the some error: video_len = len(batched_inputs[0]['file_names']) KeyError: 'file_names'  Did you find a solution please?

Hi, I have the same problem, have you solved it ? thanks

@unihornWwan  sadly not yet.  @aylinaydincs  can you give us more detail on how you menage to train, which model , config file did you use and the parameters please. I'm struggling to launch the training.

@unihornWwan sadly not yet. @aylinaydincs can you give us more detail on how you menage to train, which model , config file did you use and the parameters please. I'm struggling to launch the training.

I simply create a conda environmetn follow the INSTALL.md, after that I did what they say in IDOL.md

@unihornWwan  thanks for answering.

@assia855 @unihornWwan I have the same issue to run the demo.py on a video. Have you solved it?

@Mamatharun Hi, have you managed to run the demo.py on a video?
This is the error I'm trying to address:
OpenCV(4.7.0) /tmp/pip-install-vfgn61sf/opencv-python_0e92223a8fb94f898aa6f1cb2444dc3e/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): /tmp/video_format_testu6cdg5yz/test_file.mkv in function 'icvExtractPattern'

@assia855 @unihornWwan I have the same issue to run the demo.py on a video. Have you solved it?

I've updated the demo_idol.py and predictor.py to visualize on videos. Currently I can draw the bounding boxes and the IDs. But not sure how to match the labels and confidence levels to IDs , since there are more labels and confidences returned than IDs.
My forked repo is over here https://github.com/reno77/VNext .
Cmd to infer on videos is : python projects/IDOL/demo_idol.py --config-file projects/IDOL/configs/ovis_swin.yaml --video-input input.mp4 --output output1.mp4

@assia855 @unihornWwan I have the same issue to run the demo.py on a video. Have you solved it?

I've updated the demo_idol.py from lalalafloat to visualize on videos. I've set is_multi_cls to False to match the IDs to the pred_scores. My forked repo is over here https://github.com/reno77/VNext . Cmd to infer on videos is : python projects/IDOL/demo_idol.py --config-file projects/IDOL/configs/ovis_swin.yaml --video-input input.mp4 --output output1.mp4

你好，我直接推理可视化结果到了视频帧上，但目前还没不知道怎么得到mAP这些指标，可以一起交流下么，qq2211733735

Hi, currently there's no mAP output since only a video is passed in. You'll need to provide the ground truth bounding boxes json file and implement your own function in demo_idol.py to read the file in and generate mAP by finding out the IOU between the ground truth and the inferred bboxes.

@reno77 wan I have the same issue to run the demo.py on a video. Have you solved it?

I've updated the demo_idol.py from lalalafloat to visualize on videos. I've set is_multi_cls to False to match the IDs to the pred_scores. My forked repo is over here https://github.com/reno77/VNext . Cmd to infer on videos is : python projects/IDOL/demo_idol.py --config-file projects/IDOL/configs/ovis_swin.yaml --video-input input.mp4 --output output1.mp4

你好，我直接推理可视化结果到了视频帧上，但目前还没不知道怎么得到mAP这些指标，可以一起交流下么，qq2211733735

Hi, currently there's no mAP output since only a video is passed in. You'll need to provide the ground truth bounding boxes json file and implement your own function in demo_idol.py to read the file in and generate mAP by finding out the IOU between the ground truth and the inferred bboxes.


Create scholarships section#357

Description of changes

This is a working draft so comments and suggestions are appreciated!
This PR moves the Scholarship Application process from a third party to the OperationCode website. The application page looks like this.
@rickr suggested routes in the style of /scholarships/$ID to view them, and scholarships/$ID/apply to apply to that scholarship
notes:

I plan to remove the checkbox component as another pending PR also has this component implemented
Success component can be removed, I was following the convention of a previously implemented Thanks component but it looks like that is getting axed

Issue Resolved

Fixes #357

Great work on the design, @jmayergit!

@Cooperbuilt I tried pushing but I don't have permission

You are a repo member, how did you push it?