add rules in jquery each work only for first element

I've problem adding rules by class name in a jquery each function: only first element work:
I need use class, cause i need same name for the element cause is an array and it's dinamically created.
see example: http://jsfiddle.net/sw87W/860/

Hi @itajackass
This plugin doesn't support multiple input with the same name. It's quoted in our docs:

Mandated: A 'name' attribute is required for all input elements needing validation, and the plugin will not work without this. A 'name' attribute must also be unique to the form, as this is how the plugin keeps track of all input elements. However, each group of radio or checkbox elements will share the same 'name' since the value of this grouping represents a single piece of the form data.

I know, i want to use a CLASS if you see my jsfiddle above.

still your name attribute is not unique to the form.


No Push/PopStyleVar()?

Is there a way to push/pop styles, or are we restricted to style_mut? If there's no push/pop, is this limitation of a closure-based API vs a begin()/end() one?

It's just something that hasn't been implemented yet. Based on a quick look those functions are probably memory-safe, but abort the process if you do something incorrect (e.g. push once, pop twice). I'd prefer a nicer API, but it's probably a reasonable compromise to just wrap those and trust that the library users do the right things.

Thanks for the reply. Regrettably, I'm not at a level of proficiency with Rust yet where I can write up an API and send a pull request. Feel free to close this bug or keep it open, as you see fit.

This functionality got merged! I think we can close this :)


Adding mutable borrows for function pointers

Sometimes it may be necessary to patch function pointer values at runtime, for example when integrating third-party SDKs. This PR exposes mutable references to the function pointers, allowing applications to modify their values.

Can you elaborate on why this might be necessary? Maybe link the docs of an example SDK? Vulkan has existing mechanisms for this sort of thing.

Besides not understanding what this is useful for in the first place, the same workaround/hack can be achieved with the from_parts constructors and some FRU syntax?

@Ralith
One example may be the NVIDIA Streamline SDK: https://github.com/NVIDIAGameWorks/Streamline/blob/main/docs/ProgrammingGuideManualHooking.md
They call for hooking a subset of the Vulkan API from sl.interposer.dll rather than vulkan-1.dll, then dynamically checking which function to call depending on if the Streamline SDK was enabled or not. In my case, it's far easier to do this if I had mutable access to ash's function pointers so that I can simply replace them.

Another case where this might be useful:
Some extensions are promoted into Vulkan core. For example, vkQueueSubmit2 was added in VK_KHR_syncronization2 and later promoted to Vulkan 1.3.
So, if Vulkan 1.3 was enabled, VK_KHR_syncronization2 do not need to be enabled, and one could simply call vkQueueSubmit2 from ash::Device. However, if Vulkan 1.2 was enabled, one will have to enable VK_KHR_syncronization2 and call this function from ash::extensions::khr::Syncronization2. In this case, it's far easier to simply patch the Vulkan 1.3 function table in ash::Device to point to the function pointers obtained from ash::extensions::khr::Syncronization2 instead of having to choose which one to call by checking the enabled Vulkan version.

@MarijnS95 While from_parts could certainly be useful, without into_parts we can't really do much, because we can't obtain the ownership of those function pointer tables from an ash::Device.

sl.interposer.dll seems to behave exactly like a Vulkan layer, having no overhead for non-patched functions beyond initially returning them from the next "layer in the chain" via vkGet*ProcAddr.

Quite a few stabilized extensions seem to have been incorporated as-is, complete with type aliases and identical function signatures. Barring semantical implementation details.
Overwriting pointers to extensions might be the go-to solution for an engine here and there, but managing that complete with checking and enabling the right Vulkan version or extensions should be left to higher level Vulkan wrappers.

While from_parts could certainly be useful, without into_parts we can't really do much, because we can't obtain the ownership of those function pointer tables from an ash::Device.

No need to "take ownership" when the Fn structs are Cloneable. Together with #[inline] on the getters, the compiler might be able to "optimize" this in release when deconstructing an owned Device and fully recreating it.

Also note that we've previously had a contributor painstakingly clean up function ordering across manually-implemented wrappers, and this PR is adding the new fp_mut randomly ordered across impl blocks. We shouldn't undo their hard work.

@Ralith

It sounds like you should call ash::Entry::load_from("sl.interposer.dll").

Loading Vulkan from sl.interposer.dll is just one way for integration, and the NVIDIA docs did recommend loading only the patched functions from sl.interposer.dll. Let's say I'm using another library that patches some other Vulkan function in the exact same way as Streamline. Which DLL would I load then?

Extensions are often changed when they are merged into core. I would strongly discourage doing this.
Overwriting pointers to extensions might be the go-to solution for an engine here and there, but managing that complete with checking and enabling the right Vulkan version or extensions should be left to higher level Vulkan wrappers.

Right, I'm not proposing that ash should manage Vulkan extensions. This simply makes it easier for "some engines" to use this strategy for managing extensions that were merged into Vulkan core unchanged.

You'd load them yourself and call Device::from_parts_1_3.

Sure, but loading extensions is a problem ash has already solved for me.  With just an extra mutable reference, I can do what I need to do and hand it down to the application without writing a bunch of code that already existed within ash.

No need to "take ownership" when the Fn structs are Cloneable. Together with #[inline] on the getters, the compiler might be able to "optimize" this in release when deconstructing an owned Device and fully recreating it.

That's a big "might". And yes there are more than 1 way to achieve this. I can also define a "layout-compatible MyDevice" and transmute the ash Device - not very safe but I certainly can.
But here's the thing. There's one easy and obvious way, and 10 tedious, hard, slow, "might", or unsafe ways. And it would be great if ash could make life easier for people by allowing them to do things in the easy and obvious way.

Also note that we've previously had a contributor painstakingly clean up function ordering across manually-implemented wrappers, and this PR is adding the new fp_mut randomly ordered across impl blocks. We shouldn't undo their hard work.

Sure, if we can agree that this is OK I'll reorder where the fp_mut pointers are placed within the impl blocks.

the NVIDIA docs did recommend loading only the patched functions from sl.interposer.dll

They also document that, if you do what I advised, then functions other than the patched ones will be gracefully passed through for you. You're performing error-prone reimplementation of logic that already exists in the upstream library, in the wrapped GetProcAddr functions.

Let's say I'm using another library that patches some other Vulkan function in the exact same way as Streamline.

Are you? This ad-hoc override scheme is not a recommended or Khronos-supported pattern for extending Vulkan probably for this exact poor composability. Consider the mess you'd have if both libs tried to override the same function, for example. Streamline is the first case I've heard of that does this and I doubt you'll find many others, if any.

With just an extra mutable reference, I can do what I need to do and hand it down to the application without writing a bunch of code that already existed within ash.

You don't need to write a bunch of code. If you refer to the docs, you'll see there's already public associated load fns. Janky and uncomposable as this use case is, it's fully supported by existing API.

I will close this PR for now. We can reopen this if other people also find it necessary and helpful to have mutable access to the function pointers.


cant seem to get [spreadsheets.sheets.copyTo] to work..

Hi,
I cant seem to get the spreadsheets.sheets.copyTo to work. I have followed everything in the documentation but it still wont work. I am able to successfully perform other commands such as batchUpdate or Create. Can anybody tell me what is wrong with my code or how to make this work? Here is a snippet of my code:
    function copySheet(auth) {
    var sheets = google.sheets('v4');
    var spreadsheetID_foo = 'some spreadSheet ID';
    var spreadsheetID_test = 'another spreadSheet ID';
    sheets.spreadsheets.sheets.copyTo({
        auth: auth,
        spreadsheetId: spreadsheetID_test,
        sheetId: 0,
        resource: {destinationSpreadsheetId: spreadsheetID_foo}
    }, function(err,response){
        if(err) {
            console.log(err);
        }
        console.log('Data :', response);
    });
}

Any updates on this?

Hi @hirokun2016,
We noticed this ticket has been around for awhile with no answer. I am going to go ahead and close it, but feel free to reopen with more information if you wish.


Does the banks client verify signatures?

It seems like processTransaction works when an account is supposed to be a signer, but there is no signature in the transaction.  Is this the expected behavior?  And is there any way to enforce signature checks?
For example, say there is an Anchor accounts declaration:
#[derive(Accounts)]
pub struct Example<'info> {
    #[account(mut)]
    payer: Signer<'info>,

    other_signer: Signer<'info>,
}

If I submit a transaction with these two accounts, but no signature for the other_signer account, the transaction still executes successfully.

The underlying solana-banks-server code doesn't check the signatures. But how are you serializing the transaction without the signatures being checked on the client side? Related: https://github.com/kevinheavey/solana-bankrun/pull/15


slackUploadFile not working

Your checklist for this issue

[x] Jenkins version
[x] Plugin version
[x] OS

Description
Environment

Jenkins Version: 2.190.3
Plugin Version: 2.36
OS: Alpine Linux v3.9 (Running in a Docker Container on MacOS 10.14.6)

Configuration

Custom Jenkins App

chat:write and files:write bot token scopes enabled

Jenkins Config

Bot User Enabled
Correct token selected

Issue
With all the variables having valid values, slackUploadFile filePath: diffFileName, channel: slack_channel, credentialId: 'slack_token' does not upload a file to the channel.
Jenkins output shows the following (paths and file names redacted):
[Pipeline] slackUploadFile
Using dirname=/var/jenkins_home/workspace/Job Name Here and includeMask=filename.txt
Adding file (only first one will be uploaded) /var/jenkins_home/workspace/Job Name Here/filename.txt

slackSend works just fine with the same token.

is the file from the master or the agent? slackUploadFile runs on the agent

@timja The file is in the workspace of the agent.

is there an error message? or does it just say it uploaded it?

@timja No error message. Nothing additional in the docker logs, either.

I am having the exact same problem. I don't see any mention of any file upload activity, failed or not, in /log/Slack%20logs/ either.

Hey guys did you try running the same command manually?
curl -sSL -D - -X POST -F file=@<path_to_file> -F token=<bot_token> https://slack.com/api/files.upload
For me the problem was lack of files:write - which is returned as 200 OK - so plugin doesn't show this message anywhere. I see that you have this permission - but maybe there will be other message.
Other thing is that - plugin could print out log in case it was 200 OK but response.ok != true.

Thanks for the info @dnlek I've reproduced that issue, (it was caused by a change on slack side for new bots: https://api.slack.com/apps/AES7CA6RF/update-to-granular-scopes)
I've created a PR for it: https://github.com/jenkinsci/slack-plugin/pull/686

released in https://github.com/jenkinsci/slack-plugin/releases/tag/slack-2.40

plugin version :2.4
Jenkins: 2.235.1
i seem to have this issue. I've tried slack api tester, it works. But curl or slackUploadFile doesn't. Can't see any errors.

Have you taken a look at the PR?
If it’s not fixed by that then you have a different issue and can you please open a new issue


add debounce and memoize decorators

Adds memoize and debounce utilities I need for quicksearch

I would really like to put these all in a single decorators.ts file personally. We'd have to update all our references to them in Polaris/ Neutron but I think that's OK. Otherwise this looks good 👍

@lemonmade I can make a new issue on this repo to do that as a separate PR? Or better, right now I can create a new decorator.ts file for just Memoize and debounce. We can then (as a separate PR) move autobind in it and update all references.

Sounds good 👍


Local server run isn't checking for app-engine-java in gcloud

Following is logged if app-engine-java isn't installed:
4:24:53 PM Error running App Engine Local Server
Error running Google App Engine Dev Server.
Exception occurred : com.google.cloud.tools.appengine.cloudsdk.AppEngineJavaComponentsNotInstalledException
Exception message : Validation Error: Java App Engine components not installed. Fix by running 'gcloud components install app-engine-java' on command-line.

There is a fix coming in the common library that makes this unnecessary.
Talk to Mike.
On Thu, Sep 22, 2016 at 1:31 PM, João Martins<EMAIL_ADDRESS>wrote:

Following is logged if app-engine-java isn't installed:
4:24:53 PM Error running App Engine Local Server
Error running Google App Engine Dev Server.
Exception occurred : com.google.cloud.tools.appengine.cloudsdk.
AppEngineJavaComponentsNotInstalledException
Exception message : Validation Error: Java App Engine components not
installed. Fix by running 'gcloud components install app-engine-java' on
command-line.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-intellij/issues/931,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHf5HeVTv0Em9Mk9gYVg_3t4JI7sRjPFks5qsuWHgaJpZM4KEVEf
.

I thought this was already fixed in gcloud? Isn't this just a matter of catching the exception and logging as is done in AppEngineStandardDeployTask?

https://github.com/GoogleCloudPlatform/google-cloud-intellij/pull/884
When I implemented this for deploy I didn't think about local run. I didn't think at the time that it depended on the app-engine-java component.

I'm thinking the run/debug window could probably prevent a local run from being launched if there is no app-engine-java installed. Currently, only the "new application servers" window does this, and it is letting me save that application server regardless.

We could take the same approach as deploy and just fail to start the local server but with a good message for the user in the console.

plugin core lib is going to make a change that auto installs the java
component when starting a java app engine module.
On Thu, Sep 22, 2016 at 1:47 PM, Etan Shaul<EMAIL_ADDRESS>wrote:

We could take the same approach as deploy and just fail to start the local
server but with a good message for the user in the console.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-intellij/issues/931#issuecomment-249023290,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHf5HYadtYSVAjjRiegwatoKXvZoacJlks5qsulugaJpZM4KEVEf
.

@patflynn I think the change is pretty lightweight, and a good fall back in case anything goes awry.
@etanshaul the problem is that, unlike deployment, local run doesn't have a callback that we can use to write in the console. In fact, I don't know of a way to have access to it.

oh ok.
In any case, I talked to @meltsufin and there is an issue out there to auto download the component as mentioned. The exception should still be in place after that change, so like @joaoandremartins said we should probably still catch it and log a message to the user somewhere.


Fixed update on record move

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

13 of 46 (28.26%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.3%) to 26.43%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

background/moves.go
0
1
0.0%

queuelogic/logic.go
0
3
0.0%

db/db.go
0
29
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.3%

Covered Lines:
610

Relevant Lines:
2308

💛  - Coveralls


Support JRuby

I think the main thing will be adding Mutexes for the caches.

Resolved via #463 and #455

Also #462 and #461 for thread safety in JRuby.


Custom height and background view

Hi!
I've been trying to do a modal view with this library and all is loading correctly but i'm not being able to change the collapsed height and the color of the background view (i don't want to use a blur background view and the alpha of the regular black layer is too dark).
I tried to do a custom background view with clear background color but it doesn't work, the background shows pure black if i do so.
Anyone can help me?
Thanks and best regards!

Hi, thanks for using this library. Try customising "backgroundView" and "blurBackground" properties of content sheet.

Hi @shyamakirala !
I finally changed the background color, but i can't define the height of the collapsed height withoud modifying the library. If i don't change the height, the view shows incorrectly on iPhone X, iPhone 11, ...
Can i do that without modifying your code?
Thanks and best regards!


support config override

I have a project that using different line width in some files (these files contain many object expression with long key and string value, so I perfer very lone line width in these files so no new line after :), and currently I can only use 2 seprated config files, and call dprint with different config files for this case.
Any interest in supporint config override like prettier and eslint?

Sorry, I create this issue in wrong repo.


No rule to make target 'menuconfig'. Stop. (IDFGH-2076)

I download and extract the repository to the components folder of my ESP-IDF project.
But when I want to make menuconfig this happened.

I use python 2.7 8 ( windows 10 ) 64 bit

Hi @amirjak. You are not supposed to run make in the components directory. Please create your own project (based on the template or an example application) and set the IDF_PATH to your ~/esp-idf.
make should be run in your project folder.

Thank you very much


Waypoint: Target the Parent of an Element Using jQuery

Challenge /challenges/waypoint-target-the-parent-of-an-element-using-jquery has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36.

My code:
undefined

Please try refreshing the page.  If that doesn't work, try pressing the "Reset" button.  Also, check your dev console for errors.

I try that.
The error on console is
waypoint-target-the-parent-of-an-element-using-jquery:30 Uncaught SyntaxError: Unexpected token ILLEGAL

It looks like the page is corrupt in some way.
Press F12 to open the dev console.  Press and hold your mouse on the normal refresh button until a menu pops up.  Choose "Empty Cache and Hard Reload".  See if that helps at all.

Nope, I tried that too and the result was the same. But I think that the problem is some code injection from an extension on the browser.

Closing this is not an issue with the site. Thanks and happy coding!


No main.cpp file?

Still need to code the main software for this project.

Team 4

The main files have now been uploaded. Thanks for raising the issue.


DBZ-1495 Avoid NPE by throwing more meaningful error messages

https://issues.jboss.org/browse/DBZ-1495

@Naros useful improvement, thanks!


Fix unnecessary indent for empty slice/array

fix https://github.com/goccy/go-json/issues/180

Codecov Report

Merging #181 (ae56d83) into master (a39bc30) will increase coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #181      +/-   ##
==========================================
+ Coverage   81.65%   81.72%   +0.07%
==========================================
  Files          49       49
  Lines       21481    21477       -4
==========================================
+ Hits        17540    17552      +12
+ Misses       3067     3052      -15
+ Partials      874      873       -1


How to express write_attribute(file, name, adata) when writing to root group?

Question: what should the API be to write an AnnData or MuData to a store without creating a new group?
Currently the API for writting elements is write_elem(group, key, value) which writes value into a new element k in group. How do we specify that we would like to write the element into the current group?
Two cases where we want this are writing an AnnData or MuData, though you could also want this for an arbitrary mapping. I figure the API should either be either passing key=None or key="/". So this could look like:
with h5py.File(pth, "w") as f:
    write_elem(f, None, adata)

An implementation detail here: what do we do if the group we are trying to write to isn't empty?
When a key is passed, we delete anything that previously existed at that key and then write the new element. This doesn't work when it's the root of a store, since you generally can't delete that. Ideally our solution doesn't make working around this complicated.

My initial opinion would be to go with key="/". One might discuss if we want to also accept key="" to follow the existing semantics (key="obsm" to write into the "obsm" group, key="" to write into the current group). The latter might be error-prone though so we can go exclusively with the former.
For the second question, we also have to think if we want this to behave in the same way as anndata behaves currently when writing to a file with content (it does re-write it fully). If e.g. write_elem(f, "obsm", data) overwrites what was in this group group before, we should probably overwrite all the groups with write_elem(f, "/", adata) but also delete extra ones then.

"/" may actually break some semantics of hdf5, since it refers to the root group.
f = h5py.File("pbmc.h5ad")
uns = f["uns"]
uns["/"].keys()

<KeysViewHDF5 ['X', 'obs', 'obsm', 'obsp', 'raw', 'uns', 'var', 'varm']>

This works for writing to root of a store, but does not generalize to writing to the current group.

Zarr seems to allow "" to refer to the current group, but h5py uses "." (which does make a lot of sense). h5py does not allow "..".

I have gone with write_elem(f, "/", adata) on master.


Ability to restore conditional on deletion mechanism?

A project can only be restored if it was deleted from the Web or REST API.

I think this limitation needs to be expanded on for clarification.
The statement seems to imply that projects deleted via some mechanisms cannot be restored. If so, what are these mechanisms?
For example, the implication seems to be that projects deleted via the standard ADO Web UI cannot be restored. Is that true?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 93b1cf79-de4e-500b-388a-64665e3af89b
Version Independent ID: 2cdda8ac-9e42-eed7-8d0c-9ab8dfc2c5f8
Content: Restore a project - Azure DevOps Services
Content Source: docs/organizations/projects/restore-project.md
Product: devops
Technology: devops-accounts
GitHub Login: @chcomley
Microsoft Alias: chcomley

Hi @VitalyMCT, Thanks for bringing this to our attention. I agree that it implies that there's another way to delete a project, which isn't the case, as I understand it. Once my PR is merged, this issue will automatically be closed. Thanks again.


The togglefloating should remember the window's previous position

Description
So that using togglefloating again can restore the prior layout. Taking the master layout as an example, currently, if togglefloating is applied twice to a window, the current window always ends up in the top right corner.

that is logically not possible.
How would hyprland know if you want the previous position, or if you want your configured behavior (new on top) to be honored?
How would hyprland know the previous position when layout changes?
How would hyprland know where to put the window when you move it to a different monitor?
Whenever you tile a window, it will behave exactly like as if you opened a new window
I don't see a point


spectacle 1.0.3

Thank you for the contribution. It was merged directly as c3c04340ecb230d451f9632c0daa371c49cb7177 to keep commit history cleaner. Your contribution is still credited to you.


Hide character feature images from screen readers

The first thing I notice is that I can hear a bunch of "graphic character brows" "graphic character brows" etc.

Originally posted by @naomi-lgbt in https://github.com/freeCodeCamp/freeCodeCamp/issues/52543#issuecomment-1858035717
We should hide the character images with aria-hidden='true' - we can probably hide all the images, except for maybe the base character.

Yes, definitely, these images should have empty alt text!

Alt text emptied 🫡


[Pitch] Apache avro serialization

Hi y'all!
I started a (VERY EARLY PROTOTYPE) that implements serialization to apache avro.
I think it would be a good alternative to json with more efficient disk usage.
https://github.com/jspaezp/avrospeclib
I am still implementing the schema using pydantic and deriving form it the
avro schema.
Some disk usage metrics on a reasonably large speclib I have
    # ~ 50MB  binary speclib file from diann
    #  552M   tmp/speclib_out.tsv
    #  448M   tmp/speclib_out.mzlib.json # using mzspeclib
    #  148M   tests/data/test.mzlib.avro

Read-write speeds
avro write: 4.832904
avro read: 6.133625
json write: 6.304285
json read: 4.992042
pydantic validation: 19.415933 # Not needed for avro because schema is on-write.

let me know if there is any interest in adopting it!
best!

Also ... I f you could point me out to an example of a json-resialized clusters and spectrum_attribute_sets I would really appreciate it!

other random thoughts...
Questions:

Why is the 'id' key in the dict object if the key is also
that same identifier? ('analytes': {'1': {id = '1', ...}}).
Reading the specification file, the rationale is that one could query
by id but once read the element 'knows' where it came from ... I am not
100% sure if i aggree with the rationale, since it could be an implementation
detail of the reader rather than a constrain on the serialization.
Why are cvparam lists not dicts of cvparams?
Maybe dict[id:(values|list[values])] or even dict[id:list[values]]
is more efficient than list[dict]? (this follows a similar rationale as the ID)

{
  "1": {
    "id": "1",
    "attributes": [
      {
        "accession": "MS:1003169",
        "name": "proforma peptidoform sequence",
        "value": "AAAAAAAAAAAAAAAASAGGK"
      },
      {
        "accession": "MS:1001117",
        "name": "theoretical mass",
        "value": 1554.8114178831797
      },
      {
        "accession": "MS:1000041",
        "name": "charge state",
        "value": 2.0
      }
    ]
  }
}

vs
{
  "1": {
    "id": "1",
    "attributes": {
      "MS:1003169": {
        "name": "proforma peptidoform sequence",
        "value": "AAAAAAAAAAAAAAAASAGGK"
      },
      "MS:1001117": {
        "name": "theoretical mass",
        "value": 1554.8114178831797
      },
      "MS:1000041": {
        "name": "charge state",
        "value": 2.0
      }
    }
  }
}

Why are accession ids AND names required?
Why not just accession ids? (I can see how names are useful for
humans, but I can imagine a 'minized' version of the file that
only has accession ids).

Is there any place where there is a suggestion on how to deal
with cvparams that encode redundant pieces of information?
For example ... the proforma sequence "ASDASD/4" over
"ASDASD" + "MS:1000041 = 4"? or is this on a per-use-case basis?.

Why is the 'id' key in the dict object if the key is also
that same identifier? ('analytes': {'1': {id = '1', ...}}).
Reading the specification file, the rationale is that one could query
by id but once read the element 'knows' where it came from ... I am not
100% sure if i aggree with the rationale, since it could be an implementation
detail of the reader rather than a constrain on the serialization.

The JSON scheme was made for ergonomics of use, not for size, and you're correct, it's that the Analyte might need to know its own identity value when it's being used, e.g. when figuring out which interpretation members correspond to it. The idea that the user will want to be able to find an analyte by its id is more convenient than saving a few bytes and forcing any consumer to write a linear probing procedure. If you are writing a new serialization, you don't need to preserve the pattern as long as the reader puts the id value in the Analyte object.

Why are cvparam lists not dicts of cvparams?
Maybe dict[id:(values|list[values])] or even dict[id:list[values]]
is more efficient than list[dict]? (this follows a similar rationale as the ID)

The outer-most container isn't a dict so that we can repeat the same term multiple times. The elements themselves are dict objects because it lets us represent all the parts of the CVParam structure conveniently, with name, accession, value, and group ID visible.

Why are accession ids AND names required?
Why not just accession ids? (I can see how names are useful for
humans, but I can imagine a 'minized' version of the file that
only has accession ids).

The name is again kept for human readability. If you were writing a binary format you wouldn't need to store it, just the accession or something like it to be able to get back to the full CVParam at read time.

Is there any place where there is a suggestion on how to deal
with cvparams that encode redundant pieces of information?
For example ... the proforma sequence "ASDASD/4" over
"ASDASD" + "MS:1000041 = 4"? or is this on a per-use-case basis?.

I don't know if this is explicitly called out in the specification, but I think (and may be wrong) that readers should support and recognize reading both separate and compound values like proforma peptidoform ion notation, and it is an implementation detail of the reader which is given precedence. Charge state in particular is complicated because it is part of both analytes and spectra, and means different things in different contexts, especially because of chimeric spectra.
We don't have any example libraries with clusters in them yet, but I converted one of the SpectraST libraries to JSON. It includes several attribute sets. I think there are still problems with the conversion though, so I'll work on this more in the coming week.
fetal_brain_tiny.mzlib.json


Incompatible between ES6-promise thenable and recent PromiseLike change in lib.d.ts

Our Angular2 code-base of RWC uses es6-promise for defining Promise interface as well as PromiseLike definition from our lib.d.ts. With our recent change, Thenable and PromiseLike is no longer compatible.

@rbuckton can you see if reverting the changes to PromiseLike would do?

I reviewed this with @yuit, reverting the change to PromiseLike fixes the issue, and does not impact the improved typing for Promise.

Fixed by https://github.com/Microsoft/TypeScript/pull/9484#issuecomment-230081306


[PLAT-695] Passing error down to Chewy Response to be accessible

Description
Currently, if the error raised from the ES client is of type Elasticsearch::Transport::Transport::Errors::NotFound then Chewy is not returning it to us.
Another case is when some shards experience failures - here's this example.
irb(main):4141> que = ContactsIndex.query(ids: { values: [] })
=> <ContactsIndex::Query {:index=>["contacts"], :body=>{:query=>{:ids=>{:values=>[]}}}}>
irb(main):4142>
irb(main):4143> que.hits
D, [2024-10-29T12:35:51.865926 #55546] DEBUG -- Chewy:   ContactsIndex::Contact Search (1290.9ms) {:index=>["contacts"], :body=>{:query=>{:ids=>{:values=>[]}}}}
=> []
irb(main):4144>
irb(main):4145> que.response
=> #<Chewy::Search::Response:0x0000000396e96788 @body={}, @error=nil, @loader=#<Chewy::Search::Loader:0x0000000396e96828 @except=[], @indexes=[ContactsIndex], @only=[], @options={}>, @paginator=#<Proc:0x00000003d7eb49e0 (lambda)>>
irb(main):4146>
irb(main):4147> Chewy.client.search(que.render)
/Users/shivam/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/bundler/gems/elasticsearch-ruby-973646967537/elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb:205:in `__raise_transport_error': [404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [contacts]","resource.type":"index_or_alias","resource.id":"contacts","index_uuid":"_na_","index":"contacts"}],"type":"index_not_found_exception","reason":"no such index [contacts]","resource.type":"index_or_alias","resource.id":"contacts","index_uuid":"_na_","index":"contacts"},"status":404} (Elasticsearch::Transport::Transport::Errors::NotFound)
irb(main):4148>

To handle this change, I have passed any error received down to the Response and exposed the method for us to add logs or handle them properly. Overall, have made three changes:

Passed down the errors from the Chewy request to response
Exposed two methods in Chewy Response: body and errors
Delegated errors method in Chewy Request to it's Response – for direct usage

Hence now, for the same example:
The resultant behaviour of other methods is the same but we are able to see ES errors:
irb(main):5564> que = ContactsIndex.query(ids: { values: [] })
=> <ContactsIndex::Query {:index=>["contacts"], :body=>{:query=>{:ids=>{:values=>[]}}}}>
irb(main):5565>
irb(main):5566> que.hits
D, [2024-10-29T12:44:36.452627 #55546] DEBUG -- Chewy:   ContactsIndex::Contact Search (1096.4ms) {:index=>["contacts"], :body=>{:query=>{:ids=>{:values=>[]}}}}
=> []
irb(main):5567>
irb(main):5568> que.response
=>
#<Chewy::Search::Response:0x00000003f30501f8
 @body=
  {"error"=>
    #<Elasticsearch::Transport::Transport::Errors::NotFound: [404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [contacts]","resource.type":"index_or_alias","resource.id":"contacts","index_uuid":"_na_","index":"contacts"}],"type":"index_not_found_exception","reason":"no such index [contacts]","resource.type":"index_or_alias","resource.id":"contacts","index_uuid":"_na_","index":"contacts"},"status":404}>},
 @hits=[],
 @loader=#<Chewy::Search::Loader:0x00000003f3050298 @except=[], @indexes=[ContactsIndex], @only=[], @options={}>,
 @paginator=#<Proc:0x00000003ee370c98 (lambda)>>
irb(main):5569>
irb(main):5570> que.error
=> #<Elasticsearch::Transport::Transport::Errors::NotFound: [404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [contacts]","resource.type":"index_or_alias","resource.id":"contacts","index_uuid":"_na_","index":"contacts"}],"type":"index_not_found_exception","reason":"no such index [contacts]","resource.type":"index_or_alias","resource.id":"contacts","index_uuid":"_na_","index":"contacts"},"status":404}>
irb(main):5571>
irb(main):5572> Chewy.client.search(que.render)
/Users/shivam/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/bundler/gems/elasticsearch-ruby-973646967537/elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb:205:in `__raise_transport_error': [404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [contacts]","resource.type":"index_or_alias","resource.id":"contacts","index_uuid":"_na_","index":"contacts"}],"type":"index_not_found_exception","reason":"no such index [contacts]","resource.type":"index_or_alias","resource.id":"contacts","index_uuid":"_na_","index":"contacts"},"status":404} (Elasticsearch::Transport::Transport::Errors::NotFound)
irb(main):5573>

Why is it needed?
We have some cases where we are getting some inconsistent nil responses in ES queries, I suspect that we are receiving some errors that are not propagated to us:

https://apolloio.slack.com/archives/CQGC93J94/p1730112155349049
https://apolloio.sentry.io/issues/5726154226/?project=4504093456334848&referrer=jira_integration

🙌 🚀


Binwalk Extractor failed

Just tested this on 2 freshly installed Ubuntu machines. When trying to run FirmAE, binwalk seems to throw some errors related to its running uid.
sudo ./run.sh -c dlink ../Downloads/dataset/dlink/DIR822B1_FW200KRb06.bin
[*] ../Downloads/dataset/dlink/DIR822B1_FW200KRb06.bin emulation start!!!

Extractor Exception: Binwalk extraction uses many third party utilities, which may not be secure. If you wish to have extraction utilities executed as the current user, use '--run-as=root' (binwalk itself must be run as root).
----------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/binwalk/core/module.py", line 258, in __init__
    self.load()
  File "/usr/local/lib/python3.9/dist-packages/binwalk/modules/extractor.py", line 147, in load
    raise ModuleException("Binwalk extraction uses many third party utilities, which may not be secure. If you wish to have extraction utilities executed as the current user, use '--run-as=%s' (binwalk itself must be run as root)." % user_info.pw_name)
binwalk.core.exceptions.ModuleException: Binwalk extraction uses many third party utilities, which may not be secure. If you wish to have extraction utilities executed as the current user, use '--run-as=root' (binwalk itself must be run as root).

Thank you for your issue!
Running binwalk with the root user is may unsafe, because of the third-party utilities.
However, the run.sh script is working with the root user. Thus, the --run-as=root command was added in the extractor.py.
As described in the binwalk script, be careful of third-party utilities.

Im afraid it now raises a new issue ...
General Error: Cannot open file --run-as=root (CWD: /tmp/tmps7l2ay4u) : [Errno 2] No such file or directory: '--run-as=root'

@YB1-cyber
It still needs to run with the root user.
Try this sudo ./run.sh -d tplink /root/Desktop/firmware/DIR880A1_FW107WWb08.bin command.

@pr0v3rbs
Im Already root user that's why sudo is missing in the command.
(anyway i checked also with sudo before i commented.)
thanks

Can you try after reinstalling the binwalk?
Check this command python3 -m pip install git+https://github.com/ReFirmLabs/binwalk.

same error...
# python3 -m pip install git+https://github.com/ReFirmLabs/binwalk
Collecting git+https://github.com/ReFirmLabs/binwalk
Cloning https://github.com/ReFirmLabs/binwalk to /tmp/pip-req-build-fh9ig121
Running command git clone -q https://github.com/ReFirmLabs/binwalk /tmp/pip-req-build-fh9ig121
Building wheels for collected packages: binwalk
Building wheel for binwalk (setup.py) ... done
Created wheel for binwalk: filename=binwalk-2.3.3+fa0c0bd-py3-none-any.whl size=135413 sha256=45af1106e0f68ba61ba68d36d588e6d9b3a45b1ebc374047a7a18b5fedeaa562
Stored in directory: /tmp/pip-ephem-wheel-cache-4bd365is/wheels/c0/a5/3b/542feb60450a355008411f9ce955c66df12475959305a35faa
Successfully built binwalk
Installing collected packages: binwalk
Attempting uninstall: binwalk
Found existing installation: binwalk 2.3.2
Not uninstalling binwalk at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'binwalk'. No files were found to uninstall.
Successfully installed binwalk-2.3.3+fa0c0bd
# uname -a
Linux kali 5.10.0-kali9-amd64 #1 SMP Debian 5.10.46-4kali1 (2021-08-09) x86_64 GNU/Linux

It seems the recent binwalk is not compatible with the root user (not a sudo execution).
I'm checking now. Thank you for your issue!

@pr0v3rbs
thanks, i'll wait
pls ping me when there're good news

@YB1-cyber
There are multiple issues on binwalk 2.3.3 such as extracting symbolic link files about the root (/) directory and root user permission.
I currently set the binwalk version 2.3.1. (Check install.sh)
The command changed with python3 -m pip install git+https://github.com/ReFirmLabs/binwalk@772f271.
I will check the compatibility with the latest binwalk.
Thank you!

after a new clean  install ...
# binwalk
Binwalk v2.3.2
# ./run.sh -d tplink /root/Desktop/firmware/DIR880A1_FW107WWb08.bin
[] /root/Desktop/firmware/DIR880A1_FW107WWb08.bin emulation start!!!
[] extract done!!!
[*] get architecture done!!!
mke2fs 1.46.4 (18-Aug-2021)
e2fsck 1.46.4 (18-Aug-2021)
e2fsck: Cannot continue, aborting.
(although volume is mounted on /dev/loop14p1)

@YB1-cyber
It seems the problem of the binwalk was solved.
About the mounted error issue, please check this issue #31.
Thank you!

In FirmAE/sources/extractor/extractor.py on line 445 add --run-as=root to binwalk-scan. This will allow binwalk to run as expected.
for module in binwalk.scan(self.item, "--run-as=root", "-e", "-r", "-C", self.temp,
                                       signature=True, quiet=True):

I added PR #36 to address this issue.

@loverics Check this https://github.com/pr0v3rbs/FirmAE/pull/36#issuecomment-962585681.

This issue was fixed in 6911f56

Great!
Thanks a lot. I Will be testing it with my students next week.
Kind regards,
Mick Beer
Op zo 31 jul. 2022 om 11:18 schreef Mingeun Kim @.***>

This issue was fixed in 6911f56
https://github.com/pr0v3rbs/FirmAE/commit/6911f56d92937b0d30bb58ab36d622c31a97a1ee
—
Reply to this email directly, view it on GitHub
https://github.com/pr0v3rbs/FirmAE/issues/33#issuecomment-1200385427,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATNYJ77YT72JVPAY2JFAMX3VWZAGNANCNFSM5E5BHUDA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


about jwt duration

hi,
just a question about JWT. Context is an angular webapp (in Ionic for example) and a CI API server.
is it safe to never expires the token ? What are best practices ?
Thanks

I think it is not an issue in not expire the token...I myself use it in one of my app to let the user always be logged in ... I provide logout option to flush the token.  However if you want to stop access to only sensitive area of your app you can pass some information along with the token to restrict the content further.... like : group_id , is_allowed  etc.

is there is way to put time limit on jwt token ?and how to flush the token when log out.

Hi, sorry my english, but let's go...
I made a modification at code to add expiration resource. You can see it:
http://pastebin.com/V21VaDsS
How create the token:
$expiration = strtotime('2017-03-09 11:00:00');
$fields = array();
$fields['login'] = 'paulo@gmail';
$fields['nome_banco'] = 'locadora';
$token = JWT::encode($fields, 'mysecret', $expiration);
I hope it help. If the author likes my idea, put it at the original code...


Trying to deploy bookstack

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
Hello! New to bookstack and Linux as a whole I guess, but have been in IT for 20 years.
I am trying to deploy bookstack via docker.
I am using Ubuntu 22.04 with aaPanel with Nginx 1.24, MySQL 8.0.35, PHPMyadmin 5.2 and PHP 8.0
Here is my docker-compose.yml file:
---
services:
  bookstack:
    image: lscr.io/linuxserver/bookstack:latest
    container_name: bookstack
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=Etc/UTC
      - APP_URL=http://localhost:6875
      - APP_KEY=2zdwi8n9D/8ytUmWhBae6GO6X9GtqRAXwFw9XxQJicM=
      - DB_HOST=bookstack_db
      - DB_PORT=3306
      - DB_USERNAME=bookstack
      - DB_PASSWORD=password
      - DB_DATABASE=bookstackapp
    volumes:
      - /var/docker-data/bookstack_app_data:/config
    ports:
      - 6875:80
    restart: unless-stopped
    depends_on:
      - bookstack_db

  bookstack_db:
    image: lscr.io/linuxserver/mariadb:latest
    container_name: bookstack_db
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=Etc/UTC
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=bookstackapp
      - MYSQL_USER=bookstack
      - MYSQL_PASSWORD=password
    volumes:
      - /var/docker-data/bookstack_db_data:/config
    restart: unless-stopped

When I run the composer, it gets to this and stops:

Any help would be appreciated. I have been scouring the internet for the last 2 days and cant figure this out :(
Thank you!
Exact BookStack Version
10.11.8
Log Content
No response
Hosting Environment
I am using Ubuntu 22.04 with aaPanel with Nginx 1.24, MySQL 8.0.35, PHPMyadmin 5.2 and PHP 8.0

Hi @PJTharpeNoob,
Going by those compose logs in the terminal view, that's a successful start-up.
Based on that config, it should be available at port 6875 of the host/ip address.
A few things though:

Firewalls on the server and/or host environment may block access to this.
I'm assuming this is not hosted on the same machine you'd be accessing via in the browser, so the APP_URL=http://localhost:6875 is probably not right (Should be the address you expect to access via).
Quite often for a docker-based setup you'd have a reverse proxy in front to handle https/http on normal ports which then handles the requests and sends them on to the container.

It's a little old, but I have a detailed guide on setting up a compose stack with a proxy which may help you gain a view of how these parts fit together: https://www.youtube.com/watch?v=dbDzPIv8Cf8

@PJTharpeNoob Errors like that should be logged to the app laravel.log file.
For this kind of setup I talk about accessing logs at about 7:28 of my video here: https://youtu.be/6A8hLuQTkKQ?t=448
That said, it's possible the log file might have moved a bit since that video, but should still be somewhere within the mounted app files.

Since there's been no further follow up I'll go ahead and close this off.


[fix] basicauth not being executed by default

Proposed fix for #361

Fix wrong check in schema validation for sub-values with default
Fix access.lua not throwing an error in case of missing configuration (
which is mandatory for this plugin)

+1


Tailwind styles aren't applied to Popover Menus when following Tailwind MUI interoperability docs

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
When using MUI style interoperability with tailwind and CRA/Next, we need to specify the important option in the tailwind config in order to correctly apply styles between the two frameworks.
All components of the React tree should fall under the container they are spawned in #root/#__next.
The Popover Menu elements uses Portals under the hood and doesn't respect the React container and instead makes the container a child of the body element.
The means that no tailwind styles can be applied to any Menu children and anything contained within that popover element.
Example Component
const UserDropdown: React.FC = () => {
  const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);
  const open = Boolean(anchorEl);

  const handleClick = (event: React.MouseEvent<HTMLDivElement>) => {
    setAnchorEl(event.currentTarget);
  };

  const handleClose = () => {
    setAnchorEl(null);
  };

  return (
    <Stack>
      <div
        className="cursor-pointer"
        id="basic-button"
        aria-controls="basic-menu"
        aria-haspopup="true"
        aria-expanded={open ? "true" : undefined}
        onClick={handleClick}
      >
        <Avatar alt="Alt" src="source" />
      </div>
      <Menu
        id="basic-menu"
        anchorEl={anchorEl}
        open={open}
        onClose={handleClose}
        MenuListProps={{
          "aria-labelledby": "basic-button",
        }}
        elevation={0}
      >
        <Stack className="w-12">
          {/* No classes from tailwind work anywhere in this component */}
          <MenuItem className="bg-black" onClick={() => {}}>My account</MenuItem>
        </Stack>
      </Menu>
    </Stack>
  );
};

Generates the following DOM tree

And as we can see, the Menu component falls outside the #__next react container
Expected behavior 🤔
The popover menu should be able to have styles applied to it correctly from other CSS frameworks like the rest of the components.
This may mean that it should be generated within the React container that spawned it
Steps to reproduce 🕹
Steps:

Integrate Tailwind with a MUI project by following the docs listed below
Add a Menu component trigger by a Popover
Add tailwind styles and notice they are not applied

Context 🔦
When following the docs at MUI Tailwind Inoperability it says to specify #__next/#root as the select to apply important to.
However the Menu component gets generated as a child of the body element which falls outside of the React container. This breaks the css important selector and means tailwind cannot be applied to Menu children
Your environment 🌎

`npx @mui/envinfo`
Tested On Chrome
  System:
    OS: macOS 12.3.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 248.31 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Managers:
    Homebrew: 3.4.11 - /opt/homebrew/bin/brew
    pip3: 21.2.4 - ~/.pyenv/shims/pip3
    RubyGems: 3.2.22 - /usr/local/opt/ruby/bin/gem
  Utilities:
    Make: 3.81 - /usr/bin/make
    GCC: 13.1.6 - /usr/bin/gcc
    Git: 2.36.1 - /opt/homebrew/bin/git
    Clang: 13.1.6 - /usr/bin/clang
    FFmpeg: 4.4.1 - /usr/local/bin/ffmpeg
  Servers:
    Apache: 2.4.51 - /usr/sbin/apachectl
  Virtualization:
    Docker: 20.10.16 - /opt/homebrew/bin/docker
  IDEs:
    Nano: 6.3 - /opt/homebrew/bin/nano
    VSCode: 1.67.2 - /usr/local/bin/code
    Vim: 8.2 - /usr/bin/vim
    Xcode: /undefined - /usr/bin/xcodebuild
  Languages:
    Bash: 3.2.57 - /bin/bash
    Go: 1.18 - /usr/local/bin/go
    Java: 13.0.2 - /usr/bin/javac
    Perl: 5.30.3 - /usr/bin/perl
    Python: 3.9.6 - /Users/ajhenry/.pyenv/shims/python
    Python3: 3.9.6 - /Users/ajhenry/.pyenv/shims/python3
    Ruby: 3.0.2 - /usr/local/opt/ruby/bin/ruby
  Databases:
    SQLite: 3.37.0 - /usr/bin/sqlite3
  Browsers:
    Chrome: 102.0.5005.61
    Safari: 15.4

Maybe @robertwt7 can help out here.

This is actually a good point, any reason from the MUI team why PopOver component does not fall under the container, instead it falls under the body tag?

Sounds about right, it should be similar to as described in https://github.com/mui/material-ui/pull/33007 for the shallow dom - https://deploy-preview-33007--material-ui.netlify.app/material-ui/guides/shadow-dom/ :)
This deserves an docs update on our interoperability guide with Tailwind CSS - https://mui.com/material-ui/guides/interoperability/#tailwind-css and maybe even updating the project example. Would you like to give it a try @ajhenry ? @samuelsycamore can help, or take over if you don't have the bandwidth to do it :)

I think I can tackle this!

Is this possibly actually just the same issue as noted here? https://github.com/mui/material-ui/issues/33017 The bug is related to portals not to tailwind I think.

@smmccabe you linked the same issue, could you double check which issue you wanted to link here? :)

Clearly not at my best on a Friday, https://github.com/mui/material-ui/issues/26767

@mnajdova Added a PR to update the docs and an example. You were right about the shadow dom details 😄

@ajhenry I'm working with nextjs and facing the same issue with autocomplete component. Can you guide me on how to fix it for nextjs?


DemandForecastGeneration_TriggerScript failing from last three weeks

We are getting below error, from last three weeks (this issue appearing when creating new pipeline or running existing from Demand forecast), any one come across this issue?
Error:
Expected a StepRun object but received <class 'azureml.core.run.Run'> instead.
This usually indicates a package conflict with one of the dependencies of azureml-core or azureml-pipeline-core.
Please check for package conflicts in your python environment
Elapsed time:  0:14:03.650006
Cleaning up all outstanding Run operations, waiting 300.0 seconds
3 items cleaning up...
Cleanup took 0.235382080078125 seconds
Traceback (most recent call last):
File "/azureml-envs/azureml_f3f7e6c5fb83d94df23933000bf02da3/lib/python3.8/site-packages/azureml/pipeline/core/run.py", line 295, in wait_for_completion
step_run.wait_for_completion(timeout_seconds=timeout_seconds - time_elapsed,
TypeError: wait_for_completion() got an unexpected keyword argument 'timeout_seconds'

@maheshambati410
I am getting the same error when I attempt to build the pipeline and have not been able to figure out what is going on yet. I am completely new to Azure ML, so if you happen to find a solution, please share with me!

@JERPU2 Microsoft support team shared workaround to this issue. Fix attached here
Fix from MS_060324.zip


FileNotFoundError: [Errno 2] No such file or directory: 'client_secret_ ... .apps.googleusercontent.com.json'

 docker-compose run python python -m google_photos_deduper
time="2022-04-19T16:16:49+10:00" level=warning msg="The \"ACCESS_TOKEN\" variable is not set. Defaulting to a blank string."
[+] Running 1/0
 - Container google-photos-deduper-python-mongo-1  Running                                                                                0.0s
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/src/app/google_photos_deduper/__main__.py", line 64, in <module>
    run()
  File "/usr/src/app/google_photos_deduper/__main__.py", line 24, in run
    flow = Flow.from_client_secrets_file(
  File "/usr/local/lib/python3.9/site-packages/google_auth_oauthlib/flow.py", line 201, in from_client_secrets_file
    with open(client_secrets_file, "r") as json_file:
FileNotFoundError: [Errno 2] No such file or directory: 'client_secret_792370018435-b70v71v2e7cb3i3s67cdg74qtfao5a1t.apps.googleusercontent.com.json'

You have to create an OAuth ID first here: https://console.cloud.google.com/apis/credentials
Download the OAuth client JSON file and save it in the root of this project directory.
Rename the file to client_secret_792370018435-b70v71v2e7cb3i3s67cdg74qtfao5a1t.apps.googleusercontent.com.json or change the filename in google_photos_deduper/__main__.py.
After that you can build the docker image again and now you should get the unscreen instructions to authorize the app.


Error in docker inspect when swapiness is not set

This may be an issue with Windows Containers in
Docker Docker version 1.12.2-cs2-ws-beta, build 050b611

Output of dotnet --info:
using .net 4.5.2

What version of Docker.DotNet?:
  <package id="Docker.DotNet" version="2.124.3" targetFramework="net452" />

Steps to reproduce the issue:

create a container
inspect a container

What actually happened?:
Exception in the async call:
{"Error converting value {null} to type 'System.Int64'. Path 'HostConfig.MemorySwappiness', line 1, position 2205."}

What did you expect to happen?:
if it is null then it should be null-able.

Interesting. Does the relevant docker inspect call from cmd show MemorySwappiness: null, or is it omitted?


#Add greetings bot

This is a PR that addresses the addition of a simple github greetings bot that display messages in the form of comments to the new users who raise a PR or an issue. Please add level1 and gssoc24-ext labels to the PR. Thank you.
closes #1

Please add level1 and gssoc24-ext, hacktoberfest-accepted labels to the PR. Thank you!

@SwanandD121 Requested changes has been pushed via new commit. Please review.


JSON example does not work in Python3 due to encoding differences

In Python3 encoding to base64 is done with base64.b64encode which creates a bytes object. Json.dumps only takes a string, so the example produces an error.
Attempting to read the file as utf-8 doesn't produce an error, but the resulting PDF is garbled because I assume wkhtmltopdf is expecting a base64 encoded HTML string? Also giving it the --encoding utf-8 option still produces a garbled PDF.
Basically I can't figure out how to get the JSON API working in Python3.

the resulting PDF is garbled because I assume wkhtmltopdf is expecting a base64 encoded HTML string

On line 34 of app.py, the JSON mode pulls contents out of the POSTed JSON and does a Base64 decode before writing that out to a temporary file. Character sets don't appear to come into it unless you aren't sending valid JSON.
On the service-side, the recipe is built from openlabs/docker-wkhtmltopdf, which in turn is built from ubunto 14.04 and the referenced python executable is not Python3. At time I'm writing this, the image I get via docker run has :

# docker exec  /usr/bin/env python -V
Python 2.7.6

Are you attempting to modify the image?
On the client-side, as long as you (1) send valid JSON and as long as (2) contents is Base64 encoded, it'll work just fine.

I was referring to what happens on the clientside, specifically this example code in the README:
import requests

url = 'http://<docker_host>:<port>/'
data = {
    'contents': open('/file/to/convert.html').read().encode('base64'),
}
headers = {
    'Content-Type': 'application/json',    # This is important
}
response = requests.post(url, data=json.dumps(data), headers=headers)

# Save the response contents to a file
with open('/path/to/local/file.pdf', 'wb') as f:
    f.write(response.content)

This code doesn't work in Python 3 because json.dumps won't dump base64 encoded data to a JSON object. I couldn't figure out how to read the contents of the file and getting it into a JSON object in such a way that the docker container accepted it in Python 3 and just ended up doing it in Python 2.7 instead.

Could you try this please ?
data = {
    'contents': open('/file/to/convert.html').read().encode('base64').decode('utf-8'),
}

As i had the same issue, this worked for me with python3:
import json
import requests
from base64 import b64encode

url = 'http://<IP_ADDRESS>:4133'
input_html = 'input.html'
encoding = 'utf-8'

with open(input_html, 'rb') as open_file:
    byte_content = open_file.read()

base64_bytes = b64encode(byte_content)
base64_string = base64_bytes.decode(encoding)

data = {
    'contents': base64_string,
}
headers = {
    'Content-Type': 'application/json',    # This is important
}
response = requests.post(url, data=json.dumps(data), headers=headers)

# Save the response contents to a file
with open('out.pdf', 'wb') as f:
    f.write(response.content)

Thank you @sharoonthomas . That helped me alot


es:create:alias - Creates a lot of unassigned shards - reaches max shards limit upon reindex

Description
If the language pack extension is installed a lot of indices are created - which is fine by itself. However, upon calling es:create:alias elasticsearch has about 720 shards created instead of the 180 or so beforehand. And most of them are unassigned.  The assigned shards are still 180.
The elastic search cleanup task also does not remove those unassigned shards at least in a single node cluster (local development or not too many products to require multiple nodes).
I guess I could decrease the number_of_replicas in the elasticsearch configuration but as that is actually one large parameter I would first need to copy the full parameter config as that parameter cannot be merged as you just use a parameter with sub array keys instead of e.g. a Symfony configuration definition or multiple parameters but I think it would make sense to detect if the replication makes sense at all.
Maybe add env variable settings for number_of_shards and number_of_replicas.
Now with the default settings, a second reindex is not possible anymore as it would requirer more than 1000 shards.

Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.


Use cv::undistortPoints. Use image ROI.

This affects #50, #115 (because using cv::undistortPoints means arbitrary cameras can be used, as long as they have been calibrated).
FYI, using the ROI can speed up tracking calculations 10-20 fold depending on how much of the screen is encompassed by your ROI.
Don't merge this yet. It will likely break any HMD or DS4 tracking.
@HipsterSloth , can you implement these changes for those devices?
After you do that, you or I need to clean up some other things that I left because I didn't know how they would affect your tracking.
For instance, sometimes 3D objects are getting projected onto the image using the default coordinate system (0,0 in the corner), but other times they are getting projected onto the image using the coordinate system with 0,0 in the centre. I'm using the former (0,0 in corner) for all my debug drawings and for calculating the ROI, but you're using the latter for some things.
Because of this discrepancy, the way the camera intrinsics and distortion coefficients are retrieved is a bit haphazard. Some functions use one method, some use another. There doesn't appear to be much logic behind it. I would like to clean this up but I can't until the HMD and DS4 parts are finished.

I just checked in a fix for the ROI computation for DS4 and PSVR. The bounds computed appear to work for  the DS4. I can't test PSVR yet, because I still haven't finished implementing the optical tracking for that headset.
I didn't have a chance this evening to look into any of clean up tasks you mentioned.

FYI I'm doing the cleanup now.
There are some things I can't do.

Light bar tracker isn't using undistortPoints.
HMD tracking does not use ROIs or undistortPoints.

I'll post here when I'm done. We can still merge without the above changes when I'm done if you think you can't get to these anytime soon.

I'm happy to fill those pieces in tonight/tomorrow. I was planning on working on psmoveservice stuff  on and off all this weekend.

It's always nice to have a commit with 50% more deletions than additions.
So the general cleanup that I tried to do and I hope can be completed in the rest of the file is...

camera parameters are always retrieved with computeOpenCVCameraIntrinsicMatrix. I had to change the function signature because it has 2 outputs now.
always use undistortPoints and projectPoints where possible.

All of the manual handling of +screen_width/2 etc shouldn't be necessary.

Thanks for spearheading this cleanup and ROI work! I picked up the baton this evening and carried it a bit further.
The undistortion code had been applied to the DS4 and the PSVR point cloud tracking code. I also moved the ROI computation code into it's own function so that it could be called in both the controller and the hmd optical pose estimation code. While testing these changes I ran into issues with the final part of the ROI bounding box calculation being incorrect (never followed the controller). I tweaked it a be a bit more explicit in how it computes the extents and upper left hand corner of the ROI box. It appears to work correctly now for the PSMove and the DS4 (and only takes 10% CPU for two cameras!).
Here's all the remaining related work I can think of (some of this can happen after the merge to master):

Still need to clean up more of the manual +screen_width/2 code.

Are you ok with redefining CommonDeviceScreenLocation to mean a pixel location in the range [0,0]->[width, height]?
It currently is interpreted as [-width/2, -height/2]x[width/2, height/2]  and that's inconsistent with how it's being used now.

Need to get rid of the debug rendering in the config tool that draws the tracking projections since that's now effective done on the server
Need a client side toggle for showing/hiding tracking contour debug rendering
Need an option to not use ROI when starting a controller stream

When the camera poses haven't been computed yet (or are wrong) you can't use the pose filter's estimate to compute a reliable ROI anymore
Need to suppress ROI during the camera pose calibration tool

Need a debug switch to disable ROI in TrackerManagerConfig and maybe settable the client UI too
ROI window size should be tunable (rather than hard coded to x2
We need to play with state prediction

Pass a non-zero prediction time into ROI box computation
Currently it's pretty easy with the Kalman position filter active to overshoot the ROI window

We should move ROI testing into the tracking test tool (i.e. not rely on camera pose calibration tool)

Add camera ID label next to each frustum in the test tracking window
Add a button next to the tracker entry in the tracking status panel to show the video feed from that tracker
This video feed view will have the toggle for the ROI debug rendering

That all sounds good.
|Are you ok with redefining CommonDeviceScreenLocation to mean a pixel location in the range [0,0]->[width, height]?
Yes, that's good. As long as everything is using the same convention.
About the need to disable the ROI when the camera poses have not been calibrated yet, does this only apply to multi-cam setups? Because with a single camera, the default world-to-camera transform might not be correct, but it shouldn't break anything. The only problem, I think, would be when the position is estimated using incorrect triangulation. But anyway, I think many users are using multiple cameras so this is something that needs to be done before merging into master. BTW, disabling the ROI should be as easy as using the default full-frame ROI.
I think that and the remaining cleanup/consistency are all that needs to be done before merging into master. The rest can be done later.
I'll do a little work on PSMoveService tonight but not until after 9pm EST. I plan to work on Matlab stuff and maybe the CAPI a little so you don't have to worry about us stepping on each other's toes.

I did the following this evening:

Clean up the remaining of the manual +screen_width/2 code.
Got rid of the debug rendering in the config tool that draws the tracking projections since that's now effective done on the server
Added an controller_start_stream flag to disable ROI

This is used to suppress ROI during the camera pose calibration

Added TrackerManagerConfig global "disable_roi" option

This is currently true by default, specifically for the release I make this Sunday. I want people to opt into the new feature and test it out. As soon as we get any as-yet-unknown bugs/issues worked out I'll change the default to false.

Move ROI testing into the tracking test tool (i.e. not rely on camera pose calibration tool)

Added camera ID label next to each frustum in the test tracking window
Add a button next to the tracker entry in the tracking status panel to show the video feed from that tracker

With this work done I feel good about merging the ROI work to master. I still have a few more polish items and bug fixes to do for the release I want to put on on Sunday, but those are best done in master at this point. I'm going to merge this PR now in prep for tomorrows work.
BTW the remaining master branch clean-up work I was planning to do tomorrow was the following:

Fix controller index crash in SteamVR driver
Fix bug with temp exposure/gain override in distortion calibration
Fix bug with wrong controller model sometimes showing up in SteamVR
Actually update the focal lengths and distortion parameters in PS3EyeTracker::setOptionIndex (red/blue option setting)
Add warning/reset defaults option for distortion calibration tool when used on ps3eye trackers
Kalman filter tuning Q/R tuning weights in UI
Add proper DualShock4 controller models in SteamVR


Master branch contracts miss batch imports

Having deployed status-message contract on the production testnet, I am getting the following errors when call methods:
wasm execution failed with error: WasmerInstantiateError(\"11 link errors: (1 of 11) Import not found, namespace: env, name: promise_batch_create (2 of 11) Import not found, namespace: env, name: promise_batch_then (3 of 11) Import not found, namespace: env, name: promise_batch_action_create_account (4 of 11) Import not found, namespace: env, name: promise_batch_action_deploy_contract (5 of 11) Import not found, namespace: env, name: promise_batch_action_function_call (6 of 11) Import not found, namespace: env, name: promise_batch_action_transfer (7 of 11) Import not found, namespace: env, name: promise_batch_action_stake (8 of 11) Import not found, namespace: env, name: promise_batch_action_add_key_with_full_access (9 of 11) Import not found, namespace: env, name: promise_batch_action_add_key_with_function_call (10 of 11) Import not found, namespace: env, name: promise_batch_action_delete_key (11 of 11) Import not found, namespace: env, name: promise_batch_action_delete_account\")

It might be just a version inconsistency with the master testnet. Reverting to the v0.2.3 resolved the issue.

I don't think master has promise_batch_action_deploy_contract. It is only implemented in staging.

It does now.


Third-party nodes not loading when Dashboard hosted on proxy

Current Behavior
Details: https://discourse.nodered.org/t/d2-third-party-nodes-do-not-appear-blocked-due-to-forbidden-mime-text-html/88916
Reported error:
<EMAIL_ADDRESS>zostało zablokowane z powodu niedozwolonego typu MIME („text/html”).`

I suspect we have a hardcoded path when loading third-party nodes
Expected Behavior
Third party widgets should be loading as core nodes do.
Steps To Reproduce

Will need to setup an nginx proxy
Install a third-party widget

Environment

Dashboard version:
Node-RED version:
Node.js version:
npm version:
Platform/OS:
Browser:

Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

For the record, I use Cloudflare Zero Trust as a proxy and I don't see the problem there.

Link to an nginx config we've had working locally before: https://github.com/FlowFuse/node-red-dashboard/issues/526#issuecomment-1956334415

Other reporting that it works okay with nginx, and that Docker may be the problem: https://discourse.nodered.org/t/d2-third-party-nodes-do-not-appear-blocked-due-to-forbidden-mime-text-html/88916/8?u=joepavitt


Updates

This adds:

Automatically use <IP_ADDRESS>:11211 if no other servers set
Automatically detect heroku settings. Also treat multiple memcache servers on heroku as one 'logical' server, because that's how your app sees it
If env var AMNESIA_CREDS=user:pass is set, require basic auth with these creds

Note - documentation needs to be updated to reflect these changes.

:+1:

Needs more PBR.


Signature in status line doesn't seem to work in bare config. What is missing?

I was going to replace echodoc.vim plugin using lsp_signature.nvim. I followed exactly as documentation says, and yet It doesn't work. (this is the minimal config (init.lua)). (check out echoDoc function)
I think it's missing somethings out of the documentation because I have pasted the code inside LunarVim config file and it does work..

You can take a look of my statusline setup here:
https://github.com/ray-x/nvim/blob/85b37a62fb26702897be94ca156e099caa3ffa61/lua/modules/ui/eviline.lua#L98-L108

replaced my code with yours. still doesn't work. Other features work

installed bare treesitter as well: no results

tried to lua print(require("lsp_signature").status_line(100).label), still no result

well, maybe we try this:

your lsp is up and running, LspInfo
you park your cusror inside a function, e.g.       funcname(arg1, arg2, arg3)  you park your cursor on r of arg1
lua print(require("lsp_signature").status_line(100).label)

 Language client log: /home/matteo/.local/state/nvim/lsp.log
 Detected filetype:   python

 1 client(s) attached to this buffer:

 Client: pyright (id: 1, pid: nil, bufnr: [1])
 	filetypes:       python
 	autostart:       true
 	root directory:  Running in single file mode.
 	cmd:             pyright-langserver --stdio

 Configured servers list: clangd, pyright, sumneko_lua

lua print(require("lsp_signature").status_line(100).label) gave me no result

I tried to run the command even on LunarVim; :LspInfo gave me the same result but sumneko_lua and clang weren't in  Configured servers list (due to lazy loading or better config maybe)
I'm running on Fedora's spin i3, I kindly ask you to "reproduce" my environment on  Virtual Box for example. As I already said, I followed the doc, therefore something is missing from there. Ty very much!

I made it! I just had to update "updatetime" value to 0.3 sec. Now it works like a charm!
for anyone interested, just checkout my "echoDoc" branch (https://github.com/0x0DEADBEE/dotfiles/tree/echoDoc)

what was your setup of update time? Mine is 1sec.

it was 3 sec. I set 0.3 sec

ok, 3s is a bit too long. That might be why you do not see the updated info.


chore(deps): update dependency postcss to v6.0.23

This PR contains the following updates:

Package
Type
Update
Change
References

postcss
devDependencies
patch
6.0.19 -> 6.0.23
homepage, source

Release Notes

postcss/postcss
v6.0.23
Compare Source

Fix parsing nested at-rules without semicolon, params, and spaces.
Fix docs (by Kevin Schiffer and Pat Cavit).

v6.0.22
Compare Source

Fix Node#prev and Node#next on missed parent.

v6.0.21
Compare Source

Rename Chinese docs to fix yarnpkg.com issue.

v6.0.20
Compare Source

Better error message on null as input CSS.

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

PR has been edited
:construction_worker: This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over then you can add the label rebase to this PR and Renovate will reset/recreate it.


EntryPointNotFoundException: MpGpuResourcesGlContext

Hello @homuler !
First of all I use this to post the issue as well as to ask if you have an email you can share with me, I would like to contact you.
Going to the point, I updated by recalling make android_arm and make install, because I found out mediapipe updated hand graphs for more speed.
Now running the app gives this error:

Maybe the update has changed something?
Thanks
Bruno

Will you pull the latest commit and try again?
At least, current source does not include the entry point called MpGpuResourcesGlContext.

if you have an email you can share with me, I would like to contact you.

If you're OK, I'm in the official slack and you can DM to me there.
https://google.github.io/mediapipe/#community
By the way, I have not updated MediaPipe version yet (using v0.7.11 now), so I think the performance has not changed.

Thanks for such a fast answer! I'll dm you!

Now it uses MediaPipe 0.8.0.

Ok I will try that! Thanks
good job!


image not visible in new created content

Describe the bug
On creating a new event/news page, the image uploaded is not displayed.
To Reproduce

Go to the https://6.demo.plone.org/
After logging in, select the Add icon from the sidebar.
Create a new event/ news.
Add title, description and upload an image.
The image uploaded is not visible. Neither on the list of events, nor in the detailed description of the content.

Expected behavior
The uploaded image from the admin panel must be visible.
Screenshots
If applicable, add screenshots to help explain your problem.

Software (please complete the following information):

OS: macOS Monterey 12.1
Browser: Chrome
Volto Version : Current hosted version.
Plone Version : Current hosted version.
Plone REST API Version : Current hosted version.

Additional context
Add any other context about the problem here.

IMHO the lead image should go and be replaced by the new preview_image. The lead image is a concept from Classic that does not make much sense in Volto. cc @plone/volto-team

i think in content detail we have to display 'image' field, and in listing or other summary block type, we have to use PreviewImage component that displays 'preview_image' field if it's setted, or 'image' field


Add a warning to README.md

Also change the section about swap space checking for SAP NetWeaver to reflect the code change in this area.

no code change -> merging without review


Unnecessary semicolons are nnecessary

Hi @BenPope, I'm your friendly neighborhood Microsoft Open Technologies, Inc. Pull Request Bot (You can call me MSOTBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSOTBOT;

Great! This has been merged. thanks!


give different answer for the same question between llama.cpp‘s main.exe and this project

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[x] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
[x] I carefully followed the README.md.
[x] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
[x] I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior
Please provide a detailed written description of what you were trying to do, and what you expected llama-cpp-python to do.
what i am trying to do: i want the model translate a sentence from chinese to english for me.
when i call the model with original llama.cpp with cmd
main -m ../llama.cpp/zh-models/7B/ggml-model-q4_0.bin --color -f prompts/alpaca.txt -ins -c 2048 --temp 0.2 -n 256 --repeat_penalty 1.3

the model works fine and give the right output like:

notice that the yellow line Below is an ...... is the content for a  prompt file , the file has been passed to the model with -f prompts/alpaca.txt and i can't find this param in this project thus i can't tell whether it is the reason for this issue.
Current Behavior
when i run the same thing with llama-cpp-python like this:
# gpt-manager.py
from llama_cpp import Llama  # type:ignore

class GPTManager(object):

    def __init__(self, n_thread=4):
        self._n_thread = n_thread

    def gen_response(self, user_input: str, model_path: str):
        promote = user_input.strip()
        if len(promote) > 0:
            llm = Llama(
                model_path=model_path, n_threads=self._n_thread)
            user_ctx = "Q:" + promote + " A: "
            output = llm(user_ctx, max_tokens=256, stop=[
                         "Q:"], echo=True, temperature=0.2)
            print(output)
            return output["choices"][0]["text"].replace(user_ctx, "") # type:ignore
        else:
            return "Input Can Not Be Empty!"

if __name__ == "__main__":
    GPT = GPTManager()
    u_in = """
    将下边的句子翻译成英文"一个可爱的女孩在海滩上奔跑"
    """
    m_path = "./ggml-model-q5_1.bin"
    opt = GPT.gen_response(u_in,m_path)
    print(opt)

the output were:

you can see that in this way, the model just return the content to me instead of translate it.
Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.

Physica

Linux xxxxx 5.15.0-73-generic #80~20.04.1-Ubuntu SMP Wed May 17 14:58:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ python3 --version `3.9.0`
$ make --version  `Make 4.2.1`
$ g++ --version `g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0`

Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.

step 1:  just run it as above

it worked but not as the way i want, so i don't think the questions below will help thus remove them.
I can totally understand that models are bulid on probability things so they may give answers with little differentce but i still want to get some help here.
thanks in advance.

$ python -m llama_cpp.server --help
usage: __main__.py [-h] [--model MODEL] [--model_alias MODEL_ALIAS] [--n_ctx N_CTX]
                   [--n_gpu_layers N_GPU_LAYERS] [--n_batch N_BATCH]
                   [--n_threads N_THREADS] [--f16_kv F16_KV] [--use_mlock USE_MLOCK]
                   [--use_mmap USE_MMAP] [--embedding EMBEDDING]
                   [--last_n_tokens_size LAST_N_TOKENS_SIZE] [--logits_all LOGITS_ALL]
                   [--cache CACHE] [--cache_size CACHE_SIZE] [--vocab_only VOCAB_ONLY]
                   [--verbose VERBOSE]

options:
  -h, --help            show this help message and exit
  --model MODEL         The path to the model to use for generating completions.
  --model_alias MODEL_ALIAS
                        The alias of the model to use for generating completions.
  --n_ctx N_CTX         The context size. (default: 2048)
  --n_gpu_layers N_GPU_LAYERS
                        The number of layers to put on the GPU. The rest will be on the
                        CPU. (default: 0)
  --n_batch N_BATCH     The batch size to use per eval. (default: 512)
  --n_threads N_THREADS
                        The number of threads to use. (default: 16)
  --f16_kv F16_KV       Whether to use f16 key/value. (default: True)
  --use_mlock USE_MLOCK
                        Use mlock. (default: True)
  --use_mmap USE_MMAP   Use mmap. (default: True)
  --embedding EMBEDDING
                        Whether to use embeddings. (default: True)
  --last_n_tokens_size LAST_N_TOKENS_SIZE
                        Last n tokens to keep for repeat penalty calculation. (default:
                        64)
  --logits_all LOGITS_ALL
                        Whether to return logits. (default: True)
  --cache CACHE         Use a cache to reduce processing times for evaluated prompts.
                        (default: False)
  --cache_size CACHE_SIZE
                        The size of the cache in bytes. Only used if cache is True.
                        (default:<PHONE_NUMBER>)
  --vocab_only VOCAB_ONLY
                        Whether to only return the vocabulary. (default: False)
  --verbose VERBOSE     Whether to print debug information. (default: True)

still the same output, the main code show below
llm = Llama(model_path=model_path, n_threads=self._n_thread,n_ctx=2048)
user_ctx = "Q:" + promote + " A: "
output = llm(user_ctx, max_tokens=256, stop=["Q:"], echo=True, temperature=0.2)

but i can't find the other two param named -c  and -ins
here are the output of main.exe -h
usage: ./main [options]

options:
  -h, --help            show this help message and exit
  -i, --interactive     run in interactive mode
  --interactive-first   run in interactive mode and wait for input right away
  -ins, --instruct      run in instruction mode (use with Alpaca models)
  --multiline-input     allows you to write or paste multiple lines without ending each in '\'
  -r PROMPT, --reverse-prompt PROMPT
                        halt generation at PROMPT, return control in interactive mode
                        (can be specified more than once for multiple prompts).
  --color               colorise output to distinguish prompt and user input from generations
  -s SEED, --seed SEED  RNG seed (default: -1, use random seed for < 0)
  -t N, --threads N     number of threads to use during computation (default: 8)
  -p PROMPT, --prompt PROMPT
                        prompt to start generation with (default: empty)
  -e                    process prompt escapes sequences (\n, \r, \t, \', \", \\)
  --prompt-cache FNAME  file to cache prompt state for faster startup (default: none)
  --prompt-cache-all    if specified, saves user input and generations to cache as well.
                        not supported with --interactive or other interactive options
  --prompt-cache-ro     if specified, uses the prompt cache but does not update it.
  --random-prompt       start with a randomized prompt.
  --in-prefix STRING    string to prefix user inputs with (default: empty)
  --in-suffix STRING    string to suffix after user inputs with (default: empty)
  -f FNAME, --file FNAME
                        prompt file to start generation.
  -n N, --n-predict N   number of tokens to predict (default: -1, -1 = infinity)
  --top-k N             top-k sampling (default: 40, 0 = disabled)
  --top-p N             top-p sampling (default: 0.9, 1.0 = disabled)
  --tfs N               tail free sampling, parameter z (default: 1.0, 1.0 = disabled)
  --typical N           locally typical sampling, parameter p (default: 1.0, 1.0 = disabled)
  --repeat-last-n N     last n tokens to consider for penalize (default: 64, 0 = disabled, -1 = ctx_size)
  --repeat-penalty N    penalize repeat sequence of tokens (default: 1.1, 1.0 = disabled)
  --presence-penalty N  repeat alpha presence penalty (default: 0.0, 0.0 = disabled)
  --frequency-penalty N repeat alpha frequency penalty (default: 0.0, 0.0 = disabled)
  --mirostat N          use Mirostat sampling.
                        Top K, Nucleus, Tail Free and Locally Typical samplers are ignored if used.
                        (default: 0, 0 = disabled, 1 = Mirostat, 2 = Mirostat 2.0)
  --mirostat-lr N       Mirostat learning rate, parameter eta (default: 0.1)
  --mirostat-ent N      Mirostat target entropy, parameter tau (default: 5.0)


Setup code linting with editor config, pre commit hooks

[ ] code formatting checks
[ ] pre commit checks for linting
[ ] pre commit checks for formatting
[ ] commit message format

modules

[ ] Husky
[ ] Commitizen
[ ] commitlint (https://blogs.halodoc.io/code-version-best-practices-with-clean-commit-formats/)
[ ] license
[ ] docker
[ ] prettier
[ ] eslint
[ ] lint-staged

Ref:
https://www.gitkraken.com/blog/husky-git-hooks
https://blogs.halodoc.io/code-version-best-practices-with-clean-commit-formats/
https://dev.to/davipon/add-commitint-commitizen-standard-version-and-husky-to-sveltekit-project-14pc
https://blogs.halodoc.io/code-version-best-practices-with-clean-commit-formats/


Correct connection retrieval to allow exception handling.

Additionally, add test to cover the use case.

Okay, now I finally got that tomcat update change working correctly... sheesh.


Create Figma templates/examples of common use cases

We got a suggestion that we should create Figma examples of different use cases that can be copied by those that are interested in testing the design system. They should be based on common pages. They should easily be able to brand these examples.
Examples

Front page / landing page
Form
Article
Complex/compact views (Often dashboard/table)

@Febakke  Do you still think this should be part of V1?


change the name of the binary file

I missed the bin file which is still licenser which causes that name to
be installed as the binary executable when published.
I've also updated the version as I've already published 0.1.0.

Coverage remained the same at 91.736% when pulling bd46360044d0603db6354d274d09c293e09febad on danbev:update-name-of-bin into 765758ab05f9d42758c285228b0a849f7e6b2ca8 on bucharest-gold:master.


Changes in field names in the Edge updates API

The responses of the Edge updates API have changed recently:
https://edgeupdates.microsoft.com/api/products/
The following JSON fields are different now:

ArtifactName -> artifactName
Hash -> hash
HashAlgorithm -> hashAlgorithm
Location -> location
SizeInBytes -> sizeInBytes

As a result, programmatic clients of this API, like Selenium Manager, experienced a problem while parsing the response. See:
https://github.com/SeleniumHQ/selenium/issues/14851
Is it possible to roll back these fields to use the previous names (ArtifactName, etc.)?

+1
That would allow all clients of Selenium Manager (including previous versions) to fix the issue, instead of upgrading to a new version of Selenium that would account for that change.


[ISSUE #4857] Fix broker can't auto register to controller again

Make sure set the target branch to develop
What is the purpose of the change
Fix #4857
Brief changelog

Fix broker can't auto register to controller again

Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

Merging #4862 (cb56316) into develop (96fd4f5) will decrease coverage by 0.14%.
The diff coverage is 25.00%.

@@              Coverage Diff              @@
##             develop    #4862      +/-   ##
=============================================
- Coverage      44.80%   44.65%   -0.15%
+ Complexity      7637     7623      -14
=============================================
  Files            982      982
  Lines          68253    68258       +5
  Branches        9023     9025       +2
=============================================
- Hits           30580    30482      -98
- Misses         33884    33988     +104
+ Partials        3789     3788       -1

Impacted Files
Coverage Δ

...org/apache/rocketmq/broker/out/BrokerOuterAPI.java
18.56% <0.00%> (-0.04%)
:arrow_down:

...he/rocketmq/broker/controller/ReplicasManager.java
44.20% <28.57%> (-0.78%)
:arrow_down:

.../broker/subscription/SubscriptionGroupManager.java
68.79% <0.00%> (-14.19%)
:arrow_down:

...n/java/org/apache/rocketmq/test/util/StatUtil.java
16.19% <0.00%> (-14.09%)
:arrow_down:

...org/apache/rocketmq/common/stats/StatsItemSet.java
41.79% <0.00%> (-8.96%)
:arrow_down:

...va/org/apache/rocketmq/logging/inner/Appender.java
29.21% <0.00%> (-7.87%)
:arrow_down:

...ache/rocketmq/broker/topic/TopicConfigManager.java
59.03% <0.00%> (-3.06%)
:arrow_down:

...ent/impl/consumer/DefaultLitePullConsumerImpl.java
67.66% <0.00%> (-2.82%)
:arrow_down:

.../org/apache/rocketmq/store/ha/DefaultHAClient.java
58.46% <0.00%> (-2.57%)
:arrow_down:

...rocketmq/client/impl/factory/MQClientInstance.java
45.64% <0.00%> (-1.39%)
:arrow_down:

... and 20 more

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

Coverage decreased (-0.1%) to 48.938% when pulling cb56316e1a8ce6608cbccba9fa832074e750cea8 on mxsm:rocketmq-4857 into 96fd4f52e09536e2e8487c701cc7846b0529b04e on apache:develop.

Coverage decreased (-0.1%) to 48.938% when pulling cb56316e1a8ce6608cbccba9fa832074e750cea8 on mxsm:rocketmq-4857 into 96fd4f52e09536e2e8487c701cc7846b0529b04e on apache:develop.


Needs --c++14 option to compile with Seqan 2.2

The Cmakelist.txt file needs to be changed to c++14 for 2.2 seqan. It's still on c++11

Thank you for the hint. I included the c++14 flag.


small variant of anarchy logo

OS
small variant of anarchy
Ascii

You have to provide the logo source.

Seems that this distro is dead.
I don't think I want to spend time for a dead project. If you create one, feel free to reopen this issue.


Fix region for kyma CR

Description
Changes proposed in this pull request:

Fix the issue that the region value is missing when it's assigned to Kyma CR as the region is from operation.Region and this operation.Region currently is from operation.RuntimeOperation.Runtime.Region. it's missing during provisioning.
The region is actually assigned to requestInput.ClusterConfig.GardenerConfig.Region already in the step Create_Runtime_Without_Kyma and this requestInput.ClusterConfig.GardenerConfig.Region is assigned from r.provisioningParameters.Parameters.
The r.provisioningParameters.Parameters is set in operation.InputCreator.SetProvisioningParameters from operation.ProvisioningParameters. So here use the region from operation.ProvisioningParameters.Parameters.Region directly.

Related issue(s)
related to the issue

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

/test pre-kyma-environment-broker

operation.RuntimeOperation.Runtime.Region is not set in the provisioning step. On the other hand, provisioning parameters could not contain the region - in such case the default one is taken. In my opinion it does not make sense.
@jaroslaw-pieszka  is taking care of this issue
The first solution is: The create_runtime_without_kyma step knows the region (which is stored in the instance table). We can update the operation in that step - save the region also in the operation (but in the InstanceDetails). InstanceDetails are always copied to the new operation, so after provisioning, every operation will have it.
Second solution: If we want to have region for existing SKRs, we should copy the region from the Instance in constructors (NewUpdateOperation etc.). The constructors have instance as argument so we can copy the region. After such change every new operation will contain the region and everytime when the apply kyma step is executed, the label will be applied

Hi @piotrmiskiewicz , the create_runtime_without_kyma step knows the region (which is stored in the instance table). this requestInput.ClusterConfig.GardenerConfig.Region is copied from r.provisioningParameters.Parameters. and this r.provisioningParameters.Parameters is copied from operation.ProvisioningParameters. So is operation.ProvisioningParameters also stored in storage?

@vvxxvvxx @vvxxvvxx why not always take it from operation.LastRuntimeState.ClusterConfig.Region as Create_Runtime step persist it there?

@vvxxvvxx @piotrmiskiewicz why not always take it from operation.LastRuntimeState.ClusterConfig.Region as Create_Runtime step persist it there?

When creating a new type operation, seems it will always get instanceStorage.GetByID(instanceID) first for the info for Operation. we could see this for deprovisioning operation, update operation and orchestration operation, ect..
but this internal.Instance struct doesn't contain RuntimeState. so when creating a new type operation, this RuntimeState is not assigned to Operation in the first place. But the internal.Instance contains ProvisioningParameters and seems it's always assigned to Operation.
and during the provisioning, this persisted requestInput.ClusterConfig.GardenerConfig.Region is also copied from provisioningParameters.Parameters ( operation.ProvisioningParameters).
so i think we could use *operation.ProvisioningParameters.Parameters.Region here directly in this PR..

Fixed in https://github.com/kyma-project/kyma-environment-broker/pull/123


Better System Menu

For now, pressing the M button only gives you the option to restore the CarThing. There should be a list of options instead, for example restore, sleep, etc.

Here is the updated design:
Will be updated further with more actions as needed!