Within operator as typeguard for union types

Search Terms

Type Guard
Union
Array
includes
within
Suggestion
To include a within operator to check if a variable is within a union type.
Examples/use Cases
Example 1:
type Vowels = 'a' | 'b' | 'c' | 'd' | 'e'

function isVowel(str: string) {
   return str within Vowels
}

this could be transpiled to
function isVowel(str: string) {
   return [ 'a', 'b', 'c', 'd', 'e' ].includes(str)
}

Example 2:
enum VehicleType {
   Car,
   Motorbike,
   Train,
   Plane
}

interface Car {
   vehicleType: VehicleType.Car,
   ...
}

interface Motorbike {
   vehicleType: VehicleType.Motorbike,
   ...
}

interface Train {
   vehicleType: VehicleType.Train,
   ...
}

interface Plane {
   vehicleType: VehicleType.Plane,
   ...
}

type Vehicle = Car | Motorbike | Plane | Train

type RoadVehicle = Car | Motorbike

function isRoadVehicle(vehicle : Vehicle) {
   if (vehicle.vehicleType within RoadVehicle['vehicleType']) {
      return true
   } else {
     return false
   }
}

Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
(Would depend on elements of the union) This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
(Possibly against non-goal 5) This feature would agree with the rest of TypeScript's Design Goals.

We don't do features that don't meet the design guidelines, especially type-directed emit.


How to update laraadmin

Is there any command for update laraadmin I have used la:update doesn't work

@azarzaza you might use git clone inside /vendor/dwij to clone master repo

Use this documentation: http://laraadmin.com/docs/1.0/upgrades

I was use the documentation when upgrade they make new files and some of my project files are deleted I am using git on my local machine I am working with project in local I have lost my some code plz how to update the new change in my project without data loss

You should use Visual Studio Code Editor to do so. It properly shows
deleted files and manipulated file. It becomes easy to differentiate. Try
that. If you are using git and commited your changes before upgrade. No
data will be lost. You can simply undo deletion of old files which are
important. In new LaraAdmin we have moved the Models in app/Models folder
except 3 - Users, Roles, Permissions. You should move your old Models
inside that folder and change package path in them as well as from
references.
Regards
On 21-Nov-2016 6:27 AM, "azarzaza"<EMAIL_ADDRESS>wrote:

I was use the documentation when upgrade they make new files and some of
my project files are deleted I am using git on my local machine I am
working with project in local I have lost my some code plz how to update
the new change in my project without data loss
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/dwijitsolutions/laraadmin/issues/114#issuecomment-261820154,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AET5VFHdJGnhUzyzeJL8cRxgGcx2l-Fbks5rAOyOgaJpZM4Ky3x-
.


Script works, but returns low number of listings

First of all, thanks for the great project!
I have been able to get some data, but I'm just wondering what's the main issue as I'm only getting a few listings from Helsinki. When I am running python airbnb.py -sb 1 I get the following result

INFO    Retrieved logged progress: None, None guests, price None-None
INFO            quadtree node []
INFO            median node []
INFO    Bounding box: [60.297839, 25.254485, 59.922489, 24.782876]
INFO    ======================================================================
INFO    Survey 1, for helsinki
INFO    Searching by bounding box, max_zoom=10
INFO    ----------------------------------------------------------------------
INFO    Rectangle calculated: [60.297839, 25.254485, 59.922489, 24.782876]
INFO    Searching rectangle: zoom factor = 0, node = []
INFO    Page 01 returned 00 listings
INFO    Results: 1 pages, 0 new rooms
INFO    Finishing survey 1, for helsinki

I ran this manually a few times and it mostly just returns nothing like above and at most something like 40 results. This seems a bit odd, as the data should contain thousands of listings. Bounding box is correct, as I am getting correct data in PostGIS, but not much.
Did I just read the docs badly, or is there something that's not working at AirBNB side?

Hey tjukanovt,
I got the same issue, running a search for Munich. However I also got the information that it's due to a connection error. Yet I don't know how to solve it. But I will research myself and also here are very helpful people around :-) Good luck!

INFO    Retrieved logged progress: None, None guests, price None-None
INFO    	quadtree node []
INFO    	median node []
INFO    Bounding box: [48.24822, 11.722875, 48.061602, 11.360796]
INFO    ======================================================================
INFO    Survey 2, for Muenchen
INFO    Searching by bounding box, max_zoom=6
INFO    ----------------------------------------------------------------------
INFO    Rectangle calculated: [48.24822, 11.722875, 48.061602, 11.360796]
INFO    Searching rectangle: zoom factor = 0, node = []
WARNING Network request exception 0: connectionError
WARNING Network request exception 1: connectionError
INFO    Page 01 returned 00 listings
INFO    Results: 1 pages, 0 new rooms
INFO    Finishing survey 2, for Muenchen

Hi tjukanovt and tanjavollmer: I think I broke something for the case where there is no set of proxy addresses in use. Unfortunately I doubt that I will be able to look at the code again for a week or so. If I get time tomorrow I will see if I can put a fix out, but it seems unlikely right now...

Hi! Thanks both for the replies. I will also try to sort this out when I have a moment. Tom you suggest that a workaround would be to just use a proxy address?

Update: I added two proxy addresses to the config, but the results are even more weird. I run the same command as above, with the same bounding box, but get ten results from around the world and none of them are in Helsinki.

Hey tjukanovt.
I got the same issue here. When I run the survey without a proxy, I get no results. When I run the survey with a Proxy (-list) I get either ConnectionErrors or a mere result of one page with about 10 listings max. from everywhere but Munich.
Any ideas out there to solve this? Thanks :-)

At work right now, but I'll respond this evening (Canada time).

I've posted a new version, which needs a bit more user work to get started. I'm using an API that returns JSON instead of HTML and it seems more consistent (I cannot get the HTML code working at all), but you need to collect a key from the site and enter it in your config file -- there are instructions in example.config. See the README for more.
There may still be annoying bugs: as data collection is time sensitive I thought I would post the new version, but it is not well tested.
Not sure how long I'm going to continue this project...


Detect and fix broken links

Depends on #3744
Please only merge after the depending PR has been merged and this PR has been rebased on top of main.

I essentially moved the code of gatsby-remark-check-links into this repository and made some changes. Reason for that is that the original plugin has some flaws that make it incompatible with our website and that the plugin is not maintained anymore anyways.
Changes

Add plugin to check for the validity of links used between markdown pages
The slug field is now the actual slug (before: /hotchocolate/get-started/, now: /docs/hotchocolate/get-started)
Centralize slug generation (page creation now uses the generated slugs)
Fix dead links in the documentation and blog posts

The check for dead links adds approximately 70 seconds of build time (when there is no cache, e.g. running in CI, with cache there is almost no overhead).

/AzurePipelines run

@tobias-tengler could you please solve the conflicts so I can start the review 😄

Already in the process of doing so :wink:

Okay I've noticed two issues with this just now.

When running yarn build it works as expected. But with yarn start it doesn't since the slug is not present on the fields.
With yarn start it also struggles with .md files that aren't in the docs.json file. I think that's because I check for each file with an .md extension and not just the valid ones.

Will look into these problems tomorrow.

Okay I can't get it to work with yarn start. This is due to the "lazy" nature of gatsby in development. Not all pages are created at the same time, causing issues when trying to validate links. The markdown plugin is also always invoked before a slug for the node is generated, therefor we don't know under which URL the current markdown document will be available. This is not an issue with yarn build.
I think it is fine like it is though. It will discover broken links in CI and when yarn build is invoked locally and that's better than no indication at all.
I also significantly improved the performance in comparison to my initial attempt, by splitting the gathering of links and validation of those links into two separate local plugins.

@tobias-tengler could you please fix the conflict then we could merge 👍

@rstaib done! ✅

/AzurePipelines run

Not sure why the Website pipeline also ran 17min this time. It seems to have been stuck on the onPostBuild, which this PR doesn't modify. I tested locally again and the link validation is definitely not at fault here. I would attribute it to degraded Pipeline performance of DevOps at the moment...

@tobias-tengler Let's see if the perf issue is persistent and tackle it then in another issue.

Happened again in the pipeline, while other PRs ran with a similar time. I'm not yet sure what's causing this, the link validation is already done, once the stalling hits. It might be related to the generation of the blog feeds. I'll look further into it tomorrow.


NO-JIRA: nodekubeconfigcontroller: set ownership component for node kubeconfigs

Kubeconfigs are parsed as TLS artifact registry sources, so secrets containing kubeconfigs should have necessary annotations

/cc @sanchezl @p0lyn0mial

/lgtm


SEGVs raised when accessing a field of an non-existant structure

The following example illustrates a segfault when foo::bar is dumped:
$ gdb -q ./src/repl/stu
Reading symbols from ./src/repl/stu...done.
(gdb) r -Lsrc/stu -r
Starting program: /home/mikey/workspace/stu/src/repl/stu -Lsrc/stu -r
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.25-13.fc26.x86_64
stu> foo::bar

Program received signal SIGSEGV, Segmentation fault.
0x00000000004053f3 in Type_field_vector (stu=0x615010, t=1) at types.c:89
89          return stu->type_registry.field_vectors[t - SV_BUILTIN_TYPE_END];
Missing separate debuginfos, use: dnf debuginfo-install libedit-3.1-17.20160618cvs.fc26.x86_64 ncurses-libs-6.0-8.20170212.fc26.x86_64
(gdb) bt
#0  0x00000000004053f3 in Type_field_vector (stu=0x615010, t=1) at types.c:89
#1  0x000000000040541c in Type_field_index (stu=0x615010, t=1, field=0x616740) at types.c:95
#2  0x00000000004041ef in Sv_eval_structure_access (stu=0x615010, env=0x631cc0, x=0x616660) at sv.c:710
#3  0x0000000000404316 in Sv_eval (stu=0x615010, env=0x631cc0, x=0x616660) at sv.c:746
#4  0x000000000040441d in Sv_eval_list (stu=0x615010, env=0x631cc0, x=0x6164a0, new_env=0x7fffffffded8) at sv.c:773
#5  0x0000000000405732 in try (stu=0x615010, env=0x631cc0, to_eval=0x6164a0, catch=0x405ab6 <Try_default_catch_handler>, catch_arg=0x0, eval=0x40434c <Sv_eval_list>, updated=0x7fffffffded8)
    at try.c:40
#6  0x0000000000405ab0 in Try_eval_list (stu=0x615010, env=0x631cc0, to_eval=0x6164a0, catch=0x405ab6 <Try_default_catch_handler>, catch_arg=0x0, updated=0x7fffffffded8) at try.c:123
#7  0x000000000040227b in eval (stu=0x615010, arg=0x659880 "foo::bar\n", parse=0x402196 <Stu_parse_buf>, base=0x631cc0, updated=0x7fffffffded8) at stu.c:214
#8  0x0000000000402388 in Stu_eval_buf_in_env (stu=0x615010, buf=0x659880 "foo::bar\n", base=0x631cc0, updated=0x7fffffffded8) at stu.c:241
#9  0x00000000004016c2 in main (argc=3, argv=0x7fffffffdff8) at main.c:80
(gdb) quit
A debugging session is active.

        Inferior 1 [process 12485] will be killed.

Quit anyway? (y or n) y

This has been fixed in 1e81383; regression test added.


Re-enable esy in CI job

The originally linked issue is kinda resolved
https://github.com/esy/esy/issues/1282
Let's try it

Confirmed, thanks!


Don't auto-insert spaces, unsticky inline styles

This removes the functionality that would automatically insert a space. We needed that because otherwise the inline style would be "sticky", i.e. it would continue to type in e.g. bold if you made bold text.
I now found a proper solution that makes inline styles aren't sticky right after typing them, so I removed the auto-insertion of spaces. This feels soooo goooooood!
Demo:
Live demo to test: https://public-wiuohfhevw.now.sh

/cc @uberbryn @brianlovin for typing review


Unable to reconstruct function type from Parameters and ReturnType

TypeScript Version:  3.4.0-dev.20190202

Search Terms:

2322
Parameters ReturnType

Code
function wrap<Fn extends (...args: any) => any>(fn: Fn): Fn {
  type P = Parameters<Fn>;
  type R = ReturnType<Fn>;
  return function(...args: P): R {
    return fn(...args);
  };
}

Expected behavior:
I would expect this to pass the type checker. I'm returning a function with the same parameter and return type as Fn, so I'd expect it to be assignable to Fn.

Playground Link:
playground link
Related Issues:
The full context is that I want to write a wrapper which memoizes just the last invocation of a function. I wound up with:
export function memoizeOne<Fn extends (...args: any) => any>(fn: Fn): Fn {
  type P = Parameters<Fn>;
  type R = ReturnType<Fn>;
  let lastArgs: P = null;
  let lastResult: R;

  return function(...args: P) {
    if (shallowEqual(args, lastArgs)) {
      return lastResult;
    }

    lastArgs = args;
    lastResult = fn(...args);
    return lastResult;
  } as any;  // XXX
}

but I don't think that as any should be needed.

The contract associated with a function of type <Fn extends (...args: any) => any>(fn: Fn): Fn is very strong; the only real way to return a value of type Fn is to return the value you were given.
If a caller were to pass a function with properties then the type suggests they would get back a value with the same properties: the wrap function does not do this.
interface A {
  prop: number;
  (x: number): number;
}
declare const a: A;
const p: number = wrap(a).prop;

I think the best bet is to be directly parametric in the input and output types.
function wrap<P extends any[], R>(fn: (...args: P) => R): (...args: P) => R {
  return function(...args: P): R {
    return fn(...args);
  };
}


HTML

HTML
User Story
As a Bootcamp student, i want the prework notes to be structured in the website so that i can easily find and read information.
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed

User Story Completed.


Bad check during making new wallet

On the moment if you make a new wallet you get a 24 word seed phrase. After your write it down you only have to check 4 out of 24. Because you dont need to check 24 out of 24 , you dont know if you didnt make a mistake. This is what happend to me. I have 24 out of 24 words and all are valid words, but I can't recover my wallet. I probably messed up the order.
 But still it would be better if you need to check all 24 words. I probably messed up the order and lost my assets. This could have been prevented if I had need to check all 24 words instead 4 out of 24. 6 cornucopias nft's and 950 ada is what I lost. This was 50% off all my crypto. Still it's my responsibility to check the phrase 1000 times before I go to the next step. So this is still my fault. But I want to help. If someone needs to check all 24 words by default then the chance that someone will loose his assets is much smaller. Hope you will add this.

I solved the problem. I had a typo in 1 of the words. This could have been prevented. So my comment above still stands. Let people type all 24 words, or look at the same system as eternl wallet.
I used eternl to find the typo. I typed in my seed phrase.  i looped threw every word and filled in the first 2 letters of the original word. Eternl gave me all suggestions what is possible with those 2 letters. I tried all of them and if I did not find it, I would set back the original word. So I took the first word, deleted it and filled in the first 2 letter of the original word and then try every suggestion eternl gave me. If no wallets were shown, I would fill in the original word and then do the same with the second word. and then the third and was willing to loop threw all 24. I did this until I found my wallet back.

Hello, please confirm and write it down this time


refactoring jp.co.yahoo.yosegi.blockindex

What is the necessity of this update? What is updated?
refactoring switch struct to map dispatcher
How did you do the test? (Not required for updating documents)
path trough the maven test

LGTM


Bot emulator does not send data from adaptive card inputs on submit

The Bot Emulator version 3.5.29 does not send data from input fields with a submit action on an adaptive card. Given a form that looks like:
{
    "contentType": "application/vnd.microsoft.card.adaptive",
    "content": {
      "type": "AdaptiveCard",
      "body": [
        {
          "type": "ColumnSet",
          "columns": [
            {
              "type": "Column",
              "size": 1,
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Enter a search term",
                  "weight": "bolder",
                  "size": "large"
                },
                {
                  "type": "Input.Text",
                  "id": "term",
                  "placeholder": "Science, philosophy, art...",
                  "style": "text"
                }
              ]
            }
          ]
        }
      ],
      "actions": [
        {
          "type": "Action.Submit",
          "title": "Search",
          "data": {
            "type": "search"
          }
        }
      ]
    }
  }

The card renders as I would expect in the Bot Emulator. However, when I enter a string, like "science", in the text field with id term, and hit the submit action, the value of that field is never sent to my bot service.
When I receive a message from the Bot Emulator, this is what it looks like:
{
  "type": "message",
  "value": {
    "type": "search"
  },
  "from": {
    "id": "default-user",
    "name": "User"
  },
  "locale": "en-US",
  "id": "ji86436bbcc1jd9i",
  "channelId": "emulator",
  "timestamp": "2017-07-28T17:56:02.071Z",
  "localTimestamp": "2017-07-28T12:56:02-05:00",
  "recipient": {
    "id": "default-bot",
    "name": "Bot"
  },
  "conversation": {
    "id": "9h88n4945h3bblg2ac"
  },
  "serviceUrl": "http://<IP_ADDRESS>:54445"
}

You can see that the value field in the message above contains { "type": "search" } but not the value of the field with id term. I'd expect to see { "type": "search", "term": "Science"'} in the message value.
I've tested this card JSON in the adaptive card visualizer (http://adaptivecards.io/visualizer/), using the JSON within the content block above and it works perfectly fine in the visualizer. When I click the submit action it shows that I should be receiving the term value in the message value.
Please advise.
Thanks,
Mike

This is likely due to the fact that we haven't release a new emulator in a while, and the version of adaptive cards it makes use of is now out of date. We have a new emulator release coming very soon. If you need the latest behavior immediately, you may choose to build and run the emulator from source https://github.com/Microsoft/BotFramework-Emulator/wiki/How-to-Contribute#build-and-run-from-source

Hi @mrussell-curiosity, Emulator v3.5.31 was released today. Please try it out and let us know if this issue no longer repros.

Closing now. If you're still seeing this issue with the new emulator, reply here and we'll reopen.


Update examples for MSAL 2.x

Done on v2 branch. Might get some small tweaks before v2 is published, but they're pretty much solid.


Use diesel instead of sporm?

To Quote:

Diesel is the most productive way to interact with databases in Rust because of its safe and composable abstractions over queries.

Did you take a look at the code? It also has a code generator and it seems to be pretty useable.
Maybe those projects can be merged and sapper can benefit from it?

emem, in fact, sapper can use any rust orm. Later i will give an example using diesel.  :)

That's great! @daogangtang
Do you have any reason why you work on a separate ORM instead of helping diesel? :)

in fact, sporm comes from rustorm (at some commit), i update it to latest dependencies.  i used rustorm before, so ....
and i didn't use diesel in any project before, i found that it is not so easy as it said.

hi, sapper_examples has added a diesel crud example, enjoy!

https://github.com/sappworks/sapper_examples/tree/master/mvc_diesel_example

Great, thank you! That was very fast.


Automated Package Upgrade

:tada: This PR is included in version 13.0.103 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Improve JEP initialisation and DL model loading error logging

This PR tries to show an error at startup when JEP is not correctly initialised:
For example:
INFO  [2022-08-09 14:23:57,617] org.grobid.core.jni.DeLFTModel: Loading DeLFT model for quantities with architecture BidLSTM_CRF...
running thread: 1
INFO  [2022-08-09 14:23:57,623] org.grobid.core.jni.JEPThreadPool: Creating JEP instance for thread 16
ERROR [2022-08-09 14:23:57,633] org.grobid.core.jni.JEPThreadPool: JEP initialisation failed somewhere.

The startup will continue, however at least there is a trace in the log file.

Thanks !
Here it's not an error of the JEP initialization itself (like linking the native JEP library).
It's an error of the loading the deep learning model, which might be due to different reasons not necessarily related to JEP (model does not exist, wrong model version, etc.). Then the difficulty is to pass the python error trace into java so that it is readable.
The error reporting behavior right now is not very satisfactory I agree. Each model has its own JEP instance in its own thread. This JEP instance loads the model. In case of success, we propagate the Keras architecture display from python into the Java logs (but it can still fail later for other reasons :D). In case of failure of the loading of the model, I think it's often a kind of silent failure, and then when grobid tries to use it, we have a model access error (because the initial loading fails).
I am not so sure how to identify the cause of error without diving again in the code, we might need to look at the python error trace with regex :/
Something that can be done easily before calling JEP: check that the deep learning files exist in grobid home.
Note for us: if something is changed in DeLFTModel.java (the sequence labelling) it has to be changed in DeLFTClassifierModel.java too for consistency.

Thanks for the feedback.
If I understood correctly, the root of this issues comes when running on separate threads the exceptions are lost in a limbo. The proper way would be to have a sort of messaging between threads.
I think if we can display the stacktrace of the exception we will have precious hints on where the error comes from (e.g. the JepException usually show additional python code if the error comes from there).
I've added some logs before throwing, so that something will appear in the log.

Note for us: if something is changed in DeLFTModel.java (the sequence labelling) it has to be changed in DeLFTClassifierModel.java too for consistency.

I've made the same changes in the DeLFTClassifierModel.java too.

Coverage decreased (-0.008%) to 39.876% when pulling 2a47ebf51f60b6f7a56beed263e0748e18b97c33 on improvement/jep-init-error-display into b0939e062d4541897dda9c514dc5e5ad5f8c0461 on master.


Add support for custom instance sizes

Right now this only applies to GCE.
I updated the script generating pricing info to also include custom instance type parameters, such as number of CPUs, amount of memory supported, price per CPU and GB of memory. In the instance selector, we now create extra data points, one per instance family that supports custom instance sizes, and do the filtering looking for the cheapest instance using the combined list of standard instance types plus these custom instance types.
I also made sure GPU info is present in the custom instance type data.
Burst CPU types are not supported currently on GCE, but if that changes, it should be easy to update that information in the data structure.

This fixes #132

My apologies for jumping the gun on reviewing this earlier. I now see it was a draft and will stay away from drafts from now on.
This looks solid.

No worries. I prefer early feedback, but it might be confusing for the reviewer that I'm still working on and keep changing stuff in the PR, so I started using drafts.


Int guesser, mapping related changes: CR changes refactoring, exceptions

Does it make any sense?

This is PR to main "int guesser" branch: #2

Perhaps this makes sense. We want to try and get the source repo to accept the fixes asap which might mean fewer changes is likely to be accepted faster. Maybe it would be sensible to suggest these changes after we manage to get the first lot in?


Discovery Finder Release 23.12 Compliance Acceptance Criteria

Release Compliance 23.12
Source in Catena-X Confluence + Expert Contacts here. (Source only accessible for Catena-X Consortia members in current transition phase)

[ ] Gaia-X compliance confirmed by dedicated expert.

Obtain approval from CX Gaia-X expert(s), prior to Gate review.
Provide info as early as possible; expect optimization loops based on feedback
=> check linked PDF summary for requirements (Source only accessible for Catena-X Consortia members in current transition phase).

Contact:

Release Mangement

[ ] GDPR compliance confirmed
(personal data; Data Protection & Privacy DPP)

assessment must be completed via Catena-X GDPR questionnaire (Source only accessible for Catena-X Consortia members in current transition phase.)
either the product/service doesn`t process any relevant data,
or - in case the assessment reveals potential issues - a more severe "Data Privacy Impact Assessment" shall be conducted (if applicable: robust mitigation actions must be completed)
Provide evidence for GDPR compliance prior to Gate review. Previous assessments remain valid, as long as approach to handling of personal data was not changed.

Contact:

Release Mangement

[ ] Interoperability Check
Acceptance criteria are fulfilled as described in in the following area on confluence: Interoperability Quality Gate Requirements (Source only accessible for Catena-X Consortia members in current transition phase.)

Approval will be documented centrally by Expert(s)

Obtain approval from Interoperability experts prior to Gate review.

Therefore consult the regular office hours as early as possible; expect optimization loops based on feedback. (Source only accessible for Catena-X Consortia members in current transition phase.)
Contact:

SYSTEM ARCHITECT2

[ ] Data Sovereignty Check
Acceptance criteria are fulfilled as described in in the following area on confluence:

Data Sovereignty Guardrails for Release 3.2 (Source only accessible for Catena-X Consortia members in current transition phase.)
Approval will be documented centrally by Expert(s)
Obtain approval from Data Sovereignty experts prior to Gate review: Experts will schedule a review with your team.

Expect optimization loops based on feedback.
Contact:

SYSTEM ARCHITECT3,
SYSTEM ARCHITECT4

[ ] Confirmation of published CX Standards
Product Owner confirms:

The FOSS product under review is compliant to all relevant Catena-X Standards which are already published on the Association website.
Failure to do so may ultimately make the reference implementation useless, as the mandatory CX Certification cannot be accomplished.

[ ] Verification of foreseen CX Standards
Product Owner confirms:

The content of upcoming CX Standardization Requests (STAN) has been reviewed and feedback was provided to the responsible PCA/BDA. As per current status, the FOSS product under review will be compliant as soon as the CX Standard is published. (Info here) (Source only accessible for Catena-X Consortia members in current transition phase.)
Minimum: PCA/BDA have finalized all release-relevant Standardization Requests (STAN). Those have passed the CX Association`s technical committee (TC4S) and are pre-published on the website. Opt-out period in progress.
Best case: Association Board approval available and CX Standard is published on website.

Gaia-X compliance:
Gaia-X compliance is not relevant for the Discovery Finder.

Release Mangement

[ ] GDPR compliance:
Since Release 23.09. there have been no changes.
Catena-X GDPR Declaration and Requirements_V23.12_Discovery Finder.xlsx

Thomas Obermeyer

[ ] Interoperability Check:
Interoperability has be marked as "not relevant" for Release 23.09. Since then no changes have been made.

SYSTEM ARCHITECT3, SYSTEM ARCHITECT4

[ ] Data Sovereignty Check:

Ownership of the data
Catena-X network operator manages data. Data is intended to be used publicly in Catena-X network with respect to Business Partner Number.
Access control
Access controlled via Business Partner Number.
Users can migrate their data to a different service and/or service provider.
Transferability to a different application or service provider ensured. There is no lock-in.

Confirmation of published CX Standards
Yes, confirmation that the Discovery Finder under review is compliant to all relevant Catena-X Standards which are already published on the Association website, especially the CX-0053.

Verification of foreseen CX Standards
Yes, confirmation that the content of upcoming CX Standardization Requests (STAN) has been reviewed and feedback was provided to the responsible PCA/BDA. As per current status, the Discovery Finder under review will be compliant as soon as the CX Standard is published. (Info here) (Source only accessible for Catena-X Consortia members in current transition phase.)

Hi @kelaja,
for the points:
Interoperability Check
Data Sovereignty Check
Confirmation of published CX Standards
Verification of foreseen CX Standards

The Expert is not defined / Expert Github account is not known, pls forward to expert. Many thanks!

@thomas-henn @bs-sili
For Data Sovereignty POs can do a self-declaration if products have not undergone any significant changes.
See Links (available to Consortia Members only)
2023-11-20 Stay informed & Release 23.12 & 24.03

@kelaja
Interoperability Check:
Acceptance criteria are fulfilled as described in in the following area on confluence:
https://confluence.catena-x.net/display/PL/Interoperability+Office+Hours+Backlog+-+QGate+Prep


Navigation support users by platform

Navigation support users by platform:

Android: navigate to<EMAIL_ADDRESS>iOS<EMAIL_ADDRESS>

Version test:
Device test: S20 FE5G, IP 11
Validation passed.


Installing docker on a system with 64-bit processor but 32bit ubuntu 14.04.

I'll start from the conclusion. If you have 64-bit CPU and 32bit Ubuntu 14.04 installed, it's possible to run docker without reinstalling everything. However, this currently requires manual dissection of the debian package and some modification of it's control file to get it to install.
If changes, similar to the ones I made to the control file were introduced to the docker debian package definition, It'd be relatively easy to make it work on 32-bit ubuntu when you have 64-bit processor. The changes I made are a little crude and I wouldn't suggest them as is, but I'm pretty sure there's someone who can easily refine them enough so they could be incorporated into the official package.
Please modify the official docker-engine package so that it can be installed on a 32-bit Ubuntu system with 64-bit kernel plus 64-bit libraries with minimum fuss. The changes needed are very small.
Here are the steps I needed to make:

Activate amd64 architecture for dpkg.
sudo dpkg --add-architecture amd64
sudo apt-get update
Install amd64 kernel.
sudo apt-get install linux-generic-lts-trusty:amd64
In case you have any DKMS compiled display drivers installed, it's a good idea to uninstall them for now. Leaving them might prevent X from starting properly. I have not verified if DKMS is still able to build them.
Reboot
Set up docker repositories by invoking the official install script. It'll fail, but this step is still needed. If some cosmetic fixes were made to the official package, this would be the last step.
wget -qO- https://get.docker.com/ | sh
Install amd64 versions of the libraries needed for docker.
sudo apt-get install libapparmor1:amd64 libc6:amd64 libdevmapper1.02.1:amd64
Fetch the package for docker-engine.
apt-get download docker-engine
Unpack the .deb
mkdir docker-package
cd docker-package
ar xv ../docker-engine_1.9.0-0~trusty_amd64.deb
The directory will now contain a few files. Let's unpack control.tar.gz too.
mkdir control
cd control
tar zxvf ../control.tar.gz
Next we need to edit the file named control. It contains a line that begins with Depends: We need to modify it so it will accept i386 versions of several important packages. The original line looked like this:
Depends: iptables, init-system-helpers (>= 1.13~), sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16), perl, libapparmor1 (>= 2.6~devel), libc6 (>= 2.14), libdevmapper1.02.1 (>= 2:1.02.63)
I added :i386 after every package name that didn't begin with lib. This is the result:
Depends: iptables:i386, init-system-helpers:i386 (>= 1.13~), sysv-rc:i386 (>= 2.88dsf-24) | file-rc:i386 (>= 0.8.16), perl:i386, libapparmor1 (>= 2.6~devel), libc6 (>= 2.14), libdevmapper1.02.1 (>= 2:1.02.63)
Now we need to repackage the .deb and install it. Here're the commands I used.
rm ../control.tar.gz
tar zcvf ../control.tar.gz conffiles control md5sums postinst postrm preinst prerm
cd ..
ar rv ../docker-fixed.deb debian-binary control.tar.gz data.tar.xz _gpgbuilder
cd ..
Now we have docker-fixed.deb and all that's left is to install it.
dpkg -i docker-fixed.deb
Now try to see if docker works
docker run hello-world

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

In step 2, you install a 64bit kernel, and then you say to reboot. Does that mean to boot into that new kernel? Won't this cause trouble further down the line? Using a 64bit kernel on an otherwise 32bit system?

At least I'm not aware of any trouble with that. The system I did those steps for has been running without any issues for the last 28 days.

@jojkaart: thanks for the instructions! But I'm stuck at the last step ( dpkg -i docker-fixed.deb):
 $ sudo dpkg -i docker-fixed.deb
(Lecture de la base de données... 673400 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de docker-fixed.deb ...
Dépaquetage de docker-engine (1.9.1-0~vivid) sur (1.9.1-0~vivid) ...
Paramétrage de docker-engine (1.9.1-0~vivid) ...
Job for docker.service failed. See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
dpkg: erreur de traitement du paquet docker-engine (--install) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Traitement des actions différées (« triggers ») pour ureadahead (0.100.0-19) ...
Traitement des actions différées (« triggers ») pour systemd (219-7ubuntu6) ...
Traitement des actions différées (« triggers ») pour man-db (<IP_ADDRESS>-5) ...
Des erreurs ont été rencontrées pendant l'exécution :
 docker-engine

$ systemctl status docker.service -l
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since jeu. 2016-01-28 12:31:21 CET; 54s ago
     Docs: https://docs.docker.com
 Main PID: 11852 (code=exited, status=203/EXEC)

janv. 28 12:31:21 whimsical-wombat systemd[1]: Starting Docker Application Container Engine...
janv. 28 12:31:21 whimsical-wombat systemd[11852]: Failed at step EXEC spawning /usr/bin/docker: Exec format error
janv. 28 12:31:21 whimsical-wombat systemd[1]: docker.service: main process exited, code=exited, status=203/EXEC
janv. 28 12:31:21 whimsical-wombat systemd[1]: Failed to start Docker Application Container Engine.
janv. 28 12:31:21 whimsical-wombat systemd[1]: Unit docker.service entered failed state.
janv. 28 12:31:21 whimsical-wombat systemd[1]: docker.service failed.

Please make sure you're running the 64-bit kernel you installed in step 2. You can see your kernel version and architecture with the command "uname -a". There should be x86_64 somewhere on the line if you're running 64-bit kernel. If it says i386, you're still running 32-bit kernel.

Thanks, will try to reboot again. :)
$ uname -a
Linux whimsical-wombat 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:01 UTC 2014 i686 i686 i686 GNU/Linux

Thanks, it works, now. I redid the following steps too. :)
$ docker --version
Docker version 1.9.1, build a34a1d5

$ ps aux | grep docker
root      2484  2.0  0.1<PHONE_NUMBER>2 ?        Ssl  21:07   0:00 /usr/bin/docker daemon -H fd://

$ docker run hello-world
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

$ docker-compose run ...
ERROR: Couldn't connect to Docker daemon at http://localhost:4243 - is it running?

Well... I guess I will debug it later. But thanks for the solution. :)

Set up docker repositories by invoking the official install script. It'll fail, but this step is still needed. If some cosmetic fixes were made to the official package, this would be the last step.
wget -qO- https://get.docker.com/ | sh

Can you share the modifications needed? You could post the modified script, so people would just need to run it locally instead of wget-ing it. :)

Looks like this issue is resolved, so I'll close it, but feel free to comment here after I've closed

This issue isn't really resolved unless the official docker package gets the simple modifications I've detailed here. Today's problem solving was for someone attempting to do the steps manually. Not the main point of this ticket.
yanndinendal, the modifications needed are all described in the first post, which you apparently were following. The docker install script doesn't need any modifications. Just the .deb needs them. Of course, it also requires the 64-bit kernel installed first, which I don't think is a good idea to script.


obfuscate mapbox token

Frontend and Release Workflow Started here

should we also add an additional env variable for directly supplying the token without decoding (easier for local environment debugging)

Yeah, that would be great


Build does not fail on invalid project element attributes

Building using <Project SDK=...>
<Project SDK="foobar">
        <Target Name="Build">
                <Message Text="hello" Importance="High"/>
        </Target>
</Project>

gives
Microsoft (R) Build Engine version <IP_ADDRESS>44
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/8/2017 10:06:30 AM.
Project "d:\projects\tests\projects\play\build.proj" on node 1 (default targets).
Build:
  hello
Done Building Project "d:\projects\tests\projects\play\build.proj" (default targets).

Building using <Project Sdk=...>
<Project Sdk="foobar">
        <Target Name="Build">
                <Message Text="hello" Importance="High"/>
        </Target>
</Project>

gives
icrosoft (R) Build Engine version <IP_ADDRESS>44
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/8/2017 10:07:21 AM.
Project "d:\projects\tests\projects\play\build.proj" on node 1 (default targets).
d:\projects\tests\projects\play\build.proj : error MSB4019: The imported project "d:\projects\msbuild_3\bin\Bootstrap\15.0\Bin\Sdks\foobar\Sdk\Sdk.props" was not found.
 Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "d:\projects\tests\projects\play\build.proj" (default targets) -- FAILED.

Build FAILED.

"d:\projects\tests\projects\play\build.proj" (default target) (1) ->
  d:\projects\tests\projects\play\build.proj : error MSB4019: The imported project "d:\projects\msbuild_3\bin\Bootstrap\15.0\Bin\Sdks\foobar\Sdk\Sdk.props" was not foun
d. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.15

Building
<Project foobar="foobar">
        <Target Name="Build">
                <Message Text="hello" Importance="High"/>
        </Target>
</Project>

gives
Microsoft (R) Build Engine version <IP_ADDRESS>44
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/8/2017 10:11:03 AM.
Project "d:\projects\tests\projects\play\build.proj" on node 1 (default targets).
Build:
  hello
Done Building Project "d:\projects\tests\projects\play\build.proj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.26

With your changed title, that's intentional: https://github.com/Microsoft/msbuild/blob/401ee9ab07dacb26db53ba65cb48b4034698b08c/src/Build/Evaluation/ProjectParser.cs#L184

Historically interesting. Works as intended then, and is equivalent to the other valid attributes
<Project SDK="foobar" InitialTARGETS="Init">
        <Target Name="Build">
                <Message Text="hello" Importance="High"/>
        </Target>
        <Target Name="Init">
                <Message Text="init" Importance="High"/>
        </Target>
</Project>

Microsoft (R) Build Engine version <IP_ADDRESS>44
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/8/2017 10:21:13 AM.
Project "d:\projects\tests\projects\play\build.proj" on node 1 (default targets).
Build:
  hello
Done Building Project "d:\projects\tests\projects\play\build.proj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.26


separate markdown into it's own plugin, and make blobs work on liteclient

implemented a bunch of things to make liteclients work better.
if you don't have ssb-links installed on your pub, then avatars will break for liteclients that currently work

merged into 1.8.0


Fix spelling of "two two"

I think the diff shows the fix :-)

@marcusnielsen Nice catch! Proof reading++


Fix pre-commit regex

The removal of the regex appears to be raising a lot of hidden ruff errors.
Why is this regex being removed? / Will this PR address those new issues?


组件浮窗不消失

[ ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link
https://preview.pro.ant.design/dashboard/analysis
Steps to reproduce
鼠标移动到组件上，等浮窗出现后，快速移动鼠标离开组件
What is expected?
鼠标离开组件后浮窗马上消失
What is actually happening?
如果组件比较多，排列比较紧密，鼠标快速移动后会有浮窗留在上面，影响整个页面的显示

Environment
Info

g2
3.5.7

System
macOS Mojave 10.14.6

Browser
Google Chrome  76.0.3809.132

如图，鼠标移动快时，浮窗会一直停留

3.5.9-beta.2 已经修复


Bootstrap destroys entire style of existig websites.

It's OK though. It only took me a few hours to build this from scratch WITHOUT hideous Bootstrap. I would give you a pull, but since you wanted to personally insult me, no. I was actually complimenting your efforts, and simply nudging you to detach from the Bootstrap requisite. Sorry I offended you by down-talking your beloved Bootstrap. Cheers.

So do you think still that I insulted you..?!
 RTFM and take it from there..

Well... you do have beautiful sprinkles (the buttons + FA), but the Bootstrap requirement is VERY debilitating. I think you can see that, you seem to be well experienced. If it were to work with OR without Bootstrap, just think of how many tens of thousands of more people would want to use it.

there are better ways to address the issue without having the stupid/immature attitude like: "As everyone knows, bootstrap is a no-no because of it's bad practice" for something that has 100K followers, etc, etc.. so learn how the world works first and then start making these statements..


Moved _mapping.py and _process.py from clvm to ec2map.

Removed redundant _common directory.
Resolved associated import statements.
Fixes #16

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Irrelevant as per Lior's new PR:
https://github.com/BstLabs/py-clvm/pull/89
We need this _common in pyclvm

This PR is dropped as it causes problems in clvm


echonest: IO error: timed out

I discovered this plugin yesterday, so I'm trying to fill my library doing a beet echonest
I got this "error" echonest: IO error: timed out after a few songs that work
echonest: truncating /media/raid5/BEETS/Gil Scott-Heron & Brian Jackson/Home Is Where The Hatred Is (Live) _ The Bottle (Live)/02 The Bottle (Live).flac to /tmp/tmpcOPouX.ogg
echonest: truncate encoding /media/raid5/BEETS/Gil Scott-Heron & Brian Jackson/Home Is Where The Hatred Is (Live) _ The Bottle (Live)/02 The Bottle (Live).flac
echonest: uploading file, please be patient
echonest: IO error: timed out
echonest: IO error: timed out
echonest: IO error: timed out
echonest: IO error: timed out
echonest: IO error: timed out
echonest: IO error: timed out
echonest: IO error: timed out
echonest: IO error: timed out
echonest: IO error: timed out
echonest: IO error: timed out
error: echonest request failed repeatedly
and if I relaunch the same command, 1st thing it converts / uploads the same songs he already did which is kind of annoying but well not so important compared to the fact it fails at the very same song. I even removed the songs in question but I end up at some point with the same issue on another song.

I just discovered this today - is the whole file uploaded the EN servers?


Unable to rename ServiceID from TS file. System error 193 (0x000000C1)

I'm getting the following error when I try to rename a ServiceID from a TS file using tsduck on a Windows 10 host.
C:\tmp\foo>tsp -I MY_TS_FILE.ts -P svrename 0x00BA --id 0x01
tsp: MY_TS_FILE.ts: System error 193 (0x000000C1)

I'm running a fresh installation of TSDuck

tsp: TSDuck - The MPEG Transport Stream Toolkit - version 3.19-1520

Any idea?
Thnks!

Please RTFM. The correct syntax for your case is:
tsp -I file MY_TS_FILE.ts -P svrename 0x00BA --id 0x01

There are many input plugins. The one that reads files is named file. Others are named ip, dvb, hls, etc.
By writing -I MY_TS_FILE.ts, the file MY_TS_FILE.ts is interpreted as a plugin name. Not finding a plugin with that name, tsp ends up with activating this file as a DLL, which eventually gives the system error you see.
Also, you did not mention any output plugin (-O ....). By default, the transformed stream is sent to the standard output, which is probably not what you want to do, unless you pipe that command into another one.
tsp is a very versatile command. Before using it, be sure to read its description in the user's guide.


Auto Generate DFDs

This change would likely be a new project all together, though it should be explored in the context of this existing work.
Ditch the concept of a provider and instead have a provisioner or more generic plugin. Terraform builds a dependency graph each time you run a command (or at least each time you run commands like apply). I would love to see if we can just walk that dependency graph and flag elements we care about (subnets, load balancers, vpcs, etc) and auto generate the DFDs rather than require them to be specified in an .hcl file
https://www.terraform.io/docs/internals/graph.html

I just learnt about this project (by reading this nice article of yours), and this was my first thought and discussion internally at work. @rbhitchcock it seems like you had this idea for some time, are you aware of any advancements?


Lite Version/Mode

MAIN
Request for "Lite" version of VSC with lesser used features not only turned off but not shipped at all. Or maybe a lite mode in the edition itself which turns off anything which is not Extensions + Intellisense + Monaco (+git). This is different from Zen mode as it is not just visual clarity but also in-memory clarity.
Everytime a new release comes out turning off features not needed seems like a chore (I very much appreciate & thank the community and MS however for the monumental work they do <3). So a Lite version/mode would straighten this out. Not to mention the performance gains that can be achieved
EXPLORATORY
I am unaware of the feasibility myself but think it might be worthwhile at least considering Tauri/Neutralino as alternatives to Electron should there be a new version (if written from scratch that too). Pros: Performance, Cons: Support etc.

This is a fair feature request, however we do not have it on our immediate plan. Thus assigning to backlog for now to gather more feedback. Thanks


fix(region): aws sync disk missing image id fix

这个 PR 实现什么功能/修复什么问题:

aws sync disk missing image id fix

是否需要 backport 到之前的 release 分支:

release/3.7
release/3.6

/area region
/cc @zexi @ioito

Codecov Report

Merging #11112 (7a86168) into master (a737ab7) will decrease coverage by 0.24%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #11112      +/-   ##
==========================================
- Coverage    5.81%    5.56%   -0.25%
==========================================
  Files         901      520     -381
  Lines      139117    90786   -48331
==========================================
- Hits         8088     5055    -3033
+ Misses     130322    85329   -44993
+ Partials      707      402     -305

Flag
Coverage Δ

aFlag
5.56% <ø> (-0.25%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/cloudcommon/db/query.go

pkg/keystone/tokens/auth.go

pkg/baremetal/manager.go

pkg/compute/baremetal/types.go

pkg/util/regutils2/regutils.go

pkg/cloudprovider/route_table.go

pkg/cloudcommon/db/namevalidator.go

pkg/util/k8s/kubeadm/kubeadm.go

pkg/cloudcommon/db/metadataresource.go

pkg/monitor/models/alertpannel.go

... and 370 more

Continue to review full report at Codecov.

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


Populate project with remote repositories that can be added to virtual repositories

For Java builds we want to use a single virtual repository URL that we can supply to maven to resolve all dependencies.
Currently users cannot create and consequently add remote repositories to the virtual repository, as shown in screenshot below (only local repositories can be added):

Proposed workaround is to ask users to supply a list of remote repositories at onboarding time, so these can be pre-populated in the project.

@caggles Can you please provide an estimate for automating this function that now you have to do manually.


node-sass causing build to fail

also found this issue here:
https://github.com/sass/node-sass/issues/13
not sure if its related but I'm seeing the same stuff:
npm WARN deprecated<EMAIL_ADDRESS>use node-gyp@3+, it does all the things
remote:
remote:        ><EMAIL_ADDRESS>install /tmp/build_b39be4c794f31269d06be6cd1e5721fa/node_modules/ember-cli-sass/node_modules/broccoli-sass-source-maps/node_modules/node-sass
remote:        > node scripts/install.js
remote:
remote:        Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/linux-x64-node-4.2/binding.node

I'll look into this. I just deployed using node-sass and didn't see this issue

I will look into it as well, this is my package.json if it makes a difference, let me know if you see something off.
{
  "name": "kitchenninja",
  "version": "0.0.0",
  "description": "Small description for kitchenninja goes here",
  "private": true,
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "start": "ember server",
    "build": "ember build",
    "test": "ember test"
  },
  "repository": "",
  "engines": {
    "node": ">= 0.10.0"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "broccoli-asset-rev": "^2.0.2",
    "ember-cli": "1.13.5",
    "ember-cli-app-version": "0.4.0",
    "ember-cli-babel": "^5.0.0",
    "ember-cli-content-security-policy": "0.4.0",
    "ember-cli-dependency-checker": "^1.0.0",
    "ember-cli-htmlbars": "0.7.9",
    "ember-cli-htmlbars-inline-precompile": "^0.1.1",
    "ember-cli-ic-ajax": "0.2.1",
    "ember-cli-inject-live-reload": "^1.3.0",
    "ember-cli-qunit": "0.3.18",
    "ember-cli-release": "0.2.3",
    "ember-cli-sri": "^1.0.1",
    "ember-cli-uglify": "^1.0.1",
    "ember-cli-sass": "^3.2.2",
    "ember-data": "1.13.7",
    "ember-disable-proxy-controllers": "^1.0.0",
    "ember-cli-concat": "1.0.1",
    "ember-cli-document-title": "0.0.3",
    "ember-cli-find-cached": "0.0.1",
    "ember-cli-pace": "0.0.15",
    "ember-export-application-global": "^1.0.3"
  }
}

Can you try to update to the latest ember-cli-sass? I have...
"ember-cli-sass": "^4.2.0"

Looks like that did the trick! thanks


7-1 Pattern @import order - Utils before Vendor?

I noticed when viewing the load order for the main.scss file, it lists vendor ahead of utils.
Taking Bootstrap as an example, wouldn't I want my utils to be loaded first (since that is where my _variables.scss lives)?
Otherwise, vendor settings like $brand-primary: #0275d8 !default; in Bootstrap will always be the default value, because no $brand-primary exists, since we loaded our $brand-primary after Bootstrap.

If you load your own file containing $brand-primary after Bootstrap, then it will override the value from Bootstrap. I don't see the problem. :)

I change $brand-primary to red in my _utilities.scss file.
I load files in the following order...

vendor/bootstrap/_variables.scss
vendor/bootstrap/_buttons.scss
utils/_variables.scss

My primary colored button is Bootstrap blue, not red.
However, if I load it in this order...

utils/_variables.scss
vendor/bootstrap/_variables.scss
vendor/bootstrap/_buttons.scss

My primary colored button is red.
It seems that if we don't load our variables before the library variables, then it renders the ! default declarations in the lib variables pointless.  Isn't that why they are there?  So we can define our custom variables and let the library fill in the undefined variables with defaults?

Oh, true. That's right, I need to fix it. Thanks for the report. :)

Done with https://github.com/HugoGiraudel/sass-guidelines/commit/4546afec569c7ea8fc77831a50c562db9e2389b8.


ALVR Panicked - Message "Unavailable" Backtrace 0: wgpu_render_pass_execute_bundles

I get a lot of those I've been using it fine for about a year then it suddenly started having these errors right when its opening SteamVR. I uninstalled and installed the fresh nightly of V18.4.0, rebooted, tried new drivers, verified SteamVR files, rebooted again, Steam launched as Admin, etc. Here is the log:
00:08:33.513310200 [ERROR] Message: "Unavailable"
Backtrace:
0: wgpu_render_pass_execute_bundles
1: wgpu_render_pass_execute_bundles
2: wgpu_render_pass_execute_bundles
3: wgpu_render_pass_execute_bundles
4: wgpu_render_pass_execute_bundles
5: wgpu_render_pass_execute_bundles
6: wgpu_render_pass_execute_bundles
7: wgpu_render_pass_execute_bundles
8: wgpu_render_pass_execute_bundles
9: HmdDriverFactory
10: HmdDriverFactory
11: wgpu_render_bundle_insert_debug_marker
12: wgpu_render_bundle_insert_debug_marker
13: wgpu_render_bundle_insert_debug_marker
14: wgpu_render_pass_execute_bundles
15: BaseThreadInitThunk
16: RtlUserThreadStart

Solved. Something with Steam was corrupt, reinstalling SteamVR didn't even fix it. Was a dying Samsung Evo 980 Pro I paid way too much money for.


[Feature Support] For Multi-Batch Data Inference Support

If you wish to generate descriptions for multiple images at one time. Simply use the following codes:
import requests
import torch
import transformers
from PIL import Image
from otter.modeling_otter import OtterForConditionalGeneration

model = OtterForConditionalGeneration.from_pretrained(
    "luodian/otter-9b-hf", device_map="auto"
)

tokenizer = model.text_tokenizer
image_processor = transformers.CLIPImageProcessor()
demo_image_one = Image.open(
    requests.get(
        "http://images.cocodataset.org/val2017/000000039769.jpg", stream=True
    ).raw
)
demo_image_two = Image.open(
    requests.get(
        "http://images.cocodataset.org/test-stuff2017/000000028137.jpg", stream=True
    ).raw
)
query_image = Image.open(
    requests.get(
        "http://images.cocodataset.org/test-stuff2017/000000028352.jpg", stream=True
    ).raw
)
vision_x = (
    image_processor.preprocess(
        [demo_image_one, demo_image_two, query_image], return_tensors="pt"
    )["pixel_values"]
    .unsqueeze(1)
    .unsqueeze(1) #Here, we reshape the input images into shape [B, 1, 1, 3, H, W], where T_img=1 and F=1.
)
model.text_tokenizer.padding_side = "left"
lang_x = model.text_tokenizer(
    [
        "<image> User: what does the image describe? GPT: <answer>", "<image> User: what does the image describe? GPT: <answer>", "<image> User: what does the image describe? GPT: <answer>"
    ], #Here, we provide instructions for all images, respectively.
    return_tensors="pt", padding=True #To avoid different lengths of the instructions
)
generated_text = model.generate(
    vision_x=vision_x.to(model.device),
    lang_x=lang_x["input_ids"].to(model.device),
    attention_mask=lang_x["attention_mask"].to(model.device),
    max_new_tokens=256,
    num_beams=1,
    no_repeat_ngram_size=3,
)
for i in range(vision_x.size(0):
    print(f"Generated text for image {i}: ", model.text_tokenizer.decode(generated_text[i]))

After some tests, the maximum batch size can be 20 for 4 RTX 3090. But the total inference time increases as well. Specifically, using 4 RTX 3090 to generate descriptions for one image will cost 8~9 seconds. When using 4 RTX 3090 to generate descriptions for 20 images at one time, the time cost is about 155 seconds, i.e., 7.75 s/image.
The pipeline can be further improved.

As I could remember, generating 1 image's description takes 3-4 s/image. It's quite weird that multiple images inference are that slow. I guess it's by huggingface's device_map mechanism, the models are sharded into different devices. And the data tensors are copied from device to device during inference. Maybe copying 20 images tensor cost more time than just 1 image? It's my initial guess.
We are also working on improving training & inference efficiency. We now support xformers for Otter model. You can check the main branch's latest update.

Yes, if the tokens are 256, it will cost about 4 seconds. If you use 512 tokens, the time cost will double. I forget to point it out.

@Luodian @GuanlinLee May I know if otter supports simultaneous input of multiple images, for example, inputting two images at once and asking questions about this pair of images other than Multi-Batch Data Inference Support?

Yes.
the data can be build like this.
[B,N,T,C,H,W] , B=1, N=2 and T=1 in this scenerio.

Yes.
the data can be build like this.
[B,N,T,C,H,W] , B=1, N=2 and T=1 in this scenerio.
And we have a sub-task named sp�ot_the_difference, this task is asking questions about the difference of a pair of images.
May we know what task you wanna Otter do, we can also include instruction data of the task you want！

May I ask if there are any demonstration codes available for this sub-task in this repository? I couldn't find them in pipeline/demo.

We truly dont have a demo for spot the diff. But our image demo here supports for multiple images input.
You can print the vision_x.shape to see it's arranged in [1, 3, 1, 3, 224,224] which means 3 images (at dim 1) are in-context-able with each other.
Feel free to ask more about it. Our Otter's unique advantage is supporting both in-context inputs and video inputs.

vision_x = image_processor.preprocess([demo_image_one, demo_image_two], return_tensors="pt")["pixel_values"].unsqueeze(1).unsqueeze(0)
model.text_tokenizer.padding_side = "left"
lang_x = model.text_tokenizer(
    [
        "<image><image>User: What is the difference between of these two images? GPT:<answer>"
    ],
    return_tensors="pt",
)

May I ask if it is like this? After I ran it, otter did not give the expected response, only replied with a single word "lighting."

vision_x = image_processor.preprocess([demo_image_one, demo_image_two], return_tensors="pt")["pixel_values"].unsqueeze(1).unsqueeze(0)
model.text_tokenizer.padding_side = "left"
lang_x = model.text_tokenizer(
    [
        "<image><image>User: What is the difference between of these two images? GPT:<answer>"
    ],
    return_tensors="pt",
)

May I ask if it is like this? After I ran it, otter did not give the expected response, only replied with a single word "lighting."

vision_x = image_processor.preprocess([demo_image_one, demo_image_two], return_tensors="pt")["pixel_values"].unsqueeze(0).unsqueeze(0)
model.text_tokenizer.padding_side = "left"
lang_x = model.text_tokenizer(
    [
        "<image>User: What is the difference between of these two images? GPT:<answer>"
    ],
    return_tensors="pt",
)

Like this

Yes, should listen to @ZhangYuanhan-AI Yuanhan's suggestion 😉


AttributeError: 'KerasHistory' object has no attribute 'layer'

I'm encountering the error "AttributeError: 'KerasHistory' object has no attribute 'layer'"
while working with a Keras model.
I'm trying to access layer information, but it seems I'm referencing the wrong object. the version of TensorFlow is 2.17.0 I tried to change the name layer to operation but it's not working.
this is the code:
import tensorflow as tf
from tensorflow.keras.models import Model
from tensorflow.keras.initializers import glorot_uniform
from tensorflow.keras.layers import Input, ZeroPadding2D, Conv2D, MaxPooling2D, BatchNormalization, Activation, Add, AveragePooling2D, Flatten, Dense, Dropout
input_shape = (96, 96, 1)
X_input = Input(input_shape)
X = ZeroPadding2D((3,3))(X_input)
X = Conv2D(64, (7,7), strides= (2,2), name = 'conv1', kernel_initializer= glorot_uniform(seed = 0))(X)
X = BatchNormalization(axis =3, name = 'bn_conv1')(X)
X = Activation('relu')(X)
X = MaxPooling2D((3,3), strides= (2,2))(X)
X = res_block(X, filter= [64,64,256], stage= 2)
X = res_block(X, filter= [128,128,512], stage= 3)
X = AveragePooling2D((2,2), name = 'Averagea_Pooling')(X)
X = Flatten()(X)
X = Dense(4096, activation = 'relu')(X)
X = Dropout(0.2)(X)
X = Dense(2048, activation = 'relu')(X)
X = Dropout(0.1)(X)
X = Dense(30, activation = 'relu')(X)
model_1_facialKeyPoints = Model( inputs= X_input, outputs = X)
model_1_facialKeyPoints.summary()

AttributeError                            Traceback (most recent call last)
 in <cell line: 34>()
32
33
---> 34 model_1_facialKeyPoints = Model( inputs= X_input, outputs = X)
35 model_1_facialKeyPoints.summary()
4 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/keras/engine/functional.py in _validate_graph_inputs_and_outputs(self)
692       # Check that x is an input tensor.
693       # pylint: disable=protected-access
--> 694
695       layer = x._keras_history.layer
696       if len(layer._inbound_nodes) > 1 or (
AttributeError: 'KerasHistory' object has no attribute 'layer'

Hi @Neta-Robinzon-Butbul -
Thanks for reporting the issue. Here I am not able reproduce the issue in tensorflow 2.17.0.
Attached gist for the reference.

Thank you!


manage skipped result

Overall Review of Changes:
A general description of the changes made that are being requested for merge
6.1.11 execute shell module looping on mounts then filtered using when.
if the item is filtered then the result do not contains the usual fields from shell instead it looks like
(item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'false_condition': "item['device'].startswith('/dev')", 'item': {'mount': '/tmp', 'device': '/tmp', 'fstype': 'tmpfs', 'options': 'rw,seclabel,nosuid,nodev,noexec,relatime', 'dump': 0, 'passno': 0, 'size_total':<PHONE_NUMBER>, 'size_available':<PHONE_NUMBER>, 'block_size': 4096, 'block_total': 999900, 'block_available': 999849, 'block_used': 51, 'inode_total': 999900, 'inode_available': 999877, 'inode_used': 23, 'uuid': 'N/A'}, 'ansible_loop_var': 'item'})

and the next task will fail with :
    amazon-ebs.base_ami: fatal: [default]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to be in '/Users/xxxx/.ansible/roles/MindPointGroup.amazon2023_cis/tasks/section_6/cis_6.1.x.yml': line 235, column 9, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n      - name: \"6.1.11 | AUDIT | Ensure no unowned or ungrouped files or directories exist | Displaying any unowned files or directories\"\n        ^ here\n"}

Issue Fixes:
Please list (using linking) any open issues this PR addresses
this was introduced in https://github.com/ansible-lockdown/AMAZON2023-CIS/pull/83
Enhancements:
Please list any enhancements/features that are not open issue tickets
How has this been tested?:
Please give an overview of how these changes were tested. If they were not please use N/A
tested manually in a packer build

Nice PR thank you very much


Removing playground from main page due to scrolling

Please add a meaningful description for your change here

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

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

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

See CI.md for more information about GitHub Actions CI.

merging to hotfix the issue and we can figure out what to do afterwards
fyi @aijamalnk @aaltay @AKosolapov

Thank you @pabloem.
As a side note, I do not understand how this works. Why would removing a div and not any js will fix the autoscrolling?

The JS that causes the scroll is part of the playground. By removing the
playground iframe we remove that JS.
On Sat, Jun 18, 2022, 7:49 PM Ahmet Altay @.***> wrote:

Thank you @pabloem https://github.com/pabloem.
As a side note, I do not understand how this works. Why would removing a
div and not any js will fix the autoscrolling?
—
Reply to this email directly, view it on GitHub
https://github.com/apache/beam/pull/21939#issuecomment-1159604995, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJ5Z3B44WODOEQEOZQFF5TVP2DELANCNFSM5ZD45DZQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Got it. And thank you for the explanation!
This goes beyond my JS understanding. I though the JS in the iframe would have been sandboxed and not able to affect the main page. It sounds like my understanding is not correct.

I thought so too. But oh well : )
On Sun, Jun 19, 2022, 11:51 AM Ahmet Altay @.***> wrote:

Got it. And thank you for the explanation!
This goes beyond my JS understanding. I though the JS in the iframe would
have been sandboxed and not able to affect the main page. It sounds like my
understanding is not correct.
—
Reply to this email directly, view it on GitHub
https://github.com/apache/beam/pull/21939#issuecomment-1159791971, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJ5Z3E72N4QVR2ZY66NZQTVP5T2PANCNFSM5ZD45DZQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Rails 5 compatibility

I tried to set up fake_stripe in a fresh Rails 5 app, but ran into some dependency problems with Sinatra and Rack. Rails 5 requires Rack 2.0 or higher, and the most recent version of Sinatra requires Rack ~> 1.5. Bundler resolves the Sinatra version to 1.0 because it has a more optimistic requirement for Rack (>= 1.0). This older version of Sinatra does not work because of this error.
In short, I don't think we can make fake_stripe compatible with Rails 5 until Sinatra is compatible with Rack 2.0+.

I'm hopeful that the next version of Sinatra will have support for Rack 2.0: https://github.com/sinatra/sinatra/commit/e7ef8e234fd36e389ec7e23d562de488fde7abff

I found the issue where Sinatra is tracking its compatibility with Rails 5: https://github.com/sinatra/sinatra/issues/1135

Hello bros: http://zzak.io/log/2016-08-22-sinatra-two-point-oh.html

Thanks, bro! I'm going to work on a Rails 5 compatible fake-stripe pre-release this week.

Works with Rails 5 if the Sinatra beta is specified in the Gemfile; I added a note to README.md.

Since Sinatra 2.0 was recently released, this gem now works without any additional configuration for Rails 5. I think that means this issue can be closed.
I've created a pull request to update the README here: https://github.com/thoughtbot/fake_stripe/pull/79

Closing this issue now that Sinatra 2.0 is out in the wild. Thanks for you help everyone!


fix: samples/Maven POM/filenames/pom.xml to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:

https://snyk.io/vuln/SNYK-JAVA-DOM4J-174153
https://snyk.io/vuln/SNYK-JAVA-DOM4J-2812975
https://snyk.io/vuln/SNYK-JAVA-MYSQL-174574
https://snyk.io/vuln/SNYK-JAVA-MYSQL-1766958
https://snyk.io/vuln/SNYK-JAVA-MYSQL-2386864
https://snyk.io/vuln/SNYK-JAVA-MYSQL-31399
https://snyk.io/vuln/SNYK-JAVA-MYSQL-31449
https://snyk.io/vuln/SNYK-JAVA-MYSQL-31580
https://snyk.io/vuln/SNYK-JAVA-MYSQL-451460
https://snyk.io/vuln/SNYK-JAVA-MYSQL-451464
https://snyk.io/vuln/SNYK-JAVA-ORGHIBERNATE-1041788
https://snyk.io/vuln/SNYK-JAVA-ORGHIBERNATE-30098
https://snyk.io/vuln/SNYK-JAVA-ORGHIBERNATE-568162
https://snyk.io/vuln/SNYK-JAVA-ORGHIBERNATE-569100
https://snyk.io/vuln/SNYK-JAVA-ORGHIBERNATE-584563
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-1009832
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-2329097
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-2330878
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-2434828
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-2436751
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-2689634
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-2823313
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-30164
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-30165
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-30169
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-32202
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-3369749
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-536316
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-5422217
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-6261586
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-6444790
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORKDATA-174140
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORKDATA-31335
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORKDATA-32219
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORKDATA-32231
https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORKDATA-451633

Description

Checklist:

[ ] I am adding a new extension to a language.

[ ] The new extension is used in hundreds of repositories on GitHub.com

Search results for each extension:

https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.FOOBAR+KEYWORDS

[ ] I have included a real-world usage sample for all extensions added in this PR:

Sample source(s):

[URL to each sample source, if applicable]

Sample license(s):

[ ] I have included a change to the heuristics to distinguish my language from others using the same extension.

[ ] I am adding a new language.

[ ] The extension of the new language is used in hundreds of repositories on GitHub.com.

Search results for each extension:

https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.FOOBAR+KEYWORDS

[ ] I have included a real-world usage sample for all extensions added in this PR:

Sample source(s):

[URL to each sample source, if applicable]

Sample license(s):

[ ] I have included a syntax highlighting grammar: [URL to grammar repo]

[ ] I have added a color

Hex value: #RRGGBB
Rationale:

[ ] I have updated the heuristics to distinguish my language from others using the same extension.

[ ] I am fixing a misclassified language

[ ] I have included a new sample for the misclassified language:

Sample source(s):

[URL to each sample source, if applicable]

Sample license(s):

[ ] I have included a change to the heuristics to distinguish my language from others using the same extension.

[ ] I am changing the source of a syntax highlighting grammar

Old: [URL to grammar repo]
New: [URL to grammar repo]

[ ] I am updating a grammar submodule

[ ] I am adding new or changing current functionality

[ ] I have added or updated the tests for the new or changed functionality.

[ ] I am changing the color associated with a language

[ ] I have obtained agreement from the wider language community on this color change.

[URL to public discussion]
[Optional: URL to official branding guidelines for the language]

We do not change samples as they are provided by the community and are only used by the classifier which breaks these down into tokens where vulnerabilities don't apply and don't mater. As such, this change is unnecessary. Closing.


docs: added catch all routes

What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Use cases and why

One use case

Another use case

Checklist:

[x] My code follows the developer guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

Looks like we had the same idea 😆 #167

yeah i didn't check the pull requests before making a new one. :smile:

just merged #1672

I have made the changes

Thanks @the-r3aper7 !


fix typo in PMG

add test that found problem.
Closes #83

Codecov Report

Merging #93 (b8b3de2) into master (39260de) will decrease coverage by 1.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
- Coverage   88.26%   87.18%   -1.08%
==========================================
  Files          12       11       -1
  Lines         537      523      -14
==========================================
- Hits          474      456      -18
- Misses         63       67       +4

Impacted Files
Coverage Δ

src/core/types.jl
100.00% <100.00%> (ø)

src/core/configuration.jl
77.77% <0.00%> (-11.12%)
:arrow_down:

src/core/utils.jl
86.66% <0.00%> (-7.93%)
:arrow_down:

src/layouts/SFDP_fixed_layout.jl
94.52% <0.00%> (-1.37%)
:arrow_down:

src/core/export.jl

Continue to review full report at Codecov.

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


added runtime enum class, metaclass, and tests

Closes #238

Please can we also have some new entries in the matrix in tests/epics/test_signals.py using RuntimeEnum on a subset of the entries of the enum record?


Cxx conform example

Fixes #994
This PR adds a C++ version of the conform.py example. The code is mostly identical to the Python version except for the argparse command line parsing which doesn't have an equivalent in C++.
There are also a couple minor fixes to other example files, I can break those out into a separate PR if necessary. Specifically conform.py had some syntax errors with my Python 3 setup, hopefully the changes I made are also compatible with Python 2. It might be worthwhile to add the examples to the CI at some point...

Codecov Report

Merging #995 (29151ab) into master (c5be9de) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #995   +/-   ##
=======================================
  Coverage   85.60%   85.60%
=======================================
  Files         192      192
  Lines       18331    18331
  Branches     2056     2056
=======================================
  Hits        15693    15693
  Misses       2112     2112
  Partials      526      526

Flag
Coverage Δ

unittests
85.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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

Adds a C++ version of the conform.py example


Security exception when detecting MEGA drive

Description
when i run it with Visual Studio，show err “System.Security.SecurityException: Requested registry access is not allowed” at MegaCloudProvider.cs
Steps To Reproduce
noe
Expected behavior
none
Files Version
latest
Windows Version
windows 10
Relevant Assets
System.Security.SecurityException”类型的异常在 Microsoft.Win32.Registry.dll 中发生，但未在用户代码中进行处理
Requested registry access is not allowed.

@xiaopizi19 Are you deploying "Files" or "Files.Package" from Visual Studio?
Please make sure you deploy Files.Package for the best results.

@xiaopizi19 what0s the value of subKeyName when you get the exception?

This issue should be resolved with #6293.

This issue should be resolved with #6293.

thanks


(BKR-180) added ability to use Beaker machine as scp middle-man for PE

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/770/
Test FAILed.

failures unrelated

We should try this out on our jenkins pe smoketest and ensure that it works.

@anodelman link to this testing is in the ticket (internal).

Final nit, update the do_install and do_upgrade yard docs to indicate the new supported option.

@anodelman done

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/778/
Test PASSed.


Do you guys have an "examples" section or a project using this state manager?

to be honest i'm still quite a nub with react with typescript, and when i tried use your state manager to fetch some data with the fetch function, I just couldn't make it work. Do you have some examples so I can read?

The closest thing right now is the examples in https://legendapp.com/open-source/legend-state/ or the documentation at https://legendapp.com/open-source/state/. As the API is stabilizing now and we're getting ready for a 1.0 release, a top priority is to build a page of larger examples.
But please feel free to post your non-working example and I can help you make it work, and we might end up using it as one of the examples on the future examples page :).

Thank you for the answer and sorry for the delay. I actually don't have the code anymore because I was just playtesting at the moment. Just to clarify it didn't work but only because I did not knew how to write, but now i've noticed that there is a fetch example in the blog.
Anyway, thank you for this library and for giving support, definitely gonna try it out better this library


[LOOP-3924] Update carb and glucose uploads to Tidepool Service to ensure consistent data

https://tidepool.atlassian.net/browse/LOOP-3924
Require provenance identifier on carb data

LoopWorkspace PR for build: https://github.com/tidepool-org/LoopWorkspace/pull/687


Wildcard version dependency pins wildcard instead of specific version

Spun off from #4263. This is a regression from 2018.11.26.
Issue description
Dependencies with wildcards get locked with a wildcard version instead of a specific version.
Steps to replicate

Run pipenv install 'example-test-package==1.0.*'

Expected result
Pipfile.lock contains:
        "example-test-package": {
            "hashes": [
                "sha256:0b164142f6adbef9d719de6885db0ead7b8af66bed3b0a2145dad75420e18a25",
                "sha256:54fec966dab3f3d4f2f5aa6d237bcd30af09a3dc7a0602da0306f39d8c625ec7"
            ],
            "index": "pypi",
            "version": "==1.0.0"
        }

Actual result
Pipfile.lock contains:
        "example-test-package": {
            "hashes": [
                "sha256:0b164142f6adbef9d719de6885db0ead7b8af66bed3b0a2145dad75420e18a25",
                "sha256:54fec966dab3f3d4f2f5aa6d237bcd30af09a3dc7a0602da0306f39d8c625ec7"
            ],
            "index": "pypi",
            "version": "==1.0.*"
        }

Updated with minimal steps to reproduce.

The problem is in pipenv.utils.get_locked_dep here:
https://github.com/pypa/pipenv/blob/b5becd8f3b4b03ca711e662c0f32f681d82d3a54/pipenv/utils.py#L1186-L1197
Looks like this was introduced by 552d1274eacbd04c61f46f639bd967d294f25e6a, which activated the (unused) changes made much earlier in a08a2da52488fa31b1e74b22211f383566fef16b.


Feature Request: Variable Damage/Heat/Tags on Attack

It would be useful for automation plugin to be able to handle attacks with variable specs derived from dice rolls such as those done by the Experimental Particle Beam Cannon.
This can be partially achieved with damage and explosive by tagging them with double square brackets like [[2d20]] to resolve a dice roll as part of the attack to at least get some rolls in the text block to apply manually, but having native support for variable hot and damage for the automation would be very useful for this as well as future books/homebrew. For other tags like Explosive, just having it resolve a number for the text display for anything in parenthesis would be super useful.

Can you elaborate? Are these two separate issues?
I dont know what you mean with your tags part. Variable heat/ep/ap is already in the module

I apologize for the vague writeup, I was trying to write it while it was still fresh in my mind but it was after a session that had run quite late.  Variable is the wrong term, it should have been worded as support for random values, and I had meant "Traits" instead of "Tags". This is likely better defined as a couple separate issues that are related to supporting random values.
Issue 1:
If the damage is derived from a die roll every attack, entered in the Systems Damage field as something like "2d20", which is what the Experimental Particle Beam Cannon System has, then the combat automation fails with this error:
TypeError: Cannot read properties of undefined (reading 'value')
at SalvageUnionCombatAutomationDamage.applyDamageToHp (applyDamage.js:98:37)
at SalvageUnionCombatAutomationDamage.applyDamage (applyDamage.js:32:39)
at SalvageUnionCombatAutomationDamage.clickDamageButton (applyDamage.js:8:14)
It would be useful if the system could roll/display the random damage in the attack message and then be able to apply it with the Deal Damage buttons.
Issue 2:
If a system/module has the Hot Trait that derives from a die roll, such as "Hot (1d20)" from the Experimental Particle Beam Cannon System, then when the attack is rolled the message still display as "Hot (1d20)", however the automation just applies 1 heat to the firing mech.  It would be useful if the system could roll, display, and apply this random amount of heat.
Issue 3:
Less important as it doesn't really interact with automation as much but if a Trait such as Explosive is entered as "Explosive (1d20)" like the  Experimental Particle Beam Cannon System, on the attack message it is still displayed as such, it would be useful if the contents of the parenthesis could be parsed, rolled, and displayed as part of the attack message if a die roll is in that field.  This one has a workaround in that I can enter the trait as "Explosive([[1d20]])" and Foundry will embed the dice as part of the attack message.


Audio is inconsistently reaching Deepgram (1/50 connections)

I am getting really inconsistent results trying to adapt this repo for my own use-case (chrome extension). Ever so randomly it does seem to connect successfully and produce transcriptions but I cannot consistently replicate it.
Audio data is being sent from the client (verified through console logs) to the  express server which is opening up a connection to Deepgram and then sending to Deepgram servers. I have checked my Deepgram logs and I always get a status 101. But the sane logs also show that the audio duration is always zero so it seems as if the server is not handing off the messages streamed from the browser to Deepgram)
As no audio seems to be received by Deepgram's servers, Deepgram is disconnecting the websocket after 10 seconds or so resulting in a 1006 error.
The audio is being streamed from the mic and seemingly the audio packets are being sent to Deepgram's servers when I check the logs)
The only glimmer of a clue that I have seems to be if the Deepgram instance is made immediately, before messages from the websocket are sent to Deepgram's servers then the transcription works. But this rarely happens and I cannot reproduce it.
However, more often than not, the websocket  sends a few messages before the Deepgram instance is created resulting in getReadyState == 2. After the Deepgram connection is made, the audio packets seem to be sent to Deepgram but they never seem to be received.
Has anyone encountered this issue? I have barely modified the express server.
const express = require("express");
const http = require("http");
const WebSocket = require("ws");
const cors = require("cors");
const { createClient, LiveTranscriptionEvents } = require("@deepgram/sdk");

const app = express();
const server = http.createServer(app);
const wss = new WebSocket.Server({ server });

const deepgramClient = createClient(process.env.DG_KEY);
let keepAlive;

const setupDeepgram = (ws) => {
  const dgConnection = deepgramClient.listen.live({
    model: "nova-2",
    language: "id",
    smart_format: true,
  });

  if (keepAlive) clearInterval(keepAlive);
  keepAlive = setInterval(() => {
    console.log("Deepgram: KeepAlive sent");
    if (dgConnection && dgConnection.keepAlive) {
      dgConnection.keepAlive();
    }
  }, 3000);

  dgConnection.on(LiveTranscriptionEvents.Open, () => {
    console.log("Deepgram: Connection opened");

    dgConnection.on(LiveTranscriptionEvents.Transcript, (data) => {
      console.log("Deepgram: Transcript received");
      console.log(data.channel.alternatives[0].transcript);
      ws.send(JSON.stringify(data));
    });

    dgConnection.on(LiveTranscriptionEvents.Close, () => {
      console.log("Deepgram: Connection closed");
      clearInterval(keepAlive);
    });

    dgConnection.on(LiveTranscriptionEvents.Error, (err) => {
      console.error("Deepgram: Error received", err);
    });

    dgConnection.on(LiveTranscriptionEvents.Warning, (warning) => {
      console.warn("Deepgram: Warning received", warning);
    });

    dgConnection.on(LiveTranscriptionEvents.Metadata, (data) => {
      console.log("Deepgram: Metadata received", data);
    });
  });

  return dgConnection;
};

wss.on("connection", (ws) => {
  console.log("ws: client connected");
  let deepgram = setupDeepgram(ws);

  ws.on("message", (message) => {
    if (deepgram.getReadyState() === 1 /* OPEN */) {
      console.log("ws: data sent to deepgram");
      deepgram.send(message);
    } else if (deepgram.getReadyState() >= 2 /* 2 = CLOSING, 3 = CLOSED */
    ) {
      console.log("ws: data couldn't be sent to deepgram");
      console.log("ws: retrying connection to deepgram");
      /* Attempt to reopen the Deepgram connection */
      deepgram.finish();
      deepgram.removeAllListeners();
      deepgram = setupDeepgram(ws);
    } else {
      console.log("ws: data couldn't be sent to deepgram");
    }
  });

  ws.on("close", () => {
    console.log("ws: client disconnected");
    if (deepgram) {
      deepgram.finish();
      deepgram.removeAllListeners();
    }
    clearInterval(keepAlive);
  });

  ws.on("error", (error) => {
    console.error("ws: error occurred", error);
  });
});

app.use(cors());

app.get("/api/status", (req, res) => {
  res.json({ status: "ok" });
});

const PORT = process.env.PORT || 3000;

server.listen(PORT, () => {
  console.log(`Server running on port ${PORT}`);
});

My logs back from Deepgram. But not super useful other than to tell me no channel was created.
Server running on port 3000
ws: client connected
ws: data couldn't be sent to deepgram
Deepgram: Connection opened
Deepgram: Metadata received
{
  type: 'Metadata',
  transaction_key: 'deprecated',
  request_id: 'b4f36b87-0832-4f62-8bdb-7d5128068f97',
  sha256: '33a3f071d9fc223ff0d386ec54c047977c0ac1ace65bea9c2b91e76aeaef5607',
  created: '2024-07-09T07:09:52.231Z',
  duration: 0,
  channels: 0
}
Deepgram: Connection closed
/home/runner/Deepgram-v1/node_modules/websocket/lib/W3CWebSocket.js:111
        throw new Error('cannot call send() while not connected');
        ^


Release 1.6.2

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

It looks like the 'hyperspy' output doesn't have any tests.
It looks like the 'hyperspy-dev' output doesn't have any tests.

I have a branch which adds python 3.9 but there are conflicts with this branch. Shall I make a new PR?

This is the branch: https://github.com/ericpre/hyperspy-feedstock/tree/1.6.2

Closing this one then.

https://github.com/conda-forge/hyperspy-feedstock/pull/52


August Connect Version?

https://medium.com/@nolanbrown/august-lock-rest-apis-the-basics-7ec7f31e7874
Have you considered doing a ST integration using this? I wanted to try but don’t have any experience developing device handlers or apps.

Reverse engineered the same way the guy did and August team objected doing so - formally asked them. I just gave up using my August for now as moved to another place and don't have any here to test.
But in theory it's doable. Only problem is that the bridge is really slow.

But they didn’t object to the raspberry pi integration?

If one wanted to take on such a task (I do know how to code, but I know nothing of the ST platform), how would one go about it?


Allow disabling compression when saving analysis

This is a thing that was on my compile-to-jar PR but we decided to leave for later, so here it is.
This adds an option to disable zip compression while storing analysis. It allows to save some time when storing the analysis if the space is not big of a concern.
It is implemented through system property. Makes it easy to enable globally and does not require changing the API, but I am open for suggestions how to do it better.

To validate this pull request against other sbt modules, please visit this link.

closing for inactivity. happy to reopen if activity resumes


email/password support

I see email/password support mentioned a few places:
https://github.com/bwmarrin/discordgo/tree/master/examples/pingpong
https://github.com/bwmarrin/discordgo/tree/master/examples/dm_pingpong
https://github.com/bwmarrin/discordgo/tree/master/examples/avatar
but its not clear how to create a session with email/password.

Email/password authentication is considered self-botting, which is against ToS. We no longer support it. The right and only way to create with a token prefixed with Bot  or Bearer  (when doing OAuth2)
However thank you for noticing its mention in examples, it'll be removed.

OK thats fine, but how do you get a token? I checked here:
https://github.com/bwmarrin/discordgo#readme
and here:
https://pkg.go.dev/github.com/bwmarrin/discordgo#New
and its not explained.

ah I found this:
https://github.com/bwmarrin/discordgo/blob/master/docs/GettingStarted.md


3.0 decorator subclass properties

Fixes https://github.com/lit/lit/issues/4191
This is a fix, so the problem and most basic solution can be reviewed.
I'm not entirely happy with it since it requires another instance field and increase the size a bit. I'm going to refactor finalize() and __collectMetadata() to hopefully make finalization make more sense and get the size down some.
I made a new PR from https://github.com/lit/lit/pull/4201 so @AndrewJakubowicz can be added as a reviewer.

I refactored finalize() and __collectMetadata() and got this down to a +59 byte change.
I also cleaned up the shadowed property check so that it uses the elementProperties keys instead of a dev-mode-only separate set, which had the same keys.


Ensures styleguide is always 'style guide' in readme

As it says in the PR title. There was a lot of inconsistency in the readme between "style guide" and "styleguide". This ensures that they all use "style guide" where applicable. This does not touch filenames, paths, or options within the readme.

LGTM :+1:

I did this once too ;-)


Update Integration tests to use their own topic

Background
In our /tests folder we have integration tests, they each do something like testsupport::get_brokers_and_topic where it returns whether to skip, the brokers, and the topic to use. The test skips if no env variables are set, and the broker url and the topic are set as env variables.
We want to update the tests so that they create a topic with the same name as the test, like [testname]-integration and then delete that topic after running.
This will help our tests run in isolation and not be affected by other tests or previous runs.

Hey @hgm-king I think this is up my alley. If we sort out the current pull request, I will like to work on this issue.

@morukele you bet!

Will wait for you to merge the other PR before I go ahead with this!

You got it! sounds like a nice idea

@hgm-king created a PR for this #90