feat: add liveness and readiness probe

first step to address #187 .

:tada: This issue has been resolved in version 2.7.0 :tada:
The release is available on:

v2.7.0
GitHub release

Your semantic-release bot :package::rocket:


Fix for relationship from/to_node class specificity issues

Re: https://github.com/neo4jrb/neo4j/issues/1107#issuecomment-172603751
Needs testing

FYI this build is failing in rubocop because you have some double quoted strings when you don't need to.  You can either run bundle exec rubocop to see these places, or run bundle exec rubocop -a to just have them be fixed by rubocop
@subvertallchris is  more familiar with the issue so I'll let him comment on the substance, but on the style I like the syntax of factory = if ... so that you don't need to have multiple factory =  statements.

(And thanks for the PR!)

Gonna need tests in there for the bug you're trying to fix, too.


[Event Request] Codeunit 5407 "Prod. Order Status Management"

Describe the request
We need an event in codeunit 5407:
-in function TransProdOrderLine:
OnTransProdOrderLineOnAfterFromProdOrderLineSetFilters(var FromProdOrderLine: Record "Prod. Order Line"; FromProdOrder: Record "Production Order"; NewUpdateUnitCost: Boolean)

-In function InsertProdOrderLine it could make sense to add ToProdOrder as parameter, adding it to OnBeforeInsertProdOrderLine and OnAfterInsertProdOrderLine as well.
Additional context
We need it to change the filters on the lines and to set different keys based on NewUpdateUnitCost flag
The extra parameter in our case is useful because we need to bring some custom fields from the header to the line
Internal work item: AB#535499

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


Publish on Modrinth

It would be great if this plugin was published on Modrinth. It can be done really easily and publishing updates can be automated with this GitHub workflow

I'll be honest, I really only made this project as a proof-of-concept because I'd theorized it was possible for a couple years. I never planned to release it anywhere else, and the only times I've mentioned it have been in forum threads to the extent of "yes, this is possible, here's how."
That action doesn't look bad, but it doesn't look like it can specify Minecraft versions. I'd probably use https://github.com/benwoo1110/modrinth-upload-action instead to target just Modrinth, it looks a little more configurable. Realistically I think I would want to use https://github.com/Kir-Antipov/mc-publish and support multiple platforms so I could generify my actions for multiple projects.

Sounds great! Please use whatever workflow you think is best. My main goal is to add AnvilUnlocker as an optional dependency for my plugin on Modrinth to make it easier for users to download.
Additionally, could you add a license to AnvilUnlocker? This would clarify whether the code can be copied, modified, and redistributed.

License is in now. Feel free to bundle AnvilUnlocker's functionality into your own plugin if you'd like, too.


TypeScript type generation for custom schema

Describe the bug
When using a custom schema that I have successfully exposed to the data API, the gen types typescript script generates a file that still defaults to "public" for the Tables<'row'> shorthand.
To Reproduce
Steps to reproduce the behavior:

Create custom schema and expose it to the data API following instructions here
In JS client, run npx --yes supabase gen types typescript --project-id "<ID>" --schema custom_schema > ./path/to/db/index.ts
Observe the line type PublicSchema = Database[Extract<keyof Database, 'public'>];

Expected behavior
Line type PublicSchema = Database[Extract<keyof Database, 'public'>]; should be type PublicSchema = Database[Extract<keyof Database, 'custom_schema'>];
Screenshots
N/A
System information
Rerun the failing command with --create-ticket flag.

Version of CLI: 1.207.9
Versions of services:

Additional context
If applicable, add any other context about the problem here.
N/A

The shorthand will always default to public schema. You will have to pass in the schema name to the generic type to use the custom schema.

What is the reasoning for this? It makes sense to default to the public schema, but if the custom_schema argument is specified, shouldn't the generated file be consistent with that?
I'm satisfied with the answer, I can just make my own shorthand file, but this decision makes the shorthand completely useless, since the generated file won't have the public schema, in it, but the shorthand refers to it anyways.


TrainEntrypoint: Add train main entrypoint script

What this PR does / why we need it:
This PR adds a new module caikit.runtime.train which will execute a single training job. It is useful for running module train operations inside of a job orchestration framework.
Special notes for your reviewer:
LOG_LEVEL=debug3 \
LOG_FORMATTER=pretty \
PYTHONPATH=$PWD/tests/fixtures \
python -m caikit.runtime.train \
    -m sample_lib.modules.sample_task.sample_implementation.SampleModule \
    -n "my-model" \
    -k '{"training_data": {"jsondata": {"data": [{"number": 1, "label": "foo"}, {"number": 2, "label": "bar"}]}}}'

If applicable:

[ ] this PR contains documentation
[x] this PR contains unit tests
[x] this PR has been tested for backwards compatibility

I can confirm that the stack trace for training exceptions is logged:
# Run with poison pill batch_size
LOG_FORMATTER=pretty \
PYTHONPATH=$PWD/tests/fixtures \
python \
    -m caikit.runtime.train \
    -m sample_lib.modules.sample_task.sample_implementation.SampleModule \
    -n "my-model" \
    -k '{"training_data": {"jsondata": {"data": [{"number": 1, "label": "foo"}, {"number": 2, "label": "bar"}]}}, "batch_size": 999}'

2024-04-04T18:24:37.999248 [DESTROY-THRD:WARN:6151974912] <COR16788843W> Work for <bound method LocalModelTrainer.LocalModelFuture._train_and_save of <caikit.core.model_management.local_model_trainer.LocalModelTrainer.LocalModelFuture object at 0x11ab35d00>> threw exception: Batch size of 999 is not allowed! {"stack_trace": "Traceback (most recent call last):\n  File \"/Users/ghart/Projects/github/caikit/caikit/caikit/core/toolkit/concurrency/destroyable_thread.py\", line 124, in run\n    self.__runnable_result = self.runnable_func(\n  File \"/Users/ghart/Projects/github/caikit/caikit/caikit/core/model_management/local_model_trainer.py\", line 222, in _train_and_save\n    trained_model = self._module_class.train(*args, **kwargs)\n  File \"/Users/ghart/Projects/github/caikit/caikit/tests/fixtures/sample_lib/modules/sample_task/sample_implementation.py\", line 200, in train\n    raise ValueError(\nValueError: Batch size of 999 is not allowed!\n"}
2024-04-04T18:24:37.999389 [TRAIN       :ERRR:8721611456] Training finished unsuccessfully
2024-04-04T18:24:37.999420 [TRAIN       :ERRR:8721611456] Batch size of 999 is not allowed!
2024-04-04T18:24:37.999445 [TRAIN       :INFO:8721611456] Finished training my-model in: 0:00:00.000679


Separate example file URLs on Cloud Storage doc

This change is

Nice, @lnhsingh. For changes like this, if it's based on feedback or discussion, it's best to create an issue and resolve it with the pr.

Will do! This was a minor edit that Michael brought up when
reviewing #8223, so I should've linked it there as follow up.
On Thu, Sep 3, 2020 at 11:34 AM Jesse Seldess<EMAIL_ADDRESS>wrote:

Nice, @lnhsingh https://github.com/lnhsingh. For changes like this, if
it's based on feedback or discussion, it's best to create an issue and
resolve it with the pr.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cockroachdb/docs/pull/8234#issuecomment-686574390,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADVMQGHP7JRI5LYP4EP3X33SD6ZOTANCNFSM4QU3U4AA
.


strange panic depending on struct field order or 32bit-64bit arch

What version of Go are you using (go version)?
both 1.7.1 and 1.4.3 behave the same, not tested anything else. yet.
What operating system and processor architecture are you using (go env)?
32 bit architectures seems to be affected
tested:
panic on: 32 bit windows 7 and raspbian on a pi2
no panic (normal, expected behaviour) on 64bit freebsd and linux
What did you do?
Links to playground are only for easier copy-pasting. Playground is working correctly, probably because play.golang.org is running on 64 bit arch.
Minimal full runnable repro program:
https://play.golang.org/p/EtJre5AGtw
To reproduce please check on 32 bit windows 7 or 32 bit raspbian.
I suspect the bug probably depends on if the test program is running on 32bit or 64bit architectures, though I could not test on the same os and on different architectures.
Also working correctly:
i.) when int64 and AddInt64() are changed to int32 and AddInt32() respectively the panic goes away
https://play.golang.org/p/gk2IacMYBU
ii.) when *a and i int64 order is changed, panic goes away:
https://play.golang.org/p/T0VbE_-bBb
What did you expect to see?
The minimal repro program should finish normally and print the log message, like it does on the playground or when run on 64bit linux or 64bit freebsd.
These are the errors I get:
on 32bit raspbian with go1.7.1:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x6b5a8]
goroutine 1 [running]:
panic(0xb2ce0, 0x1040a010)
/src/go/src/runtime/panic.go:500 +0x33c
sync/atomic.addUint64(0x1046a054, 0x1, 0x0, 0x1, 0x0)
/src/go/src/sync/atomic/64bit_arm.go:31 +0x68
main.main()
/home/pi/src/a.go:19 +0x64
exit status 2
--- end of 32bit raspbian error with go1.7.1
on 32bit raspbian with go1.4.3:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x4 pc=0x4a374]
goroutine 1 [running]:
sync/atomic.addUint64(0x10338034, 0x1, 0x0, 0x1, 0x0)
/src/go/src/sync/atomic/64bit_arm.go:31 +0x70
main.main()
/home/pi/src/a.go:19 +0x78
goroutine 2 [runnable]:
runtime.forcegchelper()
/src/go/src/runtime/proc.go:90
runtime.goexit()
/src/go/src/runtime/asm_arm.s:1322 +0x4
goroutine 3 [runnable]:
runtime.bgsweep()
/src/go/src/runtime/mgc0.go:82
runtime.goexit()
/src/go/src/runtime/asm_arm.s:1322 +0x4
goroutine 4 [runnable]:
runtime.runfinq()
/src/go/src/runtime/malloc.go:712
runtime.goexit()
/src/go/src/runtime/asm_arm.s:1322 +0x4
exit status 2
--- end of 32bit raspbian go1.4.3 error message
on 32bit windows 7 with go1.7.1:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x4 pc=0x4a374]
goroutine 1 [running]:
sync/atomic.addUint64(0x10338034, 0x1, 0x0, 0x1, 0x0)
/src/go/src/sync/atomic/64bit_arm.go:31 +0x70
main.main()
/home/pi/src/a.go:19 +0x78
goroutine 2 [runnable]:
runtime.forcegchelper()
/src/go/src/runtime/proc.go:90
runtime.goexit()
/src/go/src/runtime/asm_arm.s:1322 +0x4
goroutine 3 [runnable]:
runtime.bgsweep()
/src/go/src/runtime/mgc0.go:82
runtime.goexit()
/src/go/src/runtime/asm_arm.s:1322 +0x4
goroutine 4 [runnable]:
runtime.runfinq()
/src/go/src/runtime/malloc.go:712
runtime.goexit()
/src/go/src/runtime/asm_arm.s:1322 +0x4
exit status 2
-- end of 32bit windows 7 error message

Please see the third paragraph in the Bugs section of the sync/atomic package: https://golang.org/pkg/sync/atomic/#pkg-note-BUG

On both ARM and x86-32, it is the caller's responsibility to arrange for 64-bit alignment of 64-bit words accessed atomically. The first word in a global variable or in an allocated struct or slice can be relied upon to be 64-bit aligned

thanks!


Connection refused while sending alerts from Wazuh to TheHive using elastalert

Hello,
I am trying to send the alerts from Wazuh to TheHive, using ElastAlert. I am getting 'remote connection closed'.
Both Wazuh and TheHive are on the same VLAN (virtual images on ProxMox)
I don't know if the issue is from one of the following:

Authentification error between ElastAlert and TheHive
Proxy issue

(Traffic is not passing through firewall since same Vlan, and I have the UFW on TheHive inactive)
Thank you

elastalert is not maintained.
No one answers the issue.


Add hooks to DAOListView to enable additional row customization.

Two new methods have been added which may be used to add elements before/after each row.
As an example this facility can be used to construct section headers or special decorations for rows.

Closing as obsolete. At this point they should be added to the U2 and MD DAOListViews, if we decide this is needed.


Closes #35: Created the flight entity model.

Created the entity model.

wow vincent, you are an exceptional developer


Implement Fetch API and Quotes Component

The Quotes component has been implement, which consumes the API

An external API is fetch and quote return. in a new component 'Quote'.
Loading state is implemented to show
Error state is implemented to show
The Quote component is imported into the main component, next to the Calculator component.
Linters checked and passed.

Thank you for the review. I appreciate your hard work. 😄


Including example of .jsx component

When writing applications it is often that you find code that is written in JavaScript instead of Typescript.
Would it be possible to include an example component written in plain JavaScript? I tried this with a component as follows:
src/app/components/MyComponent/MyComponent.jsx:
import * as React from 'react';

class MyComponent extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (

Hello from MyComponent

        );
    }
}

export { MyComponent };

and included it in the file src/app/components/index.tsx as follows:
export { Header } from './Header/Header';
export {MyComponent } from './MyComponent/MyComponent';

But i keep getting the error:
ERROR in ./src/app/components/index.tsx
(2,28): error TS2307: Cannot find module './MyComponent/MyComponent'.

Another thing is using existing ReactJS libraries, like https://onsen.io/v2/react.html. How we leverage these existing libraries without writing type definition files?

I solved the error above by creating a file src/app/components/MyComponent/MyComponent.d.ts containing:
import React = require("react");

export interface MyComponentProps extends React.Props<MyComponentClass> {
}

export interface MyComponent extends React.ReactElement<MyComponentProps> { }
export interface MyComponentClass extends React.ComponentClass<MyComponentProps> { }

export var MyComponent: MyComponentClass;

I also aded react support for jsx files as follows:

Add babel react preset package from npm:

npm install babel-preset-react --save-dev

Add a .babelrc file to the root with the following contents:

{
  "presets": [
    "es2015",
    "react"
  ]
}

Hey @svdoever,
When you are mixing JavaScript libraries with TypeScript ones, you can use good ol' require instead of using definitions (but definitions are always recommended).
For local files:
const MyComponent = require('./MyComponent/MyComponent');
For external modules:
const perfectLib = require('perfectLib');
Apart from external libraries, I'm not sure why would want to mix regular JavaScript with TypeScript in a project :)

Would be great if that approach works, without the necessity of type definition files, although those would help. I added MyComponent.jsx file to the Home folder:
import * as React from 'react';

class MyComponent extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (

Hello from MyComponent

        );
    }
}

export default MyComponent;

and changed Home.tsx to:
import * as React from 'react';
const MyComponent = require('./MyComponent');
const s = require('./style.css');

class Home extends React.Component<any, any> {
  render() {
    return (

Hello world!

        <MyComponent />

    );
  }
}

export { Home }

but keep getting the error:
Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `Home`.

Any idea what I'm doing wrong?

@svdoever try to install typings:
$ typings install dt~react --global --save

@ufukomer the typings were already installed. The error was because I had to do const MyComponent = require("./MyComponent").default;. I decided to write down some info about using Javascriptcomponents from TypeScript.
Consuming Javascript ReactJS components from TypeScript
There are cases where you need to consume ReactJS components written in Javascript from your TypeScript code. Possible reasons:

You find a great component "out in the wild" written in Javascript
One of your team-members does not know/does not want to write TypeScript
You want to consume components from an existing component set writen in Javascript

Assume the situation where a component MyComponent.jsx written in Javascript must be consumed from a component Home.tsx:
The file MyComponent.jsx:
import * as React from 'react';

export class MyComponent extends React.Component {
    constructor(props) { super(props); }
    render() { return (
Hello from MyComponent
); }
}

We could import this component in different ways:
import {MyComponent} from './MyComponent'; // ERROR: Cannot find module './MyComponent'
const MyComponent = require('./MyComponent'); // Warning if used as <MyComponent/> - see https://codereviewvideos.com/blog/warning-react-createelement/
const X = require('./MyComponent'); // OK if used as <X.MyComponent/>
const MyComponent = require('./MyComponent').MyComponent; // OK
const MyComponent = require('./MyComponent').default; // OK if defined as export default class MyComponent

The file Home.tsx:
import * as React from 'react';
const MyComponent = require('./MyComponent').MyComponent;

export class Home extends React.Component<any, any> {
  render() { return (
<MyComponent />
); }
}


Is an inverse mode plannend for e.g. the UCard?

Description
I've just used Nuxt UI for my first project, and liked the experience. However, I was facing an issue when trying to create the following scenario:
Light mode, dark card:

Dark mode, light card:

Is there plans to add a bg-inverse class or inverse prop to certain components? I'm aware that adding class="bg-black dark:bg-white" seems like does just that, but e.g. for the UToggle it seems to break styling:
Dark mode, light card:

Light mode, dark card:

You could use the light or dark classes to indicate a component to use this specific color mode for the given HTML tree.

  <UCard>Content</UCard>

You could use the light or dark classes to indicate a component to use this specific color mode for the given HTML tree.

  <UCard>Content</UCard>

That sounds similar to what I'm looking for, but it then always remains light/dark independently of the current color mode? I'm looking for a inverse class basically 😅
Also, do you know whether there's a reason the light class is not mentioned in the docs?

In this case, I would suggest using the underlying library that handles color modes: https://color-mode.nuxtjs.org/
You can briefly see it documented here on Nuxt UI: https://ui.nuxt.com/getting-started/theming#dark-mode
Basically, what you'd need here is this piece of code:

<UCard :class="inversed" />

In this case, I would suggest using the underlying library that handles color modes: https://color-mode.nuxtjs.org/
You can briefly see it documented here on Nuxt UI: https://ui.nuxt.com/getting-started/theming#dark-mode
Basically, what you'd need here is this piece of code:

<UCard :class="inversed" />

You could actually even make it a composable if you intend to reuse it:
export function useInversedColorMode() {
  return computed(() =>  useColorMode().value === 'dark' ? 'light': 'dark')
}

<UCard :class="colorMode" />

Thanks, I'll go with that one!

For the record and if someone comes across this: Apparently you need to place the class on a wrapping element instead of the element you'd want to show up inversed. So instead of
<UCard :class="inversed" />

you'd want to do

  <UCard />

Actually doesn't work properly, need to find another way of doing that. I'll provide a reproducible fiddle soon

Reproduction lives here: https://stackblitz.com/edit/nuxt-ui-inverse-class

Indeed, text does not behave as expected because the text color is defined according to this rule:
body:is(.dark *) {
    color: rgb(255 255 255 / var(--tw-text-opacity));
}

So that means only the 'light'|'dark' class on body will behave as intended.
I'm afraid there doesn't exist such feature as of today, and I lack of time to work on this one. I'll tag this as an enhancement, but I think this is issue is actually a tailwind issue.

This should be easier to achieve in v3 with Tailwind CSS v4 😊

Closing this as it's not related at all to the Card component but to Tailwind CSS.


POS Tree

Would it be possible to return the POS TREE next to the token?

What exactly do you mean by "POS Tree"? In general, each token has only one part-of-speech tag.

Sorry, I meant the dependency parser.
https://spacy.io/docs/usage/dependency-parse
https://demos.explosion.ai/displacy/
as Json Tree?
[{
	token...
	modifiers: [{
		token...
	}]
}]

Ah yes, this is something I've also been thinking about for a while.
Representing the dependency tree as JSON seems to be a good idea, even though I would probably use the indices of the tokens there instead of the whole object to reduce redundancy. I'll see if I have time to implement it next weekend :)

Netflix API "Falcor" returns the objects and structure separately. In the structure, they reference only the IDs of the objects.
http://netflix.github.io/falcor/documentation/jsongraph.html

There's a Syntaxnet docker image that gives this information by adding a "head" property to each token, pointing to that token's parent token. Very easy for the receiving endpoint to create a tree out of, or just ignore it.


Clarify scope of tensorflow/k8s

We should update README.md to clarify the scope of tensorflow/k8s.

a list of questions in my mind that can be better answered if the scope is clearly defined:

does this repo cover (simple) support for more general data pipelining? (can be via Airflow jobs though)
does the UI in this project include metrics and statistics visualization across a trail of TensorFlow experiments
what are the assumed compatible storage systems (if they work with k8s) with this repo? apart from GKE's PD, e.g.
would there be a Go (and, apparently, maybe Node/Java/Python) client for the APIs defined? for the UI APIs?

I hope this repo will be part of a broader effort to create a loosely coupled stack of components covering the full ML lifecycle on K8s. @aronchick has suggested calling this broader effort KubeFlow.
This will be just one repo in that effort. The focus of this repo will be on TensorFlow on K8s. TensorFlow is itself a growing ecosystem of components aimed at the full life cycle of ML. So this repo will likely be focused on closing any gaps in making those components run well on K8s.
In most cases, I expect there will be more than one reasonable location to host particular code. As an example, if we wanted to add tooling to make TensorFlow Serving easy to spin up on K8s that could live in this repo or in tensorflow/serving

does this repo cover (simple) support for more general data pipelining? (can be via Airflow jobs though)

General data pipelining isn't in scope. However, tooling relevant to TensorFlow could live in this repo. For example, an Airflow operator to launch TfJobs could live in this repo (or Airflow contrib).

does the UI in this project include metrics and statistics visualization across a trail of TensorFlow experiments

I suspect the UI will ultimately live in its own repo. Its not clear which component (or components) will provide the functionality to compare across experiments. One option is for TensorBoard to add this functionality; tensorflow/tensorboard#92

what are the assumed compatible storage systems (if they work with k8s) with this repo? apart from GCE's PD, e.g.

The hope is to use K8s as an abstraction layer so any storage system that works with K8s can work with these components. The TfJob CRD doesn't make any assumption about the underlying storage system because it uses K8s storage layer (volumes) to hide the details.
Relying on K8s breaks down when K8s doesn't have an appropriate abstraction and you have to expose the details of the underlying cluster. An example is logging (#128). Right now K8s doesn't provide a logging API that fetches logs from durable storage (e.g. StackDriver). As a result, when using TfJob I don't think there's a cloud agnostic way to fetch logs after the job finishes. This isn't just an issue for TensorFlow. Any system running batch jobs (e.g. Spark, Airflow, etc...) has this problem. My hope is that K8s will evolve APIs to solve this.

would there be a Go (and, apparently, maybe Node/Java/Python) client for the APIs defined? for the UI APIs?

I'm open to client libraries in other languages if people think they are useful and are willing to contribute. Perhaps we can reuse K8s client generation code so we can auto-generate them.
/cc @aronchick @foxish @vishh

@Jimexist did that help? Happy to drop into mail and explain our overall efforts if you'd like

The UI part is a little bit obscure. The upstream ticket seems quite stalled and the last two comments are unreplied.

Also I think that an overview on this [Google Gradient co-financied effort](The AI Layer
https://www.linkedin.com/pulse/ai-layer-diego-oppenheimer) could be useful to outline the perimeter of this project.

Also I think that an overview on this Google Gradient co-financied effort could be useful to outline the perimeter of this project.

@bhack  Algorithmia isn't currently involved although it would be great to work with them if they are interested.

The UI part is a little bit obscure. The upstream ticket seems quite stalled and the last two comments are unreplied.

Its my understanding that @wbuchwalter is working on a minimal UI just to make TensorFlow on K8s more accessible to folks who feel more comfortable with a UI. I think the long term direction for the UI is unclear. Feel free to chime in on the issue with your oppinions or on slack kubeflow.slack.com

@jlewi To make TensorFlow tasks run well on Kubernetes. I think we have to implement some other tools, such as monitor(real-time processing and monitoring the status of all TensorFlow tasks). An ease-to-use command line tool is sort of necessary.

@DjangoPeng I agree with you. Do you want to open up issues for those items?

Sure thing. Maybe next Monday or Tuesday, I'll open an issue to explain and clarify our proposal.


Was working perfect but now I am getting the following error

(node:1779) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fe51' of undefined
at Gatt.write (/usr/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble/lib/hci-socket/gatt.js:549:60)
at NobleBindings.write (/usr/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:399:10)
at Noble.write (/usr/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble/lib/noble.js:421:18)
at Characteristic.write (/usr/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble/lib/characteristic.js:75:15)
at internal/util.js:297:30
at new Promise ()
at Characteristic.write [as writeAsync] (internal/util.js:296:12)
at AM43Device.sendCommandAsync (/usr/lib/node_modules/homebridge-am43-blinds/lib/AM43Device.js:325:44)
at AM43Device.updatePositionAsync (/usr/lib/node_modules/homebridge-am43-blinds/lib/AM43Device.js:281:16)
at Characteristic. (/usr/lib/node_modules/homebridge-am43-blinds/lib/AM43Platform.js:461:32)
(node:1779) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

I got similar issue if the device i had used to set up the AM43 motor with is close to the motor and bluetooth enabled. Try switching off bluetooth on the phone or tabled you used to set the limits and see if the problems goes away.
The issue I have now is that I have to relocate the Pi 4 - and the bluetooth range isn't great :P

You can also close (as in Swipe up) the blinds engine app on all devices to disconnect it and make it available to the plugin.
@torroa I've heard that disabling WiFi (if you aren't using it) can help increase the Bluetooth range. Otherwise, you can use an external Bluetooth 4.0 adapter that is known to work on Debian and disable the built-in Bluetooth of the Raspberry Pi.

I also have the same error, but i am not home so the phone i used in the setup is not near the motor. When i restart Homebridge i can control the blinds again. Any idea how to fix this?

If you are using a Raspberry Pi you might want to check if there is a new version of the bluez-firmware. You can check this using sudo apt update.

There was a new version of bluez-firmware ready to be installed on my PI. Let's see of it fixed the problem. Thanks for the help!

I got the same (node:1779) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fe51' of undefined error again. Even after updating everything. Any idea how to fix it?

Ok I dug a bit deeper and I might have found the issue, I wasn't nullifying some stuff that I should have been doing.
Please (re)install the plugin and I hope it will be fixed.

Working perfect, thanks. This is a great plugin.

I have updated to the latest plugin and now I don't see the fe51 error any longer, however, I am coming across the following one now... Anyone experiencing the same and any thoughts?
[9/20/2020, 12:52:58 PM] [am43-blinds] Stopped searching for AM43 Blinds, found 1 devices
(node:2328) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'writeAsync' of null
at AM43Device.sendCommandAsync (/usr/lib/node_modules/homebridge-am43-blinds/lib/AM43Device.js:325:44)
at AM43Device.updateBatteryStatusAsync (/usr/lib/node_modules/homebridge-am43-blinds/lib/AM43Device.js:287:16)
at Characteristic. (/usr/lib/node_modules/homebridge-am43-blinds/lib/AM43Platform.js:421:30)
at Characteristic.emit (events.js:315:20)
at Characteristic.EventEmitter.emit (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at Characteristic._this.getValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:489:12)
at /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1239:22
at Array.forEach ()
at Bridge.Accessory._this._handleGetCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1167:10)
at HAPServer.emit (events.js:315:20)
at HAPServer.EventEmitter.emit (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at HAPServer._this._handleCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:756:12)
at IncomingMessage. (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
at IncomingMessage.emit (events.js:315:20)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:2328) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:2328) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@drosenberg-gh Is it also doing this when the blinds motor is next to the Pi? For me the problem is apparently range. See #16

i got this comment
(node:26224) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'writeAsync' of undefined
at AM43Device.sendCommandAsync (/usr/local/lib/node_modules/homebridge-am43-blinds/lib/AM43Device.js:343:44)
at AM43Device.updatePositionAsync (/usr/local/lib/node_modules/homebridge-am43-blinds/lib/AM43Device.js:299:16)
at Characteristic. (/usr/local/lib/node_modules/homebridge-am43-blinds/lib/AM43Platform.js:461:32)
at Characteristic.emit (events.js:198:13)
at Characteristic.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at Characteristic._this.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:489:12)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1217:22
at Array.forEach ()
at Bridge.Accessory._this._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1145:10)
at HAPServer.emit (events.js:198:13)
at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:756:12)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
at IncomingMessage.emit (events.js:198:13)
at endReadableNT (_stream_readable.js:1143:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

Since this issue seems to happen for more people I've created a new issue with some more information to help me find the root of this issue: https://github.com/renssies/homebridge-am43-blinds/issues/21.
I will be closing this issue because of that.


File extension for styled-component

How about own file extension for styled-components? This would help to solve such problems as emmet support, syntax highlighting.

I don't like the idea of a new file extension because styled components isn't anything more then js.

I agree with @k15a, it's just js and doesn't need its own extension. Also, apart from this reason, creating new extensions is not a good idea ^^ Sorry

actually i kinda agree with having extension for styled components just for the sake of differentiating file extension from the others. in my project i separate function component with styled component, currently i just add a suffix xxx.style.js. However, its still hard to differentiate with my other js function component because my editor gave js icon instead of style icon.

I think this is a cool idea because it is becoming hard to differentiate between components js file and styled-components js file

I have an issue with intellisense and auto completion while using styled components'


Deprecate ConversionPatterns

Methods in ConversionPatterns doesn't conform to standard LIST and MAP  schema, and should be deprecated. We can either suggest users to use Types builder methods or create new wrapper methods for LIST and MAP.
Reporter: Cheng Lian / @liancheng
Note: This issue was originally created as PARQUET-256. Please see the migration documentation for further details.

Liwei Lin(Inactive) / @lw-lin:
@rdblue could you share some updates for this, please?

Ryan Blue / @rdblue:
The Types builders are capable of creating map and list types now, so I think it makes sense to begin moving everything over to the builders. That would greatly reduce the API footprint of the schema package, but removing the signatures would require a major version bump. I'm all for deprecating and getting ready for this.

Ryan Blue / @rdblue:
Ashish is working on the builders and we are very close to getting those committed. I plan to also update ConversionPatterns and do the deprecation when we fix the write side for the Avro and Thrift object models. You're right we need to do this and thanks for opening the JIRA.


catch lured pokemon in all forts nearby

Can I ask why we have separate files for visible and lured pokemon in the first place? Seems this should be one and the logic merged, as if we have a config to catch any pokemon, we probably want to catch all pokemon in the area. Sorry if this is off topic, but seems related to @TheSavior 's comment about refactoring get_lured_pokemon.

It shouldn't actually cause any negative effects having two tasks for now, but I don't think I'd be opposed to merging them in a future PR.

@douglascamata I changed this to check all forts for lured pokemon, but only catch one. If there are more to catch it returns RUNNING, otherwise SUCCESS. Feel free to merge if you are comfortable.


KAFKA-2811: add standby tasks

@guozhangwang

added a new config param "num.standby.replicas" (the default value is 0).
added a new abstract class AbstractTask
added StandbyTask as a subclass of AbstractTask
modified StreamTask to a subclass of AbstractTask
StreamThread

standby tasks are created by calling StreamThread.addStandbyTask() from onPartitionsAssigned()
standby tasks are destroyed by calling StreamThread.removeStandbyTasks() from onPartitionRevoked()
In addStandbyTasks(), change log partitions are assigned to restoreConsumer.
In removeStandByTasks(), change log partitions are removed from restoreConsumer.
StreamThread polls change log records using restoreConsumer in the runLoop with timeout=0.
If records are returned, StreamThread calls StandbyTask.update and pass records to each standby tasks.

changed changeLogOffsets() -> checkpointedOffsets() which returns all change log partitions of persistent store and their checkpointed offsets. If a checkpoint offset is missing in the checkpoint file, -1L is used. The restored offsets are no longer consulted.

LGTM, thanks.


feature_names mismatch when using xgboost + sklearn (XGBClassifier) + eli5(explain_prediction)

Environment info
Operating System: Windows
Package used (python): pandas df, xgboost, sklearn (XGBClassifier) and ELI5 http://eli5.readthedocs.io/en/latest/libraries/xgboost.html
xgboost version used: 0.6
Hi
I have a trained XGBClassifier in python, and I am trying to call the explain_prediction or show_prediction functions in the ELI5 package. This function allows you to interpret the prediction for a given set of features.
The classifier was trained on a pandas dataframe and the predict (sklearn) and show_weights (ELI5) functions work perfectly. I can also interrogate the trees using booster.get_dump() with no issues.
Has anyone got any ideas on how to resolve this?
This may be related to https://github.com/dmlc/xgboost/issues/1441 but I am generating predictions with no error.
Thank you
R
CODE BELOW***
#train is the training data frame (pandas)
#best_gbm.gbm is a trained XGBClassifer on the train dataset
#I have also passed feature_names = predictors but this throws the same error
show_prediction(best_gbm.gbm, train.iloc[1])
Traceback (most recent call last):
File "", line 1, in
show_prediction(best_gbm.gbm, train.iloc[1])
File "C:\Users\935404\AppData\Local\Continuum\Anaconda3\lib\site-packages\eli5-0.4.2-py3.6.egg\eli5\ipython.py", line 242, in show_prediction
expl = explain_prediction(estimator, doc, **explain_kwargs)
File "C:\Users\935404\AppData\Local\Continuum\Anaconda3\Lib\site-packages\singledispatch.py", line 210, in wrapper
return dispatch(args[0].class)(*args, **kw)
File "C:\Users\935404\AppData\Local\Continuum\Anaconda3\Lib\site-packages\singledispatch.py", line 210, in wrapper
return dispatch(args[0].class)(*args, **kw)
File "C:\Users\935404\AppData\Local\Continuum\Anaconda3\lib\site-packages\eli5-0.4.2-py3.6.egg\eli5\xgboost.py", line 168, in explain_prediction_xgboost
proba = predict_proba(xgb, X)
File "C:\Users\935404\AppData\Local\Continuum\Anaconda3\lib\site-packages\eli5-0.4.2-py3.6.egg\eli5\sklearn\utils.py", line 49, in predict_proba
proba, = clf.predict_proba(X)
File "C:\Users\935404\AppData\Local\Continuum\Anaconda3\lib\site-packages\xgboost-0.6-py3.6.egg\xgboost\sklearn.py", line 496, in predict_proba
ntree_limit=ntree_limit)
File "C:\Users\935404\AppData\Local\Continuum\Anaconda3\lib\site-packages\xgboost-0.6-py3.6.egg\xgboost\core.py", line 950, in predict
File "C:\Users\935404\AppData\Local\Continuum\Anaconda3\lib\site-packages\xgboost-0.6-py3.6.egg\xgboost\core.py", line 1193, in _validate_features
raise ValueError(msg.format(self.feature_names,
ValueError: feature_names mismatch:
sensitive info removed
training data did not have the following fields: f73, f40, f66, f147, f62, f39, f2, f83, f127, f84, f54, f97, f114, f102, f49, f7, f8, f56, f23, f107, f138, f28, f71, f152, f80, f57, f46, f58, f139, f121, f140, f20, f45, f113, f5, f60, f135, f101, f68, f76, f65, f41, f99, f131, f109, f117, f13, f100, f128, f52, f15, f50, f95, f124, f19, f12, f43, f137, f33, f22, f32, f72, f142, f151, f74, f90, f48, f122, f133, f26, f79, f94, f18, f10, f51, f0, f53, f92, f29, f115, f143, f14, f116, f47, f69, f82, f34, f89, f35, f6, f132, f16, f118, f31, f96, f59, f75, f1, f110, f61, f108, f25, f21, f11, f17, f85, f150, f3, f98, f24, f77, f103, f112, f91, f144, f70, f86, f119, f55, f130, f106, f44, f36, f64, f67, f4, f145, f37, f126, f88, f93, f104, f81, f149, f27, f136, f146, f30, f38, f42, f141, f134, f120, f105, f129, f9, f148, f87, f125, f123, f111, f78, f63

I got the same error, is there any solution now?

Same error as well.  Mine only occurs when I try to use CalibratedClassifierCV from sklearn with the prefit option (i.e. passing it a prefit XGBClassifier object).  If I pass it without fitting the classifier, it works fine.  I can't figure out what exactly is going on, but it seems like something with the translation from DataFrame to DMatrix and back.

I had the same error when inserted columns to the test set not in the same order as they were inserted to the train. Changing the order of inserting solved the problem.

This error comes up because the training set has more features in the matrix.
You have to create feature again including the train+test data set (Just to create features , not to train the model) and then run it on prediction.

I have the same problem, Does anyone solve this?
It the first time I meet this error, I'm sure it isn't caused by incorrect feature number or order.
When I use other model in sklearn, it doesn't have this error, I wonder maybe it caused by xgboost itself?

This problem is because of the following -
The test and train datasets should have the matrix in the same columns in
the same order.
I solved it by emptying the train matrix and filling data from test by
matching columns.
On Thu, Sep 21, 2017 at 1:50 PM, ChelyYi<EMAIL_ADDRESS>wrote:

I have the same problem, Does anyone solve this?
It the first time I meet this error, I'm sure it isn't caused by incorrect
feature number or order.
When I use other model in sklearn, it doesn't have this error, I wonder
maybe it caused by xgboost itself?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/xgboost/issues/2334#issuecomment-331086727, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AG60JqgyGWhptJ-wN8TocxZCGysePoMPks5skhw-gaJpZM4NiJro
.

Hey, y'all. I spent most of the day fiddling around with a similar problem and I'd like to offer my two bits. There's more than one root cause for this error. As such, there's more than one fix depending on the origins of your problem.

Your columns are out of alignment. This one can be fixed by doing something like what Mayanksoni20 suggests. Here's one example, taken from another issue thread:

test = test[train.columns]

-Your data has NA's or other objects in it. XGB and Pandas don't like each other much. The DMatrix object that Dataframes get converted into can choke on a lot of things. One way to handle this is by scrubbing the data down, using this method (courtesy of Rocketq on StackOverFlow):
from sklearn import preprocessing
for f in train.columns:
    if train[f].dtype=='object':
        lbl = preprocessing.LabelEncoder()
        lbl.fit(list(train[f].values))
        train[f] = lbl.transform(list(train[f].values))

for f in test.columns:
    if test[f].dtype=='object':
        lbl = preprocessing.LabelEncoder()
        lbl.fit(list(test[f].values))
        test[f] = lbl.transform(list(test[f].values))

train.fillna((-999), inplace=True)
test.fillna((-999), inplace=True)

train=np.array(train)
test=np.array(test)
train = train.astype(float)
test = test.astype(float)

Your prediction data has zeros in it. This swings back to the sparse matrix implementation used for DMatrix. If the tail values of your prediction are zeros, they'll be cut off (leaving you with various missing columns like f10, f11, and so on). This was my problem. Luckily, the fix isn't too hard. Just replace the last element with a very small number, like so:

x = [features_test[i]]
if x[0][-1] == 0:
         x[0][-1] = 0.0000001
pred = int(xgb_regressor.predict(x))

Hope that helps.

This can also be sorted by replacing "vectorizer.fit_transform()" to "vectorizer.transform()" in the TF-IDF matrix.

Change column name also work for me. I have a predict model with Kfold validation :+1:

Not using x variable for a sample solved this for me. 😕.

I also have this issue, but only if I do train-test. If I do cross-validation, it runs without errors.

@justinrgarrard do you have a reproduceable example for your last case? the first couple cases you mention (passing columns out of alignment, passing object dtype) seem like user error. it's on us as users to pass xgb.fit and xgb.predict a consistently ordered and labeled train/test set with valid dtypes.
but if calling predict on a dataset with identical order and column-names as the dataset .fit() was run on throws an error because of zeroes in one of the columns of the test/predict-set, that to me would be an xgb bug.

^ looks like @justinrgarrard is correct, this seems to be a known issue with at least certain versions of xgboost. from these two issue tickets, it seems upgrading to the latest version of xgboost solves it in some but possibly not all cases? see a few references to hack-fixes like justin's and others.
https://github.com/dmlc/xgboost/issues/1091
https://github.com/dmlc/xgboost/issues/1238

@MaxPowerWasTaken glad to hear that progress has been made on that front. Might be worth keeping an ear out for any future mentions of similar circumstances.

I had a very similar issue with ELI5 and xgboost, but my column order between train and test are identical and I have no NULL or NaN values in my dataset. I solved the issue by following @Bingohong advise, please see my code below:
`X_matrix = X.as_matrix()
y_matrix = y.as_matrix()
xgb = XGBClassifier()
xgb.fit(X_matrix, y_matrix)
perm_xgb = PermutationImportance(xgb).fit(X_matrix, y_matrix)
eli5.show_weights(perm_xgb)`

Same issue with xgbRegressor sklearn API, when trying to predict for a single line of the test dataset. justinrgarrard's advices did not work for me.

Use the .value attribute to convert pandas  to ndarray.

Check the exception. What you should see are two arrays. One is the column names of the dataframe you’re passing in and the other is the XGBoost feature names. They should be the same length. If you put them side by side in an Excel spreadsheet you will see that they are bot in the same order. My guess is that the XGBoost names were written to a dictionary so it would be a coincidence if the names in then two arrays were in the same order. The fix is easy. Just reorder your dataframe columns to match the XGBoost names:
df = df[f_names]```

I had the same error with pandas.DataFrame, XGBClassifier and CalibratedClassifierCV (with prefit option).
Short explanation what's going on in this case:

we train XGBClassifier using data in pandas.DataFrame (X_train), so the Booster object inside XGBClassifier saves pandas column names as feature names (e.g. ['a', 'b', 'c'])
having XGBClassifier trained, we want to calibrate it, so we run CalibratedClassifier(model, cv='prefit').fit(X_val, y_val) (as X_train was a pandas.DataFrame, so is X_val)
inside fit function, X_val is converted to numpy.ndarray, then it is passed to predict_proba method of XGBClassifier
inside XGBClassifier.predict_proba, input is converted to DMatrix before running the prediction process
if DMatrix gets pandas.DataFrame, it sets feature_names to pandas column names (as in the training process), but in this case it gets numpy.ndarray, so feature_names is set to [f0, f1, f2, ...]
feature_names in the prediction input is compared with feature_names of the trained Booster object and we get a mismatch

Why converting to numpy.ndarray helps:
Converting X_train into numpy.ndarray makes XGBClassifier save [f0, f1, f2, ...] as feature names (instead of ['a', 'b', 'c']) and then there is no mismatch during fitting (and during prediction) of CalibratedClassifierCV.
Summing up:
I think it's not a bug in xgboost, but rather an incompatibility of sklearn's CalibratedClassifierCV and pandas.DataFrame.

If model was trained using dataframes then the following may help.
When predicting on entire dataframe:
This works, model.predict(df[predictors])
When making a single prediction from dataframe:
model.predict(df[predictors].iloc[-1])
Returns feature_mismatch errors like mentioned above, missing f0, f1, ...
This works, model.predict(df[predictors].iloc[[-1]]
Note the iloc row is in double brackets to maintain dataframe.

I'm experiencing this with feature hashing.  The columns are in perfect alignment, but the test set has one fewer feature at the last feature position than the training set, because the feature hasher on the training set never saw this feature.  Frankly this is going to be challenging to fix because our training and test pipelines are separate and we're using SVM files since the data set is so large.
It would be nice if there were an option to ignore this error.


HTTP 411 Length Required error while sending with media

I've sent a picure to Quitter.es and the result was: text was sent but not the picture (hosted in the microSD 119Kb, 1280x720).
Android 4.3, using WiFi

Please provide URL of the post: I will look at it...

The post looks like just any other post

If you don't want to share that post, please send another one mentioning !andstatus and please post its URL here.

Done, but now it's not even sent. I'm connected to 3G and WiFi.
I've checked the queue messages list. I found the message with some error, before reading it, I resent it and now I have:

E         Post "!andstatus @andstatus testing multimedia" (with media) Created 7 minutes ago
executed:2, last:6minutes ago, retriesLeft:10, error:None,

I've tried it again using "text" instead of "!andstatus @andstatus testing multimedia". The same picture, I got this error:

E; Post "Text" (with media) E; Post "Text" (with media="content://media/external/images/media/256858",)
Created a minute ago
executed:1, last:a minute ago, retriesLeft:9, error:Hard,
updateStatus, text:'Text',
Status code=CLIENT_ERROR; hard;
; statusLine:'HTTP/1.1 411 Length Required'; statusCode:CLIENT_ERROR (411); url:'https://quitter.es/api/statuses/update.json'; authenticated; posted:'{"media_part_name":"media","source":"AndStatus","status":"Text","media_part_uri":"content://media/external/images/media/256858"}'; response:'<?xml version="1.0" encoding="iso-8859…'; error='?';
Caused by org.json.JSONException: Value <?xml of type java.lang.String cannot be converted to JSONObject,
moshpirit/Quitter.es,

@moshpirit  This is about the issue we are discussing here: https://quitter.no/notice/341434
I hope that<EMAIL_ADDRESS>will figure out a solution collaborating with<EMAIL_ADDRESS>and then we will be able to recommend the same for quitter.es
<EMAIL_ADDRESS>This is some incompatibility between Quitter.no server software and apache.httpclient used by AndStatus.
As articles mentioned below suggest, this may mean some outdated libraries used at a server side. BTW, there is no such a problem at Quitter.se and Loadaverage.org
http://stackoverflow.com/questions/15552276/411-content-length-required
http://stackoverflow.com/questions/3208861/http-response-411-length-required-http-client-4-0-1-android
<EMAIL_ADDRESS><EMAIL_ADDRESS>As I see here https://github.com/andstatus/andstatus/issues/204 the "411 length required" problem was solved this way: "I was running an old version of nginx and had to install some additional modules to get rid of the 411 error".

OK, so, how many time do you think it should need? just to know : )
Thank you both for your work!

@knuthollund @andstatus There's this setting in FastCGI that restricts the request size (which is yet another setting apart from PHP's own max_upload_size and max_post_size). Is that related perhaps? When running Apache and mod_fcgid at least, the setting is: FcgidMaxRequestLen - probably something similar for mod_fastcgi.
<EMAIL_ADDRESS>URL: https://loadaverage.org/notice/6849737

As the below report shows, the problem may be actually not (only) in the content-length.
As someone suggested,  this is more about "request validation" in general. This is fixing the problem by configuration looks more feasible.
@hannes2peer It's about an error we experience with .no and AndStatus - The following error occurs on the server when posting e.g. a image via AndStatus - "chunked Transfer-Encoding forbidden: /php5-fcgi/index.php" Have traversed the amazing internet , but yet not found solution to it, just simular errors which is old apache/fastcgi stuff.  /cc @andstatus
<EMAIL_ADDRESS>URL: https://fediverse.com/notice/683585

Just a fyi:
quitter.se -> Apache2 - mod_php - works ok
quitter.no-> Apache2 - mod_fcgi - php5-fpm - experiencing the issue
quitter.es -> nginx - fcgi - php5-fpm - experiencing the issue
Also lnxw48 - reports to see this issue with the setup I'm using on quitter.no -> https://fresh.federati.net/notice/213189
I got a test server kollektivet0x242.no - which is using nginx - fcgi - php5-fpm.
When I get back home from work I will test and verify if the error is experienced there as well. (Which it should). If so I will test the suggestion of using chunkin on; when I get home from work. ( http://wiki.nginx.org/HttpChunkinModule )

FYI:
Does not work with my nginx - fcgi - php5-fpm installation either.
nginx v.1.2.1 (default in stable debian).
The proposed HttpChunkinModule must be installed separately (not standard debian yet) and have not been tested with my version. Thus I will not install this. I guess you must find another way andstatus can resolve this. All GNU social instances with apache2 mod_fcgi will fail on this. Also typically "stable" version of nginx.

As I understand now, lack of chunked encoding support is a real cause of this incompatibility. Chunked encoding is used exactly when content length is unknown beforehand.
As suggested here: http://stackoverflow.com/questions/7721554/httpclient-disabling-chunked-encoding , switching to HTTP 1.0 protocol reliably turns this feature off, and this will ensure compatibility with different legacy/"simple" server implementations.
I will test this and will add corresponding compatibility option to the Social network editor ("Manage Microblogging systems" now).

Thanks for looking into another way of solving this.
Yes - It seems that not all "popular" http server implementations support all of the HTTP 1.1 protocol, which is only 9(?) years old. :)

As I understand now, lack of chunked encoding support is a real cause of this incompatibility. Chunked encoding is used exactly when content length is unknown beforehand.
As suggested here: http://stackoverflow.com/questions/7721554/httpclient-disabling-chunked-encoding , switching to HTTP 1.0 protocol reliably turns this feature off, and this will ensure compatibility with different legacy/"simple" server implementations.
I will test this and will add corresponding compatibility option to the Social network editor ("Manage Microblogging systems" now).
PS: I don't set content length in AndStatus code. Nowhere. It's done or not by underlying apache.httpclient or java.net libraries.

I succeeded in  posting a message with an attachment to Quitter.no.
This required two changes:

Set apache HttpPost request to HTTP 1.0 protocol:

HttpPost request;
...
request.setProtocolVersion(HttpVersion.HTTP_1_0);

When creating Multipart post request I'm providing as an input for an attachment not a InputStream (as for HTTP 1.1, which causes chunked encoding), but an array of bytes,  which I have to create from the same stream beforehand. This is why content length is known.

BTW, I still don't set content length header anywhere in AndStatus code. This is done at HTTP library level.

The only thing left is to add the "USE legacy HTTP protocol" option to a "Social network".

I support what MMN-o proposed on "GNU social" conversation. A autmatically fallback. Try with HTTP 1.1 - if it fails , do the 1.0 legacy stuff.

As we discussed already regarding "SSL Mode" in AndStatus, indeed, it would be good for a client application to adapt to a server automatically.
But as for an "SSL Mode", for the second option: "Use legacy HTTP protocol" - automatic discovery during normal operation of a proper connection option is not practical. Because this will mean substantial time delays and network traffic increase. E.g. in this "411-content-length-required" case, for each attempt to send a message with an attachment, AndStatus will first do failed attempt and succeed on a second attempt only.
I think we better integrate such server parameters discovery into Account creation / verification. Which may be repeated on User's explicit request to "Reverify account".
?!

Automatic fallback in a case of 411 error already works.

After a few installations, I found that I can't use AS if I use some configuration to logging and debugging settings.
The result: AS crashes. I'll search the specific configuration tomorrow

Please see an example of "Use legacy HTTP protocol" set to "Yes"

@moshpirit This may be language specific, please test the same while switching AndStatus to English interface...
BTW I have full VERBOSE logging always turned on, including saving everything to file: I had a crash related to logging only once, and fixed the bug more than a week ago.

Nope, I have the last beta version with all my accounts using Legacy HTTP protocol enabled and I only get this error if I use VERBOSE, the language doesn't seem a difference.


Update sensor.clientraw.markdown

rain_rate is not defined in clientraw.py, the correct attribute should be daily_rain

well spotted, thanks


Can't change domain

Changing the domain in the following manner (as outlined by the readme) does not work as expected.
<script type="text/javascript" src="./path/to/bower_components/sails.io.js"></script>
<script type="text/javascript">
io.sails.url = 'https://api.mysite.com';
</script>

The sails client continues to poll http://mysite.com/socket.io/?__sails_io_sdk_version=0.11.0&__sails_io_sdk_platform=browser...

I don't know how I feel about the auto-connect - I'm using requirejs to load my modules and the the script seems to already be polling by the time I can access io.sails


chore: make site work when base path is configured

We've got a number of base path issues I've been looking at. It's helpful to be able to run the site with a base path so that I have something to debug against. I don't expect that we'll necessarily maintain kit.svelte.dev in a perfectly working state with base path, but it's helpful to have something nonetheless
I found one serious bug while working on this and fixed it as part of this PR
This also bumps vite-imagetools which just fixed base path support in its latest release, so it was a good test of that as well

I found one serious bug while working on this and fixed it as part of this PR

Can we open a separate PR for that, with a test?

Can we open a separate PR for that, with a test?

Done. I moved that code to https://github.com/sveltejs/kit/pull/8683 and added a test

nice


[add] API to Crawly.Manager

In order to expose the spyder Manager this PR adds the API for Crawly.Manager

cool, could you merge this PR?

Only those with write access to this repository can merge pull requests.

Sure! Thanks for the contribution @filipevarjao. I wonder if you still have a bit of time to help me with Crawly, or you've got another assignment already?

happy to help, and I would like to help more, do you still interested to investigate it by the benchmark? or is there a different priority now? let me know

@filipevarjao Yes, I still plan to continue with the benchmark, however now I am a bit limited on time, as we're wrapping up a project. Hope to have a bit more time in 2 weeks time. In any case if you can update the PR for it, it will be helpful. Otherwise I have quite a few open tickets here and in https://github.com/oltarasenko/crawly_ui


Update cloudknox-usage-analytics-active-resources.md

Minor updates to the doc to make it consistent to the current UX.

@marcelodiiorio : Thanks for your contribution! The author(s) have been notified to review your proposed change.


error when trying to run example

import serial
from pexpect_serial import SerialSpawn
Traceback (most recent call last):
File "", line 1, in
File "C:\python36\lib\site-packages\pexpect_serial_init_.py", line 1, in
from .serial_spawn import SerialSpawn
File "C:\python36\lib\site-packages\pexpect_serial\serial_spawn.py", line 24, in
from pexpect import spawn
ImportError: cannot import name 'spawn'

seems like from [https://pexpect.readthedocs.io/en/stable/overview.html#windows] pexpect.spawn is not available in windows

pip install --force-reinstall -v "pexpect_serial==0.0.4" resolved this issue for me.

4488ae405bb27e6c7686e0dfa9f5453737a12dc2 appears to be the culprit commit that broke this in pexpect_serial.

Running pip install pexpect-serial==0.0.4 on windows fixed it for me, too. Running Windows 11, miniconda and Python 3.11.

I found some other odd behavior introduced in 0.1.0.
For my use case, I was expecting 552 bytes of data. I received it, but upon inspection, the last 512 bytes should be zeroes. I can confirm as much with a logic analyzer and debugger on the device end. And at 0.0.4 I do indeed get that.
However, at 0.1.0 some data in the middle is inserting some data somehow. It's the same data consistent across multiple devices and multiple laptops.
0.1.0 should be reverted.


Run tests as GitHub action

Modify https://github.com/QCDIS/KMS-generic/blob/master/.github/workflows/make.yml to run Cypress and Postman tests.

Needs an Elasticsearch server with fixtures: #82


RevEng: Generate HasAlternateKey for Unique Constraints

The logic introduced in PR https://github.com/aspnet/EntityFramework/pull/8089 is inaccurate.
We should not be scaffolding unique index for unique constraints.
Practically they are same (ref: https://stackoverflow.com/questions/2675474/what-is-the-difference-between-a-unique-constraint-and-a-unique-index)
But metadata wise they are different. If there is unique constraint then we should call HasAlternateKey instead of HasIndex.IsUnique` regardless of it being referenced by relationship or not.
Though the underlying issue is https://github.com/aspnet/EntityFramework/issues/7956#issuecomment-291997074

I've been looking at this offline. It's OK to not call HasAlternateKey() and it turns out we were already calling HasIndex().

At present, we never ask for metadata about the constraints to database. We generate PK based on PrimaryKeyOrdinal of column & we generate AK based on the relationship referenced columns. (therefore we incorrectly identify our unique constraints as unique index atm)
It would preserve https://github.com/aspnet/EntityFramework/issues/7956 too without complicating our logic. In #7956, there is unique index, we don't scaffold IsRequired for unique index since one null value is allowed.
If there is unique Constraint then we should scaffold IsRequired since SqlServer would make columns non-null too.

@smitpatel We should never generate HasAlternateKey; it is never useful. In EF terms, HasAlternateKey is a way of specifying that something is the principal end of the relationship without saying which relationship that is. But you have to tell us that in the relationship API anyway, so HasAlternateKey has no value; it's a pointless API.
So for something like this:
modelBuilder.Entity<Blog>()
    .HasMany(e => e.Posts)
    .WithOne(e => e.Blog)
    .HasPrincipalKey(e => e.BlogId);

You could also add this:
modelBuilder.Entity<Blog>()
    .HasAlternateKey(e => e.BlogId);

and it would build the same model. But there's really no point since...it builds the same model.
Why this is important is that the key values at the principal end of a relationship cannot be modified. So once something is marked with HasAlternateKey it becomes more restrictive. If it really is the principal end, then fine--it's a restriction we have. But if it has been called for something that isn't the principal end, then the model now has a restriction that it doesn't need to have, and one that historically causes issues for applications.
Maybe now is the time to finally get rid of HasAlternateKey? Or at least obsolete it.

Maybe now is the time to finally get rid of HasAlternateKey? Or at least obsolete it.

Perhaps. We can remove that API too, not fan of it. While discovering RevEng today, I realized we did not do anything about constraints. In current codebase, if user creates a model using HasAlternateKey to generate database and then reverse engineer it, we would generate HasIndex calls which is quite confusing. And the reasoning is not obvious.

@smitpatel Yep, agree we should look into what constraints mean and whether they should be mapped in a different way.

We should never generate HasAlternateKey; it is never useful

I disagree with this. The DDL to interact with indexes is different from that of unique constraints. If you want to "take over" managing a database with Migrations, we need to know if it's a unique constraint or an index. Today, we do this by mapping them to either indexes or alternate keys in the metadata.
Another distinction is that SQL Server can add filters to unique indexes, so NULL (and possibly other values) may be handled differently between the two.

The distinction may also be important for Update From Database

@bricelam Then should we change the semantics of HasAlternateKey in the EF model? Otherwise people are going to continue to get errors from EF that the property cannot be modified when there is no restriction to modification in the database.

No; I don't think they're any different from primary keys. HasAlternateKey means we maintain an identity map over them which adds this restriction. This seems normal for an O/RM.
If anyone wants to update the values and isn't using them as the target of a foreign key, they can change it to HasIndex and (optionally) run Update-Database

Then should we change the semantics of HasAlternateKey in the EF model? ...

No; I don't think they're any different from primary keys. HasAlternateKey means we maintain an identity map over them which adds this restriction. This seems normal for an O/RM...

From my point of view it would be better that the semantics of HasAlternateKey aligned perfectly with the presence of a unique constraint in the database. Why add the identity map machinery (and the consequent read-onlyness) even in those cases in which we know we won't use it?
After @smitpatel explained this to me yesterday I had to agree with his original comment in this issue. We are second guessing the user intent when we reverse engineer a unique constraint as a unique index. The fact that it doesn't round trip well is a smell.

@divega Let's discuss this in the design meeting tomorrow. I think that we should have something that preserves that a constraint was used. Not sure if it is HasAlternateKey with different semantics, or something else.

Discussed this in triage and we decided to obsolete current HasAlternateKey API (see #8702) and instead do something else that allows the unique constrainst metadata to flow through the stack. This should be relational-only code. It might be an annotation on an Index, or on the property directly, possibly also with fluent API.

One of the intermediary conclusions from today is that generating HasAlternateKey (or a similar replacement API) would be more palatable if we implemented mutable alternate keys (#4073).

Triage: Do something else that allows the unique constrainst metadata to flow through the stack. This should be relational-only code. It might be an annotation on an Index, or on the property directly, possibly also with fluent API.


Difference between Azure Event Hubs and Azure Log Analytics

I have gone thru multiple resources over the net but i got little confused
which is responsible , to correlate events from multiple resources into a centralized repository ?
Could some one please answer this
[Enter feedback here]

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

ID: 0a6e2fa9-99f3-7a01-5629-42ff4a762ea8
Version Independent ID: d3992cd6-6809-d757-2725-0be592ee6521
Content: What is Azure Event Hubs? - a Big Data ingestion service - Azure Event Hubs
Content Source: articles/event-hubs/event-hubs-about.md
Service: event-hubs
GitHub Login: @spelluru
Microsoft Alias: spelluru

@rsrk2008 To correlate events from multiple resources into a centralized repository. Log data collected by Azure Monitor is stored in a Log Analytics workspace, which is based on Azure Data Explorer. It collects telemetry from a variety of sources and uses the Kusto query language used by Data Explorer to retrieve and analyze data.
Log Analytics - Primary tool in the Azure portal for editing log queries and interactively analyzing their results. Even if you intend to use a log query elsewhere in Azure Monitor, you'll typically write and test it in Log Analytics before copying it to its final location.

Reference: Log queries in Azure Monitor.
Hope this helps.

@@rsrk2008  Hope the above info helps.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion
Thank you.


Improved the importer ability to detect colonly and the other markers.

Improved the importer ability to detect colonly and the other markers.
Depending on how the scene is composed in blender a different naming convention is used, so the markers colonly, col, convcolonly, noimport are not always detected.
For example, blender map my meshes in this way: Box001|Cube|Dupli|2 and Box001|Collisin-colonly|Dupli|2
This PR enhance the detection algorithm. Now it finds the marker and make sure that there are no letters around it.
This allow to always detects the markers and never miss detect it.

I was wondering if you had a test scene for this.
I've made this and https://github.com/godotengine/godot/issues/40729 added empties https://github.com/godotengine/godot/files/4977830/32678-respect-import-hints-with-empty.zip.
Can you also add examples like Box001|Collisin-colonly|Dupli|2?

I also had to rewrite this system for #39105. Could you check if it fixes your problem?

@Shatur95 Just tried it, doesn't work. Here, you can download the test files I've used: https://github.com/godotengine/godot-tests/pull/16
If you want to recreate it, in blender, the steps are:

Open blender.
Add a collection.
Add a box to this collection.
Add a -colonly mesh.
Create a new collection (which is the main scene).
Add the box collection.
Add another box collection.
Export as FBX (Only the FBX importer is able to import it at the moment).

@fire Done https://github.com/godotengine/godot-tests/pull/16.

@AndreaCatania, thanks!
What does the word Dupli correspond to in such a mesh?

Blender adds it, not sure why.

What if we cleanup such names? We already removing any trailing numbers that exists on FBX export.
I mean, if name ends with |Dupli, then just take only mesh name. For example: Box001|Collisin-colonly|Dupli -> Collisin-colonly and then continue parsing as usual.
If you like the idea, could you wait for #39105? Just to avoid making that PR more complicated to review. After the merge I will send a new one to fix the collections.

In this way the issue is not solved though. Blender or any other software can format such name as it prefer. The solution presented by this PR solve it by making sure that the marker is detected no matter which format is presented.
The change in this PR is pretty minimal, can't be applied on your PR too?

In this way the issue is not solved though. Blender or any other software can format such name as it prefer. The solution presented by this PR solve it by making sure that the marker is detected no matter which format is presented.

Yes, your suggestion should solve the issue regardless of formatting. But maybe such names should be preprocessed? Otherwise, depending on the selected format, the object may have a different mesh names (for example, Blender FBX exporter adds 2 to the name of each mesh). Also Box001|Collisin-colonly|Dupli doesn't looks like something normal :) But this is very rare cases, usually mesh names looks okay. By the way, the hints are also removed from the mesh names when found.
So, if we try to clear names anyway, do we need to extend search to find hint even in the middle of the mesh name?

The change in this PR is pretty minimal, can't be applied on your PR too?

Okay, I'll include the changes that we will discuss.

The thing is that, blender automatically gives this name, once exported. I feel like that godot should just import it.
Also improving godot, is much easier than trying to change blender and all the other modeling tools.

@AndreaCatania, hm-m... I'm agree :)
@fire, I see you already started to review my PR. Can I apply this changes to my PR as @AndreaCatania suggested?

@AndreaCatania, implemented it in #48167.

This is not good, and it should probably be properly explained in the code why it works like it does. We must detect not only something like -col but things that for artists will happen if they duplicate objects like -col.002 or things like that.

Closing based on the above comment.


Timeline for v3 api

Do you have any timeline for v3 API:
https://github.com/coreos/etcd/blob/master/ROADMAP.md
In particular, when do you expect e.g. protocol-buffer API be supported (we are planning some work in Kubernetes now, so it would be good to have some rough estimates for it).
cc @xiang90 @yichengq

Here is a rough roadmap with timeline:

mid Sept. non-clustered demo version of v3 key-value api support
late Sept. basic client, watch api, leasing api support

Then we will see the feedback and the early adopters's timeline to decide:

release a not backward compatible version of etcd v3 as soon as possible and then fix the backward compatibility issue

or release a backward compatible version of etcd v3 (which takes more than than option 1)

/cc @philips @yichengq @kelseyhightower

Thanks a lot for the update @xiang90
FYI @timothysc @lavalamp @davidopp

cc @eparis @smarterclayton - FYI on timeline.

Closed by https://github.com/coreos/etcd/pull/3287


Fix GRU step function (h) to its correct equation

Hi, I was trying to implement Minimal Gated Unit RNN, so I've read GRU & MGU equations and tried to study the existing GRU code. But later, I noticed something strange on GRU equation. Am I correct?
Thanks.

But it returns lower accuracy in test_temporal_classification() :confused:
>       assert(history.history['val_acc'][-1] >= 0.85)
E       assert 0.78200000047683715 >= 0.85

But it returns lower accuracy in test_temporal_classification() in Theano integration test :confused:
>       assert(history.history['val_acc'][-1] >= 0.85)
E       assert 0.78200000047683715 >= 0.85

References about the GRU equation:

Page 3 on http://arxiv.org/pdf/1603.09420v1.pdf
Bottom of http://colah.github.io/posts/2015-08-Understanding-LSTMs/

Looks like Keras implementation is already correct, it is same as how it's written in the original GRU paper by Cho (page 3, equation 7). So, the GRU equation in Colah's and Zhou's looks... wrong :confused:
Sorry for the inconvenience. Thanks.


Query string parameters alphabetically sorted

Summary
When processing a request, the query string parameters of the request are sorted alphabetically.
Steps To Reproduce

Create a service with a route - example route: "/v1/users"
Send request to Kong with some string parameters - example url: http://kong_host/v1/users?b=1&a=2
The upstream will get the request as /v1/users?a=2&b=1

Additional Details & Logs

Kong version - 0.14.0

I have the key-auth and acl plugins running on the service.
The issue seems to be caused by the "hide credentials" option on the key-auth plugin.

I must ask: Is this really an issue? Query string parameter order is rarely relevant. The only case where I think it can be an issue is when there are repeated arguments.

Sometimes it's not a design decision that Kong users have control over - some 3rd-party APIs for webhooks require order to be preserved.

Hi @kikito, this can be an issue when the upstream requires hmac authentication with the pseudo header (request-target) as in the draft-cavage-http-signatures-12. Since the order is not preserved, the signature does not match.
The situation would be this: you want to restrict the clients that can call the upstream, hence you use the key-auth plugin and hide_credentials to not leak the keys to the upstream. If in this case the upstream implements hmac authentication the signature would not be correct because the order of the parameters matter.


Build fails in android

I checked the documentation, downloaded the example from the repo and no matter how hard I've tried to build the package it fails saying this:

Environment
mac os
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-google-signin": "^0.12.0"

Steps to Reproduce
just install the dependency itself

install the following dependencies in android sdk manager:
1.1 Android SDK Build-Tools: 23.01, 24.01
1.2 Android SDK Platform-Tools 28.0.0
1.3 Android SDK Tools 26.1.1
1.4 Android 6.0 SDK Platform, Google Ais
1.5 Andoroid 5.1.1 SDK Platform, Google Apis
1.6 Android Support Repository

edit /android/app/build.gradle add:

compile(project(':react-native-google-signin')){
       exclude group: "com.google.android.gms"
   }
compile "com.google.android.gms:play-services-auth:11.8.0"

// at the end of the file add this
apply plugin: 'com.google.gms.google-services'

edit /android/build.gradle and add this line:
apply plugin: 'com.google.gms:google-services:3.0.0'

Expected Behavior
compile succesfully
Actual Behavior
Got an error when compiling:
Scanning folders for symlinks in /Users/egarcia/googleSigninDemo/node_modules (43ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
File /Users/egarcia/.android/repositories.cfg could not be loaded.
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-google-signin'.
Could not resolve all dependencies for configuration ':react-native-google-signin:_debugPublishCopy'.
Could not find com.google.android.gms:play-services-auth-api-phone:12.0.1.
Searched in the following locations:
file:/Volumes/ERICK-USB/erick/sdk/extras/google/m2repository/com/google/android/gms/play-services-auth-api-phone/12.0.1/play-services-auth-api-phone-12.0.1.pom

@erick2014 Same issue here.!!

@erick2014 same here!

Here is the fix, replace your android/build.gradle with this i.e in your project level gradle  with this
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven {url "https://maven.google.com"} //<---- this should be added and should be aboce jcenter
        maven {url "$rootDir/../node_modules/react-native/android"}
        jcenter()
    }
}

After that clear your gradle going inside android folder from cmd/terminal
gradlew clean
Then run the react native application

@ajitdas123 yeah it worked for me man thx a lot I jus want to say if you dont have the jcenter() at the end you will get this error, so keep that in mind :
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-google-signin'.
      > Could not find runtime.jar (android.arch.lifecycle:runtime:1.0.0).
        Searched in the following locations:
            https://jcenter.bintray.com/android/arch/lifecycle/runtime/1.0.0/runtime-1.0.0.jar

this is my build android/build.gradle file:
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.google.gms:google-services:3.0.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven {url "https://maven.google.com"}
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        jcenter()
    }
}

and this is my /android/app/build.gradle file:
dependencies {

    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
    compile(project(':react-native-google-signin')){
       exclude group: "com.google.android.gms"
   }
   compile "com.google.android.gms:play-services-auth:11.8.0"
}

@ajitdas123 thanks! it worked on ./gradlew clean but later on i tried to run-android i have an error :app:compileDebugJavaWithJavac FAILED https://github.com/react-native-community/react-native-google-signin/issues/420

@ergxpr0xy check if you have this line  apply plugin: 'com.google.gms.google-services' and remove it and try again

I also record a video about how to compile de dependency, maybe it could help
https://www.youtube.com/watch?v=mi9jBPGcwO0&t=6s

maven {url "https://maven.google.com"} //<---- this should be added and should be aboce jcenter
fixed this issue for me: https://github.com/react-native-community/react-native-google-signin/issues/417

It seems like we need to update the example docs:
https://github.com/react-native-community/react-native-google-signin/blob/master/android/build.gradle

I have the same issue but none of the above solved it.
Env Info:
Environment:
OS: macOS High Sierra 10.13.3
Node: 10.3.0
Yarn: Not Found
npm: 6.1.0
Watchman: 4.9.0
Xcode: Xcode 9.4 Build version 9F1027a
Android Studio: 3.1 AI-173.4720617
Packages: (wanted => installed)
react: 16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: ^0.55.0 => 0.55.0
./android/build.gradle:
buildscript {
    repositories {
    	google()
      jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven { url 'https://maven.google.com'   }
        maven { url "$rootDir/../node_modules/react-native/android" }
        jcenter()
        flatDir {
            dirs project(':UnityExport').file('libs')
        }
    }
    configurations.all {
       resolutionStrategy {
         eachDependency { DependencyResolveDetails details ->
           if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
             details.useVersion "0.55.0" // Your real React Native version here
           }
         }
         force 'com.facebook.android:facebook-android-sdk:4.22.1'
       }
    }
}

logcat output:
06-25 19:44:11.115  3571  3571 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/Api$zzf;
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at com.google.android.gms.auth.api.Auth.<clinit>(Unknown Source:0)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at co.apptailor.googlesignin.RNGoogleSigninModule$1.run(RNGoogleSigninModule.java:120)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:789)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:98)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:164)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6541)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.api.Api$zzf" on path: DexPathList[[zip file "/data/app/com.amonra-hn7aefqBFXol2wqMmCvTHA==/base.apk"],nativeLibraryDirectories=[/data/app/com.amonra-hn7aefqBFXol2wqMmCvTHA==/lib/x86, /system/fake-libs, /data/app/com.amonra-hn7aefqBFXol2wqMmCvTHA==/base.apk!/lib/x86, /system/lib, /system/vendor/lib]]
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
06-25 19:44:11.115  3571  3571 E AndroidRuntime: 	... 9 more

@erick2014 @ujjwalagrawal17 @appai
Hey I got same issue. Make sure your graddle-wrapper version should be 4.4, gradle version should be 3.1.2 and play-service-auth version should be 15.0.0. If it is not then follow three steps to upgrade.

Update Distribution Url to 4.4 in android/app/gradle/wrapper/gradle-wrapper.properties File.
Update Build Gradle Version to 3.1.2 in android/build.gradle File.
Update compile 'com.google.android.gms:play-services-auth:15.0.0' in android/app/build file

P.S : I'm using React-native Google Signin version v0.10.0.

The solution is provided and reflected to our Android guide. Thanks everyone finding solutions! :)

@sanjeevmoga Your solution worked like a charm! Thank you for that!


Roll Flutter Engine from b94e0097035d to 1b90074a6b13 (3 revisions)

https://github.com/flutter/engine/compare/b94e0097035d...1b90074a6b13
2024-08-21<EMAIL_ADDRESS>Roll Skia from d576296091e0 to 221ada80b174 (2 revisions) (flutter/engine#54675)
2024-08-21<EMAIL_ADDRESS>Roll Dart SDK from 49f655b526c7 to 48f9b96d71e7 (1 revision) (flutter/engine#54672)
2024-08-21<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from 3a16kOsyFmJh3lo7e... to XGzE3idakwfQZ68pb... (flutter/engine#54671)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from 3a16kOsyFmJh to XGzE3idakwfQ
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jimgraham@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Charge for deploys with incorrect WASM

This PR adds charging for execution of wasm files that are erroneous, due to:

incorrect wasm magic bytes
empty module (only in session, not payment)
general corruption (bytes cannot be deserialized)
no memory section

Closes https://github.com/casper-network/Governance/issues/42

bors r+


[10.x] Prevents trim in ComponentAttributeBag::__toString() when $value is array

When we are dealing with components and we pass an attribute that is an array when trying to print the attributes we will have an error due to the attempt to trim an array:
<x-test foo="bar" :test="['foo' => 'bar']" />

Result:

There are two solutions for this:

Throw an exception that indicates the error (attempts to trim an array) or;
Ignore when $value is an array.

I preferred the second, but I would like to hear the opinion of the Laravel team, on whether the first is correct. This way I can adapt the pull request.

I don't think we should take any action on this at all.

I don't think we should take any action on this at all.

Think carefully, and come up with an answer later. Think about new users. You and I know how to get around it, but what about new users? Attributes can be passed to the component, including array-type attributes. When trying to print the attributes, it will give an error.


yield instead of return in tensorflow_imagenet_segmentation.py

if return, then this is the ouput

since Apache Beam string as Iterable and emits one index at a time
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

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

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

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

Run Python 3.8 PostCommit

Tensorflow test passed but sklearn tests failed

Tensorflow test passed but sklearn tests failed

I think that is not relevant here.  It started to fail here https://ci-beam.apache.org/job/beam_PostCommit_Python39/1613/


resolve wrong argument in errorf - use component name instead of all args

What type of PR is this?
/kind cleanup
What does does this PR do / why we need it:
see $SUBJECT
Which issue(s) this PR fixes:
No issue
How to test changes / Special notes to the reviewer:
error log should now show correct information

/approve

/lgtm


[BUG] Instructions unclear, no .exe exists to begin installation?

The documentation advises when beginning to run the bot via an .exe in the /bin/ folder. However this doesn't exist in the release .zip download, and your installation instructions make no mention of how to create it?
I know there is probably an obvious solution to lifelong coders but to people with little experience like myself there seems to be no clear explanation.

What OS are you trying to use?

Releases are here: https://github.com/GravityWolfNotAmused/PlayerCountDiscordBot/releases

Can you point me to the faulty documentation, so I may fix it?

Thanks for the quick response!
Apologies in advance if, like I said, I'm missing something very obvious here.
I am following the documentation found at this page.
Based on the way it is written, I am assuming I am meant to start with the second last link, "standard installation". I come to this conclusion due to the fact that the first links, (i.e. "Configuring a server") immediately starts by referring to screenshots of code that I do not have, without any instruction on where to input these options.
So I follow the standard installation instructions. First, I download and install the runtime. Then the instructions say:

After installation of .Net Runtime 6, you need to run the application one time.

There is no mention of what application, or where. However the provided screenshot shows a filepath:

PlayerCountDiscordBot\DiscordPlayerCountBot\bin\Debug\net6.0\DiscordPlayerCountBot.exe

However I do not have any bin folder.

None of the other documentation pages seem to make any mention of how or where this bin folder comes from.
Thanks for your time.

Ok I've just realised I must have downloaded the source code instead of the latest release.
Sorry to waste your time!

This was going to be my follow-up response, no worries.

Thanks again
Commenting to close


CB-8794 Update links to plugins to point to npm.

Merged as part of commit: 40aa9dd515c5a7e534c6bd1d6d8722360cf2e37e


Enhancement: Use SQLAlchemy Mapped type hints if available for plugin

>>> from typing import get_type_hints, get_args, get_origin
>>> type_hints = get_type_hints(Author)
>>> for k, v in type_hints.items():
...   print(k, get_origin(v), get_args(v))
...
id <class 'sqlalchemy.orm.base.Mapped'> (<class 'uuid.UUID'>,)
created <class 'sqlalchemy.orm.base.Mapped'> (<class 'datetime.datetime'>,)
updated <class 'sqlalchemy.orm.base.Mapped'> (<class 'datetime.datetime'>,)
name <class 'sqlalchemy.orm.base.Mapped'> (<class 'str'>,)
dob <class 'sqlalchemy.orm.base.Mapped'> (<class 'datetime.date'>,)
>>>

We can get at the type annotations of the sqlalchemy models all via public api, so we should be able to easily produce equivalent pydantic models from that info.
How we would go about detecting if the models used type hints or not, and also whether we'd want to extract default values/factories from the column definitions would all have to be considered as well.

Currently blocked by #1160


Open remote file for editing from local command line

I would like to open a remote file for editing (using ssh, specifying host_address, ssh_port, user_name, password / key) from my local computer using the command line.
Target usage:
code -h remote_host_address -p 22 -u username -i key_file.pem /path/to/file/on/remote/host:line_number
So far I have been using vscode-sshfs extension to access and edit files on different remote machines (passing those arguments via the environment variables). But there is no support for opening a specific file URI and specific line on a different FileSystemProvider (or using a different url scheme, for that matter) from the command line.
Running code ssh_fs://path/relative/to/root opens local file ~/ssh_fs/path/relative/to/root.
(working on mac, if that makes any difference)
Thanks,
Tal

@talsaiag have you tried the new VS Code remote extensions for ssh. See https://code.visualstudio.com/docs/remote/ssh

I have tried it;
I'm connecting to multiple temporary remote hosts at a time.
Setting them inside the ssh config file is burdensome.
As I mentioned, if possible, I would like to use the command line to open a remote file the same way I would if it was local:
code -h remote_host_address -p 22 -u username -i key_file.pem /path/to/file/on/remote/host:line_number
Maybe even use --wait in addition, and also support more than one opened paths from more than one remote host (preferable using the same vscode window).
I want to eventually be able to run code local_path_on_remote_host inside a remote ssh connection and get a local vscode window pointing to that file/folder on the remote instance in question - but that is way too much to ask here :)
(and I think I have a way for doing just that if I have the command line support listed above, without ever configuring the remote host prior, from any outgoing ssh connection from my local host)

want to eventually be able to run code local_path_on_remote_host inside a remote ssh connection and get a local vscode window pointing to that file/folder on the remote instance in question

This actually works already, if you are connected to a remote already and do it in vscode's integrated terminal.
For connecting from a local terminal, https://github.com/microsoft/vscode-remote-release/issues/585


Added all examples for oscar elyra

This commit contains all the examples for oscar elyra
There is 3 examples:

Cowsay.
Grayify.
Plants Theaon.

the folder .virtual_documents must be deleted


Change item animation default to false (when backing data set changes)

Codecov Report

Merging #53 into master will not change coverage.
The diff coverage is 56.92%.

@@            Coverage Diff            @@
##             master      #53   +/-   ##
=========================================
  Coverage     90.14%   90.14%
  Complexity      384      384
=========================================
  Files            23       23
  Lines          1076     1076
  Branches        186      186
=========================================
  Hits            970      970
  Misses           44       44
  Partials         62       62

Impacted Files
Coverage Δ
Complexity Δ

...wayfair/brickkit/base/viewmodel/BaseViewModel.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ain/java/com/wayfair/brickkit/BrickViewHolder.java
37.5% <0%> (ø)
2 <0> (ø)
:arrow_down:

.../wayfair/brickkit/behavior/StickyViewBehavior.java
91.36% <100%> (ø)
44 <0> (ø)
:arrow_down:

...java/com/wayfair/brickkit/BrickSpanSizeLookup.java
75% <50%> (ø)
3 <2> (ø)
:arrow_down:

...ava/com/wayfair/brickkit/BrickRecyclerAdapter.java
97.5% <50%> (ø)
51 <10> (ø)
:arrow_down:

.../wayfair/brickkit/BrickRecyclerItemDecoration.java
98% <66.66%> (ø)
20 <3> (ø)
:arrow_down:

...in/java/com/wayfair/brickkit/BrickDataManager.java
85.71% <84.84%> (ø)
112 <4> (ø)
:arrow_down:

... and 2 more

Continue to review full report at Codecov.

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


problem with division uli?? program 39

pag tinanggal ko, nagrrun yung code--enclosing in parenthesis doesnt work too.

-- has to do with assigning a value to the variable and including it in a mathematical operation

this works program works now, along side any program involving division
Terminal Output:
C:\Users\David\Downloads\sheesh#\Compiler-Sheesh>sheesh.exe
Enter weight (in kilogram): 12
Enter height (in meters): 34.5
Your BMI is 0.010082. You are classified as underweight.
C:\Users\David\Downloads\sheesh#\Compiler-Sheesh>