Service Entry doesn't allow specifying port in endpoint like document mentioned

Bug description
Service Entry endpoints don't allow specifying port with following error:
        * endpoint port 8080 is not defined by the service entry
        * endpoint port 9080 is not defined by the service entry
        * endpoint port 7080 is not defined by the service entry

Expected behavior
Service Entry is created.
Steps to reproduce the bug
Apply the exact same configuration in the document here
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: external-svc-dns
spec:
  hosts:
  - foo.bar.com
  location: MESH_EXTERNAL
  ports:
  - number: 80
    name: http
    protocol: HTTP
  resolution: DNS
  endpoints:
  - address: us.foo.bar.com
    ports:
      https: 8080
  - address: uk.foo.bar.com
    ports:
      https: 9080
  - address: in.foo.bar.com
    ports:
      https: 7080

Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)
istioctl
client version: 1.5.0
control plane version: 1.5.0
data plane version: 1.5.0 (3 proxies)
kubectl
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3", GitCommit:"b3cbbae08ec52a7fc73d334838e18d17e8512749", GitTreeState:"clean", BuildDate:"2019-11-14T04:24:34Z", GoVersion:"go1.12.13", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.9-eks-502bfb", GitCommit:"502bfb383169b124d87848f89e17a04b9fc1f6f0", GitTreeState:"clean", BuildDate:"2020-02-07T01:31:02Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}
How was Istio installed?
Using istioctl manifest apply -f ./istio-manifest.yaml with slightly custom istio-manifest.yaml
Environment where bug was observed (cloud vendor, OS, etc)
AWS

The problem is that the http: 8080 ports need a left-side that matches name: http.  The documentation example names the port http but refers to it as https.  This validates:
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: external-svc-dns
spec:
  hosts:
  - foo.bar.com
  location: MESH_EXTERNAL
  ports:
  - number: 80
    name: http
    protocol: HTTP
  resolution: DNS
  endpoints:
  - address: us.foo.bar.com
    ports:
      http: 8080
  - address: uk.foo.bar.com
    ports:
      http: 9080
  - address: in.foo.bar.com
    ports:
      http: 7080

It also validates if we use https instead of http throughout.

Thanks, this fixes for me.

Re-opening to track documentation problem.


Provide seek-able interface to Client

rust-oci-client has Client::pull_blob_stream but this is not seek-able. I'm looking for a seek-able interface because it allows me to read ranges of bytes from a blob and extract a Toc (Table-of-Contents) data structure from an eStargz image.
stargz-snapshotter uses containerd's seek-able ContentStore to achieve the same.
We at modal.com are open to upstreaming this functionality if suitable :)

Thanks for the issue @thundergolfer! Is there any reason what you're doing couldn't be achieved with using StreamExt (or TryStreamExt) methods like chunks or take?
Using something like AsyncSeek wouldn't work unless we buffered into memory (because we can't go backwards in the stream)

Thanks for the reply @thomastaylor312. I think I ultimately need an interface which will materialize arbitrary HTTP range requests against the blob and though I don't get how chunks would do it I think skip + take may end up working.
I do see now that pull_blob_response accepts an offset which gets stuck into a range header. So if there was just an additional len: u64 or similar to do bytes={offset}-{offset+len} then I think I'd be done :)

Closed in #163


Storybook - add rules to limit the storybook action triggering

Please describe the task that needs to be done
Add rules to restrict the storybook triggering - e.g. limit the directories where the code changes happened - similar to this config

@tplevko , what do you think about skipping the storybook action when the PR is not ready? This way we can push all the changes as many times as we want for review purposes, and once we're good, we can enable the PR for an entire test suite

Also, using [skip ci] seems to avoid executing the workflow, so maybe that could be an alternative from the contributor side to avoid extra runs
feat(CanvasForm): Add support for ErrorHandler [skip ci]


Camera1 with openGL view is laggy

Hi again
I've tried to set fps to 30 when use prepareVideo method it's smooth but preview is too dark, and I changed it to 5fps it's crystal but it's very lag, So the question is what is the best fps to make preview smooth and how to? Thank you in advance

Hi,
This preview error is an error in specific devices. Read this:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/issues/184
You can try use this reference to fix your error. Can you tell me your device model and API?


Installing Rocketeer gives version 2.1.2, not version 2.2.0 (which is on packagist)

Hi,
When wgetting http://rocketeer.autopergamene.eu/versions/rocketeer.phar as per installation instructions, I end up with version 2.1.2.
I really need version 2.2.0 though, since that's the version in which the LocalCloneStrategy is added (https://github.com/rocketeers/rocketeer/blob/master/src/Rocketeer/Strategies/Deploy/LocalCloneStrategy.php), which is the only strategy suitable for me until SSH Agent forwarding is added (https://github.com/rocketeers/rocketeer/pull/373) so I can clone remotely with the help of agent forwarding.
Would it be possible that http://rocketeer.autopergamene.eu/versions/rocketeer.phar is updated to v2.2.0? Thanks in advance!

@Anahkiasen please update the phar file, as the composer installation is having all kinds of collisions

An option is to build your own .phar file.

Fixed


Julius/feature/notification

Describe your changes
Implemented the background and foreground notification for the app.
Screenshot:

The additional .env file is uploaded here: Confluence
Issue ticket number and link
Ticket number: FIR-27
Link: FIR-27

I think it's broken because the .env file is not there :(. Is there any way to inject it during the CI/CD process?


Request for community help - Tests Failing on CI

I recently switched from protractor to testcafe because it failed and was flaky.
On my local machine everything runs smoothly.
On CI it always fails with the same error:
ERROR The HeadlessChrome 64.0.3282 / Linux 0.0.0 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues.
I've tried many different configurations including:

Tried both TravisCI and CircleCI
using --app to run the example:cli or running the example:cli separately
different browsers: chrome, chrome:headless, firefox
with runit reporter and without

If I SSH into the machine and run TestCafe it sometimes passes smoothly and sometimes give me the same error.
I also monitored the memory and doesn't seem like a problem there.
If anyone has time to help or has an idea for a possible solution - will be very helpful.
Thanks

Update - I'm using saucelabs and now it works, except for 2 steps which failed for no apparent reason.
So I'm closing the issue since it's low priority


Carthage Support

YogaKit needs Carthage Support. There was some discussion about it in #352

What is the best way to move this forward? In #352 you mentioned that you guys needed to modify the Xcode project file and Info.plist related with facebook.

@guidomb I would go ahead and put up a new pull request. I will work in parallel to unblock the diff.

@dshahidehpour I'll still like to have Carthage support. What can I do to help? Been trying to create an Xcode project but I having some issue to create a framework without modifying how C header files are included

Can you paste the error you are running into? Sorry I haven't responded, haven't been able to focus on yoga in a bit.

The main blocker I see is that all the Objective-C code includes yoga using angle brackets imports, #import <yoga/YGEnums.h>. This does not play nice with frameworks. You can sort of get around this by playing with "Header Search Path", "Library Search Path" and "Other C Flags" build setting options. I mean, you can get it to compile but when you try to import the resulting framework into another project you get errors saying that yoga/YGEnums.h cannot be found.
I'm no expert with Xcode build settings but I think using angle brackets imports is not an option if you want to do a framework. I understand this is done this way because of how Buck works, Am I correct?
Would it be possible for you guys to create an Xcode project that is able to build a framework project and then modify the Buck file to play nice with your infra? You (or @emilsjolander) created an Xcode project but then reverted the change. What was the problem there?

We need Carthage support for YogaKit.

Hi guys, is there any progress on integrating Carthage?

I don't think we'll want to move forward with this, vs CocoaPods and/or SPM.


What is the URI/URL for Embeddings with AzureOpenAI

Library name and version
Azure.AI.OpenAI 1.0.0-beta.5
Query/Question
In the examples 1 through 5:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/openai/Azure.AI.OpenAI/tests/Samples/Sample01_Chatbot.cs
URL is a placeholder: "https://myaccount.openai.azure.com/"
What is "myaccount"? Azure Resource Name? Subscription Name?
This Url is used for completions and chat. What would be URL for Embeddings? Is the following correct?
https://{resourceName}.openai.azure.com/openai/deployments/{deploymentId}/embeddings?api-version={apiVersion}
(It took it from somewhere on MS sites, and it might be for Semantic Kernel case, or HttpClient)
So what is Embeddings URL for AzureOpenAI?
Is there any example for Embeddings?
Environment
Win11
.NET 7
VS2022 17.5.4
Azure.AI.OpenAI 1.0.0-beta.5

@securigy "myaccount" will be the resource name of the Open AI service.  You can refer to this document to get the embeddings using the Open AI Endpoint.
Thanks.


Move optional annotation on structs to be before the field name

So... we need modifiers on field names rather than on the types themselves
e.g. I think:
struct Foo:
  optional Bar: string

reads better than
struct Foo:
  bar: optional string

The reason is that optional is part of the struct rather than part of the type. I could implement Optional types, but those would be declared Optional<Bar> instead

Another option for this would be to do away with the optional keyword to begin with. It's a little silly and might not be a good model to keep going forward, but frankly who knows.

implemented by above


perf: remove redundant text from usage section

Removes redundant text from the usage page for the Select component.
Changelog
Changed

Changed usage paragraph to remove redundant text.

I have read the DCO document and I hereby sign the DCO.


Improved fastlane Fastfile

All projects now use rubocop
We don't have to deal with Travis any more

:rocket: :sparkles:


net/ioballoc: add support of alloc with timeout net_iobtimedalloc()

Summary
net/ioballoc: add support of alloc with timeout net_iobtimedalloc()
net/tcp: add interface tcp_wrbuffer_timedalloc()
Impact
N/A
Testing
ci check

Depends on: https://github.com/apache/incubator-nuttx/pull/5524

Other parts LGTM

Great work!


Discrepancy in vertical funnel the numbers

Vertical Funnel: 534->18->1
Traditional Funnel: 534->11->2

Could not reproduce


write Tests!

As Product owner I want a test frame to take care about the quality of the published product.
WHEN refactorings or new features have to be implemented,
THEN the existing features of the product should not be effected.

Unittests for service done.


https://multi-trustpades.net/pond0x/

Community website. Should not be blocked. Please help so I can claim tokens. Thank you

That site is clearly a scam.


fixing inorder traversal

I didn't recognize there is already a pull request for this.

This one is shorter :)


[server-wallet] Remove skipEvmValidation config option

There shouldn't be a reason to have this be a configuration option anymore assuming the server waller code is correct.

This is likely not possible right now, since the AttestationApp that's been deployed is no longer the AttestationApp in this codebase.

Well, an alternative solution could be to use 0x00..00 for that app until we can be sure the correct code is on-chain.

Moving to the icebox for now as this isn't super important.


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Changed the conditional in the validate_user function so that it returns False for the usernames not starting with an alphabet.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!


New telemetry reporter "cleans" LSP methods in event properties

The new telemetry reporter in #11524 appears to be stripping non-paths in properties. Some events contain LSP methods, which can contain slashes, e.g. textDocument/completion. But they get sent as "<REDACTED: user-file-path>" instead.
A workaround might be to go change the LS to maybe send textDocument-completion or something that doesn't look like a path, but I think that the filtering is over-doing it. Perhaps there's a way to whitelist specific things.
Filing to not forget before a release.
@karthiknadig @kimadeline

Should be fixed now.


Addition of AzureChatOpenAI model

This model supports 32k tokens with GPT4 model

Made the changes. Please review it now


Change absolute paths to relative paths.

I noticed that the links in the list of core interfaces on readthedocs are broken.
This was caused by the use of absolute paths in the link target. I changed the paths to relative ones.

:+1:


Get fall count

Is there a way to get Fall count?

Hello, currently there is no way to get the fall count, but it will be available in a new version we are working on.


Add missing parameter for cached results

Setting startNew to off and maxAge will still trigger a new analysis. The parameter fromCache must be explicitly be set to on.

Closing because is hanging. Will reopen in a minute

Hi @jrunu , sorry for the noise but we had issues letting the CI run on your changes. Now it runs and has some suggestion about the formatting. Could you take care?

Hi, no worries. I pushed a fix for the styling.


id -> instancetype

Hi @lucatorella ,
you probably posted this PR on the wrong repository. This is a fork of https://github.com/ZipArchive/ZipArchive. Would you consider giving this repo a try? To me it seems this patch has already been applied there (the project layout seems to have changed, though): https://github.com/ZipArchive/ZipArchive/blob/master/ZipArchive/Main.h#L65
Kind regards,
Lukas


Dep for s390x platform

I want to use dep for s390x platform and i see that https://raw.githubusercontent.com/golang/dep/master/install.sh script is supported for X86, ppc64, ppc64le. I don't see the support for s390x.

Could you please help me to get the support of dep for s390x platform.

I tried to build, but getting the below error:
root@platcon5:~/go/src/github.com/golang/dep# make
go fmt ./...
DEP_BUILD_PLATFORMS=linux DEP_BUILD_ARCHS=s390x ./hack/build-all.bash
Building for linux/s390x with CGO_ENABLED=0
cp ./release/dep-linux-s390x dep
./dep check
./hack/lint.bash
open github.com/golang/dep: no such file or directory
open github.com/golang/dep/cmd/dep: no such file or directory
open github.com/golang/dep/gps: no such file or directory
open github.com/golang/dep/gps/internal/pb: no such file or directory
open github.com/golang/dep/gps/paths: no such file or directory
open github.com/golang/dep/gps/pkgtree: no such file or directory
open github.com/golang/dep/gps/verify: no such file or directory
open github.com/golang/dep/internal/feedback: no such file or directory
open github.com/golang/dep/internal/fs: no such file or directory
open github.com/golang/dep/internal/importers: no such file or directory
open github.com/golang/dep/internal/importers/base: no such file or directory
open github.com/golang/dep/internal/importers/glide: no such file or directory
open github.com/golang/dep/internal/importers/glock: no such file or directory
open github.com/golang/dep/internal/importers/godep: no such file or directory
open github.com/golang/dep/internal/importers/govend: no such file or directory
open github.com/golang/dep/internal/importers/govendor: no such file or directory
open github.com/golang/dep/internal/importers/gvt: no such file or directory
open github.com/golang/dep/internal/importers/importertest: no such file or directory
open github.com/golang/dep/internal/importers/vndr: no such file or directory
open github.com/golang/dep/internal/test: no such file or directory
open github.com/golang/dep/internal/test/integration: no such file or directory
./hack/lint.bash: line 12: megacheck: command not found
Makefile:21: recipe for target 'validate' failed
make: *** [validate] Error 127
root@platcon5:~/go/src/github.com/golang/dep#

If i need to build manually for s390x, please share the complete steps to build along with the prereqs

Using go1.11.2 linux/s390 I simply typed
go get -u github.com/golang/dep/cmd/dep
and dep was installed (version  : devel).
Nonethless, I would like to renew the request to have the s390x platform available on the releases page. Thank youi.


device pixel ratio as setting

With #141 reverted, this would be an approach of letting users define the pixelDensity.
In this PR this is achieved with a client side setting, which gives users the flexibility to decide whether or not to use it depending on custom constraints. For example "use a higher pixelDensity on desktop devices, but default to 1 on mobile devices".
Biggest change here is that the adaptiveStream setting can now take the type AdaptiveStreamSettings.
Conceptually pixelDensity belongs to the adaptiveStream setting and to foreshadow for when it might be possible to customize the adaptiveStream even further, I thought it would be worth it.

for Swift SDK I was thinking may be something like :
enum AdaptiveStreamMode {
  case off
  // up to sdk what to do
  case auto
  // depends on current screen's pixel density
  // In macOS window can be dragged in to another display with different pixel density, so better re-compute
  case screen
  case fixed(pixelDensity: Int)
}

@hiroshihorie dragging to another screen with a different pixel density is a very good point. In that case 'screen' makes a lot of sense.
Do you think that pixelDensity will stay the only factor potentially influencing AdaptiveStreamMode ?
Your suggestion looks a lot nicer than mine, with the caveat that it is tightly bound to pixel density only.
But I also cannot think of another factor influencing the adaptive stream mode, you?

But I also cannot think of another factor influencing the adaptive stream mode, you?

You have a good point, if i think about it there could be a few more options.
for example, how often to compute / send to the server (debounce time)

Nothing concrete, but looking at your enum maybe looking at pixelDensity with the options for auto, screen, fixed as one parameter of AdaptiveStreamMode ?


[BACKLOG-28706] - Provide mechanism to transport/identify Empty Varia…

…ble Values being Passed to Sub Job when run in AEL

As far ConcurrentHashMap does not allow null values, initialize variables as blank in case they are empty.

@pentaho/bb-8 Please review
Note: This is the complimentary PR for already merged https://github.com/pentaho/pentaho-ee/pull/2089 .

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/base/AbstractMeta.java
  engine/src/test/java/org/pentaho/di/base/AbstractMetaTest.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes (click to expand)
org.pentaho.di.core.auth.core.impl.DefaultAuthenticationConsumerFactory

Branch Change: -7.2% :small_red_triangle_down:
Complexity Change: -7.7% :small_red_triangle_down:

org.pentaho.di.job.entries.evaluatetablecontent.JobEntryEvalTableContent

Branch Change: -2.1% :small_red_triangle_down:
Complexity Change: -2.2% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:

org.pentaho.di.job.entries.getpop.MailConnectionMeta

Branch Change: -1% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.step.StepMeta

Branch Change: -0.6% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.datagrid.DataGridMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.7% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Branch Change: -1.8% :small_red_triangle_down:
Complexity Change: -1.1% :small_red_triangle_down:
Instruction Change: -0.4% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -1.1% :small_red_triangle_down:
Complexity Change: -1% :small_red_triangle_down:

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change: -3.3% :small_red_triangle_down:
Complexity Change: -3.9% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:
Line Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.pgbulkloader.PGBulkLoaderMeta

Branch Change: -1.8% :small_red_triangle_down:
Complexity Change: -0.9% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.sort.SortRowsMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change: -0.5% :small_red_triangle_down:

org.pentaho.di.www.TransformationMap

Branch Change: -1.1% :small_red_triangle_down:
Complexity Change: -1.6% :small_red_triangle_down:


fist not recognizing

it is not recognizing my hand what to do

Please be careful about the lightning and shadows while application is running. Under normal conditions (like in a room), this application can detect fist or palm (hand) easily and successfully as you can see in the project demo video.

Please be careful about the lightning and shadows while application is running. Under normal conditions (like in a room), this application can detect fist or palm (hand) easily and successfully as you can see in the project demo video.


setup_requires.txt file is not generated

The documentation clearly says it is supposed to be generated in the egg tarball, but python setup.py sdist does not generate it.

Reference to docs http://setuptools.readthedocs.io/en/latest/formats.html?highlight=setup_requires.txt#setup-requires-txt

See https://github.com/pypa/setuptools/issues/352#issuecomment-202917971.


2023-07-03: Add timestamps and answers

Adds timestamps to all questions and summaries/key quotes of the answers.
Adds some Qs that were missing from the notes, though I'm unable to
provide links to those.
Thanks for the great podcast!

Thanks; hit me up if you'd like some OxF stickers


Dronekit Control Motors Command

Hi,
I am planning to build a rover boat using pixhawk4. But I will use Jetson Nano as the master to control the pixhawk4 with python script. Is there any python command that can control the speed of the motors individually? Or I can only control the vehicle speed? Because we are planning to design our own control system instead of using pixhawk built in controller

Hello, I am in the same. Have you got any results?


tables.drift.types.temp.dart:10:12: This requires the 'nonfunction-type-aliases' language feature to be enabled.

Hello.
I have updated from version 1.7.1 to 2.7.0. I have SQL statements like CREATE TABLE stored in the tables.drift file. Is this problem happening because of a syntax error? What else can I try based on this message?
[INFO] Generating build script...
[INFO] Generating build script completed, took 216ms

[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 1.5s

[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 747ms

[INFO] Running build...
[INFO] Running build completed, took 24ms

[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 519ms

[SEVERE] json_serializable:json_serializable on lib/repo/db/tables.drift.types.temp.dart (cached):

This builder requires Dart inputs without syntax errors.
However, package:bodycalendar/repo/db/tables.drift.types.temp.dart (or an existing part) contains the following errors.
tables.drift.types.temp.dart:10:12: This requires the 'nonfunction-type-aliases' language feature to be enabled.
tables.drift.types.temp.dart:11:12: This requires the 'nonfunction-type-aliases' language feature to be enabled.
tables.drift.types.temp.dart:12:12: This requires the 'nonfunction-type-aliases' language feature to be enabled.
And 13 more...

Try fixing the errors and re-running the build.

[SEVERE] retrofit_generator:retrofit on lib/repo/db/tables.drift.types.temp.dart (cached):

This builder requires Dart inputs without syntax errors.
However, package:bodycalendar/repo/db/tables.drift.types.temp.dart (or an existing part) contains the following errors.
tables.drift.types.temp.dart:10:12: This requires the 'nonfunction-type-aliases' language feature to be enabled.
tables.drift.types.temp.dart:11:12: This requires the 'nonfunction-type-aliases' language feature to be enabled.
tables.drift.types.temp.dart:12:12: This requires the 'nonfunction-type-aliases' language feature to be enabled.
And 13 more...

Try fixing the errors and re-running the build.

[SEVERE] Failed after 551ms
pub finished with exit code 1

I solved the problem by changing the Dart version.
before
environment:
  sdk: ">=2.12.0 <3.0.0"

after
environment:
  sdk: ">=2.19.2 <3.0.0"

The solution is valid, the next drift_dev version will also detect this and apply a fix internally :)


Add node table to Overview dashboard

The tables can include IP, DC, Status, release

IP
DC
Status
Release

<IP_ADDRESS>
EU-1
UN
3.0.6

<IP_ADDRESS>
EU-1
UN
3.0.5

The IP should link to the per server dashboard for this node, similar to alert
If possible, column headers can be used for ordering, filtering (spreadsheet-like)
Dashboard level filtering should filter the table row

See also #151

@amnonh ?

Following

@tzach please see that you are assigned to review #614

closing with #614


⚠ Bofrost.at has degraded performance

In df18b5b, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1755 ms

Resolved: Bofrost.at performance has improved in e843d74 after 9 minutes.


Checking for asset existence at runtime?

Is there any way to check whether an asset exists at runtime?
I have some NetworkImages that take some time to load. I want to use placeholder image assets,if they exist, to show a low-res version until the NetworkImage is loaded. I can do this without the exists part using a FadeInImage.
I've been toying around with variations on this:
Future<bool> assetExists(String asset) {
  // Ok to load it, because it will be cached and is guaranteed to be used later anyways
  return rootBundle.load(asset).then((_) => true).catchError(() => false);
}

But catchError doesn't seem to catch the FlutterError thrown by the root asset bundle when the asset DNE.
Is there something I'm missing? Would I have to write a custom asset bundle class to get this kind of functionality?

Our solution here should probably be similar to our solution for https://github.com/flutter/flutter/issues/14089.

See also https://github.com/flutter/flutter/issues/9676.

This could potentially be addressed by the changes in https://github.com/flutter/flutter/pull/17614.

Closing as fixed by https://github.com/flutter/flutter/commit/2b8f2d05045590cd4aeb9f02c67baaa69db35e5e. The AssetManifest class provides the means to list assets from an AssetBundle (though I can't help but feel that this API is not as discoverable as AssetBundle).


Feature: enable Managed Identity access to monosize-storage-azure

With recent security push, using key based credentials is no longer security compliant. The monosize-storage-azure package solely uses key based credentials (see below) and would need to be extended to allow for managed identity as well.
https://github.com/microsoft/monosize/blob/351ae8e05fa2c01876120ff151f0255b50362c91/packages/monosize-storage-azure/src/uploadReportToRemote.mts#L33-L35

Chatted with @Hotell offline and agreed on this approach:
In order to support managed identity:

adding an extra type to AzureStorageConfig like managedIdentity: boolean
and then simply updating this function and use step 1 as a conditional to use the new managed identity approach. This would support the old key based secret approach while also adding an option for managed identity


Folders showing up as files while using custom file picker

See below image (On Android Emulator): -

Code: -
onChooseLocalFile() : void {
let extensions = [];
    if (app.ios) {
        extensions = [kUTTypeContent]; // you can get more types from here: https://developer.apple.com/documentation/mobilecoreservices/uttype
    } else {
        extensions = ['*'];
    }

    let options: FilePickerOptions = {
        android: {
            extensions: extensions,
            maxNumberFiles: 1
        },
        ios: {
            extensions: extensions,
            multipleSelection: false
        }
    };

    let mediafilepicker = new Mediafilepicker();

    mediafilepicker.openFilePicker(options);

    mediafilepicker.on("getFiles", function (res) {
        let results = res.object.get('results');
        console.dir(results);
    });

    mediafilepicker.on("error", function (res) {
        let msg = res.object.get('msg');
        console.log(msg);
    });

    mediafilepicker.on("cancel", function (res) {
        let msg = res.object.get('msg');
        console.log(msg);
    });

}

You should add extension type extensions = ['txt', 'pdf'];

Did you ever find a solution?  I am facing the same issue.

It seems that the maintainer does not care about issues as long as it works for his own use case.


Fix unexpected cursor movement on on-demand imap loading

i_CTRL-O may change the cursor position in an unexpected way.
For example, when autoindent is set, the user will expect that
i<Space><Space>asdf<CR><C-O> will place the cursor right below a.
However, <C-O> moves the cursor to the first column of line 2.
Expected:
  asdf
  █

Actual:
  asdf
█

Therefore, it's desirable to use i_CTRL-\_CTRL-O, the variant of
i_CTRL-O that does not move the cursor.

Merged, thanks!


Implement concurrency limit

The Runner currently executes all jobs that needs to be run at once. This can be a bad thing if too much load is on or there are other runners.

Done


robocopy-gui: Use archived link

Original link is dead

[x] I have read the Contributing Guide.

/verify

Blocked on https://github.com/ScoopInstaller/Binary/pull/16

Due upstream is no longer available and unknown licenses. extras/robocopy-gui and extras/richcopy(#10806) distributed as-is.

/verify

@HUMORCE somewhat related, should I also be doing the same for this https://github.com/ScoopInstaller/Main/commit/78622a7dd19e066391aed3a8f0b9604dcc4dbab0 which got merged recently


How can I use this library with gradle project?

Is the only way to use this library is to download the source code to my project? Or can I include it in my gradle project? Thanks!

You can use this library in your gradle project using jitpack.io.

Ok, thanks!

Is the only way to use this library is to download the source code to my project? Or can I include it in my gradle project? Thanks!

@spkingr, could you, please, give an example of import in gradle for JKid. I still have problems with understanding what should I place in implementation in gradle(

@InspectorZheleshka  Look this: https://jitpack.io/#yole/jkid/ec66c0b13c

FYI as I stumbled over that as of today:

To include jitpack:

repositories {
    ...
    maven { url = uri("https://jitpack.io") }
}

Source Stackoverflow - CommonsWare

jkid:

dependencies {
    ...
    implementation("com.github.yole:jkid:60ec0e3284")
}

Note that in Kotlin Gradle you use " instead of '


Missing variable on the Enterprise version

External Contributor Checklist

🚨 Please review the guidelines for contributing to this repository.

[x] Make sure that all commits follow the conventional commit specification for the Mender project.

The majority of our contributions are fixes, which means your commit should have
the form below:
fix: added missing variable `MENDER_SERVER_DOMAIN` on the Enterprise version

Changelog: documentation fix
Ticket: None

[x] Make sure that all commits are signed with git --signoff. Also note that the signoff author must match the author of the commit.

Description
fix: added missing variable MENDER_SERVER_DOMAIN on the Enterprise version

nice catch!

@mender-test-bot cherry-pick to:

3.4.x

@mender-test-bot cherry-pick to:

3.4.x


How to use this command?

Could I ask a question please, I don't know where to ask the question?
/gamerule changed:fusabilityDurationPlayer ture/false
How to use this command? And If I use this command, what happen? Could you give some examples?

The issues page here is not a place to ask questions about the mod. It's for reporting issues the mod has or with other mods.
To answer your question though, that gamerule is not a true/false rule, but an integer rule. It's how many ticks after the player is TF'd that they're able to fuse for (e.g. Shark + Shark, Light latex wolf + light latex knight).
If you have any other questions, please ask them in the Discord.


Simplified task model, made gitPush run before bintrayUpload

Best to review commit by commit

Removed task 'bintrayUploadAll' to drive simplicity
Used mustRunAfter instead of shouldRunAfter (fixes #182)

For motivation on the changes, please review commit-by-commit

Thank you for review! Merging.


Major Bug

I upgraded from v0.1.0  to v0.3.1 and it seems to hang in the set command. The CPU stays stuck at 100% and the application does not run but haxmap internals are the only things running. I did a profiler in this condition and here is the image. When I downgraded v0.1.0, all was ok. Problem appears to exist for anything above v.0.1.0

@gitperson1980 can you also share your benchmarking code so I can debug on my own system ?

I was not benchmarking but using it in an actual application. I had about 9 thousand entries of string keys with pointer to struct values. I used a combination of sets and gets. However I suspect that this maybe happening when using the haxmap range iterator function.

@gitperson1980 understood, one of the major differences between v0.1.0 and v0.3.1 is the map growing asynchronously (in 0.1.0) and synchronously (in 0.3.1) as highlighted by this issue https://github.com/alphadose/haxmap/issues/2
So to narrow down the issues more specifically, in version 0.3.1 itself can you try editing this line directly in your codebase https://github.com/alphadose/haxmap/blob/main/map.go#L158 and change it to go m.grow() ?
This will tell us whether the bottleneck is happening due to grow operations or something else.
If the problem doesn't lie in the grow operations then I shall test this with 9k+ long string keys in order to replicate the issue.

I will test this out Tuesday after labor day as I will be busy this weekend. I will let you know.

I found that if I set 9000 items after pre-allocating 10000 items as haxmap.Newstring, *mystruct, all is fine even in v0.3.1. However if I only pre-allocate 1 as  haxmap.Newstring, *mystruct and then rapidly load 9000 items then it will get stuck as above.

@gitperson1980 I have already come up with a possible fix for the rapid growth choke issue, let me test that out and then get back to you

@gitperson1980 Thanks a lot for the info, its insightful, plus I have already come up with a possible fix for the rapid growth choke issue, let me test that out by replicating your conditions and then get back to you

One thing I didn't check is .. even if I pre-allocate 10000 and load 9000  and I will delete a chunk at times and load new ones does haxmap keep the initial 10000 pre-allocated spaces? Does it de-allocate them at delete and be forced to re-allocate again if more items are added, thereafter?

@gitperson1980 after deletion the map keeps those extra spaces
the map only grows in size and doesn't shrink

One feature that would be nice is to have a growth number or factor specified with the pre-allocation parameter.
haxmap.New[string, *mystruct](10000, 100)   where 100 is an extra 100 that is allocated if it runs out of spaces at the next set.  This will cut down on additional allocations if done 1x1.  Users who know the growth rate can set this to minimize allocations on growth.

Just adding to this, I am also experiencing a lock-up on calling .Set(). This isn't using a huge dataset either.

@alphadose is there not a possible bug in .Set() due to the resize state not being checked at the beginning? i.e. it loads the current datamap without checking state, but if a grow op is happening concurrently then the datamap it is acting on could be stale?

@NyaaaWhatsUpDoc

it loads the current datamap without checking state, but if a grow op is happening concurrently then the datamap it is acting on could be stale?

the map can be used safely even during a grow operation hence this is not an issue

@gitperson1980 @NyaaaWhatsUpDoc @nightwolfz I have fixed this issue with https://github.com/alphadose/haxmap/commit/c46b1873d4de1f280f2ed47b19f8227a72b90752
Can you run the tests on your own application with the latest master branch and check if your application is still freezing up or not ?

@NyaaaWhatsUpDoc

it loads the current datamap without checking state, but if a grow op is happening concurrently then the datamap it is acting on could be stale?

the map can be used safely even during a grow operation hence this is not an issue

no what i mean, is saying during a grow operation it allocates a new DataMap, then updates the atomic ptr to point to this new DataMap, but while this is going on the instance of .Set() could have been acting on the previous instance of DataMap.

No what i mean, is saying during a grow operation it allocates a new DataMap, then updates the atomic ptr to point to this new DataMap, but while this is going on the instance of .Set() could have been acting on the previous instance of DataMap. Or does DataMap take account for this under the hood?

Yes it does. Both instances of DataMap (old and new) will give the same result. Ultimately all data is stored in a single linked-list.

No what i mean, is saying during a grow operation it allocates a new DataMap, then updates the atomic ptr to point to this new DataMap, but while this is going on the instance of .Set() could have been acting on the previous instance of DataMap. Or does DataMap take account for this under the hood?

Yes it does. Both instances of DataMap (old and new) will give the same result. Ultimately all data is stored in a single linked-list.

Ah understood. I might do a dig through the code and properly understand it all at some point.
Will also update my previously-mentioned usecase and report back.

@gitperson1980  @NyaaaWhatsUpDoc I have published a new release which should solve all your problems https://github.com/alphadose/haxmap/releases/tag/v1.0.0
Tests like this one provided by @nightwolfz which were failing earlier, are now working https://github.com/alphadose/haxmap/blob/main/e2e_test.go#L276
Re-open this issue in case the problem still persists on your end


Support for publicRuntimeConfig

Would be nice to support $config for LOGROCKET_ID, etc.

Details: https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-runtime-config/
See for example the way @nuxtjs/axios has implemented it: https://github.com/nuxt-community/axios-module/blob/master/lib/plugin.js#L192-L198

@danielroe Good point. Do you think you could open a PR for the support?


Update mac-installs.md

Updating installations with error prevention.

@TrinityChristiana let me know when you’re ready for a review.

@TrinityChristiana let me know when you’re ready for a review.

This is now ready fro review!


Parse 3rd Party App MapBox Style

Add functionality for parsing and rendering MapBox style JSON from the calling app.

Create MapBox Style GeoJSON on the 3rd party app
Pass the GeoJSON Data to Kujaku with the MapBox Style to merge with
Render the final style on the Kujaku MapView

Rendering the final style on the Kujaku MapView

Get the MapBox Style:

JSON String
File path to Style

Get the Style

Set the style on the MapView

Update OpenSRP ZEIR Support Libraries to v24


Fixed handling of empty non-null version comments. Zero-length patter…

…n makes the formatter barf.

Can you check if this is working correctly on my branch now?
I believe I handled this case in the new TableWriter, but would be good to double check.

Yes, I think it is good now.


⚠ ClamAV has degraded performance

In 22e046c, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 196 ms

Resolved: ClamAV performance has improved in 3a88849.


53 implement internationalisation

Not ready to merge, does not work. Missing i18n param for all pages except index


Deprecate attachConnectorsToContext

Instruct people to attach connectors manually for every request since it makes the code clearer.

If anyone needs more instructions for how to do this, please post on this issue!

What about makeExecutableSchema({ connectors }) - it now throws this deprecation warning too. How can I attached connectors to context myself?

Like so?
app.use('/graphql', bodyParser.json(), apolloExpress({
  schema: myGraphQLSchema,
  context: {
    connectors: { A, B }
  }
}))

Yeah that looks right!

FYI, I came by this issue by following your documentation: http://dev.apollodata.com/tools/graphql-tools/connectors.html

Thanks for the reminder, I was working on those docs but didn't get that far - but I made the makeExecutableSchema page much better so far. Mind sending a PR to remove that page?

Hi.  I found this issue by looking in your schemaGenerator.js file to try to figure out how to manually set context for my graphQL queries through makeExecutableSchema
var attachConnectorsToContext = deprecated_decorator_1.deprecated({
    version: '0.7.0',
    url: 'https://github.com/apollostack/graphql-tools/issues/140',
}

Normally "express-graphql" sets context to my Express request object, as I want, but now that I'm starting to add things like data loader instances to my context object, I need context to be something in my unit tests.  How do I get context to come through as something other than undefined?
Trying my best to reverse engineer the Apollo code, it looks like something like
connectors: { Book: class {} }
is what I want to generate a context object for Book queries, but that's not quite right, and since this is deprecated anyway, I figured I'd ask.  Any help would be much appreciated :)

The comment above,
app.use('/graphql', bodyParser.json(), apolloExpress({
  schema: myGraphQLSchema,
  context: {
    connectors: { A, B }
  }
}))

won't quite work for me, since I'm not running these queries through any server. I generate the schema, and I call it directly in my automated tests.


New version: AbbreviatedStackTraces v0.2.0

Registering package: AbbreviatedStackTraces
Repository: https://github.com/BioTurboNick/AbbreviatedStackTraces.jl
Created by: @BioTurboNick
Version: v0.2.0
Commit: e840cef0ce0221bef626f59f6f0dcb4d0e90ad35
Reviewed by: @BioTurboNick
Reference: https://github.com/BioTurboNick/AbbreviatedStackTraces.jl/commit/e840cef0ce0221bef626f59f6f0dcb4d0e90ad35#commitcomment-128319171

Cancel


Integrate Jest for Unit and Integration Testing

Objective:
To ensure the reliability and quality of our backend codebase, we aim to integrate Jest, a delightful JavaScript Testing Framework with a focus on simplicity, for writing unit and integration tests. This setup will enable us to test individual units of code, as well as the integration points between them, to catch and fix bugs early in the development process.
Tasks:

Install Jest and Supertest: Add Jest as our testing framework and Supertest for testing HTTP endpoints.
Configure Jest: Set up Jest configuration for Node.js environment and specify test directories and patterns.
Write Sample Unit Test: Create a simple unit test for a utility function to demonstrate Jest's syntax and usage.
Write Sample Integration Test: Develop a test for an API endpoint using Supertest to showcase how to test HTTP interactions.
Setup Test Scripts: Add scripts to package.json for running tests, including a watch mode for development.
CI Integration: Configure GitHub Actions workflow to run tests automatically on push and pull requests to ensure code quality.
Documentation: Update the README.md with instructions on how to run tests and add test coverage goals.

Acceptance Criteria:

Jest and Supertest are correctly installed and configured in the project.
Sample unit and integration tests are created, demonstrating how to write tests with Jest.
Tests can be easily executed using npm scripts, and test results are clearly reported.
Continuous Integration setup runs tests automatically for every push and pull request.
Project documentation includes clear guidelines for running tests and contributing to test coverage.

Deliverables:

Jest and Supertest configuration files and dependencies added to the project.
Sample unit and integration tests written for existing code.
Updated GitHub Actions workflow to include a testing step.
Documentation updates including testing guidelines.

Notes:

Focus on testing critical components first, such as authentication, user management, and core business logic.
Aim for a test coverage goal (e.g., 80%) but prioritize meaningful tests over hitting arbitrary numbers.


[PE-D][Tester A] Selecting person for Schedule UI requires mouse clicking action (feature flaw?)

Since the main target user of this tP is CLI focused, is displaying the persons on the schedule ui section using a clickable drop down list using a mouse perhaps a good idea?

my suggestion is that it be better if this displaying or selecting of person's schedules was done as a command through the CLI instead to be consistent with the target audience

Labels: severity.VeryLow type.FeatureFlaw
original: Kappaccinoh/ped#11

Plan enhancement: Add command to view schedules


Random Crash with Log

Please provide a brief summary of the bug
Minecraft simply crashes. This only happens when I play; it doesn't crash in my long overnight AFK sessions.
Here is one of the crash logs:
hs_err_pid21168.log
Also, I don't play vanilla minecraft. I'm playing modded minecraft with fabric. I somewhat suspect a mod in this list to be causing the issue (most recently added .jar files are at the top)

Please provide steps to reproduce where possible
I could not reproduce it intentionally. It happens at random.
Expected Results
Minecraft plays without crashing.
Actual Results
Minecraft crashes randomly.
What Java Version are you using?
openjdk <IP_ADDRESS> 2022-08-12
OpenJDK Runtime Environment Temurin-<IP_ADDRESS>+1 (build <IP_ADDRESS>+1)
OpenJDK 64-Bit Server VM Temurin-<IP_ADDRESS>+1 (build <IP_ADDRESS>+1, mixed mode, sharing)
What is your operating system and platform?
Windows 10 Home
Version 21H2
OS Build 19044.2130
How did you install Java?
Using OpenJDK17U-jdk_x64_windows_hotspot_<IP_ADDRESS>_1.msi
Did it work before?
No.
Did you test with other Java versions?
Yes, I have tried:

jdk-<IP_ADDRESS>_windows-x64_bin.exe (installer)
jre-8u341-windows-x64.exe (installer)

Relevant log output
See attached at the top
Any help is appreciated. I rarely report problems with software, but this one is bugging me because I risk having my long time-lapse recordings get corrupted and cut mid-way. If I'm in the wrong place, a pointer to the right place would also help. Thanks!

Duplicate of #624


Unexpected token '...'. Expected a property name

Describe the bug
 A clear and concise description of what the bug is.
Unexpected token '...'. Expected a property name
Version
 The Fuse.js version where this bug is happening.
<EMAIL_ADDRESS>ios 10.3.1
Is this a regression?

 Yes, the previous version in which this bug was not present was: ...
🔬Minimal Reproduction

Additional context

Using this in IE?

Not sure about OP, but I am attempting to use it in IE11.  The arrow function in fuse.esm.js prevents this.  Is there a different way I should be using Fuse?

@krisk Using this in android 5.1-7.1 and ios 10.3.1
Must be brought in manually /dist/fuse.min.js

Types for fuse min:
declare module 'fuse.js/dist/fuse.min.js' {
  import Fuse from 'fuse.js';
  export default Fuse;
}

I used the dist version, but still seeing object spread in the main bundle...


Add a "Duplicate Frame" button

Primary goal:

Add a new button to duplicate the current frame (and insert the new frame after the current frame)

Secondary goal:

Always highlight the current selected frame (so it's obvious which one will be deleted or duplicated)

Thanks for the great software!

Right!
Good point.
I must say the entire "frames" thing is a bit underdeveloped currently.
I had a prototype for animation in place, but I left it out for now because it was too unfinished to release.
but indeed: a "duplicate frame" option is a must.

That's added. (Right click on a frame)
You can also now drag the frames to reorder them.


LMDB reader Error in Reading Data of multi-thread, queue based input pipeline

Hi,
I am now using LMDB reader to read and decode my custom data into tensorflow training pipeline, based on the example:
def read_my_file_format(filename_queue):
  reader = tf.SomeReader()
  key, record_string = reader.read(filename_queue)
  example, label = tf.some_decoder(record_string)
  processed_example = some_processing(example)
  return processed_example, label

def input_pipeline(filenames, batch_size, num_epochs=None):
  filename_queue = tf.train.string_input_producer(
      filenames, num_epochs=num_epochs, shuffle=True)
  example, label = read_my_file_format(filename_queue)
  min_after_dequeue = 10000
  capacity = min_after_dequeue + 3 * batch_size
  example_batch, label_batch = tf.train.shuffle_batch(
      [example, label], batch_size=batch_size, capacity=capacity,
      min_after_dequeue=min_after_dequeue)
  return example_batch, label_batch

Here, I designed my own decoder and used LMDB reader here. But the problem is that, when the num_epochs is not 1, there will be ERROR:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Could you help check this?
Thanks

The detailed code is like:
set data directory
CURRENT = os.path.abspath(os.path.dirname(file))
DATA_DIR = os.path.join(CURRENT, 'gt')
DB_DIR = os.path.join(DATA_DIR, 'toy_db', 'data.mdb')
OUT_DIR = os.path.join(DATA_DIR, 'out')
def tf_lmdb_reader():
test_queue = tf.train.string_input_producer([DB_DIR], num_epochs=2)
reader = io_ops.LMDBReader()
key, value = reader.read(test_queue)
npr_line, mask, train_input, depth, normal = decode_block(value, [380, 380, 12])
queue_buf = 1000
cap_shuffle = queue_buf + 3 * 1

batch_data = tf.train.shuffle_batch(tensors=[npr_line, mask, train_input, depth, normal],
                                    batch_size=9,
                                    num_threads=5,
                                    capacity=cap_shuffle,
                                    min_after_dequeue=queue_buf)

with tf.Session() as sess:

    init_op = tf.group(tf.global_variables_initializer(),
                       tf.local_variables_initializer())
    sess.run(init_op)
    coord = tf.train.Coordinator()
    threads = tf.train.start_queue_runners(sess=sess, coord=coord)

    try:
        step = 0
        while not coord.should_stop():
            cur_batch = sess.run([batch_data])
            step += 1
            print(step)
    except tf.errors.OutOfRangeError:
        print('Done')
    finally:
        coord.request_stop()

    coord.request_stop()
    coord.join(threads)

if name == 'main':
tf_lmdb_reader()

There should never be a SEGV.  I'm guessing the problem is on the LMDB reader. Do you have a stack trace?

I guess the reason is that there is lock file when we open the LMDB database, this will prevent us to read it again when one epoch is finished. I got some explanation from other questions, like:
When opening a database file, LMDB creates a lock file lock.mdb in the same folder to prevent that database being opened more than once. This unfortunately prevents us to enqueue the database file multiple times.
But how can solve this? I mean how to use LMDB reader to read database file more than one epoch in the above pipeline?

Have you considered whether using DataFlow from tensorpack (though independent of tensorpack dependency-wise) would address this?
There's an LMDB example here

@quaeler sorry, I did not try. I already convert my data to TFRecords, which is bug free and can use the pipeline I used for LMDB. And I am waiting bug fixation for LMDB.
Thanks

You mean the LMDB reader lacks a close?

I don't know what's causing the problem, but just want to mention that lmdb database can be opened without a lock when the transaction is read-only.

We do currently open it in read-only mode, but the documentation for the LMDB API states WRT read-only mode:
MDB_RDONLY Open the environment in read-only mode. No write operations
will be allowed. LMDB will still modify the lock file - except on
read-only filesystems, where LMDB does not use locks.

I guess so. But maybe some change is needed for using LMDB in the common pipeline like TFRecords.

Thanks for reporting the bug. I just saw this issue today. This PR #13396 should fix it. Sorry for the bug.

Hi all,
I was looking use my data which is present in LMDB form but i am unable to find any sample code or more usage documentation on using LMDB dataset in Tensorflow.
If someone has tried LMDB could share the usage experience .it would be very helpful.
Thanks

@vishalghor It's pretty much the same as other readers like TFRecordReader.
For sample code, you may take a look at the test case.
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/kernel_tests/reader_ops_test.py#L998

@bowang thank you for fast reply.I was able to read an LMDB file and print the values by assigning the tensor key and value to normal variables.
However, Is there any sample implementation of LMDB dataset for any opensource models such as inception v3 or an implementation of LMDB dataset for the retraining inception v3 tutorial by tensorflow.
It would be very helpful if a sample of usage in training a models is provided.
Thanks and Regards

Hi all,
I was able to read LMDB database using the following code:
from __future__ import print_function
import os
import tensorflow as tf
from tensorflow.python.framework import dtypes
from tensorflow.python.ops import data_flow_ops
from tensorflow.python.ops import io_ops
from tensorflow.python.ops import variables

prefix_path = "tensorflow"

def read_lmdb():
    with tf.Session() as sess:
        path = os.path.join(prefix_path, "testLMDB", "data.mdb")
        #print(path)
        reader=io_ops.LMDBReader()
        queue = data_flow_ops.FIFOQueue(200, [dtypes.string], shapes=())
        key, value = reader.read(queue)
        queue.enqueue([path]).run()
        queue.close().run()
       for i in range(1,no_of_key_value_pair)
            k,v = sess.run([key,value])
            print(k)

if __name__ == '__main__':
    read_lmdb()

But while researching more on LMDBReader,i found tf.LMDBReader also.
So what is the difference between io_ps.LMDBReader() and tf.LMDBReader().
The Tensorflow documentation speaks very minimal about various other forms of dataset format such as LMDB,HDF5 compared to TFRecord.
How such datasets be included in existing code?
Please help me in clearing the doubt due to lack of adequate documentation.
Thanks and Regards

@vishalghor io_ps.LMDBReader() and tf.LMDBReader() are the same. But the former is for internal use only. Thus I'd recommend to use tf.LMDBReader.
LMDBReader shares the same interface as TFRecordsReader. So you may follow the documentation of the latter. Once you get both key, value out of LMDB, it's up to you (and the LMDB you are using) to determine how to decode it. For example, if it's an image, you can pass the value to tf.image.decode_jpeg()

@bowang So you fixed the error of loading LMDB multi-epoch Segment Error?

@Enigma-li Yes. But it hasn't been merged yet. It'd be great if you can bring it to the notice of TensorFlow maintainers by commenting on it. #13396

@bowang Sure, already commented

Closing as the PR is merged.


Obsolete UIs and procedures

The part for "Add your data.." have obsolete UIs and procedures as Add your data feature has been GA now.
Really appreciate if there is an update to this excellent tutorial.
Thanks

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

ID: ccda6bfd-3e14-248b-a9cc-180711271ee3
Version Independent ID: e071efc2-fb3d-3ee9-9f29-69256c13bc05
Content: Build and deploy a question and answer copilot with prompt flow in Azure AI Studio - Azure AI Studio
Content Source: articles/ai-studio/tutorials/deploy-copilot-ai-studio.md
Service: azure-ai-studio
GitHub Login: @eric-urban
Microsoft Alias: eur

@satrijotomo
Thanks for your feedback! We will investigate and update as appropriate.

@satrijotomo - Thanks for pointing this out. The feature teams are rapidly improving the AI Studio experience and the documentation team is working hard to keep up. :) I have an internal work item to track this update, so I'll close the GitHub issue. And I'm glad to hear that you found the article helpful even though it needs updates. Thanks again!

#please-close


Compilation error: "mapper.cpp:218:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’"

While compiling, I ran into errors of the form:
...
mapper.cpp:187:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’
...
mapper.cpp:218:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’
...

Looking around I guessed at a solution:
$ git diff mapper.cpp
diff --git a/mapper.cpp b/mapper.cpp
index 97beb19..47945a7 100644
--- a/mapper.cpp
+++ b/mapper.cpp
@@ -184,7 +184,8 @@ pair<vector<Alignment>, vector<Alignment>> Mapper::align_paired_multi(
         }

         // Sort these alignments by score, descending
-        sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
+        //sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
+        sort(alignments1.begin(), alignments1.end(), [](const Alignment& a, const Alignment& b) {
             return a.score() > b.score();
         });

@@ -215,7 +216,8 @@ pair<vector<Alignment>, vector<Alignment>> Mapper::align_paired_multi(
         }

         // Sort these alignments by score, descending
-        sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
+        //sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
+        sort(alignments2.begin(), alignments2.end(), [](const Alignment& a, const Alignment& b) {
             return a.score() > b.score();
         });

Which seemed to get rid of the compilation issue.
Provided below is the full error:
In file included from /usr/include/c++/4.8/algorithm:62:0,
                 from vg.hpp:12,
                 from mapper.hpp:8,
                 from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [
with _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vector<vg::Alignment> >; _Tp = vg::Alignment; _Compare = vg::Mapper::align_paired_multi(vg::Alignm
ent&, vg::Alignment&, int, int, int, int)::__lambda11]’:
/usr/include/c++/4.8/bits/stl_algo.h:2296:78:   required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [wi
th _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vector<vg::Alignment> >; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, i
nt, int, int, int)::__lambda11]’
/usr/include/c++/4.8/bits/stl_algo.h:2337:62:   required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessItera
tor = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vector<vg::Alignment> >; _Size = long int; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int,
 int, int, int)::__lambda11]’
/usr/include/c++/4.8/bits/stl_algo.h:5499:44:   required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vecto
r<vg::Alignment> >; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11]’
mapper.cpp:189:10:   required from here
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: error: no match for call to ‘(vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11) (vg::
Alignment&, const vg::Alignment&)’
    while (__comp(*__first, __pivot))
                                   ^
mapper.cpp:187:55: note: candidates are:
         sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
                                                       ^
In file included from /usr/include/c++/4.8/algorithm:62:0,
                 from vg.hpp:12,
                 from mapper.hpp:8,
                 from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: note: bool (*)(vg::Alignment&, vg::Alignment&) <conversion>
    while (__comp(*__first, __pivot))
                                   ^
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: note:   candidate expects 3 arguments, 3 provided
mapper.cpp:187:83: note: vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11
         sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
                                                                                ^
mapper.cpp:187:83: note:   no known conversion for argument 2 from ‘const vg::Alignment’ to ‘vg::Alignment&’
In file included from /usr/include/c++/4.8/algorithm:62:0,
                 from vg.hpp:12,
                 from mapper.hpp:8,
                 from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: error: no match for call to ‘(vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11) (const vg::Alignment&, vg::Alignment&)’
    while (__comp(__pivot, *__last))
                                  ^
mapper.cpp:187:55: note: candidates are:
         sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
                                                       ^
In file included from /usr/include/c++/4.8/algorithm:62:0,
                 from vg.hpp:12,
                 from mapper.hpp:8,
                 from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: note: bool (*)(vg::Alignment&, vg::Alignment&) <conversion>
    while (__comp(__pivot, *__last))
                                  ^
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: note:   candidate expects 3 arguments, 3 provided
mapper.cpp:187:83: note: vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11
         sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
                                                                                ^
mapper.cpp:187:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’
In file included from /usr/include/c++/4.8/algorithm:62:0,
                 from vg.hpp:12,
                 from mapper.hpp:8,
                 from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vector<vg::Alignment> >; _Tp = vg::Alignment; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12]’:
/usr/include/c++/4.8/bits/stl_algo.h:2296:78:   required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vector<vg::Alignment> >; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12]’
/usr/include/c++/4.8/bits/stl_algo.h:2337:62:   required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vector<vg::Alignment> >; _Size = long int; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12]’
/usr/include/c++/4.8/bits/stl_algo.h:5499:44:   required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vector<vg::Alignment> >; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12]’
mapper.cpp:220:10:   required from here
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: error: no match for call to ‘(vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12) (vg::Alignment&, const vg::Alignment&)’
    while (__comp(*__first, __pivot))

mapper.cpp:218:55: note: candidates are:
         sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
                                                       ^
In file included from /usr/include/c++/4.8/algorithm:62:0,
                 from vg.hpp:12,
                 from mapper.hpp:8,
                 from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: note: bool (*)(vg::Alignment&, vg::Alignment&) <conversion>
    while (__comp(*__first, __pivot))
                                   ^
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: note:   candidate expects 3 arguments, 3 provided
mapper.cpp:218:83: note: vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12
         sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
                                                                                ^
mapper.cpp:218:83: note:   no known conversion for argument 2 from ‘const vg::Alignment’ to ‘vg::Alignment&’
In file included from /usr/include/c++/4.8/algorithm:62:0,
                 from vg.hpp:12,
                 from mapper.hpp:8,
                 from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: error: no match for call to ‘(vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12) (const vg::Alignment&, vg::Alignment&)’
    while (__comp(__pivot, *__last))
                                  ^
mapper.cpp:218:55: note: candidates are:
         sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
                                                       ^
In file included from /usr/include/c++/4.8/algorithm:62:0,
                 from vg.hpp:12,
                 from mapper.hpp:8,
                 from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: note: bool (*)(vg::Alignment&, vg::Alignment&) <conversion>
    while (__comp(__pivot, *__last))
                                  ^
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: note:   candidate expects 3 arguments, 3 provided
mapper.cpp:218:83: note: vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12
         sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
                                                                                ^
mapper.cpp:218:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’
make: *** [mapper.o] Error 1

Happy to provide more details if desired.

It looks like you've resolved another problem via a fix that is extremely
unlikely to have side effects. I suspect this is related to your compiler
version (which is?), but it's not clear.
I hope you keep hacking on vg. If you do, let's save time by using pull
requests. It's super easy to submit small fixes like these as a pull
request, and in fact I imagine it'd take less time than writing up the
issue once you understand how. Check out the GitHub's documentation for
straightforward overview of how it works:
https://help.github.com/articles/using-pull-requests/
Also, what might not be clear is that when you apply this patch to your
local version, then push to your fork of vg, and then make a pull request
against my repo, github will trigger automatic checks on Travis-CI to
verify that your changes don't break the build. For example, check out
@glennhickey's PR here: https://github.com/ekg/vg/pull/96. It shows we can
automatically merge the branch and expect make test to pass. And, we can
expect this to mean that the build isn't broken--- at least as far as I or
anyone else who has written tests can tell!
On Tue, Sep 15, 2015 at 8:16 PM, Abram Connelly<EMAIL_ADDRESS>wrote:

While compiling, I ran into errors of the form:
...
mapper.cpp:187:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’
...
mapper.cpp:218:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’
...
Looking around I guessed at a solution:
$ git diff mapper.cpp
diff --git a/mapper.cpp b/mapper.cpp
index 97beb19..47945a7 100644
--- a/mapper.cpp
+++ b/mapper.cpp
@@ -184,7 +184,8 @@ pair<vector, vector> Mapper::align_paired_multi(
}
     // Sort these alignments by score, descending

   sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {

   //sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {

   sort(alignments1.begin(), alignments1.end(), [](const Alignment& a, const Alignment& b) {
       return a.score() > b.score();
   });

@@ -215,7 +216,8 @@ pair<vector, vector> Mapper::align_paired_multi(
}
     // Sort these alignments by score, descending

   sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {

   //sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {

   sort(alignments2.begin(), alignments2.end(), [](const Alignment& a, const Alignment& b) {
       return a.score() > b.score();
   });

Which seemed to get rid of the compilation issue.
Provided below is the full error:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from vg.hpp:12,
from mapper.hpp:8,
from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [
with _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vectorvg::Alignment >; _Tp = vg::Alignment; _Compare = vg::Mapper::align_paired_multi(vg::Alignm
ent&, vg::Alignment&, int, int, int, int)::__lambda11]’:
/usr/include/c++/4.8/bits/stl_algo.h:2296:78:   required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [wi
th _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vectorvg::Alignment >; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, i
nt, int, int, int)::__lambda11]’
/usr/include/c++/4.8/bits/stl_algo.h:2337:62:   required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessItera
tor = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vectorvg::Alignment >; _Size = long int; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int,
int, int, int)::__lambda11]’
/usr/include/c++/4.8/bits/stl_algo.h:5499:44:   required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vecto
rvg::Alignment >; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11]’
mapper.cpp:189:10:   required from here
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: error: no match for call to ‘(vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11) (vg::
Alignment&, const vg::Alignment&)’
while (__comp(__first, __pivot))
^
mapper.cpp:187:55: note: candidates are:
sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from vg.hpp:12,
from mapper.hpp:8,
from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: note: bool ()(vg::Alignment&, vg::Alignment&)
while (__comp(__first, __pivot))
^
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: note:   candidate expects 3 arguments, 3 provided
mapper.cpp:187:83: note: vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11
sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
^
mapper.cpp:187:83: note:   no known conversion for argument 2 from ‘const vg::Alignment’ to ‘vg::Alignment&’
In file included from /usr/include/c++/4.8/algorithm:62:0,
from vg.hpp:12,
from mapper.hpp:8,
from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: error: no match for call to ‘(vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11) (const vg::Alignment&, vg::Alignment&)’
while (__comp(__pivot, __last))
^
mapper.cpp:187:55: note: candidates are:
sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from vg.hpp:12,
from mapper.hpp:8,
from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: note: bool ()(vg::Alignment&, vg::Alignment&)
while (__comp(__pivot, __last))
^
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: note:   candidate expects 3 arguments, 3 provided
mapper.cpp:187:83: note: vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda11
sort(alignments1.begin(), alignments1.end(), [](Alignment& a, Alignment& b) {
^
mapper.cpp:187:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’
In file included from /usr/include/c++/4.8/algorithm:62:0,
from vg.hpp:12,
from mapper.hpp:8,
from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment, std::vectorvg::Alignment >; _Tp = vg::Alignment; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12]’:
/usr/include/c++/4.8/bits/stl_algo.h:2296:78:   required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment, std::vectorvg::Alignment >; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12]’
/usr/include/c++/4.8/bits/stl_algo.h:2337:62:   required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vectorvg::Alignment >; _Size = long int; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12]’
/usr/include/c++/4.8/bits/stl_algo.h:5499:44:   required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<vg::Alignment*, std::vectorvg::Alignment >; _Compare = vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12]’
mapper.cpp:220:10:   required from here
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: error: no match for call to ‘(vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12) (vg::Alignment&, const vg::Alignment&)’
while (__comp(*__first, __pivot))
mapper.cpp:218:55: note: candidates are:
sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from vg.hpp:12,
from mapper.hpp:8,
from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: note: bool ()(vg::Alignment&, vg::Alignment&)
while (__comp(__first, __pivot))
^
/usr/include/c++/4.8/bits/stl_algo.h:2263:35: note:   candidate expects 3 arguments, 3 provided
mapper.cpp:218:83: note: vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12
sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
^
mapper.cpp:218:83: note:   no known conversion for argument 2 from ‘const vg::Alignment’ to ‘vg::Alignment&’
In file included from /usr/include/c++/4.8/algorithm:62:0,
from vg.hpp:12,
from mapper.hpp:8,
from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: error: no match for call to ‘(vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12) (const vg::Alignment&, vg::Alignment&)’
while (__comp(__pivot, __last))
^
mapper.cpp:218:55: note: candidates are:
sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from vg.hpp:12,
from mapper.hpp:8,
from mapper.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: note: bool ()(vg::Alignment&, vg::Alignment&)
while (__comp(__pivot, *__last))
^
/usr/include/c++/4.8/bits/stl_algo.h:2266:34: note:   candidate expects 3 arguments, 3 provided
mapper.cpp:218:83: note: vg::Mapper::align_paired_multi(vg::Alignment&, vg::Alignment&, int, int, int, int)::__lambda12
sort(alignments2.begin(), alignments2.end(), [](Alignment& a, Alignment& b) {
^
mapper.cpp:218:83: note:   no known conversion for argument 1 from ‘const vg::Alignment’ to ‘vg::Alignment&’
make: *** [mapper.o] Error 1
Happy to provide more details if desired.
—
Reply to this email directly or view it on GitHub
https://github.com/ekg/vg/issues/100.

Thanks for the information.  I'm happy to package this and the other issue (#99) as (two separate) pull requests if you want, otherwise I'll leave it up to you.  In the future I'll be sure to issue a pull request with these types of changes, should I have any.
Different projects have different expectations on how to accept contributions.  You might want to consider making a "CONTRIBUTING.md" file (or something similar) so that people know what workflow you expect.
Here's my compiler information:
$ g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc --version
gcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


It seems we cant add expressions before the worker block

It seems we can't do  program as below, getting the below error [2]
Code Block [1]
connector Calculator(string txt){
action add1(Calculator jcl, int a, int b) (message) {
  system:println("In worker 55555555" );

  worker worker1(message m){
    int response=100;
    system:println("In worker" );
    message:setStringPayload(m,string:valueOf(response));
    reply m;
  }

conwe.txt
Code Block [2]
@http:BasePath ("/test3")
service test3 {
@http:POST
@http:Path("/test2")
resource test1(message m){
    message msg;
    string[] test;
    worker fork1(message m){
        string s = "tests";
        reply m;
    }

chamiTest.txt
Error [3]:
asankav@asankav-ThinkPad-T540p:~/servers/bal/ballerina-0.8.0-SNAPSHOT/bin$ ./ballerina run /home/asankav/myarea/bal/Test/conwe.bal
conwe.bal:16:6: unwanted token 'worker'

Latest syntax documents have the correct information.


[CHALLENGE SUBMISSION]

Please provide the following information for your submission:
What is your name? (First, Last)
Antti Poutiainen
Where is your GitHub Repo ?(With your challenge solution)
https://github.com/anttipo/terraform-on-azure-challenge5/
What Challenge is this for? (Challenge number between 1 and 5)
5
(Optional) Anything else we should know? e.g., language used, location, blog post?
Not working at the moment unfortunately, same issues as with other people here related to providing the correct values for Consul+Helm setup.

The trouble I have is described here:
https://github.com/anttipo/terraform-on-azure-challenge5/blob/master/README.md
Different values.yaml combinations provide different issues but this seems to be the leading cause.

Hey, can you check if the consul-server-0 pod is outputting a message of 2020-06-27T12:30:55.358Z [INFO]  agent: (WAN) joining: wan_addresses=[*.dc1/<IP_ADDRESS>]. I am running into this myself now, eventhough the values in the consul-federation file are correct. I have had this problem before, but that was all locally, so assumed it was something to do with my local setup.

OK, I figured it out. It was a combination of consul generating a key for gossip + terraform creating a gossip encryption key secret. In the end we were double base64-ing the gossip key, as I was inputting it as a variable into Terraform to create a central cluster.
I recreated the central cluster and given @ntrogh the new federation secret.

Not sure if valid anymore since you recreated the primary cluster, but using the sample configuration you provided doesn't even take me so far that consul-server-0 pod gets created. I am stuck in having the consul-tls-init-xxxxx created which never happens.
Events:
  Type     Reason       Age                From                                        Message
  ----     ------       ----               ----                                        -------
  Normal   Scheduled    90s                default-scheduler                           Successfully assigned default/consul-tls-init-s4kvd to aks-agentpool-40708464-vmss000000
  Warning  FailedMount  26s (x8 over 90s)  kubelet, aks-agentpool-40708464-vmss000000  MountVolume.SetUp failed for volume "consul-ca-key" : references non-existent secret key: caKey
  Warning  FailedMount  26s (x8 over 90s)  kubelet, aks-agentpool-40708464-vmss000000  MountVolume.SetUp failed for volume "consul-ca-cert" : references non-existent secret key: caCert

Are the "consul-ca-key" and "consul-ca-cert" the basically the tls cert and key we define in values.yaml? I have recreated the cluster to see if that was just an effect of my earlier experiments but it didnt seem to help.


Fix Clippy Warnings

Fixed Following Cippy Warnings

Needless-borrow
redundant_field_names
field_reassign_with_default
bool_assert_comparison
derive_partial_eq_without_eq

Fixes #378

Thanks!


Deploy demo

The demo in this project is really nice. Would be great if it could be deployed to eg. Netlify or Vercel.
I think this would benefit the project and help people better understand hydration.

You are absolutely right. The demo is part of the project, it is handled by Vite.js in development mode. This means I can't build the distributable files to deploy to Netlify/Vercel.
I should instead create a separate project specifically to deploy the demo and provide a link to it in the documentation.


Ensure that we have guarantees that data has reached and is queryable in the server

With the new Dispatcher, the Run object` should guarantee that data has sent by the time the object finishes closing. We should have tests covering this.

This is indeed the case, however confirming the metrics have been written should be tested if not already


ChildViewConnection should also accept a View* mojo struct

Current implementation of ChildViewConnection takes a url which mandates that the the app embedding another app is the first point of connection. We need to connect to the embedee from another app preferably before the embeder.
This should mean that this app should be able to create a mojom struct with all the connection information and pass it to the embeder.
/cc @abarth @j9brown

Technically this means you want the ViewOwner.


Add a readiness and liveness probe for the web pod

⚠ This PR works only for k8s 1.14+
Adds a readiness and a liveness probe for the web pod.
The readiness probe pings the web pod, using the pod's IP and it shouldn't follow the redirect to Spec.Domains[0].
The liveness probe ping the php-fpm status.

@vtemian would you like to make a rebase to master. This is a nice feature that we should have included long before in the operator. Thank you for your contribution!

@AMecea can you check it out again?


Check audio/video track when rtc stream updated

Codecov Report

Merging #2418 (da6663b) into 4.0release (df20fe6) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@              Coverage Diff               @@
##           4.0release    #2418      +/-   ##
==============================================
- Coverage       42.89%   42.89%   -0.01%
==============================================
  Files             101      101
  Lines           35803    35805       +2
==============================================
  Hits            15359    15359
- Misses          20444    20446       +2

Impacted Files
Coverage Δ

trunk/src/app/srs_app_rtc_conn.cpp
9.39% <0.00%> (-0.02%)
: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 df20fe6...da6663b. Read the comment docs.


Uptime Kuma Alert

⚠ Please verify that this question has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
Good morning,
I hope someone can guide me in my problem, let me explain:
I have been using Uptima Kuma as a docker for almost a year now
I often update the container, at this level - no problem.
The problem comes from the Uptima Kuma web interface in terms of notifications.
When I receive alerts on the interface that a probe is available again, it is displayed in green at the bottom right then it disappears after a few seconds, however the notifications are in red to say that my probe is not not available, remains constantly until I delete it myself via the touch screen.
Is this a configuration issue? From my iPad?

Thanks for your help
📝 Error Message(s) or Log
My docker compose
version: '3.3'

services:
  uptime-kuma:
    image: louislam/uptime-kuma:1
    container_name: uptime-kuma
    volumes:
      - ./uptime-kuma-data:/app/data
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 3001:3001  # <Host Port>:<Container Port>
    restart: always

🐻 Uptime-Kuma Version
1.23.11
💻 Operating System and Arch
Debian 6.1.37-1
🌐 Browser
iOS 15.8
🐋 Docker Version
Docker : 20.10.24+dfsg1 / Portainer 2.18.4
🟩 NodeJS Version
No response

#3441 was merged and will make this configurable in the next version (v2.0)
See https://github.com/louislam/uptime-kuma/pull/4171 for the progress of the remaining (new) known bugs


Added support for translate() fallback to default locale key/value

Added support for translate() fallback to default locale key/value if requested locale file don't have the requested key/value.

Well, if you use a german locale, maybe getting an english value when the key is not found is not what users want.

the defaultLocale is by default the first locale you in the list of locales you setup i18n-node-2 with... This should work for german also....

Okay this makes some sense
Please commit to :

Fix indentation
Push version
Add a note on the changelog
Add an option (different from devMode that is mostly for debugging)  ̀fallbackToDefault̀̀` defaulting to false
Add some doc on that option

@torvalde @gjuchault is this still active? I am looking exactly for this.


(fix) EAS update / build / expo go compatibility in solito starter

The current next-solito-starter fails in multiple places when creating an update with the expo eas service to view and share your tamagui project in the expo go app.
A couple of things I need to do to get the starter to work on expo go.

remove expo-image: only works in development builds and sdk47. The starter doesn't use the package anywhere. (https://github.com/expo/expo/tree/main/packages/expo-image#installation)
update eas with a runtime https://docs.expo.dev/eas-update/runtime-versions/#setting-runtimeversion
Conditionally add toasts if not in expo go. Expo Go doesn't support native modules. IMO not having toasts in expo go outweigh the cost of not being able to use the starter in expo go.
updated the app.json my app to yourprojectname to be a little bit more on the nose to the developer using the project to change the value.

Reproduce:

npm create tamagui with changes
add project_id
eas update --profile development
scan code from the console, open expo go to view starter app.

also fixes:

fix: #1143
fix: (sorta?) #846 https://github.com/nandorojo/solito/blob/18b283a0dbdfdc78f9115a460e4bfbf9b3d57c33/src/image/use-solito-image.ts#L28 depends on expo-image which doesn't work with expo-sdk 48

this is heroic work, thank you

@natew should also add
"plugins": [["expo-router", { "origin": "https://www.czero.today/" }]],
to the expo config, I wasn't able to build the app without it

this is heroic work, thank you

ty 🥲

@benschac
I still am not able to make an update successfully even with integrating the changes in this PR, adding the expo router plugin to eas config, etc...
(non native) Updates just cause app to be rendered as a black screen

@matthewhausman - can you send a link with a reproduction of the issue?

Should have time to make one later today

@benschac
https://github.com/matthewhausman/ios-preview-build-failure-reprod

Seems that the reprod actually updates, must be a problem with my personal project sorry!


Check return value for configuration reload

This commit ensures that blocked status is set on failure to
reload Prometheus configuration
Closes #105

Did not QA it, but it seems like the unit.status should not be overwritten by other hooks


move to klap for releasing to npm

This PR introduces 2 things:

it removes lib from source control as that is a built file and hardly provides any value keeping in git.

moves the build from webpack to klap to improve on the dist size.

Motivation:
I was looking at the reddit and found your release post. However, looking at the built output I noticed you had lot of wrapper code generated by webpack in your lib/fittext.min.js, which made this library to weight ~ 1.23 kB gzipped. I started moving it to klap to get a build output of ~ 517 bytes gzipped. The esm build is ~ 431 bytes gzipped.

Ah, one more thing, I forgot to update the file sizes in readme under performance tips section.


build_appbundle_test MockProcessManager -> FakeProcessManager

Replace mockito MockProcessManager with FakeProcessManager in build_appbundle_test.

Once tests pass anyway

Once tests pass anyway

It's passing on my machine, ruh roh.

It's passing on my machine, ruh roh.

Closing, I will look at this some other time.


Create Circular_Linked_List_Traversal

Please star this repository to show your support, in the meantime I am reviewing your code.


Timezone without format

Is it possible to use L10N and yet to specify a custom format?
It does not seem so at the time ( https://github.com/asaglimbeni/django-datetime-widget/blob/master/datetimewidget/widgets.py#L193 ).
Would you accept a simple patch that enables this?

Hi,
I've managed to solve this via Django localization https://docs.djangoproject.com/en/1.7/topics/i18n/formatting/ by overriding DATETIME_INPUT_FORMATS. With this solution you will benefit from automatic conversions to Django datetime objects when processing forms POST data with this widget in the form. I'm not sure if it would work with your approach.

So I have nothing to do with maintaining this but I think it would be a pretty good idea!
:shipit:

I think the idea is that if you enable L10N, then you should work with the Django DATETIME_INPUT_FORMATS to get the appropriate localised formats.
I've not used this in a bit, but what would be the advantage of having L10N on and then setting the format anyway? I thought the L10N was just about helping with formatting?

I think #68 is related? Format not working when L10N is enabled?
While I can understand the logic behind the way it's implemented, wouldn't it be better to still allow specifying a custom format if you're using L10n?

I have committed a quick pull request which resolves this issue - #93 .  It seems that translations do not take effect unless usel10n is set, but there may be cases where translations are required and a specific format is also needed.


ldClientMock missing alias method?

When I try to use the ldClientMock in TypeScript in a place where an LDClient is expected, I get this error:
error TS2345: Argument of type '{ track: Mock<any, any>; identify: Mock<any, any>; allFlags: Mock<any, any>; close: Mock<any, any>; flush: Mock<any, any>; getUser: Mock<any, any>; ... 7 more ...; waitUntilReady: Mock<...>; }' is not assignable to parameter of type 'LDClient'.
  Property 'alias' is missing in type '{ track: Mock<any, any>; identify: Mock<any, any>; allFlags: Mock<any, any>; close: Mock<any, any>; flush: Mock<any, any>; getUser: Mock<any, any>; ... 7 more ...; waitUntilReady: Mock<...>; }' but required in type 'LDClient'.

Versions:
> require('jest-launchdarkly-mock/package').version
'0.2.1'
> require('launchdarkly-js-client-sdk').version
'2.19.1'

It looks like https://github.com/launchdarkly-labs/jest-launchdarkly-mock/pull/5 already fixes this, but has only been merged to the contrib branch, not to master, and wasn't included in the latest release.

@ExplodingCabbage we have an upcoming release to fix this. I'll update the issue when that's done. Thank you for your patience.

This is now fixed in v1.0.0.


Manjaro Sway specific desktop wallpaper

I've made publicly available Manjaro Sway desktop wallpapers, feel free to use them if you want to:

https://github.com/AndreVallestero/sway-art
https://raw.githubusercontent.com/AndreVallestero/sway-art/master/manjaro-sway-small-wallpaper-3840x2160.png
https://raw.githubusercontent.com/AndreVallestero/sway-art/master/manjaro-sway-small-wallpaper-edged-1920x1080.png

Also feel free to close this issue whenever.

uuuh, nice. I'll have a look and package it, okay?

uuuh, nice. I'll have a look and package it, okay?

In addition to the ones you made, I used your logo in the existing one:

the whole package is assembled here:
https://github.com/Manjaro-Sway/manjaro-sway-wallpapers

In addition to the ones you made, I used your logo in the existing one:

the whole package is assembled here:
https://github.com/Manjaro-Sway/manjaro-sway-wallpapers

Awesome! Although it might be better if it were color matched to the gruvbox color scheme. I'll see if I can work on it later tonight.

Awesome! Although it might be better if it were color matched to the gruvbox color scheme. I'll see if I can work on it later tonight.

@all-contributors please add @AndreVallestero for the design of this wallpaper

please add @AndreVallestero for the design of this wallpaper

Thanks!  I was one of the first people using Manjaro + ARM + Sway back in 2019. I helped Xalius from the Pine64 team setup Sway on his PBP based on my config, and I believe his config was the inspiration of the official Manjaro ARM Sway build, which became the basis for the x86 build.

https://github.com/AndreVallestero/masars
https://twitter.com/thepine64/status/1201932519660277762
https://www.reddit.com/e64elc