Access different types of database using the same entity model?

1. How can one use one entity model to connect multiple database provider like mssql, mysql,oracle ,mongodb etc.
2. Also what if we don't have entity defined in our model, is it still possible to perform CRUD operations on database table.
Found this on internet but not helpful ( references ).

PLEASE CHECK

https://www.codeproject.com/Articles/82017/Preparing-an-Entity-Framework-model-for-multi-prov https://www.codeproject.com/Tips/1062375/Entity-Framework-Multi-DB-Support
Please anyone help on this. @ajcvickers  @shanselman @jongalloway @csharpfritz @AndriySvyryd @anpete @lajones @bricelam @moozzyk @maumar

Have you tried asking on StackOverflow.com? The community is typically very responsive and helpful when it comes to questions about how to use Entity Framework.

Had tried earlier no success on stackoverflow.
Let me know if there is better solution to implement this using other than
entityframework
Thanks
On 9 May 2017 22:00, "Brice Lambson"<EMAIL_ADDRESS>wrote:

Have you tried asking on StackOverflow.com http://stackoverflow.com/?
The community is typically very responsive and helpful when it comes to
questions about how to use Entity Framework.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/EntityFramework6/issues/269#issuecomment-300222487,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEA1j9lvlihbYYd3Ju424Ql2G2GJ4pF2ks5r4JS-gaJpZM4NU2Uo
.

@narendrasinghrathore Please try to be more specific about the questions you are asking. I'll try to give you some general answers as best I can with what you asked. For your first question, the approach to take depends on whether you are using the Code First or Database First approaches. (Check out the documentation for more info on these approaches.) With Code First, the application typically builds an EF model per database-provider in a transparent way. Your application code should remain the same, assuming that you only use features supported by all providers. For Database First with an EDMX, you will likely end up building a different EDMX models per database provider. There are ways to use the same CSDL and MSL, and only change the SSDL, but that gets more complicated.
For your second question, you can use the raw SQL APIs to make changes to anything in the database. See Raw SQL Queries in the documentation.

@ajcvickers I am using code first , By passing connection strings (which are stored in web.config )  name to dbcontext  , i am able to connect to mssql or mysql. But generating connection string dynamically doesn't seems to work, as ef dbcontext take mssql connector as defaultConnectionFactory. How i change the providerName. Generating connection string using EntityConnectionStringBuilder is for database first model( i found on internet ). Can you help me on this, how should i generate and change default provider so i can connect to database provider of my choice ( for now mssql, mysql ).
` switch (providerName)
{
case "System.Data.SqlClient":
conn = new SqlConnectionStringBuilder(entityBuilder.ProviderConnectionString)
{
                    UserID = databaseUserId,
                    Password = databasePassword,
                    DataSource = serverName,
                    IntegratedSecurity = false,
                    InitialCatalog = databaseName

                }.ConnectionString;

                break;
            case "MySql.Data.MySqlClient":
                conn = new MySql.Data.MySqlClient.MySqlConnectionStringBuilder(entityBuilder.ProviderConnectionString)
                {
                    Server = serverName,
                    UserID = databaseUserId,
                    Password = databasePassword,
                    Database = databaseName,
                    PersistSecurityInfo = true

                }.ConnectionString;
                break;
            default:
                break;
        }`

  <DbProviderFactories>       <remove invariant="MySql.Data.MySqlClient" />       <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />    ``
 <entityFramework>     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">       <parameters>         <parameter value="mssqllocaldb" />       </parameters>     </defaultConnectionFactory>     <providers>       <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />     <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=c5687fc88969c44d"></provider></providers>   </entityFramework>
   public ModelCodeFist(string connection)             : base(connection)         {         }
Please let me know, if i missed something,
Thanks!

@ajcvickers Any help my friend, for above comment and urls below ?
http://stackoverflow.com/questions/43993918/dynamic-connection-string-for-entity-framework-code-first-for-multiple-database
http://stackoverflow.com/questions/43998212/dynamically-change-update-setdefaultconnectionfactory-and-setproviderservices-en


Request : Move to caddy

Hi @anthonynsimon
I was wondering how long do you wish to rely upon nginx - wouldn't caddy - a native go-lang solution be more apt for the project ?
Awesome work on this btw! :+1:

Hi Abhinav, thanks for the suggestion! There would be some advantages of
using caddy for this project, like super easy HTTPS. If you'd like to give
it a try, contributors are more than welcome to take part in the project :)
On Fri, 3 Nov 2017 at 09:13 Abhinav Sharma<EMAIL_ADDRESS>wrote:

Hi @anthonynsimon https://github.com/anthonynsimon
I was wondering how long do you wish to rely upon nginx - wouldn't caddy

a native go-lang solution be more apt for the project ?

Awesome work on this btw! 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/anthonynsimon/parrot/issues/72, or mute the thread
https://github.com/notifications/unsubscribe-auth/AMoyBy7GfN_qRc95aCLKSaWuoPnSEskLks5systBgaJpZM4QQwyF
.

--
Anthony Najjar Simon
Backend Engineer
http://www.stylight.com/
T | +49 (0) 89 - 1222 895 - 0
F | +49 (0) 89 - 1222 895 - 48
E |<EMAIL_ADDRESS>STYLIGHT.COM http://www.stylight.com/
BLOG.STYLIGHT.COM http://blog.stylight.com/
Facebook https://www.facebook.com/STYLIGHTDeutschland   Twitter
https://twitter.com/stylight   Instagram http://instagram.com/stylight
Stylight GmbH, Nymphenburger Str. 86, 80636 München, Deutschland
Geschäftsführer: Maximilian Müller Prokuristen: Dan Ackerson, Andreas
Wanderer
Handelsregister Abteilung B 176416, Amtsgericht München

Noted :)
Feel free to close this "issue" though.


Restructure

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
✔

Just restructured project structure as additional template

Could you also replace annotation with attributes in entities?

Why did we decide that the demo should be implemented via cqrs?
It seems to me that this is a complication for the demo. Can I make a separate template for this?

It can live in a separated branch

@xepozz is it possible to resolve conflicts?

I hope yes 😄

Done.

But there's no bus and I don't see it coming. Do we need an abstraction that we aren't going to use?

BTW, @samdark thanks to queue integration it's possible now.


Use releases

Hi, it would be nice if you could use releases instead of just tags. That would allow me to receive notifications since I'm currently maintaining the port to Alpine Linux.

How do I "use releases"?

Looks like you figured it out, thank you!


Documentation: SVGs hard to read in dark mode

Issues: #187

Definition of Done
The PR shall be merged only if all items mentioned in CONTRIBUTING.md have been followed. In case an item is not applicable as described, please provide a short explanation in the description.

[x] All steps in CONTRIBUTING.md have been handled

Using a white background is fine for me. For the image format I prefer png rather than svg. SVGs are not rendered equally on all platforms. In the past we had some problems with missing fonts which were used in SVGs but not available on certain platforms.
In addition to the white background I would also use a border of 10 (in Draw.io: File - Properties - Border Width).

There are still some more mermaid titles on the "Control Interface" page that are hard to read in dark mode. Not sure how that can be fixed.

I have investigated the topic with titles in diagrams created by mermaid. This seems to be a bug in mermaid. I found out similar bug ticket about it:
https://github.com/laurent22/joplin/issues/4939
The issue had been closed due to inactivity. There are more issues in are "mermaid and colors in the dark mode". For example:
https://forum.obsidian.md/t/mermaid-diagrams-with-unreadable-text-color/11155/4
https://forum.obsidian.md/t/text-colors-for-mermaid-mindmap-graph-are-unreadable-in-dark-mode/68674
Obviously colors and readability is a pain point in mermaid. The best option would probably be to create the title my markdown outside of mermaid. This would be consistent with other non-mermaid diagrams and (honestly speaking) I do not want to invest more hours and days to this topic.

All findings have been fixed. The review can continue.


windows下无法正常编译安装

pip install bmtrain
Collecting bmtrain
Using cached bmtrain-0.1.8.post1.tar.gz (48 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\chenliyu\anaconda3\envs\cpm\lib\site-packages (from bmtrain) (1.21.6)
Building wheels for collected packages: bmtrain
Building wheel for bmtrain (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [55 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\backward.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\block_layer.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\checkpointing.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\debug.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\global_var.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\init.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\layer.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\parameter.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\param_init.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\store.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\synchronize.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\utils.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\wrapper.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain_init_.py -> build\lib.win-amd64-cpython-37\bmtrain
creating build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark\all_gather.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark\reduce_scatter.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark\shape.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark\utils.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
creating build\lib.win-amd64-cpython-37\bmtrain\distributed
copying bmtrain\distributed\ops.py -> build\lib.win-amd64-cpython-37\bmtrain\distributed
copying bmtrain\distributed_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\distributed
creating build\lib.win-amd64-cpython-37\bmtrain\inspect
copying bmtrain\inspect\format.py -> build\lib.win-amd64-cpython-37\bmtrain\inspect
copying bmtrain\inspect\model.py -> build\lib.win-amd64-cpython-37\bmtrain\inspect
copying bmtrain\inspect\tensor.py -> build\lib.win-amd64-cpython-37\bmtrain\inspect
copying bmtrain\inspect_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\inspect
creating build\lib.win-amd64-cpython-37\bmtrain\loss
copying bmtrain\loss\cross_entropy.py -> build\lib.win-amd64-cpython-37\bmtrain\loss
copying bmtrain\loss_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\loss
creating build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\cosine.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\exponential.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\linear.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\noam.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\no_decay.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\warmup.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
creating build\lib.win-amd64-cpython-37\bmtrain\nccl
copying bmtrain\nccl\enums.py -> build\lib.win-amd64-cpython-37\bmtrain\nccl
copying bmtrain\nccl_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\nccl
creating build\lib.win-amd64-cpython-37\bmtrain\optim
copying bmtrain\optim\adam.py -> build\lib.win-amd64-cpython-37\bmtrain\optim
copying bmtrain\optim\adam_offload.py -> build\lib.win-amd64-cpython-37\bmtrain\optim
copying bmtrain\optim\clip_grad.py -> build\lib.win-amd64-cpython-37\bmtrain\optim
copying bmtrain\optim_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\optim
running build_ext
error: [WinError 2] 系统找不到指定的文件。
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bmtrain
Running setup.py clean for bmtrain
Failed to build bmtrain
Installing collected packages: bmtrain
Running setup.py install for bmtrain ... error
error: subprocess-exited-with-error
× Running setup.py install for bmtrain did not run successfully.
│ exit code: 1
╰─> [57 lines of output]
running install
C:\Users\chenliyu\anaconda3\envs\cpm\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\backward.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\block_layer.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\checkpointing.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\debug.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\global_var.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\init.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\layer.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\parameter.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\param_init.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\store.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\synchronize.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\utils.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain\wrapper.py -> build\lib.win-amd64-cpython-37\bmtrain
copying bmtrain_init_.py -> build\lib.win-amd64-cpython-37\bmtrain
creating build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark\all_gather.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark\reduce_scatter.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark\shape.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark\utils.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
copying bmtrain\benchmark_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\benchmark
creating build\lib.win-amd64-cpython-37\bmtrain\distributed
copying bmtrain\distributed\ops.py -> build\lib.win-amd64-cpython-37\bmtrain\distributed
copying bmtrain\distributed_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\distributed
creating build\lib.win-amd64-cpython-37\bmtrain\inspect
copying bmtrain\inspect\format.py -> build\lib.win-amd64-cpython-37\bmtrain\inspect
copying bmtrain\inspect\model.py -> build\lib.win-amd64-cpython-37\bmtrain\inspect
copying bmtrain\inspect\tensor.py -> build\lib.win-amd64-cpython-37\bmtrain\inspect
copying bmtrain\inspect_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\inspect
creating build\lib.win-amd64-cpython-37\bmtrain\loss
copying bmtrain\loss\cross_entropy.py -> build\lib.win-amd64-cpython-37\bmtrain\loss
copying bmtrain\loss_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\loss
creating build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\cosine.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\exponential.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\linear.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\noam.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\no_decay.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler\warmup.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
copying bmtrain\lr_scheduler_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\lr_scheduler
creating build\lib.win-amd64-cpython-37\bmtrain\nccl
copying bmtrain\nccl\enums.py -> build\lib.win-amd64-cpython-37\bmtrain\nccl
copying bmtrain\nccl_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\nccl
creating build\lib.win-amd64-cpython-37\bmtrain\optim
copying bmtrain\optim\adam.py -> build\lib.win-amd64-cpython-37\bmtrain\optim
copying bmtrain\optim\adam_offload.py -> build\lib.win-amd64-cpython-37\bmtrain\optim
copying bmtrain\optim\clip_grad.py -> build\lib.win-amd64-cpython-37\bmtrain\optim
copying bmtrain\optim_init_.py -> build\lib.win-amd64-cpython-37\bmtrain\optim
running build_ext
error: [WinError 2] 系统找不到指定的文件。
已经将cl加入环境变量，python版本为3.7，已更新vc++build tool

done

I meet same problem. can you tell me why?

I meet same problem. can you tell me why?

It works fine under ubuntu, you need to make sure you have the full nvidia cuda installed not anaconda codatoolkit, and configure the correct environment variables, the compilation fails because the cuda source cannot be found


Add 32768 for restore with Firebird 4

Add 32768 for restore with Firebird 4.

Hi @nLeonardt95
Could you please retest this issue on FlameRobin <IP_ADDRESS> and close it if it is no longer reproducible?
Thanks in advance,
Luciano


Ensure bookmarks are loaded for elfeed-search

According to the docstring of bookmark-jump:
You may have a problem using this function if the value of
variable ‘bookmark-alist’ is nil. If that happens, you need to
load in some bookmarks. See help on function ‘bookmark-load’ for
more about this.
So e.g. binding a key to jump to an elfeed bookmark will cause an
error without first loading bookmarks.

Thanks, I didn't know about this. Merged.
IMHO, it should really be bookmark's responsibility to call this
function itself when it's needed rather than produce an error. In
contrast, Elfeed has an equivalent function, elfeed-db-ensure. It's
called automatically at the last moment, just before the database is
needed.

Agreed. It seems a bit odd that bookmark-jump has the disclaimer rather than just call bookmark-maybe-load-default-file itself...
Thanks for the merge!


Preview cohesion summary improvements

Following #1180, some icons under the ‘Preview cohesion’ summary section are currently chosen at random. Would it not be even more useful if icons were selected based on the name of the files added in the PR?
So for example, if a PR is opened with a new text-something icon, the comparison icons that show up under ‘Preview cohesion’ would be made up—at least in part—of other text-* icons?
Also, maybe at least one base shape icon should always be included (i.e one square-*, one circle-* etc…)
What do we think?

We really should be careful here to not create cohesiveness within groups but not with the whole icon set as a whole.
But if we can get @karsa-mistmere on board to get rid of all the radii between 2px or 0.5px I wouldn't be so worried.

We should be careful to not create cohesiveness within groups instead of the whole icon set.

If we can get @karsa-mistmere on board to get rid of all the radii between 2px and 0.5px

@jguddas I think as we have seen in many cases, less than the standard 2px radius can work better. Maybe we could have some kind of ‘ratio’ rule/guideline, where we say if the shape in question (width and/or height) is less than x, then radius should be either 2px, 1px, or .5px… cc: @karsa-mistmere @ericfennis


Remove PIL dependence in Image.save

The PIL dependency for turicreate.Image.save is easily avoidable, since we link with libpng/libjpeg and have a function on the C++ side already that save an image.
See more info here: https://github.com/apple/turicreate/pull/709#issuecomment-398225026

Dupe of #380.


Use fancier server builder generics

This change modifies how we're using generics in mock server builders so we don't have to override everything in subclasses of BaseHttp2ServerBuilder for type safety. Now, this definitely comes with some tradeoffs (see https://stackoverflow.com/questions/38099005/how-to-return-this-in-the-generic-class for additional discussion). The main problem is that we're using an unsafe cast in BaseHttp2ServerBuilder (return (T) this), and careless subclassers could break things. That said, I think it's unlikely that folks are subclassing server builders and, if they are and do something weird that causes casting problems, well maybe they should fix that.
I'm very open to feedback on these ideas, but I think the gains in simplicity and reduced repetition justify the costs (primarily risk of making a mistake in an improbable use case).

…but then again, this also appears to be very confusing to javadoc. If I can't get that to work out as expected, then I'll back off on this idea and stick to the repetitive approach.


1.15.6 fails to build

Summary
Fails to build via go.mod:
# github.com/kbinani/screenshot
vendor/github.com/kbinani/screenshot/screenshot.go:11:10: undefined: GetDisplayBounds
vendor/github.com/kbinani/screenshot/screenshot.go:17:9: undefined: Capture

and stops at:
<snip>
github.com/gopasspw/gopass/internal/hook
github.com/gopasspw/gopass/internal/store/root
github.com/gopasspw/gopass/internal/create
*** Error code 1

Environment
FreeBSD 13.2 amd64 / go 1.20

We did have some issues and I had to re-tag 1.15.6. I'll double check later if all refs were correctly pushed.
I'm sorry for the trouble, but the correct tag should build correctly on FreeBSD.

I guess maybe the proper way would be to retract v1.15.6 and release v1.15.7 instead to make sure to avoid any such issues?

Yes, we should have a 1.15.7 once we are sure that we can avoid such a hickup.
But I still wonder why they were seeing this issue.

Yes, correct. Updated my comment :)
Does the port use automation?
I wonder if it tried to use the broken tag right after it was pushed.
The hash currently pointed at by the v1.15.6 tag should build on FreeBSD, I think.

Port is using GO_MODULE= github.com/gopasspw/gopass that fetches deps auto for a specific version.

Does the port use automation? I wonder if it tried to use the broken tag right after it was pushed. The hash currently pointed at by the v1.15.6 tag should build on FreeBSD, I think.

Port is fetching:
SHA256 (go/security_gopass/gopass-v1.15.6/v1.15.6.mod) = af319dd543d55e1f1c300fd6ce60503bd4a2587159b0fa1807e9b9af5280e320
Same error.

Hello,
I've found a way to get go.mod from a specifix tag (https://github.com/gopasspw/gopass/commit/8c666a93d844015cca992be0ab0c39992bb096ed) to test build.
A newbie question: How do I get a proper yyyymmddhhmmss modversion tag?
GO_MODULE=<EMAIL_ADDRESS>GO_MODULE=<EMAIL_ADDRESS>Thanks

Using go mod tidy usually

Good news!
v1.15.6-3-g8c666a93 [1] fixes build using go module method.
GO_MODULE=<EMAIL_ADDRESS>(<PHONE_NUMBER>0807 TS is from commit 8c666a93
Date:   Tue Aug 1 10:08:07 2023 +0200
[1] git describe --tags 8c666a93
Thanks all!


wide images break page wrap

Issues
I updated the image for "How OpenCilk runs your program" in #91 and it essentially needs the full width of the page to display properly. This exposes a problem with the img shortcode (of #13) because {% img ."file", "1200" %} will always take width 1200. As you adjust the screen to narrower widths, no text wrapping occurs, because it's keeping the width at 1200 and expecting you to use horizontal scroll to see the hidden content.
Improvements
Wide images should be displayed with something that depends on the width of the browser window. Up to a point, the image needs to shrink so that the rest of the page content can wrap.

It seems that I have to choose between CSS width and max-width, so not sure how to get exactly the resizing behavior I hoped for. But if the image is pre-sized, then max-width: 100% allows it to shrink as needed and prevents it from ever growing beyond that size (see here). So we might create a new shortcode for wide images like so
{% imgFull, "/img/img-name.png" %}
That would center the image using its original size, with max-width: 100%.

We don't even need to create a new shortcode. Simply size the image and then say
{% img "/img/img-name.png", "100%" %}
That makes max-width: 100% and it works.


Gdrive client wrong schema url

this makes the config data conflicts with sonic client config data

Branch: development_hotfix_552

pending on review to merge the created PR


How to portforward in VBoxManage?

I used to be able to do this with boot2docker on Mac OS X:
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port8000,tcp,,8000,,8000"
I run Django in a docker container via docker-compose, and I use the above command whenever I need to do a clean initial setup of my project so that instead of having to always go to the VM's IP at port 8000, I can just go to localhost:8000. However, when trying to do the same sort of thing using docker-machine, I get errors. Let's say I do:
docker-machine create --driver virtualbox dev
VBoxManage modifyvm "dev" --natpf1 "tcp-port8000,tcp,,8000,,8000"

Then I get this error:
VBoxManage: error: The machine 'dev' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports`
VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 492 of file VBoxManageModifyVM.cpp

What's the proper way to do what I used to be able to do with the boot2docker-vm?

VBoxManage modifyvm is for when the VM is off. Use VBoxManage controlvm when it is running.
vboxmanage controlvm dev natpf1 "django,tcp,<IP_ADDRESS>,8000,,8000"

Yeah, that's what I also just found out. I'm not sure of all the differences between boot2docker and docker-machine but apparently the create command has the VM running already, whereas the old boot2docker init command apparently didn't.


Build 3.3a for IBMz/s390x

Bump build number to kick this off.

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_faj3exuyu8/clone/recipe/meta.yaml:29: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_faj3exuyu8/clone/recipe/meta.yaml:30: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_faj3exuyu8/clone/recipe/meta.yaml:30: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_faj3exuyu8/clone/recipe/meta.yaml:32: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
WARNING: /tmp/abs_faj3exuyu8/clone/recipe/meta.yaml:52: missing_description: The recipe is missing a description
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_656zia879v/clone/recipe/meta.yaml:29: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_656zia879v/clone/recipe/meta.yaml:30: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_656zia879v/clone/recipe/meta.yaml:30: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_656zia879v/clone/recipe/meta.yaml:32: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
WARNING: /tmp/abs_656zia879v/clone/recipe/meta.yaml:52: missing_description: The recipe is missing a description
Errors were found


error: undefined symbol: toml::abi_parse_ex::parse(

This toml++ HEAD from yesterday.  I am very new to toml++ so likely this is my mistake somewhere.  I have been building with the same configuration a long time previously without  toml++.
Environment
Clang 10 -c++17, 2a
Target arch (e.g. x64):
x64
Exceptions enabled:
Yes, by default
Relevant toml++ configuration customizations:
hpp:
#define TOML_ALL_INLINE 0
#define TOML_API attribute ((visibility("default")))
#include <toml.hpp>
cpp:
#include <header-that-includes-toml.hpp>
#define TOML_IMPLEMENTATION
#include <toml.hpp>
Relevant compilation flags:
The visibility options are included with:
clang++10 -Icore/nail/9f7356c@@nail@sha -Icore/nail -I../core/nail -Icore -I../core -I../subprojects/optionparser/include -I../subprojects/pcg/include -I../subprojects/tomlplusplus/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++17 -O3 -fstack-protector -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MQ 'core/nail/9f7356c<EMAIL_ADDRESS>-MF 'core/nail/9f7356c<EMAIL_ADDRESS>-o 'core/nail/9f7356c<EMAIL_ADDRESS>-c ../core/nail/config/manager.cpp
Describe the bug
I'm not getting any toml:: symbols at all from the cpp file:
nm -C config_manager.cpp.o | grep toml
0000000000000000 W nail::config::manager_impl::register_toml_handler(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (toml::node*)>)
U nail::config::toml_processor::make(nail::config::command_line_processor&)
That's my own symbol.  And linking the shared lib from the file produces:
error: undefined symbol: toml::abi_parse_ex::parse([string_view, string_view])
And then goes on to complain about a missing key function but I guess that would toml::parse().
Apparently there's an interaction with inlines/visibility that I don't understand.

Ah, by the looks of it you're defining TOML_IMPLEMENTATION too late. It should be defined before anything that includes toml.hpp (even transitively). See the example in the docs here.

@theophrastus since this is functionality already known to work (it's included in the test suite) ill close it as 'not a bug'. The information above should be sufficient to get it working, though if you have trouble with it let me know and I'll try to help further.


Trees: add AnonymousLambda

Wraps types referring to AnonymousParam. Helps with #2807.

any updates on this? anything i should change?


style(frontend): Make Token USD balance opaque always

Motivation
According to design, the USD balance in the transaction page should always be opaque, independently if null or not.

[OISY-62]


LFS-302: Implement .simple.json

See https://phenotips.atlassian.net/browse/LFS-302 for detailed specifications.
Suppose a Form is created and it is being viewed/edited at /content.html/Forms/abcdef-123456. To see the .simple.json serialization of this form, go to /Forms/abcdef-123456.simple.json

No, still 1.8
On Tue, Jun 2, 2020, 10:15 allasm<EMAIL_ADDRESS>wrote:

@allasm commented on this pull request.
In
modules/utils/src/main/java/ca/sickkids/ccm/lfs/commons/internal/ResourceToJsonAdapterFactory.java
https://github.com/ccmbioinfo/lfs/pull/196#discussion_r433911335:

@@ -142,6 +211,155 @@ private JsonObjectBuilder adapt(final Node node) throws RepositoryException
return null;
}

/*

* Filters which JCR properties are added to a lfs/Form when it is

* serialized to JSON under .simple.json

*/

private void addSimpleFormProperty(final JsonObjectBuilder ob, final Property prop) throws RepositoryException
{

   final Set<String> props = Set.of(

Our current requirements are "Java 1.8+", however Set.of was only
introduced in Java 9. Not a huge deal, but are we officially re-targeting
Java 9 now? @sdumitriu https://github.com/sdumitriu
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ccmbioinfo/lfs/pull/196#pullrequestreview-422723943,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAVUV2MKLIUHSVYPTTKRODRUUCR3ANCNFSM4M3UF57A
.


Extended GitLab Publishing for self managed instances #249

Issue: https://github.com/touchlab/KMMBridge/issues/249
Summary
The GitLab domain in the Maven config is fixed to gitlab.com and can't be configured for self-hosted e.g. gitlab.companyname.com
Fix

The GitLab domain can now be specified by optionally setting the GITLAB_DOMAIN property which is necessary if you need to publish to a self-managed instance.
Corrected minor casing typos.
Added logging of exception for easier problem diagnosis when there's an issue with the GitLab repo settings.

Testing

./gradlew test
./gradlew build
manual testing

@kpgalligan Appreciate this hasn't been in review very long, but given the size of it, if you or one of the other repo admins are able to take a quick look it'd be greatly appreciated. Thanks! 🙏

@findjigar Would you be able to take a review on this? Thanks

Would anyone else be able to take a review on this please, perhaps @samhill303? Thanks


Are the SET commands unchanged?

This more of a question than an issue:
I see the EXO V2 cmdlets are all GET verbs. Are the cmdlets for updating mailboxes still the same? Will they be updated in the future as part of this project?
Thank you.

@officedocsbot assign @yogkumgit

Hi @tmunro55, thank you for your feedback.
The Exchange Online PowerShell V2 module is currently in Preview. If you have any feedback, concerns, or are facing any issues with the EXO V2 module, contact us at exocmdletpreview[at]service[dot]microsoft[dot]com (email address intentionally obscured to help prevent spam).

@dariomws  Thank you very much for the contribution and sharing this explanation. @tmunro55
Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Strategy for downloading private git repositories w/ sheepdoge install

Issue
Currently, there is not great support for downloading private git repositories through sheepdoge install. The user must manually enter a username/password, which wouldn't work with, for example, cron. Determine a method of downloading private git repositories.
Impl
Not a lot of ideas, just some questions:

Is it safe to assume that the user has an ssh key?
Can we securely store the username and password somewhere, and then manually enter them with sheepdoge install when prompted?
Should sheepdoge install not be part of the cron process?

The git credential cache might be helpful.

I think that, at least in the short term, I will presume the user has ssh access to wherever the repo is hosted, or that it is a public repo.


Feature request - Display directory service groups being used by configuration policies, iOS apps and computer policies

My shop is planning to migrate from using LDAP to using Azure AD for directory services. We use directory service users and groups (now with LDAP and Azure AD in the future) for the following purposes:

Computer policy scoping
Mobile configuration profile scoping
Computer configuration profile scoping
Mobile app scoping

It would be very helpful to us (and hopefully others in the same situation) if we could see:
A. Which policies, profiles and mobile apps use directory service groups as part of their scoping.
B. What directory service groups are used by individual policies, profiles and mobile apps.
Additionally, it would be helpful to see which LDAP / Azure extension attributes are being used for criteria by smart groups, advanced mobile and advanced computer searches.
Thank you.

v2.0.0 should address some (all?) of these.


updateRobotState fail callback isn't triggering?

Hello,
i'm trying to use your updateRobotState method. But i have the issue that when the robot is offline the fail callback in updateRobotState isn't triggering. I get the response from the nucleo API:
D/JSON output from POST https://nucleo.neatocloud.com:4443: {"message":"Could not find robot_serial for specified vendor_name"}
D/NucleoBaseClient: RESPONSE HTTP CODE : 404
or
D/JSON output from POST https://nucleo.neatocloud.com:4443: {"message":"Timeout waiting a response from robot"}
D/NucleoBaseClient: RESPONSE HTTP CODE : 504
If the Robot is online i recieve a RESPONSE HTTP CODE : 200 and the done callback is triggering properly.
Isn't in asyncCall.executeCall the fail method missing that get's triggert when executeCall calls callback.fail?
In your docs it says to updateRobotState.fail          //the robot maybe OFFLINE or in ERROR state         //check the NeatoError for details but this never occurs. Is it a Bug or just a Bug in my system?

Hi,
sorry for the late reply. You are right the fail callback is never called. I fixed it in the 0.8.1 version. You can install it using Gradle as before. Thank you for find this bug.
Best,
Marco


Add Column for Column-Level Visibility in Data Quality Framework Result Table

Add Column for Column-Level Visibility in Data Quality Framework Result Table
Details
1. Purpose of the Enhancement

To improve data observability by explicitly linking results to individual columns.
To provide better traceability and aid in diagnosing data quality issues at a granular level.
To support detailed reporting and actionable insights for data quality assessments.

2. Key Changes to be  Made

Schema Update:

Modified the schema of the result table to include a new column, e.g., affected_column_name.
Ensured backward compatibility by verifying the update does not affect existing workflows.

Code Updates:

Adjusted the data validation logic to capture and populate the affected_column_name field for each rule check.
Schema Evolution with AutoMerge:

Enabled Delta Lake's spark.databricks.delta.schema.autoMerge.enabled configuration to allow schema evolution during write operations.
Modified the data quality framework to include the affected_column_name field dynamically if not already present.

PR associated with this enhancement.https://github.com/Nike-Inc/spark-expectations/pull/125


fix typo and arguments convention

@ferantivero : Thanks for your contribution! The author, @jimdial, has been notified to review your proposed change.

@ferantivero Thanks for catching! #sign-off


Extended text truncated

Hi, I hope this is ok to start an issue...
The plugin for HA is brilliant.  However, there is one disappointing thing: Most of the time the Extended Text 1, Extended Text 2 etc fields are truncated with a ... at the end of the field if the field value exceeds a certain length (I presume).  Is that a HA limitation of the sensor field size? or is it being cut-off from within the plugin after data retrieval?  Is there a way to fix it please?

The full extended text is being correctly received by the integration. It appears to be home assistant that is truncating the sensor state when displaying it. Even templating with {{states.sensor.kenthurst_extended_text_1.state}} was it again truncated.
You can, however, access the full text by accessing the {{states.sensor.kenthurst_extended_text_1.attributes.state}} instead.

There is a 256 character limit for states in HA but no limit for attributes

Thank you!!


Ext_authz server_uri.uri for http_service

Today, ext_authz http_service filter configuration requires the property server_uri.uri to be filled but it does not seem to be used although envoy will fail to boot up if it does not have at least the string "http".
I was expecting that the filter would at least use that information to connect to the correct upstream authentication service and send the correct hostname for my load balancer but instead it seems to only use the cluster information and then it sends the original host in this request.
Is this supposition correct? Or am I missing something?

@gsagula

@pedro-tramontin, your supposition is correct. The use of URI was more of a suggestion in the initial design. IRC, the idea was that only use the URI object in the future. I think we could make it optional an, of course, functional when defined. @mattklein123 can you tag this as an issue and assign it to me, please? Thanks!

/assign gsagula

@gsagula, in that case, how to send the authorization request to URI something like this
http://host/api/authorize

I am also facing this issue, any updates on this? Can't we use http_service in ext_authz filter at all?

Hello. Facing the same problem here. Of course in case of your own auth server you can make do by doing something like this in your code (for C# for example), just add a terminal middleware like so in your startup
app.Run((context) =>
{
    // actually implement checking logic here and set status code based on request data
    context.Response.StatusCode = 200;
    return Task.CompletedTask;
});

but having the auth request going to the uri specified would have been more convenient of course


Sortable & Returning Sorted Order?

I see suggestions to use the jQuery UI sortable component to make the selected items sortable, but is there any way to have this order returned when the value of the field is requested?

I see there is a PR request for this https://github.com/lou/multi-select/pull/221


App closes/crashes when pasting username or password on login

Tested on a Galaxy S9.
With the newest version 1.1.1, long pressing (copy/paste) either the username or password input-field of the login-view closes/crashes the app. Pasting the URL right before works like a charm.
It was still working in 1.0.0.
Pasting is therefore impossible, which makes it quite difficult to enter long and complex passwords.

Also when pasting 2FA code from authenticator.
I've had to re-write it, as it crashed app 3 times when pasting.

I do have kind of the same issue. Mine is related to when copying or pasting an entity from States page over to the Lovelace raw config. The app crashes on both, when trying to copy from or when trying to paste it to Lovelace.

I have the same issue.

Ditto

Reverting commit https://github.com/home-assistant/home-assistant-android/commit/3bc7fdaa11e4a211172cf0930cc399c25b4c83df resolves the issue.

@robbiet480 do you know enough Kotlin to be able to fix this, or maybe we should revert it for activities that have webviews?

An alternative maybe to instead use crowdin that does not require using a closed source library at all https://crowdin.com/page/open-source-project-setup-request

This is still happening for me on 2 different devices. I have the issue on Oneplus 6T and Samsung galaxy tab s5e. Both are running the latest version 1.3.1 on Android 9, and I am running HA 0.103.3.
The app crashes when trying to long press the password field at login.

Please open a new issue as this one has been resolved. Make sure to include logs.


Does it work with motion sensor?

Thanks for you hard work

I understand that some of the Tuya devices, like sensors, just send to the Tuya Cloud and do not broadcast on the local network.  If you see the motion sensor when doing a scan (e.g. python -m tinytuya scan) then it is highly likely that you can use tinytuya to monitor it.  Otherwise, you would need to use the wizard to get the local key AND somehow figure out its IP address.  I don't have any sensors to test so let me know if you are able to get it to work.

I understand that some of the Tuya devices, like sensors, just send to the Tuya Cloud and do not broadcast on the local network.  If you see the motion sensor when doing a scan (e.g. python -m tinytuya scan) then it is highly likely that you can use tinytuya to monitor it.  Otherwise, you would need to use the wizard to get the local key AND somehow figure out its IP address.  I don't have any sensors to test so let me know if you are able to get it to work.

Hi @jasonacox, thanks for replying.
I'll try it this week and get back to you with my results so that you can add them to the library
Regards
Esteban

Hi @jasonacox, thanks for replying.
I'll try it this week and get back to you with my results so that you can add them to the library
Regards
Esteban

Hi @jasonacox,
I have the IP, local key (obtained from https://iot.tuya.com/cloud/appinfo/cappId/explorer using get device details) and the device id and I tried to reversed engineer using Wireshark without success yet.
The scan tool doesn't see it, however I was able to get the initial ip from my Cisco router. A device appears and disappears when it find a move in the sensor: ESP_C3FE07.
Using sudo nmap -sU  -p6668 <IP_ADDRESS>/24 I was able to validate that 6666, 6667 and 6668 are open momentarily for a few seconds every now and then. In wireshark I don't see any packages with 'udp.port == 6666 or udp.port == 6667'.
Do you have the documentation of where the cloud api is located so that I can filter the packages in wireshark?

Hi @jasonacox,
I have the IP, local key (obtained from https://iot.tuya.com/cloud/appinfo/cappId/explorer using get device details) and the device id and I tried to reversed engineer using Wireshark without success yet.
The scan tool doesn't see it, however I was able to get the initial ip from my Cisco router. A device appears and disappears when it find a move in the sensor: ESP_C3FE07.
Using sudo nmap -sU  -p6668 <IP_ADDRESS>/24 I was able to validate that 6666, 6667 and 6668 are open momentarily for a few seconds every now and then. In wireshark I don't see any packages with 'udp.port == 6666 or udp.port == 6667'.
Do you have the documentation of where the cloud api is located so that I can filter the packages in wireshark?

I suspect the motion sensor is designed to operate in low power mode which means it shuts down the WiFi subsystem when not needed.  As with all Tuya devices, they are designed to interact with the TuyaCloud.  The sensor would only need to send something if state changes (motion in this case).  With that in mind, if it is disabling WiFi or the websocket to save power, it may not be possible to access it locally.
Can you post a link to the sensor you have?  Also, does your motion sensor have a separate powered bridge/gateway device?
One random thought, if the sensor only comes online when it detect motion, or every 5m or so to update the Cloud, we could construct a constant loop service that continually tries to reach the device and pull state.  It may respond with motion data for that brief moment it is updating the cloud.

Hi @jasonacox ,
The sensor is this one: https://expo.tuya.com/product/322368
I did what you mentioned and pull the state from the Cloud system every 10 seconds and it worked fine. However, I have to avoid using this solution for 2 reasons:

They sensors are battery hungry
The sensor became unstable and was marked as in PIR state in the cloud even though it was off in my physical device (I guess the sensor hang and never marked as normal in the cloud).

I end up buying an analog sensor with cables and code an Arduino gateway that broadcast the state of the sensors to my local LAN. By far a more stable and trusted solution.
Sorry for not updating the ticket before

Thanks @estebanroblesluna !  I was worried it was likely a power issue.  Funny thing, I did the same thing as you and use an Arduino for my motion sensors.
Can you share the code you used to do the 10s polling?

Sure @jasonacox, we end up in the same place.
For the Tuya service, I had to prune the code as it contains some information from the project but in essence is the following gists:
AbstractScheduledService (exposed from my framework): https://gist.github.com/estebanroblesluna/932642885a02bb1b2cc2b9b3e2b234ad
TuyaService (some methods have been removed): https://gist.github.com/estebanroblesluna/8baa5df2347f484e788b1e0d3d5866ee
Hope it helps and if you have any comments please let me know.
Just FYI, it is too OO, I'm a former Smalltalk engineer ;)

Thanks, @estebanroblesluna!  That's Beautiful code!  I like OO... I still code in Objective C. ;)


permission denied for building Docker Custom Image

dinesh@fourier:~/neural-audio-fp$ docker build -t neural-audio-fp .
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=neural-audio-fp&target=&ulimits=null&version=1": dial unix /var/run/docker.sock: connect: permission denied

@kasireddygariDineshKumarReddy  I would try sudo docker. If it doesn't work, it is docker installation issue, rather than this repo. Docker installed as rootless can cause this too.

yeah. I used with sudo.
But during $ sudo docker build -t neural-audio-fp .
i was struck at this configuration.
Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.

Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc
America     5. Arctic     8. Europe    11. SystemV
Antarctica  6. Asia       9. Indian    12. US
Geographic area: Asia
But i'm unable to resolve this issue.Please provide solution

Open your Docker file in the text editor. Insert this line before any apt activities:
ENV DEBIAN_FRONTEND=nonintercative

<EMAIL_ADDRESS>https://github.com/docker/docker.github.io/issues/13980

will u please check my Docker file.
#FROM nvidia/cuda:10.1-base-ubuntu18.04
FROM nvidia/cuda:11.2.0-cudnn8-runtime-ubuntu20.04
FROM nvidia/cuda:11.3.1-cudnn8-runtime-ubuntu18.04
LABEL maintainer="https://github.com/mimbres/neural-audio-fp"
RUN apt-get update
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
RUN apt-get update --fix-missing && DEBIAN_FRONTEND=noninteractive apt-get install -y wget bzip2 ca-certificates
libglib2.0-0 libxext6 libsm6 libxrender1
git mercurial subversion
Miniconda3
RUN wget --quiet
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
&& /bin/bash ~/miniconda.sh -b -p /opt/conda
&& rm ~/miniconda.sh && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh &&
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc &&
echo "conda activate base" >> ~/.bashrc
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libopenblas-dev
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl grep sed dpkg git tmux nano htop&&
TINI_VERSION=curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:' &&
curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb &&
dpkg -i tini.deb &&
rm tini.deb &&
apt-get clean
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip
RUN DEBIAN_FRONTEND=noninteractive pip3 install --upgrade pip
COPY environment.yml /tmp/
RUN conda env create -f /tmp/environment.yml
RUN mkdir /work && mkdir /work/neural-audio-fp-dataset
WORKDIR /work
RUN git clone https://github.com/mimbres/neural-audio-fp.git ./neural-audio-fp
RUN echo "cd /work/" >> ~/.bashrc
RUN echo "conda activate fp" >> ~/.bashrc
RUN echo "conda env list" >> ~/.bashrc
CMD [ "/bin/bash" ]
The ERROR is
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100     9    0     9    0     0     27      0 --:--:-- --:--:-- --:--:--    27
dpkg-deb: error: 'tini.deb' is not a Debian format archive
dpkg: error processing archive tini.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
tini.deb
The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y curl grep sed dpkg git tmux nano htop&&     TINI_VERSION=curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:' &&     curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb &&     dpkg -i tini.deb &&     rm tini.deb &&     apt-get clean' returned a non-zero code: 1

It seems something went wrong in the download. However, according to this, tini.deb is no longer required for Docker >=1.13. Just remove the line of scripts for tini.deb installation.


ci: Use large GitHub CI runners

Closes #6812

The large runners are currently being provisioned. No ETA for when we'll actually have access to them. I'm surprised it's taking so long.

This request was automatically failed because there were no enabled runners online to process the request for more than 1 days.

The large runners still show up as "provisioning" in the org runner dashboard.

The large runners now show up as "shutdown" in the org runner dashboard. Newly created large GitHub runners immediately enter the "shutdown" state. I see no way to activate a shutdown runner. I have opened a ticket with GitHub support.


Add a script to build DSL dictionaries

The dictionaries in https://github.com/open-dsl-dict/ipa-dict-dsl are 7 years old.
This adds build.py script that generates DSL files for all the data available files in the repository (in two encodings, because some software wants them in UTF16).
It could be easily modified to build other release stuff (like JSONs) too, but I don't need other stuff, so.
With this applied, I would suggest either regenerating the data in https://github.com/open-dsl-dict/ipa-dict-dsl or just archiving that repository and distributing DSL files via Releases here.

Looks like my issue is the same :D #55


Error add bot and server

As i was designing the new interface, when adding bots on the website says that you need to join the support server even if they are in.

The bot needs to be ran with (on top of) the web client.

This has since been resolved in dms and a support ticket. :)


US871037: Updated OpenSearch to version 1.3.14

Ticket: https://internal.almoctane.com/ui/entity-navigation?p=131002/6001&entityType=work_item&id=871037

A developer build has not yet been created for this branch. Click here to go ahead and create the build...

CI Build Link:
http://sou-jenkins2.swinfra.net:8080/job/CAFapi/job/CAFapi~opensuse-opensearch1-image~US871037~CI


domains dropdown not working

Domains dropdown, when logged in, won't show domains for subpages, only add domain when clicking on it.
Let's add domains on the subpages as well.

This was fixed in #57
Closing this.


slow subtitle loading with long videos

refs: https://github.com/video-dev/hls.js/issues/1303

+1


Add Alliance Info to The Event Results Tab

Show the Alliance for the Event in the results tab and if in Final Alliance List and Link Origin Division

This was added, then removed in the Material Update.

It is no longer used in DataSync and in the API

We should add this back. We can somewhat easily generate this from the match results.

Added, it's calculated on the server.
Also a new API route added - /event/<event_key>/alliances


Add .caskignore

This pull request offers to add .caskignore file since some casks are not written in the formula-way, like #11 . cask2formula skips translating the casks by .caskignore . The file follows Ruby's fnmatch syntax. CC: @sjackman, @rafifos

Thanks for the fix!


Deep Link support

Hello team,
could you tell me, if there is any deep-link support (in "deep-link" I mean, open specific element inside the application :
1)Application is closed;
2)Open application via some "link" that contain Series/Show id;
3) Open specific element in application e.g :Films -> Show name -> Specific series)?
It means that you don't see the start screen and application open instantly from a specific element.
Or you have some ideas about how to do it with the Lightning framework?

Hi @MykhailoDz
Currently, Lightning does not support deep linking/routing, however this is something we have strong inclinations towards implementing (perhaps on the SDK side first)
I am also not keen on providing examples of implementation because this is complex feature and shouldn't be done on application side.

The feature will be part of SDK so it is no longer relevant here.
SDK


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1021 ms

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


Enforce TLS for API Server

What this PR does / why we need it:
Enforces TLS for the API server.
This is needed, because without TLS HTTP2 is not supported by the golang http server.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Documentation:

Does this PR introduce a user-facing change?:

NONE

/lgtm


Can pins 5 and 11 be used as general purpose IO?

From https://support.microbit.org/helpdesk/tickets/54607 (private)
Is it possible to disable buttons A and B, so that pins 5 and 11 can be used as general purpose IO?
This seems to be possible in C++ with CODAL, as discussed in https://github.com/lancaster-university/codal-microbit-v2/issues/84#issuecomment-798773312, but I couldn't find an API in python.
It's understood that the 10K pull ups will still be active.

You can use then already a digital pins. In the REPL:
>>> pin5.read_digital()
1
>>> pin5.read_digital() # while pressing down button A
0

Yes, I think it's the Output side that needs the button object to be disabled.

Oh right, thanks for the clarification.
Right now MicroPython doesn't support a way to reuse pin5/11 as inputs, but we could write to the GPIO registers directly to control the pin. This is an example for Button A in the V2:
from microbit import *
from micropython import const
from machine import mem32

REG_GPIO_P0 = const(0x50000000)                 # Base address for the GPIO 0 peripheal
REG_GPIO_OUTSET = const(REG_GPIO_P0 + 0x508)    # When a 32bit value is written to this address, each bit set to 1 sets the output pin high
REG_GPIO_OUTCLR = const(REG_GPIO_P0 + 0x50C)    # When a 32bit value is written to this address, each bit set to 1 sets the output pin low
REG_GPIO_DIRSET = const(REG_GPIO_P0 + 0x518)    # When a 32bit value is written to this address, each bit set to 1 sets the pin to output
REG_GPIO_DIRCLR = const(REG_GPIO_P0 + 0x51C)    # When a 32bit value is written to this address, each bit set to 1 sets the pin to input

BUTON_A_PIN = const(14)    # Button A is pin 5 in the edge connector -> P0_14 in the nRF52833
BUTON_B_PIN = const(23)    # Button B is pin 5 in the edge connector -> P0_23 in the nRF52833

# First we set Button A to be an input
mem32[REG_GPIO_DIRSET] = 1 << BUTON_A_PIN

def set_button_a_low():
    mem32[REG_GPIO_OUTCLR] = 1 << BUTON_A_PIN

def set_button_a_high():
    mem32[REG_GPIO_OUTSET] = 1 << BUTON_A_PIN

def restore_button_a_as_input():
    # If we want to use button_a.is_pressed() again we need to set it as input
    mem32[REG_GPIO_DIRCLR] = 1 << BUTON_A_PIN

while True:
    display.show(Image.ARROW_S)
    set_button_a_low()
    sleep(5000)
    display.show(Image.ARROW_N)
    set_button_a_high()
    sleep(5000)

If it's okay as a workaround was provided I'll close this as a resolved 👍

Yes, thanks @microbit-carlos


Feat: Add support for Usage API

OpenAI added in December 2024, a new Usage API:
https://platform.openai.com/docs/api-reference/usage

The Usage API provides detailed insights into your activity across the OpenAI API. It also includes a separate Costs endpoint, which offers visibility into your spend, breaking down consumption by invoice line items and project IDs.

It would be interesting to have it in LocalAI

good idea but imo would be included in the list of 'enterprise-like' features that include, model-to-user/api controls that I would like to see.


Update greyhounds.yml

This needs a better title.  Update greyhounds.yml doesn't tell us anything.

For next time, please make sure your pull request titles are more descriptive before merging them.


[Doc][RESTfulAPI] Develop a specification document for restful api

Proposed changes
In the future, Doris needs to separate the front(UI) and back(Server) ends,
so a standardized RESTful api document is needed to guide the subsequent api design.
You can view the restful-api-design-doc.md to see the design guidance of API.
And I rewrite of document of FE RESULT api under http-actions/fe/.
This CL does not change any existing code. Only add document.
The change of these API will be in next PR after discuss.
Types of changes

[x] Documentation Update (if none of the other choices apply)

Checklist

[x] I have create an issue on #4260, and have described the bug/feature there in detail
[x] If this change need a document change, I have updated the document

Further comments
This CL only contains docs in Chinese, after discussion, I will add English doc later.

sql explain、profile是我这边的刚需。我这边做平台化目前这俩信息获取很费劲。期待考虑下comments:)

No problem. This PR is only a demo to show the common structure of the response body of RESTful API.
Almost APIs need to be enhanced to get more infomation.


Fix #2837: Add a Feed Count API with entityLink filter support

Fixes #2837
Describe your changes :
See #2837

Type of change :

[ ] Bug fix
[ ] Improvement
[x] New feature
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I have performed a self-review of my own.
[ ] I have tagged my reviewers below.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generate no new warnings.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

@mithmatt Thank you for the review!


Article Screen - Scroll is not working

Hi,
I am trying to scroll the app in the Article Screen page, the scroll is not working. The screen is just stuck, scroll has no effect.
It's the exact clone of the app. No changes.
OS - Android
Device - Samsung Galaxy S7 Edge

You can fix this by moving the ScrollView tags to the top and bottom of the const Article


Toggle cannot be to clicked by default cursor once this scene is loaded after a scene

Does this affect the legacy HoloToolkit (master) or the Mixed Reality Toolkit (mrtk_release)?
HoloToolkit
Describe the bug
I have a toggle set up on a canvas in a scene (main scene), and they can be toggled by the default cursor when this scene is deployed individually to hololens. I also set up voice command to toggle them and it works well.
Then I added an intro scene with a button to unload intro scene and load main scene. When it is clicked and main scene loads, the toggle can still be controlled by voice command but cannot be toggled with the cursor.
To Reproduce

create an intro scene and main scene
intro scene contains a button to unload intro scene and load main scene
main scene has a toggle (https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/master/Assets/HoloToolkit-Examples/UX/Prefabs/Toggle.prefab) which can be controlled by both voice command and default cursor (https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/master/Assets/HoloToolkit/Input/Prefabs/Cursor/DefaultCursor.prefab)
Built both scenes to hololens

Expected behavior
After clicking the button in intro scene, the main scene loads and intro scene disappears, The toggle in main scene can be controlled by both voice command and default cursor.
Actual behavior
The toggle can be controlled by voice command but cannot be clicked by default cursor.
When I tried  building the main scene itself to hololens, everything works fine.
Unity Editor Version
latest
Mixed Reality Toolkit Release Version
latest
Additional context
I also have vuforia sdk used in the main scene.

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.


Soundcloud fails to loop.

Soundcloud embeds fail to loop as implemented in the demo website.

this is a limitation of the Soundcloud player because it goes to and end screen.
I recommend listening to the onProgress event and comparing the current time with the duration and set the currentime to zero when it almost reaches the end.
this is something React player will not implement as it's possible to resolve by the user.


Routes need to be defined without leading /

The routes as defined on the home-page doesn't work:
const routes = {
  '/': {
    title: 'Home'
  },
  '/messages': {
    title: 'Message'
  },
  '/messages/:user': {
    title: 'Message History'
  }
};

You need to define them without the leading slash:
const routes = {
  '/': {
    title: 'Home'
  },
  'messages': {
    title: 'Message'
  },
  'messages/:user': {
    title: 'Message History'
  }
};

This issue was observed after upgrading to the newest version (7.0.0).

FWIW, they work if I define the optional basename parameter as "", a blank string.

Same as #27?

Yep!
@vishy1618 I'll be fixing this today!

@vishy1618 Fixed in 7.0.1 🎉

🎉


use clipboard.js for copy button

+1 ;)

Hey @zenorocha :), how did you find this?
And if you have some ideas for this project, go on and make some tickets :D

I have a Google Alert set up for clipboard.js ;)


add more precise detail for grpc json transcoder doc

When I checked the grpc json transcoder in envoy document, it's hard to figure out the value of services  config parameter, after tries all possible combination. I found the correct value was package_name.service_name, perhaps the documentation could be more clear at some point. so I petition a pull request
Signed-off-by: Mark Woo<EMAIL_ADDRESS>

@lizan can you take a look? @wuxinwei thank you for helping with the docs! Unfortunately you will need to fix DCO on your commit (see the contributing guide).

@lizan I fixed DCO, and make adjustment for the doc, plz review


test(utils): add tests for util functions

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Coin denominations

If 1 coin is worth £1000 and I want to send only $10 worth of coin to an address we could perhaps follow a similar strategy to Ethereum:
https://steemit.com/cryptocurrency/@encryptcy/ethereum-denominations

Maybe it's gonna be a next big changes for SushiChain.

Here is my proposal:

We continue to store amounts as UInt64 and we represent the amount with a custom class so that the last 8 digits represent 8 decimal places:

800,000,000 (800 million) SHARI becomes 8.00000000 (8)

We always display and make calculations using the Amount class which represents the 8 digits as 8 decimal places.
A proposed coin denomination could be:

1 Shiso  = 0.00000001
1 Egoma  = 0.00000100
1 Onomi  = 0.00010000
1 Azuki  = 0.01000000
1 Shari  = 1
1 Kuri   = 100
1 Mizuna = 1000
1 Saba   = 10000
1 Maguro = 100000
1 Suzuki = 1000000

we can apply the same logic to all amounts including Tokens - but people can use whatever names they like for amounts of tokens.

might be able to use BigDecimal here:    https://crystal-lang.org/api/master/BigDecimal.html


update havok dependencies

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/15018/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15018/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15018/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/15018/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/15018/merge
https://gui.babylonjs.com/?snapshot=refs/pull/15018/merge
https://nme.babylonjs.com/?snapshot=refs/pull/15018/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/15018/merge#BCU1XR#0

WebGL2 visualization test reporter:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15018/merge/testResults/webgl2playwright/index.html

Visualization tests for WebGPU (Experimental)
Important - these might fail sporadically. This is an optional test.
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15018/merge/testResults/webgpuplaywright/index.html


ArduinoIDE showing wrong free-space

Hello, first of all i realy like the partition-builder! But I camoe over a problem:
I created the partition as shown as on the picture, and it works fine. But when uploading the free-space is always shown wrong in the ArduinoIDE.

When using custom partitions, by default Espressif sets the maximum upload size at 16MB.
If you want to set it based on your dev board actual size, for example 4MB, you have to edit manually the boards.txt file installed with Espressif Core.
It is normally located in Users[your user name]\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4
In that file you have to locate your dev board (it's not easy...) and change the size of custom.upload.maximum corresponding to your dev board size.
This file will be overwritten when you update or reinstall Espressif Core.


VSTS Hosted VS2017 Agent can't find fsi.exe

Description
I'm trying to use the "Execute F# Script" task on a Hosted VS2017 agent, but it gives me the following error: "The system cannot find the path specified.". This is because the task it trying to run fsi.exe from the C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\ folder. This used to work, but fsi.exe can now be found in the dotnet core sdk (i.e. C:\Program Files\dotnet\sdk\2.1.400\FSharp).
Maybe I'm missing something and this can be fixed easily by my side, but I just can't figure it out.
Repro steps

Create a build pipeline

Set Agent Pool to Hosted VS2017

Add "Execute F# Script" task and select the fsx

Queue the build

Expected behavior
fsx script gets executed
Actual behavior
error: "The system cannot find the path specified."
Details
2018-09-18T09:47:14.7799699Z ##[debug]Evaluating condition for step: 'Deploy Plugins'
2018-09-18T09:47:14.7800261Z ##[debug]Evaluating: succeeded()
2018-09-18T09:47:14.7800455Z ##[debug]Evaluating succeeded:
2018-09-18T09:47:14.7800694Z ##[debug]=> True
2018-09-18T09:47:14.7800952Z ##[debug]Result: True
2018-09-18T09:47:14.7801281Z ##[section]Starting: Deploy Plugins
2018-09-18T09:47:14.7858892Z ==============================================================================
2018-09-18T09:47:14.7859029Z Task         : Execute F# Script
2018-09-18T09:47:14.7859124Z Description  : Executes an F# .fsx script file
2018-09-18T09:47:14.7859211Z Version      : 0.4.1
2018-09-18T09:47:14.7859301Z Author       : Isaac Abraham
2018-09-18T09:47:14.7859566Z Help         : This task executes an arbitrary .fsx file.
2018-09-18T09:47:14.7859672Z ==============================================================================
2018-09-18T09:47:14.7949577Z ##[debug]Working directory: 'D:\a_tasks\FSharpScript_1ba72b0a-f476-4a91-90a0-b8e7a0cc4337\0.4.1\DefaultTaskWorkingDirectory'
2018-09-18T09:47:14.7951772Z ##[debug]Fail on standard error: 'True'
2018-09-18T09:47:14.7951906Z ##[debug]Modify environment: 'False'
2018-09-18T09:47:14.7952065Z ##[debug]C:\Windows\system32\cmd.exe /c ""C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsi.exe" "D:\a\1\s\AOMetalektro.CRM\Scripts\Daxif\PluginSyncDev.fsx" "
2018-09-18T09:47:14.7952285Z ##[command]"C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsi.exe" "D:\a\1\s\AOMetalektro.CRM\Scripts\Daxif\PluginSyncDev.fsx"
2018-09-18T09:47:14.8188366Z ##[error]The system cannot find the path specified.
2018-09-18T09:47:14.8209493Z ##[error]Process completed with exit code 1 and had 1 error(s) written to the error stream.
2018-09-18T09:47:14.8219076Z ##[debug]System.Exception: Process completed with exit code 1 and had 1 error(s) written to the error stream.
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.ProcessHandler.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.d__1.MoveNext()
2018-09-18T09:47:14.8221045Z ##[section]Finishing: Deploy Plugins
Known workarounds
I might be able to run the F# script using powershell, but that would be without using this task entirely.
Related information
https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/win/Vs2017-Server2016-Readme.md

Can you test with the latest release?

I'm having the same issue after reinstalling Windows 10 on my developer PC. It was working before the reinstall, but now fsi.exe is in a different location. What's the best way to run F# scripts?
This is my batch .cmd file:
:: Create a temporary drive letter mapped to your UNC root location
:: and effectively CD to that location
pushd %~dp0
"C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\Fsi.exe" PostRelease.fsx
pause
:: Remove the temporary drive letter and return to your original location
popd

I replaced the folder path with C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\FSharp and that fixed it. Is there some solution that does not assume nobody will move the fsi.exe file again? Please just stop moving my cheese! :O)

Yeah, it's kind of whack-a-mole. To be honest I'm not sure what the best solution is really - I was trying to call FSI from within a Fake script last week and found it tough going within devops.


[BEAM-4536] Remove with_attributes keyword from ReadFromPubSub.

Cherrypick for 2.5.0

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

R: @jbonofre

retest this please

Looking at java breakage.

Run Java PreCommit

retest this please

Run Java PreCommit

@jbonofre  ./gradlew :beam-runners-direct-java:test was broken for me on my local machine. I did a git pull --rebase and that fixed it. I then pushed the commit again in the hopes that it'd fix the precommit somehow, however now https://github.com/apache/beam/pull/5611 has disabled running Java precommits.
I've asked @swegner to revert https://github.com/apache/beam/pull/5611 so we can verify that Java precommits are not broken.

Run Java PreCommit

I triggered a build on the release branch itself, and it failed:
https://builds.apache.org/job/beam_PreCommit_Java_GradleBuild/6441/consoleFull

FYI, the failing test org.apache.beam.runners.direct.portable.ReferenceRunnerTest.pipelineExecution, I recognize from other PRs as being flaky (history). This PR seems unrelated and seems unlikely that it caused the regression.
/cc @reuvenlax @tgroh as the owners for this test.

I've filed https://issues.apache.org/jira/projects/BEAM/issues/BEAM-4558
I marked it as a release blocker, but is it? @swegner


Misspelling in the configuration Template area

One of our users reported this misspelling in the cloud app Template configuration area and so I am just passing it along.  It is quite hard to notice the error but at the bottom of the Template configuration area there is a check box currently labelled "Keep label spacing when field emtpy" where the word empty is misspelled.  I'm surprised surprised out user even noticed.  Since it was reported though to me I want to alert you of the issue.
Daniel Cromwell
System Specialist Tech Services
Florida Virtual Campus

@dancromwell, yikes, that's embarrassing! It is fixed for the next release.

@mgobat In terms of currently activated apps will they need to be deactivated and reactivated after the next release to get the corrected text?
Daniel

@dancromwell, no need to deactivate/reactivate.

@mgobat OK, thanks for the answer.
Daniel


No response on Windows talking to Arduino-board

When running this code on a Windows box (both 10 and 8.1):
{:ok, pid} = Nerves.UART.start_link
:ok = Nerves.UART.open(pid, port_name, speed: 9600, active: false)
Nerves.UART.write(pid, "test\n")
:timer.sleep(500)
Nerves.UART.read(pid)

I do not get anything back. The Arduino is set up to echo the data back:
void setup() {
  Serial.begin(9600);
}

void loop() {
  if(Serial.available() > 0)
  {
    String data = Serial.readStringUntil('\n');
    Serial.print(data);
    Serial.print("\n");
  }
}

The code is working using the same board on OSX as expected, but no response on Windows (tried on both 10 and 8.1).
Tried on two different Arduino boards: Adafruit Feather M0 (SAMD) and Adafruit Feather 32u4
Versions:
Elixir 1.3
Erlang: 18.2
Nerves_UART: 0.0.7
Also tried using active-mode, but no response back

I was able to reproduce this issue on an Arduino Leonardo. Interestingly running the program on an Arduino UNO doesn't reproduce the problem.
I created a partial fix in https://github.com/nerves-project/nerves_uart/tree/windows. Could you try that branch? The second half was to add flow_control: :software to the configuration options. My line looks like this: :ok = Nerves.UART.open(pid, "COM5", speed: 9600, active: false, flow_control: :software)
It's late for me now and the changes that I made don't make complete sense. It is, however, how I saw that other terminal programs were accessing the Leonardo. I'd like to review the Arduino code to understand why enabling software flow control helped, and I would be curious if these changes fix the issue that you're seeing.

That brach worked for me too. On both boards. Nice!
However I am having trouble getting this to work in passive mode, for some strange reason. In active mode I get the response I am suspecting. In passive mode I get {:error, :einval} back from read, but nothing when I call flush.
I guess this is not a related subject, so I can open another issue if you want.

This is very odd. Unfortunately, both active and passive mode are working for me on the Arduino Leonardo, so I'm not able to reproduce now. :(
Just in case I misunderstood, in passive mode (active: false), read/1 should work. Messages aren't sent, so you won't get anything when you call flush. Active mode sends everything via messages and read/ returns error. I think that you meant to say active mode didn't work or at least that's the way I understood it.

Ah, sorry if I expressed myself a bit unclear.
I only got active=true to work (calling flush).
When I set active=false and call read/1, I get :einval back. Just in case, I called flush in passive mode, but empty.

Got it. I think that setting active mode to false is somehow not taking effect for you. If you get :einval back from read, you're still in active mode. Could you post a log of your iex session? I can run what you wrote in the bug report at the very top exactly and that's in passive mode.

Sorry for the delay. Here is my iex session (including another small bug):
`iex(1)> {:ok, pid} = Nerves.UART.start_link
{:ok, #PID<0.115.0>}
iex(2)> :ok = Nerves.UART.open(pid, "COM3", speed: 9600, active: false, flow_control: :software)
:ok
iex(3)> Nerves.UART.write(pid, "test")
:ok
iex(4)> Nerves.UART.read(pid)
{:error, :einval}
iex(5)> flush
:ok
iex(6)> Nerves.Uart.close(pid)
08:08:28.485 [error] Loading of c:/Users/royves/src/nerves_uart-windows/_build/dev/lib/nerves_uart/ebin/Elixir.Nerves.Ua
rt.beam failed: :badfile
08:08:28.485 [error] beam/beam_load.c(1278): Error loading module 'Elixir.Nerves.Uart':
module name in object code is Elixir.Nerves.UART
08:08:28.485 [error] Loading of c:/Users/royves/src/nerves_uart-windows/_build/dev/lib/nerves_uart/ebin/Elixir.Nerves.Ua
rt.beam failed: :badfile
08:08:28.486 [error] beam/beam_load.c(1278): Error loading module 'Elixir.Nerves.Uart':
module name in object code is Elixir.Nerves.UART
** (UndefinedFunctionError) function Nerves.Uart.close/1 is undefined (module Nerves.Uart is not available)
Nerves.Uart.close(#PID<0.115.0>)
iex(6)> :ok = Nerves.UART.open(pid, "COM3", speed: 9600, active: true, flow_control: :software)
:ok
iex(7)> Nerves.UART.write(pid, "test")
:ok
iex(8)> flush
{:nerves_uart, "COM3", "test\n"}
:ok
iex(9)>`

No worries - I really appreciate that you're putting in time to debug this.
Regarding the capitalization issue, I'm not sure what to do about that. I believe that's due to Windows having a case insensitive filesystem. Erlang is successful in loading the .beam file, but then it can't find the right module name and everything gets ugly.
Regarding the main problem, I made a couple updates to the windows branch. Could you update your version of nerves_uart to get them? Then, in the Makefile, there's a line to comment in to enable debug logging. Enable that line and rebuild. After that, try the passive mode test and exit iex. With any luck, the file nerves_uart.log will say what's wrong.

I will not be able to test this in a while. Just after opening this issue I left for holiday, and did not bring anything running Windows. I will test as soon as I get back, and let you know. Sorry for the delay.

No worries, and thanks for the update. I'll merge the RTS fix, since it seems like a good change regardless. We can resume when you get back and settled. Enjoy your time off!

I finally got back to my Windows machine (not that I missed it), and got to run the test again after I got the latest commits in the Windows-branch. The result is the same: Active mode is OK, passive mode is not. I attached two different log-files from a very short session, and one longer (which gave me some data back). I hope the log-files makes sense to you.
nerves_uart_longer_session.txt
nerves_uart_short_session.txt

I believe that I fixed the issue that you had in the logs in commit 21997f14208728d021d3c2c35e5b580a380deb03. This was by accident. I was using the com0com device driver on Windows and found out that it liked to return that a read or write completed synchronously rather than asynchronously when using overlapped I/O. I was under the impression that that wasn't supposed to happen, but the good news is that my logs looked very similar to yours. I don't know why it is different from the other serial device drivers I've used, but who knows. I hope that this fixes the issue for you.
Also, sorry to stash the fix in a branch, but that's where I'm working at the moment. That change should apply cleanly as a patch to the latest nerves_uart release.

The fix is now in the v0.1.0 release, and it's up on hex.pm too. I hope this fixes your issue. No rush in confirming. I'll leave this issue open just in case.

I can confirm this is working for me too. Great work!
I tested the same without flowcontrol: :software too, and it still worked.
Closing the issue

Great! Thanks for confirming the fix, and I'm quite happy that flowcontrol: :software is no longer needed since I never understood why that did anything.


add pubspec entries tagged missing by pana

Fixes: https://github.com/dart-lang/lints/issues/30
/cc @mit-mit @goderbauer

LGTM


Allow ci.phncdn.com

Hi,
Blocking ci.phncdn.com is breaking PornHub:

Having trouble validating...


merge from konsum-frontend-svelte,template-svelte-app

package.json

chore(deps): add ^20.0.2 remove ^20.0.0 (devDependencies.semantic-release)

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

npm package (@latest dist-tag)
v1.35.0
GitHub release

Your semantic-release bot :package::rocket:


Empty Discord role results in removal when authenticated

What version of Node.js are you using?
16.3.1
What version of npm are you using?
8.3.0
What operating system are you using?
Linux (ubuntu 20.04)
What version of SnailyCAD are you currently using?
1.0.0-beta.86
Describe the Bug
When I don't specify a Discord role for CAD administrator as I prefer to do this manually with the new permission system, every time a user authenticates who has been granted access via the system using Discord it removes the custom permissions assigned.
Expected Behavior
Custom permissions should not be overwritten by Discord permissions, they should take precedence even if the user authenticates via Discord.
To Reproduce
No response

Have same bug. User moves to pending every time when try to authenticate after I grant access

Haven't been able to test this, but should be fixed now


Fatal error, unhandled exception, Please raise and issue on the support site

I just installed this application, ran it for the first time, set some settings and authorized it. then my internet connection got disconnected! and the app showed an error and exited.
upon restarting it again, I face with  an unresponsive application as shown bellow:

which ultimately results in this :

I even uninstalled and reinstalled it again, but nothing changed, it seems as if the settings saved!
anyway what is wrong and how can I fix it ?

Hello,
today I got what seems a similar problem: in my case there was a corrupted image (with a size of 0 bytes). After I removed it, it worked as usual.
So try yourself by empting the cache folder:

(I have pulled a fix for this error)


 See comments on #3663

@mkoistinen this is a small change in code, but merging into support will require a bit of live projects testing.

Will test, thanks for the patch!

Coverage decreased (-0.1%) to 87.448% when pulling af249684d6f98a04a0ec9550de38edc1970d2cc9 on yakky:feature/resize_sideframe into 9d3deff86e06f73d65fdf0accad6231c45147ac1 on divio:support/3.0.x.

Coverage decreased (-0.1%) to 87.448% when pulling af249684d6f98a04a0ec9550de38edc1970d2cc9 on yakky:feature/resize_sideframe into 9d3deff86e06f73d65fdf0accad6231c45147ac1 on divio:support/3.0.x.


takes multiple runs to save all groups?

I used this script to import ~80 users in up to 4 groups each.
it seemed to me that I needed to run this many times before each user had all their groups.
Is that a known issue?
(running it multiple times  was simple and caused no errors, so it was a minor hassle, once I realized they weren't all in all the right groups)

That's not a known issue and it's not expected behaviour either. What the script does is either of the following:

If a User exists, it will check if there are any new groups defined for this user and add them to the existing User
If no User exists, it will add the User with all the defined groups

To be honest, if I scan the script quickly, I can't think of a reason why you would need to run the script multiple times to add all the groups. But then again, bugs can be subtle. Can you give me a (simplified) example of where it went wrong for you?


Payloads of type application/json with content-length specified now fail if length > 8192 bytes

With the recent fix for handling binary payloads, we've discovered a new issue that did not occur with version 3.0.6:  if you try to send a payload with a content-type of application/json, and a specified content length > 8192 bytes, then the first 8192 bytes is not preserved.
We have created the following 2 additional test cases for TestFieldStorageModified.py that demonstrates this issue; the first test without an explicit content-length passes, but the second does not:
`
def testRequestJSONLargeWithoutContentLength(self):
    value = 'a'*8200
    import json
    d = {'test':value}
    payload = json.dumps(d)
    fs = FieldStorage(
        fp=BytesIO(payload.encode()),
        environ={'REQUEST_METHOD': 'POST',
                 'CONTENT_TYPE': 'application/json'})
    self.assertEqual(fs.headers, {
        'content-type': 'application/json'})
    self.assertEqual(fs.type, 'application/json')
    self.assertEqual(fs.length, -1)
    self.assertEqual(fs.bytes_read, 8212)
    assert fs.file.read() == payload

def testRequestJSONLargeWithContentLength(self):
    value = 'a'*8200
    import json
    d = {'test':value}
    payload = json.dumps(d)
    fs = FieldStorage(
        fp=BytesIO(payload.encode()),
        environ={'REQUEST_METHOD': 'POST',
                 'CONTENT_TYPE': 'application/json',
                 'CONTENT_LENGTH': len(payload)})
    self.assertEqual(fs.headers, {
        'content-type': 'application/json', 'content-length': 8212})
    self.assertEqual(fs.type, 'application/json')
    self.assertEqual(fs.length, 8212)
    self.assertEqual(fs.bytes_read, 8212)
    assert fs.file.read() == payload

`
It isn't clear to me yet how the recent changes caused this problem, but these both pass with 3.0.6.

Thanks for reporting and providing test cases, will look into this later.

This has been fixed now in version 3.0.9. Thanks again for the bug report.


Upload and Download speed shown as 0.00Mb/s on CentOS 7.6

I have just installed this on a DIgitalOcean droplet and am getting the following results:
Retrieving speedtest.net configuration...
Testing from Digital Ocean (134.xxx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Vodafone UK (Acton) [27.24 km]: 1800000.0 ms
Testing download speed................................................................................
Download: 0.00 Mbit/s
Testing upload speed................................................................................................
Upload: 0.00 Mbit/s
Any idea why I am getting no speeds shown?

I'm experiencing the same issue.

Duplicate of https://github.com/sivel/speedtest-cli/issues/600


Full screen mode for videos (Vimeo)

Hi,
The full screen mode is not there. I found on another post that there is an error in js files. Instead of me forking the app and editing files, could you please fix the master branch?
Details:
Just look for this string allowfullscreenclass in js and min.js files. The space is missing. The final fix should look like: ...allowfullscreen class...
Much appreciated,
John

Thank you.
After fixing the typo you mentioned about, I updated github repository and also rubygem.org.
If you bundle update this gem, new version will be bundled.

Thank you for your quick action!


[WIP] [iOS] iOS Plugins Migration

A follow up commit for https://github.com/godotengine/godot/pull/41230 that removes iOS plugins from modules.
WIP until I finish tests and scons build setup for plugins in separate repo.

rsync -a -m -R --include '*/' --include '*.h' --exclude '*' ./ extracted_headers seems to be the best way to extract headers from Godot's sources.
@akien-mga is there any way to make scons only generate headers, so there would be no need to actually run and cancel a compilation?

rsync -a -m -R --include '*/' --include '*.h' --exclude '*' ./ extracted_headers seems to be the best way to extract headers from Godot's sources.
@akien-mga is there any way to make scons only generate headers, so there would be no need to actually run and cancel a compilation?

@akien-mga I've temporary made repository on my account: https://github.com/naithar/godot_plugins_ios for all plugins.
Everything seems to be working fine, but I'll double check on the week just to be sure.
Should I create a plugins repo on team account when everything is ready?

@akien-mga I've temporary made repository on my account: https://github.com/naithar/godot_plugins_ios for all plugins.
Everything seems to be working fine, but I'll double check on the week just to be sure.
Should I create a plugins repo on team account when everything is ready?

I've temporary made repository on my account: https://github.com/naithar/godot_plugins_ios for all plugins.
Everything seems to be working fine, but I'll double check on the week just to be sure.
Should I create a plugins repo on team account when everything is ready?

Yeah you should be able to transfer your repo to @godotengine (you might lose Write access to it in the process, but I can fix that up once transferred). I'd suggest renaming it godot-ios-plugins as we tend to use kebab-case for repo names (with the exception of godot_headers for GDNative but that should be fixed).

is there any way to make scons only generate headers, so there would be no need to actually run and cancel a compilation?

There's no option for that currently no. That's something that could likely be implemented if we go ahead with Meson port though #45093.
What headers do you need exactly though? Should it be the whole Godot tree? If so, isn't it simpler to just use the godot repo directly and have as a requirement to do a build once to generate the headers for the desired Godot commit/tag?
Or alternatively, have the Godot build generate a source archive like done for Android (CC @m4gr3d).

I've temporary made repository on my account: https://github.com/naithar/godot_plugins_ios for all plugins.
Everything seems to be working fine, but I'll double check on the week just to be sure.
Should I create a plugins repo on team account when everything is ready?

Yeah you should be able to transfer your repo to @godotengine (you might lose Write access to it in the process, but I can fix that up once transferred). I'd suggest renaming it godot-ios-plugins as we tend to use kebab-case for repo names (with the exception of godot_headers for GDNative but that should be fixed).

is there any way to make scons only generate headers, so there would be no need to actually run and cancel a compilation?

There's no option for that currently no. That's something that could likely be implemented if we go ahead with Meson port though #45093.
What headers do you need exactly though? Should it be the whole Godot tree? If so, isn't it simpler to just use the godot repo directly and have as a requirement to do a build once to generate the headers for the desired Godot commit/tag?
Or alternatively, have the Godot build generate a source archive like done for Android (CC @m4gr3d).

What headers do you need exactly though? Should it be the whole Godot tree? If so, isn't it simpler to just use the godot repo directly and have as a requirement to do a build once to generate the headers for the desired Godot commit/tag?

Yeah, the whole Godot tree headers are needed, including generated inc files.
You may be right. Using Godot whole source (with submodules or whatever) should be simplier - I did it with plugins example template, so maybe I shouldn't overcomplicate things with header extraction.

What headers do you need exactly though? Should it be the whole Godot tree? If so, isn't it simpler to just use the godot repo directly and have as a requirement to do a build once to generate the headers for the desired Godot commit/tag?

Yeah, the whole Godot tree headers are needed, including generated inc files.
You may be right. Using Godot whole source (with submodules or whatever) should be simplier - I did it with plugins example template, so maybe I shouldn't overcomplicate things with header extraction.

iOS plugins should now be testable: https://github.com/naithar/godot-ios-plugins/releases
I'll run some more tests and transfer the repo once everything is ready.

iOS plugins should now be testable: https://github.com/naithar/godot-ios-plugins/releases
I'll run some more tests and transfer the repo once everything is ready.

@akien-mga cleaned up and transferred repo to https://github.com/godotengine/godot-ios-plugins.
Not sure about read/write access rights though.
From what I've tested everything seems to be working correctly.

@akien-mga cleaned up and transferred repo to https://github.com/godotengine/godot-ios-plugins.
Not sure about read/write access rights though.
From what I've tested everything seems to be working correctly.

@akien-mga cleaned up and transferred repo to https://github.com/godotengine/godot-ios-plugins.
Not sure about read/write access rights though.
From what I've tested everything seems to be working correctly.

Looks good! I gave Write permissions to @godotengine/ios there.

@akien-mga cleaned up and transferred repo to https://github.com/godotengine/godot-ios-plugins.
Not sure about read/write access rights though.
From what I've tested everything seems to be working correctly.

Looks good! I gave Write permissions to @godotengine/ios there.

Thanks!

Thanks!