generate docs

This adds the Makefile command to generate docs from the hello_world.hpp file and all subsequent .hpp files in hello_world/.
I also found it rather confusing to have everything stuffed into a mapbox directory and namespace, so pulled everything up a level.
cc @springmeyer @GretaCB

I'm pretty happy with this, including the cldoc generation method.
👍 👎 from @springmeyer and @GretaCB would be excellent. Once merged, I'll tag a release 0.0.1 so we can get it up on Mason and include in the node-cpp-skel.

I also found it rather confusing to have everything stuffed into a mapbox directory and namespace, so pulled everything up a level.

👍

👍 🚢


[REQUEST] update sample code

What would you like to have implemented?

the example code uses:
context.succeed(result);
I had some issues using aws api gateway which went away after I replaced context.succeed by doing callbacks as explained here https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html.
I couldn't find any documentation on context.succeed either so it might be deprecated?
https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html
Why would it be useful?

less troubles with api gateway?

Agree.
Please create an example with local (serverless offline) and remote. That would help a lot

@unickq  - this is a slightly modified example that works for me, IF you have the right version versions in your package.json
"dependencies": {     "chrome-aws-lambda": "2.0.x",     "puppeteer-core": "2.0.x"   }
const chromium = require('chrome-aws-lambda');

exports.handler = async (event, context, callback) => {
    let result = null;
    let browser = null;
    let args = chromium.args.slice();
    args.push('--disable-software-rasterizer')
    args.push('--disable-gpu')

    try {
        browser = await chromium.puppeteer.launch({
            args: args,
            defaultViewport: chromium.defaultViewport,
            executablePath: await chromium.executablePath,
            headless: chromium.headless,
        });

        let page = await browser.newPage();

        event.url = event.url || event.queryStringParameters.url || 'https://www.example.com/';
        await page.goto(event.url, { waitUntil: "networkidle0" });
        result = await page.evaluate(() => document.documentElement.outerHTML);

    } catch (error) {
        return callback(error);
    } finally {
        if (browser !== null) {
            await browser.close();
        }
    }
    const response = {
        statusCode: 200,
        headers: { "Content-type": "application/json" },
        body: result
    };
    return callback(null, response);
};```

packages
 "dependencies": {
    "chrome-aws-lambda": "^2.0.2",
    "puppeteer-core": "^2.0.0"
  },
  "devDependencies": {
    "puppeteer": "^2.0.0"
  }

serverless.yml
service: scrapper-lambda
provider:
  name: aws
  runtime: nodejs12.x

functions:
  test:
    handler: lambda.handler
    memorySize: 1536MB
    timeout: 30
    events:
      - http:
          path: /
          method: get

lamda.js
const chromium = require("chrome-aws-lambda");

exports.handler = async (event, context, callback) => {
  let result = null;
  let browser = null;
  let args = chromium.args.slice();
  args.push("--disable-software-rasterizer");
  args.push("--disable-gpu");

  try {
    browser = await chromium.puppeteer.launch({
      args: args,
      defaultViewport: chromium.defaultViewport,
      executablePath: await chromium.executablePath,
      headless: chromium.headless
    });
    let page = await browser.newPage();
    event.url =
      event.url || event.queryStringParameters.url || "https://www.google.com/";
    await page.goto(event.url, { waitUntil: "networkidle0" });
    result = await page.evaluate(() => document.documentElement.outerHTML);
  } catch (error) {
    return callback(error);
  } finally {
    if (browser !== null) {
      await browser.close();
    }
  }
  const response = {
    statusCode: 200,
    headers: { "Content-type": "application/json" },
    body: result
  };
  return callback(null, response);
};

@bschelling  still no luck {"message": "Internal server error"}.
is there something specific needs to be configured on AWS?

@unickq hard to say without some additional information.
can you check cloudwatch logs? also if you run a test of the lambda function in aws - does it work there?  does it work for some urls and not for others?

@bschelling Might be deprecated indeed, I can no longer find it either. Will update, thanks! :slightly_smiling_face:


Restructure pages

Solves jira 275. This pr is on top of 177 pr, and would require 177 to get merged first. view attached below.

quay image quay.io/bmenghan/178


ci: improve parallel builds by basing on number of cores

With GitHub runners with more cores becoming available, adjust our CI scripts to do parallel builds with nprocs+2 instead of hard-coding. We use slightly more than the number of available cores because these builds and tests tend to be I/O bound, so they can be a little over-threaded to get maximum utilization.

No objections for a week + only affects CI == merge


how to use the api?

Hello, I had some problems when trying to use the eva algorithm. I have used the API correctly as described in the readme and paper to try to train some models on my own code, but when calling the kfac class, an error will be reported:
Traceback (most recent call last):
File "ddp_eva.py", line 218, in
main()
File "ddp_eva.py", line 135, in main
preconditioner = eva(model)
File "/ming01/exp1/kfac/eva.py", line 56, in init
self._register_module_hooks(model)
File "/ming01/exp1/kfac/eva.py", line 117, in _register_module_hooks
if backend.comm.rank() == 0:
AttributeError: 'NoneType' object has no attribute 'rank'
How to solve this?
Or can you provide a more understandable and easy-to-use use case to facilitate novices to use your algorithm?
I think this is a pretty great job and hope to get your reply, thank you!

The backend uses either Horovod or PyTorch-DDP to support distributed training, and it should be initialized in the beginning as shown below:
https://github.com/lzhangbv/eva/blob/master/examples/pytorch_cifar10_resnet.py#L141


some advise about reserved schema config key

Because some key name are reserved, such as "type", "schema", "max", ...
Why not using mongodb style commands? use "$type", "$schema", "$max", ...?

You don't have reserved words for documents. type, schema, etc. are only needed for the validation schema. You can have a schema like this for example:
>>> schema = {'schema': {'type': 'dict', 'schema': {'name': {'type': 'string'}}}}

And then you can do
>>> document =  = {'schema': {'name': 'mike'}}
>>> v = Validator(schema)
>>> v.validate(document)
True


feat(AlgebraicGeometry): the diagonal map is an immersion

Also shows that injective on points => separated
partially from the valuation criterion project

Concerning the import bump: IMO this is okay, because

the files are small so any new import means a big import change
they are leaf files
the added imports seem reasonable to me

Thanks!
maintainer merge


Wordpress Importer

Hi, could you add an option to import blog posts and categories from a wordpress website.

@FireRedDev please check this article - https://indepth.dev/how-to-migrate-wordpress-to-scully/

thank you for the article, now i know how to do it. you should maybe still think about adding an easy feature for that, as jekkyll offers it for example

@FireRedDev Can you give me an example of that ??? I never use Jekyll, but we can check and see how to create a plugin for that!

https://import.jekyllrb.com/docs/wordpress/


⚠ Bofrost.es has degraded performance

In a157748, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1084 ms

Resolved: Bofrost.es performance has improved in d7cdca2 after 20 minutes.


Experiments shld provide local text for commands too

https://github.com/Microsoft/vscode/commit/53ec5ac5b8826642653fd1f1ad62489ec563aec0#diff-90725d5e77bad319c8378b0eb8f0c17e allowed localized text for the prompts
This PR does the same for the text in the commands that show as buttons in the notifications

@roblourens ping


FPU Timing

This PR updates the pipeline count of the FPU datapaths, and sets the spill_registers at the boundary of the snitch_fpu wrapper module to the bypass mode. This change was motivated by backend runs.

I was just a bit surprised by the additional pipeline stage of the conversion unit, but I guess the missing spill registers make it necessary. @suehtamacv was it on the critical path or did you preemptively add it?

I was just a bit surprised by the additional pipeline stage of the conversion unit, but I guess the missing spill registers make it necessary. @suehtamacv was it on the critical path or did you preemptively add it?

Technically, removing both spill registers and adding one stage on each datapath reduces the total stage count by one. So unless the original design was seriously botched, we should need at least one extra stage :see_no_evil:. But we could investigate this.


[Event Request] table 39 "Purchase Line" - OnBeforeCalculateOrderDateBOC2OnValidateRequestedReceiptDate

We would like to add a new event OnBeforeCalculateOrderDateBOC2OnValidateRequestedReceiptDate in the following trigger:
        trigger OnValidate()
        var
            CustomCalendarChange: Array[2] of Record "Customized Calendar Change";
            IsHandled: Boolean;
        begin
            IsHandled := false;
            OnBeforeValidateRequestedReceiptDate(Rec, xRec, CustomCalendarChange, CurrFieldNo, IsHandled);
            if IsHandled then
                exit;

            if (CurrFieldNo <> 0) and
               ("Promised Receipt Date" <> 0D)
            then
                Error(
                  Text023,
                  FieldCaption("Requested Receipt Date"),
                  FieldCaption("Promised Receipt Date"));

            if "Requested Receipt Date" <> 0D then begin
                CustomCalendarChange[1].SetSource(CalChange."Source Type"::Vendor, "Buy-from Vendor No.", '', '');
                CustomCalendarChange[2].SetSource(CalChange."Source Type"::Location, "Location Code", '', '');
                //A108F0071.Event.ns
                IsHandled := false;
                OnBeforeCalculateOrderDateBOC2OnValidateRequestedReceiptDate(Rec, CustomCalendarChange, IsHandled);
                if not IsHandled then
                    //A108F0071.Event.ne
                    Validate("Order Date",
                        CalendarMgmt.CalcDateBOC2(AdjustDateFormula("Lead Time Calculation"), "Requested Receipt Date", CustomCalendarChange, true))
            end else
                if "Requested Receipt Date" <> xRec."Requested Receipt Date" then
                    GetUpdateBasicDates;
        end;

Event Signature:
[IntegrationEvent(true, false)]
local procedure OnBeforeCalculateOrderDateBOC2OnValidateRequestedReceiptDate(var PurchaseLine: Record "Purchase Line"; CustomCalendarChange: Array[2] of Record "Customized Calendar Change"; var IsHandled: Boolean)
begin
    //A108F0071.Event
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


fix eslint config

I think we don't eslint:recommended because main rules are handling by airbnb config


[$250][Search v1] Add ReportScreen to RHP

Section from design doc
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~017622f24b31111163
Upwork Job ID:<PHONE_NUMBER>836803584
Last Price Increase: 2024-04-18

Hi! I'm going to work on that :)

@luacmartins
I'd like to confirm that this is the expected behaviour when we open a thread from ReportScreen in RHP:
https://github.com/Expensify/App/assets/47774969/9642a71e-0278-41c5-b21f-21026056f83b

I'd love @Expensify/design opinion on whether other links clicked in the RHP ReportScreen should also open in the RHP, but I'd say let's ship the MVP the way you have it and polish this later, since this is probably not trivial and would require a decent amount of work to be implemented.

I'd say we should bring this discussion to Slack, but I love the idea of us opening up search results in the RHP. I could see us later adding in some way to like "expand" the view into the main pane (which would just take you to the Inbox/Chats page).

@shawnborton clicking on a search result row will open the result in the RHP as described in the HL design doc for Search. Now the question is if we wanna keep any navigation that happens in the RHP contained in the RHP, e.g. should clicking on a link to a task open the task in the RHP or main pane?

Ah, got it. Hmm, good question... I kind of think you'd be able to keep using the app within the RHP itself. Like let's say you open a report from Search in the RHP. Maybe you then want to open up one of the expenses, and then even edit one of the expenses. So part of me thinks we'd just let you stay in the RHP as long as you'd like?
Curious for what @Expensify/design @trjExpensify @JmillsExpensify thinks though.

Yeah I agree with Shawn—I think we should keep it in the RHP. To me, the reason why is basically about maintaining your context on the search page. Say I'm going down a list of reports/expenses I need to deal with, I find one that I want to go into to make a couple changes or leave a few comments, but when I'm done with that one I want to continue going down my list the search page.
We're also talking about including some way to "expand" or "navigate to the original" for all these items that are opened in the RHP. So if we had that for every chat/report/task/etc that was opened in the RHP, you'd always have an easy way to go to the "full" version of the thing you're looking at.

@WojtekBoman I suspect that keeping every link in the RHP context will involve quite a few changes to the navigation logic, so I suggest we break this down into a separate issue and tackle it once the basic search page is in place.

@hoangzinh sorry for the delay! I sent you an offer on Upwork!

Payouts due:

[ ] Contributor: $250 @hoangzinh

Upwork job is here.

Done!


update_info_plist does not update CFBundleName

When I use update_info_plist like this
update_info_plist(
    display_name: app_name,
    plist_path: plist_path,
    xcodeproj: xcodeproj
)

Only CFBundleDisplayName is updated as in the code here
Shouldn't it update both CFBundleDisplayName and CFBundleName?
or can just expose name params passing to update_info_plist
I know this maybe a little bit off and we can manually do it in other way but I thinks those 3 properties (CFBundleIdentifier , CFBundleDisplayName , CFBundleName) are the common ones we always change.
Thanks.

Hi @sainttail! Great to hear from you. Right now CFBundleName is handled via your language support.
CFBundleName (String - iOS, OS X) identifies the short name of the bundle. This name should be less than 16 characters long and be suitable for displaying in the menu bar and the app’s Info window. You can include this key in the InfoPlist.strings file of an appropriate .lproj subdirectory to provide localized values for it. If you localize this key, you should also include the key “CFBundleDisplayName.”


right-sidebar: Add perfectScrollbar to the right sidebar.

This adds the perfectScrollbar to the right side and theoretically
updates it any time a piece of code interacts with the sidebar and
updates the counts of users displayed in it.

Merged, after changing the item noted above.  Thanks @brockwhittaker!


Added env

added " #!/usr/bin/env bash" at the beginning of the file so that the script will also run in zsh. It currently fails in zsh.

Thank you for your contribution! 🍾
I've merged it in!


Hook for Excel Metadata

Description
Check committed files & ensure that they have had their personal metadata removed

Might be able to do it cross platform by leaning on modern office files being zips of XML in a trenchcoat


Fix typos in variables on lines 194 and 195

Thank you for reporting, I fixed this and a few other related instaces.


x:12 Y:4 Z:8, Block:minecraft:spruce_planks, Variant: default There is an unsuported block in this world and it was skipped

Not sure what the problem is. I do see references in the project, but I'm not familiar with python, so I can't actually debug this.
This happens with any mcstructure file created with the latest minecraft version (1.20.51). Not sure if this was a before issue in older versions or on what version this problem started.
P.S. I apologize for copying the comment of the person who asked about chests, but I believe the situation is the same, but with spruce boards

Mojang changed planks in 1.20.50 and I have not had a chance to fix things
yet
On Fri, Dec 29, 2023, 5:42 PM art20042 @.***> wrote:

Not sure what the problem is. I do see references in the project, but I'm
not familiar with python, so I can't actually debug this.
This happens with any mcstructure file created with the latest minecraft
version (1.20.51). Not sure if this was a before issue in older versions or
on what version this problem started.
P.S. I apologize for copying the comment of the person who asked about
chests, but I believe the situation is the same, but with spruce boards
—
Reply to this email directly, view it on GitHub
https://github.com/RavinMaddHatter/Structura/issues/217, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBUC5CIKGPXMNUZ7IZBAH3YL5IOHAVCNFSM6AAAAABBHC7ERKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DANBWGM3DGOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Fixed


Add iOS support

I need iOS support for this so I wrangled it from https://github.com/aquto/cordova-plugin-AppleAdvertising so that author should get the credit but I modified it to match your callback format. Tested on an iOS 10 iPhone.

Merge PR for iOS support.


2.3.3 is not backward compatible with 2.3.2

There are changes to public methods that make it not backward compatible.
For example
func (src *AuthenticationOk) Encode(dst []byte) []byte {
func (src *AuthenticationOk) Encode(dst []byte) ([]byte, error)
There are vulnerabilities in the previous version which are fixed in 2.3.3 but it can't be used.

The signature change is part of the fix. Sorry, no good way around it.

I understand there is no "good way" around it. The problems is this way is in most cases just unusable. Can we do something that can be used? For example just panic on error if in almost all cases error never happens.
Also if you change signatures don't we have to increase major version?

I understand there is no "good way" around it. The problems is this way is in most cases just unusable. Can we do something that can be used? For example just panic on error if in almost all cases error never happens.

I considered panic. That removes the command injection vulnerability, but replaces it with a DoS vulnerability.

Also if you change signatures don't we have to increase major version?

As I understand it, incompatibilities due to security fixes are generally considered allowable.

Also, this change was made over 6 months ago. If we were to change the method signature back now, it wold break everyone who has already made the change.


[RFC] Add as_dict alias to to_dict for DynaBox for consistency between LazySettings and DynaBox objs

Is your feature request related to a problem? Please describe.
It's possible to convert a LazySettings object to a Python dictionary with LazySettings.as_dict(), and there is an alias to to_dict for backwards compatibility. The DynaBox class inherits from the Box class which comes from a vendor. There is the method Box.to_dict()
but not .as_dict(), so there is an inconsistency for the user if the user accesses a sub-box of settings and then tries to convert to a dictionary - see context.
Describe the solution you'd like
Add an alias to DynaBox:
class DynaBox(Box):
    ...
    as_dict = to_dict

The opposite of what is done here:
https://github.com/dynaconf/dynaconf/blob/4ab518393a1f7aa72e353a485aebea2852561120/dynaconf/base.py#L424
Describe alternatives you've considered

No
Alternative
Drawback

1
Using a combination of as_dict() and to_dict()
confusing for the user

2
Using to_dict() for both LazySettings and DynaBox
seems like this is the older method and the current guidance is to use as_dict()

3
Doing only LazySettings.as_dict() and then using keys to get to dict level we want
takes away the flexibility of using dot notation to get to sub-levels of config

Additional context
nested_settings.toml
[hyperparameters]
max_depth = 10
n_estimators = 20

Examples
from dynaconf import Dynaconf
settings = Dynaconf(settings_files=['nested_settings.toml'])

print(settings.as_dict())
>>> {'HYPERPARAMETERS': {'max_depth': 10, 'n_estimators': 20}}

print(settings.hyperparameters.as_dict())
>>> dynaconf.vendor.box.exceptions.BoxKeyError: "'DynaBox' object has no attribute 'as_dict'"

print(settings.hyperparameters.to_dict())
>>> {'max_depth': 10, 'n_estimators': 20}

This looks reasonable to me.
Cant see why not.

DynaBox will go away (hopefuly) as part of #1128 #1129 this issue will be referenced on those issues so we take care this is considered on the new DictValue


Sleuth and Jaeger compete for single bean 'defaultSkipPatternBean' name

Is your feature request related to a problem? Please describe.
Having sleuth and jaeger dependencies together
plugins {
    id("org.springframework.boot") version "2.7.2"
    id("io.spring.dependency-management") version "1.0.12.RELEASE"
...
}

dependencies {
...
    implementation("io.opentracing.contrib:opentracing-spring-jaeger-web-starter:3.3.1")
    implementation("org.springframework.cloud:spring-cloud-starter-sleuth")
}

dependencyManagement {
    val springCloudVersion = "2021.0.3"
    imports {
        mavenBom("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")
    }
}

got exception

APPLICATION FAILED TO START

Description:
The bean 'defaultSkipPatternBean', defined in class path resource [org/springframework/cloud/sleuth/autoconfig/instrument/web/SkipPatternConfiguration$DefaultSkipPatternConfig.class], could not be registered. A bean with that name has already been defined in class path resource [io/opentracing/contrib/spring/web/starter/SkipPatternAutoConfiguration$DefaultSkipPatternConfig.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

Describe the solution you'd like
It would be nice if you could change name of this bean
Describe alternatives you've considered
I could use spring.main.allow-bean-definition-overriding=true but this can produce unexpected behavior in other bean definitions
Additional context
no

Have you asked jaeger to rename the beans?

Since open tracing has been copying Sleuth code for years I think it's not a lot to ask to at least rename the beans when they're doing copy paste :) I'm closing this. You can file an issue in their repo to rename the beans

Since open tracing has been copying Sleuth code for years I think it's not a lot to ask to at least rename the beans when they're doing copy paste :) I'm closing this. You can file an issue in their repo to rename the beans

Thank You for your answer


Support list type

This is for after PHPStan 1.9.0 was released :)

Nice! Thank you :)

On the other hand, this will stop make it work without bleedingEdge? We should test both...

I can split bleedingEdge tests into a dedicated test class if you prefer that

Yes, please do :)

Second thought was doing it in the Sam test class but a dedicated bleedingEdge type file. I'll see what works best

Needs to be a separate file akin to tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTest.php. Because you need to return different getAdditionalConfigFiles.


Dilon/Mikey submission

this is our work completed so far... struggled with a merge conflict in the middle :(
Please let us know if there is anything else you need

can our latest pull request be added to our submission?

All you should have to do is push to your branch and this PR will get updated


kubens not working on macosx

Hi guys,
Unfortunately kubens does not work on my MacBookPro (macOS Mojave 10.14.5).
I tried with minikube ...

... and with a gke-cluster of one customer ...

it simply does nothing :(
What am I doing wrong?
Do you need more info?
Thanks in advance!

I'm really sorry! I haven't noticed that another tools is currently using kubens as alias.


Update the MessageQueue and add unit test for it.

This commit makes the following changes:

It adds a unit test for testing different MessageQueue operations.

It modifies how the MessageQueue/Message store/determine the lists (the kListAll  is maintained by the message pool and the kListInterface is accessed  from the MessageQueue associated with the Message).

It modifies the underlying list implementation to use a circular doubly  linked-list.

These changes are indirectly related to Issue https://github.com/openthread/openthread/issues/1047 (preparing to add Priority level to Messages and a priority queue implementation compatible with current MessageQueue).

Current coverage is 72.31% (diff: 94.23%)

Merging #1089 into master will decrease coverage by 1.24%

@@             master      #1089   diff @@
==========================================
  Files           124        127      +3
  Lines         16804      17838   +1034
  Methods        2360       2482    +122
  Messages          0          0
  Branches       2029       2165    +136
==========================================
+ Hits          12362      12900    +538
- Misses         3837       4275    +438
- Partials        605        663     +58

Powered by Codecov. Last update bab5c26...2a94622


[develop] Remove test directory in kimchi/js

Fix https://github.com/MinaProtocol/mina/issues/13771
Related to https://github.com/o1-labs/snarkyjs/pull/1054 and https://github.com/MinaProtocol/mina/pull/13772

Closing, see https://github.com/MinaProtocol/mina/issues/13771#issuecomment-1731186314


Issue with GF180 PDK and symbols import into Xschem and incompatibility with definitions in sm141064.spice

Expected Behavior
ngspice needs to run with no errors
Actual Behavior
error:

##NETLIST
** sch_path: /usr/local/google/home/nigelcoburn/MixedSignal/Designs/TopLevel_oscillator.sch
**.subckt TopLevel_oscillator
X1 VDD GND Vout Vin Buffer
Vdd VDD GND 1.8
.save i(vdd)
Vin Vin GND pulse(0 1.8 1ns 1ns 1ns 4ns 10ns)
.save i(vin)
**** begin user architecture code
blabla
.tran 0.01n 1u
.saveall
name=TT_MODELS1 only_toplevel=false
.include /usr/local/google/home/nigelcoburn/MixedSignal/silicon-env/share/pdk/gf180mcuC/libs.tech/ngspice/design.ngspice
.lib /usr/local/google/home/nigelcoburn/MixedSignal/silicon-env/share/pdk/gf180mcuC/libs.tech/ngspice/sm141064.ngspice typical
**** end user architecture code
**.ends

expanding   symbol:  Designs/Buffer.sym # of pins=4
** sym_path: /usr/local/google/home/nigelcoburn/MixedSignal/Designs/Buffer.sym
** sch_path: /usr/local/google/home/nigelcoburn/MixedSignal/Designs/Buffer.sch
.subckt Buffer VP VN Y A
*.iopin VP
*.iopin VN
*.ipin A
*.opin Y
X1 VP VN net1 A Inverter
X2 VP VN Y net1 Inverter
.ends

expanding   symbol:  Designs/Inverter.sym # of pins=4
** sym_path: /usr/local/google/home/nigelcoburn/MixedSignal/Designs/Inverter.sym
** sch_path: /usr/local/google/home/nigelcoburn/MixedSignal/Designs/Inverter.sch
.subckt Inverter VP VN Y A
*.ipin A
*.iopin VP
*.iopin VN
*.opin Y
XM3 Y A VP VP pfet_03v3 L=0.28u W=0.22u nf=1 ad='int((nf+1)/2) * W/nf * 0.18u' as='int((nf+2)/2) * W/nf * 0.18u'

pd='2int((nf+1)/2) * (W/nf + 0.18u)' ps='2int((nf+2)/2) * (W/nf + 0.18u)' nrd='0.18u / W' nrs='0.18u / W'
sa=0 sb=0 sd=0 m=1
XM4 Y A VN VN nfet_03v3 L=0.28u W=0.22u nf=1 ad='int((nf+1)/2) * W/nf * 0.18u' as='int((nf+2)/2) * W/nf * 0.18u'
pd='2int((nf+1)/2) * (W/nf + 0.18u)' ps='2int((nf+2)/2) * (W/nf + 0.18u)' nrd='0.18u / W' nrs='0.18u / W'
sa=0 sb=0 sd=0 m=1
.ends

.GLOBAL GND
.GLOBAL VDD
.end
Steps to Reproduce the Problem

Specifications

Version:
Platform:

@msaligane did you have it for OpenFASoC?

edit -  to be clear, the error persists after deleting line blala from netlist. the issue is we cannot find symbols for devices  example - pmos3p3 in our components-> /devices which is consistent with  sm141064.spice

Could this be related to https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/pull/6 ?

@proppy We do not use a schematic editor in the normal openfasoc flow.
If it is regarding "blabla", yes, my student encountered this error before, but it was resolved. If there is a syntax error while specifying the ngspice model path this happens.

@proppy - this is the path we use

@msaligane  - we cannot find pfet03v3 nfet03v3 under components ->/devices like you do in your designs. Did you do something specific in your PDK imports to xschem?
Our 0_top.sch has test_pfetxxx and these symbols have no terminals and I cannot use them in my schematics

Are you using an old version of the PDK?
The naming rule is different, in that repo, check pmos_3p3 and nmos_3p3.
We are using the latest version installed by volare. This is the version of gf180pdk:
b8c6129fb60851c452a3136c2b8c603bb92cb180
@madhulikal @StanleyAlwaysLoveYou - can you please help? Thanks!

@spnadig can you print the result of:
conda list | grep open_pdks

@proppy -
dump.txt

@proppy - this is the path we use
@msaligane - we cannot find pfet03v3 nfet03v3 under components ->/devices like you do in your designs. Did you do something specific in your PDK imports to xschem? Our 0_top.sch has test_pfetxxx and these symbols have no terminals and I cannot use them in my schematics

@spnadig - This syntax should help resolve the issue without manually deleting 'blabla' everytime.
format="tcleval(@value )" value=".lib and .include model filepaths".
Also, can you check if the path of device models in xschemrc file is referencing to the correct pdk?
In older version too, if the xschemrc file is correct, this error should be resolved.

I think the path to the model in xschemrc needs to be fixed with:
sed -i -e 's/ngspice\/models/gf180mcuC\/libs.tech\/ngspice/'   ~/silicon-env/share/pdk/gf180mcuC/libs.tech/xschem/xschemrc

Fixed with https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/pull/91


document Chronos's scheduling capabilities

Need a doc page to address the whole area of scheduling. Should be completed with #532.

What is the finest granularity of Chronos scheduling?
How to use --schedule_horizon.

e.g. from #508, "You should shorten the scheduler horizon from the default of 60s, to something like 1s to provide the scheduling granularity your test needs."

Acknowledge items like:

Chronos takes a few seconds to spin up a task.
Chronos can’t run tasks immediately after their submission.

I agree these information are missing in the documentation.


Raise ValueError for missing CNV DRCs

Re: issue #551

Hi @leehart, maybe it would be better to handle this the same way as for HMM CNV data in #575? This will be more consistent internally, and in the extreme case where funestus never has an DRC data, it will still raise an error (if you add in the additional check I suggested here).

@alimanfoo Agreed. At one time it seemed that returning None would be consistent, and then raising ValueError like this would be consistent, but now it looks like everything is falling into line, along the same one true track, moving in the right direction! 👍

Plan to handle this the same way as for HMM data in #575 and haplotypes().


fix: Update vulnerable dependencies

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:


Modal pointer events

I'd like to suggest adding pointer events to the Modal component.
The addition would be something similar to:
.modal {
    pointer-events: none;

    .modal-dialog {
        pointer-events: auto;
    }
}

The idea is to allow click events to fall through to the modal-backdrop, which is covered by modal. This is very important to allow people not using the JS library to build on top of Bootstrap.
In my case, I'm using Angular and without that bit I can't bind a click handler to close the modal when tapping the backdrop:

Thanks!

You'd probably even want to go a step further and use
.modal {
    pointer-events: none;

    .modal-content {
        pointer-events: auto;
    }
}

.modal-content rather than .modal-dialog

Just realized your suggestion doesn't scroll. I'm using modal-dialog instead of modal now:
.modal-dialog {
    pointer-events: none;

    .modal-content {
        pointer-events: auto;
    }
}

Can't do this if it disables scrolling. If there's another way, I'm happy to hear it, otherwise we probably have to close this as a won't fix.

Can't do this if it disables scrolling.

that was just my original suggestion (which I hadn't tested). @tinchou's code above does seem to work just fine in terms of not suppressing scrolling...incoming PR

confirmed that it doesn't prevent scrolling in iOS/Safari nor Chrome/Android. seems safe...

@patrickhlauke It looks to me like pointer events should be disabled on modal not modal-dialog.  Am I missing something?  I had to move disabling pointer events up a level for this to work.


explore just having every action having a full-time button

and control things just with show/hide. this means moving bindings around

I think this makes sense to explore after #80 (the emote board) since we'll need different buttons for those, and thus have to reckon with the binding issue.

Another reason to do this: eliminate the actionButtonState table. We can still keep the "lang" setup. We just won't need separate storage of state.

A reason to not do this: a lot more state in widgets instead of in our own code. I don't think this is a win.


Option to offset drawing area

Can be useful to better align visualization with background image, expecially with circle modes.
Should be a percent of area width/height, width 50% being the maximum.

https://github.com/NickvisionApps/Cavalier/releases/tag/2023.8.1-rc1


Qgoda

Qgoda has almost three github stars at the time of this writing.  Time to push it into the unofficial static site generator charts.

For convenience and the records: There is a Qgoda github repository, a Qgoda website, a github repository for the Qgoda website and an essential,  reasonable, multi-lingual, and a purist starter seed projects available.

Looks awesome, thanks! Gave you that third star :)


Verify Upcloud API access

Fail gracefully if Upcloud API access fails due to wrong username and password or if API access is not enabled for the user.

Very nice!


Mean prediction method for the GPLVM

Apologies in advance if this is not the right place to ask this sort of thing, and if this is all available in the docs. Have not managed to find it.
I am curious as to my implementation of `mean-prediction' of Gaussian process dynamics models (GPDM), which is the same as for the Gaussian process latent variable model (GPLVM). Basically, I am not quite sure I've done the right thing. I want to use this for synthesising new observation space examples.
Here's some copy and paste from section 3.1 of the paper. I will be using a MWE for the GPLVM -- but they use the same mean-prediction method.

For both 3D people tracking and computer animation, it is desirable to generate new motions efficiently. Here we consider a simple online method for generating a new motion, called mean-prediction, which avoids the relatively expensive Monte Carlo sampling used
above. In mean-prediction, we consider the next time step $\tilde{x}$ conditioned on $\tilde{x}_{t-1}$ from the Gaussian prediction:

And here follows equations (17) and (18).
This is a GPy implementation of how I think it should be done.
import GPy
import np

Y = [IMPORT SOME TRAINING DATA OF CHOICE]
D = Y.shape[1]
Q = 10 # dimensionality of the latent space
N = 1000 # number of time-steps in the training data
sample_mean = np.mean(Y[:N,:])
sample_std = np.std(Y[:N,:])
sample_norm = (Y[:N,:] - sample_mean)/sample_std # normalisation
kern = GPy.kern.RBF(Q, ARD=True)
m = GPy.models.GPLVM(sample_norm, input_dim=Q, kernel=kern, init='PCA')
m.optimize(messages=1, max_iters=10)

Or just grab one of the GPy examples from here, they should do the same thing.
A simple function for prediction then uses the trained GPLVM:
def prediction(n):
    # n :: number of examples to synthesise

    # get latent space
    X = m.X
    Kx = m.kern.K(X[0:N-1,:])
    Kx_inv = np.linalg.inv(Kx)
    N_synt = n # number of time-steps we want to simulate
    X_synt = np.zeros((N_synt,Q))
    X_last = X[-1:]

    # Mean prediction method
    X1 = X[:N-1,:]
    X2 = X[1:N,:].T
    def meanPrediction(X_last):
        k_x = m.kern.K(X1,X_last)
        meanX = np.dot(np.dot(X2,Kx_inv),k_x).flatten()
        return meanX

    # Get latent-space predictions
    for i in range(N_synt):
        X_synt[i,:] = meanPrediction(X_last.reshape(1,Q))
        X_last = X_synt[i,:]

    # Synthesised observations
    Y_synt = np.zeros((N_synt,D))
    Ky = m.kern.K(X)
    Ky_inv = np.linalg.inv(Ky)
    Y_t = sample_norm.T
    k_y = m.kern.K(X,X_synt)
    k_yy = m.kern.K(X_synt,X_synt)

    meanY = np.dot(np.dot(Y_t,Ky_inv),k_y)
    covY = (k_yy - np.dot(np.dot(k_y.T,Ky_inv),k_y))
    for i in range(D):
        Y_synt[:,i] = np.dot(covY,np.random.randn(N_synt)) + meanY[i,:]

    # Shift back to un-normalised space
    Y_synt_denorm = sample_std * Y_synt + sample_mean

    return Y_synt_denorm

@adamian do you have time to take a look at this?
Thanks Eero! My memory is that our GPDM functionality is/was rather
limited. Have you got an impression of how easy/difficult it would be to
add the functionality via a pull request, if you were confident enough to
do that it would be great so that others could benefit from your work.
Although I appreciate it may involve more structural changes than you'd be
prepared to take on, but I think @adamian can advise.
On Thu, 3 Aug 2017 at 18:41 nd308<EMAIL_ADDRESS>wrote:

Apologies in advance if this is not the right place to ask this sort of
thing, and if this is all available in the docs. Have not managed to find
it.
I am curious as to my implementation of `mean-prediction' of Gaussian
process dynamics models (GPDM)
http://www.dgp.toronto.edu/~jmwang/gpdm/nips05final.pdf, which is the
same as for the Gaussian process latent variable model (GPLVM). Basically,
I am not quite sure I've done the right thing. I want to use this for
synthesising new observation space examples.
Here's some copy and paste from section 3.1 of the paper. I will be using
a MWE for the GPLVM -- but they use the same mean-prediction method.
For both 3D people tracking and computer animation, it is desirable to
generate new motions >efficiently. Here we consider a simple online method
for generating a new motion, called mean->prediction, which avoids the
relatively expensive Monte Carlo sampling used
above. In mean-prediction, we consider the next time step $\tilde{x}$
conditioned on $\tilde{x}_{t-1}$ >from the Gaussian prediction:
And here follows equations (17) and (18).
This is a GPy implementation of how I think it should be done.
import GPy
import np
Y = [IMPORT SOME TRAINING DATA OF CHOICE]
D = Y.shape[1]
Q = 10 # dimensionality of the latent space
N = 1000 # number of time-steps in the training data
sample_mean = np.mean(Y[:N,:])
sample_std = np.std(Y[:N,:])
sample_norm = (Y[:N,:] - sample_mean)/sample_std # normalisation
kern = GPy.kern.RBF(Q, ARD=True)
m = GPy.models.GPLVM(sample_norm, input_dim=Q, kernel=kern, init='PCA')
m.optimize(messages=1, max_iters=10)
Or just grab one of the GPy examples from here, they should do the same
thing.
http://gpy.readthedocs.io/en/deploy/GPy.examples.html#module-GPy.examples.dimensionality_reduction
A simple function for prediction then uses the trained GPLVM:
def prediction(n):
# n :: number of examples to synthesise
# get latent space
X = m.X
Kx = m.kern.K(X[0:N-1,:])
Kx_inv = np.linalg.inv(Kx)
N_synt = n # number of time-steps we want to simulate
X_synt = np.zeros((N_synt,Q))
X_last = X[-1:]

# Mean prediction method
X1 = X[:N-1,:]
X2 = X[1:N,:].T
def meanPrediction(X_last):
    k_x = m.kern.K(X1,X_last)
    meanX = np.dot(np.dot(X2,Kx_inv),k_x).flatten()
    return meanX

# Get latent-space predictions
for i in range(N_synt):
    X_synt[i,:] = meanPrediction(X_last.reshape(1,Q))
    X_last = X_synt[i,:]

# Synthesised observations
Y_synt = np.zeros((N_synt,D))
Ky = m.kern.K(X)
Ky_inv = np.linalg.inv(Ky)
Y_t = sample_norm.T
k_y = m.kern.K(X,X_synt)
k_yy = m.kern.K(X_synt,X_synt)

meanY = np.dot(np.dot(Y_t,Ky_inv),k_y)
covY = (k_yy - np.dot(np.dot(k_y.T,Ky_inv),k_y))
for i in range(D):
    Y_synt[:,i] = np.dot(covY,np.random.randn(N_synt)) + meanY[i,:]

# Shift back to un-normalised space
Y_synt_denorm = sample_std * Y_synt + sample_mean

return Y_synt_denorm

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SheffieldML/GPy/issues/532, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIKWgD4v6kIDDvIIgXiFFOAvfd_QsyDks5sUgY4gaJpZM4OsxAQ
.

Wel,l it should be the same mean-prediction function for the GPLVM as well (lest I have misunderstood something).
I can take a stab at a pull request, but still need to know if this is correct or not :)


Using crashlytics and settings notifications to "NO" or false, triggers notifications

Using the latest fastlane (v. 1.25.0), after building the app with gym, I call the following:
crashlytics(groups: "Internal", notifications: "NO")

Strangely, I end up receiving the e-mail notifications (and the groups parameter works as expected). Am I doing something wrong here, or maybe it's a bug?

Could you try passing a boolean instead?
crashlytics(notifications: false)

Did some part of the documentation state to use "NO"?

I just tried using a boolean now, and it fired the emails.
The documentation here just mentions about notifications, without specifying parameters. So I checked the crashlitycs.rb action these lines and concluded that I can use string as a parameter.

I worked on an updated version of the crashlytics action - will push an update later today!

Sorry it took so long.

Fantastic, thanks for fixing it!
What exactly was the problem there?

I don't know I just rewrote the whole integration :wink:

Could you update to the latest release and make sure it works as expected? :+1:

Something is failing for me, so I'm not getting to the crashlytics action. Opened an issue here https://github.com/fastlane/gym/issues/104

So we can close this issue now, right?

Yay, the new action worked like a charm, without notifications 😃
Viva Felix!

:rocket:


Remove wercker.yml (it seems not working)

Latest wercker checks was 5fd4c0660 that 4 years ago.
https://github.com/mizzy/specinfra/commits/master?after=b2b52b4a5097eef86c2631d5ba306974534b694c+664

:arrow_down::arrow_down::arrow_down::arrow_down::arrow_down::arrow_down::arrow_down::arrow_down:

Wercker status is not displayed (I don't know the reason why), but it's still working and I confirm the status for every pull request.

Working at here: https://app.wercker.com/mizzy/specinfra/runs

it's still working and I confirm the status for every pull request.

WOW! Sure. Thank you.


Support managing clusters via a terraform resource

It'd be great to support managing the new clusters feature via terraform resources 🎉 Thanks!

@com6056 thanks for the request! We're looking in to adding support for this, there are a couple of dependencies that'll need to be completed first, but we hope to get to this soon. I've penciled it in for this month, but that window may change depending on the resources we are able to allocate the dependencies for this.

Hey @com6056 just an update, we should have this ready to release by the end of this month 🤞

@WBrettDavis we’ll take a look today. Most things should have been merged in to main for this to now be supported.
Those of us who “own” the provider are Australia based, so we’ll look at this in a few hours and release this week if we can.

Hi @WBrettDavis we have merged in resources for cluster and cluster queue. We are still working on cluster agent tokens though. We are also working on a datasource for clusters. I don't think those will get merged this week but the following week and then we will cut a release with full support for clusters.
We are implementing support for import though so you could create the cluster and start using it and once we release, you can import it into state

@jradtilbrook and @mcncl Thanks for the update! We're currently using clusters in the way you described - creating them by hand, and then creating the agent queues in Terraform by filling in the cluster ID parameter manually. It'll be great once we can get all of this into Terraform though

@WBrettDavis I just realised that you won't be able to import cluster agent tokens. We don't show the token values after creation so it's impossible for terraform to import them with a token value, and without that, the resource is fairly useless. That will be the only resource you would have to recreate once we release cluster support. Clusters and cluster queues themselves support importing.
We are hoping to actually release this in a few hours as well 🙌

Alright its good to go! We've released https://github.com/buildkite/terraform-provider-buildkite/releases/tag/v0.20.0 with support for clusters


Service client Call and CallAsync APIs do not have a timeout argument

Describe the bug
The APIs in ecal_client.h for CServiceClient::Call and CServiceClient::CallAsync do not have a timeout option. It doesn't appear the user has any way of bounding the time that the operation takes. This makes it more challenging for application code to be robust against missing or unresponsive services.
To Reproduce

Initiate a Call to a very long running service handler

Expected behavior
The client call fails after a user-specified timeout and signals the timeout to the application.
Desktop (please complete the following information):

OS: Ubuntu
Version 20.04

Additional context
Add any other context about the problem here.

Hi @rex-schilasky I actually have a fair bit of ASIO experience and I have implemented timeouts as well, so I'm happy to provide guidance.
The pattern I've used before was to kick off a timer with the IO request.
If the timer expires first, then it aborts the pending IO operation, and then the IO callback will get an "operation aborted" error, which you can treat as a timeout condition.
If the IO operation completes first, you can cancel the timer. You would have to couple a timer operation with each IO operation.

When I say "It aborts the pending IO operation", I mean invoking cancel() method such as from: https://think-async.com/Asio/asio-1.18.2/doc/asio/reference/basic_stream_socket/cancel.html

Oh, and I should mention that the timer and the socket operation should happen on the same event loop (same io_context) so that the timer expiration and the IO operation can't truly simultaneously complete. One always comes first. This avoids potential race conditions.

Hi @bsirang, I will start to work on that issue now. It will be part of an eCAL service / client API redesign. See PR #427. I will change the signature of the blocking service call API first and add a timeout event to the new EvenCallback logic. Let us discuss here how to implement the timeout logic the right way.

Hi @rex-schilasky I appreciate the update! I'm happy to look at any code you point me toward and/or discuss implementation details. Cheers.

@bsirang I started with a redesign of the eCAL server/client API now. There is a new timeout_ parameter, can you please check ecal_client.h ? Does that fit for you so far ?
Additional there is a new event callback logic, that can be used to get informed for connect and disconnect but for timeout events as well.
Next step is to finalize the API in all variants (C++, C, Python), after that it would be great if you could give some support how to implement the timeout logic the right way. Best, ReX

The API with timeout_ looks reasonable to me. I did notice you included a default value int timeout_ = -1 in the Call method but not CallAsync of CServiceClientImpl. I wasn't sure if that was intentional or not.
Yes let me know when/how you want to discuss the implementation.

The API with timeout_ looks reasonable to me. I did notice you included a default value int timeout_ = -1 in the Call method but not CallAsync of CServiceClientImpl. I wasn't sure if that was intentional or not.

It wasn't intentional, thank you - corrected now. Do you have any kind of simple ASIO based client / server sample supporting timeout client calls ?

I did attempt to wrap eCAL's service client with timeout functionality. It hasn't been rigorously tested: https://github.com/agtonomy/trellis/blob/master/trellis/core/service_client.hpp
The timer that's created on line 45 is asio-based. The eCAL service call response handler uses asio::post to invoke the user callback on the event loop.
This code demonstrates the high-level strategy where the timeout timer callback retains a handle to the client, and the client response callback retains a handle to the timer. Whichever one fires first aborts the other and calls back to the user. Note the comment on line 48 because there wasn't an API to abort a pending async call.

Thank you, will check this now.

I'm using with success this feature, I hope it will be incorporated in the next official release.

I'm using with success this feature, I hope it will be incorporated in the next official release.

Glad to hear that. This fix will be part of eCAL 5.10.

Will be part of the future 5.10 release.


feat(generator): let user copy directory trees with install

Codecov Report

Merging #132 (4ac8bb2) into main (cd0138a) will increase coverage by 0.12%.
The diff coverage is 97.22%.

@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   94.76%   94.88%   +0.12%
==========================================
  Files          16       16
  Lines         879      900      +21
==========================================
+ Hits          833      854      +21
  Misses         46       46

Impacted Files
Coverage Δ

src/ops2deb/generator.py
93.91% <96.00%> (+0.64%)
:arrow_up:

src/ops2deb/utils.py
96.29% <100.00%> (+2.17%)
:arrow_up:

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 cd0138a...4ac8bb2. Read the comment docs.


Error when using comment on line after function declaration

If I'd write this:
def derp():
pass # replace later
Which is generated by connecting signals in the editor to scripts, the extension sees this as an error in the code analysis while it shouldn't be, mistaking it for this behaviour:
def derp():
# replace later

We should put comments upon the function declaration the plugin will generate workspace document for you.

I think this is already fix.


[14.0] ISPN-14342 Apache SSHD commons 2.9.2

https://issues.redhat.com/browse/ISPN-14342

Rebuilding as CI timedout on the last run

merged! thanks @tristantarrant !


fixed client issues

While running terraform-xenserver-provider I got few runtime errors connected to some values being nil. Here is the fix for those errors.

@amfranz can you review and merge please?

@amfranz ping. Any news when this could be reviewed and merged? I'm trying to get this provider in a good shape again.

@mborodin merged.


Update the logo layout to be above the title

Right now, the logo is a bit weirdly floating at the top left corner.
On big screens, this is quite odd:

Update the style to move the logo above the title.
Also update the css to resize the logo based on the screen size (for mobile)
Some screenshots below:
Full size

Half size

Mobile

NAK. This takes up too much vertical space. Can we keep the resizing code, but put the log just to the left of the project name?

here is a screenshot for the updated versdion:

@csimmonds if you think the new version is okay, can you please merge?
Thanks!

Looks good to me


[FEATURE] Line wrapping for ListView

Been working with cursive for the past week or so and the ability to wrap lines would be wonderful! Some of my list items can get quite long and as far as I know, there's not much I can do about it except enlarge the terminal window.

Hi, and thanks for the report!
Do you mean line wrapping for the labels? Or for the "content" view?

Hey! Thanks for the prompt reply. I actually just realized I have been using the ListView sort of wrong the whole time. I was placing the content in the label area.
I think adding wrapping for the labels would be good, but you actually solved my problem with the way you phrased the question! Apologies for any inconvenience, I'll close this thread!


Need Search Function for Courses List

Is your feature request related to a problem? Please describe.
As a user, I want to be able to quickly find the course i like so that I do not waste my time doing something unproductive.
Describe the solution you'd like
Implement a search bar to search through the courses.
Describe alternatives you've considered
N/A
Additional context
Sub-issues:

[x] #24

Finished


Improve folder structure

So i think we should create different folders for different files like for javascript we can create js folder for css files we can create css or style folder !!

Go for it, make sure to change the paths in main code


Plasma 5.17.5

Motivation for this change
Update Plasma from 5.16.5 to 5.17.5. Status: I can start a Plasma session in a QEMU virtual machine. There is one issue with the SDDM theme which I consider blocking, and one non-blocking annoyance with plasma-desktop.
TODO:

[x] Fix the SDDM theme's background. At present, the background is blank (white).
[ ] Fix the default desktop cursor. The cursor is correctly themed in other applications, but the desktop displays the default X11 cursor.

Things done

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

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

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

Hi @ttuegel, freeze is soon https://discourse.nixos.org/t/nixos-20-03-feature-freeze/5655.
I don't see too many blockers here, do you need this in 20.03?

How about giving the 5.18 beta a try to see if that solves your problem? We could then skip straight to that when it's released in a weeks time.

How about giving the 5.18 beta a try to see if that solves your problem?

The problem is almost certainly a missing runtime dependency. Going up a version is likely to introduce more missing dependencies. :slightly_frowning_face:

I don't see too many blockers here, do you need this in 20.03?

Yes, I plan to get this merged before the feature freeze for NixOS 20.03.

Well, the plasma-workspace build system appears to assume it's running in a Wayland or X session, so I hope that's not critical for the build... :man_facepalming:

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nixos-20-03-feature-freeze/5655/22

The blocker is fixed. The non-blocking issue, I realized, is due to some changes not being ported from the start-up script to the new C++ executable. I think it is appropriate to move those to the NixOS Plasma 5 start-up script, instead of the plasma-workspace package, because they are NixOS-specific. Although these are non-blocking cosmetic issues, I would still like to deal with them before merging.

The blocker is fixed. The non-blocking issue, I realized, is due to some changes not being ported from the start-up script to the new C++ executable. I think it is appropriate to move those to the NixOS Plasma 5 start-up script, instead of the plasma-workspace package, because they are NixOS-specific. Although these are non-blocking cosmetic issues, I would still like to deal with them before merging.

I believe such a change would qualify as a bugfix so you have during beta to produce such a change.

I believe such a change would qualify as a bugfix so you have during beta to produce such a change.

Yeah, you're right. I don't like merging something that I know is buggy, but at least merging this part reduces the bus factor.

I believe such a change would qualify as a bugfix so you have during beta to produce such a change.

Yeah, you're right. I don't like merging something that I know is buggy, but at least merging this part reduces the bus factor.

I opened an issue in the tracker so it doesn't get lost.


Added subscriptions.py file and updated README.md

Also added the Subscriptions file to be included in the package init.py file. But I did not edit the objecttypes/init.py file to account for the functions in the subscriptions.py file. This is because there are some keyword arguments namely idform, nameform, mixins and raw whose usage is highly ambigious. I do not know which parameter to use for which function. Please change the concerned file(s), after pulling this code, and do explain which functions require which parameters.

Hi Sanjay, thanks for your pull request. I apologize for not having more complete (or any) developer documentation. I'm working on it, and frankly didn't expect anyone to be contributing this early.
I'm happy to answer any questions you may have here.
In order to make those "objecttypes" work, you have to define them in the objecttypes module via the ZohoObjectFactory function (which is slightly documented in the code).
The name param becomes the python Class name, AND forms part of the URL for such objects, the key to the object or list of objects returned in the API's json response, and the key to the ID and the Name fields with each object. If the json response differs from this pattern, you can specify how to form the ID field and/or Name field keys.
An example from inventory (see https://www.zoho.com/inventory/api/v1/#Customer_Payments) is CustomerPayments:
Python Class Name: CustomerPayment
url: /customerpayments
object key: "payment"
id field key: payment_id

so the corresponding objecttype code is:
CustomerPayment = ZohoObjectFactory("CustomerPayment", idform="payment")

In Subscriptions, the Customer type is exposed in ZohoAPI via /customers (see https://www.zoho.com/subscriptions/api/v1/#Customers_Retrieve_a_customer). The json response when you list customers (GET /customers) is something like:
{
  "customers": [
    {
      "customer_id": "12345",
      ...
    }
    ...
  ]
}

and when you retrieve a single customer (GET /customers/:id) is
{
  "customer": {
    "customer_id": "12345",
      ...
  }
}

So you can create it like so in objecttypes:
Customer = ZohoObjectFactory("Customer")

I've already rambled on quite a bit here, and should probably put this stuff into some sort of developer docs instead.
Please, if you have the energy, take a look at the code for ZohoObjectFactory and see if you can create those objecttype entries. I'll be happy to review.

It's starting to make sense now. Although, I might take a while before I create another pull request. The subtle differences between the responses of each API is so confusing. Also, what about mixins and the raw flag in the objecttypes file?

I've just added a bunch of docs which I hope will be of help to you. I've also bumped the version, since I added a Method, so please pull and merge if you want to update this pull request.
Looking over the Subscriptions API briefly, I see that there at a couple things which will require some hacking in the core (base) classes.

Subscriptions uses a Header for OrgId, rather than a query string.
AddOn objects don't have a addon_id field, but rather have a (still unique?) addon_code.

If you have some time, please look over the docs and let me what else you need to make progress.
Peace,
-Todd


samples: bluetooth: GATT large MTU/throughput example

Is your enhancement proposal related to a problem? Please describe.
There are currently no in-tree examples of the Kconfig options and code flow required to setup a GATT connection to use a larger MTU than the default.
Given the multiple Kconfig namespaces that these options cross, a single reference example would be appreciated.
An example of the confusions and open questions from #25561.
CONFIG_BT_ACL_RX_COUNT needs to be increased from its default value of 1. CONFIG_BT_CTLR_RX_BUFFERS, which sets the default value of CONFIG_BT_ACL_RX_COUNT should however not be incremented. Do CONFIG_BT_L2CAP_TX_MTU and CONFIG_BT_L2CAP_RX_MTU need to increased? One of these depends on CONFIG_BT_HCI_ACL_FLOW_CONTROL, which should not be enabled.
Describe the solution you'd like
A variant of the samples/bluetooth/central application that additionally increases the MTU of the connection to the largest values supported by the GATT client.
The proj.conf would contain the minimal configs necessary to achieve this.
Describe alternatives you've considered
Improved documentation under:
https://docs.zephyrproject.org/latest/guides/bluetooth/bluetooth-dev.html
or
https://docs.zephyrproject.org/latest/reference/bluetooth/gatt.html
Would also be an alternative.
Additional context
The Nordic NCS repository has a GATT throughput example that does increase the MTU.
This example uses Nordics custom BT controller, which means the proj.conf is not valid for the combined controller/host builds that are the default for Zephyr.
https://github.com/nrfconnect/sdk-nrf/tree/master/samples/bluetooth/throughput

# Uncoded LE Data Packet Format:
#
# | Preamble | Access  |                           PDU (2 to 257 bytes)                         |   CRC   |
# |          | Address | LL Header |       Link Layer PDU (0 to 251 bytes)           |    MIC   |         |
# |          |         |           | L2CAP Header |      L2CAP PDU (0-247 bytes)     | Optional |         |
# |          |         |           |              |    ATT Header    |  ATT Payload  |          |         |
# |          |         |           |              | OpCode | Handle  |               |          |         |
# |  1 byte  | 4 bytes |  2 bytes  |   4 bytes    | 1 byte | 2 bytes | 0 - 244 bytes | 4 bytes  | 3 bytes |
#
# L2CAP can be larger than 247 bytes, but will be split across multiple LL packets as a result.
# ATT payloads can be larger than 244 bytes, but will be split across multiple LL packets as a result.
#
#
# Kconfig Symbols:
#     CONFIG_BT_CTLR_DATA_LENGTH_MAX : Maximum payload size of the Link Layer PDU
#     CONFIG_BT_BUF_ACL_TX_SIZE      : Maximum L2CAP PDU is limited to this value - 4
#     CONFIG_BT_BUF_ACL_RX_SIZE      : Maximum L2CAP PDU is limited to this value - 4
#     CONFIG_BT_L2CAP_TX_MTU         : Maximum L2CAP PDU size for transmission

In the meantime, here is documentation I made for others struggling with configuring this

Looks to be enough, and if there are problems with it that should be its own issue.


Headless mode

Is there a way to run this script without a screen (headless) because it can't continue when there is no screen because it tries to load up the GUI.

yes i added that feature on my fork
https://github.com/stonedDiscord/RealAndroidBot/
it's --headless and you will have to give it the --device-id


admin: set and verify instance slug

As an admin user, I want to be able to set the canonical slug for instances of works in Derrida's library, with verification that the slug is valid and that changes I make to relevant fields can be reflected with warnings about changing the slug if the record already exists.

@bwhicks this seems like it should have been part of a past release.  Did it get completed and not tested, or did we not implement it yet?

@rlskoeser When last I was looking at Derrida, this was at the team for their review. I think there was a similar issue that was approved and this may be a duplicate. I will check.

@rlskoeser Everything with the slugs is working great.
However, I kept running into a problem every time I tried to create a new copy of an existing work instance.  I tried multiple works and kept getting an error message, and I'm not sure what the problem is.

@kac3 is it possible you're running into #79? This is a bug that Ben and I identified, but hadn't prioritized for a fix (yet) because we weren't sure how important it was.  If it's a blocker for testing, then we can prioritize it for a fix.

@rlskoeser I think this might actually be a different bug.  It happens even when I try to change the copy field of an existing work instance (for example here, trying to set this as "b") that already has an associated work.

@kac3 thanks for reporting and documenting with screenshots.  I think the copy field requires an upper-case letter, but you ought to see help text to that effect, and the validation error should be more specific also.  We'll look into it.

It looks to me that this is a different manifestation of the bug described in #79 - please test both that version and this and see if it resolves the problem you were seeing.

@rlskoeser Both this and #79 are working great!


Bad indentation on space

I'm collecting some problems with the indentation here, with examples.

Enter a comment. Make sure the comment ends with character .. E.g. something like -- | This is a function.
Move the the next line. -- will be automatically added. Remove those.
Type a symbol and then space. E.g. fun. The line will be indented. Final code will look like:

-- | This is a function.
  fun  -- this shouldn't be indented

In this code:
data Test = Test
  { x :: {-# UNPACK #-} !Int
  , y :: Int
  }

I want to unpack y too, so I move the cursor right before Int and type {-#. At this point when I add a space the line gets indented like this:
data Test = Test
  { x :: {-# UNPACK #-} !Int
         , y :: {-# _Int
  }

(_ indicates the cursor)
The line isn't indented back after the pragma is completely added:
data Test = Test
  { x :: {-# UNPACK #-} !Int
         , y :: {-# UNPACK #-} !Int
  }

Suppose I have this:
main :: IO ()
main = do
      -- blah blah blah
    line1
    line2
    line3

I want to comment-out line1 and line2, so I move my cursor to the beginning of line1 and switch to vertical insert mode, selecting the l column of line1 and line2, switching to insert mode with I and typing --. Once I insert that last space, things get indented and I get this:
main :: IO ()
main = do
      -- blah blah blah
      -- line1
    li-- line2
    line3

This is a bit hard to explain, so I recorded it here https://asciinema.org/a/5h44shozwdzmla82t6a8nqvn2

(more will come here)

I'm planning to collect examples where the indenter does things one does not expect in this thread. Additionally I'm going to push fixes to the branch indentation. Indenting is hard and very brittle, I'm thankful for edge cases where things fall apart since I can only check if it's behaving correctly for the code I write.

(I haven't tried the indentation branch yet, but I added one more example here because it looked quite different than the first example)

Thanks a lot, it looks like I didn't handle the pragmas and block comments correctly when checking for nesting. I've pushed another fix on the indentation branch that should deal with these. Please give them a try and tell me if that fixes the issue for this case.

I'm afraid I don't understand the comment indentation example. You start with a somewhat unusual example:
main :: IO ()
main = do
      -- blah blah blah <- why is this indented at all?
      -- line1
    li-- line2
    line3

The indenter aligns by looking at the previous line is you indent that it will use that line to do the indentation.

No problem. Thanks for bringing these issues to my attention. If you find anything or have an idea how we can support more unusual indentation styles without breaking things and without diminishing convenience just let me know. I will leave this issue open for a while just in case you find something else that bothers you :)

By the way, these changes are now on master.

I ran into a similar case:
foo =
  { field = bar "("
  }

... insert a comma directly below the {...
foo =
  { field = bar "("
                 ,
  }

... and it jumps forward, beneath the `(`.

Is this also covered by the changes you made in `indendation`?

I have pushed a change onto the indentation branch that should deal with this. Can you check if this fixes your problem and maybe take a look if something else breaks because of this?

Sure, but I'm (embarrassingly) not exactly sure how to test the changes. I use vundle to manage my vim packages and I don't believe there's any support for pointing at a particular branch/commit hash. It just downloads master/HEAD.

Doesn't vundle keep git repos of the plugins? If so you could simply fetch the branch and check it out manually.

Ah, it does. Looks good, thanks! I'll report any other weird behavior I come across.

I have merged this into master.

Another annoying one:
foobarlongname = [
    blah
  , what
  ,█
   ^
   Cursor here

Press space...
foobarlongname = [
    blah
  , what
                 , █
                   ^
                   Cursor here

Also, it doesn't seem to go away with g:haskell_indent_disable=1. Is that intended?

Oh, that's weird... I manually went into my plugin folder and git pull'd, now it works fine. Not sure why :PlugInstall wasn't updating properly.

This is intended behavior since I'm using comma-first and align them with the enclosing delimiter.

I'm having issues with indentation as well. Given the following code block:
    [ (NS spotify spotify (className =? "Spotify") doFullFloat ) ]

If I go to the position before the closing ] and do a linebreak and insert a comma I end up with the following code (_ is the cursor):
    [ (NS spotify spotify (className =? "Spotify") doFullFloat )
    ,_]

Adding a space would now result in the following code:
    [ (NS spotify spotify (className =? "Spotify") doFullFloat )
      , ]

Any spaces added anywhere on the line would try and match up the comma with the opening parenthesis on the first line and not the opening bracket which (in my opinion) is the correct and expected behavior.

This is indeed an interesting specimen… I have to take a closer look at that.

@xintron I have pushed a fix with 40011132d4ffae60e7a5db04faef1a198a822ad9 but I'm not quite sure why this happens, there seems to be some odd edge case regarding synstack() which I somewhat fail to wrap my head around.

I'm currently building a test suite for these cases so hopefully this will make the indentation more robust.

Issue #97 has an additional case where indentation doesn't seem to be working quite right.


Fix index option position group resolution

Description

Fix for index option position group resolution for different option contracts sharing the same underlying. Adding unit tests

Related Issue

N/A
Motivation and Context

Live index option SPX & SPXW trading
Requires Documentation Change

N/A
How Has This Been Tested?

Unit and regression tests
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

Closing since the behavior in master is expected, having 2 different option contracts SPX & SPXW, which share SPX underlying is valid to create an option strategy.


JSON-based game logs

We'll need to have logs on two levels:

Debug logs (probably via Python's logging)
Game logs, which ought to be readable outside of webots as well as Python itself

I think one of the better options would be having some JSON lines (https://jsonlines.org/) or something of that sort with action that happened (goal scored, lack of progress, robot's position restarted, ball's position restarted....) as well as some metadata, chiefly among them the timestamp at which the event took place. This would allow us to not just have historical data relevant matches but also to better navigate their recordings (i.e. it should be trivial to see all timestamps at which lack-of-progress took place for instance).
@felipenmartins @javier687 @marcodankel @Adman what do you think

Definitely agree.
This could also lead to getting some statistics of each match / entire tournament.

I totally agree with you!
Felipe Nascimento Martins
<EMAIL_ADDRESS>http://about.me/felipe.n.martins
On Tue, 24 Nov 2020 at 21:56, Adrián Matejov<EMAIL_ADDRESS>wrote:

Definitely agree.
This could also lead to getting some statistics of each match / entire
tournament.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RoboCupJuniorTC/webots-soccer-sim-playground/issues/5#issuecomment-733228693,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYDX2CQG72OVCNBZINGZDTSRQMZDANCNFSM4UADKTSQ
.

Positions of all Objects in the game can also be extracted from the websocket for the x3d viewer.

I have a quick-and-dirty python script that captures the whole game (except maybe the first couple hundred milliseconds, depending on startup sequencing) in #25

Thanks @dbscoach, that's quite useful!
What I had in mind was a set of JSON logs that would also describe various game-specific actions (i.e. goal scored, lack of progress and so on) and will probably us to change the Supervisor (such that it would emit these events somewhere).
So I guess we'll have three set of JSON-based game logs:

Low level "where is this object positioned" logs created by #25
Debug logs (probably via Python's logging)
Game logs, which ought to be readable outside of webots as well as Python itself

It's coming along rather nicely!

I see. I have only taken a brief look at the supervisor but will try to make myself useful there.
The x3d does capture the stdout and stderr of webots during the run (configurable, but I'd rather grep it out in post that not capture) so for a quick and dirty solution just print logging info to stdout and we can grep them out of the x3d-log.

I'll try to put together the wrapper real quick, so that there will be a separate file (i.e. not stdout or stderr) to which the "reflog" will be appended. Don't worry about grepping it out just yet :)


assertion for the encode item in cborparser is not accurate

The assertion has var <= 24
https://github.com/fedora-iot/fido-device-onboard-rs/blob/874b97e3236e6a3c9e57fd9ea5f4d177e3a80ab6/data-formats/src/cborparser.rs#L153
but 24 does not fit a single byte (it will be [MAJOR_TYPE|24, val]) so the assertion should be assert!(val <= 24);.
(With said, encode_item_start should support the value larger than 23 like read_len() does.)

Current code fails with the test in https://github.com/fedora-iot/fido-device-onboard-rs/pull/464 with:
---- cborparser::test::test_value_with_large_value stdout ----
thread 'cborparser::test::test_value_with_large_value' panicked at 'assertion failed: `(left == right)`
  left: `[216, 129, 1]`,
 right: `[216, 24, 129, 1]`', data-formats/src/cborparser.rs:790:9

failures:
    cborparser::test::test_value_with_large_value

It is not failed by assertion but the mismatch of the serialization.


Create a CookieYes integration for vanilla JS

Create an integration with the CookieYes consent platform for using it in vanilla JS without any frameworks, directly from the browser.
This integration should:

[ ] set a cookie that will keep cookie yes banner from automatically showing
[ ] show TIKI offer flow through the "present" method
[ ] trigger the acceptance/denial in CookieYes, after the user goes through TIKI flow.

not planned


docs - add more SQL examples (how to query database)

example:
SELECT
  substring(path,'$device/(.*)') as attribute,
  time,
  value,
  lower(units) as units
FROM history_all
WHERE
  path IN ('$device/Availability', '$device/LoadCondition', '$device/Message', '$device/FunctionalMode',
  '$device/SystemCondition', '$device/Controller/EmergencyStop', '$device/Axes/Rotary[C]/RotaryMode')

  and $__timeFilter("time")
order by time desc
limit 200

@bburns Proposed tasks have no assignees.

@MRIIOT, we might want to configure GitHub Action to auto-remove all assignees when an issue is in proposed in the project.


Create COVID ontology term subset for the hackathon (Feb 2022)

To make our COVID-related terms more explorable by the international community - in particular the participants of the upcoming COVID ontology hackathon - can we make a collection available e.g. "GenEpiO COVID-19 Ontology Slim"?

I believe this is done via Covid19 slim that shows in GenEpiO?  Outstanding question is whether to make a separate file of this?

We're eliminating slims in GenEpiO so closing this.


Add Securifi Peanut Smart Plug

Measurements not supported/tested as they require a firmware upgrade (?). Switch works though.
See https://github.com/Koenkk/zigbee2mqtt/issues/809

Thanks!


Replace function constructor with expression

To eliminate CSP 'unsafe-eval' violation (https://www.w3.org/TR/CSP/latest/#allowed-script-sources).
This change would eliminate a warning that is issued when submitting a browser add-on (which utilizes EventEmitter2) for publication.

I could not figure out how to create a unit test that would invoke this code path.
Perhaps this jsfiddle will suffice: https://jsfiddle.net/o9sg2dme/ (see change on line 52)


DynamoDB: Need methods to put/get/delete policy on table

Hello,
I need to do testing on policies associated with DynamoDB Tables (recent AWS feature).
So I create this issue to plan the implementation of:

dynamodb:put_resource_policy
dynamodb:get_resource_policy
dynamodb:delete_resource_policy

Thanks.

Hi @bruno-gialis-al, thanks for raising this? These methods are now part of moto >= 5.0.13.dev38 - please let us know if you run into any issues.


[RELAY][PASS] Common subexpression elimination

This is an optimization pass that eliminates common subexpressions. During the pass, it tries to replace an expression with a previously appeared expression with the same input and attributes. The fskip callback argument allows us to skip specific expressions.
cc @tqchen

@kazum @ZihengJiang please help to take a look

@jroesch can you manage this PR as per https://docs.tvm.ai/contribute/committer_guide.html, a good chance to test out your committer rights.

With the below code, the result is as expected.
from tvm import relay

x = relay.var("x", shape=(1, 16))
y1 = relay.add(x, relay.const(1.0, "float32"))
y2 = relay.add(x, relay.const(1.0, "float32"))
y = relay.add(y1, y2)
f = relay.Function([x], y)
f = relay.ir_pass.eliminate_common_subexpr(f)
print(f)

fn (%x: Tensor[(1, 16), float32]) {
  %0 = add(%x, 1f)
  %1 = add(%0, %0)
  %1
}

However, when I changed the code a bit as follows, elimination did not work.  Is this not a scope of this PR?
from tvm import relay

x = relay.var("x", shape=(1, 16))
y1 = relay.add(relay.const(1.0, "float32"), x)
y2 = relay.add(relay.const(1.0, "float32"), x)
y = relay.add(y1, y2)
f = relay.Function([x], y)
f = relay.ir_pass.eliminate_common_subexpr(f)
print(f)

fn (%x: Tensor[(1, 16), float32]) {
  %0 = add(1f, %x)
  %1 = add(1f, %x)
  %2 = add(%0, %1)
  %2
}

@kazum yes, it is a limitation of current implementation

Thanks, @vinx13 @kazum , this is now merged


AMPI #1214: turn on isomalloc/tlsglobals before calling user's justMigrated fn

Original date: 2016-09-20 14:56:06
Original PR: https://charm.cs.illinois.edu/gerrit/1865

Change-Id: I3b509c801652fae3e628d1d71cb363b1654df568

Supplanted by #2524

Fix moved out of #2524, see #1214 for further updates


[Patterns] MeshSync ID: Interrelating Pattern Files and MeshSync Data

See Epic: #2266
Current Behavior
Meshery, as the service mesh manager using patterns should add the annotations to the resources it creates. The propagation of the labels and annotations to the native k8s resources would be the responsibility of the OAM object (workload/trait) registrar (Meshery Server).
Desired Behavior
The implementation of this issue should result in these specific functions:
Identity

Meshery should provide a moniker against which an object’s lifecycle and actions taken against it can be tracked.

Traceability

Meshery should use that moniker to track an object’s lifecycle and actions taken against it.

Ancestry

Meshery should identify the progenitor of any given object it tracks.

Relationship

Meshery should provide relationship between cataloguing systems: MeshSync and Patterns

Implementation

See design spec

Acceptance Tests

MeshSync ID is available for both Greenfield and Brownfield managed elements.

Contributor Guide

@kumarabd @utkarsh-pro please message when you have a final proposal for review.


Fixing the set_modes logic for GAS/ELECTRIC mode

Because GAS/ELECTRIC is not treated as equivalent in WaterHeaterOperationMode.by_string() but does get mapped to ELECTRIC_MODE (or GAS) elsewhere, attempts to set such water heaters to ELECTRIC_MODE (or to GAS) would never find a matching mode string and would never set the requested mode.
While I was here, I cleaned up the if/else ladder in the function to implement the same logic with less duplicated code.

@cpcowart after lots of drama I got a workflow working to publish new release on PR merges. The version with your change is 0.1.17 you can go ahead and make the change on the HA side to get this change pulled in.


Extension Development: Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME

VSCode Version: 1.45.1
OS Version: Windows 10

Context
Load a resource like so:
const vsuri = webview.asWebviewUri(
  Uri.file(
    path.join(__dirname, "../drawio/src/main/webapp/index.html")
  )
);
webview.html = `...  ${vsuri.toString()} ...`; // this loads something from vsuri

Launch the Extension Development Host VS Code Instance and ensure that it loads this webview on startup.
You can do this by registering a custom editor that uses such a webview and open such a custom editor before closing the Extension Development Host. The next time the Extension Development Host is started, the custom editor will load the webview. This usually (>70% chance) produces the following error:
The Error

Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
I guess it refers to vscode-resource://.
It only happens on startup, and possibly only in the extension dev host. If I close the the webview and reopen it, it works (this rules out a bug in my extension).
A minimal reproducible extension is some serious work. Others have this same issue.

It actually also happens when bundling the extension and installing it manually, but much less often (like once for 10 refreshes). So it is not a development only issue.

It already happens for the markdown preview feature:

You can see that it did not load the style sheet:

I haven't managed to reproduce it with all extension disabled though. I guess this bug is timing related.

Might be fixed by #97777

Ah. Duplicate of #89038.


Updates to subset and coordinate detection

Pull Request Checklist:

[x] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes issue #230

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Documentation has been added / updated (for bug fixes / features)
[ ] HISTORY.rst has been updated (with summary of main changes)
[x] I have added my relevant user information to AUTHORS.md

What kind of change does this PR introduce?:

The subset operator for time components fails for example when selecting day 1-31 of a dataset with 360day calendar. This issue is related to #230. This should be fixed with this PR.
Some CMIP5/6 datasets feature incorrect units attributes for rotated latitude/longitude coordinates (degrees_east/north instead of degrees) and confuse cf-xarray. With this PR, coordinates are identified first by cf-xarray as usual, and if this fails, they are identified by standard_name.

Does this PR introduce a breaking change?:
No.
Other information:

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 72.454%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
1736

Relevant Lines:
2396

💛  - Coveralls


Fixing generic judgments

(Issue #214)
This was surprisingly less painful than expected; at least, it was way more painful to get everything into the state that it was than to undo that.

[x] The only thing that doesn't work yet is the derived rules machinery. I'll fix that.

I'm going to merge this, as it seems to work (and doesn't conflict with any other ongoing work). The only dark places are in the signature elaborator, having to do with things like symbol parameters... This will require some further fixing, but for now I am content to merge.


Type inference T[K] does not work properly after 4.4.4 version

Bug Report
Hi, I have a piece of code that does not work anymore. The type isn't inferenced like typescript did before
🔎 Search Terms

Type 'T[K]' does not satisfy the constraint '(...args: any) => any'
This expression is not callable. Type 'unknown' has no call signatures
typescript T[K] does not work

🕗 Version & Regression Information
It worked up to version 4.4.4. I tested with version 4.5.5 and 4.6.2 and it does not.
I tested it also with the Nightly version and it does not work.

This is a crash
This changed between versions 4.4.4 and 4.5.5_____
This is the behavior in every version I tried, and I reviewed the FAQ for entries about yes_
I was unable to test this on prior versions because _I tried

⏯ Playground Link
Playground Link with example code
💻 Code

/**
 * It creates a subtype of T having only the properties of type V
 *
 * @example ```ts
 * class Person{
 *  name:string;
 *  age:int
 * }
 * type Name=PickByValue<Person, string>;
 *
 * const form:Name = {
 *  name="Peter"
 * }
 * ```
 */
export type PickByValue<
  T,
  V,
  _Keys extends keyof T = {
    [K in keyof T]: T[K] extends V ? K : never;
  }[keyof T]
> = Pick<T, _Keys>;

/**
 * It creates a type containing all the functions of type T
 */
type Functions<T> = PickByValue<T,(...args:any)=>any>;

/**
 * Exampe class
 */
class A{
    methodA(){

    }
    methodB(){

    }
    constructor(public propA:string, public propB:string){}

}

/**
 * This worked until typescript 4.5.5
 * With this function you can wrap an api call (method of a class)
 */
function apiCallWrapper<T, K extends keyof Functions<T>>(
    service: T,
    key: K,
    ...params:Parameters<T[K]>
  ): ReturnType<T[K]> {
    // it should recognize that service[key] is a method as it did in version 4.4.4
    return service[key](...params);
  }

Output
/**
 * Exampe class
 */
class A {
    constructor(propA, propB) {
        this.propA = propA;
        this.propB = propB;
    }
    methodA() {
    }
    methodB() {
    }
}
/**
 * This worked until typescript 4.5.5
 * With this function you can wrap an api call (method of a class)
 */
function apiCallWrapper(service, key, ...params) {
    // it should recognize that service[key] is a method as it did in version 4.4.4
    return service[key](...params);
}
export {};

Compiler Options
{
  "compilerOptions": {
    "strict": true,
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "alwaysStrict": true,
    "esModuleInterop": true,
    "declaration": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "target": "ES2017",
    "jsx": "react",
    "module": "ESNext",
    "moduleResolution": "node"
  }
}

Playground Link: Provided
🙁 Actual behavior
After updating to typescript 4.6.2 from 4.4.4 it didn't work anymore. service[key] is inferenced as unknown and T[K] is not properly inferenced.
🙂 Expected behavior
T[K] and service[key] should be of type (...args:any)=>any (function)

See https://github.com/microsoft/TypeScript/issues/47958#issuecomment-1045009026


[BP-1.18][FLINK-34955] Upgrade commons-compress to 1.26.0.

Backporting #24580 to 1.18.
cc @slfan1989

The Azure CI run is marked as pending even though it has succeeded. Merging.


Silence stderr output on *BSD

Without this, all my cronjobs, servers etc will always output to stderr:
hostname: unknown option -- f
usage: hostname [-s] [name-of-host]

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

Thanks for your submission, @frenkel! Our team is discussing your contribution internally and will be back in touch with more details soon.

@angelatan2, @fallwith  - Let's take a look at the failed .github/workflows/label_community_cards.yml build tomorrow

Hi @frenkel! We've decided to add this to our codebase. Before we merge it in, could you let us know what specific BSD you encountered this issue on?

Hi @kaylareopelle, great to hear! I’ve seen this on OpenBSD and it fixes the issue there. Thanks!

Thank you, @frenkel - OpenBSD's hostname definitely doesn't support the -f switch. Merging.
For posterity for future reviewers who come across this PR:

We probably should standardize on the use of a CLI helper that automatically handles stderr, but for now there is already precedent for the use of directing to /dev/null elsewhere in the codebase.
The lone CI check failure was related to the automated labeler not being able to apply a label (write access) when ran from a fork (known GitHub Actions issue with various workarounds)


Added options to longpress on set_button

Created new Bottom Modal for longpress on set
Moved delete from long press to a button within a modal on the longpress
Created options to select any from 0->target reps through long press to prevent need to press multiple times

LGTM, Ship it


when i double tap on side menu item it push view 2 times , it msut be single times.

New Issue Checklist

I have read the guidelines for contributing and I understand:

[x] My issue is happening in the latest version of SideMenu.
[ ] My issue was not solved in the README.
[x] My issue can not be answered on stackoverflow.com.
[ ] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
[ ] My issue is reproducible in the demo project.

Issue Description

You did not fill out the checklist, which means you haven't done the appropriate background work to investigate.

when i double tap on side menu item it push view 2 times , it msut be single times. what should i do.

You should search stackoverflow.com as this problem is not specific to SideMenu.

how to set MenuPresentMode viewSlideInOut to custom button

hi problem solved i used SideMenuManager.menuAllowPushOfSameClassTwice = false
this property. This is very cool side menu .I impressed very much.Quick response from ur team.


GUI development

Here are some notes for the development of the GUI.
It must be developed with wxFormBuilder, and the basic classes exported from it and then extended in the main program.
Menu
Menu choices:

creating a new machine
saving a machine
loading a machine
quitting
about

Setup Tab
File: wxTabSetup
Machine:

nodesNumber
portName
baudRate
interfaceType

Nodes (each Node has a sub tab):
File: wxNodeTab

axisNumber
axisName
linear  = wx.RadioBox
rotary  = wx.RadioBox

Test Tab
File: wxTabTest
Testing the connection with the node

Move each node with a slider wx.Slider
If rotary node, use this widget
Gauge for position?

CAM Tab
File: wxTabCAM
Create/send CAM jobs:

1 node = 1D (+time)
2 node = 2D (+time)
3 node = 3D (+time)
4 node = 4D (+time)

The CAM tab should let users add their own Python scripts... or load scripts from a folder in the app, where students can add their machine scripts

There should be a second tab "Identify nodes"


Fix Chinese input problem

Fix Chinese input method collaborative content is not correct

I re-submitted a PullRequest at here.
thks

Because we are all collaborative editors in Chinese.
Can U send a new version as 1.8.5?
thanks!

Thanks. Merged and released as 1.8.5.
As an aside, this code will be superseded again in the near future by the 1.9 release (in the composition branch), which fixed this issue in a different way.

Yes, we will conduct more tests in the Chinese environment, and will continue to pay attention to your progress, hope to maintain communication and make a contribution to prosemirror!


[Question] Support for mark-and-sweep without automatic marking?

Hi, cool bot. I'm curious if there is a configuration option that prevents this bot from deciding to mark issues stale by itself, instead relying on project maintainers to mark issues manually stale? This way maintainers can decide what issues get to live forever, and which will be automatically closed with no further action once the stale label is added. I did not see such an option in the configuration example.

K


Fixed NullReferenceException in ShadowManager.KryptonFormOnClosing

Hi Peter - thanks for your great work on the Krypton suite. I've just switched over from Phil's original commercial product to your 4.7.2 NuGet package and it's looking great so far.
I experienced a NullReferenceException in my application today, in the method "ShadowManager.KryptonFormOnClosing". Some of my KryptonForm windows have the UseDropShadow property set to false, so I suspect that would mean shadow forms aren't created.
I haven't been able to reproduce the issue (it seems to be a race condition, maybe my form was closed before being shown) but I can see only one possible way it could occur, so I've fixed that. If there is a chance that the _shadowForms array could contain null entries, let me know and I'll update the fix to protect against that too.
Cheers,
Dave.

Hi @dave-w-au
Thanks for the fix, I have also added it to the main 5.470 branch as well.

Out of interest, how often do you publish NuGet package updates?

Every time there are fixes to controls. Normally I try to drop new releases at the beginning of the working week i.e Mondays.

That's great, thanks Peter. If there is any chance of you pushing an updated build containing the fix this week, I'd greatly appreciate it. If it's a hassle, let me know and I'll reference my forked version until you're next able to run the build.

Yes sure, probably be tomorrow when I'll push a new update if that's ok.

Sounds great... and very much appreciated!


Sound effects downloaded from the category cannot be played

I tried download new sound from the category. However, the downloaded sound effects do not play. No sound after mouse click on the new sound effect, but the original sound effect can be played.
There is no sound when you click on a new sound effect (elevator music).

Click on the original sound effect which can be played.

version: <IP_ADDRESS>, downloaded from Microsoft Store.

Can you try deleting it and then downloading again? Or does this always happen?

First of all, thank you for the great app.
I think I may know the reason, it may have something related to the installation locations.
When I install the software on a non-C drive (like the D drive) and download the new sound effects, the sound effects can not play normally.
When I install the software on the C drive and download the new sound effects, the sound effects can play normally.

Interesting. How did you download the app to a non-C drive? I will try to replicate the issue

Oh, I just download the app from the Microsoft Store, and then move the location of this application to the D drive in the settings . (Settings->Apps->Apps & Features->find Ambie->3 dots->move).

Closing ticket since it's specific to moving the installation path, which is currently an edge case. If this issue occurs for more people, I'll reopen