how to close a window without titlebar

hello,
i can't figure out how to close a window from javascript code.
(i am on a mac and have the windows titlebar disabled)
i saw that there is some _close method on the windows cpp side, but that doesn't seem exposed to js.
thanks in advance for any help.

Hello.. thanks for using Neutralinojs. Please use Neutralino.app.exit() function for closing the window. There is no window.close method since a Neutralinojs app typically consists of one native window. Please check native API documentation more details.

Thanks shalithasuranga for your reply.
I missed the part in the window.create documentation which states that every window is treated as a seperate app.
Coming from electron, i didn't expect that and I will try to wrap my head around the different concept.
This issue can be closed, i think i will soon come up with some new ones :)
So far I like working with neutralinojs. Thanks for providing it.

Hello @monsterkodi, welcome and thanks for using Neutralinojs :tada:


how to put the static resources for every module?

in  Modules/MyModule/..., how to put 'css,js,images...' and use them?
thank you

each module has an Assets folder by default where you can put assets in.


In dev mode, spurious console warnings: CoreText note: Client requested name ".AppleSymbolsFB"

With Electron 10, when in development mode, Kui now spews out such messages:
Electron Helper (Renderer)[40622:427791] CoreText note: Client requested name ".AppleSymbolsFB", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].

We are not alone: https://github.com/cypress-io/cypress/issues/7245

For us, at least, this is caused by using cli-spinners. The characters used by this npm apparently are not supported by our default theme fonts.


feat(pruned-client): implementation of pruned bitcoin node support in the vault, with electrs querying for issue requests

As per title.
Outstanding question is integration testing. Bitcoin refuses to prune blocks for a very long time - even when issuing a manual pruneblockchain rpc call. It doesn't seem realistically possible to create a situation with a pruned transaction during a test run - not without either forking bitcoin-core to see if this behaviour can be patched for more aggressive pruning, or investigating if manually deleting block data may work. A "normal" integration test for the vault would just mock bitcoin-core to return "success" which seems totally useless given that the critical functionality is specifically importing the tx into the bitcoin wallet, hence this PR currently has no tests. I'm open to discussion on this.

Looking good, only major point is whether we implement the same import logic when subscribed to issue events.

What do you mean - as in switching to looking up electrs for new issue requests that come in while the client is running? If so then I don't really see the sense in that, we're always gonna have the very recent transactions available in bitcoin core and it's more reliable and faster to query the local daemon than try to make a remote network request.

Have you looked into the pruneblockchain rpc for testing?


Fixes #10711 - Fixing warning while executing expand select action on an empty page

Fixes #10711

Hi @ramamurthynagaraj, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

LGTM. Thanks for the contribution


Upsert does return invalid inserted_at, which is always current timestamp

I have a bit of a problem, and I created very crude integration test on ecto_sql repository to demonstrate the problem with.
In short, if do upsert, with :replace and a list of columns to replace on conflict, the returned struct from insert is has, in addition to replaced column, updated inserted_at field.
The field in database does not get updated, which is correct. The only problem is that the value in struct returned to user from upsert is invalid.
Please have a look at this test, which currently fails on my master:
  test "should perform upsert without touching inserted_at timestamp and return correct value" do
    {:ok, u1} = PoolRepo.insert(Upsert.changeset(%Upsert{}, %{note: "Hey there"}))
    :timer.sleep(2000)
    {:ok, u2} = PoolRepo.insert(Upsert.changeset(%Upsert{}, %{note: "Hey there"}),
                                on_conflict: {:replace, [:note]},
                                conflict_target: :note)

    assert u1.id == u2.id
    assert u1.inserted_at == PoolRepo.get!(Upsert, u1.id).inserted_at
    assert u1.inserted_at == u2.inserted_at

Link to my commit containing the test:
https://github.com/hubertlepicki/ecto_sql/commit/7cc6f30968d176d68c56147e6f8fef3c86696a21#diff-88da18ae2b478a00be1c0fe60fdfcfd0R47
this test fails with:
  1) test should perform upsert without touching inserted_at timestamp and return correct value (Ecto.Integration.UpsertTest)
     integration_test/pg/upsert_test.exs:47
     Assertion with == failed
     code:  assert u1.inserted_at() == u2.inserted_at()
     left:  ~N[2019-08-22 15:23:39]
     right: ~N[2019-08-22 15:23:41]
     stacktrace:
       integration_test/pg/upsert_test.exs:56: (test)

That's the last assertion which is failing.
In my application code, whenever I do upsert I have to reload the record from database, to have correct timestamps on them. So what I do is:
{:ok, record} = Repo.insert(....)
record = Repo.get(MyStruct, record.id)

That is temporary measure I take, but I think it's a bug in Ecto.

There is not much we can do. In case of upserts, databases do not tell us what went wrong and what failed, so you have to depend on heuristics to figure out what happened or, in the worst case scenario, reload the data exactly as you are doing. :(

@hubertlepicki can you test returning: true option? From the doc, it should set the struct with up-to-date value from database.

@chulkilee genius. This solves the issue. I saw the option but was like 'meh, it already returns the inserted struct, wouldn't do much'. And indeed if used with :replace_all it does work as expected.
Maybe :on_conflict, or - :on_conflict + :replace should trigger returning: true option to be set behind the scenes for the user, what do you think?

Maybe :on_conflict, or - :on_conflict + :replace should trigger returning: true option to be set behind the scenes for the user, what do you think?

Unfortunately it doesn't work for all DBs and that's not the only solution to the problem. For example, if you have associated data, maybe you want to load the whole record anyway. Also note these options (and the problem you originally described) are all documented in docs for Repo.insert/2. :)

/me feels stupid/
Yes it's very nicely documented indeed. Alright, I'm going to keep doing return: true as this solves the issue for me since I'm on PostgreSQL. Thank you both for all your help!

Don't feel like that because I was the one who wrote the docs and I couldn't remember about returning: true either. :P

I don't want to scare you but I think it gets worse with age...
I mostly write blog posts / forum answers to be able to find a solution to problem I just resolved in 6 months or so. The next time I have the same problem, I will find my post in Google search and bang, solution found.
I am more than sure this is going to happen with the above issue and this very thread.


Add initial support for Exchange 2019

Added basic support for Exchange 2019 detection and handling ContentIndexState no longer existing in Exchange 2019 - when you query it from Exchange 2019 it reports back as NotApplicable but when you query from an Exchange 2013 server it returns ContentIndexState as 11 instead so I have caught both of these.
I've not tested on 2016 as I don't run this, presumably it will return as either 2013 or 2019 do though.
Currently I'm just reporting 2019's ContentIndexState as just Healthy so it shows nicely as green but I guess this could be changed to show as Not Applicable and still show as green if preferred (this was just a quick hack to get the report working).

Is ContentIndexState=Applicable expected in Exchange 2019 due to the new search engine (Big Funnel)?

I think so yes, I believe the change is due them moving the Content Index State from being a Database level feature (where it has to be in sync as part of a DAG), to being at the mailbox level.
https://www.codetwo.com/admins-blog/whats-new-in-exchange-2019/#search

thanks for this, was very useful for a current 2019 deployment


Remove devguyio OWNERS_ALIASES

As per title

/cherrypick release-v1.3

/cherrypick release-v1.2

/cherrypick release-v1.1

/cherrypick release-v1.0

/cherrypick release-v0.26


Query on Extracting Points from DirectSamplingContour

Hi @MITNY-hub. Thanks for opening the issue!
Did you want to make a feature request? About extracting points from DirectSamplingContour?
Or is there an issue/bug with the current implementation?


Glog update to version 0.3.5

Part of changes from #1390

It's great to see all that simplified :). Thanks for the great PR!


Modified AE fetch phptypes test to insert only one row at a time and loop through php types

This change is

Coverage remained the same at 74.706% when pulling da07cdb29910b7a9acf64870ed20d0f07bc8f2d6 on yitam:fetchPHPtypes into 53e4da40de351070926c0fd6ddf7baaee437dd56 on Microsoft:dev.

Codecov Report

Merging #801 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #801   +/-   ##
=======================================
  Coverage   80.06%   80.06%
=======================================
  Files          25       25
  Lines        7325     7325
=======================================
  Hits         5865     5865
  Misses       1460     1460

Impacted Files
Coverage Δ

...c14/x86/php-7.1.18-src/ext/pdo_sqlsrv/pdo_util.cpp

...phpdev/vc14/x86/php-7.1.18-src/ext/sqlsrv/util.cpp

...c14/x86/php-7.1.18-src/ext/pdo_sqlsrv/pdo_stmt.cpp

...6/php-7.1.18-src/ext/sqlsrv/shared/core_stream.cpp

...c14/x86/php-7.1.18-src/ext/pdo_sqlsrv/pdo_init.cpp

...4/x86/php-7.1.18-src/ext/pdo_sqlsrv/pdo_parser.cpp

...phpdev/vc14/x86/php-7.1.18-src/ext/sqlsrv/stmt.cpp

.../php-7.1.18-src/ext/sqlsrv/shared/core_results.cpp

...-7.1.18-src/ext/pdo_sqlsrv/shared/core_results.cpp

...phpdev/vc14/x86/php-7.1.18-src/ext/sqlsrv/init.cpp

... and 40 more

Continue to review full report at Codecov.

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

I wonder if we should have this test do what it did originally to make sure there are no regressions in future once odbc 17.2 is released?

Yes @david-puglielli we can wait till after ODBC 17.2 is released.


Added jpegview and antidupl.net to software_support.md

Description
Added 2 programs for Windows now supporting jxl:

the best (imho) picture viewer - jpegview
duplicate image finder able to find similar images with different resolution, rotation, flipping - AntiDupl.NET
Also sorted image viewers alphabetically

Thanks for the contribution!
I added you name you used for the commit to the AUTHORS, feel free to also add your email if you want!


Add itemClass, wrapperClass, activeItemClass props - Improve separator prop

To make react-breadcrumbs more flexible, and as a specific use case, compatible with Semantic UI breadcrumbs, I made the following changes:

Add itemClass prop to set custom class on each item elements
Rename customClass prop to wrapperClass (with backward compat) for consistency with previous change
Add activeItemClass prop to set additional class to the active item
Make separator prop accept React element

As a result, I can use react-breadcrumbs this way and match Semantic UI syntax:
<Breadcrumbs
  separator={<i className="right chevron icon divider" />}
  wrapperClass="ui breadcrumb"
  itemClass="section"
  activeItemClass="active"
/>;

Bootstrap 4 Breadcrumbs can be used this way:
<Breadcrumbs
  separator=""
  wrapperElement="ol"
  wrapperClass="breadcrumb"
  itemElement="li"
  activeItemClass="active"
/>;

Thank you for this pull request! I'm sorry it took me so long to review it... I've done it now and it looks gooood! 👍


Push Lockout

Students are granted... developer access... when we make their repo. I think we can lock them out by changing their access level to reporter. They'd be able to pull, but they couldn't push.
Then we could unlock them, I guess. If we're feeling nice.
Links:

Access Level codes
Edit project team member endpoint

Implemented in 9a821e7


Support Composer 2.0

Implements new methods required by the updated PluginInterface.
See https://github.com/composer/composer/blob/master/UPGRADE-2.0.md#for-integrators-and-plugin-authors
https://github.com/composer/composer/issues/8726

Thanks a lot 🍻!

@onnimonni Thanks for the merge! Any chance you could release the recent changes as 1.3?

Done! Sorry for the delay

@onnimonni Thanks! Can your check your Packagist integration please? It looks like it's no longer auto-updated.


ALPS-1809 - multiresolution texture cleaning

Tried to clean better the texture and tiles in a multi resolution scene. Changed a few things, can be tested in a multi resolution sample with viewer.destroy().

 All committers have signed the CLA.


Problem with focusing number inputs when in editor (Firefox)

see https://jsfiddle.net/cmx66/ct30oavg/

edit
increase number in number input
editor crashes with exception Error: Permission denied to access property "_uuid"
cursor behaves weird afterwards

@StephanHoyer Thanks for reporting. This looks like it may be related to an FF bug and/or over-zealous same-origin policy protections. Oddly, I am only to repro sporadically using your fiddle above.
Mobiledoc uses an element map to keep track of elements that it has rendered, and uses an expando uuid property to properly keep track of them. The error you see is when mobiledoc tries to set that property on one of the elements.
Do you see this behavior when your code is running without any iframes (and not via a file:// url)?

I'm not using any iframe.
For me this happens every the time.

click the editor
enter some things (chars occur as normal on the cursor)
click the numberinput increase button
click the editor again on another position
enter some text (chars occur on the former position)

I can reliably replicate this issue as well, it's weird though - how is this any different to losing focus to anything else, we're not seeing this issue with toolbars for instance.

I just ran into this as well. Happens in jsfiddle every time for me as well (though I had to update the jsfiddle mobiledoc src link). It happens as soon as I click into the number input, no need to do anything first.
Backtrace:
get element-map.js:30
getElementRenderNode render-tree.js:28
findRenderNodeFromElement render-tree.js:54
isAddressable cursor.js:49
isElementAddressable event-manager.js:132
selectionDidChange event-manager.js:140
selectionDidChange self-hosted:988:17
selectionDidChange selection-manager.js:42
notifyListeners/< selection-change-observer.js:60
forEach self-hosted:268:13
notifyListeners selection-change-observer.js:59
update selection-change-observer.js:104
poll selection-change-observer.js:86
poll/< selection-change-observer.js:88

Looks to me like it's just mobiledoc checking to see if the node that has focus [number input] is one of its own, not actually trying to set _uuid.
It's something specific about the type='number' input. I tried a bunch of other input types and they're all fine. updated fiddle.
It does seem like it should be related to the input being in an iframe however I was able to repro without iframes & should be able to send a link to said repro tomorrow if you're interested


Add release automation

This change introduces a Github Actions-based workflow for release automation that is built on release-please.
This workflow is stateful. When there are unreleased changes on main, it generates a candidate PR for the next release based on all the unreleased changes and their implications for the versions of our packages. If such a PR already exists, it will detect it and update in place. These PRs are intended to stick around and update until a release is ready to be made. Once merged, this step will detect the merge and generate Git tags and corresponding Github releases for each package being released. Only at that time will the rest of the steps in this workflow run.
After a release is made, the workflow builds artifacts and adds them to the Github releases they correspond to. Then, it publishes our crates to crates.io.
The release workflow depends on us using conventional commits so that it can decide how to update versions over time. Its version updating logic is based on the configuration in our repository, so for the time being it will bump minor versions for breaking changes. When we are ready to go for a 1.0, we can tweak this behavior on a per-package or global basis.
Note that the workflow is currently using a fork of release-please. In the course of implementing this workflow, I discovered a bug in how it bumps versions in Cargo manifests under some conditions that apply to us. I put up a PR with a fix for consideration upstream (https://github.com/googleapis/release-please/pull/1730). When it lands, we can switch off the fork.
In addition to the release workflow, I've taken a stab at optimizing our test workflow a little bit with (hopefully) better caching and pre-built binary installation of some external Rust tools we were previously compiling from source.

Thanks @jsantell - see my thoughts below.

A guide on commits (.github/CONTRIBUTIONS.md ?) could be helpful in the future (explicitly what flags we care about e.g. fix feat chore).

Filed #118 :+1:

At least with the domains I'm familiar with, and still in flux, any issues pre-1.0 with a lot of breaking changes? Worst case scenario maybe is noosphere-ns version 0.100.0 though (or possibly minor-change bumping all crates?), though ultimately a consequence of experimental published crates.

For now, breaking changes will bump minor versions. I'm happy for us to be eager with breaking changes at this time, and I don't think it's an issue if we get to 0.112093.z of any given crate ahead of 1.0.0.

In favor of minimizing infra resources, is there anyway to only run the packaging on-demand e.g. "we want to release updates this month"? Improved caching certainly helps here (and with CI tests too). What publishing cadence do you have in mind in the current state, and in 6 months?

If we have a use-case of on-demand builds, let's figure out what it is and layer that on as an enhancement to this change!


update zh-hans

Proposed changes
Update zh-hans

Types of changes

Bugfix (non-breaking change which fixes an issue)

Linked Issues

Further comments

@xiaoluhong rebase please


Fix close event for IE

The event cycle is not completely finished before the close method is called which causes IE to not close the datepicker.

Was there some transition / animation running? Will merge it but it should be revisited later.

Hm, can you rerun the Travis build?

Bump.


msghdr.msg_iovlen is inconsistently declared in gnu and musl

While using socket API in cloud-hypervisor project, I noticed an inconsistency with msghdr struct between gnu and musl targets.
In gnu
msghdr.msg_iovlen is declared as size_t
https://github.com/rust-lang/libc/blob/0488a83dc9aba7ec0643ea45d85cc722891e8cc2/src/unix/linux_like/linux/gnu/mod.rs#L95
In musl
msghdr.msg_iovlen is declared as c_int
https://github.com/rust-lang/libc/blob/0488a83dc9aba7ec0643ea45d85cc722891e8cc2/src/unix/linux_like/linux/musl/b64/mod.rs#L98
https://github.com/cloud-hypervisor/cloud-hypervisor/pull/4642#issuecomment-1285949226 describes the error I encountered due to this inconsistency.
Is this expected? If not, could you please fix it?

Hm, glibc seems to declare it as an integer too, see the glibc header source.
(The musl one is correct, see the musl header source.)
But changing it would be a breaking change I guess...

The glibc type should be corrected to match the glibc definition, we can consider this for 0.3

The current declaration seems to be correct, the linux-specific socket.h header in glibc declares it as size_t: https://github.com/bminor/glibc/blob/b6e3898194bbae78910bbe9cd086937014961e45/sysdeps/unix/sysv/linux/bits/socket.h#L269

My bad, I looked at the generic source :disappointed:

So I suppose this issue can be closed then?

See this musl commit for the background. Essentially, the glibc version matches the one used in the kernel. Musl uses a POSIX-ly correct variant, but then zero-fills the padding in the syscall wrapper before passing it on to the kernel.
It is hard to say what the correct approach is here.


Use custom overlay snapshotter to ensure encryption

We use /persist/containerd/io.containerd.snapshotter.v1.overlayfs for overlay snapshots and this not encrypted. I move them to /persist/vault/eve.overlay.snapshotter to use encryption.
Unfortunately it is not possible to make upgrade converter for old snapshots, we should modify containerd's meta.db, but it is locked from our init process. So, I use fallback mechanism (for mount and remove, not for creating of new snapshots) to try both snapshotters if new one failed.

I am confused @giggsoff -- I've always thought we could just configure the snapshotter upfront instead of proxying it. What am I missing?

Containerd want to use metadata.db file for snapshotter (located in the directory we want to use for snapshots) and seems it is not easy to make this file available for embedded snapshotter during initialisation (we run containerd in init). So I start snapshotter as a routine inside EVE at the time we have encrypted directories available.

I am trying to wrap my head around this at a more basic (architectural) level.
It looks like (based on the code changes) we are using (or at least support) zfs snapshotter now, via proxy plugin. Is that changing? What is the path being used? Do we use overlay now and are simply changing what directory it is using? If so, then why the more complex-looking change?

Closing it with https://github.com/lf-edge/eve/pull/2524 opened


[RAINCATCH-603] Mitigate QS Vulnerability

Mitigate QS vulnerability (6.4.0)  https://issues.jboss.org/browse/RAINCATCH-603
Verified manually that the vulnerability is mitigated using snyk test
3rd Party Module Fix Status

Express  -  4.15.2

:warning:  This version should be changed to 0.0.17, as the latest published version is 0.0.16


Provide a single source of truth for wether a community's GCP cloud costs is paid by us or not

Context
There's a gcp.billing.paid_by_us boolean field in our cluster.yaml that tells us whether a GCP project is being paid for with the 2i2c credit card or the account is provided to us by the community. While this is documented, it's not well documented. Partnerships has some automation that looks at various hubs we run and scrapes it into airtable, but that doesn't pick up this field.
Proposal

[x] Go through all current clusters, and validate the gcp.billing.paid_by_us field is accurate (see https://github.com/2i2c-org/infrastructure/issues/3711#issuecomment-1977818547 for broad information on how)

Done via https://github.com/2i2c-org/infrastructure/pull/3872 and https://github.com/2i2c-org/infrastructure/pull/3873

[x] Add an item in new hub turnup to verify this information is accurate https://github.com/2i2c-org/infrastructure/issues/3853

Done via https://github.com/2i2c-org/infrastructure/pull/3946

[ ] Document this as the single source of truth
[ ] Modify the automation that partnerships has to look for this boolean value and represent it in airtable

Updates and actions
No response

@haroldcampbell, I think this one is well-specified and I see a clear definition of done, do you agree?
If that is not the case, can you drop your thoughts/requests so we can specify it better?
Thanks!

Just a note on how someone can verify if a particular project if being paid for by 2i2c or not.

On GCP, if the billing account attached to the project is https://console.cloud.google.com/billing/0157F7-E3EA8C-25AC3C?project=two-eye-two-see, we are paying for it. If not, we are not paying for it.
On AWS, if it's not part of our SSO (and hence accessible by starting at https://2i2c.awsapps.com/), it's not paid for by us.

@damianavila this feels well-defined

On AWS, if it's not part of our SSO (and hence accessible by starting at https://2i2c.awsapps.com/), it's not paid for by us.

@yuvipanda there is a gcp.billing.paid_by_us, but there is no aws equivalent. Did you have something in mind about this? Is the single source of truth for GCP projects gcp.billing.paid_by_us and then for AWS projects its something else?
Currently, the only information about a AWS account is via a comment like this: provider: aws # https://2i2c.awsapps.com/start#/.

On AWS, if it's not part of our SSO (and hence accessible by starting at https://2i2c.awsapps.com/), it's not paid for by us.

If and only if they are part of our SSO - they are paid by us? Is there / could there be a account paid by someone else part of our SSO/management account?

Great questions, @consideRatio.
paid_by_us should be added to AWS clusters as well, if it currently is only present for GCP clusters
Complete way to check if we're paying for an AWS account:
Way 1:

In our AWS SSO, select 2i2c-sandbox. Click "Administrator Access" to get web console access.
Go to https://us-east-1.console.aws.amazon.com/organizations/v2/home/accounts ('AWS Accounts' in the search bar)
If the account is here, we are paying for it.

Way 2:

If it's not in our SSO, login to the account. You should have credentials. I'll describe a way to find the account id later in the comment
Go to payment methods. If this is not accessible to you, we aren't paying for it
Look at the credit cards present, and see if it has "Chris Holdgraf" as name. If it is, we are paying for it.

My current understanding is that Way 1 should confirm everything. But we can do a round of way 2 as well to make 100% sure. After that, we can amend our documentation to set this information correctly when we create the initial cluster file. I'll take this as an action item for myself.
A consistent way to find the AWS account id for a cluster.yaml file is:

Run deployer use-cluster-credentials <cluster-name>
Run aws sts get-caller-identity. It should output a small JSON object, with an "Account" key that shows account id.

I've opened https://github.com/2i2c-org/infrastructure/issues/3853.

@yuvipanda for LEAP, it said we paid for it - but the VISA card registered didn't seem like CH's - no name were provided by the final digits didn't match either of two cards tied to CH in the AWS 2i2c-sandbox project. So - I'm switching that from true to false. Is this OK?
No other cluster's existing paid_by_us entry had to be changed.

I think this just needs documentation now to be marked as complete?

I think this just needs documentation now to be marked as complete?

I'm not sure @yuvipanda - I've failed to figure out how to figure out the details of the last two checkboxes in the PR.

[ ] Modify the automation that partnerships has to look for this boolean value and represent it in airtable

I found airtable automations that I've not before onboarded to what they are about, but I figure they maybe needs to be updated?
Airtable has the following data tables:

[ ] Document this as the single source of truth

I'm not sure for whom and where this should be documented =/

We document this in our engineering documentation as the source of truth. I think this should be in the billing section, and also mentioned wherever the instructions for creating cluster.yaml are

I've opened #3959 about this

For the airtable itself, create a separate issue, and post that in the #partnerships channel. My current understanding is that partnerships is responsible for Airtable automations, and we shouldn't touch that. Posting it there allows them to prioritize it based on their capacity and processes.

I didn't end up actionable here, and instead pivoting slightly.
I'm thinking about three places where "paid by us" may be declared:

Community contract (actual source of truth)
Using community contract info: request to setup community cluster/hub -> we update billing.paid_by_us=true (practical source of truth, needs to mirror the actual source of truth)
(optional) automation to update airtable based on a communities associated cluster.yaml and its x.billing.paid_by_us field

I assume a community contract is the actual source of truth, and any community having a hub in a cluster needs that cluster to have ...billing.paid_by_us=true - as we rely on that information as the source of truth - but really its a "mirror" or "secondary replica" of the source of truth being in a binding contract. We could then mirror info in cluster.yaml via airtable automation to some column in an airtable table - but is that helping us ensure there isn't confusion about this?
I perceive the crucial point to be that we ensure the partnership->engineering process to updated so new cluster/hub's always leads to declaring paid_by_us in alignment with the community contract.
I looked at the issue templates, but they are outdated right now - where you have a WIP for the issue template to setup new cluster/hubs? I'm not sure how to ensure that the partnership->engineering is given the information about paid_by_us except to update that.

@yuvipanda could we settle for the action point of ensuring partnership's handover to engineering to setup a cluster/hub is providing info that determines paid_by_us definitively?

What remains in this issue IMO is:

[...] ensuring partnership's handover to engineering to setup a cluster/hub is providing info that determines paid_by_us definitively

So, I figure this should be a checkbox thing for the docs/issue-template on setup a new cluster aka. phase 1.
Currently, that docs/issue-template is a WIP though and I'm not sure where to patch it.


Streamlit App for Alphabet Prediction (A, B, C) Using EEG Signals

Description
Develop a Streamlit app to demonstrate and test the prediction of alphabets (A, B, C) using EEG signal data and machine learning models.
Suggested Features

File Upload: Allow users to upload EEG signal datasets.
Feature Extraction: Automatically process and extract features from uploaded EEG data.
Model Prediction: Use a trained ML model to predict alphabets (A, B, C).
Results Display: Show predictions with probabilities and visualizations (e.g., signal plots, confusion matrix).

Expected Outcome

A functional, user-friendly interface to test EEG-based alphabet predictions.
Visualization of results for improved understanding.

Tech Stack

Streamlit for frontend.
Pandas/Numpy for data handling.
Scikit-learn/TensorFlow for ML model integration.
Matplotlib/Plotly for data visualization.

Since I have done few projects on ML I can try to fix this issue @SaranDharshanSP

I am interested @SaranDharshanSP

IAM INTERESTED ON THIS ISSUE CAN YOU ASSIGN ME THIS ISSUE? @SaranDharshanSP

Hey @Leela0o5 , you've been assigned this issue under Amrita Winter of Code! Please ensure to raise a PR by 30/12/2024, or it will be reassigned to someone else. Best of luck! 🫡

I am interested @SaranDharshanSP

Since I have done few projects on ML I can try to fix this issue @SaranDharshanSP

Hey! Noticed that you've already been assigned issues under two other repositories. Please complete those and raise PRs before requesting this issue. Excited to see your contributions! @priyansh-narang2308


authorization in custom controller

i have added  a custom controller in project. but i can not use authorize attribute to route user to login page and after login i can not detect user in asp.net context as a user.

Only suggestion is to look at our samples.


Suggest to use Map instead of plain object for faster reads

const memcache = new Map();
// instead of
const memcache = {};

You'll have to refactor a bit, but map reads are way faster than associate object reads.
I don't know how to do that in typescript though.

This was implemented in #8, thanks for the suggestion!


static class shorthand

frequently desiring to write a system. Could think of it as a class with no state, or monostate (c++ namespace with a bunch of stuff in it), or a singleton.

if we disallow mutable state, we could make a type that does a static class and make methods static. Result is functions in a namespace that is frozen
data MovementSystemData
{
   objs=[],
}

var msd = MovementSystemData();

system MovementSystem
{
    Tick(movementSystemData, dt) ...
}

MovementSystem.Tick(msd,0.1);

the missing bit here relates to #20, in a static method, you want the lang to auto locate the sibling static methods. You also want static mixins to work.


Fixes for enabling correct DEF generation.

Fixed the gpio_signal_buffering layout to change "vccd9" and "vssd9" labels to "vccd" and "vssd", which was missed earlier.  No impact other than how DEF gets written.  Also:  Fixed the script "chip_io_prep.sh", which needed to call out the names of the power supplies so that they would be written as SPECIALNETS in DEF, and also to expand the top level cell before flattening, without which routing subcell layouts won't get flattened.

@RTimothyEdwards Is this still an issue or has it been worked around?

@marwaneltoukhy :  The modified .mag file no longer exists, and the script has been updated through some other push.  So this can definitely be closed.

Thank you Tim!


Traffic maps don't save

When creating/editing a traffic map, clicking 'Save' on the map chooser doesn't seem to choose anything.

I believe they do, but no message or anything is shown to inform that has happened.

The problem turns out to be that if, while defining a traffic map, you re-edit any maps that you’ve added before saving the entire widget config then the map is re-initialised with the default view rather than how you left it. @ijl20 is on the case.


Version 0.5.1 breaks SemVer guarantees

🐛 Bug Reports
When reporting a bug, please provide the following information. If this is not a bug report you can just discard this template.
🌍 Environment

Your operating system and version: Fedora 29
Your python version: 3.7
How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?: System version
Your rust version (rustc --version): rustc 1.32.0-nightly (f1e2fa8f0 2018-11-20)
Are you using the latest pyo3 version? Have you tried using latest master (replace version = "0.x.y" with git = "https://github.com/PyO3/pyo3")? Unrelated to master

💥 Reproducing
The following program fails to compile with version 0.5.1 but compiles with 0.5.0. This violates semver guarantees.
#![feature(specialization)]

extern crate pyo3;

use pyo3::prelude::*;

#[pyclass(name=Sequence)]
pub struct PySequence {}

#[pymethods]
impl PySequence {
    #[new]
    pub fn __new__(obj: &PyRawObject) -> PyResult<()> {
        obj.init(|_| PySequence {})
    }
}

The following error is reported while compiling with version 0.5.1:
error[E0593]: closure is expected to take 0 arguments, but it takes 1 argument
  --> src/lib.rs:14:13
   |
14 |         obj.init(|_| PySequence {})
   |             ^^^^ --- takes 1 argument
   |             |
   |             expected closure that takes 0 arguments

Judging by the Changelog, the changes for #94 got released as part of version 0.5.1 even though they should still be unreleased.
I suggest version 0.5.1 should be yanked from crates.io and replaces with either a correct version for the 0.5 branch or release a new 0.6, which is allowed to introduce breaking changes.

Thank you, I apparently failed with git and pulled the base branch of #281 in. I've yanked 0.5.1 and released 0.5.2

Wait..
@konstin
You mean 0.5.2 doesn't include breaking changes like #265?

@konstin Thank you for the quick response.

@kngwyu Yes, I've only backported #281

I see, thanks.


Variables updates

Can now add/edit/remove variables from provisions
Updated address formatting
Updated primary contact display

Your Pull Request code is being promoted!  Please follow the link below.
Main Merge Workflow


When data-utc=true, previous day set on click

Hi,
i've noticed that if i set data-utc true, and then click on a day, with every time set, on my input, is set the previous day. Same behaviour here https://chmln.github.io/flatpickr/#utc
Thanks in advance for support!
Gilberto

The cause can be found on line 619self.selectedDateObj = parseDate(new Date(self.currentYear, self.currentMonth, e.target.innerHTML));
The new Date only gets the parameters of Year, Month and Day.  So the time element is missing causing the time in the date to default to 0:00:00.  If this date get's converted to UTC from a positive timezone the time difference will be subtracted from the date causing it to display the previous day.
I think a possible fix would be adding the hours and minutes, (if required seconds) to the parameters of this line.  Although I'm not too clear on how it will influence other parts of the code.
If you have a test environment you could test if this possible quickfix works (replace existing function selectDate with the code below, Don't use this in production environments):
`function selectDate(e) {
e.preventDefault();
e.stopPropagation();
	if (self.config.allowInput && e.which === 13 && (e.target === self.altInput || e.target === self.input)) self.setDate((self.altInput || self.input).value);else if (e.target.classList.contains("flatpickr-day") && !e.target.classList.contains("disabled")) {
		var isPrevMonthDay = e.target.classList.contains("prevMonthDay"),
		    isNextMonthDay = e.target.classList.contains("nextMonthDay");

		if (isPrevMonthDay || isNextMonthDay) changeMonth(+isNextMonthDay - isPrevMonthDay);

        // Quick fix example (Don't use this in production code, needs to be tested)
		if (self.config.utc || self.config.enableTime)
		{
		    let hours, minutes;

		    hours = (parseInt(self.hourElement.value, 10) || 0);
		    minutes = (60 + (parseInt(self.minuteElement.value, 10)) || 0) % 60;

		    if (!self.config.time_24hr) {
		        // the real number of hours for the date object
		        hours = hours % 12 + 12 * (self.amPM.innerHTML === "PM");
		    }

		    self.selectedDateObj = parseDate(new Date(self.currentYear, self.currentMonth, e.target.innerHTML, hours, minutes));

		}
		else
		{
		    self.selectedDateObj = parseDate(new Date(self.currentYear, self.currentMonth, e.target.innerHTML));
		}

		updateValue(e);
		buildDays();
		triggerEvent("Change");

		if (!self.config.enableTime) self.close();
	}
}`

Hope to see if someone more familiar with flatpickr could resolve the issue.
It's my first time commenting on github, so I hope I followed the rules, if there is anything wrong with my comment please let me know.


Support Python 3.12

Python 3.12 releases next week, Monday 2023-10-02. It would be great if vLLM could support Python 3.12 fully, including testing in CI and wheels uploaded to PyPI.
Summary – Python 3.12 Release highlights

New grammar features:

PEP 701: Syntactic formalization of f-strings

Interpreter improvements:

PEP 684: A Per-Interpreter GIL
PEP 669: Low impact monitoring for CPython

New typing features:

PEP 688: Making the buffer protocol accessible in Python
PEP 692: Using TypedDict for more precise **kwargs typing
PEP 695: Type Parameter Syntax
PEP 698: Override Decorator for Static Typing

Important deprecations, removals or restrictions:

PEP 623: Remove wstr from Unicode
PEP 632: Remove the distutils package. See the migration guide for advice on its replacement.
gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment.

Hi @EwoutH, thanks for bringing this up. Once our dependencies (e.g., PyTorch, Ray) support python 3.12, we will support it as well.

Ray still seems to be not supporting python 3.12 yet: https://github.com/ray-project/ray/issues/40211

Two days ago, PR to support 3.12 for ray was merged: https://github.com/ray-project/ray/pull/45621. We can hope support will arrive soon enough.
But as mentioned:

TL;DR; this PR will support python 3.12 as a nightly wheel; other release artifacts will take more work

Modifying CMakeLists.txt for Python 3.12 works fine:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa15b632..a930f13e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/cmake/utils.cmake)
 # Supported python versions.  These versions will be searched in order, the
 # first match will be selected.  These should be kept in sync with setup.py.
 #
-set(PYTHON_SUPPORTED_VERSIONS "3.8" "3.9" "3.10" "3.11")
+set(PYTHON_SUPPORTED_VERSIONS "3.8" "3.9" "3.10" "3.11" "3.12")

 # Supported NVIDIA architectures.
 set(CUDA_SUPPORTED_ARCHS "7.0;7.5;8.0;8.6;8.9;9.0")

I was able to build for python 3.12 as well


Refinements on constructors

See:
//adapted from navier-stokes
class Foo {
    /*@ a : [Immutable] number */
    a;
    /*@ new (a:number) => void */
    constructor(a) { this.a = a }
    /*@ bar : ({number | v = this.a}) : {number | v = 0} */
    bar(x) { return this.a - x }
}
var z = new Foo(5);
z.bar(5);

we want to make this pass, but after creating z, we have nothing in the environment about z's a field. We'd need something like /*@ new (a:number) => {void | this.a = a} */

Addressed by #119


git-credential-1password: init at 1.0.0

Motivation for this change
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 151434 run on x86_64-linux 1

1 package built:

git-credential-1password

">"

[nix-shell:~/.cache/nixpkgs-review/pr-151434-1]$ git-credential-1password
This command stores credentials inside 1password for use by future Git programs.

You probably don't want to invoke this command directly; it is meant to be used
as as credential helper by other parts of Git.

Usage:
  git-credential-1password [operation] [flags]
  git-credential-1password [command]

Examples:
The point of this helper is to reduce the number of time you must type your
username and password and to sync your credentials across multiple systems.
For example:

$ git config credential.helper !git-credential-1password
$ git push http://example.com/repo.git
Enter your 1password master password: <type your master password>
[your credentials are used automatically]

Available Commands:
  erase       Remove a matching credential, if any, from the helper’s storage
  get         Return a matching credential, if any exists
  help        Help about any command
  store       Store the credential

Flags:
  -a, --account string   the shorthand of the 1password account you want to use (default "my")
  -c, --cache uint       enable the master password cache and configure the timeout
  -h, --help             help for git-credential-1password
  -v, --version          version for git-credential-1password

Use "git-credential-1password [command] --help" for more information about a command.

[nix-shell:~/.cache/nixpkgs-review/pr-151434-1]$

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/665


add option to disable the $http interceptor

Hi,
First of all, this library is awesome but i had to use it as stand alone loading library for switching between states so i had to add option to disable default $http interceptor.
With this option disabled you can use this library as regular loading lib with explicitly calling cfpLoadingBar.start(), cfpLoadingBar.inc(),  cfpLoadingBar.complete() when needed without it to trigger automatically with $http promises.

Thanks for adding the tests. I made some comments, please make the suggested changes or respond to the requests.

@chieffancypants LGTM, leaving final decision to you.

@faceleg Changes made. Can you review them?

@adam187 why not just use the service instead of the interceptor:
https://github.com/chieffancypants/angular-loading-bar#service-api-advanced-usage

@chieffancypants Yes, i'm using the service to start/stop progress bar.
But at the moment there is now way to disable interceptor globally. Now you have to disable each request explicitly via ignoreLoadingBar option.

Perhaps I'm not understanding you completely, but if you list cfp.loadingBar as a dependency instead of angular-loading-bar, the former module does not include the interceptor as a dependency, which means it never gets loaded.  This is functionally equivalent to your PR (in that the interceptor is effectively disabled), but has the advantage of having never been loaded in the first place.

@chieffancypants Yes, you're right. Sorry I missed it in docs where it's explained that you can use cfp.loadingBar instead of angular-loading-bar.
So yes, this PR is unnecessary.


Add missing RBI definitions for Ripper class

The change adds RBI definitions for Ripper#initialize and Ripper#parse methods.
Motivation

The change adds missing RBI definitions for Ripper class from Ruby stdlib.
Test plan

See included automated tests.

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_OcXW7uYHurOrJ2
→ https://go/builds/bui_OcXWhv1GXtVtLF
→ https://go/builds/bui_OcXWpJTpdIBrh6


Date rule issue776

OK.  Also, the Germans and Dutch number the weeks of the year, so 2023-W46, aside from the numbering within the month.  There's a rule about what the first week is based on which weekday New Year's falls on.  Maybe that's where I got it from.  We probably never run into it in English text.
Oops.  Google tracked this down: https://www.epochconverter.com/weeknumbers.  Maybe it is a broader thing.  If the Thursday rule/guideline holds within months, it could be used to produce exact dates when the year and month are known or a -W when not.


Access token appears in the job environment when set using an environment variable

If you configure the agent registration token using the BUILDKITE_AGENT_TOKEN environment variable, it then becomes available in the job environment. This doesn't happen if you start the agent with the explicit --token argument.
We should probably remove BUILDKITE_AGENT_TOKEN from the job environment (leaving only the existing BUILDKITE_AGENT_ACCESS_TOKEN session token).

Can we just set the value to "" no matter what, so we always override whatever value might be present?

I'll get a fix for this out now @toolmantim

This was fixed in v3.9.0.


Some big changes

Hi,
I was recently thinking about writing something similar to this, and I remembered your project.
I re-wrote the dispatcher. Changed the way the files are stored, and added different search engine - ripgrep which is also in Rust (but needs to be installed separately), and also is cross-platform.
Please take a look at these changes, you don't have to merge this PR if you feel the changes are too big. There is still some work I want to do:

.logrs conf file
add support for tagging of entries (multiple tags)
search specific tags

But for now, I just want to use it a while, to see how it feels using it. Any feedback is welcome!

 I'm so sorry, do you still want to go over it?
The email apparently got drowned out in the spam I was getting from work before I turned that off, which means this got swallowed, I wasn't even thinking someone could still be working on this. Sorry! D:

Well, if you want this patch, we can go over it, but I mosly re-wrote it all :D, sorry about that. You can pull it locally (from my fork) and try it out if you like it. It does some things differently.
However, I was thinking of creating a GUI for this, something similar to macOS notes app, but multiplatform. There are some, even similar, but I think we could do a better job.

Yeah, looking over it, I think this is better as a fork than it would be to integrate it. My idea for logrs is to be more of a unix-y, composable command line tool, which is something vastly overshot here. I disagree with a whole lot of changes, like the ULIDs and vendoring dependencies, and it's just generally not the tool I would want it to be.
Thanks for the PR, but this would be better for you to continue on your own :)


Turn off Capture Canvas

Is your feature request related to a problem? Please describe.
Whenever I click Enter, it goes to Capture Canvas instead of closing the window. Counter-intuitive.
Describe the solution you'd like
Ability to turn off Capture Canvas completely, not only for the players.
(Optional) Describe alternatives you've considered
Or not have it catch the Enter button.

Is this for the colour picker? Canvas Capture is for capturing the game board as an image

Yeah, I mean the color picker that captures the color from the canvas.

@Havoclivekiller I'm having difficulty reproducing this issue. Is there a particular case where it happens to you every time?

I don't seem to be able to? Maybe FVTT update fixed it? I'll inform you if I catch it.


Design plugin hook for extras

Refs:

#262
#1709

I realized that this is a really natural plugin hook - and if I design it as a hook I can implement Datasette's core extras as default plugins.

Places this plugin hook (or hooks?) should be able to affect:

JSON for a table/view
JSON for a row
JSON for a canned query
JSON for a custom arbitrary query

I'm going to combine those last two, which means there are three places. But maybe I can combine the table one and the row one as well?

I'm going to keep table and row separate. So I think I need to add three new plugin hooks:

table_extras()
row_extras()
query_extras()

There are four existing plugin hooks that include the word "extra" but use it to mean something else - to mean additional CSS/JS/variables to be injected into the page:

def extra_css_urls(...)
def extra_js_urls(...)
def extra_body_script(...)
def extra_template_vars(...)

I think extra_* and *_extras are different enough that they won't be confused with each other.

Actually I'm going to imitate the existing register_* hooks:

def register_output_renderer(datasette)
def register_facet_classes()
def register_routes(datasette)
def register_commands(cli)
def register_magic_parameters(datasette)

So I'm going to call these:

register_table_extras(datasette)
register_row_extras(datasette)
register_query_extras(datasette)

They'll return a list of async def functions. The names of those functions will become the names of the extras.

What would the existing https://latest.datasette.io/fixtures/simple_primary_key/1.json?_extras=foreign_key_tables feature look like if it was re-imagined as a register_row_extras() plugin?
Rough sketch, copying most of the code from https://github.com/simonw/datasette/blob/579f59dcec43a91dd7d404e00b87a00afd8515f2/datasette/views/row.py#L98
from datasette import hookimpl

@hookimpl
def register_row_extras(datasette):
    return [foreign_key_tables]

async def foreign_key_tables(datasette, database, table, pk_values):
    if len(pk_values) != 1:
        return []
    db = datasette.get_database(database)
    all_foreign_keys = await db.get_all_foreign_keys()
    foreign_keys = all_foreign_keys[table]["incoming"]
    if len(foreign_keys) == 0:
        return []

    sql = "select " + ", ".join(
        [
            "(select count(*) from {table} where {column}=:id)".format(
                table=escape_sqlite(fk["other_table"]),
                column=escape_sqlite(fk["other_column"]),
            )
            for fk in foreign_keys
        ]
    )
    try:
        rows = list(await db.execute(sql, {"id": pk_values[0]}))
    except QueryInterrupted:
        # Almost certainly hit the timeout
        return []

    foreign_table_counts = dict(
        zip(
            [(fk["other_table"], fk["other_column"]) for fk in foreign_keys],
            list(rows[0]),
        )
    )
    foreign_key_tables = []
    for fk in foreign_keys:
        count = (
            foreign_table_counts.get((fk["other_table"], fk["other_column"])) or 0
        )
        key = fk["other_column"]
        if key.startswith("_"):
            key += "__exact"
        link = "{}?{}={}".format(
            self.ds.urls.table(database, fk["other_table"]),
            key,
            ",".join(pk_values),
        )
        foreign_key_tables.append({**fk, **{"count": count, "link": link}})
    return foreign_key_tables

Passing pk_values to the plugin hook feels odd. I think I'd pass a row object instead and let the code look up the primary key values on that row (by introspecting the primary keys for the table).

Let's try sketching out a register_table_extras plugin for something new.
The first idea I came up with suggests adding new fields to the individual row records that come back - my mental model for extras so far has been that they add new keys to the root object.
So if a table result looked like this:
{
  "rows": [
    {"id": 1, "name": "Cleo"},
    {"id": 2, "name": "Suna"}
  ],
  "next_url": null
}

I was initially thinking that ?_extra=facets would add a "facets": {...} key to that root object.
Here's a plugin idea I came up with that would probably justify adding to the individual row objects instead:

?_extra=check404s - does an async HEAD request against every column value that looks like a URL and checks if it returns a 404

This could also work by adding a "check404s": {"url-here": 200} key to the root object though.
I think I need some better plugin concepts before committing to this new hook. There's overlap between this and how I want the enrichments mechanism (see here) to work.

Some of the things I'd like to use ?_extra= for, that may or not make sense as plugins:

Performance breakdown information, maybe including explain output for a query/table
Information about the tables that were consulted in a query - imagine pulling in additional table metadata
Statistical aggregates against the returned results
For tables, what are the other tables they can join against?
Suggested facets
Facet results themselves
New custom facets I haven't thought of - though the register_facet_classes hook covers that already

Looking at https://github-to-sqlite.dogsheep.net/github/commits.json?_labels=on&_shape=objects for inspiration.
I think there's a separate potential mechanism in the future that lets you add custom columns to a table. This would affect .csv and the HTML presentation too, which makes it a different concept from the ?_extra= hook that affects the JSON export (and the context that is fed to the HTML templates).

Had a thought: if a custom HTML template is going to make use of stuff generated using these extras, it will need a way to tell Datasette to execute those extras even in the absence of the ?_extra=... URL parameters.
Is that necessary? Or should those kinds of plugins use the existing extra_template_vars hook instead?

I bet there's all kinds of interesting potential extras that could be calculated by loading the results of the query into a Pandas DataFrame.

The proposed plugin for annotations - allowing users to attach comments to database tables, columns and rows - would be a great application for all three of those ?_extra= plugin hooks.

I think the rough shape of the three plugin hooks is right. The detailed decisions that are needed concern what the parameters should be, which I think will mainly happen as part of:

#1715

Closing this because I have a good enough idea of the design for now - the details of the parameters can be figured out when I implement this.


Integrate exit format into wallet core, wire-format and client-api-schema

WIP
Depends on https://github.com/statechannels/native-utils/pull/29

CircleCI Generated Comment: A new preview was generated for the docs-website.


sorin broken symbols on urxvt

as you can see in the attached file the sorin symbols are broken running zsh and prezto on urxvt

What font are you using and can you post your Xresources file?

I tried several fonts like Monaco and Monospace and the same issue happens, but right now am using Mononoki, here is my Xresources:
urxvttermName:  rxvt-256color
URxvt.buffered:           true
urxvtloginShell:         true
urxvtscrollBar:         false
urxvtsecondaryScroll:    true
urxvtsaveLines:         65535
urxvtcursorBlink:        true
urxvturgentOnBell:       true
!urxvtoverride-redirect:false
!urxvtborderLess:       false
!urxvtinternalBorder:       0
!urxvtexternalBorder:       0
urxvtperl-lib:        /usr/lib/urxvt/perl/
urxvtperl-ext-common: default,matcher,searchable-scrollback
urxvturlLauncher:     /usr/bin/firefox
urxvtmatcher.button:  1
URxvtfont:       xft:Mononoki:size=18:antialias=true
!urxvtboldFont:    -xos4-Mononoki-bold----18-------*
!urxvtcursorColor: #DCDCCC
urxvtcursorColor: green
!urxvtshading:    20
!urxvttransparent:true
urxvt.background:  #000000
urxvt.foreground:  #EBEBFF
URxvt.depth: 32
URxvtbackground: rgba:0000/0000/0200/c800
!urxvtcolor0:     #3f3f3f
urxvtcolor0:      #000000
urxvtcolor1:      #e01010
urxvtcolor2:      #00AA00
urxvtcolor3:      #FFFF00
urxvtcolor4:      #112037
urxvtcolor5:      #A020F0
urxvtcolor6:      #5B5BC7
urxvtcolor7:      #fefefe
urxvtcolor8:      #6a6a6a
urxvtcolor9:      #FF5555
urxvtcolor10:     #90EE90
urxvtcolor11:     #ffff2f
urxvtcolor12:     #5B5BC7
urxvtcolor13:     #e628ba
urxvtcolor14:     #7D7DFB
urxvtcolor15:     #ffffff
Xcursor.theme: Adwaita

Adrian, which theme are you using?

I don't have this problem, similar configutation (you can take a look at my dot_files)
As font I use Hack

URVT with the default font is failing, is not a font issue

the theme am using is "sorin"

@crivotz tried your .Xdefaults and .Xresources with no luck still broken symbols

by the way this just happens on arch linux on debian works fine urxvt

I'm on Debian, explained the difference
Take a look at this link from Arch forum

this is probably an issue with arch and powerline fonts because the same issue of broken symbols happens on xterm

@crivotz tried all the forum options but didn't work

@cemsbr, can you add some refs here about it?

urxvt does not support double-width characters. There are at least 3 ways to solve this problem:

If your distro is Archlinux, there's a patched urxvt in AUR;
Nerd-fonts does not use double-width glyphs. They are smaller, but play nice with official urxvt;
Use another terminal (e.g. terminator).

Thanks for the info @cemsbr.
I'm not sure how to proceed with this, as I'm fairly sure this isn't an issue with prezto (we use the same unicode characters for powerline and other things as everyone else) and may be an issue with urxvt or a font configuration.

Also urxvt you must explicitly list your fallback fonts. It won't automatically fall back to other fonts on your system which contain the glyph you need. Keep that in mind. You may want to use:
fc-scan -f 'Charset: %{charset}' font.ttf

And see if the symbol you need is listed. Note you need at least fontconfig (freetype) v2.11.91 or greater for charset to work with fc-scan.
.XResources line to configure multiple fonts: URxvt*font: xft:tewi2a-medium:pixelsize=11:antialias=false,xft:Noto Emoji:pixelsize=6:minspace=False:antialias=false,xft:Symbola:pixelsize=6:minspace=False:antialias=False
For an explaination see my config file here: https://github.com/samcv/dot-files/blob/master/.Xresources#L2-L6
I don't use urxvt but the config is from back when I did use it for a period of time.

Thanks for clearing that up! This definitely doesn't seem like it's an issue with prezto and there are instructions for fixing it so I'm closing this now. Thanks everyone!


[Feature]

Hi i am so sorry for repeating but would you ever try to make streched resolution (mobile) scretch whole game i stead of just video? (I mean touch area)

Not possible


tailwindcss(android) rebuilding... tailwindcss(android) is taking a long time to build,

Issue tracker is ONLY used for reporting bugs. New features should be discussed on our discord, in the #create-expo-stack channel.
When run the app and start ' tailwindcss(android) rebuilding...'
Expected Behavior

Current Behavior
tailwindcss(android) rebuilding... tailwindcss(android) is taking a long time to build, please read https://tailwindcss.com/docs/content-configuration#pattern-recommendations to speed up your build time

Error running TailwindCSS CLI, please run the CLI manually to see the error.
Command used:  node C:\Users\youco\Desktop\Road To\Learning-App\node_modules\tailwindcss\lib\cli.js --input "C:\Users\youco\Desktop\Road To\Learning-App\global.css" --output "C:\Users\youco\Desktop\Road To\Learning-App\node_modules.cache\nativewind\global.css.android.css" --watch
Possible Solution

Steps to Reproduce

CES Config File

I got the solution! Just execute this command:
npx tailwindcss -i global.css -o node_modules/.cache/nativewind/global.css.native.css


Renaming & Refactoring (See #4)

This mostly removes the zero() and one() methods, renames length() to bit_length(), and changes {get,set}_range to {get,set}_bits. It also moves the implementation for the integers out into a macro in order to remove all of the trait requirements on BitField.
The trait as it is isn't quite generic enough to be usable for implementing bitvectors (which would operate on &[u8]), in part due to the usage of u8 for indexing (which isn't a big deal) and also due to the returntype of get_bits, which returns Self by value; we can't always return a u8-slice as the range may not be 8-bit aligned.
Anyway, this does have breaking changes (renaming), so take a look.

Thanks a lot @blacksmithgu, this looks really good!

Published as 0.7.0. Thanks again, @blacksmithgu!


Batch write example doesn't wait for callbacks and batch client doesn't support async/await

Specifications

Client Version: v0.7.0
InfluxDB Version: Cloud Dedicated
Platform: MacOS

Code sample to reproduce problem
Using the example in the README, I now need to insert a time.sleep call of 2-3 seconds to make sure the callbacks have run.
I didn't encounter this until recently (using v0.5.0) so I don't know what's changed--maybe the InfluxDB instance is slower.
However, if I try to use async/await with the client, then I get the following error:
'InfluxDBClient3' object does not support the asynchronous context manager protocol`

Example using async/await:
from influxdb_client_3 import(InfluxDBClient3,
                              write_client_options,
                              WriteOptions,
                              InfluxDBError)

class BatchingCallback(object):

    def __init__(self):
        self.status = None

    def success(self, conf: tuple, data=None):
        self.status = f"Success: Data has been successfully written: {data}"
        print(self.status)

    def error(self, conf: tuple, data: str, err: InfluxDBError):
        self.status = f"{err}: Error writing batch: config: {conf}, data: {data}"
        print(self.status)

    def retry(self, conf: tuple, data: str, err: InfluxDBError):
        self.status = f"{err}: Retry error writing batch: config: {conf}, data: {data}"
        print(self.status)

import asyncio

async def main():
    callback = BatchingCallback()

    # Instantiate default WriteOptions for batching
    write_options = WriteOptions()
    wco = write_client_options(success_callback=callback.success,
                               error_callback=callback.error,
                               retry_callback=callback.retry,
                               write_options=write_options)

    # Use the with...as statement to ensure the file is properly closed and resources
    # are released.
    async with InfluxDBClient3(host="your_influxdb_host",
                               database="DATABASE_NAME",
                               token="DATABASE_TOKEN",
                               write_client_options=wco) as client:
        client._client.debug = True  # Enable debug mode
        await client.write_file(file='./data/home-sensor-data.csv',
                                timestamp_column='time',
                                tag_columns=["room"],
                                write_precision='s')

        assert callback.status.startswith("Success"), f"{callback.status}"

# Run the main function
asyncio.run(main())

Expected behavior
Using with and a batch write client, the client should wait for the response and for callbacks to fire.
Actual behavior
Execution continues without callbacks having run, and the client doesn't support async/await.
Additional info
No response

The client does not support async. #53 exists for this topic.
Without the async do you still have these issues?

The client does not support async. #53 exists for this topic.
Without the async do you still have these issues

Yes, sorry, that's what I meant about using the batch example from the README--to make sure the callback completes, I need to run something after client.write_file. Testing yesterday on Dedicated with a seemingly "normal" network, the required sleep was 2-3 seconds.

Also, #53, as written, is specific to queries and he says writes use async from the inherited v2 client, but I wondered whether that was still the case, and if so, how to access it. Do we need to rewrite that issue?

@jstirnaman

Also, #53, as written, is specific to queries and it says writes use async inherited from the v2 client, but I wondered whether that was still the case, and if so, how to access it.

Currently, that is not true. The support was removed in this PR: https://github.com/InfluxCommunity/influxdb3-python/pull/62.
Your code should look something like what is shown in https://github.com/InfluxCommunity/influxdb3-python/blob/main/Examples/batching_example.py. You can avoid using asyncio.

Do we need to rewrite that issue?

I will review the status of asyncio in pyarrow and summarize the status in #53.

@jstirnaman

Also, #53, as written, is specific to queries and it says writes use async inherited from the v2 client, but I wondered whether that was still the case, and if so, how to access it.

Currently, that is not true. The support was removed in this PR: #62.
Your code should look something like what is shown in https://github.com/InfluxCommunity/influxdb3-python/blob/main/Examples/batching_example.py. You can avoid using asyncio.

That's my point, though:

Using the example in the README, I now need to insert a time.sleep call of 2-3 seconds to make sure the callbacks have run.

...the example code doesn't wait for the callbacks to fire.

@jstirnaman, oh, sorry for the misunderstanding; now I understand the issue. I'll take a look...

@jstirnaman, I've added an item to our backlog, and @karel-rehor will take a look at it.

@jstirnaman, I'm creating PR #112 to cover this issue and the items in item 108.
I've added two integration tests covering client.close() at the end of the content manager.  I've also updated batching_example.py to make calls after the context manager has completed.  These calls report the final status of class fields updated in the callbacks.
Feedback on these changes would be appreciated.  Still to be added to the PR are documentation updates.

closed by https://github.com/InfluxCommunity/influxdb3-python/pull/112


[5.2] change whereDate method for Postgres

I just had a problem with no results for a query using this method.
Wouldn't it be better to cast the column instead of the value ?

Can you post the query that was causing problems so I can reproduce it?

Wouldn't it be better to cast the column instead of the value ?

@taylorotwell Sounds like it's not a "bug", just a refactor.

Here it is
public function scopeCurrentDay($query)
{
    return $query->whereDate('started_at', '=', Carbon::now()->toDateString());
}

started_at is a timestamp

Don't call ->toDateString().

It still doesn't work.
For all the other methods (whereDay, whereMonth etc.) we etract from the column, not the value.
Why is it not the same for whereDate ?

?

Not entirely sure.

I think one problem with this is people are going to pass a full Carbon object into this and expect the time to be respected. Whereas this ::date operator is going to cut-off the hours, minutes, and seconds.


add

Docs Build status updates of commit f529c85:
:warning: Validation status: warnings

File
Status
Preview URL
Details

maopeixiaDocset1015055244/index.md
:warning:Warning

Details

maopeixiaDocset1015055244/breadcrumb/toc.yml
:white_check_mark:Succeeded

maopeixiaDocset1015055244/index.md

[Warning] Missing attribute: author. Add the current author's GitHub ID.
[Warning] Missing attribute: title. Add a title string to show in search engine results.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Deploy Github self hosted runners

The main reason is to access to private resources from the runners.
We'd also like to share the Dagger cache volume.

A brief status update: Work in progress here.

The self hosted runners are now provisioned
I'm facing an issue regarding filesystem permissions which is discussed here.
We need to consider security issues, maybe adding a Cilium network policy.

Fixed with https://github.com/Smana/demo-cloud-native-ref/pull/302


Live spoofing question

Hello, I am a research student in a US university and I have been tasked to create a live spoofer. I have been able to successfully run the code for a spoofed static location and predefined trajectory. My next scenario is receiving a live signal and manipulating it live. Much like the notable boating demonstration done by another research group which did it to a yacht. My scenario includes me being in a vehicle and my spoofing target being a few meters away. One of the problems I foresee is after the spoofing is activated I fear that I will spoof my own receiver.
From my knowledge as it stand now I feel that I may be able to modify the code to work with a live stream of data but I am very short on time and don't have the liberty to explore hunches.
My question is;
With modification can this code read a live stream of data and in what format?
I feel that is possible because an option in the code is to receive a NMEA GGA stream
I am very new to this area of research and lack a professor with expertise in the subject matter at my university so anyone with any knowledge or assistance they can offer is greatly appreciated.
Thank you

I think you can place your receiver far away from your spoofing area, and transmit the live NMEA information through Internet.
As for the stream-mode spoofing, you can check my real-time version:
https://github.com/bitdust/gps-sdr-sim

Thank you for your response bitdust.
I cannot place my receiver away from my spoofer because I will be in a moving car with my receiver while I try to spoof the car.
Your real time version is very close to what I am looking for but instead of clicking on the map I am hoping to replace the clicking on the map with live position data received by my receiver and then altered slightly.
I have considered the potential of receiving from the L2C band , altering the position for example by 5 meters to the left, and transmitting that location on L1C.
Does the above sound like a reasonable approach? Thank you again for taking the time to advise me.

Gym 487 seems to have created something similar to what I am looking for but he is using a TCP source running in server mode and sending data to an osmocon Sink which I assume I can change to a USRP sink.
I am currently trying to get in touch with him for more information about the TCP source and how it work. His work is here https://github.com/gym487/gps-sdr-sim-realtime .
Would it be possible to stream real time gps data through that TCP source into a USRP sink?

On the same topic of live gps spoofing. How can you make the spoofing start at a "future" time (the broadcast ephemerides only has data for the past, not the present / future)?
Is there a site that provides prediction for ephemerides files ?
I found a site that produces predictions for sp3 files but not bc format (RINEX).
Any clue?

Well the theory I'm pursuing is using gnss sdr to connect to a live/true gps signal take that date,  manipulate it,  as in  change the data to show 5 meters to left and feed that into the gps sdr sim. Hopefully a continuous feed. I think it should work for the "present" scenario due to the live connection using the  gnss sdr although I expect a delay due to processing time.

Was anyone actually able to use this prohject to conduct a live gps spoofing in an outdoor environment where GPS reception of real satellites is good?

I'm working on achieving that this summer so I'll let you know by the end of it where I get and what was possible, but you won't be able to do it live with just this program because it doesn't have support to stream live on it's own. I plan in feeding it live data from gnss-sdr.

Hi Spoof4fun, I'm curious to learn about your progress in integrating gnss-sdr and gps-sdr-sim to do live streaming. What was your approach? I'm planning to do something similar and I'm thinking of using gnss-sdr to save the RINEX NAV data into a file, then running bladeGPS to read from it and stream it live. Do you think it'll be feasible?


Slack Adapter Fails on rendering context block

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
v 4.8
Describe the bug
I am using the SlackAdapter ( .NET). It's is not able to deserialize the block Array, if one of the blocks is a "context".
Following is the error message
Newtonsoft.Json.JsonSerializationException: Error converting value "Location: Dogpatch" to type 'SlackAPI.Text'. Path '[0].elements[1].text', line 12, position 38. ---> System.ArgumentException: Could not cast or convert from System.String to SlackAPI.Text.
To Reproduce
Steps to reproduce the behavior:

checkout the https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/60.slack-adapter
follow the steps to connect slack channel to bot
add a context block in https://github.com/microsoft/BotBuilder-Samples/blob/master/samples/csharp_dotnetcore/60.slack-adapter/Resources/InteractiveMessage.json
See error

Expected behavior
Bot should be able to deserialize context block
Screenshots
Additional context
Add any other context about the problem here.
[bug]

Hello @Anshul21
It looks like the current Slack adapter sample is referencing the 4.8 rc2 preview of the Slack adapter package, and that preview isn't available on NuGet so I cannot build the sample unless I configure Visual Studio to use MyGet. Are you using MyGet or are you using an earlier version of the sample?

i am referencing to https://www.nuget.org/packages/Microsoft.Bot.Builder.Adapters.Slack/  version 4.8.0-rc0

@Anshul21 - Okay but what version of the sample are you using? Do you have this commit? 9ac77d5f43c6316df440442843ba5e59381d551c

@v-kydela pulled the latest code from repo for the sample. I do the commit # 9ac77d5f43c6316df440442843ba5e59381d551c in git log. It's still not able to process context. I used a simple block [
```
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Last updated: Jan 1, 2019"
}
]
}
]
but it still fails with `Newtonsoft.Json.JsonSerializationException: Error converting value "Last updated: Jan 1, 2019" to type 'SlackAPI.Text'. Path '[0].elements[0].text', line 7, position 43.`

@Anshul21 - I can reproduce the issue using the context block sample, and it's looking like a problem with the Slack API package which you can report issues about here: https://github.com/Inumedia/SlackAPI
You can tell them that blocks cannot be deserialized using Newtonsoft and that they need to implement a custom JSON converter.
I tried making the sample work by deserializing the JSON as a JArray, but that doesn't work because the Slack adapter is trying to cast it as a List<Block> before sending it to Slack:
message.Blocks = (List<Block>)att.Content;

@garypretty - At minimum we should allow NewSlackMessage.Blocks to be IEnumerable<IBlock> because blocks like ContextBlock implement IBlock and don't derive from Block, but that still wouldn't fix our deserialization problem. I can see three possibilities on our side if the Slack API package isn't fixed:

We could have NewSlackMessage.Blocks accept IEnumerable or IEnumerable<object> so that a JArray would work
We could create our own JSON converter and expose that as part of the Slack adapter package for the bot to use
Since the Slack adapter just reserializes the blocks anyway, we could allow the bot to send the blocks through the adapter as a string

opened the bug for SlackAPI team https://github.com/Inumedia/SlackAPI/issues/228
@v-kydela @garypretty

To clarify further, the issue occurs when the context block contains a text object. The JSON deserializer interprets each element in the block as an Element object, and that expects the text property to be a Text object. If the element is itself a Text object then its text property is a string.
The ContextBlock class has IElement elements which can be Element objects or Text objects, but in order to potentially deserialize blocks as context blocks we'd have to use IBlock and we can't deserialize interfaces. I suspect that means we wouldn't be able to deserialize the IElement elements in a context block anyway.

@v-kydela, @garypretty  What should we do with this? If it's an open bug in Slack, we should close this out now that they're linked.

@cleemullins - It's not a bug in Slack. The bug that the customer opened is in the Slack API package that our code is using, and the issue has remained unread for 11 days. It looks like a personal repo that's run by one person and I don't know that we can count on anything getting fixed unless we fix it ourselves. However, the author does provide some contact information if one of us would like to get in touch.
I also outlined some work that should be done on our end regardless of whether or how that Slack API bug gets fixed:

@garypretty - At minimum we should allow NewSlackMessage.Blocks to be IEnumerable<IBlock> because blocks like ContextBlock implement IBlock and don't derive from Block, but that still wouldn't fix our deserialization problem.

And also some work that we could do on our end if we assume the bug will not get fixed:

I can see three possibilities on our side if the Slack API package isn't fixed:

We could have NewSlackMessage.Blocks accept IEnumerable or IEnumerable<object> so that a JArray would work
We could create our own JSON converter and expose that as part of the Slack adapter package for the bot to use
Since the Slack adapter just reserializes the blocks anyway, we could allow the bot to send the blocks through the adapter as a string

@garypretty Can you provide an update on this issue? Thanks

I've added this to our R10 release, which should land around the end of summer. This is a bit complex, as it's across dependency chains...

As @cleemullins has said, we will implement a workaround in our SDK adapter, given that there looks to be no movement on the underlying Slack SDK side.

There is now an open PR (just awaiting some resolution of failing tests) which implements some changes to the Slack adapter, including one that will address this issue - we have now changed the Blocks property to be a collection of object. You can see the PR at https://github.com/microsoft/botbuilder-dotnet/pull/4046.
I am going to close out this issue, but once the PR has been merged, this will be available in the nightly builds.


Bibiography bug

When using bibiography, the PDF rendering does not work correctly according to this documentation here:
https://asciidoctor.org/docs/user-manual/#user-biblio
A HTML version works as expected.
Original source
= Reference Test
Pop
Release 1 DRAFT-001
:icons: font

== Bibliography

_The Pragmatic Programmer_ <<pp>> should be required reading for all developers.
To learn all about design patterns, refer to the book by the "`Gang of Four`" <<gof>>.

=== References

- [[[pp,1]]] Andy Hunt & Dave Thomas. The Pragmatic Programmer:
  From Journeyman to Master. Addison-Wesley. 1999.
- [[[gof,2]]] Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides. Design Patterns:
  Elements of Reusable Object-Oriented Software. Addison-Wesley. 1994.

Command
$ asciidoctor-pdf issue-bibli.asciidoc

Real PDF result
1. Bibliography
The Pragmatic Programmer [pp] should be required reading for
all developers. To learn all about design patterns, refer to the
book by the “Gang of Four” [gof].
1.1. References
• [] Andy Hunt & Dave Thomas. The Pragmatic Programmer:
From Journeyman to Master. Addison-Wesley. 1999.
• [] Erich Gamma, Richard Helm, Ralph Johnson & John
Vlissides. Design Patterns: Elements of Reusable Object-
Oriented Software. Addison-Wesley. 1994.

Expected PDF result
1. Bibliography
The Pragmatic Programmer [1] should be required reading for
all developers. To learn all about design patterns, refer to the
book by the “Gang of Four” [2].
1.1. References
• [1] Andy Hunt & Dave Thomas. The Pragmatic Programmer:
From Journeyman to Master. Addison-Wesley. 1999.
• [2] Erich Gamma, Richard Helm, Ralph Johnson & John
Vlissides. Design Patterns: Elements of Reusable Object-
Oriented Software. Addison-Wesley. 1994.
<EOF>

Environment
$ asciidoctor-pdf --version
Asciidoctor PDF 1.5.0.alpha.16 using Asciidoctor 1.5.8 [https://asciidoctor.org]
Runtime Environment (ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

$ lsb_release -d
Description:	Ubuntu 18.04.2 LTS

It looks like you are missing the bibliography style on the section. It should be:
[bibliography]
== References

- [[[pp,1]]] Andy Hunt & Dave Thomas. The Pragmatic Programmer:
  From Journeyman to Master. Addison-Wesley. 1999.
- [[[gof,2]]] Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides. Design Patterns:
  Elements of Reusable Object-Oriented Software. Addison-Wesley. 1994.

This bibliography style does not affect the result.

I just tested it and I assure you that is the solution. However, I left out one important part. You must be using the master branch. The custom reftext for a biblio anchor is not yet available in a released version.

Okay, thank you for the quick answer.

This now works based on the solution I posted using Asciidoctor PDF 1.6.2 or the upcoming Asciidoctor PDF 2.


Nth Fibonacci Number

Write a code file in C++ to print the Nth Fibonacci Number

I would to work on this.Can you assign me?

@Maitryee-Choudhary You can work on this. Read the contribution guidelines and make sure to follow all points and open a PR once done.

Can I work on this?

@Maitryee-Choudhary are you on this or should I assign it to @sakshi-choudhary ?

@amritansh22 you have to assign me.

@sakshi-choudhary Let me first ask if @Maitryee-Choudhary is still working on it. In the meantime you can see other issues or open your own issues.

Yes I am working on it.

@Maitryee-Choudhary Great.


Drop dedicated Phar stub

we are dropping HHVM and PHP version checks
we are dropping registration of an error handler

We are not dropping them.
On original source, we do have 2 files: php-cs-fixer and src/Resources/phar-stub.php which are almost the same - difference is registering autoloader from composer or phar map.
This PR unifies file and drop one of them, so phar release will use the same entry point as composer-installed app. in that unified entry point, there are still checks for php versions and error handler registration.

@keradus
Even better! 👍


Cannot set SO_PASSCRED for a net.UnixConn

In issue #1101 it is said that
"Passing credentials is already supported: https://golang.org/src/syscall/creds_test.go?h=TestSCMCredentials#L21
Please close this issue."
While that is true, the problem is that that test is construction a Conn from fds. If you start with a Conn (say via an AcceptUnix()) there is no way to get to the fd to call setsockopt.
In other words SO_PASSCRED cannot be set for UnixConn and thus the credentials can never be received.
In short, a go server using UnixConns can never check the credentials of clients.
Issue #1101 is frozen so I couldn't comment there. Sorry if this is the wrong way of re-activating it.

You can use the SyscallConn method to get a syscall.RawConn and then use the Control method to set SO_PASSCRED.

And so you can. Thanks for that, Ian. There's no way I would have worked that out for myself.


How can I use this PickMediaOptions with PickPhotoAsync

I am trying to resize image while uploading using PickPhotoAsync  and also trying to PickMediaOptions this option with PickPhotoAsync  like the code below on my pcl project:
var file = await CrossMedia.Current.PickPhotoAsync (new PickMediaOptions
{
PhotoSize = PhotoSize.Medium,
});
but PickMediaOptions  and PhotoSize doesn't work here. How can use this or has any alternative opiton?

That works fine as I have in my tests and will reduce the photo size in half.
I am not sure what your issue is or what version of the app you are using.

Mine is also not resizing. I've tried multiple types of combinations. Using a Galaxy Tab A(SM-T350). Image dimensions are 2592x1944.
Using 2.6.1 from a NuGet.
var media = await this.mediaService.TakePhotoAsync(new StoreCameraMediaOptions                 {                     DefaultCamera = CameraDevice.Rear,                     Name = fileName,                     CustomPhotoSize = 10, //doesn't affect the photo size no matter what its set to                     CompressionQuality = 50, //doesn't affect the quality or image size no matter what it's set to.                     SaveToAlbum = true                 });
What's interesting is the media file itself on the device is approximately 1.7mb. When I render it on a native implementation to look at the image and covert it to a bitmap it actually is compressed.
public async Task<ImagePathString> RetrieveImages(MediaFile image) { Bitmap bitmapImage = await BitmapFactory.DecodeFileAsync(image.Path); ...

@justinkneff  You need to set the PhotoSize = PhotoSize.Custom else it default to full size
Compression quality literally compresses it down to 50% of original when saving.
The one in the album is full size.


Consider including F-Droid APK in release

Due to having to remove Browser in the CM13 version of this, people will now potentially be unable to bootstrap the capacity to browse the web and install further apps.
Including a specific web browser would be arbitrary, unless the AOSP browser could be included with no Google dependencies; however, F-Droid includes various browsers (Lightning, for instance) and of course the ability to instantly install hundreds of Google-free applications. It would be a matter of installing the APK from within this script.

I don't feel it's appropriate for this script to extend it's functionality beyond the removal of proprietary bits. It should do one thing and one thing only.
However, I wouldn't mind having a warning about this added in the README.

Closing. Will not add F-Droid.


Add RSS feed to news page

The news page could use an RSS feed.

Thanks for the feedback - we are thinking of converting it to its own blog/Wordpress  (which would have an RSS feed). The current news page was bit of short-term solution :)

I actually came here (to this repo) just to look for a way to follow progress on this project. Until a subscribe-able news feed is available, do you have a recommendation on the best way to get "high level" updates on progress?

Hi, closing this fairly old issue. ATM the best ways to follow the project are to subscribe to notifications from the Announcements forum topic, or to follow the blog on the Open Distro homepage . You can also follow @stockholmux on Twitter for updates.

To add to @jcgraybill's comment:

All forum topics have RSS feeds - just add .rss to any forum category URL - e.g. https://discuss.opendistrocommunity.dev/c/announcements/5 -> https://discuss.opendistrocommunity.dev/c/announcements/5.rss

We do have an RSS feed for releases on the blog: https://opendistro.github.io/for-elasticsearch/feed/releases.xml

We're working on an overhaul of the website, so we'll make sure to add more comprehensive RSS feeds.


Accept ContentMD5 in ExtraArgs for s3 file uploads

Hi there,
I've just migrated from boto to boto3 and with boto we were able to pass a content-md5 header that would ensure data integrity server-side (following this guide). It appears that it is no longer possible with boto3. After 30 minutes debugging and navigating between the 3 projects (boto3, botocore and s3transfer) I finally manager to pinpoint the issue.
ContentMD5 is missing from the accepted arguments when doing a file upload. Also, I tried to use the Metadata argument to provide it, but it didn't work because each header passed in Metadata is prefixed using x-amz-meta-, which doesn't work at all for the desired content-md5 header.
So this PR is an attempt to fix this. I've tested that locally and it seems to work properly. LMK if I need to add more things. (I'll fix tests if there are failing of course)

I was also looking for information about this and it seems like botocore tries to add the content-md5 header to every operation already.  https://github.com/boto/botocore/blob/develop/botocore/handlers.py#L948-L949
I might've just missed it but I don't think I saw it documented anywhere so it might be useful to create a PR for boto3 to add a mention of this in the docs.


lime 2.0.6 broke blackberry builds

when i switch to lime 2.0.6 blackberry builds will build and run, but immediately close again.
sdk 10.2 on a z10 with 10.2

Same behavior with lime 2.0.6 BlackBerry tabletos and android. 2.0.5 works fine.

This was caused by an initial bad build, 2.0.6 was re-released on haxelib with a fixed build


Travis.

Add .travis.yml and helper files. Builds 1.5 and tip, runs gofmt and golint.
Tests will only pass after PRs #1 and #3 have been merged.

Looks great, thanks!


fix embedding_model_name not work

[!IMPORTANT]
Fixes issue in zep_graphiti.py where embedding_model_name was not being set in get_graphiti().

Behavior:

Fixes issue where embedding_model_name was not being set in get_graphiti() in zep_graphiti.py.
Adds condition to set client.embedder.config.embedding_model if settings.embedding_model_name is provided.

This description was created by  for 28348bc36fabd4815c038e6115fb4599850ae1ee. It will automatically update as commits are pushed.

I have read the CLA Document and I hereby sign the CLA

@ArnoChenFx Closing as not planned. Thank you for contribution.


Able to view critical pool and swap metrics in the UIs

Problem
We don't have full clarity into exact metrics to show and hide in Pool and Swap yet, nor is it working
Acceptance Criteria

[ ] User can at least see Pool TVL and Volume (24h)
[ ] User can at least see Swap impacts similar to bridging

Solution
TBD

Closing in favor of #2102


mekanism1.10

i got this issue because of the core mods of dark utilities and minefacori reloaded
crash-2018-07-16_22.39.51-client.txt

No that has nothing to do with those other mods. Same issue as #4957
Set your JVM flags to -Duser.country=US -Duser.language=en and then readjust MC language in settings if necessary.


chore - update action workflows

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@896397c). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #10   +/-   ##
=========================================
  Coverage          ?   94.28%
=========================================
  Files             ?        3
  Lines             ?       35
  Branches          ?        2
=========================================
  Hits              ?       33
  Misses            ?        0
  Partials          ?        2

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 896397c...0aa66e5. Read the comment docs.


Linking to a container running codenvy/che fails with error "argument list too long."

When I try to link to a container running image codenvy/che, I end up with the error System error: argument list too long.
BUG REPORT INFORMATION
Environment where the problem was noticed
docker version:
Client:
 Version:      1.10.1
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   9e83765
 Built:        Thu Feb 11 19:27:08 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.1
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   9e83765
 Built:        Thu Feb 11 19:27:08 2016
 OS/Arch:      linux/amd64

docker info:
Containers: 17
 Running: 3
 Paused: 0
 Stopped: 14
Images: 61
Server Version: 1.10.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 110
 Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
 Volume: local
 Network: bridge null host
Kernel Version: 3.13.0-39-generic
Operating System: Ubuntu 14.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.59 GiB
Name: [removed]
ID: KU57:P757:EDQZ:P4Q2:6SF2:MLXX:WY2K:TW62:CX7C:EVHS:DORS:K6ZH
WARNING: No swap limit support

Steps to reproduce the issue
$ sudo docker run --detach --volume "/run/docker.sock:/var/run/docker.sock:rw" --name che codenvy/che
2316bb55fff91474959a2de99237b90d8ed00d4117f7ae2eeca46c7e5180092b
$ sudo docker run -ti --link che:slot ubuntu /bin/bash

Actual results
long wait (probably some timeout)
argument list too long
docker: Error response from daemon: Cannot start container 81ccaf9711825c1d30bf4eba6a332d53ea27509c42a8f12c0f2691d608e4ce22: [9] System error: argument list too long.

Expected results
root@81ccaf971182:/#

My analysis
I suspect the number of port exported by the codenvy/che image to be the problem here.
$ sudo docker inspect codenvy/che | grep "/tcp" | wc -l
65538

In the other hand, it look like the environment variables XXX_PORT_YYYY_TCP_PORT/ADDR aren't generated anymore, thus I don't understand why the ports of the linked containers would be parsed/enumerated while creating the new container that link to codenvy/che (or any other with too much exposed ports)

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

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

The environment vars are still created for the default (bridge) network

We have also seen this issue without links using the dockercloud/builder:latest image, on Docker Engine 1.9.1-cs2

The error comes from linux; http://stackoverflow.com/questions/11289551/argument-list-too-long-error-for-rm-cp-mv-commands. If you're exposing / publishing such a long list of ports, running in --net=host may be an alternative.

Let me close this ticket for now, as it looks like it went stale.