QSV works with HEVC but not h264 on Ubuntu

Don, and the hivemind - thanks first of all for your amazing and instructive work and the time you put into these tools. I am also very sorry in advance for the lengthy nature of this issue - I want to cover my bases. I’ve been wrestling with this for weeks now and so this is a last resort - I realize I may actually be on a fool’s errand but want to check with folks here before I give it up as a lost cause.
The long story short is that while HEVC transcoding on my Ubuntu box using QSV works just fine, the h264 QSV encoder cannot initialize unless it reverts to VAAPI, which I understand to be of lesser quality than proper QSV. For background read on:
I’m running Ubuntu 19.04 on an HP box with an 8th gen Intel CPU. I have ffmpeg built to utilize the Intel Media SDK as prescribed on the SDK’s Github (I’m building ffmpeg from source; but using the Ubuntu repositories to install the media SDK and the libmfx library - building the whole stack from scratch seemed like a good way to break my system, but that may end up being the answer here). I am trying to get other-transcode to properly recognize QSV as opposed to reverting to the open-source VAAPI driver, which has less tuneability and potentially slower throughput as I understand it.
When I try to use other-transcode without passing any encoder options, it automatically detects the VAAPI hardware acceleration mode (though it tries QSV first), even though when I run a list of ffmpeg encoders and decoders h264_qsv is indeed an option. When I pass the --qsv option in other-transcode to try to force it to use that, I get an error:
Transcoding...
[h264_qsv @ 0x558221d52500] Error initializing the encoder: unsupported (-3)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
/usr/local/bin/other-transcode: transcoding failed: Harry Potter and the Deathly Hallows.mkv

The full ffmpeg command line output with verbose logging is linked here: https://drive.google.com/open?id=1x54RUFbCyBJtAbD27h1bDj6AmieLwi_v
The odd thing is that if I use other-transcode with the --hevc, everything works just fine - it detects the QSV encoder on the first try, without using --qsv, and uses it to complete the task.
After some experimenting, which I did before even knowing that --hevc works just fine, it seems that the h264 encoder will initialize when I run the full ffmpeg string in the command line without look_ahead:v 1 or, alternatively, when I set look-ahead:v to 0 instead of 1 (same thing as not passing it all, if I understand correctly from the documentation). I also took a look at the command line output when I pass --hevc and it looks like it doesn’t use lookahead rate control, instead using QSV’s VBR mode - if I’m reading it right - so that may also explain why HEVC encoding works fine.
So my question is twofold -

What the heck is going on that I can’t get look_ahead to work under Ubuntu? This is where I worry I may be on a fool’s errand - as both your documentation AND ffmpeg's documentation says, mapping commands to the Intel driver is very difficult on Linux platforms and some things just may not work. But does anyone have any ideas?

If I can’t get this to work - how much quality am I really losing by using VAAPI for my h264 transcodes? Obviously I hope to use --hevc more going forward but some of the devices I’m streaming to are still less than friendly to newer formats, and I've heard that transcoding 10-bit HEVC on the fly gives Plex some trouble with HW acceleration. Alternatively, are there other ffmpeg command line options I could use to approximate look-ahead in quality? Say, specifying a maxrate or Global_Quality?

I’m sure that in my frustration I’ve missed providing some useful information that could possibly help answer my question, so I’m happy to provide more data if that’s helpful… Thanks again.

@wintervaler My sincere apologies for taking so long to respond to your issue! But I never received the notification from GitHub on it and it just appeared in my issues list this morning. This has happened once before so it's not something either you or I did but some weird brain fart by GitHub. Anyway...
Thanks so much for using my tools! And I'm glad they're (mostly) working for you. I'm especially glad that HEVC encoding with QSV works.
I don't know why passing -look_ahead:v 1 should be such a problem on Linux but maybe @ttys0, @samhutchins or @martinpickett of the HiveMind™ have some ideas on that. "Help me, Obi-Wan Kenobi. You're my only hope."
As to the quality of using the VAAPI API for H.264 output, I'm told that it's still very good. But because I don't have any samples myself, I can't say for sure.
Passing -look_ahead:v 1 to the h264_qsv encoder selects the "LA (VBR)" ratecontrol system within QSV, which is the highest quality algorithm in that GPU's repertoire.
My guess is that using VAAPI selects the "AVBR" ratecontrol system within QSV because that's the default if you only specify a target bitrate and not a maximum bitrate (which isn't possible using VAAPI anyway).
The good news is that the QSV "AVBR" algorithm is the next highest quality algorithm. And it, again, is still very good.
There's a --vaapi-compression option in other-transcode (found in --help full) if you want to tinker with how that might affect quality. Other than that, VAAPI is pretty much a magical black box.

From the FFmpeg wiki, it looks like the libmfx library on Linux only supports a subset of features, so you might be running into that :
https://trac.ffmpeg.org/wiki/Hardware/QuickSync

libmfx on Linux
This is a library from Intel which can be installed as part of the Intel Media SDK, and supports a subset of encode and decode cases.

From the little bit of investigation I did a while back with QSV + Linux, it always came back around to something along the lines of "if you value your sanity, just use VAPPI". Others that dug into the whole mess deeper than I might have better explanations.
I realize the "oh, then don't do that" isn't that helpful, and am only including it since that was the verdict I ended up applying for my stuff. 😁

Thank you both SO much for your comments and at least it has validated that I'm not completely overlooking something. (My account was flagged with GitHub when I created it which may explain the lack of notifications - I'm glad you saw it eventually).
@ttyS0 I have indeed done that little bit of investigation and more for the past month or so and agree that it is headache inducing, though -- I will say -- with the addition of the libmfx library to Ubuntu repositories things seem to have gotten at least a little easier. But clearly not all the kinks worked out yet! Would definitely welcome thoughts from anyone who has dug deeper, as you say.
Sounds like I'll keep using VAAPI for h264 transcodes - or maybe boot into Windows (ugh) when I need to do them - and just keep trying to push the envelope on HEVC. (Thanks @donmelton for that tip about using --vaapi-compression -- didn't know about that and will be checking it out!)

@wintervaler Good to understand the problem with GitHub now.
I will let @ttyS0 elaborate on any excavations he's done...

I don’t have anything else to add. I’m keeping an eye on some of the FFmpeg container chatter. If there is a breakthrough with QSV I would expect to see something pop up there. Till then I’m sticking with VAAPI, and my sanity thanks me. 😁

@ttyS0 Thanks! And seems like a good plan.
@wintervaler I'm going to close this for now because I'm not sure how much we can do at this point. Feel free to keep commenting here or open new issues.

Sorry, I have completely missed this issue until I noticed @donmelton close it!
In the early (pre-release) days of other-transcode, I successfully built a version of FFmpeg which supported direct QSV transocding on Ubuntu 18.04. The process was slow, difficult and buggy, but it did work. Additionally, my system has a Skylake generation CPU whose HEVC support is dubious. Due to the difficulty of installation, I never suggested to @donmelton that he support direct QSV on Linux and so we ended up with VAAPI.
My memory is a bit hazy, but I do recall some issue around the look_ahead implementation, but I really cannot tell you if it was the same as what @wintervaler has experienced. My recollection is it was death by a thousand paper cuts. A lot of settings which worked with QSV in Windows either did not work in Linux or required lots of extra commands. However, there were features of QSV on Linux which did not exist on Windows, one such feature was hardware accelerated subtitle burning (the overlay filter in FFmpeg parlance). I also seem to remember that QSV was slower than VAAPI, but you might expect that if it produces higher quality results.
Looking forwards, I think the work @ttyS0 has done creating a Docker container for other-transcode is great and if it can be extended to include support for true QSV then that is the way to go. I do not think we can expect people to compile their own version of FFmpeg. However, even that does not resolve the issue of FFmpeg based QSV commands differing from Windows to Linux. For that we either need to wait for parity between the OS's, or other-transcode needs to grow more complex.

Thanks, @martinpickett!

Thank you all so much for your comments and I'm glad this is also vexing to the folks here. I'd have been embarrassed and ego-bruised otherwise!
I will keep tinkering (because obviously I will) and report back if I have any breakthroughs. If anyone has any recommendations for where to keep an eye/do further research on this kind of thing in either in ffmpeg circles or here, I'm all ears!

@wintervaler You are very welcome! Keeping track of this stuff is difficult.


add 2nd slide

add2nd slide
Created a branch, created a file and made a commit
opened a pull request

Thank you :) for the contribution!


Unable to upload annotations on CVAT with "Coco keypoints 1.0" format

Current Behaviour
i am unable to upload annotations with "coco keypoints 1.0" format, it is giving me this error:

image and its annotation file are in this drive link.
https://drive.google.com/drive/folders/18SlAFCVxuh-R8vncUHu6TqCeUGHGKFZy?usp=sharing
Note: this annotation file belongs to halpe dataset based on "coco" format.
Expected Behaviour
it should show keypoints on the image.
Possible Solution
not sure

Hi @iqraRajpoot
You should use the COCO 1.0 format for such an annotation file. You will be able to get bounding boxes. If you want to get a skeleton, you need to define categories in the annotation file, add keypoints and skeleton.


update social media card data

title, data, banner

done.
Image was not displaying becuase of misconfiguration:
After updating this meta, image started to be displayed.
<meta name="twitter:card" content="summary_large_image" />


at_c: functions that use secondary_connections or monitor_connections should only require for those atclient_connections in their parameters, instead of atclient_ctx.

Not a good idea probably since pkam authenticate needs those keys as well sometimes,
We can also add properties like isInitialized or isConnected and those functions can do proper checks


MB-15813 add and implement BuildMTOAgent

Jira ticket for this change
Summary
Add and implement BuildMTOAgent
Setup to Run Your Code

💻 You will need to use three separate terminals to test this locally.
Terminal 1
Run tests locally.
 make server_test e2e_test_fresh

Messages

:book:
:link: MB-15813

  Generated by :no_entry_sign: dangerJS against 683b93dbb112886ce264070bda4b8c0eda2315b0


feat: introduce URL scalar in GQLv2

resolves https://github.com/opencollective/opencollective/issues/3043

What is the release strategy? I guess it's a breaking change and frontend needs to be updated at the same time as API?

What is the release strategy? I guess it's a breaking change and frontend needs to be updated at the same time as API?

I'm not too sure but I would assume it would be better to update the frontend at the same time.

I'm not too sure but I would assume it would be better to update the frontend at the same time.

Agree. I don't think  that it's a breaking change for frontend so to speak because if we deploy only the API, I think the frontend will still work (the input is still a string - only the validations are different).
But it will break the CI for frontend, because the schema will be outdated and ESLint will not be happy.
TLDR ; we should merge frontend & API at the same time but no need to deploy at the same time.


Types are incomplete for Repo

First of all, amazing project! Congrats on the launch of AutoMerge 2.0!
When playing around with this I noticed that TypeScript doesn't pick up on any Repo properties provided by DocCollection and EventEmitter. E.g., Repo.create turns up as any.

This can be explained when we look at Repo.d.ts where extends Mixin(...) has been replaced with extends Repo_base, which is of type any.

When I build from the main branch things seems to be working properly, Repo_base is not of type any but has proper typings:

I should cut a release then.
On Sat, Mar 4, 2023 at 2:35 AM Herb Caudill @.***>
wrote:

Closed #16 https://github.com/automerge/automerge-repo/issues/16 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/automerge/automerge-repo/issues/16#event-8665777345,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAWQEIR3GZWYIZJRF52TDW2MLGLANCNFSM6AAAAAAUOXYAU4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Peter van Hardenberg
"Everything was beautiful, and nothing hurt."—Kurt Vonnegut


Color disabling doesn't work

    mochaReporter: {
            colors: false
    },

This does not disable colors

The documentation is wrong. You can disable the colors directly in the karma configuration. See the example below:
// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['jasmine'],

    // reporters configuration
    reporters: ['mocha'],

    // disable colors
    colors: false
  });
};


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 527

Questions ?
Please refer to the Backport tool documentation


Problems with apps installation

Please help! I installed webos homebrew through the rootmytv, installed the applications, everything was ok. Today, I can`t install any application, in any way: neither through the IDE, nor through the home brew, nor even ordinary applications with a LG content store. Writes FAILED_IPKG_INSTALL and that's it. Reboot doesn't help. At the same time, the root did not fly off, there is access through ssh, through winscp and through the IDE. Webos 4.9. What to do?

You're right, there just wasn't enough space. Thanks for the tip! Unfortunately, I did not wait for an answer and tried again to reinstall rootmy.tv over the old one. It didn't help, but I then freed up some space and everything works. Do you think that re-installation rootmy.tv might break something in the system and how will it affect the future?

Closing this since you've resolved your issue. We'll try to add some system info screen at some point to potentially help with these issues. (and potentially show a warning whenever the TV is running out of space)


Resize happens in the second cycle after the instance gets stopped in the first lambda cycle

The resizing of the ec2 instance happens in 2 stages In the first lambda run the ec2 instance gets stopped on trigger. In the second lambda run the resize happens. For the duration between first and second run the ec2 instance is in stopped state.
Details as follows:
Schedule:
Resize |   |   | {<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>} | Australia/Sydney
Period:
Aus-nonoff-hours |   | { "mon-fri" } |   |   | 19:00 | 23:59
Aus-nonoff-hours2 |   | { "mon-fri" } |   |   | 00:00 | 09:00
Aus-office-hours |   | { "mon-fri" } |   |   | 08:00 | 19:00

This is correct. The scheduler will check the actual type of the instance and if this is not the specified type it will stop the instance. In the next cycle of the scheduler it will first resize the type of the instance and then start it. Unfortunately it is not possible to resize an instance without this stop/start. In these situations the scheduler interval may be set to 1 minute to minimise the period between stop/start

Closing due to time elapsed since last correspondence. Please re-open this if you are still having an issue.


Adding more error types

Summary
Small changes to add more error types (responding to issue #48 )
Other Information
Tests and docs updates included.

Awesome! Only comment is that you don't need to update the version or changelog, it'll do that automatically when we make the release.

Sorry, was not aware of that. Will take into account next time. Thanks

LGTM! Thanks @franciscofsales

Released as v2.5.0


Added mouse input handler and key input handle for JemiRecipe

I don't know for what reason it wasn't implemented, but due to the absence of this code, JEI recipes don't handle clicks and keystrokes.

It is a bit silly that it was never implemented. However, I don't really want to add and expose an API like this on DrawableWidget. It'd be fine to just create a new widget for JEMI input events that doesn't render anything.

Well, I made this code based on how you made DrawableWidget. I saw that you were creating a Consumer and decided to do it in the same style.
OK, then you propose to completely abandon DrawableWidget and make a separate widget for Jemi, or you want to create two widgets, but one for rendering and the other for intercepting inputs?

Just if I understand you correctly, you want to create two widgets on top of each other, only one will be with a render, and the other without.
I don't see the point in this when you can just move all the logic (including render and tooltips) to a new JemiWidget.

I was suggesting leaving the drawable widget as it is, and adding a new widget, even just an anonymous or internal class, that just handles the input events.
Thinking about it though, a new custom widget class (inside JemiRecipe) that handles rendering, tooltips, and input events for the JEMI display would probably be reasonable.

I did as you said. Check it out.

https://github.com/emilyploszaj/emi/blob/54b0490d852eb5c64e8ea8bddbf8bac9ba7b908e/xplat/src/main/java/dev/emi/emi/jemi/JemiRecipe.java#L153-L160
why are  you creating a second EmiDrawContext

https://github.com/emilyploszaj/emi/blob/54b0490d852eb5c64e8ea8bddbf8bac9ba7b908e/xplat/src/main/java/dev/emi/emi/jemi/JemiRecipe.java#L153-L160
why are you creating a second EmiDrawContext

because it is done in the original logic. I don't want to break anything...

I removed it.

Other than the comment I have it looks good to me. Have you tested this with mods that use JEI's input features to make sure it works?

Initially, I discovered this problem when using the CustomMachinery mod and after these changes, the click in JEI began to work normally for CM. In general, I think it will work fine.


Add Entropy Seal

These changes adds the variable vault_entropy_seal (default: false). If set to True, it will include the entropy seal stanza in the main configuration file.

Thanks!


quiz example

add a quiz example to guide.  description exists but add a chapter source course.  also add a template to the guide that the users can download and start with.

This is done.


Can I use it to compare different text-image pairs？

Hi, thanks for sharing such great work. However, there is a question.
If I only have a bunch of image and text pairs, that is, [[prompt1, image1], [prompt2, image2], ...[promptN, imageN]], there is a one-to-one correspondence between them, not a one-to-many relationship, may I ask? , in this case how should I use your model to rank the aesthetic and human preference scores of these image-text pairs?

Theoretically, this is not recommended, because our training data takes the form of single prompt vs. multiple images. The training target can not guarantee a good comparison between images of different prompts.
But if you try ranking images of different prompts, you can get some meaningful result. Here is an example: https://tgxs002.github.io/hps_filter.github.io/ . If you are just interested in filtering a dataset, you can give it a try, and see if it works for you.

Thank for your reply.


dgoss: commented out vars injections are not ignored in yaml gossfile

Using goss v0.3.13 and latest dgoss
Commenting out sections of a gossfile is problematic when using injected vars as they are not being ignored:
package:
  tomcat:
    installed: true
#    versions:
#      - {{ .Vars.TOMCAT_VERSION }}

INFO: Starting docker container
INFO: Container ID: 96793649
INFO: Sleeping for 0.2
INFO: Container health
INFO: Running Tests
2020/09/10 10:08:15 template: test:5:16: executing "test" at <.Vars.TOMCAT_VERSION>: map has no entry for key "TOMCAT_VERSION"
INFO: Deleting container

Removing the commented line with the var obviously resolves the issue:
package:
  tomcat:
    installed: true
#    versions:
#      - not_a_var

INFO: Starting docker container
INFO: Container ID: 06ca315f
INFO: Sleeping for 0.2
INFO: Container health
INFO: Running Tests
Package: tomcat: installed: matches expectation: [true]

Total Duration: 0.063s
Count: 1, Failed: 0, Skipped: 0
INFO: Deleting container

I'm not sure this is really a bug, the file is rendered using text/template first, then processed as YAML.
You can escape golang's text/template, using the following if you like (or something similar):
{{ `{{ .Vars.TOMCAT_VERSION }}` }}

I'm not sure it would be possible to detect what will end up as a YAML comment without first rendering the template due to the way YAML works with multi-line strings, for example:
    my_story: |
        Line 1
        Line 2
        # Hash line containing tomcat version: {{ .Vars.TOMCAT_VERSION }}


Move msn forward in mocks to fix fuzz snapshotting

This change adds updating the msn for all the runtimes of the mock container runtime factory when all messages are processed, which is used in synchronization in the fuzz tests. Before the msn would lag, which created problems in the sequence fuzz tests, as the sequence's snapshot format is highly dependent on an accurate msn.

going with a different approach here


[2/x] Refactor root field builder for deferred named fragments

This second PR for https://github.com/apollographql/apollo-ios/issues/3141 refactors the root field builder to build deferred named fragments into the IR. The next PR will generate selection sets from the refactored IR.

Adds IR matchers for named fragment.
Refactored logic for containsDeferredFragment; moved to where the scope condition is modified to include the defer condition.
Refactored add selections logic for .fragmentSpread

I'm gonna merge this into https://github.com/apollographql/apollo-ios-dev/pull/74 so the whole root field builder work can be evaluated as a whole. Especially since this one makes changes to code that's already in that PR.


Installation issue on 8.3.x (used 8.3.2) relating to Time zone

During installation of a fresh copy of Concrete 8.3.2 and reaching the first few steps into it.
You're presented with a details screen to choose Country and Timezone, majority of the time I can't proceed past as I need to select Greenwich. Getting past that screen you can run into issues which stops the installation mid-way.
The issue is due to comparing application timezone to database timezone.
It would make some sense to compare the default PHP time zone to the default MYSQL time zone (but not really - more later). It's comparing the time zone selected by the user at installation to the default timezone of MYSQL. So unless you happen to choose the exact timezone that the database is using by default you can't actually use any of the options - so what's the point of being able to select?
In addition, MYSQL supports session specific time zones, so Concrete could just tell the database to use the user selected time zone when it establishes a connection. It's performing a check that it doesn't need to do which ultimately limits the users choice of allowable time zones to ones that match the default of the database.

Getting past that screen you can run into issues which stops the installation mid-way

Could you describe the issues that break your installation? In order to solve them we'd need to know them.

So unless you happen to choose the exact timezone that the database is using by default you can't actually use any of the options - so what's the point of being able to select?

concrete5 tried to detect the PHP time zones compatible with the MySQL time zone. They must match, otherwise we'll have offset problems when fetching/storing data to MySQL, and we couldn't rely on the date/time functions of MySQL.

MYSQL supports session specific time zones, so Concrete could just tell the database to use the user selected time zone

I see problems here...
If we use the PHP time zone names (e.g. Europe/Rome) we need to be sure that MySQL supports all the PHP time zones. Furthermore many MySQL installations need some time zone tables to be added and maintained updated (see [here](https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html)). If, instead of the time zone named, we would use the offset from UTC (e.g. +1:00), we would have problems with daylight saving times.
Last, but not least, I'd prefer to be as abstract as possible when dealing with the database (what if tomorrow we'll decide to support PostgreSQL or Salute?).
In any case it would be helpful if you could describe better the issues you're having...
PS: you can always configure your php.ini to define the time zone corresponding to the server time zone.


Improve error handling in DDLS deserialize

This pull request should be fix the problem of the Issue #2614.

did you test the scenario outlined in the issue?

No sorry, I can not reproduce the error.

we should reproduce in order to make sure this fixes it


Can not login as admin to mange product

Got "Error: You are not authorized Admin" when signin admin , please let me know how I can manage products and upload image file..

Did Anyone get solution for this issue?

You need a Firebase collection “admins”, inside this collection, you will need to create one document with document I’d = uid of the person who is admin, and inside this document, set a property isadmin=true

On Jan 6, 2020, at 10:20 AM, swaminathAK<EMAIL_ADDRESS>wrote:

Did Anyone get solution for this issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I'm getting the same error, even if my Firebase is properly built and I've followed exactly all steps mentioned in video
Also thank you for all your work

I'm getting the same error, even if my Firebase is properly built and I've followed exactly all steps mentioned in video
Also thank you for all your work

can you please include a pic of your estore collection, you will see a document for your NUID, please include screenshot of this document here.

I don't have an estore collection. I have only what you have created in your video tutorial. This is how my Firebase looks like:

These are the rules of the Firebase.
  match /onlinestore/{document} {
	allow read: if false;
  	allow write: if false;
  }
  match /onlinestore/elish/admins/{documents} {
  	allow read: if request.auth.uid!=null && request.auth.uid == get(/databases/$(database)/documents/onlinestore/elish/admins/$(request.auth.uid)).data.authid;
  	allow write: if false;
  }
  match /onlinestore/elish/carts/{documents} {
  	allow read: if request.auth.uid!=null && request.auth.uid == get(/databases/$(database)/documents/onlinestore/elish/carts/$(documents)).data.authid;
  	allow write: if request.auth.uid!=null;
  }
  match /{document=**} {
      allow read, write: if
          request.time < timestamp.date(2021, 1, 26);
  }

Did I understand wrong? I should have an estore collection?

Did I understand wrong? I should have an estore collection?

I'll download and look into this issue tomorrow.

The problem is in "admin.login.component.ts", at function "loginAdmin()", "res" is undefined.
If you go to "firebase.service.ts" at function "getAdminPortal (coll ?: string)" and show in console "this.authState.uid" is shown proprietly, but it doesn't get to "loginAdmin ()". "getAdminPortal (coll ?: string)" returns an observable and it makes me very confused

The problem is in "admin.login.component.ts", at function "loginAdmin()", "res" is undefined.
If you go to "firebase.service.ts" at function "getAdminPortal (coll ?: string)" and show in console "this.authState.uid" is shown proprietly, but it doesn't get to "loginAdmin ()". "getAdminPortal (coll ?: string)" returns an observable and it makes me very confused

Thanks PhMari3 for helping me debug.
Fact is, as you are able to print "this.authState.uid" in console.log(this.authState.uid) properly, and it displays your uid in console log browser window, tells me, there is nothing wrong in function.
now, what below code is doing, it's going to server (FireBase database), and looking into a collection "estore" (search for_eStoreColl variable defined in Firebase.service.ts which is equal to < estore >).
Further, inside this collection, it's trying to find a document (which has id = your uuid), and in your case, is not able to find it, hence comes back with an error.
Try creating a collection = estore and inside this collection, create a document like this (where id == your uuid) and add fields like show in this link below
look at this image for reference
https://user-images.githubusercontent.com/20031132/71873449-0d25c300-30d4-11ea-82b4-ff38c9fad88c.png
getAdminPortal(coll?: string){
    if (!coll || coll == "store") { coll = this._eStoreColl; }
    let x;
    return this.getDoc(coll,this.authState.uid);
}

Thanks PhMari3 for helping me debug.
Fact is, as you are able to print "this.authState.uid" in console.log(this.authState.uid) properly, and it displays your uid in console log browser window, tells me, there is nothing wrong in function.
now, what below code is doing, it's going to server (FireBase database), and looking into a collection "estore" (search for_eStoreColl variable defined in Firebase.service.ts which is equal to < estore >).
Further, inside this collection, it's trying to find a document (which has id = your uuid), and in your case, is not able to find it, hence comes back with an error.
Try creating a collection = estore and inside this collection, create a document like this (where id == your uuid) and add fields like show in this link below
look at this image for reference
https://user-images.githubusercontent.com/20031132/71873449-0d25c300-30d4-11ea-82b4-ff38c9fad88c.png
getAdminPortal(coll?: string){
    if (!coll || coll == "store") { coll = this._eStoreColl; }
    let x;
    return this.getDoc(coll,this.authState.uid);
}

service cloud.firestore {
match /databases/{database}/documents {
// rules for estore collections
match /estore/{document} {
allow read: if request.auth.uid == get(/databases/$(database)/documents/estore/$(request.auth.uid)).data.authid;
allow write: if false;
}
match /estore/{document}/product/{prods} {
allow read: if true;
allow write: if request.auth.uid == get(/databases/$(database)/documents/estore/$(request.auth.uid)).data.authid;
}
match /estore/{document}/cart/{shoppingcart} {
allow read: if isSignedIn() && isDocOwner();
allow write: if isSignedIn();
}
match /estore/{document}/interests/{shoppingcart} {
allow read: if false;
allow write: if isSignedIn();
} }
}

service cloud.firestore {
match /databases/{database}/documents {
// rules for estore collections
match /estore/{document} {
allow read: if request.auth.uid == get(/databases/$(database)/documents/estore/$(request.auth.uid)).data.authid;
allow write: if false;
}
match /estore/{document}/product/{prods} {
allow read: if true;
allow write: if request.auth.uid == get(/databases/$(database)/documents/estore/$(request.auth.uid)).data.authid;
}
match /estore/{document}/cart/{shoppingcart} {
allow read: if isSignedIn() && isDocOwner();
allow write: if isSignedIn();
}
match /estore/{document}/interests/{shoppingcart} {
allow read: if false;
allow write: if isSignedIn();
} }
}

I have replaced the rules of my firebase with the ones above and created a collection exactly like shown in the picture (obviesly I have my own authid) and it's still shows: "user not authorized". That field named: "center" makes me very confused. Why do we need it? And the problem wasn't in loginAdmin() function where the received response is undefined? Or the rules and database are responsible for the undefined response?
This is my firebase

This is what is logged in the console.

I have replaced the rules of my firebase with the ones above and created a collection exactly like shown in the picture (obviesly I have my own authid) and it's still shows: "user not authorized". That field named: "center" makes me very confused. Why do we need it? And the problem wasn't in loginAdmin() function where the received response is undefined? Or the rules and database are responsible for the undefined response?
This is my firebase

This is what is logged in the console.

please delete all your firebase rules and change this as below lines.
If this fixes your issue, slowly debug one rule at a time.
These are default settings (not recommended), and will help you debug one rule per document at a time.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

please delete all your firebase rules and change this as below lines.
If this fixes your issue, slowly debug one rule at a time.
These are default settings (not recommended), and will help you debug one rule per document at a time.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

Still not working :/
If I use
"match /{document=**} {
allow read, write: if true;"
I get user not authorized and nothing is logged in console
If I use
"match /estore/ {document=**} {
allow read, write: if true;"
I get user not authorized and this is logged in my console:

Still not working :/
If I use
"match /{document=**} {
allow read, write: if true;"
I get user not authorized and nothing is logged in console
If I use
"match /estore/ {document=**} {
allow read, write: if true;"
I get user not authorized and this is logged in my console:

alright, it's taking longer than expected to resolve this.
Please send these to me

zip all files in your project (except node_modules)
run ng version on your terminal window and tell me what Angular version you are using
copy paste your firebase rules (before you replaced everything ==true)

You can attach zip file (should be few MBs) to this thread reply.

Amit

alright, it's taking longer than expected to resolve this.
Please send these to me

zip all files in your project (except node_modules)
run ng version on your terminal window and tell me what Angular version you are using
copy paste your firebase rules (before you replaced everything ==true)

You can attach zip file (should be few MBs) to this thread reply.

Amit

Angular CLI: 11.0.5
Node: 14.15.1
OS: win32 x64
Angular: 11.0.5
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package                         Version
@angular-devkit/architect       0.1100.5
@angular-devkit/build-angular   0.1100.5
@angular-devkit/core            11.0.5
@angular-devkit/schematics      11.0.5
@angular/cdk                    11.0.3
@angular/fire                   6.1.4
@angular/material               11.0.3
@schematics/angular             11.0.5
@schematics/update              0.1100.5
rxjs                            6.6.3
typescript                      4.0.5

Rules for estore collection:
service cloud.firestore {
match /databases/{database}/documents {
match /estore/{document} {
allow read: if request.auth.uid == get(/databases/$(database)/documents/estore/$(request.auth.uid)).data.authid;
allow write: if false;
}
match /estore/{document}/product/{prods} {
allow read: if true;
allow write: if request.auth.uid == get(/databases/$(database)/documents/estore/$(request.auth.uid)).data.authid;
}
match /estore/{document}/cart/{shoppingcart} {
allow read: if isSignedIn() && isDocOwner();
allow write: if isSignedIn();
}
match /estore/{document}/interests/{shoppingcart} {
allow read: if false;
allow write: if isSignedIn();
} }
}

Rules for onlinestore collection:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /onlinestore/{document} {
allow read: if false;
allow write: if false;
}
match /onlinestore/elish/admins/{documents} {
allow read: if request.auth.uid!=null && request.auth.uid == get(/databases/$(database)/documents/onlinestore/elish/admins/$(request.auth.uid)).data.authid;
allow write: if false;
}
match /onlinestore/elish/carts/{documents} {
allow read: if request.auth.uid!=null && request.auth.uid == get(/databases/$(database)/documents/onlinestore/elish/carts/$(documents)).data.authid;
allow write: if request.auth.uid!=null;
}
match /{document=**} {
allow read, write: if
request.time < timestamp.date(2021, 1, 26);
}
}
}
Project.zip
Thank you very much

Angular CLI: 11.0.5
Node: 14.15.1
OS: win32 x64
Angular: 11.0.5
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package                         Version
@angular-devkit/architect       0.1100.5
@angular-devkit/build-angular   0.1100.5
@angular-devkit/core            11.0.5
@angular-devkit/schematics      11.0.5
@angular/cdk                    11.0.3
@angular/fire                   6.1.4
@angular/material               11.0.3
@schematics/angular             11.0.5
@schematics/update              0.1100.5
rxjs                            6.6.3
typescript                      4.0.5

Rules for estore collection:
service cloud.firestore {
match /databases/{database}/documents {
match /estore/{document} {
allow read: if request.auth.uid == get(/databases/$(database)/documents/estore/$(request.auth.uid)).data.authid;
allow write: if false;
}
match /estore/{document}/product/{prods} {
allow read: if true;
allow write: if request.auth.uid == get(/databases/$(database)/documents/estore/$(request.auth.uid)).data.authid;
}
match /estore/{document}/cart/{shoppingcart} {
allow read: if isSignedIn() && isDocOwner();
allow write: if isSignedIn();
}
match /estore/{document}/interests/{shoppingcart} {
allow read: if false;
allow write: if isSignedIn();
} }
}

Rules for onlinestore collection:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /onlinestore/{document} {
allow read: if false;
allow write: if false;
}
match /onlinestore/elish/admins/{documents} {
allow read: if request.auth.uid!=null && request.auth.uid == get(/databases/$(database)/documents/onlinestore/elish/admins/$(request.auth.uid)).data.authid;
allow write: if false;
}
match /onlinestore/elish/carts/{documents} {
allow read: if request.auth.uid!=null && request.auth.uid == get(/databases/$(database)/documents/onlinestore/elish/carts/$(documents)).data.authid;
allow write: if request.auth.uid!=null;
}
match /{document=**} {
allow read, write: if
request.time < timestamp.date(2021, 1, 26);
}
}
}
Project.zip
Thank you very much

Thanks, I'll look into this later today and debug.
Have a nice day.

Amit

Thanks, I'll look into this later today and debug.
Have a nice day.

Amit

Hello, thank you for the great content and amazing videos!
I started at your first video to learn Angular and has been a great way to get my foot in the door!
I am however stuck on the backend.service.ts file with the isUserAdmin() method.  I get the error: "Property 'auth' does not exist on type 'AngularFireAuth'.ts(2339)" - please see screenshot. I might have missed something - could you perhaps send me in the right direction?

Hello, thank you for the great content and amazing videos!
I started at your first video to learn Angular and has been a great way to get my foot in the door!
I am however stuck on the backend.service.ts file with the isUserAdmin() method.  I get the error: "Property 'auth' does not exist on type 'AngularFireAuth'.ts(2339)" - please see screenshot. I might have missed something - could you perhaps send me in the right direction?

Hello, thank you for the great content and amazing videos!
I started at your first video to learn Angular and has been a great way to get my foot in the door!
I am however stuck on the backend.service.ts file with the isUserAdmin() method.  I get the error: "Property 'auth' does not exist on type 'AngularFireAuth'.ts(2339)" - please see screenshot. I might have missed something - could you perhaps send me in the right direction?

thanks for your kind words, I'm in process of downloading and retesting this code, I'll look into your defect as well. Please expect an answer by Monday.
Amit

Hello, thank you for the great content and amazing videos!
I started at your first video to learn Angular and has been a great way to get my foot in the door!
I am however stuck on the backend.service.ts file with the isUserAdmin() method.  I get the error: "Property 'auth' does not exist on type 'AngularFireAuth'.ts(2339)" - please see screenshot. I might have missed something - could you perhaps send me in the right direction?

thanks for your kind words, I'm in process of downloading and retesting this code, I'll look into your defect as well. Please expect an answer by Monday.
Amit

Hello, thank you for the great content and amazing videos!
I started at your first video to learn Angular and has been a great way to get my foot in the door!
I am however stuck on the backend.service.ts file with the isUserAdmin() method. I get the error: "Property 'auth' does not exist on type 'AngularFireAuth'.ts(2339)" - please see screenshot. I might have missed something - could you perhaps send me in the right direction?

If you are using this code (as you shared in your screenshot above), (I assume you are following youtube video as is).
This is really old code and is not supported by latest Angular 11 version anymore.
Please re-download entire source code (from this repository).
https://github.com/AmitXShukla/Online-Shop-eCommerce-App-Angular-6-Firebase
However, If you must want to sync in YouTube with Latest code, you can always look at history and previous versions of code at GitHub.

Amit

Hello, thank you for the great content and amazing videos!
I started at your first video to learn Angular and has been a great way to get my foot in the door!
I am however stuck on the backend.service.ts file with the isUserAdmin() method. I get the error: "Property 'auth' does not exist on type 'AngularFireAuth'.ts(2339)" - please see screenshot. I might have missed something - could you perhaps send me in the right direction?

If you are using this code (as you shared in your screenshot above), (I assume you are following youtube video as is).
This is really old code and is not supported by latest Angular 11 version anymore.
Please re-download entire source code (from this repository).
https://github.com/AmitXShukla/Online-Shop-eCommerce-App-Angular-6-Firebase
However, If you must want to sync in YouTube with Latest code, you can always look at history and previous versions of code at GitHub.

Amit

Still not working :/
If I use
"match /{document=**} {
allow read, write: if true;"
I get user not authorized and nothing is logged in console
If I use
"match /estore/ {document=**} {
allow read, write: if true;"
I get user not authorized and this is logged in my console:

Can you please confirm one more thing.
when you pasted following firebase rules, your deleted everything else in your firebase rule window.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

Still not working :/
If I use
"match /{document=**} {
allow read, write: if true;"
I get user not authorized and nothing is logged in console
If I use
"match /estore/ {document=**} {
allow read, write: if true;"
I get user not authorized and this is logged in my console:

Can you please confirm one more thing.
when you pasted following firebase rules, your deleted everything else in your firebase rule window.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

Still not working :/
If I use
"match /{document=**} {
allow read, write: if true;"
I get user not authorized and nothing is logged in console
If I use
"match /estore/ {document=**} {
allow read, write: if true;"
I get user not authorized and this is logged in my console:

Can you please confirm one more thing.
Please make sure, when you use this code in FireBase rules (for debugging purpose), you delete every thing in rules tab and copy paste only this.

Amit

rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

Still not working :/
If I use
"match /{document=**} {
allow read, write: if true;"
I get user not authorized and nothing is logged in console
If I use
"match /estore/ {document=**} {
allow read, write: if true;"
I get user not authorized and this is logged in my console:

Can you please confirm one more thing.
Please make sure, when you use this code in FireBase rules (for debugging purpose), you delete every thing in rules tab and copy paste only this.

Amit

rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

Yes, @AmitXShukla. I have used only this rule and still: user not authorized
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

Yes, @AmitXShukla. I have used only this rule and still: user not authorized
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

Yes, @AmitXShukla. I have used only this rule and still: user not authorized
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

when you replace these rules, I assume you clicked publish and had no error.
the reason I am so puzzled,
above firebase rules allows every read and write
and if that's the case, you should never see error (missing or insufficient permissions) in your console window.
please copy paste your rules as is one more time please.

Yes, @AmitXShukla. I have used only this rule and still: user not authorized
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

when you replace these rules, I assume you clicked publish and had no error.
the reason I am so puzzled,
above firebase rules allows every read and write
and if that's the case, you should never see error (missing or insufficient permissions) in your console window.
please copy paste your rules as is one more time please.

Yes, @AmitXShukla. I have used only this rule and still: user not authorized
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

aren't you missing a } in this code?

Yes, @AmitXShukla. I have used only this rule and still: user not authorized
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

aren't you missing a } in this code?

Yes, @AmitXShukla. I have used only this rule and still: user not authorized
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

when you replace these rules, I assume you clicked publish and had no error.
the reason I am so puzzled,
above firebase rules allows every read and write
and if that's the case, you should never see error (missing or insufficient permissions) in your console window.
please copy paste your rules as is one more time please.

rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}

Yes, @AmitXShukla. I have used only this rule and still: user not authorized
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}

when you replace these rules, I assume you clicked publish and had no error.
the reason I am so puzzled,
above firebase rules allows every read and write
and if that's the case, you should never see error (missing or insufficient permissions) in your console window.
please copy paste your rules as is one more time please.

rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}

I am absolutely sure that my rules are correct, but i've tried both ways and it still shows user not authorized. If you give me your email I can make you editor in my firebase for debugging porposes. I only have a school project so it should be alright

I am absolutely sure that my rules are correct, but i've tried both ways and it still shows user not authorized. If you give me your email I can make you editor in my firebase for debugging porposes. I only have a school project so it should be alright

I am absolutely sure that my rules are correct, but i've tried both ways and it still shows user not authorized. If you give me your email I can make you editor in my firebase for debugging porposes. I only have a school project so it should be alright

you are seeing "user not authorized" error front UI, what do you see in browser console?
<EMAIL_ADDRESS>Thanks for sharing your project details, and making me editor on your firebase env, perhaps that will help me debug.

Amit

I am absolutely sure that my rules are correct, but i've tried both ways and it still shows user not authorized. If you give me your email I can make you editor in my firebase for debugging porposes. I only have a school project so it should be alright

you are seeing "user not authorized" error front UI, what do you see in browser console?
<EMAIL_ADDRESS>Thanks for sharing your project details, and making me editor on your firebase env, perhaps that will help me debug.

Amit

I am absolutely sure that my rules are correct, but i've tried both ways and it still shows user not authorized. If you give me your email I can make you editor in my firebase for debugging porposes. I only have a school project so it should be alright

I fixed it, here is the problem
firebase.service.ts
Line #25
change
private _eStoreColl: string = "store";
to
private _eStoreColl: string = "estore";

I am absolutely sure that my rules are correct, but i've tried both ways and it still shows user not authorized. If you give me your email I can make you editor in my firebase for debugging porposes. I only have a school project so it should be alright

I fixed it, here is the problem
firebase.service.ts
Line #25
change
private _eStoreColl: string = "store";
to
private _eStoreColl: string = "estore";

No way we've spend hours just to put an "e" before "store" 🤦♂
Thank you very much

No way we've spend hours just to put an "e" before "store" 🤦♂
Thank you very much


Add .xproj to list of XML file extensions

.props is a VS property file that's formatted in XML. Sample.
.xproj is the new ASP.NET 5/DNX file that's used to manage a project (similar to csproj). Sample.

I'm not sure we should add .props until we have a not-a-language option; half the .props files on GitHub are not XML files: extension:props NOT xml NOT version.

@pchaigno Good point; I've removed .props from the list.

Thanks @jamesqo. This will be live in the next release of Linguist.


Sidebar isnt collapse when open files

Description

As you can see on image, is expandend but isnt showing anythink, i need to click 2 times to show again... is possible to make always collapsed or add a option to it.
Steps To Reproduce
No response
Expected behavior
When i set a menu to be collapsed, persist it even if i close the app.
Files Version
Versão: <IP_ADDRESS> OS Version: 10.0.22509.1011
Windows Version
22059.1011
Relevant Assets/Logs
debug.log

Merging with #6469


Uploader - edit filename timezone and add FL tag

From our meeting today -
cc @koonchaya

[x] Add 'FL' tag - like AM

[x] Add info icon next to (what will be) Timezone Source → text - “Learn more here.”

[x] Rename Filename Timezone → Timezone source

[x] Rename the 4 options

[x] a. Device configuration → Timezone in metadata
[x] b. Timezone in filename (keep as is)
[x] c. UTC → Ignore file, use UTC
[x] d. Site timezone → Ignore file, use site timezone
[x] IF songmeter or audiomoth files detected, default should be ‘a’. All other options grayed out/not available to select
[x] IF frontier lab BAR files detected, default should be ‘b’. All other options grayed out/not available to select
[ ] IF NOT audiomoth, songmeter or BAR files, default should be option ‘d’ (ignore file, use site timezone)

[x] Nice to have - option ‘d’ includes site timezone in UTC+5

[ ] Grey out options ‘a’ and ‘b’

Originally posted by @carlybatist in #2006


[WP] Back button while scanning

When awaiting Acr.BarCodes.BarCodes.Instance.Read and the user cancels, the task never returns.
If the user cancels fast enough, an uncatchable exception is thrown:
The operation was canceled by the user. (Exception from HRESULT: 0x800704C7)
No stack trace is available.
When resuming the app with the scan active this exception is thrown:
Initialization canceled by .Dispose().
Object name: 'Camera'.
No stack trace is available.
My code is surrounded by try/catch block and the catch is not entered.

The scanning itself works fine.
WP Silverlight 8.0 (Xamarin.Forms).

Use the cancellation token.  When the background is pressed, cancel on the cancellation token source.
Nothing I can do about this one.
Use the cancellation token.  When the app wants to go to the background, cancel on the cancellation token source.

HI Allan,

Why not just finish the task when closing the Page? The back button is pressed on a library-created page. Why otherwise is there Success member on the result?
What do you mean? My problem is not that an exception is thrown - it seems normal, but that the exception is uncatchable and my app will certainly crash.
That's okay apart from not being catchable again.

Sorry to keep pestering you.

Actually, now that I look through the code, I see that these issues are not from your code, but the ZXing. Kinda strange implementation.

because it means I have to start monitoring those events.  I put in the cancellation token specifically to deal with these edge cases.
This is an issue with zxing.net.  It hasn't caused any grief in my enterprise apps, so I likely wouldn't dig to much into this.  I'd happily take any PR's around it though.
Same answer as 1.  The cancellation token will fix this issue as well.

Well, I wouldn't consider it an edge case - its a back button and it is platform specific. The page is created by ZXing so I can't imagine that I can get to wire its events easily without the fuss of dealing with the three operating systems.
What's your idea of trapping the back button and using the token?

You can create a static cancellation token that sits at the application top end (app delegate or android service monitoring for app backgrounding).  When the app goes to the background , cancel the token source and recreate when the app resumes.
For the second part, I wire in all of my viewmodels to state changes (start, appearing, disappearing) and kill any token sources on disappearing as well.  Doing it at this level is likely the best since it gives you the greatest flexibility.
Again, I consider this edge case because it is manageable with the API I've provided.  I can fix it from a zxing level, but why bother?  I use cancellation tokens in any case for other reasons (timeouts, etc), so I usually kill two birds with one stone.

Thanks, I will definitely try your approach - it is different from what I've used to and thus interesting.
And last question - how do I do custom screen/overlay for scanning?

It isn't currently supported.  Difficult to make these custom in xplat scenarios.  I can plug Xamarin forms in here, but I want these plugins to be simple.
You can always create your implementation of ibarcodes though


Cloudflare Pages' Deployment Failing

Describe the bug
Hello, I decided to upgrade my project to latest and move it from CF Workers to CF Pages (with the help of functions). Locally, everything works just fine but when trying to have the project on Cf Pages, the build fails with this error:
16:23:13.985 | Cloning repository...

...

16:24:30.937 | ✓ 2231 modules transformed.
16:24:30.938 | [vite:load-fallback] Could not load /opt/buildhome/repo/src/lib/PageComponents/HomePage/ExamplesAutomod.svelte (imported by src/lib/PageComponents/HomePage/Features.svelte): ENOENT: no such file or directory, open '/opt/buildhome/repo/src/lib/PageComponents/HomePage/ExamplesAutomod.svelte'
16:24:30.938 | error during build:
16:24:30.938 | Error: Could not load /opt/buildhome/repo/src/lib/PageComponents/HomePage/ExamplesAutomod.svelte (imported by src/lib/PageComponents/HomePage/Features.svelte): ENOENT: no such file or directory, open '/opt/buildhome/repo/src/lib/PageComponents/HomePage/ExamplesAutomod.svelte'
16:24:31.001 | Failed: build command exited with code: 1
16:24:32.274 | Failed: an internal error occurred

./lib/PageComponents/HomePage/Features.svelte has:
	import ExamplesAutomod from '$lib/PageComponents/HomePage/ExamplesAutomod.svelte';

and ExamplesAutomod.svelte is indeed in same directory ./lib/PageComponents/HomePage/ExamplesAutomod.svelte
Same error happens if I use
	import ExamplesAutomod from './ExamplesAutomod.svelte';

Note: ./lib/PageComponents/HomePage/Features.svelte is dynamically imported in ./routes/+page.svelte
Reproduction
https://github.com/effen1337/sk-cf-build-fail
i guess fork -> use in CF Pages -> watch the build fail
Logs
..........
18:04:11.613	> vite build
18:04:11.613
18:04:12.632	vite v3.1.0 building for production...
18:04:12.663	transforming...
18:04:15.402
18:04:15.402	🌼 daisyUI components 2.18.1  https://github.com/saadeghi/daisyui
18:04:15.542	  ✔ Including:  base, components, themes[8], utilities
18:04:15.542
18:04:18.350	✓ 461 modules transformed.
18:04:18.351	[vite:load-fallback] Could not load /opt/buildhome/repo/src/lib/PageComponents/HomePage/ExamplesAutomod.svelte (imported by src/lib/PageComponents/HomePage/Features.svelte): ENOENT: no such file or directory, open '/opt/buildhome/repo/src/lib/PageComponents/HomePage/ExamplesAutomod.svelte'
18:04:18.351	error during build:
18:04:18.351	Error: Could not load /opt/buildhome/repo/src/lib/PageComponents/HomePage/ExamplesAutomod.svelte (imported by src/lib/PageComponents/HomePage/Features.svelte): ENOENT: no such file or directory, open '/opt/buildhome/repo/src/lib/PageComponents/HomePage/ExamplesAutomod.svelte'
18:04:18.440	Failed: build command exited with code: 1
18:04:19.241	Failed: an internal error occurred

System Info
Cloudflare Pages

Build command:
npm run build

Build output directory:
/.svelte-kit/cloudflare

Root directory:
/

Environment variables:
Variable name	Value
NODE_VERSION	16

Severity
blocking all usage of SvelteKit
Additional Information
No response

I can reproduce this locally just by running npm run build on the provided repository. I'm not sure what the issue is. My best guess would be an issue in vite-plugin-svelte or Vite

I needed to make some changes to the repro to get it to build...

install vite
rename src/hooks.js to src/hooks.server.js
remove the reference to a non-existent favicon.ico in src/app.html

...but once I'd done so, it built just fine. It seems likely that the bug, whatever it was, was fixed since this issue was opened, so I'll close this.
If you're still experiencing the problem, please open a new issue, but make sure that you include a lockfile (package-lock.json in your case, since you're using npm). Without it it's hard to know whether the issue is with a specific version, or something more environment-specific. (Also, please remove extraneous stuff like Tailwind, and any files in src that aren't directly related to reproducing the issue!)


Define EA's value add to developers and vice versa

In the process of setting up a meeting with relevant mgmt from EA

Sent follow up e-mail to book meeting

Meeting booked


update to version 1.1.4

Sync from upstream to update opencc to avoid build failure on deepin riscv

/merge


How to convert from number of params to memory usage?

Hi, thank you for your work! The output is number of params, how to convert it to memory usage just like in README?

I usually use nvidia-smi. Let me know if you have other methods.

The number of parameters does not reflect to the actual memory usage. For example, for a same conv2d, the memory footprint can vary a lot for different input resolutions.


Add an editor window color project setting

This can be used to distinguish projects more easily, which is especially helpful when working on multiple projects at the same time.
The current coloring is a proof of concept. It does the job, but it's not that pretty. It'd be ideal if we could change the window border colors, but this requires us to implement client-side decorations first. (In other words, disabling the system-provided window borders and adding our own.)
This feature is inspired by the Visual Studio Code add-on Peacock.
Preview

The current coloring is a proof of concept. It does the job, but it's not that pretty. It'd be ideal if we could change the window border colors, but this requires us to implement client-side decorations first. (In other words, disabling the system-provided window borders and adding our own.)

There is PR for implementing custom window decorations - #23972, but it's not updated for the long time and had some issues last time I have tested it.

@Calinou Is this still desired? If so, it needs to be rebased on the latest master branch.

@aaronfranke Yes, but it needs to be redone to make use of client-side decorations once we implement those. In other words, we have to replace the system-provided window borders with our own.

Marking as Draft because we should wait to see what happens with client-side window decoration support.

This should be the job of the WM.


Incorrect Warning private constructor never used

With my current compiler version (some head from some point), compiling the following code spits out this warning:
 WARNING: Private constructor 'Test.constructor' is never used.
Here's the code:
class Test:
	private def constructor():
		print "hey"

	def constructor(msg as string):
		self()
		print msg

If you run the code however it is evident that it is being used.
Not a terribly huge problem since it doesn't break anything but annoying nonetheless

Actually, the call to the private constructor is not even necessary for it to run.

A simple solution to this then would be to not warn if the private constructor doesn't take any parameters. But it's probably worth checking if this warning happens for private constructors with parameters as well even when they get used.

I've seen this before; just never really considered it a high priority.  But if someone else is running into it, I'll take a look later on...

Turns out that the visitor that checks whether private members are used was only checking ReferenceExpression types (ie. member names,) and not the self and super keywords that are used for invoking constructors.

Well this is annoying.  My Git client seems to be on the fritz.  Twice now I've tried to push this change to GitHub, and twice it's appeared to work, but then the actual commit vanished into the aether. :(
I'll look at this further this evening, after work.

Ugh.  The client was explicitly set to check this in to boo-lang/master, but it checked it in to my master instead.
Anyhoo, this is fixed in boo-lang/master now.

Yeah I've been meaning to make a simple centralized scm.

Actually, the git screwup appears to have gone deeper than that.  Somehow it seems to have replaced boo-lang/master with a copy of masonwheeler/master.  I'm currently investigating.  Please be careful if you check out before I manage to fix this; there's incomplete WIP code in there that may or may not work for you... :(

There, I managed to get it all worked out. Now it should be safe to check out.

Cool, thanks for looking into it!
On 22 April 2016 13:50:59 BST, masonwheeler<EMAIL_ADDRESS>wrote:

There, I managed to get it all worked out. Now it should be safe to
check out.

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/boo-lang/boo/issues/143#issuecomment-213415107

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Fix minor issue for decimal values coercion less than 10 for TimeVal.

Whoops 😟, there was a minor issue for values less than 10. Should be fine now:
BHT*0022*11*22*20150520*06280209~ => TM.value[ E337: Transaction Set Creation Time](06:28:2.09)

BHT*0022*11*22*20150520*06281242~ => TM.value[ E337: Transaction Set Creation Time](06:28:2.42),

Didn't check the previous one carefully,  feelsbadman.


Need updates to run on newer yocto and qt 6.4.2

Hi,
I use the re-terminal at different remote sites and we use QVncServer to access the device remotely. We use a lot of features available on QT6.
I need the meta-seed-cm4 to be updated to run on the newer Yocto running Boot2QT 6.4.2. I haven't seen any upodates here for almost a year. Is there any plans to update the tool to the latest version in the near future?

Yes, we tentatively plan to update this repo in May.

Sorry for my late reply. I will do the update work as soon as I can.


@Fulminant changes

Fixed forRootAsync module injection
Added grantsEndpoint config to the async module implementing.

@Fulminant  All seems to be intersetings changes,  I'm going to combine this features with my current forked master branch, then I will PR to nest-access-control repository.

@ruslanguns, great, glad to see that's my changes helped.


draft of chaining how-to

I love it! ❤
Really good examples and descriptions. I think we should aim to have all the tutorials and how-to in this style
We can center the images using:

[CAPTION FOR THE IMAGE]

okay, just pushed a commit with centered images.


Issue on PHP 5.6.3 and Codeigniter 3.1.4

I have issue on production server with latest codeigniter version which is 3.0.4
Fatal error: Call to a member function getMessage() on integer in /home/xxx/system/core/Common.php on line 65
A PHP Error was encountered
Severity: Error
Message: Call to a member function getMessage() on integer
Filename: core/Common.php
Line Number: 653
Backtrace:

Latest version is 3.1.4, not 3.0.4.
Looks like something has set _exception_handler() to be your error (not exception) handler. But that something is not CI, and this is a bug tracker ... if you need help, please ask for it on our forums instead.


Remove singleLine copy from Shift+Click, CopyOnSelect

Summary of the Pull Request
This fixes an issue where a shift+click selection with copyOnSelect enabled would result in copying the content as a single line.
PR Checklist

[X] Closes #4737

Detailed Description of the Pull Request / Additional comments
I've been thinking a lot about this issue and how it relates to the copy/paste discussions we've been having over the past few weeks. Considering that the majority of users want regular copy, it makes sense to default to that in this case too.
If a user wants to perform a special form of copy, it makes sense that they should use their custom keybinding to accomplish that. This kind of behavior aligns with that kind of philosophy.
Validation Steps Performed
The following scenarios were tested with copyOnSelect enabled.

scenario
behavior

Perform a shift+click selection
content copied w/ newlines

right-click
clipboard paste

copy keybinding (singleLine disabled)
content copied w/ newlines

copy keybinding (singleLine enabled)
content copied as single line

@DHowett-MSFT what do you think about this approach? You're probably the most passionate about this feature 😊. I created this PR as a draft to poll your thoughts before we decide on next steps.


Swap Prefix to Avoid Collusion with @UNDERBOT

I plan to swap the prefix from ! to + to avoid the bot colliding with other bots in the server.
I currently have disabled the !help and !commands! commands since they collided with UNDERBOT.
Once done, I will re-enabled both those commands so it's easier to use the bot.

Done!


Add note in the docs about Cors

https://github.com/Baroshem/nuxt-security/issues/89#issuecomment-1463106081
Version
nuxt-security:
nuxt:
Reproduction Link

Steps to reproduce
What is Expected?
What is actually happening?

Decided not to add it as currently majority of the users are using the newest version of nuxt and h3 so this info in the docs will be temporary. Users will be able to find this info through the issue search feature in GitHub


PLEASE IGNORE

old:So I downloaded bugtorch trying to fix the llibrary bullshit, but then It result in error
New:sorry for the braindead I forgot mixin, but it still failed
latest.log
KILL ME PLEASE IM AN IDIOT

So I first run bugtorch without unimixin, then I changed to an older version [1.2.12], then I downloaded unimixin BUT IM IN THE WRONG VERSION.


Support for Service Account Issuer Discovery

Refs:
https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#service-account-issuer-discovery
https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#serviceaccount-token-volume-projection
https://docs.k3s.io/advanced#starting-the-server-with-the-installation-script
I have been trying to configure service account volume projection using --k3s-args, but when doing so the cluster fails to create. Sometimes the error is ...
ERRO[0005] Failed Cluster Start: Failed to start server k3d-workload-identity-server-0: Node k3d-workload-identity-server-0 failed to get ready: error waiting for log line k3s is up and running ...
and at other times a little different.
I have tried passing the args using a config file and the command-line. In both cases the behaviour is the same (cluster creation fails):
Snippet from k3d-config.yml:
  k3s:
    extraArgs:
      ...
      - arg: --service-account-issuer=https://host.desktop.homelab:6443
        nodeFilters:
          - server:*
      - arg: --service-account-jwks-uri=https://host.desktop.homelab:6443/openid/v1/jwks
        nodeFilters:
          - server:*
      - arg: --service-account-signing-key-file=/var/lib/rancher/k3s/server/tls/service.key
        nodeFilters:
          - server:*
      - arg: --service-account-key-file=/var/lib/rancher/k3s/server/tls/service.key
        nodeFilters:
          - server:*

and the command line
k3d cluster create workload-identity --servers 1 --agents 2 ... --k3s-arg --service-account-issuer=https://host.desktop.homelab:6443@server:* --k3s-arg --service-account-jwks-uri=https://host.desktop.homelab:6443/openid/v1/jwks@server:* --k3s-arg --service-account-signing-key-file=/var/lib/rancher/k3s/server/tls/service.key@server:* --k3s-arg --service-account-key-file=/var/lib/rancher/k3s/server/tls/service.key@server:*
Looking at the advanced configuration for k3s here, the output window shows some of these args being used.
$ k3s server
INFO[2019-01-22T15:16:19.908493986-07:00] Starting k3s dev
INFO[2019-01-22T15:16:19.908934479-07:00] Running kube-apiserver --allow-privileged=true --authorization-mode Node,RBAC --service-account-signing-key-file /var/lib/rancher/k3s/server/tls/service.key --service-cluster-ip-range <IP_ADDRESS>/16 --advertise-port 6445 --advertise-address <IP_ADDRESS> --insecure-port 0 --secure-port 6444 --bind-address <IP_ADDRESS> --tls-cert-file /var/lib/rancher/k3s/server/tls/localhost.crt --tls-private-key-file /var/lib/rancher/k3s/server/tls/localhost.key --service-account-key-file /var/lib/rancher/k3s/server/tls/service.key --service-account-issuer k3s --api-audiences unknown --basic-auth-file /var/lib/rancher/k3s/server/cred/passwd --kubelet-client-certificate /var/lib/rancher/k3s/server/tls/token-node.crt --kubelet-client-key /var/lib/rancher/k3s/server/tls/token-node.key
...

I also have a k3s cluster which does respond to a request for the OIDC discovery document:
kubectl get --raw /.well-known/openid-configuration

{"issuer":"https://kubernetes.default.svc.cluster.local","jwks_uri":"https://xxx.xxx.xxx.xx:6443/openid/v1/jwks","response_types_supported":["id_token"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"]}

So this suggests that it is supported in k3s.
Can you advise whether these flags are supported in k3d ?
Kind Regards
Fraser.

Sorry should have RTFM. API args should be prefixed with --kube-apiserver-arg


How to increase severity to filter logs

Hi,
I'm trying to use this library but i don't understand how I should configure the input json, to maintain only warning and errors:
Is this possible?
"root": [{
            "type": "blocking",
            "formatter": {
                "type": "string",
                "sevmap": ["D", "I", "W", "E"],
                "pattern": "{timestamp} [{severity}] [{thread}] [{process}] {message} |raw: {...:{{name}={value}:p}s}",
            },
            "sinks": [{
                "type": "console"
            }]
        }]

After some hours, I found the right way:
"sinks": [{
                "type": "console",
                "filter": {
                    "type": "severity",
                    "threshold": 3
                }
            }]


server action to read OH info

@Airdm404 please, update this PR with the latest changes. That means pull and merge main.


More of a question than an issue regarding error handling and chaining

When chaining functions, does the chain of function execution end on the first error? Does the error value get propagated down to the final then so we can see what went wrong?

Hi @aaronksaunders
I think the function you are looking for is Hope.shield. That function does stop the execution chain and returns the error.


Script to automate releases

Problem:
We have to click a button to draft a Github release.
Proposed Solution:
Write a simple script following this API that will automate the process. This script will need additional documentation on how to create Github tokens.

As a first step, we can use this action to automate the release step.
There is also an action to do the tagging, but it's doing some parsing magic to determine the next version number, which needs review.
Also, fwiw, all but the first release are marked as pre-release, which the automation needs to also take care of so a human doesn't have to mark a release as released.

Internally released.


Add Linux and Windows GUI clients

This pull request introduces the Nekoray GUI (graphical user interface) client for executing Xray project configurations.

Hi, thanks


Removed 'Crab Apples'

Removed 'Crab Apples' as it does not exist in the example/screenshots and causes confusion when reading. It states 'Crab apples' should exist (does not display in the first screenshot or second screenshot of the Examples section) and that it should not exist on the third. This causes the reader to think there's a copy and past error somewhere as 'Crab Apples' do not exist anywhere in this example.
Also modified screenshot2; removed Items section on screenshot two as it's displaying a 'filter' example, it should be showing the results of a search from SortByColumns and the removal of SortByColumns is used in screenshot 3. Again, this is causing confusion for the reader.

Learn Build status updates of commit 2d7679f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

powerapps-docs/maker/canvas-apps/delegation-overview.md
:white_check_mark:Succeeded

powerapps-docs/maker/canvas-apps/media/delegation-overview/products-apple.png
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Fix permissions of ipp Backend for legacy driverless printing support

Cups-filters 1.26.0+ assumes 755 for the driverless printing fallback logic.
Ubuntu 19.10 already applies a distro specific patch to cups for this.
The issue was brought up here
https://github.com/OpenPrinting/cups-filters/issues/163.

That would break Kerberized printing, can't do it.

Thank you for your feedback.
I created a new issues for cups-filters to discuss how we can fix this otherwise.
https://github.com/OpenPrinting/cups-filters/issues/183


telemetry shift to segment.io

Today (as of 1.9), we implement our telemetry MVP leveraging a custom metric microservice named telemetry that runs in our mgmt account so we can measure the frequency and success rate of init and create commands. This is implemented with 4 calls in kubefirst/kubefirst that look like this:
https://github.com/kubefirst/kubefirst/blob/70f3d268040ac8af921b5416d53113f8138e9b06/cmd/createUtils.go#L51
We would like to transition to leveraging segment.io as our telemetry requirements are soon to expand.
https://segment.com/docs/
Acceptance Criteria
AC1:
We need to capture the following 4 events:

kubefirst init started
kubefirst init completed
kubefirst cluster create started
kubefirst cluster create completed

AC2:
We need to be able to associate these metrics with the domain and the cli version the client used with.
AC3:
We need to be able to privately dashboard this information with varying time granularity (last hour, last 2 months, etc)
Note:
We must KEEP the telemetry microservice operational until we're convinced nobody is using the older cli versions that leveraged this microservice. (probably a few months out)

closing as a duplicate of #499


parsing dom error fixed.

when user use jsdom ~0.5.6, the error occurs below.
can-compile/node_modules/jsdom/lib/jsdom/level1/core.js:432
set nodeName() { throw new core.DOMException();},

Using jsdom 3.1.2 is fine.
http://stackoverflow.com/questions/28756230/nodejs-parsing-dom-error-with-strict-mode

Not working. I'm trying to figure out it.


Proposal: add suport of web API call instead of command

Proposal
As projects and software industry evolve towards API, providing the possibility to trigger API call instead of running commands could be great. To do so relying on oauth mechanism, supported by github/bitbucket/slack, seems the most logical/straight forward.
Implementation
Oauth token
Because of the way outgoing hooks are implemented it seems easier to add a parameter to the URL such as: access_token cf. RFC 2.3, that will be then forwarded as Authorization: Bearer $TOKEN cf. RFC 2.1
Now I'm aware of the security threat that it creates to have the token in the URL. However I believe everyone should be aware of such condition (the webhook documentation could be adapted, to emphasise it), but given the current possibilities provided by github/bitbucket/slack, I don't see much more solution around it.
The use of SSL and also secrets is obviously advised.
Hook modifications
Adding API call, implies to have:

Token (option):
would be implemented in the hookHandler method if present
URI to call:
would be in the new struct of Hook on the same logic than ExecuteCommand
Headers:
would be in the new Argument struct on the same logic than PassArgumentsToCommand
Body:
same logic than Headers.

Token parameter in URI
As specified in the previous section.
New Hook structure
Modification of the hooks structure - addition of APICall and PassArgumentsToAPI:
type Hook struct {
	ID                       string          `json:"id,omitempty"`
	ExecuteCommand           string          `json:"execute-command,omitempty"`
	CommandWorkingDirectory  string          `json:"command-working-directory,omitempty"`
	APICall                  string          `json:"execute-api-call,omitempty"`
	ResponseMessage          string          `json:"response-message,omitempty"`
	ResponseHeaders          ResponseHeaders `json:"response-headers,omitempty"`
	CaptureCommandOutput     bool            `json:"include-command-output-in-response,omitempty"`
	PassEnvironmentToCommand []Argument      `json:"pass-environment-to-command,omitempty"`
	PassArgumentsToCommand   []Argument      `json:"pass-arguments-to-command,omitempty"`
	PassArgumentsToAPI       []Argument      `json:"pass-arguments-to-api,omitempty"`
	JSONStringParameters     []Argument      `json:"parse-parameters-as-json,omitempty"`
	TriggerRule              *Rules          `json:"trigger-rule,omitempty"`
}

New argument/source type
Introduce two new source types: apiheader & apibody.
Body would be like the default SourceString but would have to match apibody.
Headers will be key/value parameters that should eventually be concatenated to avoid breaking the definition of the Get method:
func (ha *Argument) Get(headers, query, payload *map[string]interface{}) (string, bool) {

That would give something like this as source:
const (
	SourceHeader        string = "header"
	SourceQuery         string = "url"
	SourcePayload       string = "payload"
	SourceString        string = "string"
	SourceAPIHeader     string = "apiheader"
	SourceAPIBody       string = "apibody"
	SourceEntirePayload string = "entire-payload"
	SourceEntireQuery   string = "entire-query"
	SourceEntireHeaders string = "entire-headers"
)

The Argument struct would also have to be adapted to read body/headers. So two new variables are added to reflect the new implementation Name string & Key string:
type Argument struct {
	Source  string `json:"source,omitempty"`
	Name    string `json:"name,omitempty"`
	Key     string `json:"key,omitempty"`
	Value   string `json:"key,omitempty"`
	EnvName string `json:"envname,omitempty"`
}

The rest would follow the same logic: extraction of arguments, re-using them in the hookHandler & hookHandle methods.
Testing
The testing of the outgoing call, cannot of course be tested fully. So the idea would be to mock webhooks from github/bitbucket or slack, create the API call and then call a mini http-server mocking answers based on: missing body, missing headers, 4xx/5xx return code, etc.
Backward compatibility
There should not be any problem of backward compatibility as it is an addition of feature, thus both should remain possible at any time.

This can be achieved simply by invoking curl as the execute-command, we don't want to maintain anything that can be done that way :)

This can indeed be achieve by doing a curl/wget in a subprocess.
I just found this idea not very practical, and also have some doubts on how well it can scale, so implementing API call seemed more natural.
But I do understand that you don't want to maintain such feature, too bad, I really think it would have been a great feature to have.

Allows for more control that way and allows user to suit the script to their needs, while this way we would have to maintain every request for new use case :-)


With coordinates near zero, scientific notation is used but PS doesn't understand it

Some code to reproduce:
var automation = new PSAutomation(InstanceReuse.UseExistingInstance);
var line = automation.ActiveModel.Lines.CreateLine(new Point(0, 0, 0), new Point(100, 0.00001, 0));
Console.WriteLine($"{line.StartPoint.X}, {line.StartPoint.Y}, {line.StartPoint.Z}"); // Print 0,0,0
Console.WriteLine($"{line.EndPoint.X}, {line.EndPoint.Y:F5}, {line.EndPoint.Z}"); // 100, 1.00000, 0 !!

The CreateLine() call is translated as this:
CREATE LINE SINGLE
ABS 0 0 0
ABS 100 1E-5 0

PowerSHAPE interprets the 1E-5 as 1 because the E is in upper case. The end point is set to 100, 1, 0. If the call was:
CREATE LINE SINGLE
ABS 0 0 0
ABS 100 1e-5 0

It will work as expected (end point at 100, 0.00001, 0) because PowerSHAPE will translate 1e-5 to 0.00001
I just found this bug on one of my client projects. If it is confirmed, it is very serious because it can lead to a lot of calculation errors.
I have not tested it, but perhaps the problem can occur with very large values as well.

This bug affects all methods that use real numbers, points, vectors...

I've just created v1.1.59 pre-release which should go a long way to resolving this issue. Let me know your feedback.

Thank you for your quick response.
The class Point should be updated as well because for example, when the PSWorkplane constructor is called, there is a command which is issued like this:
_powerSHAPE.DoCommand("CREATE WORKPLANE SINGLE " + inputWorkplane.Origin);
Point.ToString() is called, the x, y and z coordinates are formatted and the scientific notation can appear there.
And don't you think that using only 5 decimal places will result in a loss of precision? I would have used .ToString("G17").ToLower() instead. G17 is the roundtrip format recommended by MS and the ToLower() ensure that the E is in lower case, which is correctly interpreted by PowerSHAPE.

I believe PowerShape uses 6 decimal places for values. So I used a ToString("0.######") function to provide it with the amount of precision it will take.


Adding Movie-Searching Project App

Fixes #376
Demonstrating Video
https://user-images.githubusercontent.com/73993775/182707888-caa15319-4bbf-4e01-b045-fbc09fdf67a8.mp4

Hey bro kindly review @pranjay-poddar

https://github.com/Ayush7614/Bundli-Frontend/blob/main/Movie App/script.js


ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216

当我安装完环境运行python -m openne --help时出现以下错误：
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/sunyundong/network_embedding/code/OpenNE/src/openne/main.py", line 7, in
from . import node2vec
File "/root/sunyundong/network_embedding/code/OpenNE/src/openne/node2vec.py", line 3, in
from gensim.models import Word2Vec
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/init.py", line 6, in
from gensim import parsing, matutils, interfaces, corpora, models, similarities, summarization, utils  # noqa:F401
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/models/init.py", line 7, in
from .coherencemodel import CoherenceModel  # noqa:F401
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/models/coherencemodel.py", line 29, in
from gensim.topic_coherence import (segmentation, probability_estimation,
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/topic_coherence/probability_estimation.py", line 14, in
from gensim.topic_coherence.text_analysis import (
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/topic_coherence/text_analysis.py", line 23, in
from gensim.models.word2vec import Word2Vec
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/models/word2vec.py", line 131, in
from gensim.models.word2vec_inner import train_batch_sg, train_batch_cbow
File "init.pxd", line 861, in init gensim.models.word2vec_inner (./gensim/models/word2vec_inner.c:11403)
ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216
(nepython3.4) [root@localhost src]# cd ..
(nepython3.4) [root@localhost OpenNE]# python -m openne --help
/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/smart_open/ssh.py:34: UserWarning: paramiko missing, opening SSH/SCP/SFTP paths will be disabled.  pip install paramiko to suppress
warnings.warn('paramiko missing, opening SSH/SCP/SFTP paths will be disabled.  pip install paramiko to suppress')
Traceback (most recent call last):
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/openne-0.0.0-py3.4.egg/openne/main.py", line 7, in
from . import node2vec
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/openne-0.0.0-py3.4.egg/openne/node2vec.py", line 3, in
from gensim.models import Word2Vec
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/init.py", line 6, in
from gensim import parsing, matutils, interfaces, corpora, models, similarities, summarization, utils  # noqa:F401
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/models/init.py", line 7, in
from .coherencemodel import CoherenceModel  # noqa:F401
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/models/coherencemodel.py", line 29, in
from gensim.topic_coherence import (segmentation, probability_estimation,
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/topic_coherence/probability_estimation.py", line 14, in
from gensim.topic_coherence.text_analysis import (
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/topic_coherence/text_analysis.py", line 23, in
from gensim.models.word2vec import Word2Vec
File "/root/anaconda2/envs/nepython3.4/lib/python3.4/site-packages/gensim/models/word2vec.py", line 131, in
from gensim.models.word2vec_inner import train_batch_sg, train_batch_cbow
File "init.pxd", line 861, in init gensim.models.word2vec_inner (./gensim/models/word2vec_inner.c:11403)
ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216

I also met the above problem when building the openne framework within a Python3 docker environment. Then I found an issue 12785 in numpy github issue list. The main reason is that gensim package is built with different numpy C-API version rather than the current version within your python environment.
However, I find a simple solution, don't use the binary gensim version from pypi.
pip install -r requirements.txt --no-binary gensim

@codeinging you could try to fix it in this way, good luck to you, 😄。

Hello, I still have this error even if I installed requirements.txt with @justdoit0823 option.
ValueError: numpy.ufunc has the wrong size, type recompiling. Expected 192, got 216
Is there any other solutions?

@codeinging @minstar I have got the root cause of this question. The numpy is necessary when building gensim package, and the required version is declared as numpy >= 1.11.3. However the latest numpy version is 1.17.0, and the building dependencies of numpy version great than or equal to 1.16.0 have changed also. The following is quoted from numpy 1.16.0 release notes,

Downstream developers building this release should use Cython >= 0.29 and, if using OpenBLAS, OpenBLAS > v0.3.4.

Miserably word2vec_inner.c file of version 3.0.1 is generated by Cython 0.25.2, but built with the latest numpy. So the runtime exception is raised when importing the module.
As the above, we could fix this problem in different ways, a) manually install the numpy 1.14.0 before the requirements.txt file, I have validated this with command docker run -it --rm justdoit/openne:1.0 -m openne --method node2vec within a docker environment ; b) upgrade the numpy version to 1.16.0 at least, and there may be potential incompatible code, which totally depends on the usage of numpy.

downgrade to numpy==1.16 worked for my case @justdoit0823


Host storage folders reordering

This is the same as Sia issue #1668: https://github.com/NebulousLabs/Sia/issues/1668
In siac it's fixed now but not yet in the UI.

@DavidVorick should we just sort server-side instead?

Sorting seems like something we should be doing in the clients, since it's primarily a presentation thing

That said, we should probably document the fact that the folders are unsorted.


chore: bdd-nh-1578664699 to 0.0.1

chore: Promote bdd-nh-1578664699 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

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


python310Packages.aiobiketrax: 0.3.0 -> 0.4.0

Description of changes
https://github.com/basilfx/aiobiketrax/blob/master/CHANGELOG.md#v040

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 197557 run on x86_64-linux 1

2 packages built:

python310Packages.aiobiketrax
python39Packages.aiobiketrax


Gracefully handle schema migration "Out of Bounds" errors

When a user who has run a server binary on a givenDataDirectory it will be migrated to that binaries currently expected schema if it has not already done so. When a givenDataDirectory is provided to a earlier version of the server binary, a cryptic "Out of Bounds" error is thrown. Instead, a user should see an error similar to the following:
Cannot use data at %s with schema version %d. Unknown schema version.

New error behavior:
OpenBazaar Server v0.13.0
13:01:05.912 [DEBUG] [core/CheckAndSetUlimit] Successfully raised file descriptor limit to 32000
13:01:05.917 [ERROR] [repo/MigrateUp] binary can migrate schemas up to version 016 but this schema is already at 019
unable to migrate unknown schema