1.0.0 nuget issue "Unable to resolve dependency 'Baseline'.

Installing 1.0.0 from nuget on a fresh .net 4.6 solution, and i see this error.
Unable to resolve dependency 'Baseline'. Source(s) used: 'nuget.org', 'Microsoft Visual Studio Offline
I know there are other similar issues that were closed recently but this seems to be new/current.

And it's there clear as day: https://www.nuget.org/packages/Baseline/. Are you sure that's not a connectivity issue?

Oddly enough, I can install Baseline 1.1.0 directly from nuget, after which the Marten 1.0.0 package will install.   I'm trying this across the a few different solutions and I get the same behavior though.  I'm on nuget <IP_ADDRESS>4.

Same here.

What version of .Net is your project? And how are you adding the Nuget?

Nuget v <IP_ADDRESS>1 (PM console included in VS 2015 14.0.25123.00.
This project had an installed Marten version of <IP_ADDRESS>1.
When updating the following error occured (sorry for the German Text, but the exception translates to the above English error message).
PM> Update-Package Marten
Es wird versucht, Abhängigkeitsinformationen für mehrere Pakete bezüglich des Projekts "Happs.Backend" mit dem Ziel ".NETFramework,Version=v4.6.1" zu erfassen.
Es wird versucht, Abhängigkeiten für mehrere Pakete aufzulösen.
Update-Package : Die Abhängigkeit "Baseline" kann nicht aufgelöst werden. Verwendete Quelle(n): 'nuget.org', 'AHG'.
In Zeile:1 Zeichen:1
+ Update-Package Marten
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand

PM> Install-Package Baseline
Install-Package : An error occurred while retrieving package metadata for 'Baseline' from source 'nuget.org'.
In Zeile:1 Zeichen:1
+ Install-Package Baseline
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

I then manually installed Baseline 1.1.0 through the visual PM console and afterwards I could update to Marten 1.0.2, must as described by @mhov . I have no idea why.

Guys, I have no idea what's happening here. If this persists, I'll try to raise an issue w/ Nuget itself to see if they have any insight. For right now though, I'd like to close this.

Same issue for me.

Installing to a .Net Core lib works. Can it be something with Baseline explicitly supporting 4.5.1 and .Net Standard 1.3, so when installing Marten in 4.6+, it tries to resolve using 4.6 Marten dep and then don't use .Net Standard 1.3 for Baseline and 4.5.1 is to low. Can't try installing in 4.5+ since Marten doesn't state support for it. But easy test would be to just explicitly state 4.6 in Baseline as well.

I had the same issue (VS2015, Framework 4.6.1). Installing Baseline first and then Marten worked for me.

Just as an additional comment here, if you use Paket (https://fsprojects.github.io/Paket/) instead of the normal Nuget client then everything is resolved perfectly fine.
So the easiest current solution is switching to paket (it's better than the default nuget client in every way anyway so... :) )

Not directly related to Marten, but I get the same issue with Storyteller 4.1.1 and 4.0 just leaving this here in case a comparison of your 2 nugets similarities sheds any light.
Installing Baseline 1.2 explicitly works. No connectivity issues.
VS '15 U3

Grrr... I'm using VS2017 latest update. I keep running into this ugly Baseline issue every time I update Marten. Please, please, if you can, remove the Baseline dependency from Marten (and maybe add sources manually) as Baseline only adds friction when updating Marten.
Here's my update process:
PM> Update-Package Marten

No package updates are available from the current package source for project 'X.Web.Core'.
Restoring packages for C:\Code\Projects\X\Source\X.Web2\X.Web2.csproj...
No packages were found in packages.config for project 'Builder'.

Attempting to gather dependency information for multiple packages with respect to project 'X.Data', targeting '.NETFramework,Version=v4.6.2'
Gathering dependency information took 6.43 sec
Attempting to resolve dependencies for multiple packages.
Update-Package : Unable to resolve dependencies. 'Baseline 1.2.0' is not compatible with 'Marten 1.5.1 constraint: Baseline (>= 1.3.0)'.At line:1 char:1
+ Update-Package Marten
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand

Dang. FML. So, let's try updating this crazy Baseline package...
PM> Update-Package Baseline

No package updates are available from the current package source for project 'X.Web2'.
No package updates are available from the current package source for project 'X.Web.Core'.
No packages were found in packages.config for project 'Builder'.

Attempting to gather dependency information for multiple packages with respect to project 'X.Data', targeting '.NETFramework,Version=v4.6.2'
Update-Package : An error occurred while retrieving package metadata for 'Baseline' from source 'nuget.org'.
  idAt line:1 char:1
+ Update-Package Baseline
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand

FML. That didn't work either... what now captin? NuGet GUI doesn't help or show us the latest 1.3.0 version either.

My choices for resolving this issue are slowly dwindling. Die Baseline, die a very slow death pls.

@bchavez I feel your frustration, but that's not happening for everybody. Have you tried just going into the csproj file and setting the Baseline version to 1.3? We made changes to the Baseline nuget to add explicit .Net 4.6 targeting (even though it already supported 4.5.1) specifically to address Nuget resolution issues. Honestly, can you raise an issue with Nuget itself, because this is their bug.
As for removing the Baseline dependency, if you feel strongly enough about this, feel free to send the pull request for it.

@jeremydmiller Awesome. Thanks!
So, I looked into vaporizing the hard dependency on Baseline and was successful at tree-shaking all the unused code out of Baseline. A lot of junk fell out :wastebasket:. (Thanks with help from NDepened :+1:). Always feels good removing unused code. :raised_hands: :
So, here's what it looks like now:

I can shake the Baseline tree harder but ATM I'm aiming for the least impactful way without modifying Marten source files (at least for now).
In terms of maintainability, I know this might be a PITA for you to write code fixes in the Baseline repo and keep those changes in sync with the Marten repo. So, I created a Git submodule in src\Baseline and just only copied the classes that Marteen needed into src\Marten\Baseline (as shown in Solution Explorer above). Ideally, I'd like to set these Baseline classes with internal class so they don't pollute the namespace for users. The best way I can think of to make it as easy as possible for you to maintain would be to automate the process by leveraging the build system... and so that brings up my next few questions....
What is this rake, gem, ruby stuff? J/K :)
Would you be open to moving to a .NET build system like F# FAKE or C# CAKE? I'm not sure how popular Ruby is with .NET developers but I think it could make contributions easier by not having to install a ruby runtime. Using a propa .NET build system contributors can just walk up to a Command Prompt and hit build and done. As it is now, I gotta figure out how to get this ruby thing to work to make changes like this. :) You also wouldn't need a 3MB nuget.exe file in the repo. :) F# Fake + Paket does it all for us.
I've been using F# FAKE (build.fsx) with Bogus with much success. It's pretty complete with automated (and propa) GitHub releases w/ tags, (and thus fixing issues like #746 here in Marten). So easy, just tag the /master branch with vN.N.N and artifacts are built, nupkgs are published, and GitHub release is published. No drama OSS.
Would you be open to moving to AppVeyor?
It's nice. AppVeyor has PostgreSQL and works well for pushing artifacts to GitHub releases. I'm guessing TeamCity requires a bit more effort?
Do you want me to migrate Marten to new dotnet tooling (aka new CSPROJ)?
The Microsoft overlords say this .xproj stuff is legacy now....

Let me know how much you're willing to change (or reject). :+1: Let me know as soon as you can, I'd like to move fast here.
:beach_umbrella: :trumpet: Beach Boys - Good Vibrations (Nick Warren bootleg)

@bchavez Now, don't get me wrong here. I'm not saying that I haven't cursed over problems with the Baseline dependency a couple of time in my life - however, consider that since Baseline has been a dependency for so long people using Marten may have started using stuff from Baseline as well (since it contains quite a number of useful utility methods that tbh should have been in the BCL). If you eliminate that dependency and instead put it inside marten as internal then you are causing a breaking change.
Now, it would be nice if Marten was self-sufficient, so a breaking change might not be that bad. But if this change is going in then I'd expect it to end up in 2.0 in order to respect semver? This of couse wouldn't solve the nuget woes in the 1.x versions - but as stated earlier, those problems can be solved by switching to paket (unless the nuget team actually gets off their asses and fixes their stuff, but I'm guessing that won't happen ¯\_(ツ)_/¯).

@bchavez few comments to your questions:

We will be migrating to Appveyor soon. I had done some work earlier and posted a gist i.e. https://gist.github.com/mysticmind/b28c201697a3790036530497ebd22097
Migrating to new csproj, I had sent a PR #755
It would help to use Cake rather Ruby Rake. You can still build the solution from commandline without using Rake.

@wastaz  Why would dropping an external dependency be a breaking change, unless it has been used in such a way that users of Marten's public API has been forced to use pieces from it in their code base? But if it could be made internal to Marten like expressed above, I guess it hasn't. The people who has started to use Baseline as an effect of Marten can still have it as an external dependency. Agree that if the issue is in NuGet, then it would be great if it was fixed there. But if something can be done from project perspective other than stating something in the lines of "use Paket" that would in my mind be a nice gesture to people invested in NuGet, but of course, if it causes actual breaking changes, it should be planned.

Hi, thanks for getting back. Indeed, @wastaz , I share your opinions about NuGet. When using it in very large projects it just stops working... :scream_cat:

@wastaz I see your concern about breaking changes. Indeed, perhaps it might be best to do this on 2.x release. However, I don't think Marten should be picking winners or losers over what "utility libraries" everyone should be using. I think it's safe to say you have your favs :heart: and I have mine :heart_decoration: .
Also, @mysticmind

Great news on new *.csproj. Hopefully your changes get merged asap.
Great news on Marten committing to use AppVeyor :+1:

Life will be better soon.
Also, one quick last thing, I've been tracking down a possible bug in Marten and stumbled upon some weird assembly versioning stuff.... (directly from NuGet package download):

If these X.Y.Z version numbers are supposed to match up; then all the more reason to get into a reliable, repeatable & automated build system asap and avoid hand-editing version numbers in source code repos...
Let me know when & where you'd like to receive this PR (if we are still interested in making this change).
Thanks,
Brian
:art: :dash: Marshmello - CoLoUR

I'm going to veto Cake. I'm doing somewhere around 90% of the dev work on Marten and I think Cake is awkward as hell to use. We can fix the common assembly info mechanics inside the Rake script -- or really, just eliminate it. I'd suggest for the folks that don't want to use Ruby/Rake that either:

You don't really need to use it. You can pull open VS.Net and just go. Just please run the unit tests at a minimum before committing
We can add a simple bash script that delegates to the dotnet cli to build and run all the tests

@danielwertheim I don't remember if the Baseline types are exposed in the Marten API at all, but it's a moot point because 2.0 is the master branch now and I really, really don't want to go through all the gymnastics of doing this in 1.5 just to turn around and do the same in 2.0 if I can help it.
@bchavez Baseline is my project, and it's a descendent of a utility project I've used for 7-8 years, so yes, I do get to choose the utility project that Marten itself uses. Baseline is pretty small, so I'm not really sure what the problem is here.

@bchavez Sorry, haven't been following this thread. I've discussed the Ruby thing ad nauseum in the past. I prefer Rake, didn't like the alternatives when other folks talked me into changing, I do 90%+ of the work on Marten, can't stand Cake, want nothing to do with Fake, think that Paket isn't very usable compared to the newer, built-in nuget management in the dotnet project system, and everything can be done by just calling the dotnet cli. I'm perfectly cool with a bash script so you and others will stop bitching about the rake script, but I'm not excited about being personally responsible for maintaining a build script in a tool I don't care for.

Hey @jeremydmiller I agree with most of what you said. I don't like Cake either, so quite happy about that. And Paket does have it's problems, for sure.
I'm still unsure what to do... I kinda get the feeling based on what you said recently that you don't want to remove Baseline as a NuGet dependency now?

@jeremydmiller commented 2 days ago: .... As for removing the Baseline dependency, if you feel strongly enough about this, feel free to send the pull request for it.

Yes? No? If ( Yes ) PR to your /master 2.0 branch I take it?

@jeremydmiller commented 2 hours ago: ... Baseline is pretty small, so I'm not really sure what the problem is here.

The problem with Baseline, as others have pointed out, there are issues with using it as a NuGet dependency with Marten (and possibly more users more who don't report it). (details here, here, here, here, here, here, here, and here)
I would like to help you resolve these issues so that you don't have to do 90% of the work. :+1: We tend to bitch because we care (or at least that's what my girlfriend says). hahaha J/k :smile_cat:
:walking_woman: :ok_hand: Danelle & Salda - Nobody

Also @jeremydmiller , your README says:

We're temporarily using rake for build automation, but it's not mandatory for development.

So, that's why I asked you about it and thought you were open to moving to something like F# FAKE or C# CAKE. But I'll send you a PR to fix that. :+1:

@bchavez I'm just not excited about doing that because it'll make my maintenance w/ Baseline a little more difficult if any of that stuff has problems later, that's all.
Sorry to be harsh, but the "why aren't you using Rake/Fake/Cake instead of [my personal preference]" thing is a pet peeve for me from lots of other projects. For Marten, we went down the NancyFx philosophy of "we like Rake, and we'll use that for ourselves, but users can just open VS and go".
Some of what you're seeing is historical detritus. We started on .Net 4.6 w/ the old Csproj model using Paket, then we switched to a hybrid model where we had parallel projects for project.json and Csproj, and then finally to only project.json. The nuget.exe in there is a leftover I just didn't remember to nuke. If you look in the Rake file, most of it is just delegating to the dotnet or npm/yarn command lines with the sh command.

I don't have anything helpful to contribute but just wanted to chime in that I've been experiencing these Baseline nuget issues for a long time as well.  I guess I'm glad I'm not the only one.
FWIW, I don't care what build system is used as long as I can forget about it and just get my work done.

With regards to the build system there's very little to say if the main contributors and maintainers have found a nice setup that works for them. Especially if there is a friction free setup in being productive without even needing the build scripts (sounded like it). Of course you can always have another one in your fork. And eventually that might make it in there. Personally, I've gone through a few and currently Cake works good enough for me. I dropped Rake, as I didn't like having to install Ruby for managing ... builds.
@jeremydmiller regarding 1.5 vs 2.0... you are the one that knows what to prio with Marten so there's no real input to give. I have no idea how much effort there is in getting the code in both branches, but sounds like you have an excited contributor in @bchavez that seem eager to solve it. Awesome. So, if that (getting it in both branches) is done and there is no breaking change, why not "just" accept it? If included as source, you can always switch back when NuGet is "fixed", no? Of course, if it is a breaking then yes, wait for 2.0. But even if the bug is in NuGet the friction is experienced in Marten. And as an plain old fashioned dev, it would be awesome if it (read install of Marten) just worked with the mainstream paket manager, which in my mind is NuGet.


Add :scheme to H1 downstream headers

It'd be handy to have headers.Scheme() work for filters in both H2
and H1. Given that :authority is already added in the HTTP1 codec
and that :scheme is added to upstream requests for H1 & H2 [0],
this should makes things more consistent for filter writers.
[0] https://github.com/envoyproxy/envoy/blob/master/source/common/router/router.cc#L91
Signed-off-by: Raul Gutierrez Segales<EMAIL_ADDRESS>

Thanks, @rgs1! From a quick look, this is fine. Let's have @alyssawilk to help to review this.

Hm, I can see where the consistency would be helpful but I don't think we want Envoy forwarding H2 headers over H1.  What if we had a utility function that you could do getScheme(request_headers) and it would infer?
Alternately, are you looking for scheme (the security of the last hop) or X-Forwarded-Proto (the security of the client-to-front-proxy-connection)?  I suspect you want the former (it's useful even if you are the first hop) and so downstream_headers.ForwardedProto() might do what you're looking for, and it exists for both the first and for subsequent hops.

Hm, I can see where the consistency would be helpful but I don't think we want Envoy forwarding H2 headers over H1. What if we had a utility function that you could do getScheme(request_headers) and it would infer?
Alternately, are you looking for scheme (the security of the last hop) or X-Forwarded-Proto (the security of the client-to-front-proxy-connection)? I suspect you want the former (it's useful even if you are the first hop) and so downstream_headers.ForwardedProto() might do what you're looking for, and it exists for both the first and for subsequent hops.

Thanks for the quick reply @alyssawilk!
Don't we already forward :scheme per:
https://github.com/envoyproxy/envoy/blob/master/source/common/router/router.cc#L91
This just makes it available for filters, upstreams are already seeing it regardless no?
Yes, we are looking for the security of the last hop, but when I read the code my first reaction was that we might as well make headeres.Scheme() available since we are already setting it for upstreams. This is also true for internal redirects:
https://github.com/envoyproxy/envoy/blob/master/source/common/router/router.cc#L82

Don't we already forward :scheme per:
https://github.com/envoyproxy/envoy/blob/master/source/common/router/router.cc#L91

No, that is setting :scheme based on upstream config, not forwarding downstream scheme.

Don't we already forward :scheme per:
https://github.com/envoyproxy/envoy/blob/master/source/common/router/router.cc#L91

No, that is setting :scheme based on upstream config, not forwarding downstream scheme.

ah true, it is done for internal redirects tho.

Don't we already forward :scheme per:
https://github.com/envoyproxy/envoy/blob/master/source/common/router/router.cc#L91

No, that is setting :scheme based on upstream config, not forwarding downstream scheme.

ah true, it is done for internal redirects tho.

actually, not true for internal redirects either since the scheme comes from the upstream's location header.
@alyssawilk yeah probably downstream_headers.ForwardedProto() is enough.
cc: @jparise

Cool, glad that's a helpful header.  Anything else to do here then, or should we close this one off?

All good, thanks!


Active day counter stuck at 1

Avoid duplicates

[x] Bug is not mentioned in the FAQ
[x] Bug is not already reported in another issue

Describe the bug
The "active day" counter on the risk view always shows "1". im using the app for 3 days now and never disabled bluetooth or removed/disabled the app rights.
Expected behaviour
The "active day" counter show count on after each day
Steps to reproduce the issue

Install app
Enable bluetooth
Enable risk check/management
Disable auto bluetooth connecting
Wait a day

Technical details

iOS Version: 13.5.1
Device: IPhone 7 Plus

Guess this message is related

Today it has changed to „2“ - still not sure if this might related to the region message or disabling bluetooth auto connect. Will have an eye on it but for now it seems to work normally


Fix jQuery as optional dependency

Check if jQuery is defined before using it and use window.jQuery instead of jQuery directly to prevent ReferenceError.
Note: this pull request doesn't change minified files.

Hi, friend. Tnx for mention it! As about debug code, i just forgot to remove it. Will do this in next update.


set TCP_NODELAY and TCP_QUICKACK to TRUE

This should improve the performance.

Setting TCP_NODELAY can be done in ureq using AgentBuilder::no_delay.  TCP_QUICKACK is not supported AFAIS.

NODELAY must be set on the server side, which we do already. QUICKACK is not POSIX but mainly Linux, and must be set in the client side on every write. Since we set NODELAY already on the server side, setting QUICKACK on Linux clients seems not necessary.

Thanks for the explanation!  Then I’ll close the issue here.


How can i change the font of text in the toast??

I personally had issues where the Toast component I dropped into the RootLayout of my app was not adhering to the tailwind classes I was supplying to it. Went ahead and created my own component and rendered it with toast.custom()
export function Toast({ children }: ToastProps) {
  return (
    <Flex className="bg-background border-[0.5px] px-4 py-2">
      <Typography className="font-mono">{children}</Typography>
    </Flex>
  )
}

This has been updated and should be much easier now, see https://sonner.emilkowal.ski/styling.


Memory Error

Hi Jackie-Chou,
I was working on this repository and it was showing "Memory Error" when I am running match.py
I printed the width, height, max_num of the np array that was about to form just before this error pop up

In the line 642 to 646, the output "Here" got printed but "Here too" didn't. Could you help me in resolving this issue?

P.S: I have 2GB graphics card, NVIDIA 940 and 8GB RAM.
Thanks a lot in advance
Srinath

Hi Jackie-Chou,
I was working on this repository and it was showing "Memory Error" when I am running match.py
I printed the width, height, max_num of the np array that was about to form just before this error pop up

In the line 642 to 646, the output "Here" got printed but "Here too" didn't. Could you help me in resolving this issue?

P.S: I have 2GB graphics card, NVIDIA 940 and 8GB RAM.
Thanks a lot in advance
Srinath

Hi Srinath,
It seems to me that the ndarray union_region needs more RAM to be created, sadly. Using the values printed in your first picture, we can calculate that a union_region with shape (948,1440,784,2) and dtype int32 would need<PHONE_NUMBER>24 = 8,562,032,640 B = 8,361,360 KB = 8165 MB = 7.97 GB, so a 8GB RAM would be dangerous.
Sincerely, this is my fault. When I worte this code, I was working on a server with a big 126GB RAM, so I didn't pay much effort to optimize the code and try to reduce memory consumption. I will do the optimization in the future. Sorry for my laziness. ):
And for your problem at hand, I would suggest: 1.use smaller images 2.skip some processing procedure that comsumes large RAM 3.try to do code optimization yourself.
Hope this can be useful. Apologize for my laziness again.
Jackie Chou

Thanks for your reply Jackie Chou,
1.Use smaller images --> We want to run MC-CNN on KITTI stereo dataset. So, do u mean to resize the images before feeding into the network.
2.Skip some processing steps that consumes large RAM ---> Can you please be more specific as in what steps can be avoided/ removed. As in giving the names of the functions or placing code snippets etc etc;

Try to do code optimization yourself ---> I have reduced the np.int32 to np.int8 and it gave a bit improvement but that is not enough. Can you please suggest in addition to that some other tips

4.How to access GPU for training? I have given the parse argument -gpu 4 but couldn't observe any improvements in training speed. So, I doubt whether the training uses my GPU card. Any tips for that

Is 16GB RAM good enough to train the entire MC-CNN on KITTI stereo dataset?

How much time will it take(appx) to train the entire KITTI stereo dataset(with and without GPU)?

Thanks in advance Jackie Chou

Hello again Jackie Chou,
As you suggested, we have tried to optimise the code and upgraded to a 32GB system and started running but finally ended up with an error

We got this error after approximately the system ran for 15+hrs
The code corresponding to this is process_functional.py with disparity_prediction function(check line number 259 in attached screenshot below

Can you please help us out what we should do to avoid the assertion error?

Also, I have given  this command to run the match.py code. What does those tag, start and end numbers actually should be?

python3 match.py --list_file '/media/srinath/Major Project/cod
es/MC-CNN-python-master/data/list/test.txt' --data_dir '/media/srinath/Major Project/codes/MC-CNN-python-master/data/MiddEval3/testH/' --save_dir '/media/srinath/Major Project/codes/MC-CNN-python-master/save1/' -t 1 -s 0 -e 1

If I want to include gpus, can I write -g 0,1,2,3? How to reduce time as in to get a disparity map within a couple of hours?

Very thankful in advance Jackie

Hello again Jackie Chou,
As you suggested, we have tried to optimise the code and upgraded to a 32GB system and started running but finally ended up with an error

We got this error after approximately the system ran for 15+hrs
The code corresponding to this is process_functional.py with disparity_prediction function(check line number 259 in attached screenshot below

Can you please help us out what we should do to avoid the assertion error?
Also, I have given  this command to run the match.py code. What does those tag, start and end numbers actually should be?

python3 match.py --list_file '/media/srinath/Major Project/cod es/MC-CNN-python-master/data/list/test.txt' --data_dir '/media/srinath/Major Project/codes/MC-CNN-python-master/data/MiddEval3/testH/' --save_dir '/media/srinath/Major Project/codes/MC-CNN-python-master/save1/' -t 1 -s 0 -e 1

If I want to include gpus, can I write -g 0,1,2,3? How to reduce time as in to get a disparity map within a couple of hours?

Very thankful in advance Jackie

For the assertion error, I'd suggest check the value of ndisp and the content in left_disparity_volume. It shouldn't happen in normal.

Hello again Jackie Chou,
As you suggested, we have tried to optimise the code and upgraded to a 32GB system and started running but finally ended up with an error

We got this error after approximately the system ran for 15+hrs
The code corresponding to this is process_functional.py with disparity_prediction function(check line number 259 in attached screenshot below

Can you please help us out what we should do to avoid the assertion error?
Also, I have given  this command to run the match.py code. What does those tag, start and end numbers actually should be?

python3 match.py --list_file '/media/srinath/Major Project/cod es/MC-CNN-python-master/data/list/test.txt' --data_dir '/media/srinath/Major Project/codes/MC-CNN-python-master/data/MiddEval3/testH/' --save_dir '/media/srinath/Major Project/codes/MC-CNN-python-master/save1/' -t 1 -s 0 -e 1

If I want to include gpus, can I write -g 0,1,2,3? How to reduce time as in to get a disparity map within a couple of hours?

Very thankful in advance Jackie

For the assertion error, I'd suggest check the value of ndisp and content in left_disparity_map. It shouldn't happen in normal.
2.The tag is only used to mark one particular execution, so simply "-t 1" is ok; -s and -e are used to limit the processing range of images, only images with index between [-s, -e] will be processed and others skipped.
You could write -g 0,1,2,3 (see the explanation for flag -g). About the running time, I'm afraid it's inevitably long for the python implementation; try using more low-level language like C and cuda for better efficiency, just like the authors of the MC-CNN paper did.


I want to select multiple and drag them together

I want to select multiple and drag them together
问下，可以通过Ctrl 选择多个元素，一块拖动么

same request

+999


Using Lettre as a native MTA

Is your feature request related to a problem? Please describe.
No problem. Likely just addition of examples.
Describe the solution you'd like
Direction about how to code lettre + rspamd to produce a native MTA to replace tech like sendmail, opensmtpd, exim, postfix, qsmtpd, etc...
Describe alternatives you've considered
I've been working on a PERL based MTA for some time now + problem to solve is 2x fold, message processing faster than PERL + spawning multiple threads or processes to handle each connection, to parallelize incoming message processing.
Additional context
I've been writing custom incoming SMTP MTAs since the 1990s + am having problems with any Mail Relay/ESP/CRM being able to actually deliver mail reliably + log enough granular data to debug 100% of all problems quickly.
This has resulted in having to write a working MTA... which sounds ludicrous... until... people actually begin processing their DMARC reports which quickly suggest all Relays/ESPs/CRMs (at least the few 100s I've tested) all lie about delivery, based on DMARC report data.
I came across Rust, reading recent Kernel discussions.
I'd like to setup a simple outgoing MTA that's multi-threaded (if this is the correct Rust terminology), handles TLS upgrades (eventually DANE + STS), integrates with Rspamd to do dual DKIM signing (which will shortly be required) for RSA1024 + ED25519.
Scanning this project, it appears much of this work has... maybe... already been done.
Point me to the correct... docs to get started on this project...
Many thanks!

Hi there :wave:
I am not a dev/maintainer of lettre but this project is more a library for smtp exchange rather than a standalone MTA.
Luckily, we are working on the project you described : https://github.com/viridIT/vSMTP (we are using lettre)
Not all the feature you described are currently supported, but we will get there.
Thank you for the interest you will find in our project :+1:

Lettre's design goal is indeed to work with a relay, and not sending emails directly (see https://github.com/lettre/lettre/issues/674#issuecomment-931351523 for more details about what would be missing).
And vSMTP is indeed the best option if your want an MTA in Rust.


teosd doesn't refuse to run when bitcoind is not running on the same network

For instance, If bitcoind is running on regtest, and we set teosd to run on mainnet. It works fine, which isn't the expected behavior.

Cannot reproduce. Are you hardcoding the btcrcpport?
> bitcoind
[...]
2022-08-31T12:32:25Z Config file arg: debug="1"
2022-08-31T12:32:25Z Config file arg: dnsseed="0"
2022-08-31T12:32:25Z Config file arg: regtest="1"
2022-08-31T12:32:25Z Config file arg: rpcpassword=****
2022-08-31T12:32:25Z Config file arg: rpcuser=****
2022-08-31T12:32:25Z Config file arg: server="1"
2022-08-31T12:32:25Z Config file arg: txindex="1"

> teosd --btcnetwork=bitcoin
2022-08-31T12:33:35.968Z INFO [teosd] Loading configuration from file
2022-08-31T12:33:35.969Z INFO [teosd] tower_id: 02cf1bb8e9b3abcc4ed76bf8944d3590067feb8ceefe15d8fa5fc8853bd88cd60e
2022-08-31T12:33:35.970Z ERROR [teosd] Failed to connect to bitcoind. Error: Connection refused (os error 61)

> teosd --btcnetwork=regtest
2022-08-31T12:33:49.827Z INFO [teosd] Loading configuration from file
2022-08-31T12:33:49.828Z INFO [teosd] tower_id: 0205b0abf5ce8158ab991191d55f9690b62eb2cdfdd9ef714edfd3a339e8cec32a
2022-08-31T12:33:49.832Z INFO [teosd] Last known block: 1697d4843256e60cf989697ac87037d7179900a2096af76f700cd2f42b74f006
2022-08-31T12:33:49.841Z INFO [teosd] Bootstrapping from backed up data
2022-08-31T12:33:49.842Z INFO [teosd] Bootstrap completed. Turning on interfaces
2022-08-31T12:33:49.844Z INFO [teosd] Tower ready

There is that rpc that does query bitcoind for network info and tells which network bitcoind is running on.
"getblockchaininfo".

Umm, I guess there's a discussion to be started here regarding the network options and the default ports.
The --network option is basically syntactic sugar for setting the proper ports. ATM, if no port is provided and a network is provided, then the default port for that network is picked:
https://github.com/talaia-labs/rust-teos/blob/master/teos/src/config.rs#L218-L225
This basically allows you to run in any network as long as whatever rpc host and port you provide match whatever bitcoind is set up to run with. We could add an additional restriction to this, by making network a mandatory option (it it not at the moment) and only allowing the daemon to run if all match. However, I'm pretty certain the way it is right now matches both bitcoind and lightningd (CoreLN daemon)

Well, that's actually the same behavior we have as long as the port is not set.
I was testing what happens if there is a contradiction between network and port (for instance we set network to regtest but port to 8332) and the network flag is actually ignored
2022-08-31T13:38:59.658Z **BROKEN** plugin-bcli: \nCould not connect to bitcoind using bitcoin-cli. Is bitcoind running?\n\nMake sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.\n\nYou can verify that your Bitcoin Core installation is ready for use by running:\n\n    $ bitcoin-cli -regtest -rpcport=8332 echo 'hello world'\n
2022-08-31T13:38:59.659Z INFO    plugin-bcli: Killing plugin: exited before we sent init

That's because lightningd actually forwards that command to bitcoind, which does ignore the network if the rpcport is set:
> bitcoin-cli -regtest -rpcport=8332 echo 'hello world'\n

error: timeout on transient error: Could not connect to the server <IP_ADDRESS>:8332

Make sure the bitcoind server is running and that you are connecting to the correct RPC port.

But actually, if this is set up the other way around (network is wrong but port is right), then lightningd does check the getblockchaininfo result and compare the chain field:
> lightningd --network=bitcoin --bitcoin-rpcport=18443
[...]
Wrong network! Our Bitcoin backend is running on 'regtest', but we expect 'main'.

So I guess we should decide whether we want to mimic bitcoind's or lightningd's behaviour.

I mean, generally, when the network is wrong (on a successful connection to bitcoind) we should refuse to run.
This would happen if:

We let bitcoind run on port X & network A, but teosd tries to connect to port X expecting network B. (port X can be any port, even the default port for other networks: have the network be regtest and tell bitcoind to run on 8332 which is the default port for mainnet)

But isn't covered in this issue when:

We let bitcoind run on port X & network A, but teosd tried to connect to port Y & network A. (with port Y being the default port for network A, and X isn't)

I am ignoring the case when teosd doesn't actually connect to bitcoind because the user didn't specify the port correctly. I am assuming the connection was successful, when we connect, we should check for the network we are connected to.

Ok, agreed.


Grammar updates

Some grammar updates

@elaristi This is amazing. It's noticeable that you have a bit more experience in writing English texts. :heart:


Custom Boot Images

Is it possible to run the GSI with a custom boot image in the future? It would be really useful as it would allow halium, for example, to function, allowing dual booting android and linux mobile(droidian, ubports UT, etc)
I read about this person who tried to do the same with a custom vendor partition. I wonder if it is already possible!

I didn't tested or even searched it further, so i might be wrong, but i think that isn't possible, in Android docs (https://source.android.com/docs/core/ota/dynamic-system-updates#multiple-partition-dsu ), "When the device boots, the first stage init detects the installed DSU partitions and replaces the on-device partition temporarily",  i think that isn't possible because DSU partition "swap" happens before boot partition was initialized, since those actions occurs on first stage init.

I didn't tested or even searched it further, so i might be wrong, but i think that isn't possible, in Android docs (https://source.android.com/docs/core/ota/dynamic-system-updates#multiple-partition-dsu ), "When the device boots, the first stage init detects the installed DSU partitions and replaces the on-device partition temporarily", i think that isn't possible because DSU partition "swap" occurs when boot partition is already initialized, since those actions occurs on first stage init.

Shame, thanks a whole lot for reading and responding!


fix: still show clusters when it's only one and not connected

:tada: This PR is included in version 2.0.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Reduce padding on subtitle times

Great tool, thank you for your efforts.
I do wish for one feature especially though, it's almost a deal-breaker, and that's the ability to adjust the padding of subtitle times through an argument when generating Anki cards through substudy.
It seems to me, and correct me if I'm wrong, but it certainly seems that the times are being automatically padded by substudy, meaning there is extra time added on both the start and the end.
This might be a sensible default, as it's presumably better to have a little too much of what's said, than too little, but I have some pretty nicely timed subtitles, and it would be great to be able to prevent this padding from taking place, even if it's not the default.
I've tried looking through the source, but tbh, I'm not a great programmer, I'm actually integrating substudy into some scripts, but I've been looking at a lot of python and POSIX sh for the last few years, not so much C-like languages, and I'm totally unfamiliar with Rust. It seems a lot isn't commented, so I find my eyes glazing over and my brain shutting down when I tried to figure stuff out in the source myself.
Even if this isn't what's happening, perhaps a command line argument to reduce or increase padding would be good.
I'd try to implement it myself as I'm sure it's rather simple, but for the reasons I stated earlier, I'm pretty much at the mercy of your (or some other kind soul's) benevolence.

I eventually modified the source where I thought the timing might be getting added, but the program won't compile on my machine, so I've given up.

I'm sorry that the defaults don't work for you!
I've made and reviewed tons of cards (probably 10,000+ reps), from tons of different subtitle sources. Sometimes those subtitles exactly matched the audio timing, and sometimes they were approximate.
The problems with making the padding any smaller are:

You'll wind up with far more "useless" cards where critical audio gets clipped.
Even if your subtitle timing is exact, which almost never happens, the padding provides a small amount of helpful context.

My apologies if you've tried reviewing cards and the padding still doesn't work for you. I prefer not to have lots of extra command-line options, particularly ones which I think will cause large groups of users to generate bad substudy decks by mistake.

No worries. Any chance you could point out to me the lines where padding is added, so that I can patch it for my own use?

Try here: https://github.com/emk/subtitles-rs/blob/83d8a77a095f763e967372aaa00ba5728842eb34/substudy/src/export/tracks.rs#L66
Good luck!


Cannot find /etc/xrdp/xrdp.sh in OS X "El Capitan"

Anybody was able to run latest version in OS X "El Capitan"?
1 Instal xQuartz
2 Instal brew
3 Run the below:
brew update
brew install autoconf automake gettext libtool tree pkgconfig openssl
sudo ln -s /opt/X11/include/X11 /usr/local/include/X11
brew link --force openssl
cd /tmp
git clone https://github.com/neutrinolabs/xrdp.git
cd xrdp
./bootstrap
./configure
make
sudo make install

4 No errors so I expected to find  /etc/xrdp/xrdp.sh  however it is not there:
$ find /etc/xrdp/ -name "*.sh"
/etc/xrdp//startwm.sh
$

It is correct. AFAIK, xrdp.sh intend to be run on GNU/Linux and is not compatible with other OS.
So xrdp doesn't install it for non-Linux OS.  If you think xrdp.sh works for OS X,  please give me the result it is actually working on OS X.  I'll change to install it for OS X.

xrdp.sh is Linux only, so its absence on Mac OS is not a bug.
Just run xrdp and xrdp-serman manually to try them. I can connect to xrdp, but I cannot go any further yet. I suspect libscp network error in xrdp-sesman.log. XRDP on Mac OS needs a lot of work. I cannot even install tiger-vnc from homebrew on El Capitan.

not a bug.


Feature/bend 004

REST layer for Place Entity

I have changed both 003 and 004 branches, commited and pushed this branches. What should I do then? Do I need restart pull request? or this new commits automatically changed in this pull request allready, and I have nothing to do else?

rm - r .gradle from git


Update installer to add "App Path" location for pwsh.exe

Steps to reproduce
Windows only. Attempting to start "pwsh.exe" (without the path included) using Task Scheduler results in a file not found error. The same with "Powershell.exe" works as expected.
Expected behavior
For pwsh.exe to run and perform the activities in the arguments, be that a file or whatever.
Actual behavior
See #5919
#5226 is also vaguely related.
Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.1
PSEdition                      Core
GitCommitId                    v6.0.1
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Choosing to define the entire path isn't a solution, only a temporary workaround until the next release of PowerShell Core, then the folder name changes... 6.0.0 to 6.0.1 for example.
As per #5919, the resolution would seem to be to create an App Path entry for "pwsh.exe" as is in place for "Powershell.exe" already - presumably updated/maintained by the Windows installers.

We already have "App Paths" in PowerShell Core installer. A problem was that we used HKCU registry. This was fixed and now we use HKLM - system wide "App Paths".

I got 6.0.1 and it unfortunately still uses HKCU. Should I wait for 6.1.x?

You could use current daily preview builds if you don't need official support from MSFT.

I'm waiting for this to implement https://github.com/desktop/desktop/issues/3791.


Help with Saving and Loading a Scene?

I'm using a build from December 23rd. I don't seem to be able to save and load a scene.
https://jsfiddle.net/philmaker/ueodzjjj
What am I doing wrong? I also tried this using the latest build but saw an error relating to _src.slice and " Cannot read property 'slice' of undefined"

This line looks suspicious to me:
https://github.com/xeolabs/xeoengine/blob/master/src/scene.js#L361
where:
constructor = window[type];
Should it be looking for the constructor in window.XEO?

Actually that line (eg for the XEO.Entity component) is resolving to window["XEO.Entity"], to get the constructor for that component from the global scope, so not a problem.
Haven't got to this issue yet, will get on it this week or next. Note that serializing to/from JSON is not fully implemented yet.


Incorrect research interests

When a scholar does not list research interests on their profile, the scholarly.search_author() function returns an interests list with the scholar name in it, which is incorrect. I would expect the list to be empty. The results from scholarly.search_author() and scholarly.search_author_id() are inconsistent. See the screenshot below.
from scholarly import scholarly
search_query = scholarly.search_author('Albert Einstein')
scholarly.pprint(next(search_query))

author = scholarly.search_author_id('do7frTMAAAAJ')
scholarly.pprint(author)

Can I take this bug?

By all means, go ahead!

@meShubhamJha do you have a rough estimate on when you'd be able to work on this? I plan on releasing a minor version within the next two weeks with some new features. It'd be good to get this bug fix in for the release. If you need help on where to look in, let me know.


Issue with zero_grad?

Hi, unless I'm misunderstanding something, zero_grad in nn.py is zeroing out the gradients on the parameter nodes, but shouldn't it do it on all the nodes in the graph?
Otherwise the inner nodes will keep accumulating them.

My bad, I didn't read the whole file carefully enough :)

@sky87 what did you realize? I have the same question but haven't figured it out.

From the looks of this: https://github.com/karpathy/micrograd/pull/8, this is still a known issue?

@ben-z It's been a few months, if I remember correctly the inner nodes are new Value instances that get recreated every time (see for example all the products and the sum in Neuron#__call__), so you don't need to zero them out. The parameters are the only thing that survives between runs

That makes a lot of sense!! Thanks for the explanation.


infos: display ip of server  !! not container !!

to connect with tablet or mobile , we need to know the ip of the raspberry itself.
for the moment, the boot is giving it's internal address

get ip from supervisor


CTest - Add Basic Tests

OpenVX Tests

Test Instructions - @paveltc
cmake ../MIVisionX/
make -j8
sudo make install
sudo cmake --build . --target PyPackageInstall
make test

Ran the test. Seems fine to merge.

@paveltc use make test ARGS="-V" for detailed log.


Text Extension: New Block Idea

Can we have this block?

This is workaroundable with the JSON extension:

This is workaroundable with the JSON extension:

Oh i didn't know it was possible with json before, This is helpful Thanks


Monthly Statistics do not show the right numbers

Describe the bug
Statistics dashboard does not show the right numbers in Monthly view. The sum of the daily data of a month does not correspond to the total value shown.

Expected behavior

The Statistics monthly view must show the sum of the daily data of each month.
How to reproduce it (as minimally and precisely as possible):
Steps to reproduce the behavior:

Go to 'Statistics'
Click on 'Period -> Month'
Compare the values against 'Period -> day' and sum the data of the days of the month.
See error

Environment

TeslaMate version: 1.20.1
Type of installation: Docker
OS TeslaMate is installed on: MacOS 10.15.7
User OS & Browser: MacOS 10.15.7 - Safari

This looks indeed very strange. I checked some of my months, all are correct. Don't know, how to pin that  down without having the database at hand.
(I assume, you did not change the display time in the upper right or the timezone...)

Just noticed the error is related with the Timezone. My current Timezone is Europe/Madrid and the statistics are wrong:

But if I change the Timezone to UTC, it seems to correct the statistics by adding +1 to each month:

How did you set the time zone to Europe/Madrid?

I didn't set it or I don't remember setting it. It is in Europe/Madrid by default. I think Grafana takes it from the server:
% ls -l /etc/localtime
lrwxr-xr-x  1 root  wheel  39 27 sep 10:14 /etc/localtime -> /var/db/timezone/zoneinfo/Europe/Madrid
But teslamate is in UTC format:
% docker exec -it teslamate_teslamate_1 date
Thu Nov  5 09:42:48 UTC 2020
Localtime is UTC+1:
% date
jueves,  5 de noviembre de 2020, 10:44:42 CET
So, I'm seeing two problems:

Grafana database is in a different time (UTC) than my local time (UTC+1 now), but this is not really a problem.
Monthly Statistics are showing the data of the next month when local time (Europe/Madrid) is not changed to UTC. I have also noticed that changing it to Etc/GMT+1 (also my local time) also shows the right values as well as UTC:

Could you please also check date in the grafana and the database container? Which PostgreSQL version are you using?

Here you have it:
Grafana:
% docker exec -it teslamate_grafana_1 date
Fri Nov  6 18:22:23 UTC 2020
Database:
% docker exec -it teslamate_database_1 date
Fri 06 Nov 2020 06:23:22 PM UTC
My machine date:
% date -u
viernes,  6 de noviembre de 2020, 18:23:50 UTC
PostgreSQL version: 12.4

Looks ok, todo bien. I assume, you did not set TZ or PGTZ in your docker-compose.yml or .env there.
What gives docker-compose exec database grep timezone /var/lib/postgresql/data/postgresql.conf?
(Still wondering, where that Europe/Madrid is coming from...
Anyway, could you import the attached dashboard and have a look at it?
Statistics.zip

I was about to open a separate report for the Statistics view, but I think my issue is the same as reported here. Here's what I say (two different examples).
Example 1:
Default "Statistics" view opened from Teslamate, period is "Month" and timezone is "Europe/London".
Note how "October 2020" is completely missing, but also data is reported for "August", but the car wasn't tracked in Teslamate until September

Changing the period to "Week" confirms that there is data for October, and that the earliest data is for September

Notice, that the total number of drives tallies across the two views, so the data has obviously gone into the wrong month in month view.
Changing timezone to Etc/UTC does "fix" the data, correctly reporting the same 233 drives across Sep/Oct/Nov, rather than Aug/Sep/Nov

Example 2:
With timezone left at my default ("Europe/London"), the data 'misses' October 2019, and October 2020, and includes two entries for March 2020
https://www.dropbox.com/s/i7vf5py9ro2ujdp/Screenshot 2020-11-12 at 09.20.24.png?dl=0
Swapping to UTC correctly shows one entry for each month:

My timezone in Grafana is set to "Default", so assume that Europe/London is being grabbed from my browser / OS (I am in the UK, so the choice of Europe/London is correct).


The issue

SyntaxError: expecting ';' when creating the prompt inside Figma. Will be grateful for the help.

Hey @vladjarema - haven't touched this for ages, but just checked and seems to run on my side.
Can you share a screenshot of the console from Figma?


Ubuntu setup cannot complete

Describe the bug
After multiple attempts of trying to execute ./ubuntu_setup.sh, the setup keeps getting stuck at the following:
Requirement already satisfied: cryptography>=2.0 in /home/ladm/.pyenv/versions/3.8.10/lib/python3.8/site-packages (from SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.2) (38.0.3)
Requirement already satisfied: more-itertools in /home/ladm/.pyenv/versions/3.8.10/lib/python3.8/site-packages (from jaraco.classes->keyring>=21.2.0->poetry==1.2.2) (9.0.0)
Requirement already satisfied: cffi>=1.12 in /home/ladm/.pyenv/versions/3.8.10/lib/python3.8/site-packages (from cryptography>=2.0->SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.2) (1.15.1)
Requirement already satisfied: pycparser in /home/ladm/.pyenv/versions/3.8.10/lib/python3.8/site-packages (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.2) (2.21)
OS Version
Ubuntu 20.04
openpilot version or commit
0.9.4 d0ea8be95fd5900930070b55c8582bafd329639e
Additional info
Using a commit that uses Python 3.8 since i am doing co-simulation, and the bridge script uses libraries that support uo to Python 3.10

We don’t support anything besides the latest master.


No longer works with react because of getDOMNode()

Basic usage of the component throws an error because of an update to React
app.js:89 TypeError: this.getDOMNode is not a function
    at Constructor.componentDidMount (index.js:16)
    at CallbackQueue.notifyAll (react.js:839)
    at ReactReconcileTransaction.close (react.js:12942)
    at ReactReconcileTransaction.closeAll (react.js:16072)
    at ReactReconcileTransaction.perform (react.js:16019)
    at ReactUpdatesFlushTransaction.perform (react.js:16006)
    at ReactUpdatesFlushTransaction.perform (react.js:13727)
    at Object.flushBatchedUpdates (react.js:13803)
    at Object.wrapper [as flushBatchedUpdates] (react.js:12403)
    at ReactDefaultBatchingStrategyTransaction.closeAll (react.js:16072)

Where index.js is throwing an error
// Add our resize sensor.
  componentDidMount: function() {
    this.setState({
      componentWidth: this.getDOMNode().getBoundingClientRect().width // line with error
    });
    elementResizeEvent(this.getDOMNode(), this.onResize);
  },

I think it should be updated with ReactDOM.findDOMNode

Yeah, that looks like what's needed. I'm not using this component anymore so if you'd like to help upgrade it — I'd be happy to review/merge PRs etc. still but won't be doing any upgrading myself.


Open ScenarioConfig API to export a scenario config graph as a picture.

The purpose is to let developers draw a scenario config DAG using matplotlib to visualize the graph he just created, helping him understand if it is correct.
Expose a new method to ScenarioConfig draw that is drawing the execution graph using matplotlib and networkx or some other way (mermaid?).
https://networkx.org/documentation/stable/reference/drawing.html

I certainly don't like this idea, involving both the import of another (large) package but also impacts the global product homogeneity, as Taipy GUI and Taipy Studio already provide ways of representing DAGs.
Why chose a technology that we don't already use?

@quest-bot loot #1932

@quest-bot embark

@jrobinAV could you please assign this issue to me, I would like to take this up.

@quest-bot loot #1592

Yep sure, you are assigned.

Description
In the ScenarioConfig class, we want a new method named draw() that exports the scenario configuration graph as an image file.
The graph comprises the input DataNodeConfigs, the output DataNodeConfigs, and the TaskConfigs as nodes. There is a directed edge from a DatanodeConfig node to a TaskConfig node if and only if the DatanodeConfig is a TaskConfig input. There is a directed edge from a TaskConfig node to a DatanodeConfig node if and only if the DatanodeConfig is a TaskConfig input.
Implementation constraint.
If a new package is required, it must be made optional. The draw function should check the presence of the package before using it. If the package is not installed, the draw function should log a warning message and return doing nothing else.

Hey can you assign me this

@jrobinAV can you please tell me that image format should be a svg or png ( mention if any other format is suitable ), also what would be the warning log message please specify?


how to implemented it in faster rcnn?

@mkocabas
Hi,thanks for your cool code.
but I have little confused about how to use it. I want implemented it in faster rcnn,should I just change the softmax into focal loss or others?can you tell me how to use it?
thanks so much.

Hi @zqdeepbluesky,
The aim of focal loss is to improve the performance of one stage detectors.  Faster-RCNN is a two stage detector and it does hard example mining by selecting a constant number of RoIs from RPN. So, you don't need to use focal loss with Faster-RCNN.  But if you want to use it either, you can replace the classification loss with focal loss.

@mkocabas
thanks so much for your answer.


Support "#pragma region" folding in C/C++

Currently, when folding using za, you can not fold #pragma regions using the fold method "syntax"
Instead, za should fold using #pragma region and #pragma endregion as markers for folding

Currently, when folding using za, you can not fold #pragma regions using the fold method "syntax"
Instead, za should fold using #pragma region and #pragma endregion as markers for folding

Try adding this line around line 131 in $VIMRUNTIME/syntax/c.vim:
syn region	cPragma		start="^\s*#pragma\s+region>" end="^\s*#pragma\s+endregion>" transparent fold
Let me know if that works properly.
--
ARTHUR:  Well, I AM king...
DENNIS:  Oh king, eh, very nice.  An' how'd you get that, eh?  By exploitin'
the workers -- by 'angin' on to outdated imperialist dogma which
perpetuates the economic an' social differences in our society!  If
there's ever going to be any progress--
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

@brammool Both start and end will conflict with cPreProc. But if it stands after cPreProc and has both keepend and extend (to support nesting) then it works well.

fixed by d2ea7cf10a4d026ebd402594d656af7d5c811c24


panic: runtime error: slice bounds out of range

I've run into a strange problem recently which I did not have before and am slowly loosing my mind trying to get to the bottom of it :)
This is my test environment (using RHEL 7):
I'm running statsrelay with the following command options on serverx (2 backend statsd hosts):
statsrelay -bind=<IP_ADDRESS> -port=12001 -prefix=serverx -verbose=true <IP_ADDRESS>:12000 <IP_ADDRESS>:12000

2015/05/12 15:11:59 Listening on <IP_ADDRESS>:12001
2015/05/12 15:11:59 Setting socket read buffer size to: 212992
2015/05/12 15:11:59 Rock and Roll!

Then on my test client I'm sending it a statsd metric using netcat like so:
echo "a.b.c:1|c" | nc -w 1 -u <IP_ADDRESS> 12001

As soon as the metric hits serverx on 12001 (UDP), statsrelay crashes and the following appears in the console:
panic: runtime error: slice bounds out of range

goroutine 27 [running]:
runtime.panic(0x53b7c0, 0x624c6f)
        /usr/lib/golang/src/pkg/runtime/panic.c:279 +0xf5
main.getMetricName(0xc208380011, 0x0, 0xfffef, 0x0, 0x0)
        /home/dave/statsrelay/statsrelay.go:79 +0xa6
main.handleBuff(0xc208380000, 0x11, 0x100000)
        /home/dave/statsrelay/statsrelay.go:139 +0x1ea
created by main.runServer
        /home/dave/statsrelay/statsrelay.go:276 +0x1db

goroutine 16 [select]:
main.runServer(0x7fffec2bc801, 0x7, 0x2ee1)
        /home/dave/statsrelay/statsrelay.go:273 +0x2db
main.main()
        /home/dave/statsrelay/statsrelay.go:341 +0x694

goroutine 19 [finalizer wait]:
runtime.park(0x416570, 0x6283d8, 0x626f09)
        /usr/lib/golang/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x6283d8, 0x626f09)
        /usr/lib/golang/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
        /usr/lib/golang/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
        /usr/lib/golang/src/pkg/runtime/proc.c:1445

goroutine 20 [syscall]:
os/signal.loop()
        /usr/lib/golang/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
        /usr/lib/golang/src/pkg/os/signal/signal_unix.go:27 +0x32

goroutine 21 [IO wait]:
net.runtime_pollWait(0x7fc7fa7be708, 0x72, 0x0)
        /usr/lib/golang/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc20802c060, 0x72, 0x0, 0x0)
        /usr/lib/golang/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc20802c060, 0x0, 0x0)
        /usr/lib/golang/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc20802c000, 0xc208480000, 0x100000, 0x100000, 0x0, 0x7fc7fa7bd2b8, 0xb)
        /usr/lib/golang/src/pkg/net/fd_unix.go:242 +0x34c
net.(*conn).Read(0xc20803a018, 0xc208480000, 0x100000, 0x100000, 0x0, 0x0, 0x0)
        /usr/lib/golang/src/pkg/net/net.go:122 +0xe7
main.readUDP(0x7fffec2bc801, 0x7, 0x2ee1, 0xc208054000)
        /home/dave/statsrelay/statsrelay.go:235 +0x6fa
created by main.runServer
        /home/dave/statsrelay/statsrelay.go:270 +0x132

Any help/pointers would be greatly appreciated! Most likely I've completely missed the boat here and doing something wrong, have been stuck with this issue for a couple hours now!
Thanks!
Dave

Before the return statement on line 79 add a lines like this:
log.Printf("Metric data: %s", string(metric))
log.Printf("Metric name length: %d", length)

This will log for each metric received...so testing only.  But that will show what the misbehaving function is seeing and what the value of length is.  Which should show us a little bit more of the issue.
Is that something you are comfortable with?

Ah, this is the trailing newline that the echo command is adding to the string.  With echo -n this doesn't happen.  Not saying this shouldn't be fixed...but that's the cause.

I believe that should fix things.

Success! Thanks Jack that fixed it, much appreciated :)
2015/05/13 09:04:18 Procssed 1 metrics. Running total: 1. Metrics/sec: 0


Left Navigation for Search

Describe the feature you'd like
With Sinopia adopting a left navigation component for editing resource templates and resource, we would like a similar left panel for search results that would display facets in a similar fashion.
Here is a screen-shot for a design of a left panel but likely will require more UIX design:

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Dropdown filters were implemented instead of left nav for search.


custom dispatchers

Allow retrieving bot utterances from somewhere else but the domain (e.g. a web api or a database)

will be merged as part of the sdk merge

@amn41
I did an alternative solution to a similar problem. In my case, I'm trying to have an Action Answer to provide stored answers in a MongoDB database based on Intents.
The structure of my collection is simple; this is an example:
{["id": "text",       "intent": "text",       "text": "text"]   }
This code is part of my actions.
from pymongo import MongoClient
client = MongoClient('mongodb://localhost:27017')
db = client['local']
class ActionAnswer(Action):
    def name(self):
        return 'action_answer'
def run(self, dispatcher, tracker, domain):
    # define mongoDB collection
    knowledge = db.knowledgeBase
    #Identify the last message intent
    intent = tracker.latest_message.intent['name']
    #find in Knowledge base collection the intent answer
    # you have to treat errors like intent not found and others. I sugest a Try-Exception
    answer = knowledge.find_one({'intent':str(intent)})

    response = """Initial intent is {}. The answer found is:{}""".format(intent, answer["text"])

    dispatcher.utter_message(response)
    return []`


Add better-escape.vim

Add nvim-zh/better-escape.vim as an altentative to max397574/better-escape.nvim. max397574 has an unresolved issue that moves the cursor to the incorrect position, when the dot command is used to repeat an insert command where you used the plugin to exit. nvim-zh version does not have that issue.
https://github.com/nvim-zh/better-escape.vim

I'm okay with this if there's consensus that's the better supported version. You're welcome to open a PR!

I don't know if there is a consensus. Both of the plugins has not been updated in a while. The max397574/better-escape.nvim, actually has a more advanced feature, since it allows you to remap the better-espace sequnce to any function (so it's issue could be solved that way too). The nvim-zh/better-escape.vim on the other hand works properly with the default configuration.

Actually closing this issue since the one you propose is not a Neovim specific plugin.


docs: use installation script to deploy OpenFunction and deprecate the installation guide

update knative, tekton and keda versions to align with hack/deploy.sh, and add verification steps.

Thanks for the PR, but we plan to use only the installation script to deploy OpenFunction and its dependencies in the future, and to deprecate these files.

Maybe you can remove them in this PR. :smile:

Hi @tpiperatgod. sure, I am glad to help to delete the docs in Installation Guide.

Hi @tpiperatgod, I have made the changes to delete the installation guide and update the README.md. Please review it.
Also I have a few suggestions,
For the deploy.sh, I suggest having a fixed version for Tekton rather than the latest, same for the Shipwright.
For the delete.sh, I suggest deleting by kubectl delete -f <component yaml> to align with the deploy.sh, as it will be hard to maintain the list when the dependencies' version upgrade.

Hi @tpiperatgod, I have made the changes to delete the installation guide and update the README.md. Please review it.

Approved it. Thx!

Also I have a few suggestions,
For the deploy.sh, I suggest having a fixed version for Tekton rather than the latest, same for the Shipwright.
For the delete.sh, I suggest deleting by kubectl delete -f <component yaml> to align with the deploy.sh, as it will be hard to maintain the list when the dependencies' version upgrade.

It looks reasonable. What do you think, @wanjunlei?


[$1000] keyboard does not disappear when user tap on flag as offensive option

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

go to any chat
click on composer to open keyboard
click on message which you received from other user
choose flag as offensive option

Expected Result:
should hide the keyboard on flag as offensive option page
Actual Result:
keyboard does not hide
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[x] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.24-4
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/f61f8e82-1f5e-4169-a435-537b04f747a2
https://github.com/Expensify/App/assets/43996225/57c70537-952f-4c2d-995a-42cebeab5312
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685603563452209
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01904186905c128b82
Upwork Job ID:<PHONE_NUMBER>849568768
Last Price Increase: 2023-06-06

Proposal
Please re-state the problem that we are trying to solve in this issue.
keyboard does not disappear when user tap on flag as offensive option
What is the root cause of that problem?
ther is no Keyboard.dismiss() call after tap on flag as offensive option.
What changes do you think we should make in order to solve the problem?
call Keyboard.dismiss() after tap on flag as offensive option. here
What alternative solutions did you explore? (Optional)

I reproduced this. Pretty simple fix.

@abdulrahuman5196 there's a proposal here ready for review already. This is a pretty simple one so I assume that's the way to go.

After some test, I found my proposal root case is not accurate, so I delete it and trying to check it again.

Proposal
Please re-state the problem that we are trying to solve in this issue.
Keyboard does not hide if you select an option of "Flag as offensive" on the received message
What is the root cause of that problem?
In the ContextMenuActions we have not added a condition if the keyboard is opened so we can dismiss, hence if the keyboard is opened it remains open.
https://github.com/Expensify/App/blob/5e5dc7efa0f8f3bc75e88ea194ebe435d3d67617/src/pages/home/report/ContextMenu/ContextMenuActions.js#L306-L312
What changes do you think we should make in order to solve the problem?
There are two solutions we can apply to solve this

We can dismiss the keyboards directly onPress if keyboard is open it will be closed.
We can make use of a hook to store a value of a state if the keyboard is open only than we will dismiss the keyboard.

Solution 1
 onPress: (closePopover, {reportID, reportAction}) => {

            Keyboard.dismiss();
            if (closePopover) {
                hideContextMenu(false, () => Navigation.navigate(ROUTES.getFlagCommentRoute(reportID, reportAction.reportActionID)));
            }

            Navigation.navigate(ROUTES.getFlagCommentRoute(reportID, reportAction.reportActionID));
        },

Solution 2
const [isKeyboardVisible, setKeyboardVisible] = useState(false);

 useEffect(() => {
    const keyboardDidShowListener = Keyboard.addListener(
      'keyboardDidShow',
      () => {
        setKeyboardVisible(true); // or some other action
      }
    );
    const keyboardDidHideListener = Keyboard.addListener(
      'keyboardDidHide',
      () => {
        setKeyboardVisible(false); // or some other action
      }
    );

    return () => {
      keyboardDidHideListener.remove();
      keyboardDidShowListener.remove();
    };
  }, []);

onPress: (closePopover, {reportID, reportAction}) => {

           if(isKeyboardVisible){
            Keyboard.dismiss();
           }
            if (closePopover) {
                hideContextMenu(false, () => Navigation.navigate(ROUTES.getFlagCommentRoute(reportID, reportAction.reportActionID)));
            }

            Navigation.navigate(ROUTES.getFlagCommentRoute(reportID, reportAction.reportActionID));
        },

What alternative solutions did you explore? (Optional)
None

Proposal
Please re-state the problem that we are trying to solve in this issue.
Keyboard does not hide if you select an option of "Flag as offensive" on the received message
What is the root cause of that problem?
In the ContextMenuActions we have not added a condition if the keyboard is opened so we can dismiss, hence if the keyboard is opened it remains open.
https://github.com/Expensify/App/blob/5e5dc7efa0f8f3bc75e88ea194ebe435d3d67617/src/pages/home/report/ContextMenu/ContextMenuActions.js#L306-L312
What changes do you think we should make in order to solve the problem?
There are two solutions we can apply to solve this

We can dismiss the keyboards directly onPress if keyboard is open it will be closed.
We can make use of a hook to store a value of a state if the keyboard is open only than we will dismiss the keyboard.

Solution 1
 onPress: (closePopover, {reportID, reportAction}) => {

            Keyboard.dismiss();
            if (closePopover) {
                hideContextMenu(false, () => Navigation.navigate(ROUTES.getFlagCommentRoute(reportID, reportAction.reportActionID)));
            }

            Navigation.navigate(ROUTES.getFlagCommentRoute(reportID, reportAction.reportActionID));
        },

Solution 2
const [isKeyboardVisible, setKeyboardVisible] = useState(false);

 useEffect(() => {
    const keyboardDidShowListener = Keyboard.addListener(
      'keyboardDidShow',
      () => {
        setKeyboardVisible(true); // or some other action
      }
    );
    const keyboardDidHideListener = Keyboard.addListener(
      'keyboardDidHide',
      () => {
        setKeyboardVisible(false); // or some other action
      }
    );

    return () => {
      keyboardDidHideListener.remove();
      keyboardDidShowListener.remove();
    };
  }, []);

onPress: (closePopover, {reportID, reportAction}) => {

           if(isKeyboardVisible){
            Keyboard.dismiss();
           }
            if (closePopover) {
                hideContextMenu(false, () => Navigation.navigate(ROUTES.getFlagCommentRoute(reportID, reportAction.reportActionID)));
            }

            Navigation.navigate(ROUTES.getFlagCommentRoute(reportID, reportAction.reportActionID));
        },

Since we are using Class base components we can also add property "isKeyboardVisible" in contextAction.renderContent payload
https://github.com/Expensify/App/blob/b77cf55dd6793cbbf76e985ea46b8825c2e923a4/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js#L93-L110
  constructor(props) {
        super(props);
        this.wrapperStyle = getReportActionContextMenuStyles(this.props.isMini, this.props.isSmallScreenWidth);

        this.state = {
            shouldKeepOpen: false,
            isKeyboardVisible :false
        };
        this.keyboardWillShow=null
        this.keyboardWillHide = null
    }
    componentDidMount() {
           this.keyboardWillShow = Keyboard.addListener('keyboardWillShow', ()=>{this.setState({isKeyboardVisible:true})});
           this.keyboardWillHide = Keyboard.addListener('keyboardWillHide', ()=>{this.setState({isKeyboardVisible:false})});
      }

      componentWillUnmount() {
           this.keyboardWillShow?.remove();
           this.keyboardWillHide?.remove();
      }

 const payload = {
                            reportAction: this.props.reportAction,
                            reportID: this.props.reportID,
                            draftMessage: this.props.draftMessage,
                            selection: this.props.selection,
                            close: () => this.setState({shouldKeepOpen: false}),
                            openContextMenu: () => this.setState({shouldKeepOpen: true}),
                            interceptAnonymousUser,
                            isKeyboardVisible
                        };

                        if (contextAction.renderContent) {
                            // make sure that renderContent isn't mixed with unsupported props
                            if (__DEV__ && (contextAction.text != null || contextAction.icon != null)) {
                                throw new Error('Dev error: renderContent() and text/icon cannot be used together.');
                            }

                            return contextAction.renderContent(closePopup, payload);
                        }

What alternative solutions did you explore? (Optional)
None

Updated, added solution for class base components

Proposal
Please re-state the problem that we are trying to solve in this issue.
The Keyboard is not hidden after navigating by selecting the option Flag as offensive of a received message.
What is the root cause of that problem?
In the current Navigation.js -> openDrawer function, Keyboard.dismiss() has already been performed, yet the Keyboard is not closing after navigating to FlagCommentPage. The reason is that the current focused textInputRef's Keyboard component is not accessible in Navigation.js.
If we try to dismiss the keyboard in the FlagCommentPage.js once the page is loaded or else inside the ContextMenueAction.js -> OnPress event, it will give the same behaviour where the Keyboard dismiss won't work as expected.
What changes do you think we should make in order to solve the problem?
In ReportActionItem.js, we trigger showPopover event to get the composer, which contains the Flag as offensive option.
Inside showPopover, before calling the setIsContextMenuActive  function, Keyboard.dismiss() can be performed to solve this issue.
const showPopover = useCallback(
        (event) => {
            // Block menu on the message being Edited or if the report action item has errors
            if (props.draftMessage || !_.isEmpty(props.action.errors)) {
                return;
            }

            setIsContextMenuActive(true);

            const selection = SelectionScraper.getCurrentSelection();
            ReportActionContextMenu.showContextMenu(
                ContextMenuActions.CONTEXT_MENU_TYPES.REPORT_ACTION,
                event,
                selection,
                popoverAnchorRef,
                props.report.reportID,
                props.action,
                props.draftMessage,
                () => {},
                toggleContextMenuFromActiveReportAction,
                ReportUtils.isArchivedRoom(props.report),
                ReportUtils.chatIncludesChronos(props.report),
            );
        },
        [props.draftMessage, props.action, props.report, toggleContextMenuFromActiveReportAction],
    );

Note: Since the textInputRef is available here, the Keyboard dismissal can be done at this point.
What alternative solutions did you explore? (Optional)
None

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/freelancers/~0185e7de771a4f8429

@dinithij the keyboard is already getting hidden underneath when the popover is displayed, you can have a look at the video attached to this issue, also if the user will close the popover without navigating, the keyboard will be there which will be a better user experience, it will only get dismissed when the user will navigate to other screen.

Proposal
Updated

@qasimkhan23 Updated the proposal with a new fix. Now the keyboard will be dismissed only when navigated to the Flag as offensive page. The keyboard is there after selecting another option or closing the popover.

bump @abdulrahuman5196

Will review before EOD

Hmm. I definitely reproduced it on Tuesday. I'm trying again now on the staging app build

Well, now I see a different bug:

go to any chat
click on composer to open keyboard
long press on message you received from other user
notice that the context menu opens briefly and then closes

@dinithij Even it it was reported on a previous version, we should check in latest version if its still reproducible. Since other fixes also could have fixed the mentioned issue.
Or is it something that rarely occures?
@greg-schroeder  I am testing in 1.3.25-8 in the app store release and iphone 12 and I don't find any issue.

Okay, trying again on the new build

I'm not really sure how or where, but I think the most recent build doesn't include either the one listed in the OP or the one I found here
iphone 12 v1.3.26-0

with the latest version keyboard shows for a second on flag as offensive option
https://github.com/Expensify/App/assets/54790231/0c232cfd-ac4d-4a44-8e3b-a346b12d2f6a

@gadhiyamanan  I am not sure if its bug. But anyways @greg-schroeder  could you confirm on this?
But anyways this is not the one this issue initially tried to solve.

I don't really see that as a bug, as the keyboard is dismissed pretty quickly. At any rate, it's not the bug that was brought up here - I'd take that to #expensify-open-source in Slack to report it separately. I'm going to close this issue out.


fhem update mechanism broken due to incorrect size in controls_fhemtabletui.txt

Commit: https://github.com/knowthelist/fhem-tablet-ui/commit/8bc703907cb9682f78f830fc683699b9f5209917#diff-0d4947d75566cda636dde54ce99ac934
size expected: 33342
currently 33187

meanwhile fixed :)
thx


LidarJoin - joins all las files into same spatial extent

First off, thanks for these wonderful Lidar tools!
I am trying to join a number of las files in the projection system SWEREF99 18 00 - EPSG:3011 and what I noticed is a bug where all the points are joined into the exact same spatial extent. It seems the spatial extent first file in the input list is used and all other files are added to this file but not joined adjacent to the file. In other words, adjacent tiles are 'on top' of each other within the same tile extent.
Here is what the original las files look like in QGIS (brown points)

Here is the same files joined using LidarJoin (green points)

Here are both the original las files (brown points) and the joined las file (green points)

I have attached the 2 example lidar files as shown in the images above along with the joined las files called 'merged_test.las' that is output from LidarJoin, I also include a successfully merged las file using LasTools LasMerge (called merged_test_lastools.las)
lidar_files.zip

I see the same issue when I joined 10 small las files into 1.  All 9 files after the first one is added to the extents of the first file.
Thanks


[BEAM-14481] Revert "[BEAM-14294] Worker changes to support trivial Batched DoFns …

…(#17384)"
This reverts commit 1c4418ce463468b4d5a5b53dfa6e9c35470b976b.
We've observed performance regressions in internal pipelines due to this change.
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

@robertwb - Would you be able to review this PR?

Sorry Ahmet this should be reverted since we found a forward fix.
On Thu, May 26, 2022, 7:54 PM Ahmet Altay @.***> wrote:

@robertwb https://github.com/robertwb - Would you be able to review
this PR?
—
Reply to this email directly, view it on GitHub
https://github.com/apache/beam/pull/17693#issuecomment-1139230864, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFEZ3YQXB66UENJI4R3BJ3VMA2MLANCNFSM5WGBJNVA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Update dashboards from spreadsheet

https://www.agileplannerapp.com/boards/15088/cards/9457

test


Gap Analysis for Ceph Object Support

Issue/Feature Description: Gap Analysis for Ceph Object Support.
Why this issue to fixed / feature is needed(give scenarios or use cases): To qualify the support metrics for SODA Multi-Cloud Features for Ceph backend
Tentative Deadline: 06/11/2020
How to reproduce, in case of a bug:
Other Notes /  Environment Information: (Please give the env information, log link or any useful information for this issue)

[ ] Deploy 3 Nodes Ceph Cluster

[ ] Configure Ceph Dashboard

[ ] Configure Object Gateway

Backlog of Iter1


Roadmap in the near future

TODO after Panel 1.4.0:

Replace Ctransformers with LlamaCpp
Replace send() with help
Add instructor streaming example
Fix tests
Add multi modal example

What would be really nice to know is what would be helpful to existing and potential users. How can we figure that out?

Should we spend time on updating langchain examples to latest apis?
Should we spend time on adding more examples and frameworks?
Should we spend time on improving existing examples?
or ?

I was thinking maybe more complex examples; the Chat with GitHub was a good one.


Change version of RxSwift dependency in podspec

Hello,
We are migrating our project from Swift 4.1 to Swift 4.2.
The project and all its dependencies (except ReCaptcha) are using RxSwift 4.4.0. The problem is ReCaptcha 1.4 can not use version 4.4.0 of RxSwift because of rx.dependency 'RxSwift', '~> 4.3.1'
May it be replaced with e.g. rx.dependency 'RxSwift', '~> 4.3'? (ReCaptcha has no conflicts with RxSwift 4.4.0)
Please let me know if I could make PR to update podspec file.

Hi @maxxx777, thanks for the heads up. That seems like a simple enough fix. Do you want to try and tackle that with a PR?

@fjcaetano thanks for the reply, just did the PR.
Please let me know if I should update changelog file.


Actors Basic Interface

Get the basic interface of Actors straight so that different implementations of the classical Actor Model can play together. This refers to the proposal of @tisztamo on Discourse.
To do

[x] reorganize the code to make the basic interface clearer and to prepare it for importing it from ActorInterfaces.Classic,
[x] reach an agreement with @tisztamo on what should go into ActorInterfaces.Classic,
[x] prepare  Actors′ primitives to agree with ActorInterfaces.Classic,
[x] register ActorInterfaces,
[x] import the basic interface from ActorInterfaces,
[x] make Link a subtype of Addr,
[x] declare spawn, send, self and become as ActorInterfaces.Classic methods,
[x] make onmessage a method of ActorInterfaces.Classic.onmessage,
[ ] handle context in the above methods

now I have my dev branch working with the reduced ActorInterfaces.Classic PR1

Now following our discussions on Discourse I did measurements with parametrized and non-parametrized Func:
using BenchmarkTools

f(a, b; c=1, d=1) = a + b + c + d

struct F1{X,Y,Z}
    f::X
    args::Y
    kwargs::Z

    F1(f, args...; kwargs...) = new{typeof(f),typeof(args),typeof(kwargs)}(f,args,kwargs)
end

struct F2
    f
    args::Tuple
    kwargs::Base.Iterators.Pairs

    F2(f, args...; kwargs...) =new(f, args, kwargs)
end

julia> @btime f1 = F1(f, 2, 2, c=2, d=2);
  2.030 ns (0 allocations: 0 bytes)

julia> @btime f2 = F2(f, 2, 2, c=2, d=2);
  7.547 ns (1 allocation: 48 bytes)

julia> @btime f1.f(f1.args...; f1.kwargs...)
  311.602 ns (9 allocations: 432 bytes)
8

julia> @btime f2.f(f2.args...; f2.kwargs...)
  266.178 ns (7 allocations: 224 bytes)
8

Those are the basis to accept a parametric abstract type. But
Check closure as alternative to Func
I have to check if a closure is not much faster than a Func and if I can go with it!

Integrate Closure into Func
after 5 further iterations I came up with the following:
struct F7
    f
    a::Tuple
    kw::Base.Iterators.Pairs
    ϕ::Function

    F7(f, a...; kw...) = new(f, a, kw, (c)->f((a..., c...)...; kw...))
end

(p::F7)(c...) = p.ϕ(c)

julia> myf7 = F7(f, 2, c=2, d=2);

julia> @btime myf7(2)
  28.873 ns (1 allocation: 16 bytes)
8

This is one magnitude faster. I will go with that. Ping-pong times should go down one third with that.

This might be a coding convention, I'm wondering why not
    F7(f, a...; kw...) = new(f, a, kw, (c)->f(a..., c...; kw...))

instead of
    F7(f, a...; kw...) = new(f, a, kw, (c)->f((a..., c...)...; kw...))
``

😃

thanks, that is simpler and works the same. 😄

Now it looks like that we cannot settle the problems involved in ActorInterfaces so quickly ( see PR1 there). Therefore I move this issue out of milestone Usability v0.2 to the next one.
The aside improvements are done and go into #10.

Again moved back to usability v0.2 since agreement is reached with @tisztamo and it looks like ActorInterfaces will be available as registered version for v0.2.

Hi @tisztamo
Currently I am working on integrating the ctx argument into Actors. Currently I am not able it to integrate into send as I would like to. I had to give up send(addr, msg...), which is very convenient. Everything else is not pretty but seems to work.
Now my question. Would it be possible to modify the @ctx macro to inject ctx as a keyword argument in spawn, send, become and self? This would solve all my problems with it.

I think it can be moved to a keyword argument, although it seems that it still has a minimal performance impact, at least when measuring directly:
julia> f_nkw(x, y) = x + y
f_nkw (generic function with 1 method)

julia> f_kw(x; y) = x + y
f_kw (generic function with 1 method)

julia> @btime f_nkw(2, 3)
  0.033 ns (0 allocations: 0 bytes)
5

julia> @btime f_kw(2, y = 3)
  1.282 ns (0 allocations: 0 bytes)
5

ctx could also be moved to the beginning, but I suspect that you are implementing something that is not compatible with the current ActorInterfaces spec. This is the same topic as in our last conversation where I had problem with multi-argument communication. That is not specified in ActorInterfaces, so you do not have to support in the implementation provided by Actors.jl at the time.
If you want multi-argument send calls, which I am almost sure you do, please specify it first in ActorInterfaces, so that we can discuss it and implement in QuickActors to see what needs to change implementation-wise. Possibly not a big deal, but I am not fully sure. By the way I created a poc bridge between Circo and ActorInterfaces: https://github.com/Circo-dev/CircoCore.jl/blob/master/src/classic.jl

Moving it to a keyword argument would be a big relief to me.
Yes, it would enable the possibility to do multi argument spawn, become and send calls, which are very convenient in the Actors interface - as you can see in the examples. I didn't realize before that this was in contradiction with the current @ctx injection strategy, sorry for that.
So for now - struggling as I am with the current strategy - I will leave the ctx branch and thus have only a partial integration of the Classic interface in Actors 0.2. Then I will do as you suggest and specify my proposals in Classic before we move on.
I close this issue for now and open a new one for the next major release of Actors.

Yes, it would enable the possibility to do multi argument spawn, become and send calls, which are very convenient in the Actors interface - as you can see in the examples.

They may be convenient from some viewpoint, but to be honest, I do not see real value in them. Quite the contrary, I think they result in bad programming style.
For example, in your recent ping-ping example:
function (p::Player)(prn, ::Val{:serve}, to)
    send(to, Ball(rand(), p.name, self()))
    send(prn, p.name*" serves ")
end

The reader would ask: What does Val{:serve} means? Is that a command? If yes, then why not create a custom type for it instead of a value type, e.g:
struct Serve
  to
end

function (p::Player)(prn, command::Serve)
...

and send as a single message: send(to, Serve(self()))
This is much more readable, simpler to send, IDEs can help when you forgot the name, you get an error on the call site in case of a typo, and the custom type is local to the module, unlike a value type that is global.
What do you think?

Yes, you are right about that one. It would be better to write send(ping, Serve(pong));. I will update the example. Thank you!
But still I see a good case for multi-argument spawn, become and send as that allows you to give multiple acquaintance or communication arguments to behavior functions.
As for the Val(:something) I am not happy with that either. But the alternative to define a struct for every (maybe empty) message type doesn't make me happy either. I'd like the Erlang/Elixir approach who send often symbols in messages (with pattern matching that is possible).
BTW :something being a constant, Val(:something) is fast. But that does not make me happy either.
Maybe a more elegant way would be to write a macro, which generates message types (empty structs). That could give us a nicer syntax.


Installing CF Cli on Docker Image

I am using the following docker script
#RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo  apt-key add -
#RUN sudo apt-get update
#RUN sudo apt-get install cf-cli
#RUN cf --version
Getting error
Step 6/9 : RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo  apt-key add -
---> Running in 0c290a5cc70b
OK
---> a2905a236e1e
Removing intermediate container 0c290a5cc70b
Step 7/9 : RUN sudo apt-get update
---> Running in 53da9bc1cc44
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:3 http://deb.debian.org jessie-backports InRelease [166 kB]
Get:4 http://deb.debian.org jessie Release.gpg [2373 B]
Get:5 http://deb.debian.org jessie Release [148 kB]
Get:6 http://security.debian.org jessie/updates/main amd64 Packages [509 kB]
Get:7 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Get:8 http://deb.debian.org jessie-backports/main amd64 Packages [1150 kB]
Get:9 http://deb.debian.org jessie/main amd64 Packages [9065 kB]
Fetched 11.3 MB in 9s (1230 kB/s)
Reading package lists...
---> f57e46791f37
Removing intermediate container 53da9bc1cc44
Step 8/9 : RUN sudo apt-get install cf-cli
---> Running in 6fd97ac8c004
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package cf-cli
The command '/bin/sh -c sudo apt-get install cf-cli' returned a non-zero code: 100

Hi @avirkar
I don't see this step in your log:
echo "deb http://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list

That's the step that makes apt-get aware of our CFF repo. If it were missing, I would expect the output you shared. Please check.
Regards,
Dies Koper
CF CLI PM

Hello,
I am also getting same error :
E: Unable to locate package cf-cli
The command '/bin/sh -c apt-get install cf-cli' returned a non-zero code: 100
Can someone please help me with solution ?

I think @reddymadhavi  you should try to execute the step mentioned by @dkoper. That should make it work.

Hi all ,
I am facing same issue , here below is my dockerfile
FROM ubuntu
RUN  apt-get update
&& apt-get install -y wget
RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
RUN  echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
RUN sudo apt-get update
RUN sudo  apt-get install cf-cli
RUN cf --version

Are you sure you are able to run commands with sudo on your VM.


Values in repeater loops stay persistent if no new value is set in new loop

Hi,
if we loop through repeater items values stay persistent in following loops in case the
items in the loop have no "new" value. In my template I have the following code:
{% set awards = post.get_field('repeater__awards') %}
{% if awards %}

	{% for award in awards %}

			{{ award.headline }}

		{% if award.url %}
			{% set award_link_pre = '' %}
			{% set award_link_post = '' %}
		{% endif %}
		{{ award_link_pre }}{{ award_link_post }}
	{% endfor %}

{% endif %}

Lets say the award.url is set in the first loop, if there is no award.url set in the second loop the value from the first loop is used.
I'm not sure if this is worth to be called an issue or if I'm doing wrong in checking for set values?
What version of WordPress, PHP and Timber are you using?
Timber 1.2.4 , WP 4.7.5
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)
Installed Timber Plugin via WP plugins/install

As you said, there's no award.url in the second loop, therefore, award_link_pre will have the value set in the first loop inside the if statement.
do something like this instead:
{% set awards = post.get_field('repeater__awards') %}
{% if awards %}

	{% for award in awards %}

			{{ award.headline }}

		{% if award.url %}
			{% set award_link_pre = '' %}
			{% set award_link_post = '' %}
		{% endif %}

		{% if award.url %}
		    {{ award_link_pre }}
                 {% endif %}

		{% if award.url %}
		    {{ award_link_post }}
                 {% endif %}
	{% endfor %}

{% endif %}

It should work as you intend

Seeing your code I realize that not the award.urlvalue is persistent but the variable I did set (slightly ashamed now ..)
Thanks @luism-s for clarifying that for me


Add the missing settings for the dns section

#107

The 3 sections on the top can also be added, just arrived

I don't know if there is a third option app, check it out


[WIP] Loop Unrolling

Is this still a valid PR?

No, closing. Don't delete the branch(es) though.


Add Charged Up field image

Great work.  I hope you and your team have a great year and thanks for spending so much time on this project in the preseason.


Added in SABnzbd sensor

A new sensor platform for monitoring SABnzbd downloads.  Checks the, current state, download speed, queue size, queue remaining, disk total and disk free.
This just creates state card currently but I think I will make a custom card and more info card later.

Coverage decreased (-1.02%) to 66.08% when pulling 30c78b4054cbc74d383b43b92dd6632bcc6adc36 on jamespcole:nzb-dev into 1f453c9394a5ed912200b4360a1dc97c9fb0a3ad on balloob:dev.

Coverage decreased (-1.29%) to 65.81% when pulling b477514e58827e14c6794548e63bf4def527bd27 on jamespcole:nzb-dev into 1f453c9394a5ed912200b4360a1dc97c9fb0a3ad on balloob:dev.

Thanks!


Add XlsxWriter module (required to export to Excel) to requirements.txt

Steps to reproduce issue: Try export to Excel any query results.
Actual results: You get an error: ModuleNotFoundError: No module named 'xlsxwriter'.
The solution is to add this module to requirements.txt.

I think I'd prefer this as an optional requirement & not forced upon everyone because it's only for that excel download.


got training loss (per epoch) -4.47 at step 40k, and loss is decreasing very slow now, is this normal? or should I decrease my learning rate, which is 5e-5 with batch size of 4

Can you and everyone else share your loss curve for reference?

I can get pretty good sample (good intelligibility with some sharp noise in the backgroud) at step 68k with loss -4.647.  So I guess things are OK.

A good guideline for decreasing the learning rate is when the loss curve plateaus.

@wenyong-h what is your batchsize?

@hdmjdp my batch size is 4.  I'm sorry I can't post the sample,  it's private data

@wenyong-h can your share your config json, such as "seqlen". and your batch_size=4 is on single gpu, total batch_size=4*num_gpus?

Hi,the max p=1 and  min(-log(p))=0 so, why  the loss<0

@jiqizaisikao take a look at https://github.com/NVIDIA/waveglow/issues/1