Problem with pandas and python 3

This is not really a peddy problem, has anyone else experienced this?
I get:
/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/IPython/html.py:14: ShimWarning: The `IPython.html` package has been deprecated since IPython 4.0. You should import from `notebook` instead. `IPython.html.widgets` has moved to `ipywidgets`.
  "`IPython.html.widgets` has moved to `ipywidgets`.", ShimWarning)
Traceback (most recent call last):
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/mansmagnusson/Projects/peddy/peddy/__main__.py", line 15, in <module>
    sys.exit(cli())
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/mansmagnusson/Projects/peddy/peddy/cli.py", line 202, in peddy
    in ("ped_check", "het_check", "sex_check")]):
  File "/Users/mansmagnusson/Projects/peddy/peddy/cli.py", line 42, in run
    prefix=prefix, **kwargs)
  File "/Users/mansmagnusson/Projects/peddy/peddy/peddy.py", line 1037, in ped_check
    sub = df.eval('((rel > 0.1) & (pedigree_relatedness < 0.05)) | ((rel < 0.05) & (pedigree_relatedness > 0.1)) | (rel_difference > 0.1) | (rel_difference < -0.1)')
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/frame.py", line 2284, in eval
    return _eval(expr, inplace=inplace, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/eval.py", line 262, in eval
    truediv=truediv)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 727, in __init__
    self.terms = self.parse()
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 744, in parse
    return self._visitor.visit(self.expr)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 313, in visit
    return visitor(node, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 319, in visit_Module
    return self.visit(expr, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 313, in visit
    return visitor(node, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 322, in visit_Expr
    return self.visit(node.value, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 313, in visit
    return visitor(node, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 671, in visit_BoolOp
    return reduce(visitor, operands)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 664, in visitor
    rhs = self._try_visit_binop(y)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 659, in _try_visit_binop
    return self.visit(bop)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 313, in visit
    return visitor(node, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 644, in visit_Compare
    return self.visit(binop)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 313, in visit
    return visitor(node, **kwargs)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 417, in visit_BinOp
    left, right = self._maybe_downcast_constants(left, right)
  File "/Users/mansmagnusson/miniconda3/envs/peddy/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 369, in _maybe_downcast_constants
    name = self.env.add_tmp(np.float32(right.value))
AttributeError: 'UnaryOp' object has no attribute 'value'

Which I guess is the same as https://github.com/pandas-dev/pandas/issues/11235, but that issue should have been solved in an older version of pandas...
I have pandas (0.20.1) installed.

can you print out that expression? and the values of the variable:

?
maybe there's a NaN or None in there somehow.

I only use the data that comes with the distribution so I'm running
python -m peddy --plot -p 4 --prefix mystudy data/ceph1463.peddy.vcf.gz data/ceph1463.ped
With python 2.7 it works fine but not 3.6...


Update Express to version 4.17

Updated express version to 4.17, this resolves #69

Thought I'd provide some context to answer some questions @jlongster might have.
Root Cause
SharedArrayBuffer wasm code fails its streaming compile because Express is serving .wasm as MIME type application/octet-stream instead of application/wasm. We fall back to the ArrayBuffer-based storage mechanism, which is known buggy.
Error screenshot (H/T @RichInSQL):

Why this Change Fixes Things
tl;dr Not sure
For reference: express changelog
I would have guessed the change that fixes our bug is the removal of<EMAIL_ADDRESS>Leaves us depending on<EMAIL_ADDRESS>which depends on<EMAIL_ADDRESS>instead of<EMAIL_ADDRESS>But turns out<EMAIL_ADDRESS>is the version where application/wasm was added for .wasm files. So we should have already had the right content-type where we are seeing our bug.
In any case, it feels safe to say the fix comes from bumping some package in express' MIME types eco-system that we receive by going to 4.17.3 from 4.16.3.
Still think we ought to merge it. I just like to know exactly why whenever a version bump is the solution.  🤔

Looks great; looks like a safe bump. I'd be more worried about a major bump but this looks good. Thanks for the research!


TypeScript error on Autocomplete

Describe the bug
I get a TypeScript error when using the Autocomplete with objects as options (see repro).
Steps to reproduce the bug
Reproduction in CodeSandbox
Expected behavior
No TS errors.
Specifications

Version: 0.39.0
Browser: N/A
OS: N/A

Additional context
Reproduction in CodeSandbox

Is this what #3487 aims to fix?


Timed out after 30sec. Connection couldn't be established.

Appears I'm not able to connect to the IoT endpoint when using the remote proxy.
My API endpoint response:
curl -v --header "x-api-key: XXXX" https://vmrms5eqkb.execute-api.us-west-2.amazonaws.com/dev/
*   Trying <IP_ADDRESS>...
* Connected to vmrms5eqkb.execute-api.us-west-2.amazonaws.com (<IP_ADDRESS>) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.execute-api.us-west-2.amazonaws.com
* Server certificate: Symantec Class 3 Secure Server CA - G4
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
> GET /dev/ HTTP/1.1
> Host: vmrms5eqkb.execute-api.us-west-2.amazonaws.com
> User-Agent: curl/7.49.1
> Accept: */*
> x-api-key: VuMRcqXXXXX
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 825
< Connection: keep-alive
< Date: Thu, 31 Aug 2017 17:56:00 GMT
< x-amzn-RequestId: a64161b6-8e75-11e7-8642-b5937826c951
< X-Amzn-Trace-Id: sampled=0;root=1-59a84db0-26e0c918e8eb2221c99c8af6
< X-Cache: Miss from cloudfront
< Via: 1.1 b20a36f6809f60038027cfc2337597fe.cloudfront.net (CloudFront)
< X-Amz-Cf-Id: kRuVdp-iDElHseeHppcOIrdQbkmC72lBm4xUjT1xlebHn0KaHIsLHQ==
<
* Connection #0 to host vmrms5eqkb.execute-api.us-west-2.amazonaws.com left intact
{"url":"wss://a11rh9psk3gf95.iot.us-west-2.amazonaws.com/mqtt?X-Amz-Date=20170831T175600Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXXXXX%2F20170831%2Fus-west-2%2Fiotdevicegateway%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=XXXX543b51c12a86b6d3040d040&X-Amz-Security-Token=XXXX","channelId":"cj70r4nky000201ntvvokq0is"}

Closing as dupe.

@kvh what is this a duplicate enough? next time leave a link so people who come across this know where to go. thanks.


make package fails

Version:
v0.10.0-rc2
Describe the bug
make package fails
To Reproduce
make package
Expected behavior
It should succeed
Actual behavior
$ make pacakge
...
+ mkdir -p dist/artifacts
+ tar cvzf ./build/out/data.tar.gz --exclude ./bin/hyperkube ./bin ./etc
./bin/
./bin/containerd-shim-runc-v2
./bin/ctr
./bin/k3s-server
./bin/portmap
./bin/crictl
./bin/containerd-shim
./bin/bridge
./bin/cni
./bin/host-local
./bin/k3s-agent
./bin/flannel
./bin/kubectl
./bin/runc
./bin/loopback
./bin/containerd
tar: ./etc: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
FATA[0478] exit status 2
make: *** [Makefile:11: package] Error 1

@AkihiroSuda  just run "make" to build the full release binary.
If you want to build locally (not in the docker container), you can run the following command. :smiley:

./scripts/download && ./scripts/build && ./scripts/package-cli;

thanks


Move deepcase-app installtion docs from notion to readme

Source docs in notion:
https://www.notion.so/ivansglazunov/Install-and-Using-8f213fbd532e4c869626b061b691ba2c
May be useful:
https://stackoverflow.com/questions/60789862/url-of-the-last-artifact-of-a-github-action-build
https://github.com/oprypin/nightly.link
https://nightly.link/

This issue depends on https://github.com/deep-foundation/deepcase-app/issues/246


Leaflet.draw: Filter by polygon

[x] Enable toobar icon
[x] Investigate map clicking issue

Resolved by #124


Generate dependency tree

Look at http://visjs.org/docs/network/#importing_data and using dot notation

Feedback from @boogiespook
Node Array:
nodes = new vis.DataSet([
{id: 1, label: 'Big App', title: 'Application description and other stuff for the Big App', color: '#FF0000', effort: "High"},
{id: 2, label: 'My Web App ', title: 'Web Application2 description and other stuff', color: "#7BE141", effort: "Low"},
{id: 3, label: 'Backend Database', title: 'Application3 description and other stuff', color: '#FF0000', effort: "High"},
{id: 4, label: 'Application 4', title: 'Application4 description and other stuff', color: '#7BE141', effort: "Low"},
{id: 5, label: 'Application 5', title: 'Application5 description and other stuff', color: "#FCC200", effort: "Medium"},
{id: 6, label: 'Application 6', title: 'Application6 description and other stuff!', color: "#FCC200", effort: "Medium"},
{id: 7, label: 'Orphan Application', title: 'Orphan Application description and other stuff', color: '#7BE141', effort: "Low"},
{id: 8, label: 'Application 8', title: 'Application8 description and other stuff', color: "#FCC200", effort: "Medium"},
{id: 9, label: 'Application 9', title: 'Application9 description and other stuff', color: '#7BE141', effort: "Low"},
{id: 10, label: 'Application 10', title: 'Application10 description and other stuff', color: '#7BE141', effort: "Low"}
]);
Edge Array:
var edges = new vis.DataSet([
{from: 1, to: 3},
{from: 1, to: 2},
{from: 2, to: 4, arrows: "from"},
{from: 2, to: 5,arrows: "from", dashes:true},
{from: 1, to: 5, arrows: "from"},
{from: 1, to: 6, arrows: "to"},
{from: 3, to: 6, arrows: "from"},
{from: 4, to: 8, arrows: "from"},
{from: 5, to: 8, arrows: "to", dashes:true},
{from: 8, to: 10, arrows: "to"},
{from: 9, to: 10},
{from: 10, to: 3}
]);

If possible, also returning the business priority could be good:
{id: 10, label: 'Application 10', title: 'Application10 description and other stuff', color: '#7BE141', effort: "Low", businessPriority: "6"}

As an owner of many applications, I want to view a graph of the dependencies among them in order to inform the prioritization of any application updates.
Does that capture the spirit, @noelo?
And what are status and remaining effort, good sir?

This is already done in the backend and MVP in the UI. More tweaking is
required for the UI, say 3 days.
This really depends on what UI tweaking we're doing with the UI COP
On Wed, Jun 6, 2018 at 9:23 PM texasbrok<EMAIL_ADDRESS>wrote:

As an owner of many applications, I want to view a graph of the
dependencies among them in order to inform the prioritization of any
application updates.
Does that capture the spirit, @noelo https://github.com/noelo?
And what are status and remaining effort, good sir?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/redhat-cop/pathfinder/issues/8#issuecomment-395201268,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAb_0-Ehdb3_X18B3dDyKGrdEBJXq8Q8ks5t6DongaJpZM4TGetT
.

I still think we need to brainstorm how this feature would be used and be most impactful.

which screen do we have it on?
a) report is quite busy, and if the customer is looking for recommendations then it's superfluous to that
b) should we have it on the assessment screen so it feeds into the assessment review decision?
c) could it be printed as an appendix to the report (assuming it contains all apps)
how will it scale with thousands of apps?
a) do we need to filter a small portion of apps to reduce the output? how to we decide which ones?

I have not size this due to the above outstanding considerations.


A bigger design is routable but sub-block of that design is not routable seperately

I'm running a uart benchmark on a k4n8 architecture file with no local routing. It's adapted from a sky130 architecture. Although I can run several benchmarks on it, I am facing some interesting cases. A uart top module and uart_tx submodule seperately can be placed and routed. However when I try to run uart_rx sub-module seperately it says "Circuit is unroutable with a channel width factor of 60." . Also when I run vpr command in task directory to see what minimum route-channel is, it says "Message: This circuit requires a channel width above 1000, probably is not going to route.
Aborting routing procedure."
A bigger design is routable but sub-block of that design is not routable seperately. How can I solve this issue @tangxifan?
openfpgashell.log for uart_rx task is:
openfpgashell.log

I see this issue in recent VTR upgrade. Currently, I do not have a better solution than trying different routing channel width numbers.


[WIP] CORS middleware docs

Add docs for #12
Preview link

@axblueblader Please update the docs on this branch if needed


Collection screen numbers

Numbers in collection screen do not seem correct anymore
ex I have cards from Innistrad Midnight Hunt and also from Midnight Hunt Commander; yet numbers show zero :

Hi,
which do you use ?
On Wed, Nov 17, 2021 at 9:18 AM Thorgal-The-Viking @.***>
wrote:

Numbers in collection screen do not seem correct anymore
ex I have cards from Innistrad Midnight Hunt and also from Midnight Hunt
Commander; yet numbers show zero :
[image: image]
https://user-images.githubusercontent.com/70637347/142161639-130c7155-0c9e-4b92-b8a4-99e67ae1c680.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nicho92/MtgDesktopCompanion/issues/198, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXZPH7ZSQFUE7DFQTJR7H3UMNQPDANCNFSM5IGJKKEA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MariaDB (mysql)

For me it's ok.
can you check which collection did you add your cards, and check your main library in config/Config/Main collection value.

needed to do "load from stock" to update collection


Fix: Allow user to provide input props

Fixes #82

Update change events use event instead of value.
Props solely used for input components, where able, are directly passed

There are still some components where value, id, name are handled manually.

Thanks @joshq00! I really appreciate the help to make react-mdl better :)
I understand we could do a cleanup in the propTypes of every component, but is some cases and especially when they are flagged "required", I think it's good to have them. It forces the user to use/set them and to know what's available on the component.

I don't see any problem with keeping them in the propTypes, or documenting that all input attributes are valid props.
However, I don't think they should be required if they are not required on the native input element.
For example, if I want a text box without a label (maybe I'm just using placeholder, or putting my label elsewhere) - I have to do
<Textfield label="" />

Without doing label="", I don't just get an invariant warning... I actually get an error thrown

I think it really depends. Because you know how the component is built, you know you can use a lot of props that are not described. But ideally, props should describe what you can use (or at least those who are supported and tested). A slider without the min/max value for example doesn't make a lot of sense, but because it's an input behind the scene, you know you can provide them.

I made a fiddle testing behavior with/without labels

Yes the input still works. But it doesn't have the MDL styles. Label is required with a MDL Textfield, we cannot change that.

Fair enough.
Anyhow, I didn't remove isRequired from the label property. Would you like me to add other properties?

For now, because there's no documentation, I prefer keeping the propTypes because they are kind of a documentation as well.
Could you rebase instead of merge? To avoid having these merge commits ? :)
Thanks!

Rebased

Could you please only change the way the event is sent inside onChange?
As I said, I prefer keeping the other props to serve as a documentation.

I'll get those back in today or tomorrow at latest

@tleunen should be all ready now

In general, yes we can set the onChange callback as optional. It helps prototyping screen. But usually people will set it anyway because we usually create controlled form. (using value + onChange).

100% agree - you'll probably will want to register a handler... but you might not. there are a million edge cases where you could be accomplishing the same thing.
A use case for not having value is if I'm using a store to keep track of the freeform text instead of state.
Another use case is that, sometimes, I need to use onKeyUp instead of onChange. By requiring it, I need to do onChange={ () => {} } just to avoid all the warnings

@tleunen Take a look at this about onChange https://github.com/tleunen/react-mdl/issues/55

Yep I forgot about this valueLink. But I agree with the changes. I'll merge once I get a confirmation for the tabindex thing. I asked them on their gitter channel.


Is there a way to make the XTerm background black?

First off- This jenkins plugin is fantastic!  Thank you @dblock and all other contributors!
Is there a way to get use the XTerm theme except with a black background on white text?
Thanks again!

Did you try a custom color map?

I didn't know that was an option... I will give it a try.
Thank you!

Reopen if that doesn't help.

Whoops, guess that was a little premature and I don't think I have permission to re-open.
So I found the config section and changed it like so (reversed BG/FG colors and changed "Black" to #BBBBBB):

And I've restarted the Jenkins service and re-run the task but the black background color isn't happening:

wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'xterm']) {
    ...
}

So after changing the task to use lowercase "xterm" instead of "XTerm", I now have some gray background (see screenshot below), but still no black background.  Are the color scheme names supposed to be case-sensitive? If so, then why are all the names in lowercase in the web config?

The Jenkins material theme sets a dark background for the console: http://afonsof.com/jenkins-material-theme/

I guess the author figured this out on his own but there must have been something else interfering with the settings,
Using the exact steps from https://github.com/jenkinsci/ansicolor-plugin/issues/69#issuecomment-197557735 in ansicolor v0.7.2 produces xterm style output with black background and white foreground.


Add guidance/support for validating requests came from Twilio in Minimal APIs

I forgot about this very important MVC feature. Let's see what we can do to bring it to Minimal API or at least document how to do it somewhere.

Fixed #98


RegexpTokenizer does not handle capturing parens as advertised

The docstring for nltk.tokenize.regexp.RegexpTokenizer states:
:param pattern: The pattern used to build this tokenizer.
        (This pattern may safely contain capturing parentheses.)

But this does not seem to be the case:
import nltk
nltk.regexp_tokenize("foo bar baz-qux", r"\w+(-\w+)*")
# returns ['', '', '-qux']

Contrast with:
nltk.regexp_tokenize("foo bar baz-qux", r"\w+(?:-\w+)*")
# returns ['foo', 'bar', 'baz-qux']

Tested both with PyPI release (nltk-3.1) and current develop branch.

Duplicate of #1206.

@stevenbird Possibly we need to edit the docstrings and tutorials.

@stevenbird Thanks for ae78614e9751c1230cb13fa815a75fc9f0a2acc1, that's exactly what I had in mind :)
Yes, it would also be a good idea to fix the relevant part of the NLTK book, that's what prompted me to expect capturing groups to work in the first place.

+1 on https://github.com/nltk/nltk/commit/ae78614e9751c1230cb13fa815a75fc9f0a2acc1


[core] Adding ability to send initial alert in merge_group

TL;DR I will add more tests etc but this is just an initial attempt, what do you think?
to: @chunyong-lin @ryandeivert
cc: @airbnb/streamalert-maintainers
related to: #1104
resolves: #1104
Background
Wanted the ability to send the first Alert when merging alerts. This allows the outputs to be informed immediately, but not flooded (hence merging) without waiting for the merging to take place before outputs are notified.
Changes

Added kwargs to Rule:
merge_send_initial: State if the first Alert in a merge_group should be sent immediately
Added kwargs to Alert:
merge_initial_alert - this is the first alert in the merge_group
merge_initial_sent - track if the initial_alert has been sent
merge_send_initial - Passed in from Rule but states if the first Alert in a group should be sent immediately
alert_merger._merge_groups is not longer a staticmethod
alert_merger now sets initial kwarg on an Alert and saves to dynamodb. This is picked up by the alert_processor which sends the Alert to the outputs as if it wasn't a merged alert.

Testing

Updated unit_tests but want input on if we should be using mocks here. Since i am reliant on the alerts_table to track state i think i should place records into the table and then verify they exist as expected
Ran tests/scripts/pylint.sh

Coverage decreased (-0.06%) to 96.136% when pulling 451fd7b8cf761ebed18bdb950f7072aa65ffdb3e on jack1902:alerts/send_one_then_merge into 3540535a1fe5436c55b2bb1056699a8b5c829198 on airbnb:release-3-1-0.

an alternative for testing things which reach out to dynamo and require state (it is already being mocked):
Add data to the table within aws_mock (tests/unit/helpers/aws_mocks.py)
def add_data_to_table(table_name, data):
    """Add data to a table
    Args:
        table_name (str): The name of the table
        data (list): List of dynamo compatible data eg alert.dynamo_record
    """
    table = boto3.resource('dynamodb', region_name='us-east-1').Table(table_name)
    with table.batch_writer() as batch:
        for datum in data:
            batch.put_item(Item=datum)

Call this function to add information into the table from within a test, and don't patch the call within AlertTable. Then within a test:
alerts = [Alert('valid_alert'), Alert('valid_alert')]

add_data_to_table(_ALERT_TABLE, [alert.dynamo_record for alert in alerts])
self._merger._merge_groups(alerts)

# Add some tests here to pull data from the mocked table and verify it is what expected

@Ryxias glad you asked, so essentially if the merge_send_initial is set then it will send one alert as if it's a normal alert but will be merged into the merged alert sent later on. This is because i wanted to have this initial alert still part of the merge group but send it as soon as possible before it is merged in order to notify outputs.
As can be seen on the issue referenced, others have done this work outside of SA

That's sensible; pretty smart to merge the initial alert into the merged payload.
What about when many alerts come in as a stream? Let's say the merge window is 30 minutes and we get 2 hours of alerts. Will we get:
00:01 — Initial alert 1
00:30 — Merged alert 1 (+ alerts from 00:01 - 00:30)
00:31 — Initial alert 2
01:00 — Merged alert 2 (+ alerts from 00:31 - 01:00)
01:01 — Initial alert 3
... etc
?

@Ryxias This is what i expect to happen with the merge_groups as long as the alerts are grouped correctly by the merge_groups logic, i am just inserting the initial in there whilst tracking if its been sent across the alert_merger and alert_processor.
I want to put tests in place for this but feel it more of an integration test rather than a unit test since i need to setup the alert_table mock and put an alert in there, merge it and then send it and then run merge again to verify it won't get sent again

I think this is on the right track.
What about when only 1 alert is received? Does it sent 1 (original) alert + 1 (merged with only 1 alert) alert, 30 minutes later?
I'd also like to see how publishers would look like. I'm still really iffy on the fact that 2 different alerts are dispatched, one merged and one unmerged. A possible alternative is to have the original alert be merged (with only 1 entry), so the format of the two are consistent. That way both of the alerts adopt the same format, and there becomes less confusion around what the publishers should do.

@Ryxias yes I agree on the format, it should merge the single alert into a merged alert, so that the format is consistent between the first alert and the merged one later on.
Additionally, I think that in the case of a single alert, the merged alert that would be sent at the end of the merge_window should be dropped. Since this alert states initial this should be fairly easy to implement

I've updated the issue this would have closed. Due to issues with alerts which the merger pulls not always being the same, it's not easy to track the first alert within a merge_group. Without changing how dispatching and merging works I don't see how else to do this feature.


Duplicated rule for building extra/grpc/vall-e-x in Dockerfile.

LocalAI version:
quay.io/go-skynet/local-ai:latest
Environment, CPU architecture, OS, and Version:

Describe the bug

To Reproduce
docker-compose up -d --build
Expected behavior
Builds successfully
Logs
 => ERROR [stage-3 13/15] RUN if [ "extras" = "extras" ]; then  PATH=/root/.cargo/bin:/usr/local/cuda/bin:/go/bin:/usr/  2.5s
------
 > [stage-3 13/15] RUN if [ "extras" = "extras" ]; then         PATH=/root/.cargo/bin:/usr/local/cuda/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/bin make -C extra/grpc/vall-e-x     ; fi:
0.695 make: Entering directory '/build/extra/grpc/vall-e-x'
0.696 Creating virtual environment...
1.856
1.856 CondaValueError: prefix already exists: /opt/conda/envs/ttsvalle
1.856
1.887 make: *** [Makefile:4: ttsvalle] Error 1
1.887 make: Leaving directory '/build/extra/grpc/vall-e-x'
------
Dockerfile:200
--------------------
 199 |         ; fi
 200 | >>> RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
 201 | >>>      PATH=$PATH:/opt/conda/bin make -C extra/grpc/vall-e-x \
 202 | >>>     ; fi
 203 |
--------------------
ERROR: failed to solve: process "/bin/sh -c if [ \"${IMAGE_TYPE}\" = \"extras\" ]; then \tPATH=$PATH:/opt/conda/bin make -C extra/grpc/vall-e-x     ; fi" did not complete successfully: exit code: 2
ERROR: Service 'api' failed to build : Build failed

This should be fixed by https://github.com/mudler/LocalAI/commit/8123f009d07786c4ef7edcb6fd7a9317a3d74e33. Please clone the latest version of the source code from the master branch.


GPU accelerated javascript

Does this library use GPU with javascript too? If yes, is it restricted to a library (like CUDA) or is it flexible?

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Feat/limit text fields length

#937

I checked with production db to not set max limit lower than already filled values.


Make without use of API Key.

Hi
I generated the following code:
Error: {
    "error": {
        "message": "You exceeded your current quota, please check your plan and billing details.",
        "type": "insufficient_quota",
        "param": null,
        "code": null
    }
}

This should work without Key, You can use Javascript to do same thing in ChatGPT Website itself.
I was looking forward to it to use ChatGPT Website and not external API.

Sorry your own API key is required for accessing the OpenAI models

i have created .env file and its content as this
OPENAI_API_KEY=sk-PRIVATE
and i have filled my own apikey .  but getting error
I generated the following code:
Error: {
    "error": {
        "message": "You exceeded your current quota, please check your plan and billing details.",
        "type": "insufficient_quota",
        "param": null,
        "code": null
    }
}

Sorry but check the Chathub they have an option to use ChatGpt and Bard,bing AI with web interface you just need to login into websites thats it, No API key required


--profile plus two bug fixes

Implemented support for --profile
Fixed call to logger: variable undefined
Fixed support for log_path_prefix: this feature wasn't working for me

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

Closing this in favor of #4 which has pulled in your commits so you'll get credit once that is merged.


CircleCI and standardizing style

This adds CircleCI support along with updating everything to pass linting (Except thirdparty)

My one objection would be the getting rid of trailing commas, but I guess I can make a PR for that after this.

This Pull Request has been merged by GitConsensus.
Vote Totals

Yes
No
Abstain
Voters

7
0
0
7

Vote Breakdown

User
Yes
No
Abstain

ags131
✔

nolanfu
✔

TheRealMaxion
✔

tedivm
✔

lurr
✔

Esryok
✔

daboross
✔

Vote Results

Criteria
Result

Has Quorum
True

Has Votes
True


HTML tags are showing

<properties title: "ExtendedDataType Property | Dynamics NAV" description="Partial migration of topic for the ExtendedDataType property." services="" documentationCenter="" authors="edupont04"/>

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

ID: 3c477f62-7cbb-8da5-eeb4-533268c6d0f4
Version Independent ID: bb64ddee-1ac5-b599-4dc0-7679b2f375ff
Content: ExtendedDataType Property - Dynamics NAV
Content Source: dynamics-nav/property-extended-datatype.md
Service: unspecified
GitHub Login: @jswymer

Thanks for finding this. Fixed with the next refresh of the docs.


Make this repository private?

I'm a Professor at Stanford, and I'm teaching an Operating Systems course that uses Pintos for its class projects. I'm writing because an automated search of GitHub identified this repository as possibly containing solutions for the Pintos programming projects. This is a problem for us, because it makes it very easy for students to cheat. Even if they just look at your solution, and don't copy it, that will still reduce the educational experience for them. If this repo does indeed contain Pintos solutions, would you be willing to take it down or at least make it private? If so, that would be a great help to us.

I can't make it private since github doesn't support private repos (for free).
I'll take it down later today.
btw, thank you for such project. It was by far the best project I've done in my programming career.

Thanks.
On Tue, Jan 12, 2016 at 10:53 AM, amine hajyoussef<EMAIL_ADDRESS>
wrote:

I can't make it private since github doesn't support private repos (for
free).
I'll take it down later today.
btw, thank you for such project. It was by far the best project I've done
in my programming career.
—
Reply to this email directly or view it on GitHub
https://github.com/pindexis/pintos-tn/issues/2#issuecomment-171012632.


WebView has been removed from ReactNative #174

WebView has been removed from ReactNative error in my simulator but i dont use webview at all

I have the same error, if i find some thing i help you

I am getting same error in<EMAIL_ADDRESS>If you find something related for solving this error, Kindly help.

I am getting same error in<EMAIL_ADDRESS>too. Using my phone xiaomi 9.

I am getting same error in<EMAIL_ADDRESS>too. Using my phone xiaomi 9.

I solved this problem by upgrade react-native-gesture-handler from v1.0.15 to v1.3.0 which is latest version.

[Solved] While am getting the same issue I have found the Library for WebView - here
resolved the issue.

Dear all, The my problem was solved. My case:  I search in my project keyword: "WebView" in react-native-qrcode module has a deprecated declare WebView  like:
 var {     View,     WebView,     Platform } = require('react-native');
and i replace by newest code: https://github.com/datht-gh/react-native-qrcode.
Hope resolve this issue.

I am getting same error in<EMAIL_ADDRESS>too. Using my phone xiaomi 9.

I solved this problem by upgrade react-native-gesture-handler from v1.0.15 to v1.3.0 which is latest version.

you saved my life!

issue closed by accepted answer .

No WebView needed: https://www.npmjs.com/package/react-native-qrcode-image


use shield circleci badge for consistency with other badges

This PR switch the default circleci badge:

By the shield style:

Which is much more consistent with other badges.

Codecov Report

Merging #2279 into master will increase coverage by 0.66%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2279      +/-   ##
==========================================
+ Coverage   73.88%   74.55%   +0.66%
==========================================
  Files          51       51
  Lines        4185     4185
==========================================
+ Hits         3092     3120      +28
+ Misses       1093     1065      -28

Impacted Files
Coverage Δ

src/core.js
89.37% <0%> (+0.17%)
:arrow_up:

src/interaction.js
39.2% <0%> (+3.97%)
:arrow_up:

src/shape.line.js
70.69% <0%> (+6.04%)
:arrow_up:

src/shape.bar.js
100% <0%> (+9.72%)
:arrow_up:

Continue to review full report at Codecov.

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

I didn't know that option exists! Thanks! 👍


License

Hi Eric,
may I know which type of License is applied to this lib? MIT or something else?
thanks.

It's MIT, i'll update the repo.


Use "deducing this" in executors.

Closing as g++ 13.1 doesn't handle deducing this yet.

Closing as g++ 13.1 doesn't handle deducing this yet.


Prefer composition over inheritance for the storage class

I've just got this issue on GitHub – https://github.com/HangfireIO/Hangfire/issues/2201 – that states that application throws an exception after upgrading to the recently released Hangfire 1.8.0 when using this extension. Hangfire now includes more virtual methods in the JobStorage, and has the HasFeature method that returns true or false values if some additional methods are implemented.
Unfortunately when the SqlServerStorage class is inherited by some other class, but doesn't implement the new members, that HasFeature mechanism doesn't work properly, because it returns true if some method is considered to be implemented, but inherited class actually doesn't contain the implementation.
So I've re-implemented the MSMQSqlServerStorage class using composition instead of inheritance. It now inherits abstract JobStorage class and creates a new instance of the SqlServerStorage one in the constructor. The new changes are compatible with old releases and don't require Hangfire.Core dependency to be bumped to the latest version. These changes make it possible to use this extension with Hangfire 1.8.0, however without the new features.

@odinserj we rely on the functionality of this package in our Production Hangfire setup. We experience issues when upgrading to Hangfire 1.8 so we rolled back to 1.7.x. .
However, I'm not sure this repo is being maintained anymore. Last updates were quite a while ago. What would be the best course of action here? Is the type of functionality this package provides something you can/want to include in Hangfire natively?

@Malgefor change merged and package 1.06 uploaded https://www.nuget.org/packages/Hangfire.MAMQSqlExtension/1.0.6


Better Readability On Code Blocks Close #31

What's the issue:

Difficulty reading deleted code with line-through style noted in issue:  https://github.com/cquanu/github-dark/issues/31
What's fixed:

Removed line-through style.  Changed background colors on code blocks for better readability.
Screenshots:

Remove line-through style  on .blob-code-deletion class.
Modify background colors on .blob-code-deletion and
.blob-code-adition classes.

@snowe2010 Can you post a screenshot to see how it will look?

@lacostenycoder

just slightly brighter.

@snowe2010  Looks good to me!  Should I fix merge conflicts and make the changes or?

Get rid of the min.css because I'll just recompile that after I merge a bunch of other prs, and fix the merge conflicts in the .css and I'll go ahead and merge!

@snowe2010 requested changes made!


Master => develop

Merge latest release back into develop

Builds ready [ec9977a]builds: chrome, firefox, opera
bundle viz: background, ui, portal-inpage, portal-contentscript, ui-libs, bg-libs, phishing-detect
dep viz: background
all artifacts


How to Refresh WebChat Token

Hi I am using Webchat in my web site application
I am generated Token using WebChat Secret, Not using DirectLine
I am not able to find API and process to Refresh token after 30 min for my Webchat
due to this chat session is expired after 30 min and stop responding
If I regenerate token with secret my conversation data will lost

Please see the Direct Line API docs.

@OmShrivastava did this answer your question?

yes your response helped me to resolved issue
I am generating token for my web-chat using below URL
https://webchat.botframework.com/api/conversations
and refreshing with direct-line it's working
https://directline.botframework.com/v3/directline/tokens/refresh


Update to .NET 7, EF Core 7

Update solution projects to .NET 7 and migrate EF Core to version 7.
Closes #94

Can you please reply to the PR? Thanks.

Sorry, I have been traveling. I will review / merge the PR in the next couple of days.
Thanks,
Tony

I wanted to keep the .NET version to 6 and only update the EF Core dependency to 7. So I created a new PR with just those changes.
Thank you for your issue and contribution!


[EV300] Unify hisi and cma allocators in single module

This will help to free around 108Kb of uncompressed space

Thank you, Sir !


Replace<EMAIL_ADDRESS>by<EMAIL_ADDRESS>(or latest)

Hello,
✗ Medium severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>Description: Uninitialized Memory Exposure
Info: https://snyk.io/vuln/npm:tunnel-agent:20170305
From<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>✗ Medium severity vuln found in<EMAIL_ADDRESS>introduced via<EMAIL_ADDRESS>Description: Insecure Randomness
Info: https://snyk.io/vuln/npm:cryptiles:20180710
From<EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>><EMAIL_ADDRESS>Regards,

so this is an exploit about using auth with unchecked user supplied credentials. The other issue is likewise around crypto that is not active or used in my application. Given that my use of request is an unauthenticated file transfer of text data, I would characterize my exposure surface to these issues as nonexistent. If this is the product of an institutional security autoscanner and we're just checking boxes in the name of security absolution, the right thing to do is submit a Pull Request with the change.

I had other changes to publish, so I made this change as well. Thanks for the report.

Thanks for update ;)


Everything is not removed wtih uninstall when "remove local database" is checked

Uninstaller should remove all files in the Toggl Desktop directory when this option is checked.
It seems that it does not succeed 100% of times

Added install directory delete.


PDF Flatten is getting an exception

What were you trying to do?
I have a filled out F1040 tax form downloaded from the web. I then load the document and try to flatten the pdf file. I'm getting an exception. I looked at other issues and the proposed work around to delete the xref and set text fields to null don't work. I'm attaching the sample file I'm using.
f1040 filled.pdf
Why were you trying to do this?
I need to flatten the pdf file in order to sign it.
How did you attempt to do it?
const pdfDoc = await PDFDocument.load(pdffile);
const form = await pdfDoc.getForm();
form.flatten();
What actually happened?
I get an exception
What did you expect to happen?
The pdf file to flatten.
How can we reproduce the issue?
Use the attached file along with the above code snippet
Version
https://cdn.jsdelivr.net/npm/pdf-lib/dist/pdf-lib.js
What environment are you running pdf-lib in?
Browser
Required Reading

[X] I have read www.sscce.org.
[X] My report includes a Short, Self Contained, Correct (Compilable) Example.
[X] I have read Smart Questions.
[X] I have read 45 GitHub Issues Dos and Don'ts.

Additional Notes
No response

@Hopding , can you share the code snippet that you used to flatten the attached pdf file? I'm continue to get an exception : "Error: Failed to extract appearance ref for: topmostSubform[0].Page1[0].FilingStatus[0].c1_01[0]"
Thanks in advance


Fix GeoGig with Unified Search

What does this PR do?
Fixes two bugs:

Geogig was not showing up in the Unified Layer search because there was no hooks in the Layer's API in GeoNode.  This now supports a "geogig_link" attribute when returned from that API.
Fixes bugs when the author and/or author's name is undefined.

Screenshot
Related Issue
NODE-562, NODE-628

@theduckylittle nvm I see the associated PR


FT: Pass requestUID to vaultclient

Depends on https://github.com/scality/vaultclient/pull/136.
Since vaultclient creates its own request Logger using the requestUID, we just pass the requestUID. We also allow the log and dump level to be configured based on the log field of Config.js.

e2e passed with dependent branch https://github.com/scality/vaultclient/pull/136.
http://ci.ironmann.io/gh/scality/Integration/11376


Link not bypassing

Link
https://l4s.cc/bIJi
Version
Manifest-v2
What browser(s) are you using?
Chrome browsers (includes brave, edge, opera, etc)
What platform are you using?
Computer (Windows, Linux, MacOS)
(Optional) Anything else?
Was trying to download assassins creed 3 on ovagames and this is what happened

So, had a problem with the l4s.cc domain and I've figured out it's using https:// instead of extension:// once I correct it (manually) it operates as I'd expect it to.


C2 CompileTask PhaseAggressiveCoalesce::coalesce SIGSEGV

Summary
C2 CompileTask PhaseAggressiveCoalesce::coalesce is crashing with a SIGSEGV.
The issue is exhibited from multiple methods, potentially involving array / vectorization optimizations. We've so far worked around it by setting up a compiler directives file with excludes, but that's rather fragile and we are finding more places that eventually hit this error.
Steps to reproduce
Currently, we are only able to reproduce using our junit test suite. We've also seen it in our running application, but we don't currently have a framework to easily reproduce that setup. I'm working on creating a more minimal reproduction. Some of our developers are able to reproduce the issue frequently, some are able to reproduce it infrequently, and others appear to not be able to reproduce it. I'm guessing there may be hardware or environmental issues at play. The issue is reproducible within the standard Github Actions runner environment.
Here's the branch that is meant to reproduce the issue - https://github.com/deephaven/deephaven-core/tree/nightly/phase-aggressive-sigsegv.
./gradlew -PtestRuntimeVersion=17 -PtestRuntimeVendor=adoptopenjdk -PforceTest=true engine-table:testOutOfBand --tests io.deephaven.engine.table.impl.QueryTableAggregationTest.testMedianByIncremental

The above command may need to be run multiple times (10+) to get the SIGSEGV. By default, it's set to run against a Java 11 (specific version depends on OS and gradle) by default. On my local machine, I can reproduce much more consistently w/ java 17 by setting -PtestRuntimeVersion=17. The nightly/phase-aggressive-sigsegv branch is also setup to run a GH workflow to run these specific tests.
Triaging info
The issue is reproducible on the latest versions of OpenJDK 11 and 17 (and have also been reproduced on earlier versions of 11 and 17).

Cross-posting our issue: https://github.com/deephaven/deephaven-core/issues/2038
Edits:
Updated reproducer against 17 by default.

@devinrsmith Is this reproducible without the jacoco agent? I see -javaagent:build/tmp/expandedArchives/org.jacoco.agent-0.8.7.jar_3a83c50b4a016f281c4e9f3500d16b55/jacocoagent.jar=destfile=build/jacoco/test.exec,append=true,inclnolocationclasses=false,dumponexit=true,output=file,jmx=false on the command line.

Yep, that was my first thought too. It also reproduces without jacoco, some of the other error files show that.

Please let me know if there is anything I can do wrt the jbs:needs-report label. It looks like only OpenJDK members are able to open bugs here https://bugs.openjdk.java.net/projects/JDK/?
Note: I have contributed to OpenJDK (signed OCA), https://github.com/openjdk/jdk/pull/7120, but it looks like that isn't the same level of access.

Correct, you need to be of author status.  I'll try to submit tomorrow.

https://bugs.openjdk.java.net/browse/JDK-8287432

This has been fixed upstream. Hopefully we'll get a backport to 11 and 17. Thanks again for kicking off the process!


PXP-423: [CLI] Display the build artifact name when listing deployments

Summary

Ticket: PXP-423
What's Changed

Added

[x] display Build Artifact on wukong deployment list command

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: jk-gan
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: jk-gan, onimsha
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


how can I deploy this for my siteground hosting

use docker :)

Actually, I am new. Can you give me any tutorial or something?

Updated the readme. Use the deploy buttons to netlify and vercel


Fix: #468

Hi, I sent a performance improvement and a bit of tidying up. Please take a look and share your feedback.


Pre sale contract

How can we create a pre sale contract using openZeppelin and it will be very helpful if any example is available on github ?

I agree with @frangio on this one. Setting up as multi-round crowdsale is probably the best option. The only downside is that you will need to now the allocation percentages for the presale round and the general round at time of deployment

@frangio any progress on this issue?

No one has been developing this yet AFAIK.

Naive version of the CrowdsaleWithPresale contract: https://gist.github.com/troggy/8287b1c714f951e0da7fd27ebf842e5b

There was some discussion about a Crowdsale that had multiple stages with different rates in https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1072, but it ended up abandoned due to a lack of interest. Closing this for similar reasons.


[Bug]: ShareFileProvider ... defineEntityReplacementText() not supported

Platform
Android 12
Plugin
share_plus
Version

7.0.0

Flutter SDK
3.13.9
Steps to reproduce
As soon as I add share_plus > 7.0.0 as a dependency my app crashes on the start in release mode and I get the error message below in logcat.
I checked the install instructions for tags or content to add to AndroidManifest.xml, but could not find anything.
As soon as I remove the share_plus dependency again, everything works fine.
Code Sample
**No code needed**
Adding the dependency without any additional code is enough to crash it

I have the following proguard rules. Is it maybe somehow related to that?
(I did not change anything apart from upgrading share_plus and adding this proguard file)

# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.
-dontwarn com.huawei.android.os.BuildEx$VERSION
-dontwarn com.huawei.android.telephony.ServiceStateEx
-dontwarn com.huawei.hianalytics.process.HiAnalyticsConfig$Builder
-dontwarn com.huawei.hianalytics.process.HiAnalyticsConfig
-dontwarn com.huawei.hianalytics.process.HiAnalyticsInstance$Builder
-dontwarn com.huawei.hianalytics.process.HiAnalyticsInstance
-dontwarn com.huawei.hianalytics.process.HiAnalyticsManager
-dontwarn com.huawei.hianalytics.util.HiAnalyticTools
-dontwarn com.huawei.libcore.io.ExternalStorageFile
-dontwarn com.huawei.libcore.io.ExternalStorageFileInputStream
-dontwarn com.huawei.libcore.io.ExternalStorageFileOutputStream
-dontwarn com.huawei.libcore.io.ExternalStorageRandomAccessFile
-dontwarn org.bouncycastle.crypto.BlockCipher
-dontwarn org.bouncycastle.crypto.engines.AESEngine
-dontwarn org.bouncycastle.crypto.prng.SP800SecureRandom
-dontwarn org.bouncycastle.crypto.prng.SP800SecureRandomBuilder
-dontwarn com.huawei.hms.ads.identifier.AdvertisingIdClient$Info
-dontwarn com.huawei.hms.ads.identifier.AdvertisingIdClient

### Logs

```shell
FATAL EXCEPTION: main
                                                                                Process: com.myapp.app, PID: 4824
                                                                                java.lang.RuntimeException: Unable to get provider dev.fluttercommunity.plus.share.ShareFileProvider: org.xmlpull.v1.XmlPullParserException: defineEntityReplacementText() not supported
                                                                                at android.app.ActivityThread.installProvider(ActivityThread.java:7464)
                                                                                at android.app.ActivityThread.installContentProviders(ActivityThread.java:6976)
                                                                                at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6747)
                                                                                at android.app.ActivityThread.access$1500(ActivityThread.java:256)
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                at android.os.Looper.loopOnce(Looper.java:201)
                                                                                at android.os.Looper.loop(Looper.java:288)
                                                                                at android.app.ActivityThread.main(ActivityThread.java:7870)
                                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                                at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
                                                                                Caused by: org.xmlpull.v1.XmlPullParserException: defineEntityReplacementText() not supported
                                                                                at android.content.res.XmlBlock$Parser.defineEntityReplacementText(XmlBlock.java:139)
                                                                                at androidx.core.content.b.h(Unknown Source:19)
                                                                                at androidx.core.content.b.e(Unknown Source:11)
                                                                                at androidx.core.content.b.attachInfo(Unknown Source:31)
                                                                                at android.app.ActivityThread.installProvider(ActivityThread.java:7459)
                                                                                at android.app.ActivityThread.installContentProviders(ActivityThread.java:6976)
                                                                                at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6747)
                                                                                at android.app.ActivityThread.access$1500(ActivityThread.java:256)
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                at android.os.Looper.loopOnce(Looper.java:201)
                                                                                at android.os.Looper.loop(Looper.java:288)
                                                                                at android.app.ActivityThread.main(ActivityThread.java:7870)
                                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                                at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Flutter Doctor
➜  ~ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.9, on Pop!_OS 22.04 LTS 6.5.6-76060506-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.85.0)
[✓] Connected device (3 available)
[✓] Network resources

Checklist before submitting a bug

[X] I searched issues in this repository and couldn't find such bug/problem
[X] I Google'd a solution and I couldn't find it
[X] I searched on StackOverflow for a solution and I couldn't find it
[X] I read the README.md file of the plugin
[X] I'm using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[X] I tried running the example project

Hey @SimonErich , do you have minification turned on? Also, did you migrate your Android gradle config to 8.x?

Hello @AngeloAvv ,
yes, we had to upgrade to gradle 8.x because of an SDK needed in our app.
minifyEnabled is not set anywhere in my project, so I guess it is disabled by default.

@SimonErich I believe there's a combination of libraries that make the app crash during the startup. I have the very same gradle and share_plus configuration on multiple projects, but one of them is crashing with the error message you reported.
I was able to solve the crash by adding the following row into gradle.properties, looks like the behavior of R8 changed since gradle 8.x:
android.enableR8.fullMode=false

I got a similar error using share_plus 7.2.2 :
java.lang.RuntimeException: Unable to get provider dev.fluttercommunity.plus.share.ShareFileProvider: org.xmlpull.v1.XmlPullParserException: Binary XML file line #-1: expected start or end tag (position:Binary XML file line #-1)
	at android.app.ActivityThread.installProvider(ActivityThread.java:7841)
	at android.app.ActivityThread.installContentProviders(ActivityThread.java:7347)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7042)
	at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2261)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8248)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #-1: expected start or end tag (position:Binary XML file line #-1)
	at android.content.res.XmlBlock$Parser.nextTag(XmlBlock.java:378)
	at f0.b.h(Unknown Source:19)
	at f0.b.e(Unknown Source:11)
	at f0.b.attachInfo(Unknown Source:31)
	at android.app.ActivityThread.installProvider(ActivityThread.java:7836)
	at android.app.ActivityThread.installContentProviders(ActivityThread.java:7347)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7042)
	at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2261)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8248)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

I tried to add a res/raw/keep.xml file without success:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
    tools:keep="@xml/flutter_share_file_paths*" />

only android.enableR8.fullMode=false in gradle.properties fixes this crash.

Android Gradle Plugin 8.3 fixes this problem but leads to new one:
java.lang.IncompatibleClassChangeError: Class 'android.content.res.XmlBlock$Parser' does not implement interface 'i7.a' in call to 'int i7.a.next()'

Any update?

java.lang.IncompatibleClassChangeError: Class 'android.content.res.XmlBlock$Parser' does not implement interface 'i7.a' in call to 'int i7.a.next()'

This an issue with R8 configuration. By default since Gradle version 8 the R8 works in full mode which is a bit too aggressive and leads to such issues. To resolve it you need to either modify your proguard-rules.pro file or try to turn off the full mode of R8.


[question] how to change icon theme

hello
there is default icon theme on wayblue:
cat /usr/share/icons/default/index.theme
[Icon Theme]
Inherits=ePapirus

how i can change it to adwaita? i tried to install gnonme-twaks and choose adwaita, but after relogin it was replaced by ePapirus

It should be possible via gsettings set org.gnome.desktop.interface icon-theme, does this not work?

It should be possible via gsettings set org.gnome.desktop.interface icon-theme, does this not work?

works until relogin
after relogin sets to ePapirus

@gmankab Go to /etc/profile.d/settheming.sh and replace 'ePapirus'

@gmankab Go to /etc/profile.d/settheming.sh and replace 'ePapirus'

thank you, it helped


allow switch of camunda version just by changing the version property

So far, when you want to use a different version than the version the starter is compiled against, you have to provide a custom dependencyManagement-entry for the camunda-bom in the required version.
Other spring starters allow just to overwrite the used version by setting a new property.
We should evaluate how and if this is possible and provide a change.
Related to #254

#254:

Also: With Spring Boot starters it is always possible to override the versions of required dependencies, such as Hibernate or Tomcat via Maven Properties "hibernate.version" or "tomcat.version", respectively.

Isn't it only for dependency properties defined in spring-boot-dependencies?

Isn't it only for dependency properties defined in spring-boot-dependencies?

I guess so ... eperimented a lot when trying to use assert-j in latest version instead of 2.x ... and failed. But still I like the idea of having it that way, that's why I kept the issue open.


Feat: phpcs

Q
A

Bug fix?
N

New feature?
Y

BC breaks?
N

Deprecations?
N

Fixed tickets
N

Install phps in src

It seems that you did not run the config correclty? Travis is giving some errors from phpcs.


🐛 [BUG] - Change the github links in the navbar and footer

Describe the Bug
The Github link in navbar is of previous repo and in the footer also all the links are of previous repo.
Expected Behavior
The link should be replaced from this repo link.
Actual Behavior
A clear and concise description of what actually happened.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
Possible Solution
(Optional) If you have a possible solution or workaround for the bug, please describe it.
Your Environment

Browser/OS: [e.g., Chrome/Windows]
Version: [e.g., 22]

Labels
Please add appropriate labels to this issue: bug, needs-triage, etc.

@Sh4dab assigned to you, you can start working on this issue.


Union from exact types of an Objects values.

So I have been looking for awhile now to figure out how I may do this.  I thought I had it figured it out but unfortunately in the end it didn't work.
The goal: Say I have an object of options (in this case classes).  I then have a function which may take an instance of any of the values found in the object.
I found that $Values has been silently added but unfortunately it does not work in this way as it requires I add [typeof] which loses the classes properties and only allows for static properties.
class One {
  connect = () => {};
}

class Two {
  connect = () => {};
}

const opts = { one: One, two: Two };

function callConnect(on: $Values<typeof opts>) {
  on.connect();
}

https://flow.org/try/#0MYGwhgzhAEDyB2BTaBvAUNawD28nABdoBeaACgEoSA+VAXwG40601RIYAVAd21Qyy58RUpRr0mLNrghFsABwIxSKaLkQAuOEgA00Ary08+jVgDMArvEIBLXFjAgQAYSGJCZXFoAkANUcWiBAAPAQAnvKI2GZqihDUVOiYuAB0OHjuBJSSQA
The goal is essentially to convert opts to:
type OptsValues = One | Two

Am I missing something?   This does seem like it would be a very powerful option.
I do know I could use an interface in this case as both One and Two have the same methods - but I would like to only accept instances that are within that object.
It's a pretty in-depth ask so I get it may not be possible - just wondering if I may be missing something.
Seems like it would work if $Values were just able to take the types of values rather than requiring a typeof request.
I have seen a ton of others asking for that type of thing where
const vals = {
    one: 'ONE',
    two: 'TWO'
}

In the above case, we essentially want to create type Values = 'ONE' | 'TWO' rather than the only provided way of type Values = string | string via $Values<typeof vals>
It would seem we want something ilke
type Values = $ExactValues<vals> -- I can't imagine this is even difficult to implement considering it definitely is aware in this case of the class instance on the object - we just have no way of extracting those into a union.

$ObjMap has sufficient destructuring magic to manage this. Try
class One {
  connect = () => {};
}

class Two {
  connect = () => {};
}

const opts = { one: One, two: Two };

/* The `One` and `Two` values become Class<One> and Class<Two> types under
 * `typeof opts`. We need to remove the `Class<.>` wrappers.
 */
type ExtractInstanceType = <V>(Class<V>) => V

function callConnect(on: $Values<$ObjMap<typeof opts, ExtractInstanceType>>) {
  on.connect();
}

Thank you @popham - I hadn't spent much time on that since it is marked as buggy but will do so since that appears to be an extremely powerful option.


Changes in Angular Application Source files(HTML) are not reflecting

Node.js - 6.10.2
npm - 3.10.10
.NET Core Runtime 2.0.0
.NET Core SDK 2.0.0
Above are my local versions of set of requirements.
I tried to run the solution in VS Code with below commands
1. npm install && npm run build:dev && dotnet restore
2. dotnet run

Then application is running fine.
But If I made any changes in HTML files , changes are not reflecting even after page reload.  I am getting console error as "08c7562b228467efa302.hot-update.json" Not Found.  Please anybody suggest.
Also I have another question - Can we use Angular Material and Kendo UI Components with this solution . If possible, please attach any useful links.

There's some info here in the docs, you need to make sure you're setting the ASPNETCORE_ENVIRONMENT=Development
https://github.com/MarkPieszak/aspnetcore-angular2-universal#visual-studio-code
# on Windows:
set ASPNETCORE_ENVIRONMENT=Development
# on Mac/Linux
export ASPNETCORE_ENVIRONMENT=Development

Also as a sidenote, make sure you update your Node, 6.10 has long been deprecated. You want to use the latest 8.x or 9.x versions, otherwise you might run into other funky issues!
Good luck!

FYI, I had an issue with azure websites and Node 9x. As far as I understand as of today (22nd May 2018) the latest version node supported in azure websites is 8.9.4


Please consider fixing issues detected by repository checker

Notification from ioBroker Check and Service Bot
Dear adapter developer,
I'm the ioBroker Check and Service Bot. I'm an automated tool processing routine tasks for the ioBroker infrastructure. I have recently checked the repository for your adapter sainlogic for common errors and appropiate suggestions to keep this adapter up to date.
Please see the result of the check below.
ioBroker.sainlogic
   -

:thumbsup: No errors found
WARNINGS:

[ ] :eyes: [W105] Missing suggested translation into ru,pt,nl,fr,it,es,pl,uk,zh-cn of "common.titleLang" in io-package.json.
[ ] :eyes: [W109] Missing suggested translation into ru,pt,nl,fr,it,es,pl,uk,zh-cn of "common.desc" in io-package.json.
[ ] :eyes: [W145] Missing suggested translation into ru,pt,nl,fr,it,es,pl,uk,zh-cn of some "common.news" in io-package.json.
[ ] :eyes: [W513] "gulpfile.js" found in repo! Think about migrating to @iobroker/adapter-dev package
[ ] :eyes: [W522] Please consider migrating to admin 5 UI (jsonConfig).
[ ] :eyes: [W853] .npmignore found - consider using package.json object "files" instead.

Please review issues reported and consider fixing them as soon as appropiate.
Warnings reported by repository checker should be reviewed. While some warnings can be considered as a suggestion and be ignored due to good reasons or a dedicated decision of the developer, most warnings should be fixed as soon as appropiate.
Feel free to contact me (@iobroker-bot) if you have any questions or feel that an issue is incorrectly flagged.
And THANKS A LOT for maintaining this adapter from me and all users.
Let's work together for the best user experience.
your
ioBroker Check and Service Bot
@mcm1957 for evidence

This issue has been replaced by new isse #211
This issue can be closed.
your
ioBroker Check and Service Bot


Fix for issue with Remote Process Picker and Spaces

@WilliamABradley what OSs have you tested this on?

@gregg-miskelly This was on Windows, with the powershell host. (Which makes sense since it is for WSL)

Closing as this change has already exists in master.


[master] fix ignored interface name matches method

What is the purpose of the change
fix #8581

Codecov Report

Merging #8629 (7fad985) into master (fd80172) will decrease coverage by 0.75%.
The diff coverage is 46.66%.

@@             Coverage Diff              @@
##             master    #8629      +/-   ##
============================================
- Coverage     61.04%   60.29%   -0.76%
+ Complexity      448      447       -1
============================================
  Files          1097     1097
  Lines         44407    44361      -46
  Branches       6470     6439      -31
============================================
- Hits          27109    26748     -361
- Misses        14313    14632     +319
+ Partials       2985     2981       -4

Impacted Files
Coverage Δ

.../dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java
50.00% <0.00%> (-0.67%)
:arrow_down:

...he/dubbo/rpc/protocol/dubbo/DubboCodecSupport.java
64.28% <77.77%> (ø)

...gcenter/wrapper/CompositeDynamicConfiguration.java
0.00% <0.00%> (-73.34%)
:arrow_down:

...ookeeper/ZookeeperDynamicConfigurationFactory.java
0.00% <0.00%> (-66.67%)
:arrow_down:

...pport/zookeeper/ZookeeperDynamicConfiguration.java
0.00% <0.00%> (-62.86%)
:arrow_down:

...fig/configcenter/TreePathDynamicConfiguration.java
31.42% <0.00%> (-54.29%)
:arrow_down:

.../dubbo/metadata/report/MetadataReportInstance.java
12.50% <0.00%> (-40.63%)
:arrow_down:

.../configcenter/support/zookeeper/CacheListener.java
0.00% <0.00%> (-34.29%)
:arrow_down:

...gistry/client/migration/MigrationRuleListener.java
55.88% <0.00%> (-23.53%)
:arrow_down:

...ng/transport/dispatcher/all/AllChannelHandler.java
62.06% <0.00%> (-20.69%)
:arrow_down:

... and 63 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 4c8a54e...7fad985. Read the comment docs.

LGTM.

@wangchengming666  pls review again

Please check if it is necessary to patch to 3.0 branch.

#8723


Used settings instead of edition in resolver.

Stack:

#6406
#6405
#6404
#6403 ⬅
#6402
#6401

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

Closing pull request: commit has gone away

This change is


Ethan: Watch datapearls.org

Ethan requests the watch of the watch_keyword datapearls\.org. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

datapearls\.org has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Spevacus in Charcoal HQ


Nexx360 bid Adapter added

@gchicoye - where's the code PR? Don't see one open.

Hello @bretg,
Please see below.
https://github.com/prebid/Prebid.js/pull/8026
We've got a circle CI issue linked to CriteoId, not to nexx360.
Thanks!


BADGERS-350: revert to using language matrix in codeql

📺 What
Reverts to using a matrix to define which languages to run CodeQL analysis on.
🛠 How
Reintroduce the languages strategy matrix, and reference it when defining languages of the CodeQL init action.

Had to manually delete (via. GH API) the previous codeql analysis run on master with no environment (from #348's merge commit) and codeql is now happy again after reverting to using the matrix, as it isn't trying to compare runs with references that don't match up on master & the PRs (see https://github.com/github/codeql-action/issues/1179)


Post Scheduling: Cron Adapter

For a full overview of the spec, please see Post Scheduling 101 and the epic (parent) issue: https://github.com/TryGhost/Ghost/issues/6399.

The role of The Cron is to be responsible for keeping time in a reliable way. This should be implemented as a pluggable/replaceable adapter so that different environments can drop in their own implementations based on their requirements.
Adapter Layer
Messages from the Scheduler
The adapter layer needs to define the set of methods that a cron adapter must implement. These should provide a simple API for scheduling, rescheduling and unscheduling 'jobs'. The Cron can expect to be passed the following information:

the time the job is scheduled for (datetime, or cron time)
the API URI to call at the given time

The URI to call passed from the scheduler will be unique to a job, such that it's possible to determine which item is being [re|un]scheduled. The adapter will need to receive the details of the client id and secret it should use to authenticate its calls to the API URI.
Retrieving info from The Scheduler
The Scheduler also provides a way for The Cron to retrieve information about scheduled jobs in the form of an API endpoint see here. This is so that it can do some initial processing when it is first started, or recover from failure.
It may make sense for this endpoint + the client id and secret to be provided to The Cron when it is constructed. Note that Ghost API endpoints can be used via method call or HTTP.
Defining the active adapter
In a very similar way to the storage adapter, we need a way to determine which adapter is in use and to pass any configuration that the adapter needs. Configuration should follow the same pattern as storage.
Ideally, we'd also have a way to check that a provided adapter implements all of the required methods, or otherwise falls back to the default.
We're looking at moving towards having adapters be true npm modules. There was also a plan to refactor the storage adapter so that the base file was an npm module that would be required by any implementation of it see example implementation. I think it's worthwhile considering this approach for the cron adapter, even though it's not as complex as the storage adapter.
Default Cron Implementation
The intention for the default cron is to make use of the node-cron module to handle scheduling jobs using the hybrid strategy.
E.g. run a job at a regular interval, which asks the scheduler for items which were missed (Scheduled in the past) or are due before the job runs again. The items returned will then be scheduled to happen at the right time. The interval should be 5minutes by default, but this should ideally be configurable in config.js.
As part of an initial implementation, it would be useful to test out how node-cron works when used with 100s/1000s of jobs and if it can handle that sort of scale.
The default cron should send requests to the scheduler URIs at the correct time, and listen for the response. If it gets a 200 or a 404, we can consider the job 'done'. If the response is an error, it would be preferable to retry 3 times, at a sensible interval, before giving up.

@ErisDS Are you ok with me starting a new repo in Ghost organization for this?

My proposed Post Scheduling change
Why the change? To help out with the Heroku's and systems that are not always running. With little extra work we can get a system that covers 99% of all use cases. With the current proposal the Heroku's will have to setup a scheduler that calls the API to get all the events and do their own work to making the calls. I think if we move a few things around like my proposal below the same code can be called for both a default local always running blog and the Heroku’s not always running blogs.
So with that said here is my proposed change.
We would have 2 adapters built into Ghost, default and self calling below. If those two ways don’t work for you you can npm install your own adapter and reference it in the config.js, see custom npm module below.
Default:
Adapter
Runs a simple setInterval and every 5 minutes (configurable) that calls the service (really just a function with a callback) below to run. This adapter would not implement add, update, remove and sets notify = false as the service will handle it by getting all the events each time. Will only work if you are Ghost blog is self hosted and you know it will always be running.
Service
Will get all the events in the system and run any missed events and schedule any new events that are about to happen out till the next run time. This is Strategy e and what you called the Default cron.
Self Call:
Adapter
Does nothing on init. Doesn’t implement add, update, remove and sets notify = false.
Service
Same service as Default above but will be called through an API endpoint. You could setup a Heroku service to call the API or an aws lambda or even run your own cron job.   This is Strategy a.
Custom NPM Module
Adapter
You will probably want to turn notify on and you will be calling your own service or services for add, update remove but this is totally up to you. You could use this to add events to some other service to track or post social media about the new blog post as well. The sky's the limit.
Service
Your own.
Adapter API
The adapters API will be a single function that returns an object with the proper values and functions.
function(config) - This is the function that is called when ghost starts. It will take a config object from the config.js and should return an object with the following properties:
name: string - Just a string value for the name.
notify: boolean - Set to true to have the system call add, update, and remove functions when event happen.
add: function(event, callback) - The event object we pass from Ghost can be different based on the type of event. For the first version we will have the following two events.
One-time Webhook Event
id: string - An unique id for this domain and type. For posts we will use Post ID as a string.
domain: string - The site domain.
type: string - ‘OneTimeWebhook’
callOn: string - Date time iso 8601 format string (As it might be used for JSON or XML API)
method: string - The http method ‘GET’, ‘POST’, ‘PUT’, ‘DELETE’, ‘HEAD’, ‘OPTIONS’.
uri: string - The url to use to make the call.
data: string - A string of data to include in the body like json or xml.
Cron Webhook Event
id: string - An unique id for this domain and type. For the queue we will use just ‘post-queue’.
domain: string - The site domain.
type: string - ‘CronWebhook’
cron: string - The cron config string to tell when this should run.
method: string - The http method ‘GET’, ‘POST’, ‘PUT’, ‘DELETE’, ‘HEAD’, ‘OPTIONS’.
uri: string - The url to use to make the call.
data: string - A string of data to include in the body like json or xml.
These two type events I think will cover almost anything, as you can put them on webhooks, but we will leave it open for possibly more.
The callback argument will be a function that you will call passing either an error or nothing if you processed successfully.
update: function(event, callback) - This is just like add you will get the same event object. It will be up to your implementation on what you do with it. The callback argument will be a function that you will call passing either an error or nothing if you processed successfully.
remove: function(event, callback) - This event object will only have the id, domain, and type as nothing else should be needed to remove. The callback argument will be a function that you will call passing either an error or nothing if you processed successfully.
Ghost API
GET /ghost/api/v0.1/schedules/run - This is the api service I talked about above for the self calling adapter. Will return 200 unless you don’t have access then it will return 401. Will only run missed events not future events.
GET /ghost/api/v0.1/schedules/post/:id - This is the endpoint to publish a single data scheduled post. Return 200 if published or already published, 401 if you don’t have access, 404 if is is not a valid post, or 500 if there was some hard error. If it is a hard error retry a few times with a backoff.
GET /ghost/api/v0.1/schedules/queue - This would be the endpoint to call to publish the next queued post. Return 200 if published, 401 if you don’t have access, 404 if there is nothing in the queue to publish, or 500 if there was some hard error. If it is a hard error retry a few times with a backoff.
GET /ghost/api/v0.1/schedules/ - This would be the endpoint to call to get all the currently scheduled events. It would return 200 with an array with all the same values that get passed on add on the adapter API above. Will return 401 if you don’t have access to call it. If there is nothing it will still return 200 with just an empty array.

Runs a simple setInterval and every 5 minutes (configurable) that calls the service (really just a function with a callback) below to run.

node-cron already does that for you and is smarter about setting the timeout (based on when it expects the next event to run).

It does have its limits though. You can't schedule any farther out then 24.3 days as setTimeout has that limit but I will stick with Hannahs original spec for now.

This issue can be picked up & worked by someone else. I know that @jtwebman worked on it for a while, but I believe he is now busy moving house.
This is the progress if someone wants to work from it: https://github.com/TryGhost/Ghost/compare/master...jtwebman:scheduling
I know that some experimentation was done with node cron and it was discovered it wasn't performant when managing lots and lots of jobs, so it probably makes sense to implement time management & perhaps split this out into our own node module if it works well.

will take care 👯

[ ] trigger scheduled, unscheduled, rescheduled events and care about all kinds of cases
[ ] create new endpoints for updating scheduled post/page
[ ] create basic post scheduling module (active adapter, base functions, consume events)
[ ] implement public ghost core adapter
[ ] implement ghost pro adapter


Remember advanced state of connection dialog

It's annoying to click Advanced every time, when you are advanced user.
This PR makes the option remembered per-project between sessions.

It seems to crash on start.

Thanks!


bin/gbuild:23:in `system!': failed to run on-target -u root apt-get update >> var/install.log 2>&1 (RuntimeError)

I followed this documentation, ran into issues as the VirtualBox instructions recommend debian 8, fixed those issues updating the VM to debian 10 and now fail building bitcoin/bitcoin.
I'm slightly confused by the whole stack with an LXC VM inside a VirtualBox VM and might be doing it wrong as I try to skip the "sign your results" part as I just try to get results for myself for now but here's the log:
$ ./gitian-build.py --detach-sign --no-commit -b satoshi 0.20.0
Cannot build for MacOS, SDK does not exist. Will build for other OSes
v0.20.0
HEAD is now at a62f0ed64 doc: Manpages update pre-final
Already up to date.

Building Dependencies

--2020-08-31 21:06:18--  https://github.com/mtrojnar/osslsigncode/archive/2.0.tar.gz
Resolving github.com (github.com)... <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/mtrojnar/osslsigncode/tar.gz/2.0 [following]
--2020-08-31 21:06:19--  https://codeload.github.com/mtrojnar/osslsigncode/tar.gz/2.0
Resolving codeload.github.com (codeload.github.com)... <IP_ADDRESS>
Connecting to codeload.github.com (codeload.github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘inputs/osslsigncode-2.0.tar.gz’

inputs/osslsigncode-2.0.tar.gz                           [  <=>                                                                                ]  56.59K   186KB/s    in 0.3s

2020-08-31 21:06:20 (186 KB/s) - ‘inputs/osslsigncode-2.0.tar.gz’ saved [57951]

inputs/osslsigncode-2.0.tar.gz: OK
make: Entering directory '/home/gitianuser/bitcoin/depends'
make[1]: Entering directory '/home/gitianuser/bitcoin/depends'
make[1]: Leaving directory '/home/gitianuser/bitcoin/depends'
make[1]: Entering directory '/home/gitianuser/bitcoin/depends'
make[1]: Leaving directory '/home/gitianuser/bitcoin/depends'
make[1]: Entering directory '/home/gitianuser/bitcoin/depends'
make[1]: Leaving directory '/home/gitianuser/bitcoin/depends'
make: Leaving directory '/home/gitianuser/bitcoin/depends'

Compiling 0.20.0 Linux
--- Building for bionic amd64 ---
Stopping target if it is up
Making a new image copy
sudo: unable to resolve host gitian: Resource temporarily unavailable
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  rsyslog*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1466 kB disk space will be freed.
(Reading database ... 18583 files and directories currently installed.)
Removing rsyslog (8.32.0-1ubuntu4) ...
invoke-rc.d: could not determine current runlevel
 * Stopping enhanced syslogd rsyslogd
   ...done.
(Reading database ... 18525 files and directories currently installed.)
Purging configuration files for rsyslog (8.32.0-1ubuntu4) ...
dpkg: warning: while removing rsyslog, directory '/etc/apparmor.d/local' not empty so not removed
Processing triggers for systemd (237-3ubuntu10) ...
Adding 'local diversion of /sbin/initctl to /sbin/initctl.distrib'
Adding 'local diversion of /usr/bin/ischroot to /usr/bin/ischroot.distrib'
Adding 'local diversion of /usr/sbin/policy-rc.d to /usr/sbin/policy-rc.d.distrib'
Starting target
Checking if target is up
Preparing build environment
Updating apt-get repository (log in var/install.log)
Traceback (most recent call last):
	6: from bin/gbuild:329:in `<main>'
	5: from bin/gbuild:329:in `each'
	4: from bin/gbuild:331:in `block in <main>'
	3: from bin/gbuild:331:in `each'
	2: from bin/gbuild:336:in `block (2 levels) in <main>'
	1: from bin/gbuild:117:in `build_one_configuration'
bin/gbuild:23:in `system!': failed to run on-target -u root apt-get update >> var/install.log 2>&1 (RuntimeError)
Traceback (most recent call last):
  File "./gitian-build.py", line 262, in <module>
    main()
  File "./gitian-build.py", line 250, in main
    build()
  File "./gitian-build.py", line 63, in build
    subprocess.check_call(['bin/gbuild', '-j', args.jobs, '-m', args.memory, '--commit', 'bitcoin='+args.commit, '--url', 'bitcoin='+args.url, '../bitcoin/contrib/gitian-descriptors/gitian-linux.yml'])
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bin/gbuild', '-j', '2', '-m', '2000', '--commit', 'bitcoin=v0.20.0', '--url', 'bitcoin=https://github.com/bitcoin/bitcoin', '../bitcoin/contrib/gitian-descriptors/gitian-linux.yml']' returned non-zero exit status 1.

Gitian has been archived and is no longer actively maintained for bitcoin-core, see #76


Html5 mp3 detection update

Looks like MP3 could have FF FX bits (https://www.garykessler.net/library/file_sigs.html),
but in my sample for mp3 22k second bit was 243 and after change normally plays in Firefox and Chrome.
Need test and maybe update algo to take into account all second bits started with F

Thanks!


Add up/down badges for Heroku to README.md

Why
Resolves #672.
Pre-Merge Checklist

[x] All new features have been described in the pull request
[x] Security & accessibility have been considered
[ ] All outstanding questions and concerns have been resolved
[ ] Any next steps that seem like good ideas have been created as issues for future discussion & implementation
[x] High quality tests have been added, or an explanation has been given why the features cannot be tested
[x] New features have been documented, and the code is understandable and well commented
[ ] Entry added to CHANGELOG.md if appropriate

What
So I basically added 2 badges for up(deployed) status of the apps.

How

I was using this repo for the badges, I was also considering this, but the first one looks better to me, as it is more recent, has more options, and doesn't show 'up' on apps that do not exist 😆.
Testing

Next Steps
Probably we need to find a solution for version deployed badge, maybe move to separate issue or close the issue if it's not possible.
Outstanding Questions, Concerns and Other Notes
I am not sure that we can show deployed version, at least I didn't find any solution for that (if we can please tell me how).
Accessibility

Security

Meta

@Shaglock , thanks for looking into this! 🙌🏾
The up/down status is nice, but TBH the deployed version is actually the more useful bit.
I wonder if it would be worth adding a simple endpoint in the app itself that could read the deployed version from package.json. This could be paired with a service like Badgen (there are others too) which will do the work of generating the badge itself. Badgen has /https endpoint support that might work?
Of course these are nice-to-haves, so only if you're curious/interested :)

Hey @exbinary! Thank you for your review. I created an endpoint as you suggested and added badges for version. But I think we need to somehow distinguish badges because at the moment they have the same text for demo and test Heroku apps, maybe we need to add some text to the badge, or different links on badges is enough?

@Shaglock , looks like https://heroku-badge.herokuapp.com/ is down and i'm not confident it'll be fixed soon or maintained going forward. I'm going to remove that link the readme until it goes back up. The version was the more important part anyway!


⚠ Secret Website 1 has degraded performance

In 4dcb02a, Secret Website 1 ($SECRET_WEBSITE_1) experienced degraded performance:

HTTP code: 200
Response time: 6800 ms

Resolved: Secret Website 1 performance has improved in b71f264.


use latest librtmp

as stated there: http://rtmpdump.mplayerhq.hu/ we should use the git repository, as the sources tar ball are very outdated

Bump also the control file :)

fixed, thanks

Hello, any news on this?

/azp run

/azp run

LGTM, thanks for the PR!


Double-clicking on ... used as argument value selects more than ...

I'm reading through the FastAPI tutorial and they allow you to pass ... to Query.default to indicate that there is no default value and the parameter is in fact required.
Code Snippet
from fastapi import Query
from pydantic import BaseModel, Field

async def read_items(q: int = Query(default=...)): # Selects everything from = to :
    pass

class Model(BaseModel):
    c: int = Field(...) # Selects everything from ( to )

Repro Steps

Double click on the ... on line 4 (default=...).

Expected behavior
Only ... is selected so that you could then replace the ... with something else.
Actual behavior
=...)): is selected.
Similarly, if you double-click on the ... on line 8 (Field(...)), (...) is selected.

Maybe the problem is that . is a word separator? https://stackoverflow.com/questions/34781471/vscode-is-there-a-way-to-customise-double-click-select-behaviour

Wouldn't this be a vscode issue? Does it ask us for the word boundary?


It seems SwinIR doesn't use patch merging.

Excellent work!
It seems that there is not patch merging.So it means different windows can't exchange information.I understand you don't want to downsample,but maybe the windows should connect with each other.

The windows can exchange information because the swin transformer blocks used are alternating between not shifted/shifted. When the shifted version is used (odd indexes) neighboring windows will be able to exchange information.

Excellent work! It seems that there is not patch merging.So it means different windows can't exchange information.I understand you don't want to downsample,but maybe the windows should connect with each other.

I have the same confusion. How do you understand this question finally .

The windows can exchange information because the swin transformer blocks used are alternating between not shifted/shifted. When the shifted version is used (odd indexes) neighboring windows will be able to exchange information.

in the figure 2 of the paper, it only shows the first layer of Swin Transformer. I did not see the 2nd layer with SW-MSA


Random Battle: Tweak Shedinja's EVs

HP EVs are completely useless on Shedinja.

So are Def and SpD. I'd divide the EVs equally between Atk, SpA and Spe.

Won't it mess up the randbat speed estimation client-side?

Then just put HP/Def/SpD in Atk. So, 252 Atk and 0 for those.

All righty.

But randbat is based on flat 85 EVs. :|
I'm okay with decreasing EVs to 0 if they're useless, but not with adding those EVs to another stat... If you want to do that, just copy over the client EV recommender.

Trick Room/Gyro Ball does the same thing and Shedinja is still weak as it is :|

Yeah it's a needed boost for Shedinja

Can't we just scale up its level if so?

And can we make TR/Gyro Ball not do that?

Uhh why would we want to revert the TR change? It was one of the better additions. Setting up TR and going 2nd was one of the dumbest things a year ago in randbats.
Gyro seems more reasonable to change because those mons do have other moves (even if they're slow/run no speed in their respective tiers).

Can't we just scale up its level if so?

No. It is at a disadvantage because 3x84 EVs are not being utilized, whereas every other Pokemon benefit from all their EVs (ignoring Atk/SpA). This makes it sort of equal to them.
Same thing for TR/Gyro. They lose out.

Uhh why would we want to revert the TR change? It was one of the better additions. Setting up TR and going 2nd was one of the dumbest things a year ago in randbats.

I said I'm okay with setting their Spe EV to 0, but not with adding more EVs to another stat.
If you're going to do that, you might as well allow competitive EV spreads.

While we're on the topic of competitive EV spreads in randbats, why does randdubs use 252 offense/252 HP or speed for its EV spreads, and should it be 85-flat

The randbat flat 85 rule was mainly to make mixed sets more viable. But honestly if we're going to give this many exceptions, we might as well use the client's EV recommender to generate EVs/Nature.

We have 3 exceptions, and at the rate this is going, the Shedinja one is on its way out.
That's not my question, though. My question is whether we should make Random Doubles use the flat 85 rule. (Pokemon get mixed sets in there all the time but not the EVs to back them up, and in fact a decent number of my rand-dubs pullreqs have been to remove mixed-ness from the Pokemon movepools)

3 exceptions is a lot, and TI doesn't want the Shedinja one out.
Randdubs doesn't use the flat 85 rule because I didn't make it. Honestly, I don't care if it's flat 85s or if it's recommender EVs/Nature, but we should probably pick one for both.

It's also worth mentioning that randdubs' EV generator is bad anyhow, so 85-flat is probably better for them anyways

The recommender is not bad idea, I'd be ok with it. And it'd probably result in improvements to the recommender because we'd fix any bad cases we'd find in Random Battle.


Gondola

Gondola!
I don't know if you'll like the style; nothing controversial tho just not sure if i styled well in comparison 😌

will look at this one day (after i sleep)