Edmond Karp's Algoirthm | C++

🚀 Feature
Implementation of Edmond Karp's Algorithm to find maximum flow in a Network Graph in C++
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
Edmond Karp's Algorithm is the extended implementation of the concept Ford-Fulkerson Algorithm and uses BFS to find an augmenting path.
Pitch
It helps us to know about the max flow in a network graph.

assigned @singhsaurav23

assigned @singhsaurav23

updates @singhsaurav23 ???

updates @singhsaurav23 ???

will send PR today

will send PR today


ExportDeclarations not scanned for ignores

/* istanbul ignore next */
export function doesntWork() {
  if (true) {
    console.log('covered');
  } else {
    console.log('not covered');
  }
}

/* istanbul ignore next */
function works() {
  if (true) {
    console.log('covered');
  } else {
    console.log('not covered');
  }
}
export { works };

After transforming it with Babel:
// ...

/* istanbul ignore next */
export function doesntWork() {
  ++cov_vic9ro8ua.f[0];
  ++cov_vic9ro8ua.s[0];

  if (true) {
    ++cov_vic9ro8ua.b[0][0];
    ++cov_vic9ro8ua.s[1];

    console.log('covered');
  } else {
    ++cov_vic9ro8ua.b[0][1];
    ++cov_vic9ro8ua.s[2];

    console.log('not covered');
  }
}

/* istanbul ignore next */
function works() {
  if (true) {
    console.log('covered');
  } else {
    console.log('not covered');
  }
}
export { works };

The ignore annotation is not respected.
It looks possible that the codeVisitor list needs to be updated.

@TimothyGu annoying! if you have a moment, would love a failing test case to work from.
thanks for reporting this issue.

@bcoe, the example I gave in the issue description can serve as a failing test case. Is there anything more than that you need?

@TimothyGu coule I bother you to reopen this issue on the istanbuljs monorepo:
https://github.com/istanbuljs/istanbuljs
Assuming that you're still bumping into it 👍


Adding minimum viable security to opsec section

@maraoz do you have time to read this one and see if it is a good fit for the section?

@masonicGIT can you add it in the "crypto" subsection please, as it's not about general OPSEC?

@masonicGIT can you add it in the "crypto" subsection please, as it's not about general OPSEC?

I'm happy to @maraoz, however, the guidance isn't specific to crypto - its to prevent against phishing, third-party database breaches (haveibeenpwned.com style) and phone porting. Concerns that are generic in nature and not dependent on the individual holding crypto.

I'm unconvinced to merge this one. Thanks for your contribution! Closing.


Electrum-XVG wallet - unable to send coins

I cannot send coins from my Electrum-XVG wallet
Context
I am connected and have >1000 coins, splitted on 2 wallet addresses. When I want to send coins to an other address, with the auto fee set, I receive a message "Invalid fee".
When setting the fee to manually, after clicking on the sent button and pressing yes (I am sure), nothing is happening. I do not get the sign screen or whatever. Tested with fees between 1 and 10. Aslo tested with sending 1090 coins till 90 in various values.
I have already tested on a seperate machine and also with the TOR wallet, but same issue.
Prerequisites

[x ] Are you running the latest version? (Electrum-XVG 2.4.1)

User Story:

"I'm submitting a ... "

[x ] bug report
[ ] feature request
[x ] support request
[ ] translation request

Hello, i have resolve this problem identical at me, i have just pass the "transaction fee per kb:" in tools > preferences on 2 and i have sweep my address bugued in Wallet > private keys > sweep you post your private key and you select below the address at send, I hope it will help you.

You're issue sound like the same one addressed in #583.

I had an issue sweeping a paper wallet.  Set fee to 0.1 and it went through.  Does not need to be higher.

any update on this one ?

We could not get it solved,even Sunerok had no idea. Finaly I exported the private key and imported into the Verge-qt wallet


Update forthcoming_features.html.erb

What problem does this pull request solve?
Some things in our roadmap have moved around, so updating this page to reflect that.
Trello card: https://trello.com/c/aX2ZLHvP/1530-update-forthcoming-features-page-to-reflect-roadmap-changes
Things to consider when reviewing

I've changed quite a bit so would be good if you can check the html is all legit
Does it work when run on your machine?
Is it clear what the code is doing?
Do the commit messages explain why the changes were made?
Are there all the unit tests needed?

Changes look good and all looks as expected when run locally 🎉


Optimize Graph.Node.removePredecessor()

TestNG Version
6.11
Actual behavior
Here's the code for Graph.Node.removePredecessor().
public boolean removePredecessor(T o) {
  boolean result = false;

  T pred = m_predecessors.get(o);
  if (null != pred) {
    result = null != m_predecessors.remove(o);
    if (result) {
      ppp("  REMOVED PRED " + o + " FROM NODE " + m_object);
    }
    else {
      ppp("  FAILED TO REMOVE PRED " + o + " FROM NODE " + m_object);
    }
  }

  return result;
}

This method calls m_predecessors.get(o).  From the profile, I can tell it returns null most or all of the time since m_predecessors.remove(o) doesn't show up in the profile.  In fact, I instrumented the code and found that m_predecessors is empty 99.99998913091772% of the time.
m_predecessors.get(o) takes up all of the time for Graph.Node.removePredecessor().  This translates to half or more of the time for TestRunner.initMethods().
m_predecessors.get(o) calls HashMap.hash(o).  HashMap.hash(o) takes all of the time.
Expected behavior
Please change the code to the following:
public boolean removePredecessor(T o) {
  boolean result = false;

  if (m_predecessors.isEmpty())
     return(false);

  T pred = m_predecessors.get(o);
  ...

This avoids calling m_predecessors.get(o) and replaces it with a cheaper call which will short-circuit the method almost for every call.
I patched this change into my copy of TestNG.  This change eliminates the entire time as described above.
Is the issue reproductible on runner?

[ ] Shell
[ ] Maven
[ ] Gradle
[ ] Ant
[X] Eclipse
[ ] IntelliJ
[ ] NetBeans

Test case sample
I'll see if I can post a picture of the profile.

Here's a screenshot of the profile before making the change.

@nathanila - Why not wrap this up with a pull request as well ? since you have taken so much time to pin-point the problem ?

The fix looks harmless enough but I'm having a hard time believing that a .get on a hash map (which is constant time) is such a big deal that skipping it saves considerable amounts of time, even on a huge test suite.
Is there any way you could create (programmatically) such a huge suite to demonstrate that and include it in a pull request?
By the way, I really appreciate you going down to this level of details, I'm just curious to get to the bottom of this...

m_predecessors.get(o) should not take times but o.hashCode() may.
And as I remember, computing hashCode on a TestMethod is taking a lot of time.

If you look at the profile HashMap.get() isn't taking the time but HashMap.hash() is.  Another proof is when I run with and without the code change, I see a noticable change in wall clock time from calling TestNG.main() to when IMethodInterceptor,intercept() is called.
I'll see if I can create a reproducing simplified test case.
As for pull requests, I don't know how yet.  If there is some documentation on how to do this in Eclipse, that would be very helpful.

I am struggling to produce a reproducing simplified test case.  I can reproduce a situation where Graph.topologicalSort() takes a long time but not because of Graph.removeFromNodes().  Instead, Graph.isIndependent() and Graph.initializeIndependentNodes() are taking the time.  Any suggestions on how to get Graph.removeFromNodes() to execute more?

Likely dupe of #1710.

We expect the issue will be resolved by #1718.


Cannot run cv2 imshow with python example

I'm running python3.6 on Pycharm along with OpenCV 3.4.0 on Ubuntu 16.04 LTS
cv2.__version__
'3.4.0'
The example I'm running on this setup is the one given on https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/opencv_viewer_example.py
The code failes on the following lines:
depth_colormap = cv2.applyColorMap(cv2.convertScaleAbs(depth_image, alpha=0.03), cv2.COLORMAP_JET)
cv2.namedWindow('RealSense', cv2.WINDOW_AUTOSIZE)
cv2.imshow('RealSense', depth_colormap)
cv2.waitKey(1)
If the last three lines are uncommented the code fails with the following error:
QObject::moveToThread: Current thread (0x190b000) is not the object's thread (0x195cd10).
Cannot move to target thread (0x190b000)
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
If the last three lines are commented it works fine (I am able to display the depth image using toimage(depth_data).show() where depth_data is a numpy array. So the pyrealsense2 is working as expected. This means the problem is with OpenCV installation not working with pyrealsense. As can be seen above, I have OpenCV 3.4 running with Python 3.6 which should work according to this post
I installed OpenCV as described here
Has anyone else faced similar issue or is aware of the solution? Any help is appreciated.
Thanks

bump

When I run the same example on the D415 depth camera, I have face the similar problem, my problem occurs on
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 360, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
Start streaming
profile = pipeline.start(config)
the error like this:
Traceback (most recent call last):
File "/home/xufeifei/workspace/realsense/librealsense/build/wrappers/python/test2.py", line 25, in
profile = pipeline.start(config)
RuntimeError: Failed to resolve request. No device found that satisfies all requirements
have you face the the problem before?

Hello @xufeifeiWHU
The requested configuration is valid with USB3, but not with USB2 mode.
Please verify that the device is enumerated as USB3+ device using RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR info attribute.
Alternatively, open and read it in realsense-viewer.
In addition, please specify the FW version of D415.

@xufeifeiWHU I had  noticed something similar but it turned out the USB cable that came with the sensor had to be pushed in all the way and the error went away.
anyone had luck with the OpenCV issue above?

[Realsense Customer Engineering Team Comment]
Hi anshulvj,
Wonder if you still have issue with opencv?
I tested python3.5  (coming with Ubuntu 16.04 off Intel NUC5) with opencv (sudo apt-get install python-opencv).
After created a RealSense SDK 2.15 build w/ python wrapper enabled. I don't have issue when running opencv_viewer_example.py
Thanks,
Richard

[Realsense Customer Engineering Team Comment]
Hi anshulvj,
Wonder if there is any update? Or do you still need help on this one?
Thanks!

This has something to do with Qt, not with OpenCV.

When I run the same example on the D415 depth camera, I have face the similar problem, my problem occurs on
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 360, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
profile = pipeline.start(config)
the error like this:
Traceback (most recent call last):
File "/home/xufeifei/workspace/realsense/librealsense/build/wrappers/python/test2.py", line 25, in
profile = pipeline.start(config)
RuntimeError: Failed to resolve request. No device found that satisfies all requirements
have you face the the problem before?

Dear Mr Xu, I have the same error . Could you please give me some information on how you solve this problem? I have tried it several times. It always returns the same error.


Add syntax for alternate "or" shortcuts to docs.

example @hotkey('mod+k|s')

Done, thank you for writing this down :)


Async migration for bittensor/extrinsic sub-package

Is your feature request related to a problem? Please describe.
As a next step after bittensor/subtensor.py migrated to async the bittensor/extrinsic sub-package have to be next one.
Describe the solution you'd like
sync -> async for bittensor/extrinsic sub-package

https://github.com/opentensor/bittensor/pull/1991

https://github.com/opentensor/bittensor/pull/1992/files

Part 2 https://github.com/opentensor/bittensor/pull/1995
Part 3 https://github.com/opentensor/bittensor/pull/1996

Part 4 https://github.com/opentensor/bittensor/pull/2000

Part 5 https://github.com/opentensor/bittensor/pull/2008

extrinsics/unstaking.py https://github.com/opentensor/bittensor/pull/2001


Can you give some byte for a try?

This is my address: QR7Y7E6UVAM7JIHVPSA7TH6T5SCTDZJJ

QR7Y7E6UVAM7JIHVPSA7TH6T5SCTDZJJ

감사합니다

For trying you can use test network, otherwise stop begging and just buy some while they are cheap. YOu can buy them here right now: https://cryptox.pl


Fix the MockListener and StreamingListener Broken Links

Description:
We need to fix the below 2 broken links:

https://ballerina.io/v1-1/learn/api-docs/ballerina/nats/listeners/StreamingListener.html
https://ballerina.io/v1-1/learn/api-docs/ballerina/http/listeners/MockListener.html

Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, Browser, other environment details and versions:
Steps to reproduce:
Related Issues:

The fix is done to jackyl files this seems to be not a problem with the Docs.

Closing as this as the links are fixed in V1-2 also.


[ISV-1504] Integration testing of the Release pipeline

Closing the Pull Request as we can't do e2e testing on a forked branch.


#1 Add UI to add tags to planned activities

Took a bit of figuring out but turned out pretty nice I think...

Good point. Will add to the second PR.


⚠ ClamAV has degraded performance

In 13ebfa5, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 107 ms

Resolved: ClamAV performance has improved in 4c67a02 after 21 minutes.


Geos657

Done.
On Mon, Feb 15, 2021 at 1:08 PM Alex-Lewandowski<EMAIL_ADDRESS>wrote:

@Alex-Lewandowski https://github.com/Alex-Lewandowski requested your
review on: #113
https://github.com/asfadmin/asf-jupyter-notebooks/pull/113 Geos657.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/asfadmin/asf-jupyter-notebooks/pull/113#event-4333567603,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACZSHDZPWJNVCSSRVYMJPW3S7GLNHANCNFSM4XVMDB3Q
.

--
Franz J Meyer
Professor, Geophysical Institute &
Chief Scientist, Alaska Satellite Facility
University of Alaska Fairbanks
2156 Koyukuk Dr., Fairbanks, Alaska, 99775
Phone: +1-907-474-7767
Cell: +1-907-687-3609
Email<EMAIL_ADDRESS><EMAIL_ADDRESS>Twitter: https://twitter.com/SARevangelist
Skype: franzjosefmeyer


Add a playback-over-LSL example script.

This moves the previous example.py to print_metadata.py in a new examples module.
Additionally, in the new module, I added playback_lsl.py which will take an arbitrary XDF file and play it back over LSL. This isn't meant to be a perfect reproduction of the original streams. e.g., the stream metadata only copies over some known keys. And I keep post-processing enabled so we eliminate some jitters. It's also inefficient to run everything in a single thread. The goal here is just to have something very convenient.

I've been using this for a while without issue.


fix: memory leak with updateViewFrameAction

Just opening the image picker for example would cause it, but pretty much anything that had YPAdjustableView and used updateViewFrameAction "the wrong way".

Just opening the image picker for example would cause it, but pretty much anything that had YPAdjustableView and used updateViewFrameAction "the wrong way". In this case YPVideoView was retained. Easy to check by going to create post opening add media and cancelling everything back to home screen and checking memory graph.

Good find 👍


OSM buildings error when switching SceneMode from 3D to 2D

Please click here to see the code and the error at SandCastle.
I followed the SandCastle example and added a line of code to change the scene from 3D to 2D mode and got this error:
An error occurred while rendering. Rendering has stopped.
TypeError: Cannot read property 'longitude' of undefined
at GeographicProjection.project https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:4137:26
at Object.Transforms.wgs84To2DModelMatrix https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:28435:40
at updateNodeHierarchyModelMatrix https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:150557:31
Below is the complete code:
var viewer = new Cesium.Viewer("cesiumContainer", {
  terrainProvider: Cesium.createWorldTerrain(),
});

viewer.scene.primitives.add(Cesium.createOsmBuildings());

viewer.scene.camera.flyTo({
  destination: Cesium.Cartesian3.fromDegrees(-74.019, 40.6912, 750),
  orientation: {
    heading: Cesium.Math.toRadians(20),
    pitch: Cesium.Math.toRadians(-20),
  },
});

function flyToArizona() {
  viewer.scene.mode = Cesium.SceneMode.SCENE2D;
  viewer.flyTo({
        destination:  Cesium.Cartesian3.fromDegrees(-114.11, 32.8, 110000)
  });
}

setTimeout(flyToArizona, 7000);

Duplicate of #8933.
Thanks for posting this issue! This appears to be a variation of the behavior caused by toggling view modes when OSM buildings are in the scene (see the above issue I linked). Please post any additional feedback about this there.


ERC20 docs.

ERC20 docs

I recently noticed that the example from https://developer.bitcoin.com/bitbox/docs/address.html#fromOutputScript is incorrect. I'm going to update that too in this PR.


"Opened Channel" vs. "Open Channel"

Super small nit.
Other copy in history uses past tense like Payment received. I think we should change Open Channel to Opened Channel for consistency.

good point.
if you want to get some iOS commits you can edit all the copy yourself.
just edit this file: https://github.com/LN-Zap/zap-iOS/blob/master/Library/en.lproj/Localizable.strings#L252


Add getset support to misk-redis

Adds support for getting the current value and setting a new value on a single key in an atomic command. Introduces the getset and getsetnx commands, which can both be used with or without an expiryDuration, with the latter only setting the new value if there is a current, non-expired value at the specified key. Behind the scenes, this uses the Redis SET command with the GET option. getsetnx (ie. the use of SET with both GET and NX options) is only supported with Redis version 7.0 and later.
This change also bumps the Docker Redis alpine image version used for testing from 6.2 to 7.0, the current stable version.

Closing for now due to not getting Redis 7 support for a while.


invalid literal for int() with base 10: 'a'

when i run the rasterize.py, error is:
invalid literal for int() with base 10: 'a'
File "/home/e2e/FF-master/emergent-occ-forecasting-main/rasterize.py", line 232, in rasterize
time_interval = int(ref_sample_token[1])
File "/home/e2e/FF-master/emergent-occ-forecasting-main/rasterize.py", line 397, in
results = list(tqdm(p.imap(rasterize, nusc.sample), total=len(nusc.sample)))
ValueError: invalid literal for int() with base 10: 'a'
i found the type of the value of the'token'  is string, {'token':'ca9a282c9e77460f8360f564131a8af5'},. moreover, the len of ref_sample_token is 1,but in the code,  ref_sample_token[1].   so i think maybe you can help me solve the problem

Hi, the total_bad_intervals piece of code should have existed only in the rasterize_once function, as the ONCE dataset has some sequences with unequal intervals between some sweeps. You can remove that from the rasterize function. I will update the repository with these fixes in a few days or I would appreciate your help in the form of a PR :)


Validations not working when using arrays in input parameters

I have a POST users endpoint which takes array of users. I have the swagger spec defined as
"post": {
  "summary": "Add Users",
  "description": "Add Users",
  "x-swagger-router-controller": "users",
  "operationId": "createUser",
  "parameters": [
    {
      "name": "users",
      "in": "body",
      "description": "Users to add",
      "required": true,
      "schema": {
        "$ref": "#/definitions/Users"
      }
    }
  ]
...

The Users definition is
"Users": {
  "description": "Collection of Users",
  "properties": {
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/User"
      }
    }
  }
}

When I send invalid JSON the swagger-tools validator does not throw any errors. Any ideas on why the z-schema validation is not working in this scenario?
Debug output -
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:metadata POST /users
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:metadata   Is a Swagger path: true
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:metadata   Is a Swagger operation: true
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:metadata   Processing Parameters
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:metadata     users
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:metadata       Type: object
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:metadata       Value provided: true
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:metadata       Value: [object Object]
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:validator POST /users
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:validator   Will process: yes
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:validator   Request validation: succeeded
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:router POST /users
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:router   Will process: yes
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:router   Route handler: users_createUser
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:router   Mock mode: false
Mon, 10 Aug 2015 22:35:44 GMT swagger-tools:middleware:router Handler threw an unexpected error: Cannot read property 'originalValue' of undefined
TypeError: Cannot read property 'originalValue' of undefined

I also created a sample project which replicates this behavior - https://github.com/firefoxNX/swagger-tools-valid

The error is because you're using req.swagger.params.user.originalValue instead of req.swagger.params.users.originalValue.  I am able to see that an invalid value passes validation so let me see what I can find.

Awesome thanks!
On Wednesday, August 12, 2015, Jeremy Whitlock<EMAIL_ADDRESS>wrote:

The error is because you're using req.swagger.params.user.originalValue
instead of req.swagger.params.users.originalValue. I am able to see that
an invalid value passes validation so let me see what I can find.
—
Reply to this email directly or view it on GitHub
https://github.com/apigee-127/swagger-tools/issues/265#issuecomment-130469942
.

Before I tell you what is up, why do you think the request is invalid?

It's invalid because the input Json should have users as a property. Unless
the swagger spec is incorrect?
On Wednesday, August 12, 2015, Jeremy Whitlock<EMAIL_ADDRESS>wrote:

Before I tell you what is up, why do you think the request is invalid?
—
Reply to this email directly or view it on GitHub
https://github.com/apigee-127/swagger-tools/issues/265#issuecomment-130471422
.

In your Users definition, there is no "required": ["users"] so it is not required.  Not only that but JSON Schema schemas have a default additionalProperties value of {} which means that you can pass in any extra parameters you want without triggering a validation error.  If I change your Users definition to look like this, it works as you'd expect:
{
  "description": "Collection of Users",
  "additionalProperties": false,
  "required": ["users"],
  "properties": {
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/User"
      }
    }
  }
}

I tested this using the online JSON Schema validator and with the sample application you gave me.

Once you make these changes, your {"invalid": []} will trigger an error.  Changing invalid to users does not trigger an error because it's an empty array.  If you want to fix that, you need to set minItems to 1 for your array.  Of course, even with that not set, if you try {"users": [{}]} the expected error is triggered as well.

If you can verify my finding, please let me know and close the issue.  Otherwise, let me know what you find and I'll take a peek.

Thank You very much Jeremy. I need a lesson in JSON schemas!

No sweat.  I've been bitten by the default lax nature of JSON Schema many times.  :)


chore(main): release 0.2.0

:robot: I have created a release beep boop
0.2.0 (2024-04-28)
Features

add support for APRS Service Registry (#57) (245b2f7)

Bug Fixes

bugfixes (d5b57eb)
cleanup some dev methods (01d3033)
make warn_admins aprs friendly (#58) (acee0b0)

Dependencies

bump coverage from 7.4.4 to 7.5.0 (6a86f64)
bump ruff from 0.3.7 to 0.4.0 (9be3d82)
bump ruff from 0.4.0 to 0.4.1 (84ec6f3)
bump ruff from 0.4.1 to 0.4.2 (781e855)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/andrewthetechie/err-aprs-backend/releases/tag/v0.2.0 :sunflower:


Improve recognition accuracy for long text lines

Text recognition preprocessing currently resizes all input lines to be 64px high, and scales the width proportionally, but constrained to a maximum of 800px. The 800px max-width was a limit used during training to limit the max memory usage of batches.
Using the new --text-line-images option to save preprocessed text line images to lines/, it becomes apparent that the max width limit can end up squashing text too much, causing some characters or spaces in long lines to be missed or for letters to be misidentified.
Although the recognition model was trained with a max input width of 800px, it generalizes to longer sequence lengths, so we can actually use wider images at inference time. From a quick test it looks like doing so fixes accuracy errors with the image below.
Input image:
This is a screenshot from a feature Wikipedia article:

Example preprocessed line:

Recognition output:
With default 800px limit:
The Benty Grange hanging bowlis a fragmentary Anglo-Saxon artitact trom the seventh century AD. Al
thaf remains are parts of twn escutcheons: bronze frames hat are usually circular and elaborately

The size of the line in the source image is ~1310px x ~30px, so this gets squashed horizontally.
With 1600px limit (set here):
The Benty Grange hanging bowl is a fragmentary Anglo-Saxon artifact from the seventh century AD, All
that remains are parts of two escutcheons: bronze frames that are usually circular and elaborately

https://github.com/robertknight/ocrs/pull/32 (mostly) solved the accuracy problem, at the cost of much longer inference times (up to ~2x) for the longest lines. It might be possible to address this in future by padding rather than scaling long lines, and applying a similar transformation at training time.


<Link> does not ignore the onClick event handler

In the current implementation, the onClick prop is discarded by the applied onClick: (e) => visit(e) handler.
This fix ensures the handler is correctly passed down and ran. It then only runs the visit() function if the event wasn't default prevented, giving the user the possibility to cancel the visit by cancelling the click.
Also added the types to match the props type.

I'm sorry, but the Link component functionality in the official Inertia libraries is not intended to work with custom click handlers, only directly with the router.

Sorry my bad, it is a correct detail that I was missing. Going to checkout the code


ES Module Support

Hi,
This tool is amazing, exactly what I was looking for.
I was plugging this package into a Typescript project of mine using the ESM import statement and was receiving an error stating that multerS3 is not a function. Upon changing the import statement to a Common JS require statement, the code then compiled and ran.
Is there a reason support for ESM was left out?
I'm happy to make a PR if not.

import * as multerS3 from 'multer-s3';


fix: #47 img src data

Codecov Report

Merging #49 (304e8da) into php (9d43708) will decrease coverage by 0.39%.
The diff coverage is 33.33%.

@@             Coverage Diff              @@
##                php      #49      +/-   ##
============================================
- Coverage     86.18%   85.78%   -0.40%
- Complexity       87       88       +1
============================================
  Files             8        8
  Lines           398      401       +3
============================================
+ Hits            343      344       +1
- Misses           55       57       +2

Impacted Files
Coverage Δ

app/Confluence.php
97.10% <ø> (ø)

app/Coding/Wiki.php
86.95% <33.33%> (-1.81%)
:arrow_down:

Continue to review full report at Codecov.

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


New Rule: number of videos validation

Rule details
checking how many videos are used in a website
Related ECMAScript feature
No response
What type of rule is this?
JavaScript/TypeScript code
Which codebase the rule should be implemented?
ec0lint
Participation

[ ] I am willing to submit a pull request to implement this rule.

Additional comments
No response

Backlog of release v3.0.0

free to take


Proposal: Use classnames?

As class name manipulation is removed from React (https://facebook.github.io/react/docs/class-name-manipulation.html)
I propose that this project uses the "official" replacement Jed Watson's "classnames": https://github.com/JedWatson/classnames as a default.
Thoughts?

Je ne parle pas anglais
Le 21 mai 2016 1:07 AM, "David Parker"<EMAIL_ADDRESS>a écrit :

As class name manipulation is removed from React (
https://facebook.github.io/react/docs/class-name-manipulation.html)
I propose that this project uses the "official" replacement Jed Watson's
"classnames": https://github.com/JedWatson/classnames as a default.
Thoughts?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/mxstbr/react-boilerplate/issues/353

@davidwparker I've tried classnames a bunch of times, but personally didn't really see the value in it. (sorry @JedWatson)
What does it give you (in combination with CSS modules) that makes your life easier? How does it help?

I like to compose className similar to how the examples show:
const menuClassName = classNames(
  styles.menu
  , 'pure-menu'
);

Etc.
I mainly just agree with how it's designed (https://github.com/JedWatson/classnames#usage-with-reactjs)... just seems super clean to me.
Does react-boilerplate have a plugin system that I could provide generators for including such a thing? Or is that overkill?
(I just added it as a dependency in my package.json and then ran npm install, so maybe it's unneeded?)

The thing with CSS modules is that it gives you the composes property:
.button {
  padding: 0.5em 1.5em;
  background-color: white;
  color: blue;
}

.buttonPrimary {
  composes: button;
  background-color: blue;
  color: white;
}

Then, when you want a primary button you only have to include the .button--primary class, which will automatically also apply the .button class and override those styles. This means there is no need for any string concatenation whatsoever, only a need to switch out classes based on a prop of the component:
render() {
  return (
    <button className={(this.props.primary) ? styles.buttonPrimary : styles.button}></button>
  );
}

Does classnames make this use case cleaner too?

classnames def adds value to your above example if you have more than one class on an element. If you had 2-3+ on an element that's when it becomes really helpful, cleaner to look at (separation of concerns because class logic is seperate from your render()), and more readable, IMO.
That said, with CSS Modules, you probably don't have that many classes on any given element ¯_(ツ)_/¯

There's been a few times when I haven't been able to separate framework components (bootstrap, purecss, etc) with my own, so I've needed to have some of their classes on an element as well as my own at the same time. This is really the only time this comes up for usage for me.
Otherwise, composition is nice when it's just my stuff.

IMO we should try to keep all non-critical dependencies to a minimum.
While I now see that there is good use cases for classnames, I don't think including it by default is necessary. It's always only one npm install classnames --save away anyway!
I'll leave this open for a few more hours, if you really think we have to include it by default then please comment, but otherwise I'll close this soon.

^ I agree with this now that I've spend like 5+ minutes with the repo. Adding classnames is so easy if you need it.

I'm good with keeping it out @mxstbr. I'm sure others may find it useful as well, but it is super easy to add it manually.

Awesome, thanks for kicking off the discussion!

Maybe you could add this in docs?

Yeah sure, I'd merge a PR adding a section about installing/using classnames!

ok ive got. it. cool as. care to let me have some fucking.would be awsome.
yeah
On 22/05/2016 2:55 am, "Julien Melissas"<EMAIL_ADDRESS>wrote:

^ I agree with this now that I've spend like 5+ minutes with the repo.
Adding classnames is so easy if you need it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/mxstbr/react-boilerplate/issues/353#issuecomment-220788528


Addition of Metronome Battles

Tracking: ✓

[x] Ban Ubers and Mega Rayquaza
[ ] Ban Healing items and abilities
[x] Remove Immunity i.e convert all immunity to not very effective
[ ] Only Allowed Move is Metronome

You don't really need to create an issue for this. Issues should be used for well issues on existing code. If your having problems with adding something the development room is there for that purpose. Just link us to your branch that has the code, and tell us about the issue.


Objects pick up velocity while being grabbed

https://user-images.githubusercontent.com/1190097/191877319-c9f2ef70-baaf-45aa-a64d-07bf7f28b9ee.mp4

Spawn a thing
Pick it up and whip your mouse behind you
Throw to yeet

a more easily reproduced method is to throw something shotput style off the map


Set up Travis for Continuous integration

It would be nice to set up Travis CI for continuous integration. The only problem with this is that an API key is required to run the tests - however, Travis has a mechanism for storing environment variables securely, so we could use that. But then the downside is that every time the test server is wiped, the API key would need to change. To resolve this, I think it would be necessary to have another test server that exists solely for the purpose of running the tests and which is never wiped?
I can provide advice on setting up Travis, if needed.

Related: #10.

But then the downside is that every time the test server is wiped, the API key would need to change.

I would suggest creating (and deleting) a user for every test run. That's what I do at https://github.com/IQSS/dataverse/blob/master/src/test/java/edu/harvard/iq/dataverse/api/SearchIT.java
See also this comment I just made: https://github.com/IQSS/dataverse-client-python/issues/10#issuecomment-99127268


zlib headers are not linked in ~/.nix-profile/include.

Issue description
I wanted to build from source digest, a Haskell package that depends on the usual zlib system library. I used cabal executable installed via nix-env (from cabal-install package). I also installed zlib in the same fashion, which made the headers and binary library objects available somewhere in /nix/store.
As advised in NixOS wiki, I set export CPATH=~/.nix-profile/include; export LIBRARY_PATH=~/.nix-profile/lib, but nevertheless cabal errored out:
% cd ~/code/haskell-src/digest
% cabal new-build
Build profile: -w ghc-8.2.2 -O1
In order, the following will be built (use -v for more details):
 - digest-<IP_ADDRESS> (lib:digest) (configuration changed)
Configuring digest-<IP_ADDRESS>...
cabal: Missing dependency on a foreign library:
* Missing (or bad) header file: zlib.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

I dug in and discovered that there is no directory ~/.nix-profile/include at all. I created it and manually simlinked zlib headers in. (To be specific, there are two headers in zlib: zlib.h & zconf.h, and I linked both of them.) It solved the problem.
I wonder if these headers could be put in place by default.
Steps to reproduce
Install ghc, cabal-install, zlib. Download the source for digest. Enter the digest source directory and say cabal new-build.
Technical details

system: "x86_64-linux"
host os: Linux 4.14.56-1-lts, Arch Linux, noversion
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.0
channels(root): "nixpkgs-18.09pre137268.63a865c403c"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs

zlib is used by many libraries already without any problem. zlib library is a multioutput library (see the doc for more details) so your dependency should include zlib.dev :
$  nix-build -A zlib.dev ~/nixpkgs
As a general tip, you can install nix-locate via nix-env and then run nix-locate zlib.h to find the correct output.

@teto There must be a misunderstanding. I am not defining a package or derivation myself. What I am doing is manually building stuff using cabal that happens to be installed via Nix. So I do not think your advices are applicable.
By the way, when I say nix-env --query --available '.*zlib.*', nothing similar to zlib.dev would appear.
Is there a particular reason to refrain from symlinking those files?

You should be able to run this in a nix-shell:
nix-shell '<nixpkgs>' -A haskellPackages.digest

dev outputs are not installed in a profile.

The way things are designed, nix-env is suitable for set of programs to be used and nix-shell is a much better fit for "development environments" (getting headers, various env-vars set up, etc.)

For Haskell in particular, I suppose you'd best start by trying what's in the manual: https://nixos.org/nixpkgs/manual/#how-to-create-a-development-environment

@vcunat Thank you for clarifying. I think I was misled by the following passage from the NixOS wiki (also linked to in my initial post):

With Nix, you can install the needed development tools into your profile (gcc-wrapper, gnumake), and the dependencies for the source you want to build (libpng, qt, ...). Once that done, set the environment variables (for gcc): CPATH=~/.nix-profile/include; LIBRARY_PATH=~/.nix-profile/lib; QTDIR=~/nix-profile...

From reading this section, I had had the impression that I could install zlib and cabal, set the environment variables as advised and everything will be prepared for building things. (Otherwise, what is the point of setting the environment variable CPATH?) I do not think this problem is specific to Haskell, since the headers missing are C headers from zlib (and not, for example, ghc's type checker's output) and the error is reported by ld (and Cabal faithfully passes it to the terminal if set to be verbose). In fact, Haskell packages that do not require C libraries build just fine with this set-up.
So, is it possible that there is inconsistency between what is written in the wiki and what is actually happening?

Yeah, that wiki page is misleading.  It should also mention steam-run (a FHS-compatible env via Linux mount namespaces).

Sounds like this has been solved?  At the very least there haven't been any comments in a few years, so I'll go ahead and close.  Feel free to leave a comment if you're still having problems with this and we can re-open.


Gradle error on Flutter Version 3.24.3

New project with version 3.24.3 and the only aded package is receive_intent. At build apk this error occurs:
"Execution failed for task ':receive_intent:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR: /Users//new_project/build/receive_intent/intermediates/merged_res/release/values/values.xml:194: AAPT: error: resource android:attr/lStar not found."

Same for me here.

I'm out on vacation, the error seems to be with the merged values.xml file
Our plugin has no values.xml, I'm not available to fix this as of now
Post about the temporary fix here, if you're able to find

Same
Gradle 8

@daadu Someone made PR to fix this issue:
https://github.com/daadu/receive_intent/pull/29
Workaround posted above did not work for me

workaround above works for me, but i prefer this way to change version https://github.com/flutter/flutter/issues/153281#issuecomment-2292201697
in short words: it changing compileSdkVersion from 30 to 31 for all plugins that below 31


add 404 template

thanks for this useful theme. but it's missing a 404 template. this should fix it.

Awesome! Looking forward to the new pypi release. :wink:


Use assertj instead of hamcrest in JobRunnerTest

Fix #1471

The verbosity seems to be comparable. Thanks to autocompletion, I don't have the type more.
I personally find assertj version easier to understand.


I as a user should be able to deploy Camunda Platform 8 diagrams if the Zeebe Gateway accepts only TLS connection

Problem you would like to solve
I want to be able to deploy diagrams and start new process instances to Zeebe Gateway with TLS. The TLS setting for Zeebe is described here.
Proposed solution
I think that there should be a switch that enables TLS communication. For now, it is okay to use only the system's certificates.
Alternatives considered
In addition to the switch, we can add a couple of fields that are describing the certificate's location, etc.
I can't see any alternatives though.
Additional context
Camunda Platform 8. Mac OS. Also, it would be nice to print out a more concrete message about TLS.

Thanks for opening the issue. However, it seems to be a duplicate of https://github.com/camunda/camunda-modeler/issues/2404. If you have anything to add, please leave a comment in the linked issue.


Linters should not add untracked files to repo

Fixes #5640.
@timabbott, @gnprice, @showell

Merged!  Thanks @umairwaheed!

My dev environment throws a 404 on translations.json when I open zulip. Is that caused by this PR?

@cory2067, can be. That file should be present at 'static/locale/en/translations.json'. If it is not present, you can easily generate that file by running ./manage.py makemessages --locale en.

@cory2067 @umairwaheed https://chat.zulip.org/#narrow/stream/general/topic/locales


Adding Reference to your project in Mac

rm-mac02:GC_Assist_SV mac-02$ sv/tools/Scripts/AddDependencies.bat "Assets" "sv"
sv/tools/Scripts/AddDependencies.bat: line 1: @ECHO: command not found
sv/tools/Scripts/AddDependencies.bat: line 3: SET: command not found
sv/tools/Scripts/AddDependencies.bat: line 4: SET: command not found
sv/tools/Scripts/AddDependencies.bat: line 5: PowerShell.exe: command not found
I have been receiving this for the past three days and I couldn't proceed from here because of this issue. can you guys help me solve the issue.

Are you trying to setup a new project? We didn't create an equivalent bash script to the AddDependencies.bat, and .bat won't work on Mac. How familiar are you with setting up symbolic links on a Mac?

I am not much familiar with MacBook and also the Terminal app. But I will look into the topic of setting up symbolic links on a mac and get the info about adding references to the project. Can you please tell me if anything that has to be changed on the mac if I am following the procedure given in the Git Hub.
Thanks for the reply.

Essentially we have the Powershell script AddDependencies.ps1, that's what AddDependencies.bat calls; perhaps you could try installing Powershell for Mac:
https://github.com/microsoft/MixedReality-SpectatorView/blob/d2876f64994bfe669f877d15939cba88e99883c8/tools/Scripts/AddDependencies.ps1#L57
I haven't tried this scenario, so this is unchartered waters; I'll see if I can find some time to try this.

Hey thanks for the wonderful info, I tried to install powershell and got it working. I have also installed Homebrew for the final step to work before deploying it to my iOS device. But the problem is I have deployed my Hololens application with all the steps specified and also built and deployed the sample iOS SpectatorView scene and I have entered the IP address of my Hololens but still it does not show any thing that was shown in Hololens. Is it necessary that all the game objects present in my Hololens scene should be present in my iOS scene? Is there something I am missing?(P.S : I have also deployed the sample Hololens scene and tried too but I couldn't get working).

That's great!
Ok, so what localization method are you using?
Also, when you say "Sample HoloLens scene" you mean the one that contains the demo content?
Basically our SpectatorView scenes are almost empty, they connect to the host device built out of the same project, and begin synchronizing data. The host encodes all assets to Guids using AssetCaches (that need to be regenerate for new projects, or new/removed assets), and transmits those Guids. The SpectatorView scene will use the same AssetCaches (since same project) to load up the necessary assets.

I have done the symbolic linking of the folders manually in the mac. I am using Azure spatial anchors method for localization. I have given the Azure account ID and the primary key in the edit settings. Can you please tell me the objects that has to be added in the scene to get the spectator view working. Since I am using my iPhone as the spectator, I have used MacBook to build the iOS application and Windows to deploy the app to Hololens. Is there something you think that I am missing? I have directly deployed the SpectatorView.iOS scene as mentioned in the procedure, but for the Hololens I tried to deploy the scene that I am working on as well as the SpectatoirView.Hololens scene. None of them worked. Thanks for the amazing assistance :)

Ok, let me check a few concrete steps to ensure I understand your state.
Did you do Step 7 of this: https://github.com/microsoft/MixedReality-SpectatorView#basic-unity-setup
And did you follow these steps for Azure Spatial Anchors setup: https://github.com/microsoft/MixedReality-SpectatorView/blob/master/doc/SpectatorView.Setup.md#azure-spatial-anchors
Specifically, did you update CocoaPods:
https://github.com/microsoft/MixedReality-SpectatorView/blob/master/doc/SpectatorView.Setup.md#azure-spatial-anchors-on-ios

Yes, I have updated all the Asset caches, done the Azure Spatial Anchors setting up procedure without missing anything. I have installed the Cocoapads and compiled my application using the Xcode workspace(not the Xcode project).

Ok great, thanks for confirming. I presume the WiFi you connect to has internet access, so maybe we are just failing to localize on the spectator device. Try the following:

Launch the HoloLens experience
Walk around the space for about 30 seconds, looking around (smooth movement)
Launch the iOS and connect to the HoloLens
Look for the Anchor visual: the XYZ Axis visual on the HoloLens (this means the Anchor was succesfully created upon joining)
Look for the Anchor visual on the iOS (this means the Anchor was localized at that position)

Let me know what else is observed.

I don't see any anchor visual. Is it because of the problem in setting up the Azure account or the Spatial Anchors account? I don't see any anchors details in my Spatial Anchors account. Here I attached some screenshots from my project which would be easy for you to understand the state of the project.

Ok, so yeah, for some reason we aren't creating the Azure Spatial Anchor, could we do the following:

Build your UWP to a fresh new project
Run through the experience, and close the app.
Download the Unity Log file:
-- Enable Web Management portal (visuals are a bit dated, but very similar instructions)
-- Go to File Explorer menu on the left, and navigate to LocalAppData\Packages\TempState\UnityPlayer.log
-- Attach the log file to this thread.

UnityPlayer.log

I downloaded the file and removed it from thread here, just in case. Investigating.

Ok, a couple of things I see:

Looks like the device lost tracking while it was trying to create an anchor:
-- See this "Windows Mixed Reality spatial locatability state changed to Inhibited."
-- Then several lines below: "Failed to create a HoloLens SpatialAnchor. Device may have lost tracking."
Also separately it looks like the Asset Caches were not regenerated:
-- Error Message: "Could not find the Mesh asset for GameObject Quad. Check the NetworkAssetCache ..."

I suppose that this time it failed to create an anchor due to tracking issue, but I also presume it may have succeeded in the past, and the second error would explain why no visuals were encountered. Try regenerating asset caches (Step 7 of Basic Unity Setup)

Hello,
The Gameobject Quad is from another scene in the project which is not added in the build. I will try to do the process once again, this time with a simple scene. If possible, Can you create a sample project?
Thanks

We have two sample projects checked into the repo, if you want to try those out:

Build 2019 Demo
[General Sample] (https://github.com/microsoft/MixedReality-SpectatorView/tree/master/samples/SpectatorView.Example.Unity)

Keep in mind, I referenced the master branch above, I presume you are on a release branch. Path should be same.

Closing, and if additional issues occur please re-open or create a new issue.


NotImplementedError should map to a useful user error

We are using Python's NotImplementedError exception as a systematic way to designate the aspects of the protocol that we are not currently implementing. For example, we do not support name based search in the TabixBackend. This should map to an error code and be communicated back to the client.

working on this

Fixed in #206


bug: ionic state reset --plugins resets platforms

From @RangerRick on April 25, 2015 16:10
Type: bug
Platform: all
When I run ionic state reset --plugins it also resets platforms:
Sin:~/git/opennms-compass ranger$ ionic state reset --plugins
Removed platforms and plugins
Attempting to restore your Ionic application from package.json

Restoring Platforms

cordova platform add android
cordova platform add browser
cordova platform add ios

Restore platforms is complete

Restoring Plugins

cordova plugin add org.apache.cordova.console
cordova plugin add org.apache.cordova.geolocation
cordova plugin add org.apache.cordova.inappbrowser
cordova plugin add org.apache.cordova.network-information
cordova plugin add org.apache.cordova.splashscreen
cordova plugin add org.apache.cordova.statusbar
cordova plugin add com.google.cordova.admob
cordova plugin add cc.fovea.cordova.purchase
cordova plugin add com.ionic.keyboard
cordova plugin add https://github.com/RangerRick/cordova-certificate-plugin.git
cordova plugin add com.ohh2ahh.plugins.appavailability
cordova plugin add com.google.playservices
Restore plugins is complete

Ionic state restore completed

Ionic reset state complete
```

_Copied from original issue: driftyco/ionic#3617_

This has been fixed in the latest branch. It'll be available in the next release.

This seems to still happen..

+1 Still getting this

using<EMAIL_ADDRESS>I can reproduce the opposite scenario, i.e. I run  ionic state reset --platforms but it also resets plugin.
Note the first line of the output which says Removed platforms and plugins
So, while only the one passed via command line (--platforms or --plugins) is restored, both are removed

I sent a PR for this, it would be pretty useful to have this working.
In my use case I want to do ionic state reset --platforms as a part of a script instead of cordova platform rm android && cordova platform add android, so that the proper platform version is taken from package.json. I don't need to reset plugins but this is the more expensive part; platform reset takes ~30s while plugins 1minute+

As a temporary fix I'm using restore instead of reset and remove things myself:
    cordova platform rm android && ionic state restore --platforms

instead of
    ionic state reset --platforms

The same problem happens with the clear command:
ionic state clear --platforms
also clears plugins, and vice versa.

this still happening... 😞
Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.4.0
Xcode version: Not installed

Try .https://www.npmjs.com/package/ionic-reset .


Reduce logging

The TinyPilot flask server spams the logs frequently. We should make this configurable to reduce writes.

Fixed in #157


Convert suggest-dom-consumer to typescript

Adjust SlotConsumer to take optional arguments in places.
Use spread instead of Object.assign
introduce addRenderingBySubId to avoid exposing private instance variables
Fix incorrect typing in suggestion-composer

Addresses #1765

Also fyi to @raulverag as this is yet more typescriptification...


Smooth transition animation of Image from events section to event details

Working on it

I want to work on this issue. :+1:

@liveHarshit if you're not working on this i would like to take up on this issue

Please go ahead


flutter libraries

yesterday  i have problem in sharedPreferences  problem build and i think is the only problem
but i have some problems in other libraries is it a issue of flutter after updating xcode  thanks
this  is the screenshot !

Hi @bardoun7894
can you please provide your flutter doctor -v and flutter run --verbose? Also, to better address the issue, would be helpful
if you could post a minimal code sample to reproduce the problem
Thank you

Hi @bardoun7894
Without additional information, we are unfortunately not sure how to resolve this issue. We are
therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the
bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Question: Workaround for TS2564 (strictPropertyInitialization)

When running with typescript >= 2.7 and strictPropertyInitialization or strict compiler options enabled, the schema types like:
import { Field, ObjectType } from "type-graphql";

@ObjectType({ description: "User profile" })
export class Profile {
  @Field()
  firstname: string;

  @Field()
  lastname: string;

  @Field()
  bio: string;
}

will cause compiler errors like:

Error:(6, 3) TS2564: Property 'firstname' has no initializer and is not definitely assigned in the constructor.

Is there a good workaround for this that doesn't involve writing an unnecessary constructor or disabling this check for the entire project?
The root cause of this is my biggest gripe with the typescript decorators in that they cannot be read at run-time when applied to interfaces.

export class Profile {
  @Field()
  firstname!: string;

  @Field()
  lastname!: string;

  @Field()
  bio!: string;
}


nix-selinux-policy: init at 1.0

Motivation for this change
This basic SELinux policy for files in /nix is required to support running Nix in multi-user mode on SELinux-enabled systems.
To test the output of this derivation, run semodule -i result/nix.pp after building and restorecon -v on files in /nix to verify that the contexts defined in nix.fc are applied.
Required to fix https://github.com/NixOS/nix/issues/2374.
Things done

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

[ ] NixOS
[ ] macOS
[X] other Linux distributions

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

Why not add it to Nix itself?

@jtojnar I was considering just that. There are pros and cons: On the one hand, this SELinux module is directly tied to nix-store and what it does. On the other hand, decoupling it from the Nix project itself means it's much easier to develop and release separately. A simple tweak on the policy would mean that all of Nix would have to be re-compiled, the version bumped and released, even though nothing changed in Nix itself. The same holds true vice versa: Version bumps in Nix don't mean that the policy needs to be changed, rebuild and deployed.
Lastly, this is also what Fedora does: Most policies are pre-integrated with the OS, and special needs policies for specific packages come as separately versioned and built packages.

IMHO the main criterion to decide whether to upstream the file is whether it can be reused by other distributions like desktop files, manual pages or appstream metadata can.

@jtojnar the policy, in fact, is currently only of use for other distributions than NixOS. However it has to be loaded into the host system's SELinux configuration and there is no mechanism to do this yet except for the one I added to Nix' installer in NixOS/nix#2670, plus files have to be re-labeled unless they had been previously been installed by Nix.
Keeping the policy separate from Nix has purely pragmatic advantages: It can thus be modified without requiring a separate release of Nix.
The effect of the policy, once fully integrated, is global: It affects the future labeling of all files in the Nix store and makes it at least possible to run systemd services based on files from the Nix store on SELinux systems.
I should've probably explained this much earlier, in the description. In any case, the resulting file has to be inserted using semodule -i, first. The mechanism to apply newer versions of the policy should probably also be added to Nix later, as labels have to be restored retroactively.
If you still think it shouldn't go to nixpkgs but Nix, I'm perfectly fine with closing the PR and moving the policy to the aforementioned PR to Nix. However hosting the policy with Nix will complicate future updates to the policy, and I think there are no advantages in not having the policy in nixpkgs except for purely idealistic ones.

I ultimately decided to move the policy into the related Nix PR itself.


"missing port in address"

Howdy -- first of all, want to say thanks for putting this example together, it's super helpful in understanding how kubeadm fits into the cluster lifecycle ecosystem.
Not sure if this is the best place to put this -- if its due to changes in kubeadm I can open an issue there instead, but wanted to bring it up since it is causing this project to break, and there's a quick fix available.
On kube-node-* in /var/log/cloud-init-output.log
[kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters.
[preflight] Running pre-flight checks
[preflight] WARNING: docker version is greater than the most recently validated version. Docker version: 17.05.0-ce. Max validated version: 1.12
discovery: Invalid value: "<IP_ADDRESS>": missing port in address <IP_ADDRESS>

Seems the docker warning can be ignored, but I think the last line is causing kubeadm join to bomb out:
discovery: Invalid value: "<IP_ADDRESS>": missing port in address <IP_ADDRESS>

Not sure if this is something with latest kubeadm, but adding the port in tf-scripts/node.sh seems to get it working:
diff --git a/tf-scripts/node.sh b/tf-scripts/node.sh
index e29dcf6..113bc81 100755
--- a/tf-scripts/node.sh
+++ b/tf-scripts/node.sh
@@ -19,7 +19,7 @@
 # This should be done inside of kubeadm.  Fixed but waiting on next release. See
 # https://github.com/kubernetes/kubernetes/issues/35533
 for i in {1..50}; do
-  if kubeadm join --token=${token} ${master-ip} ; then
+  if kubeadm join --token=${token} ${master-ip}:6443 ; then
     break
   else
     sleep 15

looks like this may have been fixed on kubeadm side.


Cleanup and update edpm_multinode.yaml jobs to CRC 2.30 (OCP 4.14)

Update from crc 2.19 to 2.30
Extract nodeset from inline to nodeset.yaml
Add ocps group (this may be used in the future)
Move to unified zuul node label

JIRA: OSPRH-4340
JIRA: OSPRH-2712
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running

/hold
Wait for https://github.com/openstack-k8s-operators/ci-framework/pull/1121

/unhold

recheck
ERROR: hostname \"compute-0.ci-rdo.local\" does not match expected hostname \"np0004468676.shiftstack

/hold
Holding for https://github.com/openstack-k8s-operators/install_yamls/pull/720

/unhold
https://github.com/openstack-k8s-operators/install_yamls/pull/720 has merged

/lgtm

/approve


Animated ClipRRect

Currently, AnimatedContainer is beautiful and has many use cases, however it's children do NOT clip to its boundries (like Container), which would be a suggestion in itself, but the existence of ClipRRect makes me think the decision on this is final. So as a substitute, an AnimatedClipRRect is in order to animate clipping and border clipping of the widget's children.
This would be incredibly useful for many use-cases. In fact, I found myself suggesting this because I needed it as a UI idea to transform a square to a circle when a download button is pressed. I'm sadly going to have to do something different.
I know it's 100% possible to already do this with extrinsic animations, and I already tried it, but it's very bulky and inconvenient to use. It's why AnimatedContainer exists in the first place.
Parameters for AnimatedClipRRect should all be animatable, perhaps even a shape decoration parameter like the one in Container where you can change it's shape from a square to a circle to any other shape you make.

yeah really it will be awsome

I really need this too

I know it's 100% possible to already do this with extrinsic animations, and I already tried it, but it's very bulky and inconvenient to use. It's why AnimatedContainer exists in the first place.

How is it done?

@icnahom Animations.
Easiest way would be with a TweenAnimationBuilder wrapping your widget, the value passed is your radius.

For those of you in a rush, here's a very simple copy-pasteable AnimatedClipRRect:
import 'package:flutter/widgets.dart';

class AnimatedClipRRect extends StatelessWidget {
  const AnimatedClipRRect({
    @required this.duration,
    this.curve = Curves.linear,
    @required this.borderRadius,
    @required this.child,
  })  : assert(duration != null),
        assert(curve != null),
        assert(borderRadius != null),
        assert(child != null);

  final Duration duration;
  final Curve curve;
  final BorderRadius borderRadius;
  final Widget child;

  static Widget _builder(
      BuildContext context, BorderRadius radius, Widget child) {
    return ClipRRect(borderRadius: radius, child: child);
  }

  @override
  Widget build(BuildContext context) {
    return TweenAnimationBuilder<BorderRadius>(
      duration: duration,
      curve: curve,
      tween: BorderRadiusTween(begin: BorderRadius.zero, end: borderRadius),
      builder: _builder,
      child: child,
    );
  }
}

thanks a lot @roughike !

An example where this clip is needed:
https://gist.github.com/rodydavis/44a95a38e44aaa7250dc39e3c6e84099


Link instead of copy provision.sh

Using a hard link means that you don't have to manually copy provision.sh when editing. macOS (and BSD?) don't support cp -l so I'm using ln instead.

How does t his behave on Windows?

Are you thinking in the WSL subsystem? I don't have that currently installed, but https://www.reddit.com/r/bashonubuntuonwindows/comments/77ephs/creating_hard_and_symbolic_links_in_mntc/ indicates hard links should work.

Not the WSL (Vagrant in the WSL is a nightmare last I tried)
On WIndows when I build the base box I want to be able to fire off a command to copy/link whatever the provision file to homestead.sh in the bento repo like on MacOS/Linux. I just don't know if Windows will handle the hard links as MacOS will.

Windows will handle hard links, but powershell only has an alias for cp and not ln. Are you running the bash script, or manually running cp in powershell?

Currently i just manually copy the file in a terminal app (CMDR) via cp. If we could add a Powershell version of the link-to-bento.sh I think that would work.

Thanks - I don't have Windows set up for development currently, so it was going to be a while until I could get to this.


Updated sentence about automatic queue deletion

Updated sentence about automatic queue deletion to make a bit more sense. :)

Sorry no longer applies.  Could you resubmit? Thanks.

@antirez: I see that #137 already got this covered, my fix is no longer needed.

Thanks


Added support via \xing macro for the german widely used social netwo…

In germany xing is a widely used professional social network (www.xing.de). Added a macro to create a link and icon in the top bar.

Thanks :+1:


Youtube vide breaks after download FFmpegPostProcessorError: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

Checklist

[ x] I'm reporting a broken site support
[ x] I've verified that I'm running youtube-dl version 2020.03.24
[ x] I've checked that all provided URLs are alive and playable in a browser
[ x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ x] I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl -v https://www.youtube.com/watch?v=F8Y797g_Jg4
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=F8Y797g_Jg4']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-142-generic-x86_64-with-LinuxMint-18.1-serena
[debug] exe versions: avconv 2.8.15, avprobe 2.8.15, ffmpeg 2.8.15, ffprobe 2.8.15
[debug] Proxy map: {}
[youtube] F8Y797g_Jg4: Downloading webpage
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://r2---sn-u2oxu-bqol.googlevideo.com/videoplayback?expire=1585500623&ei=b32AXqWNC5fx7gPwmaqICw&ip=<IP_ADDRESS>&id=o-APURSk0Mq2vGobUXqIwaeqcd7LYX1UQ9XWk9CKp_X6Pu&itag=398&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C394%2C395%2C396%2C397%2C398&source=youtube&requiressl=yes&mh=e1&mm=31%2C29&mn=sn-u2oxu-bqol%2Csn-u2oxu-f5fe6&ms=au%2Crdu&mv=m&mvi=1&pl=24&initcwndbps=762500&vprv=1&mime=video%2Fmp4&gir=yes&clen=304138915&dur=4010.005&lmt=1580862799194825&mt=1585478913&fvip=2&keepalive=yes&fexp=23882513&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ADKhkGMwRAIgEOm5YR-CMdx3RwTFshDGkqUW0HyJAffKT0-u4dYae1UCIDElsP2nhjR-ULHgefeN4yiRW1slNPefiDVCSaK_3agX&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABSNjpQwRQIgA3C4J2KPAaWZAjWWxagwZknMdGImD1343xeSC3NwXMwCIQDDGMl2VCJ9CVw9YmdtlVE1f-VvanALgy1KGp925cwMEw%3D%3D&ratebypass=yes'
[download] Destination: Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.f398.mp4
[download] 100% of 290.05MiB in 03:38
[debug] Invoking downloader on u'https://r2---sn-u2oxu-bqol.googlevideo.com/videoplayback?expire=1585500623&ei=b32AXqWNC5fx7gPwmaqICw&ip=<IP_ADDRESS>&id=o-APURSk0Mq2vGobUXqIwaeqcd7LYX1UQ9XWk9CKp_X6Pu&itag=140&source=youtube&requiressl=yes&mh=e1&mm=31%2C29&mn=sn-u2oxu-bqol%2Csn-u2oxu-f5fe6&ms=au%2Crdu&mv=m&mvi=1&pl=24&initcwndbps=762500&vprv=1&mime=audio%2Fmp4&gir=yes&clen=64899123&dur=4010.062&lmt=1555995968467430&mt=1585478913&fvip=2&keepalive=yes&fexp=23882513&c=WEB&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ADKhkGMwRAIgGrP01xUF9o2dU-4S0GEV2dnnBao1eDJZjsHIkahY0boCIEq9qx2l1F6mPmemEmT5UaTAOJxxwaf-SWBo_uvuxx7A&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABSNjpQwRQIgA3C4J2KPAaWZAjWWxagwZknMdGImD1343xeSC3NwXMwCIQDDGMl2VCJ9CVw9YmdtlVE1f-VvanALgy1KGp925cwMEw%3D%3D&ratebypass=yes'
[download] Destination: Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.f140.m4a
[download] 100% of 61.89MiB in 00:45
[ffmpeg] Merging formats into "Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.f398.mp4' -i 'file:Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.f140.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.temp.mp4'
ERROR: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2065, in post_process
files_to_delete, info = pp.run(info)
File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 512, in run
self.run_ffmpeg_multiple_files(info['__files_to_merge'], temp_filename, args)
File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 235, in run_ffmpeg_multiple_files
raise FFmpegPostProcessorError(msg)
FFmpegPostProcessorError: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Description

instead of 1 video file I get 3 files
Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.f140.m4a
Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.f398.mp4
Tip Toland Workshop -- Sculpting a Clay Head - Free Tutorial-F8Y797g_Jg4.temp.mp4
The video files don't look playable while  .m4a contains audio only.
Only this video looks like its problematic to download, no other YT video shows this problem.
Theory:
the -- in the video title can mess up something that uses bash and even " -- " will not escape it can this be the problem?
The video is playable in the browser.

Outdated ffmpeg.


Issue when downloading from fiction.live

I was trying to download the below quest :
https://fiction.live/stories/Star-Wars-Twilight-of-the-Republic/zZMpSXnx8f7RxJnoa
And I've gotten this error :
return callback(*args, **kwargs)
File "leech.py", line 152, in download
story = open_story(site, url, session, login, options)
File "leech.py", line 103, in open_story
story = handler.extract(url)
File "C:\Users\kerem\Desktop\leech-master\sites\fictionlive.py", line 67, in extract
if int(choice) < len(segment['choices']):
ValueError: invalid literal for int() with base 10: 'o'

Man, the API of this site makes weird choices. choice there is normally (as in, everywhere else) an index in the votes array... but in this one place it's a string 'onbashira :V'. 🤷♂


Catching events of sibling components

What problem does this feature solve?
Components are emitting events to parents and parents sends props to child components, If a sibling component's event trigger change its brothers; parents will catch the event and than send the change to the other children.
If vue can implement a design for cathcing events  between siblings it would be make the communication between sibling components more efficiently.
What does the proposed API look like?
a special chareacter can declare for events to catch inside components for example:
<child-component @on-change-from-component="parent-method" [SpecialChar(₺)][event-name-to-catch]="child-component-method"  />

It already exists! 😄
You can either use an Event Bus (as in Vue docs) or Vuex

Thanks for the feed back.
I was looking for more straightforward way than state, and event bus solution meets my needs.


VAR Model Research

Sequence Learning is a type of machine learning where information is gleaned from the order in which samples are presented to the learning algorithm. Sequence prediction is a type of inference that predicts the next value in a sequence or the next sequence of values. Time-series analysis is a subset of sequence learning in which the samples are ordered by time. For the purposes of this research, let's assume that the training dataset is a sequence of samples that may be ordered by time, but may also be ordered by space such as a sequence of paragraphs (a.k.a. a book), or some other scheme and that the prediction will just be the next single continuous value given the input sequence. An example of this would be a regressor that is trained on a series of stock prices and is then asked to "look into the future" by predicting what the price will be tomorrow given the data for today.
Autoregressive models such as ARIMA (Autoregressive Integrated  Moving Average) and VAR (Vector Autoregression) are well known statistical models of sequence data. They are very similar, but differ in that ARIMA only handles a single feature while VAR can handle a vector of features. Since Rubix ML is primarily designed for tabular datasets with many features, it makes sense to focus on implementing VAR models (VAR, VARMA, VARMAX) in the library, but I recommend understanding ARIMA as a baseline as its more common in the literature and in some ways simpler to understand.
https://en.wikipedia.org/wiki/Autoregressive_integrated_moving_average
https://en.wikipedia.org/wiki/Vector_autoregression
Since the formulas for VAR are often given in matrix notation, I recommend implementing the algorithm using the Tensor library which we built for these types of problems. In short, Tensor lets you perform both basic and specialized operations on vectors and matrices of numbers. The API is not currently documented, however, the features are very similar to the older Numpy API.
https://github.com/RubixML/Tensor/blob/master/src/Matrix.php
https://numpy.org/doc/stable/reference/generated/numpy.matrix.html
I think the current abstractions (Dataset objects, Estimator and Learner interfaces) should be able to handle sequence learning on tabular datasets. A sequence dataset is only different from a regular dataset in that it cannot be randomized without losing information. For this reason we'll need to take care in how we do cross-validation but that is more of an ancillary concern. Ideally, we'd be able to pass a sequence dataset as a Labeled or Unlabeled dataset object to a regressor that implements the train() method. Any dataset passed to a sequence learner will assumed to be in sequence. So basically we need a regressor that implements Learner.
https://github.com/RubixML/ML/blob/master/src/Learner.php
Here is an example of a regressor implementation that uses the Tensor library under the hood for reference.
https://github.com/RubixML/ML/blob/master/src/Regressors/Ridge.php
The task is to understand the math behind a VAR model  (Ex. VARMA) and come up with a working prototype. We should be able to explain how VAR models work. If successful, the next step is to refactor the prototype into production code.
Having that said, don't get discouraged if you run into a hard time feel free to reach out for help!
Here's a video to get you started!
https://www.youtube.com/watch?v=CCinpWc2nXA

Hey @torchello can you give us an update on this research?

Hey @andrewdalpino ! I have reserved first two weeks of June to work on this at least part-time. Studying docs/videos meanwhile.

Word

@andrewdalpino I am unassigning myself from this ticket in case someone wants to jump into it. Unfortunately, I wasn't able to make much progress during the summer due to lack of time.

All good @torchello


failure to start when setting -b=docker1

Hi docker,
I ran into a problem with my docker setup. So I created my own bridge called docker1 at the moment.
Then I went inside /etc/default/docker and add DOCKER_OPTS="-b=docker1" which work fine at that step.
However, whenever I restart my host machine, docker will not run on start up, I have to do "sudo service docker start" every single time. I tried to add "-d" into DOCKER_OPTS but it will not work.
My host is Ubuntu 14.04 using the latest version of docker, lxc-docker.

@nhatnguyen26 are you still seeing this on the latest version of docker

closing as stale please ping me with exact steps to reproduce on the latest version and I will reopen


Wrong detection of constant base

TEST:
parameter int foo = 32'H7fFF;

module test;
endmodule

Surelog doesn't detect that constant is in hex, when 'H is used. Using 'h gives correct information.

Same issue applies to other bases, as well as 'S, e.g.:
parameter int foo = 32'Sd1;

module test;
endmodule

gives: DEC:d1, but 32'sd1 gives correct: DEC:1.

Fixed by #2585


Improve commandline output

This pull request adds the following changes:

A progress bar that updates in-line for mutation testing. This is a significantly more compact way of updating the user about how much longer Muter will run for until it's complete.
When the baseline test suite run fails, the log will be now printed to stdout, making it easier for people to debug their initial configuration of Muter.
All of the paths that were previously logged are now reduced to the filename, which makes it easier to parse.
The temporary directory Muter copies the project into is now printed to stdout and clearly labeled, with a few other tips printed as well.
The language that appears in the commandline output is now more consistent with the domain.
All of the phases of mutation testing now have a more concise output. For example, the discovered mutants aren't logged individually anymore, but are bucketed into the file they're discovered in.

          1 Message

:book:
✅ Looks like you have enough reviewers selected.

  Generated by :no_entry_sign: Danger


How to get the full text of papers for scibert training?

I've noticed that full text of papers was used to train scibert. How could I obtain the full text of those papers? Does semanticscholar.org provide API to get full text?

We didn't release the full text of SciBERT, but you can try using the GORC corpus https://github.com/allenai/s2-gorc which we recently released. It is larger and cleaner than the SciBERT training corpus.


New NavContainer find path error docker

Hi All,
the below is my script and i get into Cannot find path error
install-module navcontainerhelper -force
set accept_eula to $true to accept the eula found here: https://go.microsoft.com/fwlink/?linkid=861843
$accept_eula = $false
$containername = ''
$navdockerimage = 'microsoft/bcsandbox:mx'
$appbacpacuri = ''
$tenantbacpacuri = ''
$additionalParameters = @()
if ($appbacpacuri -ne '' -and $tenantbacpacuri -ne '') {
$additionalParameters = @("--env appbacpac=""$appbacpacuri""","--env tenantBacpac=""$tenantbacpacuri""")
}
$credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication. Please enter your Windows credentials."
New-NavContainer -accept_eula true                  -containername SGMX
-imageName "mcr.microsoft.com/businesscentral/sandbox:15.0.36626.37711-mx-ltsc2016"                  -auth Windows
-memoryLimit 3G                  -licenseFile "F:\Backup\Dynamics NAV\AllLicenses\KEYS DYN 365 BC ON PREMISE\BC.flf"
-Credential ssan                  -includeCSide
-updateHosts                  -usessl:$false
-doNotExportObjectsToText                  -assignPremiumPlan
-shortcuts Desktop                  -enableSymbolLoading
-alwaysPull `
Setup-NavContainerTestUsers -containerName SGMX -password 2019Nove

You should not have true after accept_eula
And then for -credential you specify ssanth... - shouldn't that be $credential
https://freddysblog.com/2019/08/20/business-central-on-docker-for-non-experts/

ok thanks Freddy. let me try and get back to you.
Meanwhile, i have my own Sandbox environment. is it possible to pull my ownsandbox image? instead of Microsoft default? if yes, how the image name should be for own sandbox

Are you talking about your own online sandbox environment?
And you want the same on docker?

yes my own online sandbox on local docker.

mcr.microsoft.com/businesscentral/sandbox:-ltsc2019 should be the version we are currently rolling out to new tenants. Your online sandbox or tenant might be behind this, then you can grab the application version number from system information and try with that (as above), but in the end - you will probably get upgraded to the latest version soon.
You can find a list of all tags (versions of containers) here: https://mcr.microsoft.com/v2/businesscentral/sandbox/tags/list
and find the one that matches your application version number best - note that this is NOT the platform version number.


Parse errors and use diagnotics to provide location markers

For some errors this already works quite well. For the "operation not permitted" error we'll have to do more processing on the Rust side:

Nice!


react-native Help

Good luck with.
Friends! I get this error when I run the application in android studio, I have not figured it out for days. But the same application 'XCODE' works without problems. Android studio does not work either. ADV Emulator I need the error halves you encounter. Thank you
Examines
https://codecanyon.net/item/beostore-complete-react-native-template-for-ecommerce/17010642
 console.error: “You are currently using minified code outside of NODE_ENV === ‘production’. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build.” t warning.js:14:18 <unknown> index.js:39:2 i require.js:130:15 n require.js:69 t require.js:53 <unknown> wrapActionCreators.js:6:21 i require.js:130:15 n require.js:69 t require.js:53 <unknown> connect.js:19:34 i require.js:130:15 n require.js:69 t require.js:53 <unknown> index.js:10:23 i require.js:130:15 n require.js:69 t require.js:53 <unknown> RootRouter.js:10 i require.js:130:15 n require.js:69 t require.js:53 <unknown> index.android.js:11 i require.js:130:15 n require.js:59:13 t require.js:53 global code require-0.js:1

@hirande this is the wrong repo.

I do not know exactly what you mean?

@hirande this is the redux issue tracker, not react-native. https://github.com/facebook/react-native/issues/new

Technically, the error message is related to Redux, but it's a problem with your project's build setup, not a bug with Redux.  So, it's not a valid issue to discuss here.


Shapeless 2.3.5+ can't provide implicit for Generic.Aux

After updating to Shapeless 2.3.5+ some code that used to work with 2.3.3 stopped compiling.
A minimal example is:
import shapeless._

trait A
trait B[+A1 <: A]
case class C[T]()

case class D[A1 <: A, B1 <: B[A1]](c: C[B1]) {
  def bind() = D.bind(this)
}

object D {
  def bind[T, L <: HList](t: T)(implicit gen: Generic.Aux[T, L]) = ???
}

It fails to compile with the following error:
shapeless.this.Generic.materialize is not a valid implicit value for shapeless.Generic.Aux[D[A1,B1],L] because:
hasMatchingSymbol reported error: inferred type arguments [Nothing,B1] do not conform to method apply's type parameter bounds [A1 <: A,B1 <: B[A1]]

Looks like https://github.com/milessabin/shapeless/pull/1191 also fixes my problem. I wonder, are there any plans for a 2.3.8 patch release?

Looks like #1191 also fixes my problem. I wonder, are there any plans for a 2.3.8 patch release?

Cool, thanks for checking 👍

I wonder, are there any plans for a 2.3.8 patch release?

Yes, it's long overdue. I should have some time to do it next weekend. Will probably need to backport some PRs from the main branch first.

Yes, it's long overdue. I should have some time to do it next weekend. Will probably need to backport some PRs from the main branch first.

Awesome! I just double checked: my example compiles both in 2.12 and 2.13 with #1191 applied to v2.3.7. I guess this issue can be closed now.

Sorry, I didn't manage - personal life got in the way 😄

Just released https://github.com/milessabin/shapeless/releases/tag/v2.3.8


gomobile-build doesn't work for Android GLES3 function is missing

Ebitengine Version
fedfceff32520ca8bef7a63a0c5c3544563a8008
Operating System

[ ] Windows
[ ] macOS
[ ] Linux
[ ] FreeBSD
[ ] OpenBSD
[X] Android
[ ] iOS
[ ] Nintendo Switch
[ ] Xbox
[ ] Web Browsers

Go Version (go version)
go version go1.20.4 darwin/amd64
What steps will reproduce the problem?
go install ./examples/rotate

And run the rotate application.
What is the expected result?
Run the application.
What happens instead?
The application runs.
Anything else you feel useful to add?
An application crashes on ASUS_X013DB with this message
GLES3 function is missing

https://github.com/golang/mobile/blob/7088062f872dd0678a87e8986c67992e9c8855a5/gl/work.c#L16

I have two options:

Contribute to gomobile
Give up supporting gomobile-build (not bind)

This is a kind of blocker for #805. Let's drop the support of gomobile-build.


replace crossbeam's scoped threads with std's scoped threads

https://doc.rust-lang.org/std/thread/fn.scope.html

see if we can't upgrade the edition while we are at it.


Adds utilities for serializing pytrees.

Adds dump, dumps, load, and loads functions.
These are useful for serializing pytrees. For example:
pytree = {'x': np.array([1, 2, 3]), 'y': 0.5}

# Get serialized bytes representing the pytree
bin = renn.dumps(pytree)

# Get back the pytree from the byte array
pytree = renn.loads(bin)

We can also save pytrees directly to a file object:
# Save bytes to disk
with open('/tmp/data', 'wb') as f:
  renn.dump(pytree, f)

# Load pytree from disk
with open('/tmp/data', 'rb') as f:
  pytree = renn.load(f)

This uses msgpack under the hood, with modifications to support custom types. Currently, the additional supported types (on top of what msgpack supports) are: tuples, numpy ndarrays, and the renn.LinearRNN dataclass.
Fixes #13

I'm also bumping the version on this to 0.0.4


About us Page changes

If there are images which are lower res you could ask them to upload a higher res image (we only need 200x200 mostly)  or just keep a lower res like 300x300 but that's your call! I didn't enforce image sizes before but I think it's good that we set a lower and upper limit from this point on! even for the issue images but we can take that up later


ancestor / descendant of widget tree.

We can find any parent widget by using findAncestorWidgetOfExactType .
Is there any way to find child widget ?
ex. findDescendWidgetOfExactType
Of course, we can use GlobalKey, but it could be only used for StatefulWidget and not for StatelessWidget

Is there any way to find child widget by type?
How do we find StatelessWidget without key?
If nothing, may I ask above as new feature?

Thank you!

Hi @zl910627
can you please give us more details on why feature is useful and some  use cases?
Thank you

If you really (really) want to search a widget's descendants, https://api.flutter.dev/flutter/widgets/BuildContext/visitChildElements.html

thank you for your quick response.
MainPage\SearchWidget
|
\SearchFood
|
\SearchOrder
whenever select food or order, we need to know how many foods and selected, and order too on Main page.
define abstract class with getter total and selected, then implemented it on SearchFood and SearchOrder
In this way, I'd like to get total / selected for foods / orders by getting search food / search order.
Remark SearchWidget would be used in several widgets

If you really (really) want to search a widget's descendants, https://api.flutter.dev/flutter/widgets/BuildContext/visitChildElements.html

Thank you for your help
May I ask any sample code block for this ?

ohh, is it possible inline function inside function ?

It's used by the framework in a few places. For example, the Heroes implementation finds all of the Heroes below a context using visitChildElements: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/heroes.dart#L314

I think this also explains necessary for descendant widget finding method, I think.

Hi @zl910627
This platform is not meant for assistance on personal code and questions like these
Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Cannot "add integration" after HACS install

I cannot install the integration after HACS install.
I had it working 4 hours ago, and then thought it might conflict with the cloud service so i deleted the repository.
Now i want to reinstall it, the repository installs but the integration does NOT show up. sigh i've tried rebooting/restarting/clearing cache/using different browser :(
Please help

never mind ! tried the keyword "omni" rather than hayward :| its working now


DNS Queries and responses are not logged

DNS Queries and responses are not logged.
Config.yml:-
global:
trace:
verbose: true
multiplexer:
collectors:
- name: tap
dnstap:
sock-path: /tmp/dnstap.sock
loggers:

name: relay-out2
dnstap:
remote-address: 10.X.X.X
remote-port: 9990

name: file
logfile:
enable: true
file-path:  "/var/run/dnscollector/dnstap.log"
max-size: 100
max-files: 10
mode: text

routes:
- from: [ tap ]
to: [ relay-out2 , file ]
+++++++++++
Dns-Collector Version =0.37.0
++++++++++++++++++++++++
[tap] collector=dnstap - starting collector...
[tap] collector=dnstap - running in background...
[tap] collector=dnstap - is listening on unix:///tmp/dnstap.sock
[relay-out2] logger=dnstap - running in background...
[relay-out2] logger=dnstap - connecting to 10.X.X.X:9990
[file] logger=file - running in background...
[relay-out2] logger=dnstap - ready to process
[file] logger=file - ready to process
[relay-out2] logger=dnstap - transport connected with success
[relay-out2] logger=dnstap - framestream initialized with success
+++++++++++
i want to logged dns query in text file but not able to logged.
how can i troubleshoot this issue.
kindly suggest..

Can you try to log the console and share the output ?
Your dns server is properly configured to send logs to your  dnstap.sock ?

Thanks For your reply...
I just got that type of output from console.
17:51:28.241612 [tap] collector=dnstap - starting collector...
17:51:28.241691 [tap] collector=dnstap - running in background...
17:51:28.242186 [tap] collector=dnstap - is listening on unix:///tmp/dnstap.sock
17:51:28.242254 [relay-out2] logger=dnstap - running in background...
17:51:28.242742 [relay-out2] logger=dnstap - connecting to 10.x.x.x:9990
17:51:28.242969 [file] logger=file - running in background...
17:51:28.243064 [relay-out2] logger=dnstap - ready to process
17:51:28.243111 [file] logger=file - ready to process
17:51:28.243232 [relay-out2] logger=dnstap - transport connected with success
17:51:28.243793 [relay-out2] logger=dnstap - framestream initialized with success
++++++++++++++++++++++++++++++++++++++++
and yes our DNS Server is properly configured. because in our one Vms dns server send logs to dnstap successfully, but in our second Dns server not able to send data to dnstap.sock with same configuration. that why i am confused why this happening with second VMs.
and in our DNS query logs file is also showing that connection is established successfully but not able to send logs.
Kindly suggest .

Based on your logs, it appears that there is no connection to the dnstap.sock from the DNS server.
Could there be an issue with permissions?

When a connection is made to dnstap.sock, you should obtain the following logs:
INFO: 2023/11/18 15:46:59.056859 [tap] collector=dnstap#3 - new connection from @
INFO: 2023/11/18 15:46:59.056874 [tap] processor=dnstap#3 - initialization...
INFO: 2023/11/18 15:46:59.057229 [tap] processor=dnstap#3 - waiting dns message to process...

Thanks for your help @dmachard Sir...


[Proposal] Do not replace my build command

I hope vite-react-ssg is just a plugin for Vite. It should not replace my build command, neither in theory nor in practice:
I wish to keep my original build command:
"scripts": {
	"dev": "vite",
	"build": "tsc && vite build",
	"preview": "vite preview"
}

Instead of being replaced by the following
"scripts": {
	"dev": "vite-react-ssg dev",
	"build": "tsc && vite-react-ssg build",
	"preview": "vite preview"
}

This replacement will lose the function of Vite itself

Parameters supported by Vite cli are no longer valid, such as vite --port 3000
When the user specifies base, such as /vite-plugin-fake-server/ and opens http://localhost:9000/ in the browser, it will automatically redirect to http://localhost:9000/vite -plugin-fake-server/
Others

If vite-react-ssg can be run as a plugin, I also recommend having a parameter like enable to set whether to enable the plugin.
import { viteReactSSG } from 'vite-react-ssg';

export default defineConfig({
  plugins: [
    viteReactSSG({ enable: true }),
  ],
});

vite-ssg implements not modifying the user's dev command, but it doesn't implement not replacing the build command. So I'm not sure if vite-react-ssg can be used as a plugin.

I have some preliminary thoughts and suggestions that I hope could contribute to improving your plugin.
I genuinely appreciate your plugin🙏.

I can't think of a way to implement SSG (Static Site Generation) as a Vite plugin. The SSR examples provided by the Vite official are also outside of the Vite ecosystem, using Vite API to implement SSR.
Regarding vite-ssg, the reason it doesn't replace the dev command is because it uses CSR (which is Vite's default behavior) during development. Vite-ssg doesn't do anything during development. Personally, I hope to provide SSR (Server-Side Rendering) during development to ensure consistency between development and production as much as possible.
You can see: https://github.com/Daydreamer-riri/vite-react-ssg?tab=readme-ov-file#use-csr-in-development-environment
Regarding your suggestion, in the situation where we cannot implement vite-react-ssg as a Vite plugin (as I believe), we can strive to enhance the CLI functionality of vite-react-ssg.


allow edit and delete of notes

This is a proposal to fix issue #33 #30
notes are selected in list using Enter, an editing window is presented

deleting entire text will delete note
altering text will alter note (it will however still contain the date information as rendered by the note class)

i would love to discuss futher changes to the note class to get rid of the date issue

This now also fixes #32

Hi Steffen,
I'm so sorry for the year long silence!  I must not have had notifications set up for this thread and don't sign into the github UI very often!
I've sent an invite adding you as a collaborator to the project.  I see a "Merge pull request" button here but I'll wait for you to accept the collaboration (if you want) and you can merge it yourself :)
Thanks so much for taking it over!


Type errors in the Dato CLI source

Description
I'm not sure whether it's my environment that is poorly set up, or if this is an actual bug.
But anyways, wanted to let you know that I see a lot of type errors in the Dato CLI source code. While trying to set up the CLI following the README I'm getting a lot of type errors. And upon inspection of the code I found this on L88 in packages/cli/src/utils/environments-diff/write/api-calls.ts

When running the build command in my terminal I get this output:

I can of course just fix the types myself, but wanted to let you know about it as well 🙂

Mh, interesting. I guess there's something wrong in your env?


Fix typo in embed.py

Modification
splited -> splitted

 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.

Sorry, the master branch is no longer maintained, you are welcome to use the main branch


Why not support vscode?

Why not support vscode

Unfortunately, VSCode isn't on the roadmap. There are already great alternatives on the market :)


Problem in master if start = destination and points_encoded=false

curl "localhost:8989/route?points_encoded=false&point=37.332112%2C-122.0308637&point=37.332112%2C-122.0308637"
{"message":"Invalid number of points in LineString (found 1 - must be 0 or >= 2)...

This is kind of logical and also is written in the specification, but somehow "unnatural" so that we either have to serialize the PointList into a "Point" or add the same point again, so that we have two points. I would vote for the latter to keep the "LineString" type.
The latest stable behaviour violates this specification and returns a LineString with one coordinate.
Related to https://github.com/graphhopper/map-matching/issues/118

Another solution would be to change the internal behaviour from returning one node into returning two nodes. But for me a route where start is end means it is just one node and also having two nodes introduces the problem of an edge with an undefined speed (t=0, s=0).
So we should return just a single point and as LineString does not allow this we would have to use a Point type which is ugly as it would break backward compatibility. So I think the solution above is the best and I'll commit this.


Fix for Debian FTP Package Links

Contains solution for the issue #86.
Looking forward to suggestions
Thanks!
Signed-off-by: Arsh Pratap<EMAIL_ADDRESS>

Lgtm. Thanks for the PR :)