Multi-Point constraint crossing processors #3341

@vladotomov  --- fyi
          I'd like to reopen this thread @vladotomov  as I'm interested in the same thing

Here's a picture of what @CodingDrRui  is talking about.   You have a finite element mesh with a remote load that is transferred by many rigid (infinitley stiff spars or 1d elements)
When performing structural analysis this trick is used to simplify modeling.

I tried to create sample mesh
MFEM mesh v1.0

#
# MFEM Geometry Types (see mesh/geom.hpp):
#
# POINT       = 0
# SEGMENT     = 1
# TRIANGLE    = 2
# SQUARE      = 3
# TETRAHEDRON = 4
# CUBE        = 5
#

dimension
3

elements
11
1 5 0 1 10 9 18 19 28 27
1 5 1 2 11 10 19 20 29 28
1 5 2 3 12 11 20 21 30 29
1 5 3 4 13 12 21 22 31 30
2 5 4 5 14 13 22 23 32 31
2 5 5 6 15 14 23 24 33 32
2 5 6 7 16 15 24 25 34 33
2 5 7 8 17 16 25 26 35 34
3 1 35 36
3 1 36 37
4 0 37

boundary
34
3 3 9 10 1 0
3 3 0 1 19 18
3 3 10 9 27 28
1 3 9 0 18 27
3 3 18 19 28 27
3 3 10 11 2 1
3 3 1 2 20 19
3 3 11 10 28 29
3 3 19 20 29 28
3 3 11 12 3 2
3 3 2 3 21 20
3 3 12 11 29 30
3 3 20 21 30 29
3 3 12 13 4 3
3 3 3 4 22 21
3 3 13 12 30 31
3 3 21 22 31 30
3 3 13 14 5 4
3 3 4 5 23 22
3 3 14 13 31 32
3 3 22 23 32 31
3 3 14 15 6 5
3 3 5 6 24 23
3 3 15 14 32 33
3 3 23 24 33 32
3 3 15 16 7 6
3 3 6 7 25 24
3 3 16 15 33 34
3 3 24 25 34 33
3 3 16 17 8 7
3 3 7 8 26 25
2 3 8 17 35 26
3 3 17 16 34 35
3 3 25 26 35 34

vertices
38
3
0 0 0
1 0 0
2 0 0
3 0 0
4 0 0
5 0 0
6 0 0
7 0 0
8 0 0
0 1 0
1 1 0
2 1 0
3 1 0
4 1 0
5 1 0
6 1 0
7 1 0
8 1 0
0 0 1
1 0 1
2 0 1
3 0 1
4 0 1
5 0 1
6 0 1
7 0 1
8 0 1
0 1 1
1 1 1
2 1 1
3 1 1
4 1 1
5 1 1
6 1 1
7 1 1
8 1 1
-2 0 0
-1 0 0

And mesh explorer blew up since the mesh did not contain all solid elements.
How would you do this in MFEM and still allow to use the matrix free operator in the hooke mini app?
Originally posted by @jtristano in https://github.com/mfem/mfem/issues/3341#issuecomment-1698105114

https://vdocuments.net/rbes-and-mpcs-in-mscnastran-a-rip-roarin-review-of-rigid-elements.html

I posted a reply in the original issue: see https://github.com/mfem/mfem/issues/3341#issuecomment-1698640440.


Ident.name is a function

This ensures compatibility with OCaml ≥ 4.07.
See corresponding changelog entry: https://github.com/ocaml/ocaml/blob/4.07/Changes#L464

This needs more testing; sorry.


how to  create a file to wiki repos via api

Feature Description
how to  create a file to wiki repos via api ,
the wiki repository 's name is "xxxx.wiki‘ when use api to create a file returns 404.
Screenshots
No response

You can create a wiki page via the API: https://try.gitea.io/api/swagger#/repository/repoCreateWikiPage Please check if the input's are correct, 404 means it didn't found the repository you did specify.

not a page , i want to commit an image to wiki repository 。like create a file to normal repository.

Please better specify your question next time, but you cannot upload a file to a wiki. The wiki doesn't behave as a git repo. If you want to upload a file, use the repository, using a picture in a wiki page, you will have to use markdown for that  ![A picture](link_to_picture)

Please better specify your question next time, but you cannot upload a file to a wiki. The wiki doesn't behave as a git repo. If you want to upload a file, use the repository, using a picture in a wiki page, you will have to use markdown for that  ![A picture](link_to_picture)

yes, but i want to use an tool upload the attachment(image) to the wiki repository when i editing the wiki page.
use git to commit an image every time is troublesome..

Watch the corresponding issue for that: https://github.com/go-gitea/gitea/issues/17231


vulnerable dependency

Hi,
Our recent WhiteSource scan reported a a medium severity vulnerabilities from @digitalbazaar/ed25519-signature-2020 3.0.0.
According to WhiteSource, this vulnerabilities is caused by this chain of dependencies:
ed25519-signature-2020 3.0.0
<EMAIL_ADDRESS><EMAIL_ADDRESS>-><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>causes CVE-2022-0235.
It seems that upgrading to the latest ky-universal (0.10.1) will solve this issue.
Thanks

@johnwen84 - thank you for the heads up!

@johnwen84 feel free to fork and fix if you have the time.

Discuss at https://github.com/digitalbazaar/http-client/issues/18.

@davidlehn @aljones15 I don't think we can simply fix it in ed25519-signature. But it sounds like you guys are in the mid of fixing @digitalbazaar/http-client to use the latest ky-universal, which is a great 1st step. After that we will need to create a ticket in jsonld to use the fixed http-client, then jsonld-signatures, then we can fix it in ed25519-signature. It might be a long shot before we get there. - Thanks

All of the updates (including this module) have happened to fix the vulnerable dependency now, closing.


discord: add wayland to library path

Description of changes
Fixes https://github.com/NixOS/nixpkgs/issues/207820
Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] 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

[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.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

[x] Fits CONTRIBUTING.md.

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

3 packages built:

discord
discord-canary
discord-ptb

My only concern would be whether or not this would bring in excess dependencies on X11 systems.
I don't know enough about how the wayland package operates to know.

My only concern would be whether or not this would bring in excess dependencies on X11 systems. I don't know enough about how the wayland package operates to know.

wayland is def already on all x11 systems, its also small


Ios set transformMatrix error,the json convert error

[RCTConvert.m:57] Error setting property 'transformMatrix' of RCTView with tag #147: JSON value '' of type NSNull cannot be converted to NSNumber
(
    1,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    1,
    0,
    "<null>",
    "<null>",
    "<null>",
    "<null>"
)

can react-native provide the context of which tag name occur the exception.

@facebook-github-bot stack-overflow

Hey @charlesluo2014 and thanks for posting this! @damusnet tells me this issue looks like a question that would be best asked on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. Will close this as this is really a question that should be asked on SO.


xK maps

Hi maniac support only 4K i try this and don't work on 7K maps

Only 4k maps are supported at the moment. I already laid the groundwork for xk support a while ago so I'll look into getting it implemented properly in the following days.

Ok good. good luck for this :3

Starting with v0.5.0 maniac now supports xk maps. I didn't test this feature exhaustively so there might still be some bugs.

Hi i test for xK and for 10K first key is same than tenth key

I didn't even know 10k maps existed, I'll look into it.
On Sun, 26 Apr 2020, 13:55 Hide-User<EMAIL_ADDRESS>wrote:

Hi i test for xK and for 10K first key is same than tenth key
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/LW2904/maniac/issues/37#issuecomment-619537525, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AGZ6G6G24PQLLDPXNQTXOVLROQOJJANCNFSM4MQ67EEA
.

To me, it looks like 10k maps aren't even properly supported by the osu client, or am I missing something?

That's correct I guess, there's no ranked 10k maps and only a few Loved... Thing is, I can't seem to find the config for 10k anywhere, guess they removed it?

Ah, that explains why I didn't find it either, thanks! This has a low priority for now since 10k doesn't seem to be particularly popular and it'd require a lot of extra complexity to implement.

Beatmaps can only use 4 to 9 keys. Anything else is not supported for the Ranked section.

From the osu!mania ranking criteria.
I'll take this as added justification that 4-9k will remain the only modes that maniac supports, closing now.


GSOC 2017: NumFOCUS will be an umbrella organization

Hi
Organizations can start submitting applications for Google Summer of Code
2017 on January 19 (and the deadline is February 9)
https://developers.google.com/open-source/gsoc/timeline?hl=en
NumFOCUS will be applying again this year. If you want to work with us
please let me know and if you apply as an organization yourself or under a
different umbrella organization please tell me as well. If you participate
with us it would be great if you start to add possible projects to the
ideas page on github soon. We some general information for mentors on
github.
https://github.com/numfocus/gsoc/blob/master/CONTRIBUTING-mentors.md
We also have a template for ideas that might help. It lists the things
Google likes to see.
https://github.com/numfocus/gsoc/blob/master/2017/ideas-list-skeleton.md
In case you participated in earlier years with NumFOCUS there are some
small changes this year. Raniere won't be the admin this year.  We are also planning to include two explicit rules
when a student should be failed, they have to communicate regularly and
commit code into your development branch at the end of the summer.
best, Max

I used to mentor for the SymPy project and found it generally to be good for the community and a nice way to attract a new developer or two each season.  I think that there are two challenges:

Finding a self contained project that a student can reliably complete within a summer that is important enough to matter but not a priority enough that some senior developer won't swoop in and finish it.
Finding a senior developer with time to mentor the student, or a student that has already demonstrated sufficient maturity to not need much mentoring

Some thoughts on projects:

R or Julia client/workers.  We might be able to jointly mentor with someone from those communities, although they're quite busy as well.  cc @shashi
Some particular class of machine learning algorithm.  Someone from sklearn might be able to jointly mentor here.  @amueller @ogrisel if you have any thoughts here for good topics or mentors please speak up.
?? (other suggestions anyone?

Thanks for bringing this up @kain88-de

As a note I'm also writing all other NumFOCUS projects. You should see soon which organizations will also apply for GSoC and where on the repository I liked above.
A tip about estimating project size. It shouldn't take an experienced developer more then a week to implement. It gives students an appropriate amount of time to get to know the code base and understand the problem.

I suspect that the deadline for this has passed.  Closing.


Uncomment saber block + switch on change resolution option

turns off trapfpe for gridgen test (otherwise it failed for me, and according to slack @Dooruk had the same issue)
updates 3DVar lowres test to use the SOCABkgErrFilt saber block using the change of resolution for the background in saber (https://github.com/JCSDA-internal/saber/pull/929)

build-group=https://github.com/JCSDA-internal/saber/pull/929

It'll run fast 😆


Add GCS Stage

This was forked off of #5.

Made it easier to test this one - see if working on Cloud by going to the project "HogFlix Demo App" on our org. You can also check out the APP_TEST table ("DEMO_DB"."PUBLIC"."APP_TEST") in Snowflake to confirm it works nicely

I think every file has a merge conflict now. 😅

Yeah definitely didn't play this out perfectly

Closing in favor of #7


kube-burner v1.7.3

Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[x] Optimization
[ ] Documentation Update

Description
Bumping kube-burner version
Related Tickets & Documents

Related Issue #
Closes #

Checklist before requesting a review

[x] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.

Codecov Report

Merging #342 (b9d94df) into master (81bf4cc) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #342   +/-   ##
=======================================
  Coverage   83.42%   83.42%
=======================================
  Files          21       21
  Lines         953      953
=======================================
  Hits          795      795
  Misses        158      158

Flag
Coverage Δ

gha
83.42% <ø> (ø)

python-3.9
83.42% <ø> (ø)

unit
83.42% <ø> (ø)

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


Hive binary type doesn't work correctly due to Ion Blob<>bytes conversion

Description
ion-hive-serde IonBlob <-> binary conversion currently returns the byte array’s reference in memory. It should returns at least a text representation of the Ion Blob value.
Reproduction
One example when query Ion Blob values through AWS Athena
Schema:
content has a type of binary
CREATE EXTERNAL TABLE test_blob (
    `payload` struct <
    id: string,
    content: binary >
)
ROW FORMAT SERDE 'com.amazon.ionhiveserde.IonHiveSerDe'
WITH SERDEPROPERTIES (
    'ion.encoding' = 'BINARY',
    'ion.fail_on_overflow' = 'true',
    'ion.path_extractor.case_sensitive' = 'false',
    'ion.timestamp.serialization_offset' = 'Z',
    'ion.serialize_null' = 'OMIT',
    'ion.ignore_malformed' = 'false'
)
STORED AS INPUTFORMAT 'com.amazon.ionhiveserde.formats.IonInputFormat' OUTPUTFORMAT 'com.amazon.ionhiveserde.formats.IonOutputFormat'
LOCATION 's3://test-athena-ion-shorthand/';

File
Below is the Ion file, content has an IonBlob value.
{"payload":
  { id:"2022-12-08T17:08:11.174Z#5a5b185a-9b13-482c-bb78-fe1894f39000",
    content:    {{e3BhdHRlcm46W3tsTJDKVEO#JD3r942kdkvDNVfdGltZToyMDIyLTEyLTA4VDE3OjA4OjA5LjU2MFosc291cmNlOntjdXN0b21lcl9pZDo2NTc3NjI5NjAwMixza3U6IkIwQk5OTVBTTjgiLHNrdV92ZXJzaW9uOjJ9fV19fV19}},
}}

Query
select * from test_blob

Result
{
    id=2022-12-08T17:08:11.174Z#5a5b185a-9b13-482c-bb78-fe1894f39000,
    content=[B@4e3f3378,
}

Notice that content value changed from an Ion Blob to B@4e3f3378, which is a bug in ion-hive-serde.

@cheqianh
Hi Eric,
This is Trey who addressed this issue to you.
Please assign this issue to me and I'm going to work on it :)
Thanks!


Enable adding groups to CN=Users

This pull request adds logic to the construction of the group distinguished name in order to enable creating groups in CN=Users. This logic is almost the same as it is used in the user provider.
The change in this PR addresses issue https://github.com/TAMUArch/cookbook.windows_ad/issues/30

thanks for merging, But I just found a small bug in this PR. I will be making a new one in a few minutes to fix it.

Alright!

@lolindirfalasion PR https://github.com/TAMUArch/cookbook.windows_ad/pull/32 fixes the bug introduced here.


How to approach add_nested with mismatched index

add_nested currently works as a left join from the perspective of the base layer, as shown below:
# unmatched nested objects are removed
>>> base = NestedFrame({"a":[1,2,3]}, index=[0,1,2])
>>> nested = NestedFrame({"b":[1,2,3,4]}, index=[0,1,2,3])

>>> base.add_nested(nested, "nested")
	a	nested
0	1	b 0 1
1	2	b 0 2
2	3	b 0 3

# unmatched base rows are kept
>>> base = NestedFrame({"a":[1,2,3]}, index=[0,1,2])
>>> nested = NestedFrame({"b":[1,2,3,4]}, index=[0,1,3,3]) # no match for index=2

>>> base.add_nested(nested, "nested")
	a	nested
0	1	b 0 1
1	2	b 0 2
2	3	None

Is this the best default behavior? Should we add various join options to the output of this operation? For time-domain purposes, I can see value in keeping nested lightcurves even when no object information is present

This has been implemented on the nested-dask side as a choice that defaults to an outer join, we should follow suit here:

Should be fixed when #115 and #116 are fixed


TypeError: forward() get an unexpected keyword argument 'pos'

managed to load data but has error as the title

I have the exact same issue. I'm digging into the code and will report back here if I find something :)

Doing this https://github.com/MarkFzp/act-plus-plus/issues/3#issuecomment-1877316563 seems to solve the problem

yep as mentioned by @apirrone , in detr/models/detr_vae.py at line 285 change build_transformer to build_encoder will solve the issue and mine starts to train now


Add E2E tests for MMS with the V2 protocol

What this PR does / why we need it:
Add integration tests for MMS when using the V2 protocol with SKLearn and XGBoost models.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
There are some changes due to black's autoformatting rules.
Release note:

NONE

@adriangonz Great work always! Thanks!
/lgtm
/approve

@adriangonz Great work always! Thanks!
/lgtm
/approve


Add tty+stdin container options for the test container deployed

Add tty+stdin container options for the test container deployed to the cluster so it doesn't exit immediately.

@cjellick @cloudnautique
Hopefully this fixes the problem, but I'll probably continue to investigate some more

LGTM

LGTM


Custom server logic / routing

next -s server.js

or in package.json:
{
  "next": {
    "serverHandler": "./server.js"
  }
}

Let's say you want to override the default mapping between filesystem and route, you could set up something like this:
const { renderComponent } = require('next/server')
module.exports = ({ path, req, res }) => {
  if ('/a' === path) {
    return renderComponent(req, './b')
  }
}

The function would receive a context object with the following properties (as far as I have thought about it):

path the intended path of the request. This is so that if we request /a.json or /a, the path is still /a, which simplifies the logic for the programmer
req the original request from node
res the original response from node

The return value can be a Promise. If undefined is returned, it performs the default behavior.
This file provides an opportunity to short-circuit (like send a 301), add global security / authentication requirements, etc.
[1] We might or might not want to transpile this file. Since it's "server-only", I think it's ok to assume it just supports whatever the version of Node.js you're running.

Can't get this this to working, I have tried to create a server.js
const { renderComponent } = require('next/server')
module.exports = ({ path, req, res }) => {
  console.log(path)
  if ('/a' === path) {
    return renderComponent(req, './pages/index')
  }
}

but still showing 404 with no logs printed on console

@nodegin this feature isn't implemented yet. 😢
@rauchg do you wanna PR for that?

This should be fairly easy to implement. Wanted to hear comments about whether the proposed API makes sense to you all.

Might be easier to have a convention on say /api/* matching .js files in a server directory...
Maybe also supporting some koa/express type middleware insertion/signature (req, res, next) => ?

Without realizing this issue existed I have done some work toward this already.  It allows for custom endpoints placed in an /api` folder.  Perhaps the modifications might interest someone here: https://github.com/jmfirth/next.js/commit/c42b56217dc29a5a4a50b5bdac6ba2b771e37cec

@jmfirth That looks great and is exactly what I am looking for. I can also see it being very useful as I have a really small app with only a few api calls. It would be awesome not to have to create a separate server project for my app.

dev is presumably a development mode flag
dir appears to be an injectable root module path that defaults to process.cwd()
A more general answer is that it follows the same general convention that the render method follows.  Both seem like they could be potentially useful for someone developing endpoints.

this should be merged into master

After reading the home page of the project and this issue some things are not clear to me. Please, consider that i only have a very superficial understanding of the project but maybe my doubts can help you clarify some things about the project itself even in the home page.

code may need to be able to do something when both entering on a route and leaving a route

If you perform some task (i.e. data fetching) it needs to be clear wether re-entering the same route causes a redraw or not

sub-routes like product/:id/comments/:cid/author?expanded=true means that a child component may need to access "parent" parts of the url, the data fetched by parent components, url parameters.

I don't understand why you have req and res node.js structures in the routing code as routing may very well happen on the client side (the browser-app knows where it is going, already has views pre-loaded, and just wants to perform actions to fetch data from the apis).
In general i do not think that the job of the router is something that should be done at components/views level. I think router has much more to do with the application state (reducer, actions)

Would you allow for renderJSON too?

I think it'd be really smart to expose a micro type contract: you can resolve the promise to an object and it gets rendered as JSON automatically :)

Also, if you want to parse incoming JSON, you can just use micro tools!
import { json } from micro
export default async function ({ req, res }) {
  if (path === '/woot') {
    const body = await json(req)
  }
}

I like this a lot as it preserves minimalism while allowing for unlimited power!

@davibe

You can do this with lifecycle hooks. didMount / unmount
This is also up to react and componentWillReceiveProps, shouldUpdate, etc
You parse the url, you decide what component gets rendered by turning the URL into query data. The URL can be "polymorphic", ie: it can point to any component.
We support both client side state and routing. Redux example: https://github.com/zeit/next.js/wiki/Redux-example. I don't see how you can be more universal than this.

Will be nice to have method for serving static files.
import { sendFile } from 'next/server'
export default async function ({ req, res }) {
  if (path === '/foo/bar.png') {
    await sendFile(res, './build/bar.png')
  }
}

@dotcypress you can make a folder called static and just drop stuff there. it maps to which maps to /static/thing.png

@rauchg I spent some time this morning refactoring the example I posted above and wound up with an very similar result, but with differences:

I want all the custom code transpiled, so I expanded the entry point glob defined in webpack.js to include everything but node_modules and static folders as potential entrypoints:

const entries = await glob('!(node_modules|static)/**/*.js', { cwd: dir })

And modified all the JS loader constraints to simply: exclude: /node_modules/ which allows for webpack to transpile all custom code.  At least for my purposes this makes a lot of sense.

I want the plugin to pick up at the route definition point, but I don't want them to have access to this.router directly, so I added a helper method to server/index.js called addRoute that is injected into the plugin:

  addRoute (path, fn, method = 'GET') {
    this.router.add(method.toUpperCase(), path, fn)
  }

The plugin's hook becomes a route definition and each script is a simple default export of that definition.  I also think this is probably the right level- it's hard to predict what the plugin might be so having access to the res makes a lot of sense.

export default function (addRoute) {
  addRoute('/api/:path+', (req, res, params) => {
    // do something and manipulate `res`
  }, 'GET')
}

Certainly could be refined further but I like the generalized plugin approach a lot.

A concrete example of changes: https://github.com/jmfirth/next.js/commit/d63bf5349c09c28a6a3f0e28e2abd7ceae0090de
And example plugin that enables the same sort of /api routes - /plugins/api.js: https://gist.github.com/jmfirth/a202d0dc9c52c64be6e8523552e0fc4a

I wonder if we can extract some parts of next as a library, instead of supporting custom server and api things.
Then ideally, you can create your server using http or express etc.
import next from 'next-core'
import http from 'http'
const render = next({ /* settings */ })

http.createServer((req, res) => {
  if (req.url === '/a') {
     render(req, '/b')
     .then((html) => {
       res.setHeader('Content-Type', 'text/html')
       res.end(html)
     })
  }
})

@nkzawa I was thinking that taking complete control of the process would be really cool!
I still think that next build will be highly desirable, so maybe instead that module should perform export defaults of the created server?

Alternatively, this is one of the examples where "ejection" could be really cool to implement. Let's say you don't want ./pages auto-registration at all, or you want a completely different path, you can "eject" the server part and customize it.

What if you can write a server using any modules,  but can't use next start or next.
// ./some/path/my-server.js
const { renderComponent, serveStatic } = require('next/server')
const http = require('http')

http.createServer((req, res) => {
  // ...
}).listen(3000, () => {
  console.log('Ready!')
})

and run:
$ node my-server.js

I love that idea provided that renderComponent works well with the pre-built cache of next build. We'll also want to make sure the entry points are customizable, in case people really want to completely change the fs structure.

I love the idea of having the pluggable server handlers as discussed here. What I would also suggest (not sure if it's out of scope for this PR or Next.js in general) is the ability to define custom endpoint, more like an API. Point is to allow e.g. implementation of a contact form where the payload is sent to a server and emails are sent using custom server logic. That of course could be easily implemented using stuff like AWS lambda however having the ability to define a set of functions that perform as endpoints would be interesting.

Using a micro instance (or Koa2) would be so useful! Don't reinvent the wheel :)
What do we need to get this merged?

One use case: using next on top of FeathersJS... Been doing some basic ssr with FeatherJS and the output of CRA build but, using next would be great (as a hook for express app.get('*', nextjs(req, res, next));

This would also provide some escape hatch if I want my code to be 'server only' and not universal.
@jmfirth correct me if I'm wrong, but your PR actually makes this escape hatch universal rather than server only?

I'm probably in the minority here but I've come around to the perspective that I wouldn't want next to handle all this stuff directly. I like the idea of wrapping the whole thing in a middleware tier, and routing to next as appropriate. That way you're not using next as a one-size-fits-all solution, its role gets restricted to rendering a view as it does now.
Curious for thoughts around this, though. Do most people find it simpler just to add this functionality to next, rather than abstracting it out to a higher level?

Specifically, rather than adding server support to next, I feel like there's one tool missing from the zeit stack - an orchestration layer that essentially just exposes middleware routing. It becomes your server, and each endpoint of your server gets delegated to a standalone micro project.
So let's call this project orchestrator or something. You'd npm install orchestrator, and it would give you some CLI commands.
It could step you through some basic questions, do you want a view layer, do you want a service layer, do you want secrets and environment variables, etc. It stores all of this to an orchestra config file.
If you opted to include a view layer, it could create a subproject that uses next to stub that out. (or, down the line, next could be one of several offerings - could do angular or elm or clojurescript stubs here, too, this could be pluggable).
If you opted to include an API layer, it could create an 'api' folder with one default micro instance that just sings at /api/ping and returns pong, with some stubbed out tests for it.
You get a routes file that allows you to parse request URLs as @rauchg mentions above and maps them to specific client pages or service endpoints.
The whole thing has git support to treat it as a single project, but each service and each next project gets its own deployment logic to get pushed out to autoscaling now instances. So you have the feeling of working on a single application, but under the hood it's all pieces and parts that know how to work together.
You could have npm run dev to run all of your services locally on different ports (and your middleware tier can just be aware of this), or you could have npm run deploy:dev which deploys your services out to now instances with your dev envars set, or npm run deploy:prod which deploys them with your prod envars sets and auto-aliases the middleware host to your alias.
I've got a prototype that has started down this road, using now-fleet to handle orchestration and deployment, but there are some things I am still trying to iron out. But I vastly prefer this degree of abstraction, and this orchestrator can be the one-stop-shop turnkey product for stubbing out and deploying huge sites.
And that's why I think it's a mistake to add custom server support to next, just like it would be for micro. Because ultimately your view engine is just a specialized microservice that returns HTML instead of JSON.
/phew rant over but I'd love to hear thoughts about this.

@mbilokonsky I agree that a lot of this can be handled at the proxy level. But we also have to be realistic in that people will need at least some access to the underlying server. This API tries to expose the most minimal surface for doing that, without introducing or advocating bad practices (like tucking your entire server API into one process).
I'm thinking about writing a document about "best practices" in terms of separation of APIs in the backend for Next to avoid that situation

This would be perfect for sites powered by a CMS api. The handler could query the CMS using the route data and render different page (templates) accordingly.

For custom routes, why abandon the core the file system is the API rule?  I think that is one of the cooler parts of this framework!  The biggest problem I'm having is regarding RESTful routing, IE: I've got ./pages/user/view.js which I would like to render for /user/:id.   I've got no problem reading the URL... it's just telling Next which partial to render.
To that end, I suggest using express/rails style route conventions in the file names.  So in my example, I would literally name my file ./pages/user/:view.js, and it would work.  The name after the : is actually meaningless, here, but it would be cool to inject that into the default exported component as a prop too..

Solving my own problem (https://github.com/zeit/next.js/issues/25#issuecomment-258660345) with https://github.com/zeit/next.js/pull/223

I like making the "file system as an api" more powerful, but I also like that being the default "resolver", allowing more powerful url handling when needed.
Of course this project should not be everything for everyone. But this extension point would open up a lot of cool possibilities. A CMS backed React site being just one of which.
Speaking of which, it would be nice if renderComponent supported additional context for getInitialProps.

I would stick to just routing and and think that rails does it well:
config/routes.rb -> routes.js
routes.js is guaranteed to only run on the node side and is allowed to access fs. But it is sync as it's not expected to change without a deploy / depend on something remote.
This would look something like this:
const {route} = require('next/server')
module.exports = [
  route('/about', {to: 'about'}),
  route('/user/:username', {to: 'user'})
];

to can only point to files in pages (which are webpack entry points / chunks).
/user/tpreusse would be routed to pages/user which gets params: {username: 'tpreusse'} in getInitialProps. Additionally getInitialProps would expose path_for and url_for which could be used like this: path_for('user', {params: 'tpreusse'}).
I think in the solution described in the issue description would still need a way of passing information to the page / component rendered (as @eirikurn also mentioned) and the imperative nature would make it hard to predict routes. And my assumption is that with unpredictable routes the code splitting could become hard or sub optimal.
How would renderComponent work? Wouldn't it be more of a renderPage?

Bump: Curious if there is any movement on this PR?

Yes. I'm going to write a ticket specifying the final API we will implement
to request comments before shipping ✌
On Sun, Nov 20, 2016 at 9:15 PM Ari<EMAIL_ADDRESS>wrote:

Bump: Curious if there is any movement on this PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zeit/next.js/issues/25#issuecomment-261817446, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAy8YazyRi1KR7WCBmcft5jYfY0KEwaks5rAOKIgaJpZM4KYHwp
.

Closing this in favor of "Programmatic API": https://github.com/zeit/next.js/issues/291.
Thanks a lot for your feedback!
Keep track of that issue to learn about the progress of its implementation.
Closing this as it's no longer an exploration.

Like @rauchg mentioned, having a similar function to the "eject" of create-react-app would be great.
It would comfort users that doubt to use Next.js because of the "closed environment".

Is @jmfirth's suggestion implemented, or is a custom Express server the way to implement an API (custom backend)?

Custom server is the way to go 👍


Generic constraint is ignored when used in contravariant position

const A = <T: 1>(f: T => void) => {};

// passes, but should fail
A((_: 'bad') => {});

Flow version: 0.92.1
Expected behavior
Flow complains that the passed-in function has the wrong argument
Actual behavior
Flow does not complain
More test cases
https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoAxnAdgZwC5gCCYAvGADwAqAXGAIwB8AFFLZaQ2AG5wCWAJgEoOYAN4BfANypUwYGAAOAQxw4ApjgA0YAEYBXAjgAWcPTH5goS3jFSEmTAPq0A5DqX8XwkpwmDJYDJyiirqWmAqYGoAHgpq6Hhq-HYOzvTevuL+Mpi4BABCpBQ09MzRbBliUkHyVjbhkTFxCUmo+UxuHl7SGNj4YADCRVS0jEzlYOw+k5USPcF1MOH6BNgwAJ5gmAC2CjDWuBE6pgR4RmpgAE5qeHqXWNxKMHpqqAOpru6elZ3fkkA
Why I want this to work
I want to type a higher order React component that injects props.
Your function type ("bad") => void is a subtype of (empty) => void.
In turn, empty is a subtype of 1, so f: (empty) => void can be
passed to A<empty>.
If you instead write A<"bad">((_: "bad") => {}), then Flow does
raise an error as you might expect.
In your React example, Component is an AbstractComponent<empty>, and
so HOC<empty>(Component) is perfectly valid.
This looks sound to me.

@wchargin is right on here. One hint is that the program doesn't actually have a runtime error.
That said, I think there's a lot of room for Flow to be more helpful in this case. In the f function, the type parameter T never appears in an input position and thus never has the opportunity to be anything other than empty.

I see, thank you for the help.
I had a misunderstanding where I believed flow would pattern match T against the argument at the place I called A(...), but I see now that it infers a type that fits in the constraints of the argument and definition.
My original issue was more like this:
/* @flow */
import React, { type ComponentType, type AbstractComponent } from 'react';

const injectMaybeX = <Config: { x: ?string }>(
    Component: AbstractComponent<Config>
): AbstractComponent<$Diff<Config, { x: ?string } >> =>
    props => <Component {...props} x={null} />;

const TrimX = ({x}: { x: string }) => <div>{x.trim()}</div>;

const Enhanced = injectMaybeX(TrimX);

// I think this errors, cause it attempts to .trim() null?
<Enhanced/>;

https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoAlgWwA5wE4AuYASgKYCGAxgQDRgDeYBAntqWAMJw5wB2pvAgBVWpOizZgAggCMAzgTxUCXHv0FgAvmCh5uYAOR4K1AwG5UqSnwVh0vAFalqAWXLMZpABpgAvGAAeLl4odABzAC4GMAAPKIB+BTx7MK0APgAKVDAczm5cdQIo2STlVQKBAiC+ULC01ABKYvlFMvy+SoCAEgARdCgoapDwukY4sETFFK0wNLS-eezc7D1sOQXA8o6NegA6fZW4Ne0Y33peAFcYGG1gNIsrGyIhZMwffwz6GM0osaik6aaBobAIAE3QADc0l9dlNMBkGpoAsBwVCHtZeLYAKK8AAW5F4lFIoL8dkczgIbg83gyLywXgaFlyzNyqGAwDAAEkmLj7ABrHnodakPB6PByOiUcgXOTsdBEcgEAikHAEdYEOBgWGvBFgS7XeJAA
But I mistakenly stripped it down to a non-representative test case. I'll rename the issue.


cleanup: snippet-bot full scan

Find all the invalid / incorrect region tags.

Closing for now as the bot goes into troubleshooting.

I think we resolved the bot issue. Re-opening

It worked! Now this repo should be good to go, closing.


Option to use global idf value to allow consistent ranking order

Currently a local idf from a given node is used for ranking. However as the document to bucket and hence node mapping is random across groups, this results in different idf computation and different ranking order for same query issued to different groups.
Use cases where this is needed for a search engine powered by vespa:

sharing search result links between users leads to user 1 seeing different results than user 2 at the same time
pagination of results on the search interface needs consistent results to avoid repetition or miss of documents

We will not prioritize this in the short term, instead, we will do https://github.com/vespa-engine/vespa/issues/28611 as we believe the latter is a larger problem than inconsistency between nodes.


Upgrade Knative Camel to 0.18.0

Signed-off-by: nicolaferraro<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

Updates to existing Operators

[x] Is your new CSV pointing to the previous version with the replaces property?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

/ok-to-test

/lgtm

/retest

/ok-to-test

/ok-to-test

/ok-to-test

/ok-to-test

@nicolaferraro Can you have a look at logs here. It seems to me like operator cannot be started

@nicolaferraro Can you please rebase to latest master. So we can test your operator with latest tests.

/ok-to-test

/lgtm

We are merging it since kubernetes trst is green


Unable to load integration after updating to 2023.1.0

Please check existing (open or closed) issues before creating a new one. (https://github.com/fuatakgun/eufy_security/issues?q=is%3Aissue+)
If this is not an issue, you can use Discussions (https://github.com/fuatakgun/eufy_security/discussions) section.
Describe the bug
Since updating to 2023.1.0 im unable to load the integration. getting error Failed to Set Up.

This is the error being produced in the add on logs
Error
details:
{
schemaId: 15,
errorCode: 'schema_incompatible'
}
error stack:
• server.ts:85 receiveMessage
src/lib/server.ts:85:27
• server.ts:62
src/lib/server.ts:62:53
• node:events:527 emit
node:events:527:28
• websocket.js:1169 receiverOnMessage
node_modules/ws/lib/websocket.js:1169:20
• node:events:527 emit
node:events:527:28
• receiver.js:528 dataMessage
node_modules/ws/lib/receiver.js:528:14
• receiver.js:446 getData
node_modules/ws/lib/receiver.js:446:17
• receiver.js:148 startLoop
node_modules/ws/lib/receiver.js:148:22
• receiver.js:83 _write
node_modules/ws/lib/receiver.js:83:10
• writable:389 writeOrBuffer
node:internal/streams/writable:389:12
2023-01-05 21:40:28.828  INFO  Client disconnected with ip: <IP_ADDRESS> port: 35108 code: 1006 reason:
2023-01-05 21:40:40.209  ERROR Message error
Additional information
Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields;

Home Assistant Installation Type (OS - Supvervised - Core): Supervisor

Update your add-on to latest version 1.3.0

I'm seeing the exact same issue, although not on a supervised installation but on a custom docker based one. I've installed bropat/eufy-security-ws:1.3.0 and latest version of rtsp-simple-server running homeassistant 2023.1.2

Same here. Docker based install, eufy-security-ws and rtsp-simple-server are current as of today, but I'm getting the schema_incompatible error during eufy_security setup.


CSS Issue -> Modal window render out of screen

the css comes with the CDN link

and the css that come with semantic-ui-css package are different.
I am using the css come with package that create problem with modal window.
half of the modal window render out of the winow screen.

this is about the version  Semantic UI 2.2.12

This happens because the newer Version of Semantic-ui-css doesn't use the CSS position: fixed; top: 50%; left: 50%; anymore. Semantic-UI-React however still applies margin-top: -(half-height)px to the .ui.modal-element.
This happens when using Semantic-UI-CSS Version 2.3.X. Forcing version 2.2.12 fixes this problem for now.

Duplicate of #2550


[Notion] Add new page to top of database

Extension
https://www.raycast.com/notion/notion
Description
Would it be possible to add the new page to the top of the database?
Who will benefit from this feature?
anybody using databases, as I think this should have been the default
Anything else?
No response

@pimvanderheijden can you clarify what you mean by adding "to the top of the database"? If you are talking about the sort order of the database view, that needs to be set directly on the view. (If your database view is sorted by Created Date DESC, new pages added to the database will appear at the top in that view).
Please let me know if I'm misunderstanding your question, though!

I'm talking about the row number of the new page, in other words, the new
row in the database should have index 0. Notion creates database rows as
pages for some reason.
On Thu, 10 Oct 2024 at 15:51, Zac Sidnam @.***> wrote:

@pimvanderheijden https://github.com/pimvanderheijden can you clarify
what you mean by adding "to the top of the database"? If you are talking
about the sort order of the database view, that needs to be set directly on
the view. (If your database view is sorted by Created Date DESC, new pages
added to the database will appear at the top in that view).
Please let me know if I'm misunderstanding your question, though!
—
Reply to this email directly, view it on GitHub
https://github.com/raycast/extensions/issues/14861#issuecomment-2405157095,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFL2SSTHIHDZ3QSVLJ6CQR3Z22A7VAVCNFSM6AAAAABPWHAH3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGE2TOMBZGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

It's unsorted I would say and that's why the newest item is on top. It looks like this for me. I created the item on top right now.

When I perform the Notion "Create Database Page" command, the item ends up at the bottom

To clarify, by "unsorted" I don't mean disordered but I mean the order in which it is stored under the hood, within the database.

@pimvanderheijden thank you for those screenshots; that was what I needed! I see what you are saying that Notion adds the row to the top of the table if you click the "New" button at the top of the database view and adds it to the bottom if you click the "New" button at the bottom of the view. That is really interesting that they do that, but I'm not seeing any way to control the insertion order from their API. It looks like there is a similar limitation if you create a Notion button that adds a page to a database; the new page always gets added at the bottom. Unfortunately, unless Notion updates the API to give us this ability, you will have to rely on sorting to make sure the newest row is always at the top.

I read about this a little further and it seems that Notion internally has access to an order property on the view itself, not on the database, which is also what enables manually dragging rows up and down the table views. You can see that this is specific to the view by adding another table view for that database  -> the rows will be laid out in order of "Created time" DESC even though they are ordered differently in your original database view.
Notion does not give access to creating/editing views in their API yet, so we won't have this ability.

Thanks for diving into this. So there is no way currently to get the newly
inserted rows in top, correct? That's a pity.
I think we could say it's a UX issue with Notion itself. I noticed it also
occurs in the Notion app when you have a bad connection (or are offline).
Anyway, interesting topic. Thanks for spending some time on it with me!
On Fri, 11 Oct 2024 at 15:49, Zac Sidnam @.***> wrote:

I read about this a little further and it seems that Notion internally has
access to an order property on the view itself, not on the database,
which is also what enables manually dragging rows up and down the table
views. You can see that this is specific to the view by adding another
table view for that database -> the rows will be laid out in order of
"Created time" DESC even though they are ordered differently in your
original database view.
Notion does not give access to creating/editing views in their API yet, so
we won't have this ability.
—
Reply to this email directly, view it on GitHub
https://github.com/raycast/extensions/issues/14861#issuecomment-2407457987,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFL2SSWJYCF5EYWHJWAJQ2LZ27JPBAVCNFSM6AAAAABPWHAH3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXGQ2TOOJYG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

@raycastbot close this issue


VS Code specific environment variables shouldn't be passed on to debug targets

Issue Type: Bug

Under Linux, start debugging any dotnet project that can log out the environment variables.
Notice the debug target's environment variables include many related to VS Code's configuration.

For example, running any debug target that requires Wayland on Linux will fail because Wayland is disabled by VS Code's configuration. ie: the DISABLE_WAYLAND and changes to the XDG_* (especially XDG_RUNTIME_DIR) variables should be undone before launching the debug target.
VS Code version: Code 1.46.0 (a5d1cc28bb5da32ec67e86cc50f84c67cc690321, 2020-06-10T08:59:04.923Z)
OS version: Linux x64 5.3.0-59-generic snap

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz (12 x 1831)

GPU Status
2d_canvas: unavailable_softwareflash_3d: disabled_softwareflash_stage3d: disabled_softwareflash_stage3d_baseline: disabled_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: disabled_offrasterization: disabled_softwareskia_renderer: disabled_off_okvideo_decode: disabled_softwareviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
1, 1, 1

Memory (System)
46.99GB (41.10GB free)

Process Argv
. --no-sandbox

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu-wayland

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu-wayland

XDG_SESSION_TYPE
wayland

Extensions (3)

Extension
Author (truncated)
Version

docomment
k--
0.1.11

csharp
ms-
1.22.0

cpptools
ms-
0.28.3

Forwarding first to @weinand since he looked into environment variables passing. And then he can potentialy forward to dotnet extension

This is a valid request.
Until we'll have a fix, please try this:
Some debug extensions not only support to specify environment variables for the debug target, but also to delete environment variables by setting them to null, e.g.
"env": {
   "foo": "bar",
   "DISABLE_WAYLAND": null
}

Please try whether this works for your debug extension (or file a feature request against the extension).

Thanks @weinand,
Yep I already got it working, but it took half and hour of trial and error to figure out exactly which variable was causing the problem - which is why I logged this issue.
Similarly, I'd noticed previously when doing some GTK+ development that that app behaved differently when run from VSCode compared to running from command line.  It didn't occur to me at the time that it'd be an environment variable - but I'm sure that's what it was.
Basically, if this could be fixed it'd save others from the seeing mysterious differences between running from VSCode and launching from command line.
Brad

Duplicates https://github.com/microsoft/vscode/issues/42373


RESTIC_REPOSITORY default set to ""

https://github.com/lobaro/restic-backup-docker/blob/f308eca25b32d24fbd81b59cc8ca461bb721ac93/Dockerfile#L25
This breaks docker runs that expect it to be defaulted to /mnt/restic.

I removed the duplicates, thanks for mentioning.


Support collapsing SCM view

Both Search View and File Explorer support collapsing the results list. Example:

It would be great if SCM view provides the same functionality, instead of the user having to manually collapse all roots.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Is there a way to exporting JSON configured List from from one site to another

Sample (which sample are you talking about)
Anyone of the samples
Question (the more details, the better)
I have a custom SPO list where I applied JSON formatting for the Header, Body and Footer. I would like to treat this as template so that I can export and apply it to another site as opposed to doing it manually. I thought the PnP.PowerShell cmdlet “Get-PnPSiteTemplate” would be able to export the list formatting but to no avail. For your information, I can see column formatting be easily exported as part of my Get-PnPSiteTemplate but not the list formatting.
If there is a way where we can be able to export such Header, Body and Footer custom JSON code and import it to a targeted site list?

Did you give a look on the scripts on tool folder in this repo, maybe can help you there https://github.com/pnp/List-Formatting/blob/master/tools/general-dynamic-deployment-with-vscode/powershell/PowerShell/ListFormatting.Deployment.ListView.ps1

Sample (which sample are you talking about)
Anyone of the samples
Question (the more details, the better)
I have a custom SPO list where I applied JSON formatting for the Header, Body and Footer. I would like to treat this as template so that I can export and apply it to another site as opposed to doing it manually. I thought the PnP.PowerShell cmdlet “Get-PnPSiteTemplate” would be able to export the list formatting but to no avail. For your information, I can see column formatting be easily exported as part of my Get-PnPSiteTemplate but not the list formatting. If there is a way where we can be able to export such Header, Body and Footer custom JSON code and import it to a targeted site list?

@astatke Here you can find and use powershell script just for this specific task:
https://pnp.github.io/script-samples/spo-list-formatting/README.html?tabs=pnpps

@ValerasNarbutas - Thank you for sharing as this is exactly what I was looking for. I will try to implement using this sample script and report back my findings.
@aaclage - Thank you for sharing your resources as well. I found it to be helpful for deploying column and view formatting from site to site.

BTW, this code has helped me to do what I was looking for,  https://pnp.github.io/script-samples/spo-list-formatting/README.html?tabs=pnpps


make: remove old .pb.go

for example https://github.com/opiproject/opi-api/blob/main/storage/Makefile
remove old https://github.com/opiproject/opi-api/tree/main/storage/proto before generating new ones...

fixed by #127


Stand-alone offline example (using static assets without backend)

Thanks for this amazing open-source project!

Is it possible to create a standalone vts-browser-js, while having all the assets in local static files?

How does look a simplest possible mapConfig.json having a basic regular "sphere" surface instead of an ellipsoid, without a need to load any server assets (or just a few pre-generated static files - but are they required for sphere with really basic math?) and displaying a single WGS84 jpg texture file and loading over it the standard OpenStreetMap-like Mercator tiles?
This would make a perfect minimalistic use-case for the open-source project...
Is it doable with the VTS project right now?
Here is a similar example - made using Cesium:
https://webglearth.github.io/webglearth2-offline/ with all the required static files hosted on GitHub at
https://github.com/webglearth/webglearth2-offline/tree/gh-pages/v2
I see https://github.com/Melown/vts-browser-js/blob/master/demos/basic/demo.js - where all the logic is on external file https://cdn.melown.com/mario/store/melown2015/map-config/melown/VTS-Tutorial-map/mapConfig.json loading a lot of additional assets...
I have failed to prepare a simplistic prototype with VTS Browser and the documentation did not help me much... All your standard examples always refer to the cloud assets. I know I could start vtsd and your mapproxy, but for a basic offline demo, this is just a crazy overhead - if it would be possible to serve a few static files...
Could you demonstrate a similar minimalistic example, please? @DavidLevinsky?
Cesium clearly is capable of similar mode. We would be keen to adopt and recommend your open-source project - especially because it runs well with our OpenMapTiles tiles. This is a first step for ensuring it is a viable lightweight open-source option to Cesium...
Thanks for any tips where to start - or for a code of a basic standalone example...

I am looking forward to hearing about any update from your side 👍

Hello,
Is vts-browser-js support this mode in the latest version?
any inputs on this would be really appreciated.


Add CSV support

What do u want exactly?

@Aditi-1709 Before MVP can be completed, we need a way to export the payloads of web responses into CSV files. This is an open question and will require a milestone to be created.
If you're interested in this as a project you can create the milestone. The first thing we need to do is determine which go package would be best for writing CSV data, if any. This would for sure be a hacktoberfest ticket, but would be a POC and not actually introduce code into the code base.

This project will be moved to https://github.com/alpstable/gcsv


Segment fault when packed with pyinstaller on linux

Take this simple program as an example:
# test.py
from pyglet import app, clock, window

win = window.Window(400, 300, "test")

@win.event
def on_activate():
    print("event: on_activate")

@win.event
def on_deactivate():
    print("event: on_deactivate")

@win.event
def on_expose():
    print("event: on_expose")

@win.event
def on_draw():
    win.clear()

if __name__ == "__main__":
    clock.schedule_interval(win.draw, 1 / 60)
    app.run()

Then run:
pyinstaller -F test.py

Then I run python test.py and test(generated by pyinstaller) and apply following action twice:

Open the window
Minimize the window
Show the window

They have different behaviors:
$ python test.py
event: on_expose
event: on_expose
event: on_activate
event: on_expose
event: on_deactivate
event: on_expose
event: on_activate
$ ./dist/test
event: on_expose
event: on_expose
event: on_activate
event: on_expose
event: on_deactivate
[segment fault occurred after deactivate the window]

The following information may be useful:
           PID: 40211 (test)
           UID: 1000 (jason)
           GID: 1000 (jason)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-02-15 20:22:25 CST (1min 23s ago)
  Command Line: ./dist/test
    Executable: /home/jason/Desktop/mystery/dist/test
 Control Group<EMAIL_ADDRESS>          Unit<EMAIL_ADDRESS>     User Unit: app-codium-f871a7386bc04ed0912f3571bb3c89d4.scope
         Slice: user-1000.slice
     Owner UID: 1000 (jason)
       Boot ID: c5b33364fbd648119cd60c079d88ed29
    Machine ID: 52078f282d23400cb95de4b0fdd5f887
      Hostname: mydebian
       Storage: /var/lib/systemd/coredump/core.test.1000.c5b33364fbd648119cd60c079d88ed29.40211.1707999745000000.zst (present)
  Size on Disk: 50.6K
       Message: Process 40211 (test) of user 1000 dumped core.

                Stack trace of thread 40211:
                #0  0x00007f43e5fd1e2c __pthread_kill_implementation (libc.so.6 + 0x8ae2c)
                #1  0x00007f43e5f82fb2 __GI_raise (libc.so.6 + 0x3bfb2)
                #2  0x0000000000404204 n/a (/home/jason/Desktop/mystery/dist/test + 0x4204)
                ELF object binary architecture: AMD x86-64

and output from dmesg:
[353795.150103] test[40212]: segfault at 8 ip 00007f27a5840620 sp 00007ffcd6e79968 error 4 in libX11.so.6.4.0[7f27a580b000+8b000] likely on CPU 3 (core 3, socket 0)
[353795.150158] Code: 16 b5 fc ff 66 0f 1f 44 00 00 48 85 ff 74 13 48 83 7f 08 00 74 0c 48 8b 07 ff 60 08 66 0f 1f 44 00 00 c3 0f 1f 80 00 00 00 00 <48> 83 7f 08 00 74 09 48 8b 07 ff 60 10 0f 1f 00 c3 66 66 2e 0f 1f

and from pyglet.info.
This issue was found both on KDE(Wayland) and KED(X11).

I saw this as well on the latest PyInstaller. It might be a bug introduced in some recent version.

I did a rough skim of pyinstaller's issues and didn't find a similar problem.
The error seems to occur in the underlying shared libraries, does that mean there is no solution with python?

Nuitka does not crash. Pyinstaller also did not crash in the past. Unfortunately, older PyInstaller does not support the latest Python versions, but it's worth to test previous versions.

I found that pyinstaller==5.13.0 won't crash.

That's good information.
I see in the v5.13 release notes, there is a message about "breaking changes in v6". https://github.com/pyinstaller/pyinstaller/releases/tag/v5.13.0
However, none of these changes should cause any pyglet issues. It's probably a new bug that was introduced since then.
Unfortunately v5.13 doesn't support Python 3.12, but it's good for a temporary solution.

So, you think this is a bug in the new version of pyinstaller. Then creating a new issue is a good option.

This looks like combination of regression in PyInstaller 6.x, and a bug in pyglet.
The PyInstaller-side of the problem is that with PyInstaller 6.x, locale.getlocale() in frozen application incorrectly returns (None, None), in contrast to unfrozen python and PyInstaller 5.x.
On pyglet side, this means that _have_utf8 is False:
https://github.com/pyglet/pyglet/blob/096766f05bd0142c35d51bef2aa16f215be8e05c/pyglet/window/xlib/__init__.py#L56
which results in self._x_ic initialization being skipped here:
https://github.com/pyglet/pyglet/blob/096766f05bd0142c35d51bef2aa16f215be8e05c/pyglet/window/xlib/__init__.py#L387-L406
and consequently XUnsetICFocus being called with NULL pointer here
https://github.com/pyglet/pyglet/blob/096766f05bd0142c35d51bef2aa16f215be8e05c/pyglet/window/xlib/__init__.py#L1583
causing the segfault.
So this can be triggered with unfrozen python as well, for example trying to run the sample program from original report with non-UTF8 locale set, e.g., LANG=sl_SI.ISO8859-2.

Thanks for taking the time to look into this. The non-utf fallback should be easy enough to fix on the pyglet side.

By using pyinstaller==6.5.0, this issue was solved.


links to 'identifiers.org' not working for KEGG metabolites

Hello,
see this example
https://metabolicatlas.org/explore/Human-GEM/gem-browser/metabolite/MAM03165c
the link to
KEGG | C02076
https://identifiers.org/kegg.metabolite:C02076
reports an error
"INVALID resolution request for 'kegg.metabolite:C02076', due to 'Resolution request 'kegg.metabolite:C02076' is NOT ABOUT A NAMESPACE; UNKNOWN namespace 'kegg.metabolite' when verifying local ID 'C02076''
the correct link should be
https://www.genome.jp/dbget-bin/www_bget?C02076

bug report to Met Atals @mihai-sysbio

Thanks for reported this @ANiknejad and for forwarding to Met Atlas @Hao-Chalmers . The issue was reported and a fix has been proposed in this PR. After review, it will be merged and eventually deployed.


how to set XEP-0080 data into a pubsub node?

I found to nodes:
geo/next
geo/current
geo/previous
What's the json format for lat,lng,city,....?
If I have to invent a format it would look like:
{
type:"Feature"
geometry:{
   point:[16.4,48.2],
},
properties:{
       city:"Vienna",
       country:"Austria",
       ...
   }
}

http://geojson.org/

I believe it uses http://xmpp.org/extensions/xep-0080.html but you'd need to extend xmpp-ftw/xmpp-ftw-item-parser to support this format.


how to get embeddings after running run_pretraining.py code

Hi,
I have run the code run_pretraining.py script on my domain specific data.
It seems like only checkpoints are saved. I have got two files 0000020.params and 0000020.states.
How can I save the model or get a model from .params and .states files in checkpoint folder so that I can use that model to get contextual embeddings.
Can someone please help me with this?

same issue  ran run_pretraining.py
did not see the eval stats as the docs show, only below was my output tail
python run_pretraining.py
 --input_file=/tmp/tf_examples.tfrecord
--output_dir=/tmp/pretraining_output
 --do_train=True
--do_eval=True
--bert_config_file=$BERT_BASE_DIR/bert_config.json
--init_checkpoint=$BERT_BASE_DIR/bert_model.ckpt
--train_batch_size=32   --max_seq_length=128
--max_predictions_per_seq=20
--num_train_steps=20
 --num_warmup_steps=10
 --learning_rate=2e-5
...

INFO:tensorflow:  name = cls/seq_relationship/output_weights:0, shape = (2, 768), *INIT_FROM_CKPT*
INFO:tensorflow:  name = cls/seq_relationship/output_bias:0, shape = (2,), *INIT_FROM_CKPT*
WARNING:tensorflow:From C:\Users\1133884\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\learning_rate_decay_v2.py:321: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
INFO:tensorflow:Done calling model_fn.
INFO:tensorflow:Create CheckpointSaverHook.
INFO:tensorflow:Graph was finalized.
2019-06-02 17:32:10.657478: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
INFO:tensorflow:Running local_init_op.
INFO:tensorflow:Done running local_init_op.
INFO:tensorflow:Saving checkpoints for 0 into /tmp/pretraining_output\model.ckpt.

$ ls /tmp/pretraining_output
checkpoint  events.out.tfevents.1559492173.$USER
events.out.tfevents.1559493128.$USER
graph.pbtxt
model.ckpt-0.data-00000-of-00001
model.ckpt-0.index
model.ckpt-0.meta
model.ckpt-0_temp_d429a2381051436897cfe1ecc2c55df0

Should we simply call the below when running the model?
  --vocab_file=$BERT_BASE_DIR/vocab.txt \
  --bert_config_file=$BERT_BASE_DIR/bert_config.json \
  --init_checkpoint=$MY_PRETRIANED_BERT_DIR/bert_model.ckpt \

Hi @stevenwernercs
To use the model you have pretrained, mention the checkpoint number also.
For example if this is your folder

$ ls /tmp/pretraining_output
checkpoint
eval
eval_results.txt
events.out.tfevents.1559497862.RICL-AI710741
graph.pbtxt
model.ckpt-0.data-00000-of-00001
model.ckpt-0.index
model.ckpt-0.meta
model.ckpt-2.data-00000-of-00001
model.ckpt-2.index
model.ckpt-2.meta

you can mention which checkpoint model to take, like

--vocab_file=$BERT_BASE_DIR/vocab.txt
--bert_config_file=$BERT_BASE_DIR/bert_config.json
--init_checkpoint=$MY_PRETRIANED_BERT_DIR/model.ckpt-2 \

vocab.txt and bert_config.json are from the bert pretrained model itself as you have mentioned.
Hope I have cleared your doubt.

@KavyaGujjala . Did you get to know how to finally save the model ? Im facing a similar issue
Hi followed the instruction shared in  Pre-training with BERT
i ran these 2 file as mentioned in the instruction ,
python create_pretraining_data.py
python run_pretraining.py
after running those 2 file i got below list of files in the folder output_dir=/tmp/pretraining_output
checkpoint
eval
eval_results.txt
events.out.tfevents.1575545953.26760d2fc979
graph.pbtxt
model.ckpt-0.data-00000-of-00001
model.ckpt-0.index
model.ckpt-0.meta
model.ckpt-20.data-00000-of-00001
model.ckpt-20.index
model.ckpt-20.meta
1.what should i do now to test and perform the prediction of masked words for the sentences in the sample_text.txt that was used as corpus to pretrain this masked LM .
for example: if i want to input a sentence "man walked into store to purchase a gallon of [MASK]" into the model that is pretrained (which is present in /tmp/pretraining_output)
I know how we can load the original BertForMaskedLM model to do the mask word prediction but how to do it for this pretrained model that i have got in the output_dir=/tmp/pretraining_output ?
when i tried to load the model from this output instead of using BertForMaskedLM.from_pretrained('bert-base-uncased') i got below errror
from transformers import BertForMaskedLM
BertNSP=BertForMaskedLM.from_pretrained('/content/drive/My Drive/bert_training/pretraining_output/')
when i import
Model name '/content/drive/My Drive/bert_training/pretraining_output/' was not found in model name list (bert-base-uncased, bert-large-uncased, bert-base-cased, bert-large-cased, bert-base-multilingual-uncased, bert-base-multilingual-cased, bert-base-chinese, bert-base-german-cased, bert-large-uncased-whole-word-masking, bert-large-cased-whole-word-masking, bert-large-uncased-whole-word-masking-finetuned-squad, bert-large-cased-whole-word-masking-finetuned-squad, bert-base-cased-finetuned-mrpc, bert-base-german-dbmdz-cased, bert-base-german-dbmdz-uncased).
We assumed '/content/drive/My Drive/bert_training/pretraining_output/config.json' was a path or url to a configuration file named config.json or a directory containing such a file but couldn't find any such file at this path or url.
can you please tell me how should i proceed further after getting these files ,how can save it as a model and do the masked word prediction?
checkpoint
eval
eval_results.txt
events.out.tfevents.1575545953.26760d2fc979
graph.pbtxt
model.ckpt-0.data-00000-of-00001
model.ckpt-0.index
model.ckpt-0.meta
model.ckpt-20.data-00000-of-00001
model.ckpt-20.index
model.ckpt-20.meta


Add Ninja ability

This PR adds the ability to use Ninja as a CMake Generator.

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:41752b0ab90727f6e939e8e0d1af0bb8c7675972

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:059907ef4b4f16189fad378cc69376a84a8456a4

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:cd026e6dc431a4563424fdb39458afc480d7ab85

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:f655252706487ddecb2c9f1db859c00c7563d43d

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:f655252706487ddecb2c9f1db859c00c7563d43d

Your orb has been published to the CircleCI Orb Registry.
You can view your published orb on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=1.12.0


Update garage door status

I also use IFTTT applet with google assistant to open my garage door. Is there any way I can update the Door status without sending the code when this happens.

I can see this being handy for various devices, I too use multiple services to do what I need. I'll see what I can do.


exchange dirs 3.0.1 with dirs-next

Hi, can you please exchange dirs with the more up to date dirs-next:
https://crates.io/crates/dirs-next
The old one is abandoned and causes a security risk in cargo audit

Done in v0.5.5.


[Latte PHPStan Compiler] Concrete types for variables $presenter and $control

When we are in scope of Presenter, variables $presenter and $control in template are instances of this presenter, so we can use actual Presenter's type instead of abstract Nette\Application\UI\Presenter / Nette\Application\UI\Control
Also in scope of Control, $presenter is actual presenter (we can't get it in static analysis) and $control is actual rendered Control

Thank you, makes sense :+1:


Release blog post 4.2 updates

continuing #235

[x] Streamline text
[ ] Highlight features nicely

A massive thank you to the open-source Stride community for your dedicated contributions. This release saw X contributions from over Y amazing contributors, each playing a crucial role in making Stride 4.2 a reality.
Download and Upgrade
You can download the Stride 4.2 Installer today. Release notes are available here.
Make sure you read the guide to update Stride and projects properly.
Unity Licensing Model Impact: A Catalyst for Change
The game development world has seen quite a stir with recent changes in Unity's licensing model. These shifts have led many in our community to rethink their choice of development tools. Stride 4.2 steps up in this scenario as a solid, C#-based alternative, offering a familiar yet distinct approach for game developers.
Stride's Rising Popularity
It's been an exciting time for us. We've noticed more and more developers giving Stride a try, a trend clearly reflected in our growing user numbers. During the carzy unbity days, we were number 3 in the pupularity rankings, just after Godot and Bevy. Also a big shoutout to gamefromscratch for his video "Stride For Unity Developers", which definitely helped.
The Heartbeat of Stride: Our Community
What really makes Stride tick is you – the community. Your feedback, contributions, and ideas have been the driving force behind Stride 4.2. It’s your hands-on experience and insights that have helped shape this release, making Stride not just a tool but a community achievement.
Addressing the Pace of Updates in Stride
Let's talk about how often Stride gets updated. We know it's something on your mind, and there's a story behind it.
The People Behind Stride
Stride is brought to life by a group of passionate developers, much like yourself, who contribute in their free time. This means our pace might not match that of other engines backed by full-time teams, but it also means every update is a labor of love.
Facing the Realities: Funding and Resources
Here’s the deal: our funding levels shape how much we can do. We’re grateful for every bit of support we receive, but we’re still on our way to having a full-time development force. This financial reality does affect how fast we can roll out updates.
Making Every Update Count
Although we might not be the fastest out there, we focus on making each update meaningful. Quality, stability, and usability are what we aim for every time we release a new version of Stride.
Join Us on This Journey
We’re always excited to welcome new contributors to the Stride family. Whether it’s through code contributions, spreading the word, or donations, every bit helps us grow stronger. If you’ve got skills in .NET, Android, and iOS development, there’s a special place for you here. Support us on OpenCollective.
The Impact of Your Support
We believe that every donation has a substantial impact, perhaps more so than in some other projects. Why? Because C# as a language offers high productivity, and the Stride codebase has a great architecture. This means that every dime you contribute goes a long way.
Consider this: if Stride had the same level of financial support as engines like Godot, we believe our progress would skyrocket. With C#'s productivity and Stride's well-structured code, your donations have the potential to accelerate our development pace significantly. It's not just about keeping the lights on; it's about pushing Stride to new heights, faster and more effectively than many other projects.
Looking Ahead
With your support, we’re optimistic about picking up the pace. Our goal is to bring you new features and improvements more regularly, making Stride even better with each release.
What's new in Stride 4.2
Stride 4.2 includes numerous enhancements and improvements.
...

typo "pupularity"

This is in release notes, regarding the numbers:

A massive thank you to the open-source Stride community for your dedicated contributions. This release saw over 75 contributions from more than 22 amazing contributors, each playing a crucial role in making Stride 4.2 a reality.


brew install doesn't create symlink

In 0.12.0, brew link php-version doesn't appear to create a symlink in /usr/local/bin.
Here's the content of the Cellar
	cd /usr/local/Cellar/php-version/0.12.0/
	ls -la
	total 56
	drwxr-xr-x  7 sminnee  admin   238 27 Aug 09:27 .
	drwxr-xr-x  3 sminnee  admin   102 27 Aug 09:27 ..
	-rw-r--r--  1 sminnee  admin   310 27 Aug 09:27 INSTALL_RECEIPT.json
	-rw-r--r--  1 sminnee  wheel  1080  2 Jul  2014 LICENSE
	-rw-r--r--  1 sminnee  wheel  6568  2 Jul  2014 README.md
	-rwxr-xr-x  1 sminnee  wheel   897  2 Jul  2014 bug-report.sh
	-rwxr-xr-x  1 sminnee  wheel  5521  2 Jul  2014 php-version.sh

And the content of INSTALL_RECEIPT.json
	sminnee@Walnut /u/l/C/p/0.12.0> cat INSTALL_RECEIPT.json
	{"used_options":[],"unused_options":[],"built_as_bottle":false,"poured_from_bottle":false,"time":1440624479,"HEAD":"08bb15a8a5e4aa76c61a7f9f2a68b598b3ee6a00","stdlib":null,"compiler":"clang","source":{"path":"/usr/local/Library/Taps/homebrew/homebrew-php/Formula/php-version.rb","tap":"homebrew/homebrew-php"}}

Also, php-version.sh doesn't have an #! header, which means it doesn't work on Fish shell.

Hrm, upon further digging I see that your config instructions cover this. Is there a reason that you haven't just made a shell-script call php-version? Your set-up makes it hard to use other shells.

Hi @sminnee - Yeah, I agree. It's kind of a pain. There are pros and cons to doing it either way, but if I were to do it again, I'd probably make it a script instead.


Update active-directory-accessmanagement-groups-settings-cmdlets.md

Re-written article to correct settings names, add missing settings names, indicating some settings are not implemented, added examples and ported to Azure AD PowerShell V2

@RobdeJong,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@RobdeJong : Thanks for your contribution to the Azure documentation! The author, @curtand, has been notified to review your proposed change.

@RobdeJong : Thanks for your contribution to the Azure documentation! The author, @curtand, has been notified to review your proposed change.

it looks pretty good. I saw a couple of capitalization things I can catch later.
#sign-off

Cool, thanks!
Thanks,
Rob
From: Curtis Love<EMAIL_ADDRESS>Sent: Friday, March 17, 2017 10:34 AM
To: Microsoft/azure-docs<EMAIL_ADDRESS>Cc: Rob de Jong<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Microsoft/azure-docs] Update active-directory-accessmanagement-groups-settings-cmdlets.md (#1079)
it looks pretty good. I saw a couple of capitalization things I can catch later.
#sign-off
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/azure-docs/pull/1079#issuecomment-287421169, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK3wOK3UF35dK5r1fVJ4Nun9Zc9jVL99ks5rmsQXgaJpZM4MgujQ.


TypeError: No matching signature found

I tried to use this as a drop-in replacement for KMeans but I get an error:
File ~/.local/lib/python3.11/site-packages/pdc_dp_means/dpmeans.py:61, in _dpmeans_single_lloyd(X, sample_weight, centers_init, max_iter, verbose, x_squared_norms, tol, n_threads, delta, max_clusters)
     59 for i in range(max_iter):
     60     tic = time()
---> 61     lloyd_iter(
     62         X,
     63         sample_weight,
     64         x_squared_norms,
     65         centers,
     66         centers_new,
     67         weight_in_clusters,
     68         labels,
     69         center_shift,
     70         max_index,
     71         max_distance,
     72         n_threads,
     73         update_centers=True,
     74     )
     76     if verbose:
     77         inertia = _inertia(X, sample_weight, centers, labels, n_threads)

File pdc_dp_means/dp_means_cython.pyx:21, in pdc_dp_means.dp_means_cython.__pyx_fused_cpdef()

TypeError: No matching signature found
> /home/xk/github/xk/lb/pdc_dp_means/dp_means_cython.pyx(21)pdc_dp_means.dp_means_cython.__pyx_fused_cpdef()

ipdb> a
ipdb> u
> /home/xk/.local/lib/python3.11/site-packages/pdc_dp_means/dpmeans.py(61)_dpmeans_single_lloyd()
     59         for i in range(max_iter):
     60             tic = time()
---> 61             lloyd_iter(
     62                 X,
     63                 sample_weight,

ipdb> a
X = <31446x35104 sparse matrix of type '<class 'numpy.float64'>'
	with 246493 stored elements in Compressed Sparse Row format>
sample_weight = array([1., 1., 1., ..., 1., 1., 1.])
centers_init = array([[0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       ...,
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.]])
max_iter = 300
verbose = 0
x_squared_norms = array([1., 1., 1., ..., 1., 1., 1.])
tol = 2.764583521460033e-09
n_threads = 14
delta = 1.0
max_clusters = None

Here is my code:
    from pdc_dp_means import DPMeans
    from sklearn.feature_extraction.text import TfidfVectorizer

    sentence_strings = (path_to_sentence(s) for s in paths)

    joined_strings = []
    for doc in nlp.pipe(sentence_strings, n_process=4):
        joined_strings.append(" ".join([token.lower_ for token in doc if not token.is_stop]))

    vectorizer = TfidfVectorizer()
    X = vectorizer.fit_transform(joined_strings)

    kmeans = DPMeans(n_clusters=n_clusters or int(X.shape[0] ** 0.5), random_state=0).fit(X)
    clusters = kmeans.labels_

hmm I'm not sure how to try a nonsparse matrix. I'll look into it
cat /etc/os-release           NAME="Fedora Linux"                                           VERSION="38 (KDE Plasma)"
...

pip freeze | grep -iE '^sci|^num'                                                            numpy==1.23.4                                                 scikit-learn==1.2.2                                           scipy==1.9.3


[Firebase realtime database] Adding Data without initializing

Describe the bug
Using the new version of realtime database plugin firebase_database: ^4.0.0, I am able to add data without needing to initialize firebase_core
To Reproduce
The pubspec.yaml file:
dependencies:
  flutter:
    sdk: flutter
  firebase_core : ^0.5.0
  firebase_database: ^4.0.0

In main.dart:
import 'package:firebase_database/firebase_database.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: FirstRoute(title: 'First Route'),
    );
  }
}

class FirstRoute extends StatefulWidget {
  FirstRoute({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _FirstRouteState createState() => _FirstRouteState();
}

class _FirstRouteState extends State<FirstRoute> {
  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback((_) async {
      await FirebaseDatabase.instance
          .reference()
          .child("test")
          .set({"name": "peter"});
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("test"),
      ),
      body: Text("test"),
    );
  }
}

Flutter doctor
Run flutter doctor and paste the output below:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.1, on Mac OS X 10.14.5 18F132, locale en-LB)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[!] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
[✓] Android Studio (version 4.0)
[!] IntelliJ IDEA Community Edition (version 2020.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.48.0)
[✓] Connected device (1 available)

Yep, until the RTDB update lands this is possible. The current version works with the Core updates, but hasn't itself been updated to require this yet.

Yep, this is working as intended, the RTDB release is only a partial migration to 'play nice' with firebase_core with the least amount of code changes.


Reintroduce client certificate option to client example

The client example currently can't connect to the server example, as you need to give it an appropriate certificate chain.
Reintroduce the option in a nicer way.

Fixed.


interactive helm chart builder

Builds a configurator GUI in react by reading a schema file for any helm chart that provides one

UI for cndi init and cndi run ?


Fix/auto install 3.x

Codecov Report

Merging #255 (d5f5f7e) into master (93641a8) will decrease coverage by 0.82%.
The diff coverage is 44.61%.

@@            Coverage Diff             @@
##           master     #255      +/-   ##
==========================================
- Coverage   89.92%   89.10%   -0.83%
==========================================
  Files          39       40       +1
  Lines        3712     3771      +59
  Branches     1098     1113      +15
==========================================
+ Hits         3338     3360      +22
- Misses        335      367      +32
- Partials       39       44       +5

Impacted Files
Coverage Δ

packages/command-core/src/npm.ts
79.05% <13.33%> (-7.42%)
:arrow_down:

packages/command-core/src/utils/postInstall.ts
17.85% <17.85%> (ø)

packages/cli-plugin-fc/src/index.ts
66.66% <100.00%> (+1.66%)
:arrow_up:

packages/cli-plugin-package/src/index.ts
86.37% <100.00%> (ø)

packages/cli-plugin-scf/src/index.ts
89.28% <100.00%> (+1.78%)
:arrow_up:

packages/command-core/src/index.ts
100.00% <100.00%> (ø)

packages/cli-plugin-check/src/index.ts
93.96% <0.00%> (-0.27%)
:arrow_down:

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 93641a8...d5f5f7e. Read the comment docs.


Fix gl_FragColor warnings for shadow/tonemap shaders

Note that o_color has no meaning whatsoever to Panda.  Use p3d_FragColor or explicitly assign it to location 0.


Question

do we need this check ?
begin IF session_user = 'authenticator' THEN --------------------------------------------
-- To disallow any authenticated app users
-- from editing claims, delete the following
-- block of code and replace it with:
-- RETURN FALSE;
as the rpc call needs to pass the auth token for functions to execute, I assume that the pg functions are executed in the authenticated user's context?

Not necessarily. These procedures can be called by:

Edge functions using the service_role key (which bypasses auth)
Cron jobs from pg_cron which are invoked by the database itself as some predefined user
Other db functions which are using the SECURITY DEFINER privilege

My current understanding is that any of these cases could result in the function being called in such a way that the session_user != "authenticator" and that no JWT validation or auth has taken place at all.


All files for both new case study pages

Sorry I have never done this before and seem to be having a lot of trouble. I forked kubernetes.github.io and then added all the new case study files here. Let me know if there are any problems!

This change is

@alexcontini, In the right column, do you see a box labeled Allow edits from maintainers? If so, could you check that box.

@alexcontini, You can see that the deploy/netlify check has failed. That often happens because som reference in one of the files can't be found.

@alexcontini, I don't think you can use ./ in hrefs.
So change href="./pearson/" to href="/case-studies/pearson/"
and href="./box/" to href="/case-studies/box/"

@alexcontini, I don't understand why the jpg files are in this PR. I don't see them referenced anywhere.

@steveperry-53 my extreme apologies for all this confusion, it's my first time doing this and I promise to learn quickly and not repeat mistakes next time.

I updated the index.html file with the ./ replaced by /case_studies/

I checked "allow edits by maintainers"

the jpeg files are background images for sections. Reference to them is found in the css files (style_box.css and style_golfnow.css)

I added 2 new png files (logos for each page)

On this page, the GolfNow image covers up some text. And the Read about GolfNow link goes to the Pearson case study.
This page has some rendering issues. For example, in the right column, pieces of text cover each other. And at the upper left, the Kubernetes box is smashed up against some headings.
This page has the same rendering issues as golf-now. Also, check the text that starts with, "The vast majority." Is the background for that text supposed to be the Box UI?

@steveperry-53 thank you very much! so I updated the box.html css file (style_box.css), going to see if the updates work and I will update the other css file as well.

So this is how box.html is supposed to look: https://alexcontini.github.io/box.html - I changed the width of the quotes (ie. banner2text) as they are not going far enough, and that jumbled text on the top right side is not part of the file (I think it says Blog and Get Started, etc.)
The logo up top should be on the right site of "Case Study:", not sure why it is looking like that? The logo files are both in "images/" and it is linked to "/images/box_logo.png" so not sure why it's not showing up?
The background of the whole page should be white, I added body { background-color:#ffffff; in the css file as well to turn that dark grey pattern into white instead.
I also reduced the width of the golfnow.png logo that appears on the landing page so it should not cut off the text like that

Thank you so much for all your help!

@alexcontini Looks like the problem is that if you use layout: basic, it wraps your html in a template that adds a header, footer, and additional CSS. Goto the preview page https://deploy-preview-4235--kubernetes-io-vnext-staging.netlify.com/case-studies/box/ and view the source. I will try to create a more stripped down layout for you to use.

@alexcontini Ok, I've created a layout that shouldn't add anything else to your HTML. This is just a temporary fix because I know we need to get this out the door. Once it's up, I can go back and figure out how to make a better layout to suit your content.

Ok, all the changes are live now:

https://kubernetes.io/case-studies/
https://kubernetes.io/case-studies/golfnow/
https://kubernetes.io/case-studies/box/

@alexcontini Email me @google.com so we can coordinate a more long-term solution for this.

@chenopis, thank you so much for all your help, they both look perfect. I am going to email you now to figure out the layout issue. Thanks again to everyone for getting these up


Can not able to select multiple images/files from gallary and explorer

Hi ,
I tried sample app on the Xiaomi  Redmi 3S prime and not able attach multiple images/files. After selecting one image/file  , it is coming out of chooser .
I am able to select multiple images from "photos option" but not from gallery and explorer.

This is a limitation of those apps which don't allow multiple selections from other apps. Sorry, no solution for this yet.


Auto-generate functional wrappers

You should be able to reflect on the CDK through jsii (see this) and auto-generate functional wrappers for all constructs.

Thank you for hint! Indeed auto generation of wrappers would help a lot.


Personalized/secured browsing of site

Security alert: Personalized surfing on the site is not secured at all - all links are direct and could be sniffed.
Steps to reproduce: log in, find something in Guided Assistant search. Copy link and past to any other browser.

Agreed that this is not a bug but expected behavior. Closed.


Enable open source feedback control

Configure this repo to use the hybrid open source feedback control, instead of the existing feedback control.

No action required as feedback is disabled on this repo.


Unable to serialize browser's native Selection

Hi there, thanks for this great library.
I am trying to deserialize the Selection object so I can restore it later, but it seems that the rangy.serializeSelection(sel, checksum, root) method is not working with the native browser's Selection as the parameter.
Below is a snippet of my code:
var selection = window.getSelection();
var serializedSel = rangy.serializeSelection(selection, false, document.getElementById("content"));

And the error I'm getting is:
Error in Rangy WrappedSelection module: getNativeSelection(): Parameter must be a Window object or DOM node
Am I missing something here? Thanks a lot.

Having the same issue here.

I'm having the same error message while setting the editor's value using jquery plugin setData()  function.

Any updates on this issue? I'm experiencing the same.


Can I debug the cppia part of the project use debugger like hxcpp-debugger?

I am new to haxe, and I notice unreal.hx few weeks ago.
I think it's awesome and hope to study in depth.
I notice there is a vscode extension hxcpp-vscode-debugger that can debug the haxe code, after some study it works with the static part of unreal.hx code, but not the script part.
Is there any way for me to use the hxcpp-debugger with the script part?

Hi there! It's great that you mention that - we've been working on some improvements to hxcpp-vscode-debugger to better suit unreal.hx and mainly to add cppia support.
In order to benefit from these changes, you'll have to:

Install our own fork of hxcpp-debugger by running haxelib git hxcpp-debugger https://github.com/proletariatgames/hxcpp-debugger.git
Use our own fork of hxcpp-vscode-debugger by using the unreal.hx branch on https://github.com/proletariatgames/vscode-hxcpp-debug , and building that
Add the entry { "debugger": true } to your uhxconfig.json file, which should be a sibling to your .uproject file.

Following these instructions, you can then proceed to create some tasks by editing your project's tasks.json file. The changes we made to hxcpp-vscode-debugger still isn't documented anywhere, but here's a snippet of our own file which should get you started:
{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "Attach to process",
      "compileDir": "${workspaceRoot}/Game/Haxe",
			"type": "hxcpp",
			"request": "attach",
		},
		{
			"name": "Run Editor - Development",
			"compileDir": "${workspaceRoot}/Game/Haxe",
			"type": "hxcpp",
			"request": "launch",
			"run": {
				"args": [
					"Engine/Binaries/Win64/UE4Editor.exe",
					"Game/myproj.uproject",
					"-stdout",
					"-AllowStdOutLogVerbosity"
				],
				"cwd": "${workspaceRoot}",
			},
			"port": -1
		},
		{
			"name": "Run Editor - DebugGame",
			"compileDir": "${workspaceRoot}/Game/Haxe",
			"type": "hxcpp",
			"request": "launch",
			"run": {
				"args": [
					"Engine/Binaries/Win64/UE4Editor.exe",
					"Game/myproj.uproject",
					"-stdout",
					"-AllowStdOutLogVerbosity",
					"RunConfig=Debug",
				],
				"cwd": "${workspaceRoot}",
			},
			"port": -1
		},
]}

It works. thanks a lot~ ^_^


There is no tooltip Ctrl+R for 'Refresh' action in the new disks explorer

Storage Explorer Version: 1.33.0-dev (96)
Build Number: 20231215.2
Branch: main
Platform/OS: Windows 10/Linux Ubuntu 22.04/MacOS Monterey 14.1.2 (Apple M1 Pro)
Architecture: x64/x64/x64
How Found: From running test cases
Regression From: Previous release (1.32.1)
Steps to Reproduce

Expand Disks -> Open one resource group.
Hover the mouse to the 'Refresh' button in the toolbar.
Check whether there is a tooltip Ctrl+R.

Expected Experience
There is a tooltip Ctrl+R.

Actual Experience

There is no tooltip Ctrl+R.
Ctrl+R works well.

Verified this issue on the build 20231221.5. Fixed. So, we are going to close it.


Add Swift package manager support

Previously the only Swift maker was just for compiling a single file
with no arguments, now if there is a Package.swift file in the current
directory, we will use swift build instead.

Thank you both!
@keith
Please add it to https://github.com/neomake/neomake/wiki/Makers.

Updated! Thanks  @blueyed !

Condensed in https://github.com/neomake/neomake/pull/1891.
You might want to test it, but I'll merge it otherwise once it's green (likely, since there is no real coverage for this).


Annotations 19

I'm thinking we should probably merge back into the fuberlin base, but they don't seem to be compatible any longer
Perhaps I should try doing some updates/merges and then rebase?

I'm thinking we should probably merge back into the fuberlin base, but they don't seem to be compatible any longer Perhaps I should try doing some updates/merges and then rebase?

@wayfarer3130 I think we should merge the bidirectional + ellipse then? it's based on this one and covers all changes?


Bugfix/home page typo

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


Update all calls to take a block starting on a new line.

Hi!
Thanks for the awesome project!  I use this all day, erryday!
This is a PR for making all before/after hooks take a block function with a newline. I almost always have multiple statements in my beforeEach blocks, and almost never do one liner beforeEach/afterEach functions, and when I do, I just do:
beforeEach(() => {
   // My one liner here
});

I thought I'd make them all behave the same way, but I'm sure you have a coding style that the current way works really well for, so I won't feel offended if you reject this!
Regards,
Adam

@harmon I have been running into this as well. Ill pull this at some point soon and get it deployed. Shipping new versions of packages to the vscode store is a bit of a pain!


Update go.mod

Fix for Darwin MacOs as it won't build without it.

As stated here: https://github.com/golang/go/issues/65568


Re-submission of #1660: Unable to use Collection suffix for table name

This is an updated version of #1660

Shall we move forward? How can we resolve the open comments?

CI is red though. You might want to also rebase.

As discussed, finished PR in #1724


maybe run error

Description
maybe run error
Steps to reproduce
Transformer： return data[0]  // {total: int}
{{userTotal.data.total}}
tips error: maybe run error
ILLA Builder Version
1.2.6
Browser
Chrome 版本 108.0.5359.99（正式版本） （64 位）
Operating System

[ ] macOS
[ ] Windows
[X] Linux

Additional Information
...

Hello,please provide more information for action info.
Such as：action type or action content

Thank you for providing effective information. We have confirmed that this is a bug and we will fix it as soon as possible.

Hello,We fixed it,you can try it again


notes remark

hello，can you upload the notes about this project at the same time

这是来自QQ邮箱的自动回复邮件。
您好，已收到您的邮件~~谢谢