A JavaScript error occurred in the main process

[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
Error: spawn wmic.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

[OK]

[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
TypeError: Cannot read property 'forEach' of undefined
    at Stream.<anonymous> (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:1:1)
    at Stream.emit (events.js:182:13)
    at Stream.i (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:308:1)
    at Stream.emit (events.js:187:15)
    at f (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:85:1)
    at Stream.n.write (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:85:1)
    at Stream.ondata (internal/streams/legacy.js:15:31)
    at Stream.emit (events.js:182:13)
    at l (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:308:1)
    at Stream.u.queue.u.push (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:308:1)
    at u (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:41:1)
    at Stream.<anonymous> (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:41:1)
    at Stream.u.end (C:\Program Files\DockStation\resources\app.asar\webpack:\app\main.prod.js:308:1)
    at Socket.onend (_stream_readable.js:628:10)
    at Object.onceWrapper (events.js:273:13)
    at Socket.emit (events.js:187:15)

[OK]

Hi! What is Windows version?

Windows 10 Pro 19044.1415

nvm I think it was a problem on my end
messing around with environment variables fixed it


Using without Firebase.

I want to share files P2P within my network and between networks over the internet.
First step in the README for "local" development is to setup a Firebase account. Why stain a good p2p project with some brand name website: Firebase. I see google analytics in here which, okay, I can just cut out, then noticed Firebase is backed by google.
It starts feeling more like a marketing ploy than motives of just making a p2p app.
Can I use this project without signing up to your 3rd party Firebase service?

Hey @physiii !

It starts feeling more like a marketing ploy than motives of just making a p2p app.

It's not a ploy, but pragmatism :) The very first version of it used socket.io, but at the time (2013/2014) Heroku did not support websockets, it was much easier to switch to an external service. Also, back in 2014 Firebase was not owned by Google and it had the best support for user presence.

Can I use this project without signing up to your 3rd party Firebase service?

No, but you can create a fork and replace Firebase with e.g. socket.io. For local use socket.io is enough, but for production use deployments get tricky, as you most likely don't want to disconnect everyone every time you deploy a new version.
The best solution would be to introduce support for different backends via adapters, but it won't happen unless someone else implements it, or Firebase starts charging enormous amounts of money and forces me to do it.

It's not a ploy, but pragmatism :)

Ah okay, I see and apologize for the assumption :)
For my application I can not have a single point of failure. You probably know that the SDP can come from HTTP (including websockets) or any other means of exchanging SDP offer/answer. For testing, I have just been copy-pasting so I guess I would be the signal server in that instance.
My plan is similar to what Bitcoin uses:

Store a list of SDP offer/answer from connected and previously connected Peers
Have several dozen nodes with public ip and dns's then store those in the source code
Use SDP offer/answer from user input

you most likely don't want to disconnect everyone every time you deploy a new version.

Can you explain? Once the signal server establishes the p2p connection it is no longer needed to maintain the connection. So even if you had to restart the signal server it would not disconnect the peers. Only a new connection would be slightly delayed while software restarts but only a few hundred milliseconds. Am I missing something?

You probably know that the SDP can come from HTTP (including websockets) or any other means of exchanging SDP offer/answer.

Yeah, many of the early WebRTC demos used this way to not introduce some kind of signaling server and complicate things even more.

Can you explain? Once the signal server establishes the p2p connection it is no longer needed to maintain the connection.

That's true. However, Sharedrop uses Firebase presence feature to show other devices in the UI. I don't remember what the code does exactly in case someone disconnects from Firebase, but either it only hides the device in UI and the P2P transfer goes on, or it might be closing P2P connection as well, assuming that there's no network anymore. In theory, it could show the other peer as long as the P2P connection is established, even if connection to Firebase is already gone.


unknown compression type: CMP_ATTR_UNCOMPRESSED

Trying to extract small files from an iOS rootfs dmg gives this error:
$ apfs cp /data/038-44862-252.dmg /System/Library/FeatureFlags/Domain/Sharing.plist
   ⨯ unknown compression type: CMP_ATTR_UNCOMPRESSED

(This dmg is from iPhone_4.7_14.5_18E199_Restore.ipsw but any should work to reproduce the issue)
I speculate that it fails for the exact same set of files that also fail with apfs-fuse (giving "input/output error"), but I haven't done enough testing to be sure.

Interesting! Thank you for letting me know.  It was a somewhat silly mistake, I just wasn't handling the CMP_ATTR_UNCOMPRESSED compression type for decmpfs.  That type tells us that the data is not only not compressed, but that it's data is stored in the APFS_TYPE_XATTR data.
It should be fixed now. Feel free to close if so.

Oh and by the way if you wanna really see what is going on under the covers try adding the -V flag and prepare for a WALL of pretty text. 😉

This is fixed!
   • Created /data/Sharing.plist

This already makes go-apfs more useful for me than the apfs-fuse included in blacktop/ipsw.

Nice!! I'm very glad.  Yeah this is going to completely replace apfs-fuse in ipsw once it's done.  You will them be able to extract files directly out of the IPSW zips with ZERO external dependancies on any operating system! 😎


Add pull request and issue templates to project.

This PR adds templates to pull requests and issues similar to what we have on the python-poetry/poetry project.

@stephsamson should be support issues for this project? Can we instead focus on managing issues in poetry? Might be easier for the community.

@stephsamson as per discussions on discord; we can change this one to add a single config that has a link to poetry's issue tracker with "blank issues" disabled.

@abn Thanks for your feedback; I've worked that in.


Update Operation to be stateless

Until now, Operation, which is a class used to provide a common gateway for transactional and non-transactional Datastore operations, has been responsible for maintaining a list of enqueued mutations.
Operation is created on instantiation of DatastoreClient and persists throughout the use of Datastore. This makes it a poor choice for storing state. Additionally, if a mutation was enqueued inside a Transaction but not committed, and an operation was run from DatastoreClient, the transactional mutation would be committed outside the transaction.
This change moves enqueued mutations into Transaction, preventing mutations from being improperly committed.
Additionally, two new helper methods have been added to Key. Key::pathEndIdentifier() will return the name or ID of the last path element, or null if the key is incomplete. Key::pathEndIdentifierType() will return name or id, depending on the identifier type, or null if the key is incomplete.
Technically this change includes breaking changes in the public API, however all the API changes are in Operation, which is intended only for use internally by the library.

@tmatsuo can we run the docs-samples against this PR?

I ran this PR against the datastore system tests in #228 and everything passed.

@tmatsuo @bshaffer @michaelbausor any of you available for a quick code review?

I have had a look, and it looks good to me, but another pair of eyes would also be good I think - cc @garrettjonesgoogle @shinfin in case either of you have time to take a look.

@jdpedrie Sorry I just got back to work, reviewing and running the test.

Thanks everyone. I'll merge once Travis does its thing.


Closes #37

Implementation for #37.
Usage:
 pug my-page.pug -E ''

Produces:
rendered my-page

Current coverage is 100% (diff: 100%)

Merging #38 into master will not change coverage

@@           master   #38   diff @@
===================================
  Files           1     1
  Lines         143   144     +1
  Methods         0     0
  Messages        0     0
  Branches        0     0
===================================
+ Hits          143   144     +1
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update f3b4fec...89e2c44

Thanks for creating this PR!


Move VersionParser into its own gem

We are using the VersionChecker in version.intercity.io as well. In order to
have low maintenance if there is a bug in that piece of code, I have pulled it
out into it's own gem.

@jvanbaarsen interesting! What does this VersionParser gem do?

@michiels Exactly the same as the pulled out code

@jvanbaarsen Ah, it's more like VersionComparer instead of VersionParser. It didn't really tell me the "end benefit" based on the naming.

@michiels It is mainly parsing a version that you put in. One of the side benefits is that you can compare.


integration: deflake TestIssue9103

Fixes: #9334

@henry118  I can't reproduce it in my local for release/1.6. Would you please help verify this? Thanks

Somehow my notifications got turned off and I missed this. Thank you for fixing it!


Document how to get articles from hidden feeds

Cf. #33. It doesn't fix the issue, but it at least explains the
workaround.

Coverage remained the same at 59.145% when pulling 60fd954feaf8a255976bdc46a76904155fb1ae41 on bugfix/33-improve-hidden-tags-docs into 4ddbcb50f122c846bb4e766ad03a6e6fcfe00a47 on master.

The double "hidden" is confusing, and at first glance I would wonder if the second "hidden" is a keyword.  It's also odd that the descriptive tag is the one that you cannot query on.  I suggest you leave "!" stand-alone as you cannot query on the associated tag anyways, but then introduce a 2nd feed so you two are tagged and then query on the descriptive tag name:
http://feeds.bbci.co.uk/news/world/rss.xml ! "News"
https://rss.orf.at/news.xml ! "News"
"query:World News:tags # "News""

Yeah, makes sense. I updated the doc, can you please take another look?
(Also fixed the indentation of the example code; turns out I should use tabs not spaces!)

The first feed you use the tag ! and the 2nd one you use !hide.  I would make them both a bare ! (just so user doesn't get the idea that they can query on the tag hide) but I suggest they are consistent.

I did that intentionally, so the user doesn't get the idea that "!" is the only possible "hidden" tag. Although with #500 in mind, perhaps I should promote "!" instead of any other variant. Since Lyse upvoted that comment, I am in the minority so I'll update the PR once again :)

Reading the comments, I second @allanwind's opinion on the !hide part.

Okay, here's one more update. I also added an explanation why "hidden" tags don't have names per se. Does it make sense?

Okay, let's merge it then. Thank you both for the review!

Oops, forgot to squash the fixups :( I'll learn to remember, any day now.


Menu items not in full width / size

In the menus, only the green area of menu items is clickable.
In most applications, menu items are full width.

Thanks for reporting. Corrected.


Fort Funston Webcam images broken

The issue is that Chrome updated, and it no longer allows mixed content.  The page is HTTPS, but the Fort Funston images are HTTP.  It used to work, but display a warning about mixed content.  Now Chrome tries to load the images via HTTPS, and it fails since Fort Funston's webserver does not have a valid certificate.

I haven't been able to find a free pass through proxy, I have been able to find free image proxy services that have caches.  And a long cache would kind of make this worthless for a webcam picture.

Oh no.  It still works for me, on Chrome 85.0.4183.121 on OS X... (which is supposedly up to date.)

I assume the restriction of mixed content may be in the process of rolling out, so it may not effect everyone else yet.  The change is documented here: https://security.googleblog.com/2019/10/no-more-mixed-messages-about-https_3.html
But this should be fixed with this change:
https://github.com/RobertMParker/mr-weather/commit/31f82b57e87fde53a855d50da3687d3fda73ea6d#diff-eacf331f0ffc35d4b482f1d15a887d3b


Compatibility notice

Commit 9023d19d4d1d20a76fa498c0d33e165b1a4df79d is the last one, compatible with ST 4107.
As of fa5e71058f0c1fa3aabbc5b683762951e941f8af released with v1.0.1
requires at least ST 4152 due to inclduding custom CSS.
I'd suggest to tag 9023d19d4d1d20a76fa498c0d33e165b1a4df79d 4107-1.0.1 so we can modify Package Control channel registration to avoid incompatible syntax version being deployed to ST builds before 4152.

Done. Thanks a lot! https://github.com/princemaple/ngx-html-syntax/releases/tag/4107-1.0.1


Fixes to pre-commit CI (issues with Linting)

Codecov Report

Merging #62 (6c78bcb) into master (901c8cc) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #62   +/-   ##
=======================================
  Coverage   97.57%   97.57%
=======================================
  Files          22       22
  Lines         947      947
  Branches      149      149
=======================================
  Hits          924      924
  Misses         11       11
  Partials       12       12

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 901c8cc...6c78bcb. Read the comment docs.

I figured out the main problem with the issue #63  . It closes #63 .
The develop branch was out synced with master. When I synced I found out that there were merge conflicts with the code and issues with strava lib read activity tests. I fixed all the tests to support the new client #55 merge . Now I managed all the tests, create a test suite for test_stravaclient and fixed all the errors tests. Now it's all validated.


Make EditorFileDialog only created on demand in EditorResourcePicker

My #47260 and #48854 PRs introduced a regression for the Inspector dock. An editor GUI deadlock can be triggered by opening a resource with a lot of sub-resources (such as a Theme resource). Apparently, always adding EditorFileDialog to a control inside of the EditorProperty makes the dock UI overwhelmed and when done enough times causes it to just hang in a perpetual attempt to re-adjust. In the old version this file dialog was created on demand only, and I can see why now. I've reintroduced this behavior to EditorResourcePicker.
Actually, even PopupMenu had a negative effect in the same situation, but it was way smaller. So it's likely all popups for some reason, with the editor file dialog being big enough to become a problem.

This also fixes a typo I left in the previous PR 🙃

Thanks!


[SPARK-17914][SQL] Fix parsing of timestamp strings with nanoseconds

The PR contains a tiny change to fix the way Spark parses string literals into timestamps. Currently, some timestamps that contain nanoseconds are corrupted during the conversion from internal UTF8Strings into the internal representation of timestamps.
Consider the following example:
spark.sql("SELECT cast('2015-01-02 00:00:00.000000001' as TIMESTAMP)").show(false)
+------------------------------------------------+
|CAST(2015-01-02 00:00:00.000000001 AS TIMESTAMP)|
+------------------------------------------------+
|2015-01-02 00:00:00.000001                      |
+------------------------------------------------+

The fix was tested with existing tests. Also, there is a new test to cover cases that did not work previously.

Test build #77844 has started for PR 18252 at commit 2f232a7.

Test build #77844 has finished for PR 18252 at commit 2f232a7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77844/
Test PASSed.

Looks like DateTimeUtils.scala#L411-L414 is for the same purpose but not enough.
I guess we can remove these lines now.

@ueshin good point, thanks.

Test build #77857 has started for PR 18252 at commit 4d057c9.

Test build #77857 has finished for PR 18252 at commit 4d057c9.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77857/
Test PASSed.

Merged build finished. Test PASSed.

Test build #77870 has started for PR 18252 at commit a498f83.

Test build #77870 has finished for PR 18252 at commit a498f83.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77870/
Test PASSed.

LGTM

@wzhfy @rxin @ueshin can someone, please, merge this?

Thanks! merging to master/2.2.


Chaotic Feat: I want to change the colours of the page and font families

Describe your chaotic idea
with my knowlege of colour palletes, i believe i will give the website far better colours resulting in eye catching impression from the user. present font families and colours are not really pleasant  and the box around the emoji doesnt look good. also the white border around the components doesnt look good. let me make some changes in the css and make the website look more chaotic :) kindly assign it to me under gssoc-ext and hacktoberfest-accepted. i would love to do it for u.
Add Screenshots or Sketches

Confirm

[X] I understand that my idea will add to the chaos and I'm okay with it
[X] I agree to follow this project's Code of Conduct
[X] I want to work on this feature
[X] I'm GSSOC'24 Extd registered Contributor
[X] I'm Hacktoberfest registered Contributor

You want to work on this in the React folder right?

Yes

you can assign this task to me...

I would like to work Please assign it to me.

GO ahead @manastiwari99


Fix lockfile-lint config filename

The dot before lockfile-lint.config.js is not a supported config.
Not in cosmiconfig v8 & v9.
The list of supported configs is actually larger:
https://github.com/lirantal/lockfile-lint/blob/main/packages/lockfile-lint/README.md#file-based-configuration
https://github.com/cosmiconfig/cosmiconfig?tab=readme-ov-file#cosmiconfig
But that is out of scope for this bugfix.

Thanks @jerone!
That extended list isn't documented so I think we're good for now, right?

:rocket: This pull request is included in v5.21.1. See Release 5.21.1 for release notes.
Using Knip in a commercial project? Please consider becoming a sponsor.

That extended list isn't documented so I think we're good for now, right?

The list is documented here: https://github.com/lirantal/lockfile-lint/blob/main/packages/lockfile-lint/README.md#file-based-configuration
Lockfile-lint is actually using cosmiconfig v9 now, which supports the full list of config documented here: https://github.com/cosmiconfig/cosmiconfig#cosmiconfig

Yes I meant documented by lockfile-lint itself.

A "lockfile-lint" key in your package.json file.
A .lockfile-lintrc file, written in JSON or YAML, with optional extensions: .json/.yaml/.yml (without extension takes precedence).
A .lockfile-lint.js or lockfile-lint.config.js file that exports an object.
A .lockfile-lint.toml file, written in TOML (the .toml extension is required).

✅
.lockfile-lintrc ✅
.lockfile-lintrc.json ❌
.lockfile-lintrc.yaml ❌
.lockfile-lintrc.yml  ❌
.lockfile-lint.js ✅
lockfile-lint.config.js ✅
.lockfile-lint.toml ✅

LOL, totally missed that, sorry, Feel free to add.


custom validation error message

I need to include my custom validation error message template, how could i do?

The question is not clear enough, you may check our doc  example which provides several ways to add custom error message https://ngx-formly.github.io/ngx-formly/examples/validation/validation-message

Today, when you define that a field is required, if the user does not type, the validation message appears as follows.

however, I need to include my error message component, which looks like this:

I see two ways to customize the validation error:

Customize it using global style
Override the provided default wrapper which will give you the ability to control the html content: https://stackblitz.com/edit/angular-pe3czd?file=src/app/app.component.ts

perfect, how can i see all the standard wrapper for material?
Based on them, I will modify as I need

see https://github.com/ngx-formly/ngx-formly/blob/v5/src/material/form-field/src/form-field.wrapper.ts
The material wrapper is the complicated one in our codebase, unfortunately!

I think I expressed myself badly, I want to see the material types.
The components created for the material, based on them I can create custom type as I need.
Don't have a / src repository with types for material?

https://github.com/ngx-formly/ngx-formly/tree/v5/src/material


Help needed: service / characteristic ID for button press?

This is not an issue, I just need some help. I'd like to make a BT LE communication app for the Mi Band 2, which would recognise button presses. The only thing I can't find is the service / characteristic ID for button press. Could you help me with that, please? Many thanks in advance!!! :-)

The button touch UUID -> public static final UUID UUID_CHARACTERISTIC_DEVICEEVENT = UUID.fromString("00000010-0000-3512-2118-0009af100700");
extracted from here: https://github.com/Freeyourgadget/Gadgetbridge/blob/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBand2Service.java
Some useful links:
In this project you can find all tou need -> https://github.com/Freeyourgadget/Gadgetbridge
https://github.com/Freeyourgadget/Gadgetbridge/blob/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandService.java
https://github.com/Freeyourgadget/Gadgetbridge/issues/741
https://github.com/Freeyourgadget/Gadgetbridge/blob/238bacde9f6fd59f3b39f17cc29dee82b6932a96/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband2/MiBand2Support.java

Thanks! :-) I tried to get notified when this characteristic changes, but nothing happened when I touched the button... I use the BT LE Central plugin for Cordova (both iOS and Android). Maybe there's something I'm missing, I don't know. I will keep trying... Thanks for your help! :-)
Cordova plugin: https://github.com/don/cordova-plugin-ble-central
My code to subscribe for the notification:
ble.startNotification(uid, "FEE0", "00000010-0000-3512-2118-0009AF100700", function() {alert('Button pressed');}, function() {alert('ERROR');});

When I try to subscribe for notifications for characteristic "00000010-0000-3512-2118-0009AF100700", I get this error:
Error Domain=CBATTErrorDomain Code=3 "Writing is not permitted"
I've read in some forums that before subscribing for notifications, I have to write some characteristic to indicate I want to communicate with the device... but ' don't understand it at all. :-(
Here is the post I'm referring to: https://stackoverflow.com/questions/29030283/writing-is-not-permitted-error-when-attempting-to-subscribe-to-cbcharacteristic

@ragcsalo I've added the functionality of receiving button press notifications to my app, so you can check how it works. However, I don't know the Cordova plugin you mentioned so I can't help you with that. As for writing to some characteristics just to be able to subscribe - I didn't need such thing. It could be a specific behaviour of the device mentioned in the StackOverflow post you've linked.
PS. Sorry for long response time - I didn't get a notification from GitHub about your issue.

Thanks! :-) It works now on Android, but on iOS I still get the error message... :/

I'm closing the issue as I don't see any more feedback I could provide.


Port Request: vips

Hi people!
I'd like to use vips library, for imaging process, it's quite used on PHP and lately on Node, also for C++.
This is the project on github: https://github.com/jcupitt/libvips
The current buildsystem is based on MinGW and it's difficult compiling it when working on MSVC.
I've seen some CMake files for building, but I don't know in which state is it.
The author is very nice and answers quickly, and you can contact me if you need any help.
Thanks!

We can’t reopen this issue until a PR is opened, unfortunately, consider making a pull request!


2328 course study mode question publish trainees

Context
Adding the course study mode question to Publish courses. When a user chooses a Publish course which has the study_mode: full_time_or_part_time, we add an extra step in the user journey asking the user whether they want the full_time or part_time course.
Changes proposed in this pull request

Added course_study_mode workflow
Added UI page for choosing study_mode
Added migration for study_mode column on Courses table
Added logic in order for this to only be applied to specific routes
Added validation to ensure the user chooses full_time or part_time

Guidance to review

Navigate to a trainee on one of the following routes: provider_led_postgrad, school_direct_tuition_fee or school_direct_salaried
Go to the course details page where you can select a Publish course
Select a Publish course which is Full time or Part time and click Continue
Choose Full time or Part time and click Continue
Check that the selected study_mode appears on the summary page
Click Confirm and check that the progress is Completed

 [L] Course study mode question - Publish trainees

Hey @avinhurry, I'm getting the form step, but study mode doesn't show up on the confirm page 😢  Tried it on multiple courses, also varying between full time and part time options.

🤔 @bbelward, I can't seem to replicate that. Can you let me know when you have time for a chat please?


Fix a few instaces of re- based words where the hyphen was left out.

It seems that typically words like "re-render" include a hyphen. This PR simply adds those in when they were missing (and I noticed).

Hello @Jared-Dev, thank you for the contribution!
Unfortunately, when I check at the latest version of the docs, I don't see any occurrences of rerender wording, so let me close this PR as outdated.
However, please feel free to create new PRs for other open issues!


Missed add a link for the text "How DbContext Discovers the Model and Database Connection topic"

Locate at the part 4. Reading & Writing Data, the "where is my data" section.

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

ID: 9c8be815-df51-dc77-fb5b-ccfa7f742e10
Version Independent ID: 353c54e3-b7c9-fcdd-ca71-2a11beab19fd
Content: Code First to a New Database - EF6
Content Source: entity-framework/ef6/modeling/code-first/workflows/new-database.md
Product: entity-framework
GitHub Login: @divega
Microsoft Alias: divega

It would be good to have that topic linked in the text :+1:  How hard can it be to add it?

Thank you for requesting a change to the EF6 documentation. We are prioritizing improvements to the EF Core documentation and at this time we are not making changes to the EF6 documentation.
However, we will consider well-written community pull requests to improve the EF6 documentation. The documentation source is located in the EntityFramework.Docs repository on GitHub. To submit a pull request:

Find the file to update and click on it to open

Click on the edit button (✏) to edit in your web browser

When done, add a title and description, then use the "Create a new branch and start a pull request." option.

(Note that you can also clone the docs repo and do a GitHub PR in the normal way.)


HI-FI gan inference latency

I saw in README that hi-fi gan inference speed is 10x faster than that of multi-band melgan. Why is hi-fi gan so fast?

I am not sure of the actual reason. You can refer to the HiFi GAN Paper for more details. This is the quote from the paper "HiFi-GAN generates samples 13.4 times faster than real-time on CPU with comparable quality to an autoregressive counterpart."

I am not sure of the actual reason. You can refer to the HiFi GAN Paper for more details. This is the quote from the paper "HiFi-GAN generates samples 13.4 times faster than real-time on CPU with comparable quality to an autoregressive counterpart."

I am not sure of the actual reason. You can refer to the HiFi GAN Paper for more details. This is the quote from the paper "HiFi-GAN generates samples 13.4 times faster than real-time on CPU with comparable quality to an autoregressive counterpart."

yes I believe that it is 10x times faster than real-time on CPU with comparable quality to an autoregressive counterpart. But multi-band melgan is not an autoregressive model and it is already 10x times faster than its autoregressive counterpart(melgan). So I just feel it is wield.

I am not sure of the actual reason. You can refer to the HiFi GAN Paper for more details. This is the quote from the paper "HiFi-GAN generates samples 13.4 times faster than real-time on CPU with comparable quality to an autoregressive counterpart."

yes I believe that it is 10x times faster than real-time on CPU with comparable quality to an autoregressive counterpart. But multi-band melgan is not an autoregressive model and it is already 10x times faster than its autoregressive counterpart(melgan). So I just feel it is wield.

Like I said I do not have much expertise on the HiFi GAN. You can use the HiFi GAN model from the repository and use this benchmarking tool to benchmark yourself. If you found out any discrepancy feel free to report. We used the same benchmark tool to benchmark all the models.

Like I said I do not have much expertise on the HiFi GAN. You can use the HiFi GAN model from the repository and use this benchmarking tool to benchmark yourself. If you found out any discrepancy feel free to report. We used the same benchmark tool to benchmark all the models.

Like I said I do not have much expertise on the HiFi GAN. You can use the HiFi GAN model from the repository and use this benchmarking tool to benchmark yourself. If you found out any discrepancy feel free to report. We used the same benchmark tool to benchmark all the models.

Thanks for the reply

Like I said I do not have much expertise on the HiFi GAN. You can use the HiFi GAN model from the repository and use this benchmarking tool to benchmark yourself. If you found out any discrepancy feel free to report. We used the same benchmark tool to benchmark all the models.

Thanks for the reply

Like I said I do not have much expertise on the HiFi GAN. You can use the HiFi GAN model from the repository and use this benchmarking tool to benchmark yourself. If you found out any discrepancy feel free to report. We used the same benchmark tool to benchmark all the models.

Thanks for the reply

Did you find the reason why hifigan gets 10 times faster than multiband melgan ?
I try benchmark provided checkpoint of hifigan, it takes up to 0.3s for inference.
https://github.com/tulasiram58827/TTS_TFLite/issues/12
Maybe there some mistake here  @cookingbear @tulasiram58827


Provisioning module has no notion of reservation expiration

Currently in the provisioning module, the reservation have no notion of time. We lack the information about for how long does the reservation needs to be live.
We need to add a duration to the Reservation struct, so we can know if a reservation is still valid or if it should be deleted from the system

Duration or expiry date ?
if a user adds coin to his reservation, what happens ?

duration is a number, where newduration = oldduration - []list of elapsed + (coin * duration)
expiry is a date where newdate = olddate + (coin * duration)

So :

expiry is indivisible and
in duration we could have a more granular approach of a list of durations where the reservation was active, but it seems to me we don't have a definition for that

and:

expiry is simpler to reason and code around
duration is more elastic

Very good point. I think as long as we don't know how a user is supposed to extend a reservation we cannot really make a decision here. I would lean more toward duration cause I think this will make extension of a reservation easier.
With fix expiration date, we'll need some logic somewhere that looks what was the previous expiration date, then add some time to it etc... Makes things a bit more complex I think
While if we just have duration, the node can perfectly gather all the reservation for a specific workload and just add all the duration to get the full duration time.
@despiegk any comment on that ?


/ should automatically input when WASD camera is enabled.

Just a small suggestion. Makes it a bit more convenient for speaking in clan chat.

This was resolved


Implement Security Groups for Open vSwitch

Author Name: Stefan Kooman (Stefan Kooman)
Original Redmine Issue: 3250, https://dev.opennebula.org/issues/3250
Original Date: 2014-10-20

This will probably connect open vSwitch with a central controller.
The original description of this issue:
The WHITE_PORTS_TCP (and probably _UDP too) rules do not get applied when a VM template with _only_ white ports gets instantiated:

VM in running state, dump of openflow rules on hypervisor:

ovs-ofctl dump-flows uplink

NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=317492.877s, table=0, n_packets=969597, n_bytes=95755656, idle_age=0, hard_age=65534, priority=0 actions=NORMAL
 cookie=0x0, duration=282728.832s, table=0, n_packets=5941, n_bytes=501927, idle_age=32, hard_age=65534, priority=40000,in_port=3,dl_src=02:02:b9:3e:10:8d actions=NORMAL
 cookie=0x0, duration=282728.820s, table=0, n_packets=0, n_bytes=0, idle_age=65534, hard_age=65534, priority=39000,in_port=3 actions=drop

There is no rule blocking all traffic _except_ the white port, all traffic is allowed.

Original Redmine Comment
Author Name: Ruben S. Montero (@rsmontero)
Original Date: 2014-10-24T11:42:49Z

This will be considered together with the security groups feature.

Original Redmine Comment
Author Name: Ruben S. Montero (@rsmontero)
Original Date: 2014-12-09T16:53:02Z

Updating the issue considering the new security groups functionality

Original Redmine Comment
Author Name: Esteban Freire Garcia (Esteban Freire Garcia)
Original Date: 2015-10-27T14:00:27Z

Hello all,
I would like to add that we (SURFsara) are also interested in implement Security Groups for Open vSwitch. Please, let us know if you need any information about it or if you need we test anything on our OpenNebula test environment.

As far as I'm concerned this would still be a nice addition to the OpenvSwitch (OVS) driver. According to OpenNebula architecture survey 2023 results almost 1/3 of all deployments use OVS.


Deploy ODM Benchmark

• Enabled ODM benchmark since benchmark package has been staged (https://github.com/AdoptOpenJDK/openjdk-tests/issues/457) and numactl has been installed (https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/394) on the perf machines
• Fixed various environment variables
• Updated the playlist to copy the benchmark config file in the correct directory before running it
• Changed tar to zip to package the benchmark output files
• Cleaned up some redundant code
• Other fixes
Signed-off-by: Piyush<EMAIL_ADDRESS>

Thanks @piyush286 for updating.

@llxia Sorry, I haven't been getting much time to work on this change due to other higher priority issues. I'll get back to this on Monday if not earlier.

That's ok. Thanks for working on this. :)


Signals and Documentation

Hi,
Since pre_user_save and post_authenticated are not any more used, I think it should be great to delete signals.py to avoid a working website wich was using signals to performs some actions ?

I completely agree but at the same time I'm looking for contributor that would reintroduce these (and document this feature) standing on what already documented in django and what would be the best practices for djangosaml2
I'm looking for contributor for that, would you like to join in this?

Yes we (Webu) can join it.
I think there are 2 approaches :

no signal, but extends the backends and views + override urls (like in the current master branch): need doc for :

how to have our own backend with examples
which "hooks" we can override in backend and need some code modification (for what I need, I must override _update_user because current "hooks" are not enough)
how to have our own views (like AssertionConsumerServiceView: extend it, change urls, etc.) with examples
which "hooks" we can override in those views

send djangosaml2 signals like before + add doc

I think both approaches have advantages and depend on what you want to do. For exemple, it's simpler to have multiple independant app's which add custom code via signals. But for dependant apps, it's stronger to use hooks via multi Mixins inheritance for final Backend / View.

regardings signals:
we need a general review of the current approach and a documentation for that
regarding hooks we have two strategies:

inherit AssertionConsumerServiceView and use urls.py to get it in. This commonly used for additional checks/validation and error handling regarding SAML2 Response.
inherit Saml2Backend as authentication backeds (suggested for internal user attributes, rewrites, storage, model ...)

as alternative we could move to a better generalizable model, similar to this:
https://github.com/UniversitaDellaCalabria/uniCMS/blob/a317c0d71b2c9ef6f2f9992f59eeb46f744522cf/example/unicms/settingslocal.py#L306
here we have some registered hooks (that could be also external django apps).
Each hook MUST accept a predefined (by-design)set of attributes, example: request, ava ...
In the core of djangosaml2 (AssertionConsumerServiceView and Saml2Backend) we should only register the calls of the configured hooks, similar on what did here as signals
https://github.com/UniversitaDellaCalabria/uniCMS/blob/main/src/cms/contexts/signals.py
or adding the calls in the class methods.
Probably the settings HOOKS would be the smartest thing if you agree

Hi @DylannCordel
Have you found something interesting to start with?
Which approach would you prefer?

Hi @peppelinux
IMHO, be able to inherit some classes (views, backends...) which are designed to add some code execution at specific moment to change/add some behaviours is a must have. In the other hand, signals are also great to perform some actions which are independant from what SAML does, but just need to be executed at the right moment and get access to informations.
Concerning the signal registration via a setting, I'm not sure. I would prefer that third-party apps stay autonomous to register  receivers once they are added in INSTALLED_APPS. If a signal is "order dependant" from th other in it's execution, I think it must not be a signal but an extend of the class where code is run.
In conclusion, I think both approaches are complementary (code designed to be overrided + signals) and will allow developpers to get a way for every thing they want to do.
I'll create a wip PR with just the documentation and if you are ok with what is proposed, I'll implement it.

This has been handled in exactly the wrong way. Removing signalling callers without removing the signals themselves means there are chumps like me doing upgrades and some time later finding out that their whole system has fallen apart and not being able to find out why until they start digging around in ACS view code.
Why doesn't AssertionConsumerServiceView.post_login_hook(..) just send the post_authenticated signal by default? That's next-to-zero effort to keep (some) systems working. Getting pre_user_save hooked back in via the class would be useful too but that takes a little more thought.
But please, just do something. If you remove the signals it will break code and that is a good thing! Means developers get the opportunity to notice this and fix things. Or you could put deprecation warnings (or throw errors) in the signals.py file (that trigger when imported). But leaving it like this is hurting users.

Nice shot @oliwarner
this issue and the relative PR seems to be in pause.
Would you like to purpose a PR with the post_login_hook method in ACSView?
We can include and document this feature in the next release 1.4.0 of djangosaml2 if you agree

@peppelinux It's hard to see how to best unravel 343c7e4c56b362e5bca83335abb8063a93682866
If signals are going to carry on existing, reverting most of it seems most sensible. If they're not, I do think deleting signals.py (and breaking downstream systems so they have to fix things) is the healthier option.

I'll proceed deleting signals.py as soon as possible

anyway @oliwarner we have this very good work from @DylannCordel here
https://github.com/IdentityPython/djangosaml2/pull/292/files
before deleting singlas.py I'd like to give a change to this work.
we could have both post_auth method and signals, each implementer would decide if inherit the class and overload the method or registering a new signal
having said this I think that we should decide together if going ahead with signals and complete that PR or clean up the source tree from signals.py

Definitely. I really appreciated signals as a way to hook this behaviour. They were much easier than inheriting a CBV, overriding methods within that, pointing an extra URL to your new overridden view in such a way to override the old one. That's all a pain in the bum we can do without (unless you really want to). Signals are way better.
My problem was the current state of things. While signals exist and aren't being called, there will be djangosaml2 users whose listeners aren't being actioned and important business logic calls aren't happening. The PR from @DylannCordel looks good.
The signature on pre_user_save has changed. Does Django detect this? If it doesn't, I'd suggest renaming it. That way it'll force any people using the old signals to update their code.

@oliwarner would you like to give a patch on this and complete the WiP of @DylannCordel with your very reasonable ideas?
I can give you a modest revision and a certain merge :)


License?

I was considering adapting your code for my own use on macOS but noticed that there is no license file in this repo. Would you mind adding one so we can be clear on what is permitted for reuse (e.g., MIT, GPL)?

Hi Mat,
Yes, sorry I forgot a license. This is actually my first public github
project, so I'm a little new to these things. A standard MIT license has
been pushed.
I'm curious, what do you plan to adapt this for?
Cheers!
-John
On Fri, May 10, 2024 at 11:56 AM Mat Kelly @.***> wrote:

I was considering adapting your code for my own use on macOS but noticed
that there is no license file in this repo. Would you mind adding one so we
can be clear on what is permitted for reuse (e.g., MIT, GPL)?
—
Reply to this email directly, view it on GitHub
https://github.com/irontonbrewing/tilt_perl/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/BHBPFOC2ZIVKPFWRZANIZE3ZBUC45AVCNFSM6AAAAABHRATZQWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TAMJWHE2DMMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Yeah perl/Tk is very old but perl 5 is still maintained and updated. I use
perl/Tk every day at work so I’m most comfortable with it.
On Fri, May 10, 2024 at 1:02 PM Mat Kelly @.***> wrote:

Closed #1 https://github.com/irontonbrewing/tilt_perl/issues/1 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/irontonbrewing/tilt_perl/issues/1#event-12773116144,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BHBPFOBGMNKTNS7WWQXFJCDZBUKUXAVCNFSM6AAAAABHRATZQWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSG43TGMJRGYYTINA
.
You are receiving this because you were mentioned.Message ID:
@.***>

@irontonbrewing No complaints here — use the tools that you know and that work well for you. 🍻


Does not run in console

I right click on RATAttack.py and click 'Edit with IDLE', it opens Py editor. Then I run module by F5 and opens python shell. Script is running.
However, when I try to open via console py RATAttack.py or pyw then it throws an error:
_ line 479 exec(command in globals())
SyntaxError: unqualified exec is not allowed in function 'handle' it contains a
nested function with free variables _
Why this would happen?

Problem fixed. The problem was py v2.7, instead, I had to uninstall it, install 3.7.3 (latest to the date) and now it works.


/construction/parse

Description
/contruction/parse needs to be updated in order to parse the MA unspents from both signed and unsigned transactions.
Implementation details

Parsing and mapping needs to be updates as it's being done already.
See #268 to see how mapping is being introduced in output operations

Again, watch out for special characters in the token names.  I'm assuming there is eg some JSON or data structure for the token bundles in the UTxOs.  I don't think you will need to deal with replicated token names under the same policy ID, though it might be theoretically possible to create this

Again, watch out for special characters in the token names.  I'm assuming there is eg some JSON or data structure for the token bundles in the UTxOs.  I don't think you will need to deal with replicated token names under the same policy ID, though it might be theoretically possible to create this


Fixed typo, LTS -> TLS on main README

@AugustDG Many tanks for reporting this. There was more misspellings. Fixed in latest commit. Closing this request.


added vyxo subdomain

[x] My submissions follows the Submission Rules
[x] I have read and accepted the Terms and Conditions

abcdef-rember-to-alphanumerically-align-ghijklmnopqrstuvwxyzåäö

What am I supposed to fix?

Accidentally merged while you CI didn't pass, please open a new PR


 doesn't render after being detached then attached

Description
If I detach the <model-viewer> from the DOM, and later on attach it again (same parent or different nodes), the <model-viewer> doesn't render anymore. It requires to force an update to src, and it's not enough to "fake" the update to that property using requestUpdate https://lit.dev/docs/components/lifecycle/#requestUpdate  e.g. (see demo page)
  // Faking an update to src doesn't work.
  await mv.requestUpdate('src', null);

  // Forcing an update of the actual property works.
  const src = mv.src;
  mv.src = null;
  await mv.updateComplete;
  mv.src = src;

Live Demo

https://glitch.com/edit/#!/north-cactus-begonia

Version

model-viewer: v2.1.1

Browser Affected

[x] Chrome, version: xx.x.xxxx.xx
[x] Edge
[x] Firefox
[x] IE
[x] Safari

OS

[x] Android
[x] iOS
[x] Linux
[x] MacOS
[x] Windows

AR

[ ] WebXR
[ ] SceneViewer
[ ] QuickLook

Yes, that's by design. When the element is detached from the DOM, the src is automatically set to null, which allows the model to be garbage collected if the cache is exceeded. I think mv.src = url should be adequate to reset.

Oh, I bet I know why; there's a 1000ms delay between removing it from the DOM and setting src = null. That's from way before my time; seems a bit long. Anyway, I wouldn't mind improving this, but it's not blocking anything, right?

Correct this is not blocking, as we can reset src to null when disconnecting the element


Nuxt 3 is unable to resolve dependency in build mode.

Environment

Operating System: Linux
Node Version:     v18.18.0
Nuxt Version:     -
CLI Version:      3.10.0
Nitro Version:    -
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
#https://stackblitz.com/~/github.com/paragdiwan/nuxt-stencil-integration
Please follow below steps to reproduce

pnpm i

pnpm nuxt-dev

Runs in dev mode & once up, visit http://localhost:3000/hello
This renders the stencil component & you should see text containing "hello world" message.

pnpm build

Runs in build mode & once up visit http://localhost:3000/hello , you will notice an error
GET http://localhost:3000/_nuxt/my-component.entry.js net::ERR_ABORTED 404 (Cannot find static asset /_nuxt/my-component.entry.js)

Describe the bug
When Nuxt is hosting stencil-js web components , in development mode it works perfectly fine.
but when the same is done in build mode, the dependency is not resolved and results in following error.
GET http://localhost:3000/_nuxt/my-component.entry.js net::ERR_ABORTED 404 (Cannot find static asset /_nuxt/my-component.entry.js)_
This is not found in the _nuxt folder.
Additional context
No response
Logs
No response

After analyzing further, got to know that vite has difficulties in loading stencil components lazily
Reference URL = https://stenciljs.com/docs/config-extras see attribute stencil provides build attribute - enableImportInjection
This resolved the dependencies.
but perhaps, vite needs to check on this.
Hence closing this issue.


bluetooth: host: Check BT_DEV_ENABLE bit with bt_rand() calls

Check if BT_DEV_ENABLE flag in bt_dev.flags is set before generating a random number.
Signed-off-by: Ahmed Moheb<EMAIL_ADDRESS>

It's not even as simple as that, since there are initialisation commands as part of the HCI init procedure that are sent during the bt_enable() call. The HCI driver's send() callback will likely also return an error if the driver hasn't had its open() callback called, so I'm not sure we want to add new places to the host code to check for the same thing. Anyway, I do agree that what we definitely shouldn't do is to add command-specific tests like this PR is now doing.

But looking at something like bt_hci_cmd_send_sync, it would just put the command on the bt_dev.cmd_tx_queue and then timeout when it hasn't been handled. That would either do an assert (BT_ASSERT_MSG(err == 0, "k_sem_take failed with err %d", err);) or return -EIO after HCI_CMD_TIMEOUT (currently 10 seconds).
So basically if someone calls anything that sends a HCI command, they will either get an assert, or an -EIO after 10 seconds, neither of which is a good indication that the BT stack isn't enabled.
bt_hci_cmd_send works differently and calls bt_dev.drv->send directly, but it never checks if bt_dev.drv->send is non-NULL either, so instead of returning an error, it will probably throw a segmentation fault.
Neither of the above is something I'd consider a good user experience, but it's been that way for a long time without any issues raised about it, so I understand if we do not want to change anything.
@ahmedmoheb-nordic Did something specific happen that caused you to add these checks in the first place?

@ahmedmoheb-nordic Did something specific happen that caused you to add these checks in the first place?

No, I'm currently working on adding UTs for different host modules, and I found that check being used in one place before calling bt_rand() but not used in other places with similar functionality.

My current feeling is that we should add (assuming we don't have it already) a host-side flag to track whether hci_drv->open() has been successfully called, and clear this flag whenever hci_drv->close() gets called. The HCI command sending functions (both the sync and async ones) should then check for this flag and return an immediate error if the HCI transport is not open.

Can't we just check for bt_dev.drv->send == NULL?

@Thalley we never set it to NULL, nor can we, since the driver data is treated as const by the host. This also matches the actual HCI driver-side implementations of the struct: most, if not all drivers (native controller included) declare it as const, thereby placing it in ROM.

I like @jhedberg's proposal. The HCI transport is a layer below the Host. Functions that just directly use HCI should not check bt_dev.flags.BT_DEV_ENABLE because that is for telling if the Host is available.

I like @jhedberg's proposal. The HCI transport is a layer below the Host. Functions that just directly use HCI should not check bt_dev.flags.BT_DEV_ENABLE because that is for telling if the Host is available.

Maybe a bit of nit-picking, but isn't that more for telling if the controller is ready?
Part of calling bt_enable is sending the hci_reset to put the controller into a known state
The flags are defined as
/* bt_dev flags: the flags defined here represent BT controller state */
enum {
	BT_DEV_ENABLE,
	...

But maybe that's no longer the case :)

@Thalley the code comment about the flag is probably outdated. They’re meant to track any boolean-style state information that the host needs to track. Some of them may be about the state of the controller, others about the state of the HCI driver (eg “is the HCI transport open?”) and some about host-internal state. So I wouldn’t get hung up on that.


Wording clarification

Thanks for catching that! Can you please revert those changes and edit the files in src/docs/components.md? The docs are built from markdown.

Done! I have to admit, I had quite a bit of trouble figuring out how to edit your documentation - I always forget to check for a gh-pages branch. Have you considered running a separate moon-docs repo instead?

Awesome! I haven't considered a moon-docs repo, but it might be a good idea. The documentation basically works by converting all md files in the src directory and copying them to the root directory while converting them to HTML.
It would also be great if you could squash this into a single commit.

You can merge this into a single commit using this menu option (I use this option all the time, I love being able to turn a pull request with multiple changes into a single commit to master):

Huh. TIL. Thanks!


filters not working in production server.

#Data table filters not working on production server
We have 3 enviorenments namely dev, qa and prod. The datatables filters just works fine on dev and qa enviorenments. But on production the filters does not work as expected. For example the search return all the records without filtering the records searched. The only difference to the production environment to that of dev and qa is that production server has a ssl and hence use https.
When i observe the request I see that the input[] array is empty.

System details

Operating System
PHP 7
Laravel Version 5.5
Laravel-Datatables Version 1

I think this is on apache/nginx config where ajax url are being encoded twice?.. have a similar closed issue but can't remember the name. The hint here is the input being empty array.

Found it! https://github.com/yajra/laravel-datatables/issues/1210

See this too:
https://github.com/yajra/laravel-datatables/issues/1086
https://github.com/yajra/laravel-datatables/issues/142

I have tried setting the cgi.fix_pathinfo=0 but still the same. Also mcrypt is enabled. see the screen below.

Im not so knowledgable on server config but this issue is indeed related to your server setup. I suggest you consult a server administrator to help you with this. Thanks!


docs: fix typo

Coverage remained the same at 98.88% when pulling 9d46e9cac55ce2c0a082fe15ab92584b844daf80 on Jeff-Tian:master into 42ff63c60ae55f466d21332306e9112295c0535e on jaredhanson:master.

Coverage remained the same at 98.88% when pulling 9d46e9cac55ce2c0a082fe15ab92584b844daf80 on Jeff-Tian:master into 42ff63c60ae55f466d21332306e9112295c0535e on jaredhanson:master.


VueJs2 template or render function not defined

The loading bar is not showing and I get this error in the console. I am using VueJs2 + webpack
vue.esm.js?efeb:591 [Vue warn]: Failed to mount component: template or render function not defined.

found in

---> <VueLoading>
       <Campaigns> at src/components/Campaigns.vue
         <App> at src/App.vue
           <Root>

Solved my own problem LOL. Make sure you follow instructions.


Why odometry message transform is not used as ROS document?

I am using wheel encoder/ steering angle info, so I need to convert it to odometry message.
I get it working but there is a minor issue which make me confused for a while.
The extrapolator in cartographer can use odometry data. But it convert the pose in nav_msgs/Odometry message using the transform of msg->child_frame_id.
Should it use msg->header.frame_id? Seems msg->child_frame_id is used for twist, not pose.
Thanks
std::unique_ptr<carto::sensor::OdometryData> SensorBridge::ToOdometryData(
    const nav_msgs::Odometry::ConstPtr& msg) {
  const carto::common::Time time = FromRos(msg->header.stamp);
  const auto sensor_to_tracking = tf_bridge_.LookupToTracking(
      time, CheckNoLeadingSlash(msg->child_frame_id));
  if (sensor_to_tracking == nullptr) {
    return nullptr;
  }
  return carto::common::make_unique<carto::sensor::OdometryData>(
      carto::sensor::OdometryData{
          time, ToRigid3d(msg->pose.pose) * sensor_to_tracking->inverse()});
}

# This represents an estimate of a position and velocity in free space.
# The pose in this message should be specified in the coordinate frame given by header.frame_id.
# The twist in this message should be specified in the coordinate frame given by the child_frame_id
Header header
string child_frame_id
geometry_msgs/PoseWithCovariance pose
geometry_msgs/TwistWithCovariance twist

The transformation is correct, if you have trouble understanding it you can try to find out what the transformation chain is (mathematically, drawing etc). It's a good exercise.


Add :z/:Z to mounted volumes in {local,production}.yml

Description
Add :z or :Z suffixes to volumes in the local.yml and production.yml docker-compose configuration files.
Rationale
Without these in local.yml, I was getting the following errors:
$ docker-compose -f local.yml up
[...]
django          | python: can't open file 'manage.py': [Errno 13] Permission denied
flower          | Unable to load celery application.
flower          | The module config was not found.
node            | Error: EACCES: permission denied, scandir '/app'

I've only cursorily tested that the modifications to local.yml do seem to work; I see the index page and the django-debug-toolbar sidebar when I navigate to http://localhost:8000/

[x] (Have someone else?) test these modifications to production.yml
[ ] Get feedback on whether relabeling is the only way to make this work on a platform with SELinux enabled (e.g. Fedora, CentOS, RHEL, SUSE)
[x] Verify that :z and :Z are silently ignored on non-selinux platforms
[x] Reference the docs:

https://docs.docker.com/compose/compose-file/#volumes
https://docs.docker.com/storage/volumes/
https://danwalsh.livejournal.com/76016.html

:z will relabel with a shared label so other containers ran read and write the volume.
:Z will relabel with a private label so that only this specific container can read and write the volume.

[x] Should production_postgres_data_backups:/backups:z be :z or :Z?

Use case(s) / visualization(s)

Users developing in docker containers on systems with SELinux in enforcing mode (Fedora, CentOS, RHEL, SUSE)
Users deploying to production with docker on systems with SELinux in enforcing mode (Fedora, CentOS, RHEL, SUSE)

Ok let's try this. Let's keep an eye on issues reported from Windows users in the coming days.
Thank you for your contribution! 🎉

Thanks!
On Mon, Sep 7, 2020, 8:53 AM Bruno Alla<EMAIL_ADDRESS>wrote:

Ok let's try this. Let's keep an eye on issues reported from Windows users
in the coming days.
Thank you for your contribution! 🎉
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pydanny/cookiecutter-django/pull/2663#issuecomment-688305949,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAMNS7TITJC4P4HI6QJCULSETJTVANCNFSM4OR7QXGQ
.

Ok let's try this. Let's keep an eye on issues reported from Windows users in the coming days.
Thank you for your contribution! 🎉

Works properly on windows 👍


functionality replace  does not work

Hello,
I use phpwkhtmltopdf <IP_ADDRESS> with PHP Zend Framework. I have a problem I can't to solve.
In array Options, i want use "replace" to send value for my header.html, but it does not work.
I followed the manual and examples but it does not work.
In my options array, i put   'replace' => array('{datejour}' => '10/12/15'),
and in my header html i put span class="date_jour">.
When I generates pdf , value is not replaced.
I tried to integrate the example in the PDFTest.php :
'replace' => array( '{x}' => 'a','{y}' => 'b',),
with
'header-center' => 'test {x} {y}',
but does not work.

Hmm, not sure if I can help much. There's a test case for this, that makes sure, that the command string is generated correctly: https://github.com/mikehaertl/phpwkhtmltopdf/blob/master/tests/PdfTest.php#L218
You could maybe verify with echo $pdf->getCommand() if that's the case for you. If it's correct, then it's a problem of wkhtmltopdf. You could ask there to get further help.

Oh and i see two problems in your code:

You wrote datejour but replace date_jour
You didn't surround it with { } in your header.

So it should be {date_jour} in your header.

thank you for your reply,
In my php
'replace' => array('{date_jour}' => '10/12/15'),
In my Header.html
DATE: {date_jour}
changes had no effect, nothing appears
C:\wkhtmltopdf\bin\wkhtmltopdf --no-outline --encoding "UTF-8" --margin-top "20" --margin-right "5" --margin-bottom "15" --margin-left "5" --footer-font-size "6" --header-html "C:/Program Files (x86)/PostgreSQL/EntrepriseDB-Apache/Php/apache/www/poli/application/views/scripts/wkhtmltopdf/header.html" --footer-html "C:/Program Files (x86)/PostgreSQL/EntrepriseDB-Apache/Php/apache/www/poli/application/views/scripts/wkhtmltopdf/footer.html" --disable-smart-shrinking --user-style-sheet "C:/Program Files (x86)/PostgreSQL/EntrepriseDB-Apache/Php/apache/www/poli/public/css/devis.css" --replace "{date_jour}" "10/12/15" "C:\Windows\Temp\tmpCDAC.tmp.html" "C:\Windows\Temp\tmpCDAD.tmp.pdf"
--replace "{date_jour}" "10/12/15"
I can't find the problem

As far as I know, you can't use replace with an external footer file. In any case, this is not a problem of phpwkhtmltopdf. In other words: Your example wouldn't work either if you use wkhtmltopdf on the command line.

I found another solution

@sebastos13 , What is the solution? :)

https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2427 << this guy has a good implementation of what you're trying to do


add git-shallow source type

Motivation
For most of our deployments only a specific revision is needed when using the git source type, not the full history.
Things changed
This introduces the git-shallow source type (same interface as git), which uses --depth=1 to fetch only a specific revision.
This saves disk space, time and bandwith - e.g. when cloning a big repo like nixpkgs.

Would it be possible to add a depth parameter to the existing git source type?

@4z3 We could add a "shallow" option to the git source type, triggering --depth=1. That would remove redundancies.

@4z3 Updated the PR description and integrated the changes into the git source type.


Fix/local test

Fix broken instructions and docker-compose setup to run tests locally.
Also improved structure of Dockerfile for faster and cleaner termination, and proper runtime configurability.
Also made API Key a secret in ACI deployment.

How about we add a task in backlog to implement a test which validates docker-compose.yml setup as well, otherwise this can brake again and might not work for local dev.

Great point, added #114


Implement table view controller without xib or storyboard

Subclass DTTableViewController, create xib, or storyboard with your view controller, wire up tableView outlet.

Is it possible to implement table view controller without xib or storyboard using this project?

No, creating table view controller from code is not supported due to the nature of cell registration from storyboards - this was a simple choice between storyboards and plain code. Obviously, storyboards won.
It probably does work, but you have to call registerClass:forCellReuseIdentifier: yourself, because built-in register methods will not work.


Better parallelization of scala tests

I'm trying to get tests to run quicker by parallelizing most of the scala steps.
I think that I've hit some Travis timeout in this PR: https://github.com/combust/mleap/pull/708/files  and I'm trying to fix that. But also, who doesn't like faster test execution? :)
@talalryz for review

Example UI on master (w/ deploy stage)

this lgtm! I am surprised that the old shell scripts was running sbt test + tests for each package individually.
Do you know if there was any reason for that?

this lgtm! I am surprised that the old shell scripts was running sbt test + tests for each package individually.
Do you know if there was any reason for that?

Yeah sbt +test is not actually running all of the others (xgboost, benchmark etc.), so we need to keep that in.

@ancasarb do you think we can merge this? It's a nice quality of life improvement on test iteration speed

I've noticed these tests failing in #708 , so I reran them here without changing the code. Apparently something with travis changed cause these were passing and I haven't changed anything


Packages and foodItem

Hi, when i installed the code it has a problem with bcrypt, but when you resolve it (just uninstall and install bcrypt) it has a problem displaying food data cuz it says that !cartItems[id] is undefined at line 14 in FoodItem.jsx.
I tried to resolve the problem but i just started react 3 days ago and im not very very good 😅 (before to install your code i tried to do it by myself following the video on YouTube, but it gave me the same error, so i don't know if the guy wrote something off video or what)
Plz help 😪
EDIT: i figured out that the problem is in the API to get the cart data (http://localhost:4000/api/cart/get), in the backend console it says JsonWebTokenError: invalid signature     at /Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/jsonwebtoken/verify.js:171:19     at getSecret (/Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/jsonwebtoken/verify.js:97:14)     at module.exports [as verify] (/Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/jsonwebtoken/verify.js:101:10)     at authMiddleware (file:///Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/middleware/auth.js:9:34)     at Layer.handle [as handle_request] (/Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/express/lib/router/layer.js:95:5)     at next (/Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/express/lib/router/route.js:149:13)     at Route.dispatch (/Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/express/lib/router/route.js:119:3)     at Layer.handle [as handle_request] (/Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/express/lib/router/layer.js:95:5)     at /Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/express/lib/router/index.js:284:15     at Function.process_params (/Users/Adam_Dari/ReactProjects/PizzeriaFuego/backend/node_modules/express/lib/router/index.js:346:12) i dont know if this is the main reason of the problem. GOOD LUCK

Hi,
It looks like the JWT verification error might be due to an issue with the secret key. Please make sure you have correctly placed your JWT secret key in the .env file and let me know!

Yeah it was, BRUH😭


Update package.json

Seems main: is pointing to dist/headroom.js which doesnt exist.
Came across issue installing through jspm registry and also using jspm install npm:WickyNilliams/headroom.js
warn Main entry point not found for<EMAIL_ADDRESS>     Adjust this property in the package.json or with an override, setting "main": false if this is the intention.

Got it working with a quick tweak, all good! Wonderful and performant tool! Thanks for putting this together :)

I'm unfamiliar with jspm. What as the quick tweak to get it to work?

In package.json, you have "main": "dist/headroom.js", but there is no dist path in your repo.

Bower.json has the same problem which makes it impossible to install plugin via Bower as well as use it with wiredep

+1
bower install https://unpkg.com/headroom.js/bower.zip --save
bower bower#*                   cached https://unpkg.com/headroom.js/bower.zip#e-tag:W/"21e9-15
bower bower#*                 validate e-tag:W/"21e9-15 against https://unpkg.com/headroom.js/bower.zip#*
bower bower#*                      new version for https://unpkg.com/headroom.js/bower.zip#*
bower bower#*                  resolve https://unpkg.com/headroom.js/bower.zip#*
bower bower#*                 download https://unpkg.com/headroom.js/bower.zip
bower bower#*                  extract bower.zip
bower bower#*             invalid-meta for:C:\Users\BORIS~1.MEE\AppData\Local\Temp\SAILPOINT-boris.meerovich\bower\c3a4419258c98e9dc1dd5c36a7ec9fad-20720-XYvxGz\bower.json
bower bower#*             invalid-meta The "main" field cannot contain minified files
bower bower#*             invalid-meta The "main" field cannot contain minified files
bower bower#*             invalid-meta The "main" field cannot contain minified files
bower bower#*             invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .js files: ["dist/headroom.js","dist/headroom.min.js","dist/jQuery.headroom.js","dist/jQuery.headroom.min.js","dist/angular.headroom.js","dist/angular.h
eadroom.min.js"]
bower headroom.js#*           resolved https://unpkg.com/headroom.js/bower.zip#e-tag:W/"21e9-15

I think I'm going to drop support for all package managers other than npm. I don't use anything else, so i cannot reliably support them.

Closing pending further discussion


Update web components version

Version 1.3.0 of the web-components library has been released. Update the theme's _config.yml file to use this version.

Done in PR #78.


Peek - Releasing of Personal Macro Workbook resource when Previewing Excel files

Microsoft PowerToys version
v0.75.1
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
Peek
Steps to reproduce

Create a Personal Macro Workbook in Microsoft Excel.
Open PowerToys, and use Peek on any Excel file.
As long as the same instance of PowerToys remains running, it will never release the Personal.xlsb resource...
Launch Microsoft Excel, and you get this File in Use warning:

PowerToysReport_2023-10-31-21-36-42.zip
✔ Expected Behavior
Upon closing of the Peek window, the Personal.xlsb file should be released.
❌ Actual Behavior
Peek fails to release the Personal.xlsb resource until PowerToys is terminated.
Other Software
Microsoft Excel (via Microsoft 365 Apps for business) Version 2310 Build 16924.20106 Click-to-Run)

Hi,
I tried to reproduce the bug by creating a new xlsb file, but it did not happen to me. I can open file Can you share the Personal.xlsb file with me? Can you also elaborate the steps a little more so that I can reproduce it? /needinfo

Hi,
I tried to reproduce the bug by creating a new xlsb file, but it did not happen to me. I can open file Can you share the Personal.xlsb file with me? Can you also elaborate the steps a little more so that I can reproduce it? /needinfo

Sure thing. A Personal Macro Workbook is different from any ordinary .xlsb file - it is a special .xlsb file that Excel automatically opens in the background every time you launch Excel. The Personal.xlsb file can be created a few different ways, the most common of which is by using the "Record Macro" feature.
First, ensure you have the Developer ribbon tab enabled:

On the File tab, go to Options > Customize Ribbon.
Under Customize the Ribbon and under Main Tabs, select the Developer check box.

Next, follow the steps from this Microsoft support article, copied below:

Go to the Developer tab, and click Record Macro.
In the Record Macro dialog box, don't bother entering a name for the macro in the Macro name box. You can accept the name that Excel gives you, such as Macro1, since this is just a temporary macro.
When you do start creating macros of your own, you'll want to give them descriptive names, so you know what they do.
In the Store macro in box, pick Personal Macro Workbook > OK. This is the most important step, because if you don't already have a Personal Macro Workbook, Excel will create one for you.
Click Developer > Stop Recording, and Excel will have created your Personal Macro worbook.
When you close the workbook, you'll be prompted to save both the workbook, and the Personal Macro workbook.

The Personal Macro workbook gets stored to your XLSTART folder, which is typically located at Users<your_username>\AppData\Roaming\Microsoft\Excel\XLSTART\PERSONAL.XLSB.
From that point forward, Excel will automatically open the Personal.xlsb workbook in the background every time Excel is launched so that your personal macros are universally accessible from any other workbook you open.
This is the resource that is not released by Peek. Please note that I have also seen Microsoft Community posts which indicate that the Windows Explorer Preview Pane has the same issue when previewing Excel files.
I hope my additional information will help you find a solution. Thanks!

Hi,
Thank you for giving all detailed steps to create a personal macro book.
During this time, I reproduced the bug and tried to solve it. I tried to solve the bug by trying different methods, but I could not solve the problem. Then, I tried that in the file explorer preview pane and encountered the same bug there. After talking about this issue with my teammates, we thought that this might be a bug in Excel. There is nothing we can do about this at this stage.
Bug is reported in Feedback Hub and Office feedback system.

Hi @gokcekantarci , thank you for taking the time to recreate the bug and attempt to solve it. I understand that since this issue seems to persist through all applications (including Windows OS) that use the Excel previewer, it would appear to be a bug on the part of Excel rather than Peek.
Is it possible for you to link to the Feedback Hub topic with this bug request so I can track it?
And, should I close this Issue since you've officially declared it is not a Peek bug?

Hi, https://aka.ms/AAnret7
You can check the feedback hub link. @jaimecbernardo  can give better information about when and how the issue should be closed.

Would prefer this to be findable, that's why it's not being closed yet ;)


Adding support for BST/UTC

One minor point, otherwise, perfect

Adding new Doctrine types gives me the fear. I'd like to learn a bit more about whats going on, lets chat tomorrow when we're both in.


Added support for Text and maximum zoom level

Hi @tkon99
Thank you for the PR. I will review it next days, but looks great for now.
Best
Stephan

Merged and published to npm<EMAIL_ADDRESS>Thank you @tkon99.


Container is unhealty and can't access admin interface

Checklist

Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image? Yes
Are you sure you're not using someone else's docker image?
Yes

Describe the bug

What version of Nginx Proxy Manager is reported on the login page?
Can't get to the login page

To Reproduce
Steps to reproduce the behavior:
I ran docker-compose up -d in the folder where config.json and docker-compose.yml are located
docker-compose.yml
version: "3"
services:
  app:
    image: jc21/nginx-proxy-manager:latest
    restart: always
    container_name: npm
    ports:
      # Public HTTP Port:
      - "80:80"
      # Public HTTPS Port:
      - "443:443"
      # Admin Web Port:
      - "81:81"
    volumes:
      # Make sure this config.json file exists as per instructions above:
      - ./config.json:/app/config/production.json
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
    depends_on:
      - db
  db:
    image: mariadb
    container_name: npm-db
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: "npm"
      MYSQL_DATABASE: "npm"
      MYSQL_USER: "npm"
      MYSQL_PASSWORD: "npm"
    volumes:
      - ./data/mysql:/var/lib/mysql

config.json
{
  "database": {
    "engine": "mysql",
    "host": "db",
    "name": "npm",
    "user": "npm",
    "password": "npm",
    "port": 3306
  }
}

docker logs npm
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[8/26/2019] [10:12:57 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:12:58 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:12:59 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:00 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:01 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:02 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:03 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:04 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:05 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:06 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:07 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0
[8/26/2019] [10:13:08 PM] [Global   ] › ✖  error     Packets out of order. Got: 1 Expected: 0

Expected behavior
Excepted the container to be healthy and the admin interface to be accessible
Operating System

Alpine Linux 3.19, kernel 4.19 - Running as root

Additional context
Docker version 18.09.8-ce, build 0dd43dd87fd530113bf44c9bba9ad8b20ce4637f
Running inside a VM (KVM) via Proxmox.
Thank you!

I have same output,
in addition i have this :
docker logs db 2019-09-01 17:02:31 0 [Note] mysqld (mysqld 10.4.7-MariaDB-1:10.4.7+maria~bionic) starting as process 1 ... 2019-09-01 17:02:31 0 [Note] InnoDB: Using Linux native AIO 2019-09-01 17:02:31 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2019-09-01 17:02:31 0 [Note] InnoDB: Uses event mutexes 2019-09-01 17:02:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2019-09-01 17:02:31 0 [Note] InnoDB: Number of pools: 1 2019-09-01 17:02:31 0 [Note] InnoDB: Using SSE2 crc32 instructions 2019-09-01 17:02:31 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2019-09-01 17:02:32 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M 2019-09-01 17:02:32 0 [Note] InnoDB: Completed initialization of buffer pool 2019-09-01 17:02:32 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2019-09-01 17:02:32 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2019-09-01 17:02:32 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2019-09-01 17:02:32 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2019-09-01 17:02:32 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2019-09-01 17:02:32 0 [Note] InnoDB: Waiting for purge to start 2019-09-01 17:02:32 0 [Note] InnoDB: 10.4.7 started; log sequence number 140060; transaction id 21 2019-09-01 17:02:32 0 [Note] Plugin 'FEEDBACK' is disabled. 2019-09-01 17:02:32 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool 2019-09-01 17:02:32 0 [Note] Server socket created on IP: '::'. 2019-09-01 17:02:33 0 [Warning] 'user' entry 'root@fe57c7c0ba15' ignored in --skip-name-resolve mode. 2019-09-01 17:02:33 0 [Warning] 'user' entry '@fe57c7c0ba15' ignored in --skip-name-resolve mode. 2019-09-01 17:02:33 0 [Warning] 'proxies_priv' entry '@% root@fe57c7c0ba15' ignored in --skip-name-resolve mode. 2019-09-01 17:02:33 0 [Note] Reading of all Master_info entries succeeded 2019-09-01 17:02:33 0 [Note] Added new Master_info '' to hash table 2019-09-01 17:02:33 0 [Note] mysqld: ready for connections. Version: '10.4.7-MariaDB-1:10.4.7+maria~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution 2019-09-01 17:02:33 0 [Note] InnoDB: Buffer pool(s) load completed at 190901 17:02:33 2019-09-01 17:02:46 8 [Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:47 9 [Warning] Aborted connection 9 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:48 10 [Warning] Aborted connection 10 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:49 11 [Warning] Aborted connection 11 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:50 12 [Warning] Aborted connection 12 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:52 13 [Warning] Aborted connection 13 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:53 14 [Warning] Aborted connection 14 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:54 15 [Warning] Aborted connection 15 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:55 16 [Warning] Aborted connection 16 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:56 17 [Warning] Aborted connection 17 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:57 18 [Warning] Aborted connection 18 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:58 19 [Warning] Aborted connection 19 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:02:59 20 [Warning] Aborted connection 20 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:00 21 [Warning] Aborted connection 21 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:01 22 [Warning] Aborted connection 22 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:02 23 [Warning] Aborted connection 23 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:03 24 [Warning] Aborted connection 24 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:04 25 [Warning] Aborted connection 25 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:05 26 [Warning] Aborted connection 26 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:06 27 [Warning] Aborted connection 27 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:07 28 [Warning] Aborted connection 28 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:08 29 [Warning] Aborted connection 29 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:09 30 [Warning] Aborted connection 30 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:10 31 [Warning] Aborted connection 31 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:11 32 [Warning] Aborted connection 32 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication) 2019-09-01 17:03:21 0 [Note] mysqld (initiated by: unknown): Normal shutdown 2019-09-01 17:03:21 0 [Note] Event Scheduler: Purging the queue. 0 events 2019-09-01 17:03:21 0 [Note] InnoDB: FTS optimize thread exiting. 2019-09-01 17:03:21 0 [Note] InnoDB: Starting shutdown... 2019-09-01 17:03:21 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool 2019-09-01 17:03:21 0 [Note] InnoDB: Buffer pool(s) dump completed at 190901 17:03:21 2019-09-01 17:03:22 0 [Note] InnoDB: Shutdown completed; log sequence number 140069; transaction id 22 2019-09-01 17:03:22 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2019-09-01 17:03:23 0 [Note] mysqld: Shutdown complete
my docker compose :
version: "3" services:   app:     container_name: app     image: jc21/nginx-proxy-manager:2.0.12     restart: always     ports:       - 80:80       - 81:81       - 443:443     volumes:       - ./apps/nginx-proxy/config.json:/app/config/production.json       - ./data:/data       - ./letsencrypt:/etc/letsencrypt     depends_on:       - db     environment:     # if you want pretty colors in your docker logs:     - FORCE_COLOR=1   db:     image: mariadb:latest     container_name: db     environment:       MYSQL_ROOT_PASSWORD: "npm"       MYSQL_DATABASE: "npm"       MYSQL_USER: "npm"       MYSQL_PASSWORD: "npm"     volumes:       - ./data/mysql:/var/lib/mysql
But the same docker-compose on my macos computer works fine :) but not on my remote server

Same here. Can't get to admin webpage because npm can't connect to db.
2019-09-01 17:39:54 0 [Note] mysqld (mysqld 10.4.7-MariaDB-1:10.4.7+maria~bionic) starting as process 1 ...  2019-09-01 17:39:54 0 [Note] InnoDB: Using Linux native AIO  2019-09-01 17:39:54 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins  2019-09-01 17:39:54 0 [Note] InnoDB: Uses event mutexes  2019-09-01 17:39:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.11  2019-09-01 17:39:54 0 [Note] InnoDB: Number of pools: 1  2019-09-01 17:39:54 0 [Note] InnoDB: Using SSE2 crc32 instructions  2019-09-01 17:39:54 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)  2019-09-01 17:39:54 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M  2019-09-01 17:39:54 0 [Note] InnoDB: Completed initialization of buffer pool  2019-09-01 17:39:54 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().  2019-09-01 17:39:54 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=139881  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.  2019-09-01 17:39:54 0 [Note] InnoDB: 128 out of 128 rollback segments are active.  2019-09-01 17:39:54 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"  2019-09-01 17:39:54 0 [Note] InnoDB: Creating shared tablespace for temporary tables  2019-09-01 17:39:54 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...  [s6-init] ensuring user provided files have correct perms...exited 0.  [fix-attrs.d] applying ownership & permissions fixes...  [fix-attrs.d] done.  [cont-init.d] executing container initialization scripts...  [cont-init.d] done.  [services.d] starting services  [services.d] done.  2019-09-01 17:39:56 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.  2019-09-01 17:39:56 0 [Note] InnoDB: Waiting for purge to start  2019-09-01 17:39:56 0 [Note] InnoDB: 10.4.7 started; log sequence number 139890; transaction id 21  2019-09-01 17:39:56 0 [Note] Plugin 'FEEDBACK' is disabled.  2019-09-01 17:39:56 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool  2019-09-01 17:39:56 0 [Note] Server socket created on IP: '::'.  2019-09-01 17:39:56 0 [Note] InnoDB: Buffer pool(s) load completed at 190901 17:39:56  2019-09-01 17:39:56 0 [Warning] 'proxies_priv' entry '@% root@mariadb' ignored in --skip-name-resolve mode.  2019-09-01 17:39:56 0 [Note] Reading of all Master_info entries succeeded  2019-09-01 17:39:56 0 [Note] Added new Master_info '' to hash table  2019-09-01 17:39:56 0 [Note] mysqld: ready for connections.  Version: '10.4.7-MariaDB-1:10.4.7+maria~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution  [9/1/2019] [5:39:57 PM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND mariadb mariadb:3306  [9/1/2019] [5:39:58 PM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND mariadb mariadb:3306

your error came from mariadb is not found, what is the name of the container ? maybe db instead of mariadb (check your docker-compose and the config.json) :)
thehawk970

your error came from mariadb is not found, what is the name of the container ? maybe db instead of mariadb (check your docker-compose and the config.json) :)
thehawk970

@bpjobin
Well, to be honest it fails even with the example docs. For me I solved using another type of mariadb for this setup.
I used jc21/mariadb-aria that is a container maintained by the same maintainer of this project and works as intended.
I'm gonna close this issue now because I've tried in a dozen VMs and all worked with the new container, so that's it.

Actually, I'd like to keep this issue open if possible. I haven't been able to launch npm properly yet whether I'm using mysql, mariadb or jc21/mariadb-aria.
@thehawk970, here's my config.
config
{
  "database": {
    "engine": "mysql",
    "host": "mariadb", <-- Tried localhost, actually container ip address and hostname
    "name": "npm",
    "user": "npm",
    "password": "npm",
    "port": 3306
  }
}

docker-compose.yaml
version: "3.2"
services:
  npm:
    image: jc21/nginx-proxy-manager:latest
    restart: always
    container_name: npm
    networks:
      - npm-network
    ports:
      - 80:80
      - 443:443
      - 81:81
    volumes:
      - ./config.json:/app/config/production.json
      - ./data:/data
      - ./data/letsencrypt:/etc/letsencrypt
    depends_on:
      - db
  db:
    image: mariadb:latest
    container_name: db
    hostname: mariadb
    ports:
      - 3306:3306
    networks:
      - npm-network
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: "npm"
      MYSQL_DATABASE: "npm"
      MYSQL_USER: "npm"
      MYSQL_PASSWORD: "npm"
    volumes:
      - db-data:/var/lib/mysql

networks:
  npm-network:

volumes:
  db-data:

logs
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[9/4/2019] [3:24:05 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND mariadb mariadb:3306
[9/4/2019] [3:24:06 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND mariadb mariadb:3306
[9/4/2019] [3:24:08 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND mariadb mariadb:3306

Alright, I'm gonna leave this open to maybe get more traction to solve it for you.

my personal error comes from an existing /var/lib on the host, once all has been delete and reinstall
all works fine :)

Have you tried "db" instead of "mariadb" (i guess yes but maybe :D )

with docker run -it /bin/sh on your npm container, can you ping the "mariadb" or "db" container (ping db)

YEEEESSSS!!
It was in fact db instead of mariadb. ping mariadb returned unknown host. I guess I didn't wait long enough last time because I already tried that too. At first it was giving me ECONNREFUSED.
[9/5/2019] [11:31:42 PM] [Global   ] › ✖  error     connect ECONNREFUSED <IP_ADDRESS>:3306

But I let it run for a few minutes and it finally went through!
Thanks very much I've been working on this for days!

I guess both of our problems were different. Glad it was solved. Thank @thehawk970 for all the help!

your error came from mariadb is not found, what is the name of the container ? maybe db instead of mariadb (check your docker-compose and the config.json) :)
thehawk970

@bpjobin
Well, to be honest it fails even with the example docs. For me I solved using another type of mariadb for this setup.
I used jc21/mariadb-aria that is a container maintained by the same maintainer of this project and works as intended.
I'm gonna close this issue now because I've tried in a dozen VMs and all worked with the new container, so that's it.

This worked for me :-)

What I am noticing by checking the logs is app is having the connection error above. However logs for the db container show standard_init_linux.go:211: exec user process caused "exec format error" which seems to be the case when its trying to use an image build for the wrong architecture. I am using the jc21/mariadb-aria:latest image from the docs.


Stream reader encoding

Any news on approving this PR?
Thank you,
Nico

The XmlReader should respect the character encoding specified in the XML Prolog that Splunk sends:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xml" href="/static/atom.xsl"?>

Splunk should always be specifying UTF-8 character encoding and the XmlReader should complain, if the response data includes characters that don't conform to the UTF-8 character encoding.
Do you have an example where this is not the case?

Yes, I do have an example of illegal characters that is returned by Splunk in a response that is supposed to be utf-8. Note that as a consultant in the field, I do not have any control over the Splunk instance I connect to, the Splunk version or anything on the server side. All I have is the API. I use the .Net Client when this is what the customer requires. Take a look at the file attached, line 14: an xml validator would complain about it, just like XmlReader. The solution I am proposing in this Pull Request works around the issue, because you can override the parsing encoding with something that does not break XmlReader. It's critical for me to have that option and I think it will be useful for the community. I encounter this issue a lot in the field. Do you have an alternative solution? In the meantime I am using my own fork of the project, but I would rather use the official distribution from NuGet.
Thank you
splunk_bad_xml.zip

Any news on this PR?

The example you've provided indicates there's a bug in Splunk which should never be sending invalid the invalid UTF-8 character 0xFF, 0xFF. I might like to address that issue as well. What version of Splunk is sending the invalid UTF-8 character? What encoding are you using to work around it?

Most recently I have seen bad characters returned by a Splunk 6.2.4.
I use ISO-8859-9 as encoding override to work around it.

There's a window of opportuninity to address this issue in the next maintenance release of Splunk 6.2.

Can you share the query you're executing?
Can you send some additional samples of problematic results?
ISO-8859-9 is a Turkish character set.
Are you expecting Turkish characters? The 0xFF, 0xFF that Splunk is returning maps to "ÿÿ" in ISO-8859-9. Is that the value you're expecting?

I choose Turkish as a work around, other ISO-* encoding would work too. I was not expecting Turkish. 0xFF looks like crappy data in my case, and I discard these values downstream in my processing. I just need those characters not to crash my utility.
I do not have other samples with 0xFF handy.
I queried an index containing Windows Security Log data from a WMI connector.
(EventCode=4624 OR EventCode=4625 OR EventCode=4648 OR EventCode=528 OR EventCode=529 OR EventCode=530 OR EventCode=532 OR EventCode=533 OR EventCode=534 OR EventCode=535 OR EventCode=539 OR EventCode=540 OR EventCode=682) AND NOT (Account_Name="*$" OR User_Name="*$" OR Logon_Account="*$") AND sourcetype="*WinEventLog:Security*"' 			,'eval deviceReceiptTime = round(_time,0) | eval eventId = index + "_" + _cd + "_" + splunk_server + "_" + deviceReceiptTime 			| eval Source_Network_Address = case(EventCode=4624 OR EventCode=4625 OR EventCode=528 OR EventCode=529 OR EventCode=530 OR EventCode=532 OR EventCode=533 OR EventCode=534 OR EventCode=535 OR EventCode=539 OR EventCode=540, Source_Network_Address, EventCode=4648, Network_Address, EventCode=682, Client_Name) 			| eval Workstation_Name = case(EventCode=4624 OR EventCode=4625 OR EventCode=528 OR EventCode=529 OR EventCode=530 OR EventCode=532 OR EventCode=533 OR EventCode=534 OR EventCode=535 OR EventCode=539 OR EventCode=540, Workstation_Name, EventCode=682, Client_Name) 			| eval ComputerName = case(EventCode=4624 OR EventCode=4625 OR EventCode=528 OR EventCode=529 OR EventCode=530 OR EventCode=532 OR EventCode=534 OR EventCode=535 OR EventCode=539 OR EventCode=540 OR EventCode=682, ComputerName, EventCode=4648, Target_Server_Name) 			| eval Account_Name = case(EventCode=4624 OR EventCode=4625 OR EventCode=4648,mvindex(Account_Name,1), EventCode=528 OR EventCode=529 OR EventCode=530 OR EventCode=532 OR EventCode=533 OR EventCode=534 OR EventCode=535 OR EventCode=539 OR EventCode=540 OR EventCode=682, User_Name) 			| eval Account_Domain = case(EventCode=4624 OR EventCode=4625 OR EventCode=4648,mvindex(Account_Domain,1), EventCode=528 OR EventCode=529 OR EventCode=530 OR EventCode=532 OR EventCode=533 OR EventCode=534 OR EventCode=535 OR EventCode=539 OR EventCode=540 OR EventCode=682, Domain) 			| table eventId, deviceReceiptTime,EventCode,Logon_Type,Account_Domain,Account_Name,Workstation_Name,Source_Network_Address,Workstation_Name,ComputerName,Type