Load custom dict with locale set on non supported one

Hi @arandilopez ! First of all I really appreciated your package.
I'm trying to use a custom dictionary file loading it as following:
'name' => 'required|string|max:100|profane:en,' . resource_path('lang/it/profane.php')
My locale is set on it language which is not supported out of the box. I'm stuck on this exception:
ErrorException(code: 0): include(it): failed to open stream: No such file or directory at /var/www/myproject/vendor/arandilopez/laravel-profane/src/ProfaneValidator.php:85
I debugged your code a little bit. I noticed that the variable $dictionary used in line ProfaneValidator.php:85 contains the locale value. So it expects a path but it is the locale string.
As ultimate test I tried to change $dict = include($dictionary); on line 85 with $dict = include(resource_path('path/to/my/dict.php'); at it worked.
Thank you!

Hi @aletundo. Thanks for this issue.. I will try replicate it. Would you lend me your it dictionary to test it? You can also help me to include that dict to the base, like en and es as well
Regards!

Would you lend me your it dictionary to test it?

Yes, for sure!
it_dict.txt
It was a merge of the dictionaries from banbuilder and Laravel5-Profanity-Filter.

You can also help me to include that dict to the base, like en and es as well.

Okay! I may make a pull a request.. I have just to give look at your unit tests.

@aletundo Well, the error is because I don't have a it.php in the dicts directory... Just a validation more to wont try to load a locale missing file when you do 'locale' => 'it'. But the file path you passed will be loaded like here:
<?php
// ....

    public function store(Request $request)
    {
        $this->validate($request, [
            'name' => 'required|profane:en,es,'.resource_path('lang/it/dict.php')
        ]);

        // In case it passes
        return response()->json(['name' => $request->input('name')]);
    }

You can send a pull request to add that it.php dictionary you have.. I don't know Italian but I trust in you 😄
Regards!

@arandilopez I got the point! It works now!
I'm going to make a pull request asap.


For Outbound Mappings the template are not updated

When creating an outbound mapping you can select an API. If you select one and click next you get template matching to the API.
If you get back and select another API the template sticks to the first selected API and shows warning:

Expected behavior: Change template when selecting a different API.
Also not sure which impact "ALL" in the API has and how the default template should look like.

@switschel : Can you pls. build and test the latest develop branch.
Changes for this fix are included in commit 4cdb56b36539d07863c89a1841cc9320a663ff97


A variety of improvements

XMLDocumentNode API
domHelpers

Codecov Report

Merging #1192 into develop will decrease coverage by 0.21%.
The diff coverage is 34.78%.

@@             Coverage Diff             @@
##           develop    #1192      +/-   ##
===========================================
- Coverage    59.92%   59.71%   -0.22%
===========================================
  Files          391      392       +1
  Lines        14736    14799      +63
===========================================
+ Hits          8831     8837       +6
- Misses        5905     5962      +57

Impacted Files
Coverage Δ

packages/context-menu/ContextMenu.js
0% <ø> (ø)
:arrow_up:

ui/ToggleTool.js
3.57% <ø> (ø)
:arrow_up:

ui/SurfaceManager.js
83.87% <ø> (ø)
:arrow_up:

ui/ToolGroup.js
0% <ø> (ø)
:arrow_up:

xml/XMLDocumentNode.js
4.08% <0%> (-0.47%)
:arrow_down:

ui/CustomSurface.js
0% <0%> (ø)
:arrow_up:

ui/FontAwesomeIcon.js
0% <0%> (ø)
:arrow_up:

ui/ToolPanel.js
0% <0%> (ø)
:arrow_up:

ui/Surface.js
36.09% <100%> (-1.05%)
:arrow_down:

ui/AbstractIsolatedNodeComponent.js
68.75% <100%> (ø)
:arrow_up:

... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d29cf7...540f577. Read the comment docs.


Update ROSES to 2022

ROSES 2022 has been released. So on  our roses page, change all “2021”s to “2022. Change the link on the line
“the relevant portions of ROSES 2021”to  http://solicitation.nasaprs.com/ROSES2022

done


Error Orders

I have installed the module, and it gives me an error in some functions, after installation.
This error occurs in the list of orders

Hello @alejandromultiplicalia
Can you tell me more about the error ?
Did you have some logs, error trace or screenshots ?
What is your PrestaShop version ?

am attaching a screenshot, so you can see the error.
I am using prestashop, <IP_ADDRESS>
--
Alejandro Vázquez González
Desarrollador Web

Teléfono: 954 10 48 06
Mail: @.***
Esta comunicación va dirigida exclusivamente al receptor o receptora de este mensaje y contiene información que es legalmente privilegiada, confidencial o tiene prohibida su difusión. Si usted no es el receptor o receptora de este mensaje, por favor sepa que cualquier difusión, distribución o copia de esta comunicación queda estrictamente prohibida. Quien quiera que reciba este mensaje por error deberá notificar al emisor o emisora inmediatamente y deberá eliminar este mensaje de su ordenador. Proteja al medio ambiente: no imprima este correo si no es necesario.
This communication is intended solely for the use of the addressee and contains information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately and delete it from his or her computer. Protect the environment: do not print this message unless necessary.
De: Matt75
Enviado: lunes, 3 de mayo de 2021 17:44
Para: Matt75/displayordercarrier
CC: alejandromultiplicalia; Mention
Asunto: Re: [Matt75/displayordercarrier] Error Orders (#1)
Hello @alejandromultiplicalia
Can you tell me more about the error ?
Did you have some logs, error trace or screenshots ?
What is your PrestaShop version ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Please reply on GitHub because attachment by email is not working, I can't see your screenshot.
https://github.com/Matt75/displayordercarrier/issues/1

Did you install this module with the ZIP displayordercarrier.zip
available here : https://github.com/Matt75/displayordercarrier/releases/latest ?
I did not manage to reproduce your issue, can you try to clear cache ?


0.14 - wrench link fails to load debugging-runtime.js

Context
I was following the instructions on the elm-reactor readme to utilize the time traveling debugger in elm 0.14. [EDIT: Yes, it was installed on my Mac via the .pkg installer.]
Repro

run elm-reactor in my project dir
go to http://localhost:8000/ in my browser
click the small wrench next to an elm file

Expected: My elm program is started with a debugger/control panel
Actual: I get a blank white page. The javascript console contains the following errors (image attached) about not being able to load debugging-runtime.js

I'm getting this error with 0.14 as well, on Arch Linux x86_64. I installed via cabal sandbox, using the script mentioned here: http://elm-lang.org/Install.elm#build-from-source

I have not released the fix yet, it should be in the next few days.


Bake Version number into apiGen UI

Api Docs can create confusion and the impression that they are wrong if they don't show the version number in a well visible place in the UI.

:+1:


[BSO] Fixed =kill to work with BSO monsters

Description:
Enabled BSO monsters to be simulated with =kill
Changes:
Updated kill.worker.ts to include the BSO libraries required, as slightly modified the default function there to use the BSO KillableMonster type.
Other checks:

[yes] I have tested all my changes as thoroughly as possible without the BSO assets.

Unit tests still broken from missing config it seems =/


AspNetSession layout renderer not working.

Hello,
I am using NLog for logging in my asp.net 4.5 website. I have used NLog 4.0. Now I need to use session variables in my logs. So i tries to use AspNetSession layout renderer. This layout  renderer is included in Nlog.Web. I have added this dll and also under the extensions tag in NLog config file. But it gives error:
ArgumentException: LayoutRenderer cannot be found: 'aspnet-session'
I have also added NLog.extended dll and also under the extensions tag in NLog config file. But it also didn't help.
Please let me know what should i do.

Please upgrade to 4.0.1 and remove the <extensions>
This should be fixed :)

Did this resolve your problem?

Yes, thanks. Initially, it was not working. But then first I updated nuget and then installed nlog 4.0.1, and then nlog.web and it worked.

Thanks for the feedback.
I would have probably worked with 4.0, but the assembyFile attribute was the issue (unneeded in this case)

Is there a way to load this assemblies programmatically? I am using asp net 5 and so far I have only been able to configure NLog programmatically by loading my configuration files into some DTOs and then using those to create targets. I installed the NLog.Web.nupkg to my project but still none of the aspnet-... nor iis-site-name commands work and I get the error Layout renderer not found. Am I missing something?

Yeah sure, https://github.com/nlog/nlog/wiki/Extending NLog#do-i-really-need-to-create-a-separate-dll
But nlog.web should work out of the box. Which NLog versions (nuget version) are you using? And can you post your config?

I am currently using NLog 4.2.2 it was the latest last time I saw, I already found a way around by doing this in my configuration code
var assembly = (typeof(NLog.Web.LayoutRenderers.AspNetUserIdentityLayoutRenderer)).Assembly;
ConfigurationItemFactory.Default.RegisterItemsFromAssembly(assembly);
this is my configuration code:
public static void LoadFileTarget(LoggingConfiguration config, NLogFileConfig fileConfig, string filePath)
    {
        var fileTarget = new FileTarget
        {
            Name = fileConfig.Name,
            KeepFileOpen = fileConfig.KeepFileOpen,
            ConcurrentWrites = fileConfig.ConcurrentWrites,
            CreateDirs = fileConfig.CreateDirectory,
            ArchiveOldFileOnStartup = fileConfig.ArchiveOldFileOnStartup,
            FileName = filePath + "\\" + fileConfig.FileName,
            Layout = fileConfig.Layout
        };

        config.AddTarget(fileTarget);
        var level = NLog.LogLevel.FromString(fileConfig.Level);
        if (level != null)
            config.LoggingRules.Add(new LoggingRule("*", level, fileTarget));
    }

Since am using asp net 5 I haven't found another way to load configurations so what I am doing is loading my (custom) config file contents into DTOs and then programmatically configuring NLog based on that. Thanks for your quick reply

Can you check the internal log? (trace)  It logs the binaries which get auto loaded.

where can I see that? the log once set on trace is enormous and this is the beginning of it:
2015-12-14 16:55:31.7750 Debug --- NLog configuration dump ---
2015-12-14 16:55:31.7750 Debug Targets:
2015-12-14 16:55:31.7750 Debug File Target[LogFile]
2015-12-14 16:55:31.7750 Debug Database Target[DBLog]
2015-12-14 16:55:31.7750 Debug AsyncWrapper Target[MailConfig-Buffered-Async](BufferingWrapper Target[MailConfig-Buffered](Mail Target[MailConfig]))
2015-12-14 16:55:31.7750 Debug Rules:
2015-12-14 16:55:31.7750 Debug logNamePattern: (:All) levels: [ ] appendTo: [ LogFile ]
2015-12-14 16:55:31.7750 Debug logNamePattern: (:All) levels: [ ] appendTo: [ DBLog ]
2015-12-14 16:55:31.7750 Debug logNamePattern: (:All) levels: [ ] appendTo: [ MailConfig-Buffered-Async ]
2015-12-14 16:55:31.7750 Debug logNamePattern: (:All) levels: [ ] appendTo: [  ]
2015-12-14 16:55:31.7750 Debug --- End of NLog configuration dump ---

hope this helps

It should log something about auto loading

https://github.com/NLog/NLog/blob/242177f1558824a7f6598205ba988e8a1ec26ad9/src/NLog/Config/ConfigurationItemFactory.cs#L260

I just sow your comments and I realized I was configuring the InternalLogger after I added some targets and stuff, so I moved it before doing anything else and removed the lines where I loaded the NLog.Web assembly and I saw in the internal log that it wasn't loaded, apparently the piece of internal log I pasted you wasn't the place where loaded assemblies are logged.
In any case loaded assemblies are logged, the NLog.Web is not automatically loaded.
Thank you very much for your help

So you get it resolved but auto loading isn't working?
Can you post the internal logs so we can fix the auto loading?

this is my internal log:
2015-12-15 09:56:50.1268 Debug ScanAssembly('NLog, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=5120e14c03d0593c')
2015-12-15 09:56:50.1629 Debug Start auto loading, location: C:\Users\{user}\.dnx\packages\NLog\4.2.2\lib\net45
2015-12-15 09:56:50.1629 Debug Auto loading done
2015-12-15 09:56:50.1629 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1629 Trace Scanning LongDateLayoutRenderer 'Layout Renderer: ${longdate}'
2015-12-15 09:56:50.1629 Debug Setting 'UppercaseLayoutRendererWrapper.uppercase' to 'true'
2015-12-15 09:56:50.1629 Trace Wrapping LevelLayoutRenderer with UppercaseLayoutRendererWrapper
2015-12-15 09:56:50.1629 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1629 Trace Scanning LevelLayoutRenderer 'Layout Renderer: ${level}'
2015-12-15 09:56:50.1629 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning UppercaseLayoutRendererWrapper 'Layout Renderer: ${uppercase}'
2015-12-15 09:56:50.1775 Trace  Scanning SimpleLayout ''''
2015-12-15 09:56:50.1775 Trace   Scanning LevelLayoutRenderer 'Layout Renderer: ${level}'
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning LoggerNameLayoutRenderer 'Layout Renderer: ${logger}'
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning MessageLayoutRenderer 'Layout Renderer: ${message}'
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning ShortDateLayoutRenderer 'Layout Renderer: ${shortdate}'
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning LongDateLayoutRenderer 'Layout Renderer: ${longdate}'
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning LevelLayoutRenderer 'Layout Renderer: ${level}'
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning LoggerNameLayoutRenderer 'Layout Renderer: ${logger}'
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning MessageLayoutRenderer 'Layout Renderer: ${message}'
2015-12-15 09:56:50.1775 Debug Setting 'XmlEncodeLayoutRendererWrapper.xmlEncode' to 'true'
2015-12-15 09:56:50.1775 Trace Wrapping AllEventPropertiesLayoutRenderer with XmlEncodeLayoutRendererWrapper
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning AllEventPropertiesLayoutRenderer 'Layout Renderer: ${all-event-properties}'
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning XmlEncodeLayoutRendererWrapper 'Layout Renderer: ${xml-encode}'
2015-12-15 09:56:50.1775 Trace  Scanning SimpleLayout ''''
2015-12-15 09:56:50.1775 Trace   Scanning AllEventPropertiesLayoutRenderer 'Layout Renderer: ${all-event-properties}'
2015-12-15 09:56:50.1775 Debug Registering target LogFile: NLog.Targets.FileTarget
2015-12-15 09:56:50.1775 Trace FindReachableObject<NLog.Internal.IRenderable>:
2015-12-15 09:56:50.1775 Trace Scanning MachineNameLayoutRenderer 'Layout Renderer: ${machinename}'

hope this helps

Thanks, it does!

new issue created, so close this one.


Provide a way to access logs through the CLI

Provide a way to access the logs from CLI passing through the CLI on the remote machine.
This use bat to show the logs.

Hi Philipp, I think I have addressed all the pending issue with this PR. Let me know if there anything I have missed.


SAK-44561 Error parsing the date/time PA SYSTEM Create Banner

@adrianfish
Hi, Adrian;
Thanks for your comment.
I think the line was no longer used, after the different tests I did.
That's why I removed it.
But you're right.
Let's play safe. I added the code you wrote for me.
Thanks again.


Typed Headers properties

Seems like the headers are only exposed to the user as a Map<String, String>, it would be nice if we can type them accordingly as it's already done for queryParameters etc.

At the moment I'm in the rabbit hole 🕳 🐇  of the integration tests 😰
I can take it, but it will go very low in my priorities, hard to find time for this in the next 2/3 weeks realistically.

Thanks Vincent. On a related note, please avoid making any changes/updates to the docs in this repo. I'm in process of migrating to learn.microsoft.com, so any changes here are at risk of getting lost :D.

thanks for letting me know. When was the cuttoff date? I think I've made a few contributions in the last few days.

I started on it before my vacation. I'll double-check for updates to the files since that time.

how manual is the content migration work? or are you simply moving the md files?
and how long are we talking before the switch?
the reason I'm asking is if it's not too much work, we could keep contributing to the documentation here until you get to the switch date, and before things are switched, you could do a final diff.

There's a little more to it than just copying the MD files over. I anticipate completing the migration work this week, but we'll need to go through the "go-live" process with the Learn team.
Once I have the files migrated into the Learn repo, you can make your contributions/changes there.

@jasonjoh are we configured to allow community contributions on the docs yet?

@andreaTP sorry for the long wait here, there were some documentation infrastructure changes that took a while and were not under our control here.
The source for the section has now moved here it's roughly organized in a similar way that it was with the GitHub.io site.
With that in mind, are you willing to submit a pull request for query parameters and headers?

I can pick this up, but, at this point, it will be just a "warning" to the limitation/decision.
If you are happy with this, I'll do the change.

Sure, it'll be a start. Thanks for the help.


Gatling 3.12.0 problems with multiple logs and reportsOnly option

Until Gatling Version 3.11.5 I was able to run mvn gatling:test -Dgatling.reportsOnly=mysimulation where mysimulation contained multiple log files. From my perspective all log files have been consodered for creating a report.
Now with 3.12 it fails with an error, as did does not find a file named simulation.log. Naming one of the files will succeed the command, but as expected only parse one file, not all.
I have a minimum example, it comes without code, only 2 log files. It is configured for Gatling 3.12, by changing the version it will start working again.
example.zip

Hi,
Sorry but that's something we don't intend to support. Distributed tests are featured in Gatling Enterprise.

@slandelle so it was a bug it was working before then? Could you please mention this in the release notes then? Or did I miss it? I am pretty sure this has impact to some users other than me.

https://github.com/gatling/gatling/blob/3.9/src/docs/content/guides/scaling_out/index.md#scaling-out-with-gatling-open-source
Seems like it used to be supported also in the open source edition....now the on recent branches/releases also the docs are gone. I am a bit disappointed :(


Shared Network is not having host public internet access

BEFORE SUBMITTING YOUR ISSUE, PLEASE LOOK AT THE PINNED ISSUES AND USE THE SEARCH FUNCTION TO MAKE SURE IT IS NOT ALREADY REPORTED. ALWAYS COMMENT ON AN EXISTING ISSUE INSTEAD OF MAKING A NEW ONE.
Describe the issue
Accordingly to the docs
Shared Network Traffic is routed directly by the host operating system and the guest shares a VLAN with the host. Services running on the guest and the host can see each other without additional configuration...
Therefore, I am expecting to access internet through MacOS, but it did not.
VMs within the Shared Network should able to communicate each other, but it did not.  Both VMs is having same IP (<IP_ADDRESS>/24   <IP_ADDRESS>) when started in UTM.
Configuration

UTM Version:  V.4.0.6 (56) and v3.1.5
macOS Version:  Monterey 12.6
Mac Chip (Intel, M1, ...):  M1

After change MAC address within shared network setting, I am getting different IPs, but still no public internet access through OS, when OS host is able to.

Using bridge without any advanced setting seems provided the VMs communication.

I was going back to screen capture the ping status when both VMs is set to shared network, some how magically, it allows me to have the VMs communication AND the internet access via host.
My guess is that NOT having different MAC address initially on the VMs impacted UTM to start VM.
By set the MAC address differently on VMs, and restarted VMs several time made it works as it designed.

OK, more no what might impact the 'Shared Network' status. After I connect to company VPN, the VM with shared network setting no longer able to connect public internet nor my company network.

OK, more no what might impact the 'Shared Network' status. After I connect to company VPN, the VM with shared network setting no longer able to connect public internet nor my company network.

Your VPN might disable IP Forwarding. That is the case with the AWS Client VPN.
My experience is -
Guest can access networks as expected (IP Forwarding is enabled)
After the hosts connects to the AWS Client VPN, the guest looses access to anything but the host. (IP Forwarding is disabled)
Manually enabling IP Forwarding restores connectivity from the guest.
After connecting your VPN (on the host), try enabling IP Forwarding on the host:
% sudo sysctl -w net.inet.ip.forwarding=1 net.inet.ip.forwarding: 0 -> 1


Bug when only destination for ID and not value is defined

Found a little bug, I think. When invoking the component I only had the destinationForSelectedId attribute defined and did not have destinationForSelectedValue defined. That used to work fine but at some point must have stopped working. It was bonking on line 137 in Typeahead.component, throwing the error "Syntax error, unrecognized expression: [id$=]" due to the blank destinationForSelectedValue attribute:

135					// if destinations are defined, set them too
136					j$('[id$={!destinationForSelectedId}]').val( id );
137					j$('[id$={!destinationForSelectedValue}]').val( value );

I fixed my issue by adding the destinationForSelectedValue attribute to the component call but wanted to let you know. Can't quite figure out why it used to work and stopped at some point.

Thanks! If you are interested in making a pull request with the fix we can review it and get it merged, otherwise we will take a look. @groundwired

Sorry I meant the fix was in my markup, not in your code.


Implement sensor interface for sidescan simulation

Mocks sidescan toggle service and published status message.
This PR closes #5

Looks perfect, thanks!


Have eigh check for hermitian/symmetric

A colleague had a bug in her program that we finally traced down to her call of linalg.eigh. If your input is not symmetric/Hermitian, eigh will return incorrect eigenstuff.
I'd suggest having eigh check that the input is symmetric/Hermitian.  Seems easy to accomplish, here's a suggestion for the beginning of eigh:
if not numpy.allclose(a, numpy.asmatrix(a).H):
    raise ValueError('expected symmetric or Hermitian matrix,\
                         try using numpy.linalg.eig instead')
(sorry about the indentation!)
I tried contributing but got bogged down in installing Fortran, missing packages, etc.  Would greatly appreciate if someone would take this up. Thanks!

If not an error, it would be nice if it threw a warning at least. I faced the same problem a few months ago.

This might be a documentation issue but the behavior is consistent. It is standard LAPACK behavior and the lower keyword is actually used to pick up the part of interest. As an example, you can pack two symmetric matrices in one array by just selecting upper/lower parts.

Okay, but at first glance (and for a novice user), the documentation says

Solve an ordinary or generalized eigenvalue problem for a complex Hermitian or real symmetric matrix

I think there should be something in the documentation that explains what happens when anything other than Hermitian Matrix is passed.

I agree that this should be a documentation fix. Most users aren't very familiar with LAPACK.


Task 9: Upgrade Data Description Missmatch

In Task 9: Upgrade Data, section single instance (of https://docs.microsoft.com/de-ch/dynamics365/business-central/dev-itpro/upgrade/upgrade-unmodified-application-to-v18#task-9-upgrade-data) it is described:

Run the data upgrade for the System Application, followed by the Base Application.
To run the data upgrade, use the Start-NavDataUpgrade cmdlet:

But the example does use a other command Start-NAVAppDataUpgrade.
So, it is unclear what the correct procedure and command it should be:

a.) generally use Start-NavDataUpgrade or
b.) Start-NAVAppDataUpgrade for each extension.

Is Start-NavDataUpgrade obsolet?

Dokumentdetails
⚠ Bearbeiten Sie diesen Abschnitt nicht. Er ist für die Verknüpfung von Problemen docs.microsoft.com ➟ GitHub erforderlich.

ID: ab367758-d435-42cd-a1e1-d0b89c33ad25
Version Independent ID: 4ea22d59-5d20-c0af-7bf8-e678c181b663
Content: Upgrading Version 15, 16, or 17 Base Application to Version 18 - Business Central
Content Source: dev-itpro/upgrade/upgrade-unmodified-application-to-v18.md
Service: dynamics365-business-central
GitHub Login: @jswymer
Microsoft Alias: jswymer

Hello, thanks for the feedback!
The text "To run the data upgrade, use the Start-NavDataUpgrade cmdlet" is incorrect as you point out. The cmdlet to use is Start-NavAppDataUpgrade cmdlet.
The Start-NavDataUpgrade cmdlet is not obsolete, just not used in this scenario. It's used in some upgrade scenarios for upgrading data to the new platform, for example, here.
We've fixed the article, and the update will be published soon.

Thank you for your fast response time.
By the way, this mismatch description is also in previous BC versions of the upgrade documentation.

Thanks again! We've also fixed the other instances. Hopefully, we've covered them all.


Multiple Markers at same X Axis(Vertical Level) but Different Y Axis(Horizontal Level)

Question
First and foremost, I would like to extend my gratitude to @louisnw01 for providing such a valuable and resourceful contribution.
I am interested in plotting the entry price along with several levels as follows:
Entry Price - Represented by the First Marker
PT Level 1 - i.e., Entry price +1% - Represented by the Second Marker
PT Level 2 - i.e., Entry price +2% - Represented by the Third Marker
SL Level 1 - i.e., Entry price -1.5% - Represented by the Fourth Marker
Code example
No response

Hey @mehboob-dev,
You could use a combination of ray lines to achieve something very similar.
Louis


Double is unsuitable data type for price

I think we should change data type of price fields to decimal because double is not good choice to work with money.
There are several references for that.
http://stackoverflow.com/questions/316727/is-a-double-really-unsuitable-for-money
http://stackoverflow.com/questions/1165761/decimal-vs-double-which-one-should-i-use-and-when

ok

I am looking into this.
A lot of interfaces will change, breaking things.

I am having issues with the migrations for this. See the issue I opened in the Orchard repo https://github.com/OrchardCMS/Orchard/issues/7615.
The table is ProductPartRecord. The column DiscountPrice
I think I was able to change every other price to decimal, but I cannot seem to find how to fix the table there.

Great work. Thank you all so much.

Not a problem.
@armanforghani would you share the url of any ecommerce you have live that uses Nwazet? I am curious as to what everyone else is using it for.


chore(auth-mailchimp-sync): rename extension

This PR renames the extension to Sync Auth with Mailchimp

Closing as not needed


Logging

Hello,
I would like to create a logger via middleware in an isolated-function with asp.net core integration.
I need to log the RequestBody and ResponseBody.
The extension UseHttpLogging() is not available.
Could someone point me how to start ?
Thanks

In aspnet, the UseHttpLogging extension method registers the HttpLoggingMiddleware to the request processing pipeline. As of today, we do not have any similar built-in middleware exist in functions.
But, you should be able to build this yourself in functions. Create a function middleware, and inside the middleware you can get the HttpContext using the GetHttpContext extension method on FunctionContext instance. From that you can do whatever logging you want to do.
Check our sample project in the repo. Here is the line to get HttpContext inside your function middleware.

Hello @kshyju,
Thanks for your feedback.
I already have a middleware doing what I want for asp.net, but I didn't find a way to re-use it in a function context application.
The tricky part was that the asp.net middleware does not implement IFunctionsWorkerMiddleware and the signature of the Invoke method is not the same.
IFunctionsWorkerMiddleware.Invoke( FunctionContext functionContext, FunctionExecutionDelegate next )
asp.net middleware: InvokeAsync( HttpContext context )
But finally, I managed to do it after lots of trial and errors by implementing this code in a IFunctionsWorkerMiddleware
public async Task Invoke( FunctionContext functionContext, FunctionExecutionDelegate next )
{
    var httpContext = functionContext.GetHttpContext();
    var loggingMiddleware = new LoggingMiddleware( new RequestDelegate( async ( httpContext ) =>
    {
        await next.Invoke( functionContext );

        //these lines are needed to catch the response body, needs to be used with custom Ok and BadRequestResult
        if ( functionContext.GetInvocationResult()?.Value is IActionResult actionResult )
        {
            ActionContext actionContext = new ActionContext( httpContext, httpContext.GetRouteData(), new ActionDescriptor() );
            await actionResult.ExecuteResultAsync( actionContext );
        }
    } ), this.loggingMiddlewareOptions, this._logger );

    await loggingMiddleware.InvokeAsync( httpContext );
}

Thanks

the asp.net middleware does not implement IFunctionsWorkerMiddleware and the signature of the Invoke method is not the same.

Correct. This is by design. Keep in mind that azure functions are not just supporting http triggers, they support a wide variety of event triggers. The functions middleware implementation was created to handle those use cases.
But the extension method shared above give you access to HttpContext and you are free to do whatever you want to do with it. Looks like you got your stuff working.
Closing as answered. Thanks!


chore(docs): separate request and response messages into separate nav items

organizes the TOC to separate Requests and Responses in the navigation, separate from Messages

This is not possible with the current codebase using Reflection or any other method (that would be reliable). So we will table this until we can use the startApiCall method descriptors and/or V2 method signatures.


Data Science with Python : Usage of get_dummies to create Dummy Variables with Pandas

Welcome to 'DSWP' Team, good to see you here
This issue will helps readers in giving all the guidance that one needs to learn about Usage of get_dummies to create Dummy Variables with Pandas Tutorial to Usage of get_dummies to create Dummy Variables with Pandas and how it's applied using sample code.
To get assigned to this issue, add your serial numbers mentioned in the spreadsheet of "Data Science with Python", the approach one would follow and choice you prefer (Documentation, Audio, Video). You can go with all three or any number of options you're interested to work on.
If you had referred any resources, add them up in "DS Resources". Similarly if you had used datasets, include them in "DS Datasets".
Domain : Machine Learning
Mentors Assigned : Dhruv Bajaj / Kareem Negm
Points to Note :
The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Changes should be made inside the Datascience_With_Python/ directory & Datascience_With_Python branch.
Follow Contributing Guidelines & Code of Conduct before start Contributing.
This issue is only for 'GWOC' contributors of 'DSWP' domain.
All the best. Enjoy your open source journey ahead. 😎

/content/globalterrorismdb_0718dist.csv

/assign

Bot says you have more than 3 open issues under you. Is it? @ayushijindal

No

It's still open as it's assigned to multiple contributors. So it can't be closed until all the persons assigned to that issue doesn't complete their PR. Issue assigned to @ayushijindal for documentation

Approach : Using a dataset to explain the Usage of get_dummies to create Dummy Variables with Pandas
Format   :  Documentation
Serial No. : 695
Batch : 18
@prathimacode-hub my humble request for the allotment of  this issue

Issue assigned to @deepthi1107 for video contribution

Hello, I am Deepthi M with serial number:198, Batch-5. I would like to do audio on this issue.
Approach: A detail explanation with code

Issue assigned to @deepthi1107 for audio contribution


Invoices

Hi everyone, it's been a while since I added any functionality. It is finals season after all, but I was able to get the add, edit, and delete functionality done for invoices.

Thank you for your insight @vercel! I'm glad that everyone will be able to use my application to deal with their invoices.


Fix flakiness of commands_test

Wait for completion of Hot Reload
Wait for completion of Restart
Fallback if checkHealth throws METHOD_NOT_FOUND.
We try to wait for the service extensions to be registered and retry.

cc @yjbanov
LGTM


[Hub] read large training data should work with cellxgene urls

https://github.com/scverse/scvi-tools/blob/b2858d1fe33c897f8d6f46d71ecad4c6a7f72b4a/scvi/hub/hub_model.py#L299
We can use this gist for an idea of how to get cellxgene data
https://gist.github.com/ivirshup/f1a1603db69de3888eacb4bdb6a9317a
In fact, we can write a function in scvi.data that takes a cellxgene link and downloads the data

We can use what was done in #1880


搜索候选项不能键盘上下键移动选择，且选择项没有前景色区分

搜索的时候弹出的下拉栏不能通过键盘来选择，且没有颜色来区分当前是哪个选择项。只能通过鼠标来选择搜索结果

bug已收到，后续有空了会改的。如果你能提交PR，也非常感谢

Same problem here. Excellent theme. It would be great if it was fixed.

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
🎉 Congratulations! You've won a share of the $1.500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. But that's not all—connect now, and you'll instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1.500k in BNB! Plus, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, seize the chance to win up to $20,000—it's your golden opportunity!
Winners: @

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
🎉 Congratulations! You've won a share of the $1.500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. But that's not all—connect now, and you'll instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1.500k in BNB! Plus, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, seize the chance to win up to $20,000—it's your golden opportunity!
Winners: @gfoss, @t0hka1, @ahmedmokeddem, @phyzixmusic, @iotaaxel, @knucklesuganda, @rushairer


Improved setup.py to make the module more popular and easier to find

Key Enhancements:

Classifier Improvements: Additional classifiers categorize the library, making it more discoverable to developers interested in blockchain technology.
Expanded Keywords: More specific keywords improve searchability and relevance in the context of blockchain and decentralized applications.
Documentation and support links: Links to work samples, source code, and issue tracking provide users with the resources they need, facilitating better interaction with the module.

#setup.py

import setuptools

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

setuptools.setup(
    name="tonutils",
    version="0.0.9",
    author="Nessshon",
    description=(
        "Tonutils is a high-level, object-oriented Python library "
        "designed to facilitate seamless interactions with the TON blockchain."
    ),
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/nessshon/tonutils",
    project_urls={
        "Examples": "https://github.com/nessshon/tonutils/tree/main/examples",
        "Source": "https://github.com/nessshon/tonutils",
        "TON Blockchain": "https://ton.org/",
    },
    packages=setuptools.find_packages(exclude=["examples", "tests*"]),
    python_requires=">=3.10",
    install_requires=[
        "aiohttp~=3.9.5",
        "pycryptodomex~=3.20.0",
        "PyNaCl~=1.5.0",
        "pytoniq-core~=0.1.36",
    ],
    extras_require={
        "pytoniq": ["pytoniq~=0.1.39"],
    },
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Financial and Insurance Industry",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: Blockchain",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Framework :: AsyncIO",
        "Environment :: Console",
    ],
    keywords="TON, The Open Network, TON blockchain, blockchain, crypto, asynchronous, smart contracts",
    license="MIT",
)

@bohd4nx Thank you for your contribution!


[chore]: Added New RNE Playground: Tabs

fixes #107 , Adding Tab Component Playground:

Added in the side menu as well

How does it look?
In Side Menu

and

Added Enum into tabs variant prop.(change from above screenshot)

@flyingcircle, please review


pkg/trace: add appsec span tag obfuscation

What does this PR do?
Obfuscate _dd.appsec.json tags on http, web and rpc spans against sensitive data.
AppSec events contain security rule inputs, called parameters here, that may contain sensitive data which need to be obfuscated. It is made of two regular expressions: one for the parameter keys (ie. original security rule parameter field names) and another one for the parameter value and highlight values.
The obfuscator is always enabled and obfuscates values with whose keys can be password, pwd, token, api_token and so on.
Important note: the implementation is permissive enough to let new and different appsec json payloads to happen without having to immediately update the agent
The obfuscation algorithm loops into each parameter of each appsec security events so that:

It firstly tries to match the parameter key against the key regular expression. When it matches, the parameter value and highlights are obfuscated regardless of the value regular expression.
If no parameter key was matched, then the value regular expression is executed on the parameter value and highlights.

Motivation
Sensitive data obfuscation.
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes
This change is 100% covered by the Go tests.
System tests will be added in the next few days to have proper integration tests on this feature with other tracing libraries.
Reviewer's Checklist

[x] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[x] The appropriate team/.. label has been applied, if known.
[x] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[x] A release note has been added or the changelog/no-changelog label has been applied.
[x] Changed code has automated tests for its functionality.
[x] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[x] If applicable, the need-change/operator and need-change/helm labels have been applied.
[x] If applicable, the config template has been updated.

LGTM overall, thanks for all the tests.
One small comment about a specific test.

Closing this PR as we decided to do in the libraries in the end in order to embrace the new APM architecture principles.


Test casse for Sept. release

Test Owner
@TobeyQin
Test Items

view market list

[x] refresh to view market list
[x] check if all items list in the page
[x] check if filter works

view market item detail

[x] click an item to item detail page and see if any bugs
[x] back to market list

submit and delete

[x] check if UI and config match in submit job page
[x] submit an item template to pai as job and run to see if success

check known bug fixed

[x] check if corresponding data team storage is checked

Closed since finished


Something is broken with examples section

As in

I'm gonna revert https://github.com/ManimCommunity/manim-website/commit/60ed9a3654860bf13dd026c9cf85ca1f9b8f6834 until I find what going on.

Now I feel having CI for previewing the site is better to avoid broken deploys.


Improve GUI

The current GUI, i.e. the default, uncustomized HTML, is ugly to look at. Use some styling libraries like Bootstrap or Materialize to do this.

Duplicate of #13


Should type of 'Attachment' be 'ItemCollection'?

Currently, the property Attachement in Object struct and some other struct has type Item. Since from the Activitypub Vocabulary Spec (Example 66) shown that attachment field can be JSON array, so shouldn't Attachement be type ItemCollection? Or I miss something?
Activitypub Vocabulary Example 66
{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Note",
  "name": "Have you seen my cat?",
  "attachment": [
    {
      "type": "Image",
      "content": "This is what he looks like.",
      "url": "http://example.org/cat.jpeg"
    }
  ]
}

Ex. object.go
type Object struct {
        /* .... */

	// Attachment identifies a resource attached or related to an object that potentially requires special handling.
	// The intent is to provide a model that is at least semantically similar to attachments in email.
	Attachment Item `jsonld:"attachment,omitempty"`

       /* .... */
}

Ex. actor.go
type Actor struct {
        /* .... */

	// Attachment identifies a resource attached or related to an object that potentially requires special handling.
	// The intent is to provide a model that is at least semantically similar to attachments in email.
	Attachment Item `jsonld:"attachment,omitempty"`

       /* .... */
}

Hi @snoymy, sorry for the very late reply, but I rarely visit github. The preferred support channel for Go-ActivityPub is through one of its mailing lists.
Coming back to your question, the Item data type is an interface that is satisfied by the slice type ItemCollection, therefore the definition of the Attachment property is correct in using it, but you are also correct in assuming it can contain an ItemCollection, which is what usually happens. The json deserialization that we're using, can build the types that are represented dynamically, ie, if it's an array it creates a ItemCollection slice.
In this package the types that fulfill the Item interface are the distinct structs for each vanilla ActivityPub object (eg, Activity, Object, Actor, Collection), the ItemCollection type and the IRI stringy type.
I hope this helps.


Suggestion: Build Facility show hint on whats missing or needed to build

Build Facility after capturing a sector should show a hint on what is missing or what is needed from/in storage if it fails (or needed) to build.

It is already.
build_fac_remote_call.sqf
Line 90
hint format [localize "STR_PRODUCTION_FACBUILD_ERROR",_price_s,_price_a,_price_f];
if you can't afford the factory there will be a hint of what is needed to build it.
STR_PRODUCTION_FACBUILD_ERROR:
"Not enough resources.\n\nYou need:\n%1 Supplies\n%2 Ammo\n%3 Fuel"

Or do you mean something different?

It's not showing up then. I will try it again on the next sector.

I can duplicate no message showing in the hint area top right or anyplace else.

Oh man, you're so right.
As it runs on the server and the hint won't be "remoteExec" on the client and only runs on the server the client will never see it (or he hosting a local MP).
How could I missed that.
Sorry for that, but many thanks for the heads up.

np trying to test between planting. That's why I didnt make the event today


Improve Godoc support

Infracost has excellent documentation and contributor guidelines. However, it lacks detailed godoc support. I think enhancing godoc support would improve the contributor process, especially with new contributors. Here's my reasoning:
In general whenever I'm working with 3rd party sdks/packages I do a glance over the Readme and examples, but, I heavily rely on code documentation to inform me on how to use the package/lib. A good example of this in the net/http package:
// RoundTripper is an interface representing the ability to execute a
// single HTTP transaction, obtaining the Response for a given Request.
//
// A RoundTripper must be safe for concurrent use by multiple
// goroutines.
type RoundTripper interface {
	// RoundTrip executes a single HTTP transaction, returning
	// a Response for the provided Request.
	//
	// RoundTrip should not attempt to interpret the response. In
	// particular, RoundTrip must return err == nil if it obtained
	// a response, regardless of the response's HTTP status code.
	// A non-nil err should be reserved for failure to obtain a
	// response. Similarly, RoundTrip should not attempt to
	// handle higher-level protocol details such as redirects,
	// authentication, or cookies.
	//
	// RoundTrip should not modify the request, except for
	// consuming and closing the Request's Body. RoundTrip may
	// read fields of the request in a separate goroutine. Callers
	// should not mutate or reuse the request until the Response's
	// Body has been closed.
	//
	// RoundTrip must always close the body, including on errors,
	// but depending on the implementation may do so in a separate
	// goroutine even after RoundTrip returns. This means that
	// callers wanting to reuse the body for subsequent requests
	// must arrange to wait for the Close call before doing so.
	//
	// The Request's URL and Header fields must be initialized.
	RoundTrip(*Request) (*Response, error)
}

After reading this code block I'm pretty confident in how I should implement a http.RoundTripper in my code and all it took was a navigate to definition in my code editor.
A concrete example of how improving godoc support could help contributors is with new resource additions. With this process, contributors deal with a number of different infracost  domain types that currently don't have any code documentation, e.g. schema.Resource :
type Resource struct {
	Name              string
	CostComponents    []*CostComponent
	SubResources      []*Resource
	HourlyCost        *decimal.Decimal
	MonthlyCost       *decimal.Decimal
	IsSkipped         bool
	NoPrice           bool
	SkipMessage       string
	ResourceType      string
	Tags              map[string]string
	UsageSchema       []*UsageItem
	EstimateUsage     EstimateFunc
	EstimationSummary map[string]bool
}

Adding some documentation to some of the fields here could be invaluable for new contributors learning what the different parts of a Resource is and what they need to set explicitly.
For example, new contributors coming to this struct might have the following questions:

It's not immediately obvious what Tags are and if they're required for valid output?
Should I explicitly set SkipMessage if the IsSkipped field is true? Where does IsSkipped affect (output/breakdown/e.t.c)?
Does adding NoPrice skip a resource from the output, and if so why use that over IsSkipped ?
Do I need both HourlyCost & MonthlyCost ?
When should I use EstimateUsage and what information should that return? (although I realise that the actual type of EstimateFunc does have docs)
What's the difference between CostComponents and SubResources ? When should I use one over the other and how does this directly affect resource outputs?

Just to name a few. All these questions could be sorted with some doc blocks directly in the code.
Now I realise that adding code comments can be a bit of a chore. Especially on a codebase that's already the size of infracost. So I thought it best to open this issue to discuss the merits of adding these. It might be that after discussion it just doesn't warrant the effort that it would take to implement.
I would love to see more godoc implementation across the codebase, but I realise not every engineer navigates code this way.
If we do decide that adding more in-depth comments would be worth our time, it might be best to prioritise which areas/structures in the codebase would have the most impact and tackle those first. From my initial forays into the codebase I think these areas would benefit from more explicit commments:

schema.Resource
schema.CostComponent
schema.UsageItem
resources.PopulateArgsWithUsage
resources.CoreResource

With these implemented that would pretty much cover the add new resource flow.

@hugorut any thoughts on what the next step for this could be? or does resourcegen already handle this?

@alikhajeh1 I think as a team we've agreed to support more comments moving forward. Additionally, as you've mentioned resourcegen encourages contributors to write godoc out the box. The rest of the codebase we can slowly iterate on when we're refactoring/editing files. It doesn't have to be a big bang approach. So, with that said I think we can close this issue.

Thanks @hugorut!


Alert user if URL provided is somehow invalid

There is currently no feedback to the user, without them checking the console log, if they fetch a url that fails.
Possible issues include:

404 or 500 errors
Invalid domain
Cross Origin error
Better error message if file is not JSON

Simple alert message with what error occurred should suffice.

Fixed in PR https://github.com/oasis-open/cti-stix-visualization/pull/21


Crash when deploying app with same name

On machine 1 I ran the following commands to deploy an app to my Android phone:
flutter create foo_test
flutter run

I then unplugged the phone and plugged it into a different machine. On this machine I ran the exact same sequence of commands. This results in the following crash on machine 2:
C:\src\crashTest> flutter run
Updating flutter tool...
Running 'flutter packages get' in crashTest...        0.7s
Launching lib/main.dart on Nexus 6P in debug mode...
Running 'gradle assembleDebug'...                    13.0s
Built build\app/outputs/apk/app-debug.apk (21.9MB).
Installing build\app/outputs/apk/app.apk...              |
Oops; flutter has exited unexpectedly: "Exit code 1 from: C:\Users\goderbauer\AppData\Local\Android\sdk\platform-tools\adb -s 84B5T15A10012703 install -r build\app/outputs/apk/app.apk".
Sending crash report to Google.
Crash report sent (report ID: 6c4b43f930000000)
Crash report written to C:\src\crashTest\flutter_04.log;
please let us know at https://github.com/flutter/flutter/issues.

The crash report is reproduced  at the bottom of this report. I believe the problem here is that an app with the same name is already installed on my phone (from machine 1) and flutter is unable to deploy a different app (with the same name) to the phone (from machine 2). Instead of crashing, it should give a more helpful error message explaining this.
Uninstalling the app and trying again fixes the problem.

Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter run
exception
String: Exit code 1 from: C:\Users\goderbauer\AppData\Local\Android\sdk\platform-tools\adb -s 84B5T15A10012703 install -r build\app/outputs/apk/app.apk
#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:211)
<asynchronous suspension>
#1      AndroidDevice.installApp (package:flutter_tools/src/android/android_device.dart:236)
<asynchronous suspension>
#2      AndroidDevice._installLatestApp (package:flutter_tools/src/android/android_device.dart:276)
<asynchronous suspension>
#3      AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:330)
<asynchronous suspension>
#4      HotRunner.run (package:flutter_tools/src/run_hot.dart:202)
<asynchronous suspension>
#5      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:291)
<asynchronous suspension>
#6      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:151)
<asynchronous suspension>
#7      RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:205)
<asynchronous suspension>
#8      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:121)
#9      CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:262)
<asynchronous suspension>
#11     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#12     Future.Future.sync (dart:async/future.dart:208)
#13     CommandRunner.run (package:args/command_runner.dart:109)
#14     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:157)
#15     run.<anonymous closure> (package:flutter_tools/executable.dart:140)
<asynchronous suspension>
#16     AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#17     AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#18     _rootRun (dart:async/zone.dart:1120)
#19     _CustomZone.run (dart:async/zone.dart:1001)
#20     runZoned (dart:async/zone.dart:1465)
#21     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#22     run (package:flutter_tools/executable.dart:113)
<asynchronous suspension>
#23     main (package:flutter_tools/executable.dart:66)
<asynchronous suspension>
#24     main (file:///C:/src/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#25     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)

flutter doctor
[âœ“] Flutter (on Microsoft Windows [Version 10.0.14393], channel master)
    â€¢ Flutter at C:\src\flutter
    â€¢ Framework revision 55f334681b (5 hours ago), 2017-04-24 09:46:49 -0700
    â€¢ Engine revision a5b64899c9
    â€¢ Tools Dart version 1.23.0-dev.11.11

[âœ“] Host Executable Compatibility
    â€¢ Downloaded executables execute on host

[âœ“] Android toolchain - develop for Android devices (Android SDK 25.0.2)
    â€¢ Android SDK at C:\Users\goderbauer\AppData\Local\Android\sdk
    â€¢ Platform android-25, build-tools 25.0.2
    â€¢ Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    â€¢ Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[âœ“] Android Studio (version 2.3)
    â€¢ Android Studio at C:\Program Files\Android\Android Studio
    â€¢ Gradle version 3.2
    â€¢ Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[âœ“] IntelliJ IDEA Community Edition (version 2017.1)
    â€¢ Dart plugin version 171.4249.16
    â€¢ Flutter plugin version 13.0

[âœ“] Connected devices
    â€¢ Nexus 6P â€¢ 84B5T15A10012703 â€¢ android-arm â€¢ Android 7.1.1 (API 25)

I tried to do this by giving a flutter test app the same applicationId as an already installed application (in this case, com.discord).  The result was the Discord app was uninstalled and replaced with the flutter app. Cue arrested developement i_dont_know_what_i_expected.gif
jonahwilliams-macbookpro:discord jonahwilliams$ flutter run
Launching lib/main.dart on Pixel 2 in debug mode...
Initializing gradle...                                       0.9s
Resolving dependencies...                                    2.1s
Gradle task 'assembleDebug'...
Gradle task 'assembleDebug'... Done                         14.8s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...                  2.7s
Error: ADB exited with exit code 1
adb: failed to install /Users/jonahwilliams/Documents/discord/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
Uninstalling old version...
Installing build/app/outputs/apk/app.apk...                  3.7s
Syncing files to device Pixel 2...                           1.5s

🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Pixel 2 is available at: http://<IP_ADDRESS>:63124/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".

I think its safe to say that this has been fixed


snscrape: 0.2.0 -> 0.3.0

Motivation for this change
https://github.com/JustAnotherArchivist/snscrape/commits/v0.3.0
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I tested 0.3.0 on twitter and instagram and it worked, unlike 0.2.0 now.

@GrahamcOfBorg build snscrape

@GrahamcOfBorg build snscrape


[PDI-17336] HTTP Client step doesn't respect the encoding

HTTP Client step would not handle the content encoding if not specified in the response entity.
The value specified in the step dialog was never used in the code path.
@pamval @cravobranco @bmorrise @mbatchelor

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

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

Changed files
  engine/src/main/java/org/pentaho/di/trans/steps/http/HTTP.java
  engine/src/test/java/org/pentaho/di/trans/steps/http/HTTPTest.java

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

:warning: Coverage Changes (click to expand)
org.pentaho.di.job.entries.getpop.MailConnectionMeta

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

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -0.1% :small_red_triangle_down:

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

Method Change: -1% :small_red_triangle_down:

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

Branch Change: -1% :small_red_triangle_down:
Complexity Change: -1% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change: -0.1% :small_red_triangle_down:

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

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.singlethreader.SingleThreaderMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.symmetriccrypto.symmetriccryptotrans.SymmetricCryptoTransMeta

Branch Change: -3.3% :small_red_triangle_down:
Complexity Change: -1.8% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceupdate.SalesforceUpdateMeta

Instruction Change: -0.2% :small_red_triangle_down:

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

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

Changed files
  engine/src/main/java/org/pentaho/di/trans/steps/http/HTTP.java
  engine/src/test/java/org/pentaho/di/trans/steps/http/HTTPTest.java

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

:warning: Coverage Changes (click to expand)
org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change: -0.4% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -0.1% :small_red_triangle_down:

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

Branch Change: -3% :small_red_triangle_down:
Complexity Change: -3.2% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:
Line Change: -0.7% :small_red_triangle_down:

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

Branch Change: -3.3% :small_red_triangle_down:
Complexity Change: -3.9% :small_red_triangle_down:

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

Instruction Change: -0.1% :small_red_triangle_down:

@cravobranco, PR updated with requested changes.

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

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

Changed files
  engine/src/main/java/org/pentaho/di/trans/steps/http/HTTP.java
  engine/src/test/java/org/pentaho/di/trans/steps/http/HTTPTest.java

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

:warning: Coverage Changes (click to expand)
org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change: -0.8% :small_red_triangle_down:
Complexity Change: -1% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

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

Instruction Change: -0.1% :small_red_triangle_down:

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

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

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

Branch Change: -3% :small_red_triangle_down:
Complexity Change: -3.2% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:
Line Change: -0.7% :small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change: -0.1% :small_red_triangle_down:

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

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

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

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta

Branch Change: -2.6% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.ui.repository.pur.repositoryexplorer.model.UISecurityRole

Branch Change: -1.8% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.5% :small_red_triangle_down:


Generate SSHFP DNS records

Running ssh-keygen -r nine.testrun.org. on the server generates this:
root@nine:~# ssh-keygen -r nine.testrun.org.
nine.testrun.org. IN SSHFP 1 1 dba387c91a3e322b0e6913a148b312e8118a8e3f
nine.testrun.org. IN SSHFP 1 2 5128ef50b2e4fd86a79fa685e2aa0fa7ba1255cdb35ed18ed299a8ece4c2fb57
nine.testrun.org. IN SSHFP 3 1 376642ffe3e546ad6bf3eb9a261ecace439e1c37
nine.testrun.org. IN SSHFP 3 2 ebd632f02d45a7bce6ca8b40e666e7e9abfcf44d04fda5b2fc5b2957f9bfa44e
nine.testrun.org. IN SSHFP 4 1 77b36179c8d024e2a59885fb74bd786990d0142e
nine.testrun.org. IN SSHFP 4 2 014bfe14ffa38da8857b6bfa59f28b73d52756a553dc66c1b4e172d09e70abf1

This is only useful if DNSSEC is supported and the client uses VerifyHostKeyDNS, but does not hurt to add on all chatmail servers in any case.

Works

please be more verbose why you want to have this.  We are not using DNSSEC on nine, are we?  Is any chatmail service using DNSSEC currently?  Is SSHFP a crucial bit missing? Could SSSHFP be useful without DNSSEC as someone who hacks a chatmail server can not neccessarily also change DNS?

Yes, I use it allways, even with "Koffer". It is suggested as a security
add on to avoid hike the ssh login. The public key on the server can be
attacked. With comparing the fingerprint, this fault is found faster and -
may be - automaticly.
But: It means, to comply only use ssh key with cmddeploy. And on the
system.
The key, which is used by running cmddeploy first time could be recorded in
DNS.
holger krekel @.***> schrieb am Mi., 3. Apr. 2024,
11:57:

please be more verbose why you want to have this. We are not using DNSSEC
on nine, are we? Is any chatmail service using DNSSEC currently? Is SSHFP a
crucial bit missing? Could SSSHFP be useful without DNSSEC as someone who
hacks a chatmail server can not neccessarily also change DNS?
—
Reply to this email directly, view it on GitHub
https://github.com/deltachat/chatmail/issues/171#issuecomment-2034119081,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK35VR7T3S6LBYX3Q6ENFVTY3PHCLAVCNFSM6AAAAABBT6NGH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZUGEYTSMBYGE
.
You are receiving this because you commented.Message ID:
@.***>

Agreed!
link2xt @.***> schrieb am Fr., 21. Juni 2024, 17:04:

This is not really related to chatmail and more to SSH configuration, so I
on stable servers this can be done once if needed. Let's close this for now
unless someone is interested enough in making it into a PR.
—
Reply to this email directly, view it on GitHub
https://github.com/deltachat/chatmail/issues/171#issuecomment-2182927113,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK35VR7O2IRH7NAGXQNU4STZIQ6IZAVCNFSM6AAAAABBT6NGH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSHEZDOMJRGM
.
You are receiving this because you commented.Message ID:
@.***>


fix: adding sysvlong to mp_abort also

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Error: Model 'gpt-4' is unavailable in openai.ts

I encountered an error while trying to use the GPT-4 model (GPT-3.5-turbo works fine) within the project. The error message is as follows:
Agent 1 encountered the following problem while attempting to take action:
Error: Model 'gpt-4' is unavailable.
    at task (C:\Microsoft\legion\src\openai.ts:35:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async C:\Microsoft\legion\src\make-decision.ts:22:29

Please investigate this issue and provide guidance on how to resolve it. Thank you!

This means you don’t have GPT-4 access. Did you sign up for the waitlist, and then get notified of approval?

Thank you, that was indeed the issue here.
https://openai.com/waitlist/gpt-4-api


LK labels

rdfs:label correction run
listwork

[ ] All labels for F22: show only title als label (no more "Text: " or "Expression: " before title)
[ ] Periodical-F24: [tbd]

listperson

[x] Currently, all person labels are missing - please re-insert them; label = pref. name value.

legal cases

[x]  Label currently: title of C-file, e.g. Akte 5 Karl Kraus ca. Der Tag; please remove "Akte \d* " before case name.

listwork

[ ]  All labels for F22: show only title als label (no more "Text: " or "Expression: " before title)
[ ]  Periodical-F24: [tbd]

Maybe I am looking at the wrong triples but work.trig labels have label prefixes like "Text, Expression, Issue, Periodical, ..."

@linxOD Yes, and what I mean is: They shouldn't have. For data representation in RS, we need the labels pretty 'clean', as it turns out. So please delete those prefixes in F22; for labels of other entities I'll let you know as soon as I know myself.


Compilation error gravity 20

Hi,
why RPGLE compilation error gravity 20 are only warning and not red error?

Bye

Severity 20 is just a Warning inside of VS Code.
https://github.com/halcyon-tech/vscode-ibmi/blob/master/src/api/CompileTools.js#L16


Datetimepicker dateformat changing

Hi! I want to change dateformat  tried but it didnt work. I want to format 'yyyy/dd/mm' but  cant find Where I should change  this property,thanks for  help!

You can try this:
properties: {
  myDateProperty: {
    props: { dateFormat: 'yyyy/dd/MM' }
  }
}

althought I haven't tested that.


Wallet connect research

I suggest to convert his PR to the draft and back to it when will be working on the Wallet Connect. We can base the solution on it or use as a reference.


Not working in IE - error code XML5634

Hi,
For me it is not working in IE, I get this error:
XML5634: An attribute with the same name already exists on this element. Line: 1, Column 320
Any suggestions?
Thanks

Hi,
Thank you for your reply.
This is my code:
var svg = document.querySelector("svg");         window.onbeforeunload = null;         svgAsPngUri(svg, {modifyCSS : {'text' : 'font-family:' + myAPP.selectedFont}}, function(uri) {            save_img(uri); // This is an ajax function for processing the image         });
Attached you will find a screenshot with the error (it only appears in Internet Explorer). I am ussing IE11 and I have already tested it for svg support, it should work without the canvg option. I have already tried with the canvg option and it gives me several error, rotting in the XML parsing section.
Also attached you will find a file with the HTML of the svg I'm working on (I am generating the svg with svg.js). If you check it with notepad++ you will notice that line 1, column 320 is found on the first "B" of the svg background image base64 encoding (in the xlink:href tag of the image element).
I don't have that much experience working with svg so I really appreciate any suggestion / advice. I'd be happy to provide any other information you might need. Thank you!
svg_html.txt

Sorry it's taken me so long to look into this. The SVG code you provided has an <svg> tag with two xmlns attributes, and IE may be more sensitive to that than other browsers.
This sounds like something that svg.js may be doing, but if not, feel free to reopen this issue.

                                                                                Hi Eric,Thank you for taking the time to look into this. I'll try to find a way to eliminate one tag, hopefully it'll "please" IE :)                                                                                Sent from my BlackBerry 10 smartphone.                                                                                From: Eric ShullSent: luni, 14 mai 2018, 23:50To: exupero/saveSvgAsPngReply To: exupero/saveSvgAsPngCc: JediCate; AuthorSubject: Re: [exupero/saveSvgAsPng] Not working in IE - error code XML5634 (#167)Sorry it's taken me so long to look into this. The SVG code you provided has an <svg> tag with two xmlns attributes, and IE may be more sensitive to that than other browsers.

This sounds like something that svg.js may be doing, but if not, feel free to reopen this issue.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/exupero/saveSvgAsPng","title":"exupero/saveSvgAsPng","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/exupero/saveSvgAsPng"}},"updates":{"snippets":[{"icon":"PERSON","message":"@exupero in #167: Sorry it's taken me so long to look into this. The SVG code you provided has an \u003csvg\u003e tag with two xmlns attributes, and IE may be more sensitive to that than other browsers.\r\n\r\nThis sounds like something that svg.js may be doing, but if not, feel free to reopen this issue."}],"action":{"name":"View Issue","url":"https://github.com/exupero/saveSvgAsPng/issues/167#issuecomment-388958143"}}}
{"@type":"MessageCard","@context":"http://schema.org/extensions","hideOriginalBody":"false","originator":"37567f93-e2a7-4e2a-ad37-a9160fc62647","title":"Re: [exupero/saveSvgAsPng] Not working in IE - error code XML5634 (#167)","sections":[{"text":"","activityTitle":"Eric Shull","activityImage":"https://avatars2.githubusercontent.com/u/287159?s=160\u0026v=4","activitySubtitle":"@exupero","facts":[]}],"potentialAction":[{"name":"Add a comment","@type":"ActionCard","inputs":[{"isMultiLine":true,"@type":"TextInput","id":"IssueComment","isRequired":false}],"actions":[{"name":"Comment","@type":"HttpPOST","target":"https://api.github.com","body":"{"commandName":"IssueComment","repositoryFullName":"exupero/saveSvgAsPng","issueId":167,"IssueComment":"{{IssueComment.value}}"}"}]},{"targets":[{"os":"default","uri":"https://github.com/exupero/saveSvgAsPng/issues/167#issuecomment-388958143"}],"@type":"OpenUri","name":"View on GitHub"},{"name":"Unsubscribe","@type":"HttpPOST","target":"https://api.github.com","body":"{"commandName":"MuteNotification","threadId":326873679}"}],"themeColor":"26292E"}


Gemini 2.0 Flash exp live session crashed immediately after finishing a turn of chat

I tried to built a real time chatting app with python-genai and gemini-2.0-flash-exp following the cookbook provided in the ``, but when I adapted my code to a new library, I found that the realtime chatting session will terminated after I received a response from remote.
My log is like that:
[CyberWaifu V2 backend][2024-12-16 17:45:48] forwardAudioStream: last second: 99 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:45:48] Chat response: What
[CyberWaifu V2 backend][2024-12-16 17:45:48] Chat response: ’s up, man? You look a bit… blank. Did something happen
[CyberWaifu V2 backend][2024-12-16 17:45:49] Chat response: ?  Maybe it’s the
[CyberWaifu V2 backend][2024-12-16 17:45:49] forwardAudioStream: last second: 104 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:45:49] Chat response:  midterms stress, huh? Remember how we talked about those midterms last time?

[CyberWaifu V2 backend][2024-12-16 17:45:49] Received empty message, skipping
[CyberWaifu V2 backend][2024-12-16 17:45:50] forwardAudioStream: last second: 91 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:45:51] forwardAudioStream: last second: 112 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:46:00] forwardAudioStream: last second: 86 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:46:01] forwardAudioStream: last second: 104 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:46:02] forwardAudioStream: last second: 21 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:46:04] forwardAudioStream: last second: 40 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:46:06] forwardAudioStream: last second: 40 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20
[CyberWaifu V2 backend][2024-12-16 17:46:07] forwardAudioStream: last second: 40 frames, num_channels: 1, sample_rate: 48000, limit_to_send: 20

In the line [CyberWaifu V2 backend][2024-12-16 17:45:49] Received empty message, skipping , it indicated that the generator self.llmSession.receive() yield a reponse with field text is None. And my audio stream forwarder which to forward my audio stream from client to LLM session will process one await self.llmSession.send({"data": data_chunk, "mime_type": "audio/pcm"}) for a second.
I can no longer receive response.
Environment details

Programming language: Python
OS: Ubuntu 22.04 LTS
Language runtime version: 3.12
Package version: 0.2.2

Repo
Related modification is in the diff
So far, I can not reproduce it in the cookbook's code.
Thanks!

Could you produce an MRE?

Sure, by running this python script, you will have a user token and bot token in terminal. You can use a livekit sandbox to connect to server via user token and url given in the code.
It will only be triggered under certain network condition as I checked with my mobile data and home network.
import livekit
import livekit.api
import livekit.rtc
import google.genai
import asyncio
import numpy
import cv2
import base64
import av
import time
import json
import os
import websockets_proxy

new_loop = asyncio.new_event_loop()
asyncio.set_event_loop(new_loop)

async def getLiveKitAPI():
    return livekit.api.LiveKitAPI(f"https://www.xiaokang00010.top:6212", "YoimiyaGaTaisukiDesu06210621062106210621", "YoimiyaGaTaisukiDesu06210621062106210621")

userToken = livekit.api.AccessToken(
        "YoimiyaGaTaisukiDesu06210621062106210621", "YoimiyaGaTaisukiDesu06210621062106210621").with_identity(
        'user').with_name("Jerry Chou").with_grants(livekit.api.VideoGrants(room_join=True, room="testroom")).to_jwt()

botToken = livekit.api.AccessToken(
        "YoimiyaGaTaisukiDesu06210621062106210621", "YoimiyaGaTaisukiDesu06210621062106210621").with_identity(
        'model').with_name("Awwa").with_grants(livekit.api.VideoGrants(room_join=True, room="testroom")).to_jwt()

    # livekit api is in this file, so we can't put this logic into createRtSession
async def f():
    await (await getLiveKitAPI()).room.create_room(create=livekit.api.CreateRoomRequest(name="testroom", empty_timeout=10*60, max_participants=2))

asyncio.get_event_loop().run_until_complete(f())

print("User token: ", userToken)
print("Bot token: ", botToken)

class MRE:
    def __init__(self, name = "Gemini"):
        self.name = name

    async def chatRealtime(self):
        buffer = ''
        while True:
            async for response in self.llmSession.receive():
                if response.text is None:
                    continue
                print(f"Received: {response.text}")

    async def start(self, loop = new_loop):
        if os.getenv("HTTP_PROXY"):
            proxy = websockets_proxy.Proxy.from_url(os.getenv("HTTP_PROXY"))
            proxy = websockets_proxy.Proxy.from_url(os.getenv("ALL_PROXY"))
            def fake_connect(*args, **kwargs):
                return websockets_proxy.proxy_connect(*args, proxy=proxy, **kwargs)
            google.genai.live.connect = fake_connect

        print("Preparing for launch...")
        client = google.genai.Client(http_options={'api_version': 'v1alpha'})
        model_id = "gemini-2.0-flash-exp"
        config = {"response_modalities": ["TEXT"]}
        self.llmPreSession = client.aio.live.connect(model=model_id, config=config)
        self.llmSession = await self.llmPreSession.__aenter__()
        self.chatRoom = livekit.rtc.Room(loop)

        asyncio.ensure_future(self.chatRealtime())

        @self.chatRoom.on("track_subscribed")
        def on_track_subscribed(track: livekit.rtc.Track, publication: livekit.rtc.RemoteTrackPublication, participant: livekit.rtc.RemoteParticipant):
            print(f"track subscribed: {publication.sid}")
            if track.kind == livekit.rtc.TrackKind.KIND_VIDEO:
                print('running video stream...')
                asyncio.ensure_future(self.receiveVideoStream(
                    livekit.rtc.VideoStream(track)))
            elif track.kind == livekit.rtc.TrackKind.KIND_AUDIO:
                print('running voice activity detection...')
                asyncio.ensure_future(
                    self.forwardAudioStream(livekit.rtc.AudioStream(track), publication.mime_type))

        @self.chatRoom.on("track_unsubscribed")
        def on_track_unsubscribed(track: livekit.rtc.Track, publication: livekit.rtc.RemoteTrackPublication, participant: livekit.rtc.RemoteParticipant):
            print(f"track unsubscribed: {publication.sid}")

        @self.chatRoom.on("participant_connected")
        def on_participant_connected(participant: livekit.rtc.RemoteParticipant):
            print(f"participant connected: {
                participant.identity} {participant.sid}")

        @self.chatRoom.on("participant_disconnected")
        def on_participant_disconnected(participant: livekit.rtc.RemoteParticipant):
            print(
                f"participant disconnected: {
                    participant.sid} {participant.identity}"
            )

            self.terminateSession()

        @self.chatRoom.on("connected")
        def on_connected() -> None:
            print("connected")

        print("Connecting to LiveKit...")
        await self.chatRoom.connect(f"wss://www.xiaokang00010.top:6212", botToken)
        print("Connected to LiveKit.")
        # publish track
        # audio
        # audioSource = livekit.rtc.AudioSource(
        #     48000, 1)
        # self.broadcastAudioTrack = livekit.rtc.LocalAudioTrack.create_audio_track(
        #     "stream_track", audioSource)
        # publication_audio = await self.chatRoom.local_participant.publish_track(
        #     self.broadcastAudioTrack, livekit.rtc.TrackPublishOptions(source=livekit.rtc.TrackSource.SOURCE_MICROPHONE, red=False))
        # import threading
        # self.audioBroadcastingThread = threading.Thread(
        #     target=self.runBroadcastingLoop, args=(audioSource,))
        # self.audioBroadcastingThread.start()

        print("Waiting for participants to join...")
        while True:
            await asyncio.sleep(1)

    def runBroadcastingLoop(self, audioSource) -> None:
        """
        Start the loop for broadcasting missions.

        Returns:
            None
        """
        print('starting broadcasting loop')
        new_loop = asyncio.new_event_loop()
        new_loop.run_until_complete(self.broadcastAudioLoop(audioSource))

    def generateEmptyAudioFrame(self) -> livekit.rtc.AudioFrame:
        """
        Generate an empty audio frame.

        Returns:
            livekit.rtc.AudioFrame: empty audio frame
        """
        amplitude = 32767  # for 16-bit audio
        samples_per_channel = 480  # 10ms at 48kHz
        time = numpy.arange(samples_per_channel) / \
            48000
        total_samples = 0
        audio_frame = livekit.rtc.AudioFrame.create(
            48000, 1, samples_per_channel)
        audio_data = numpy.frombuffer(audio_frame.data, dtype=numpy.int16)
        time = (total_samples + numpy.arange(samples_per_channel)) / \
            48000
        wave = numpy.int16(0)
        numpy.copyto(audio_data, wave)
        # logger.Logger.log('done1')
        return audio_frame

    async def receiveVideoStream(self, stream: livekit.rtc.VideoStream):
        async for frame in stream:
            img = frame.frame.convert(
                livekit.rtc.VideoBufferType.BGRA).data.tobytes()
            img_np = numpy.frombuffer(img, dtype=numpy.uint8).reshape(
                frame.frame.height,
                frame.frame.width,
                4
            )
            # convert to jpeg
            # resize the image so as to save the token
            scaler = frame.frame.width / 1280
            new_width, new_height = (int(
                frame.frame.width // scaler), int(frame.frame.height // scaler))
            cv2.resize(img_np, (new_width, new_height))

            encoded, buffer = cv2.imencode('.jpg', img_np)

            await self.llmSession.send({"data": base64.b64encode(buffer.tobytes()).decode(), "mime_type": "image/jpeg"})

    async def forwardAudioStream(self, stream: livekit.rtc.AudioStream, mime_type: str):
        frames = 0
        last_sec = time.time()
        last_sec_frames = 0
        limit_to_send = 20
        data_chunk = b''
        async for frame in stream:
            last_sec_frames += 1
            frames += 1
            avFrame = av.AudioFrame.from_ndarray(numpy.frombuffer(frame.frame.remix_and_resample(16000, 1).data, dtype=numpy.int16).reshape(frame.frame.num_channels, -1), layout='mono', format='s16')
            data_chunk += avFrame.to_ndarray().tobytes()
            if frames % limit_to_send == 0:
                await self.llmSession.send({"data": data_chunk, "mime_type": "audio/pcm"})

                data_chunk = b''

            if time.time() - last_sec > 1:
                last_sec = time.time()
                print(f"forwardAudioStream: last second: {last_sec_frames} frames, num_channels: {frame.frame.num_channels}, sample_rate: {frame.frame.sample_rate}, limit_to_send: {limit_to_send}")
                last_sec_frames = 0

    async def broadcastAudioLoop(self, source: livekit.rtc.AudioSource, frequency: int = 1000):
        print('broadcasting audio...')

        while True:
            await source.capture_frame(self.generateEmptyAudioFrame())

mre = MRE()

asyncio.ensure_future(mre.start(new_loop))

new_loop.run_forever()

I think it might be a issue of latency(?) After my investigation, when I set the frequency of uploading chunks to 1 time per 100 frames, the issue resolved. Strange.


Update README.md

PR Description 📜
Please include summary related to the issue you have fixed and describe your PR in brief over here by specifying the issue number on which you were working below
Fixes # <your_issue_number>

Mark the task you have completed ✅

[ ] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[ ] I have performed a self-review of my own code or work.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] My changes generates no new warnings.
[ ] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[ ] I have added screenshot for website preview in assets/images
[ ] I have added entries for my game in main README.md
[ ] I have added README.md in my folder
[ ] I have added working video of the game in README.md (optional)
[ ] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Hey @TiwariRahul16, you can't open another pull request before completing the previous one 😀
You already have the following 1 open pull request(s):
#4765

Thank you @TiwariRahul16 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Thank you  @TiwariRahul16 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


As a user, if i select "yes" to having current benefits, I would like to see the first accordion already expanded when the categories appear

@sydney-devine @CalebPena Looks good in all languages on computer and phone.


Improve the performance with over 20% for Go by using uint

Hopefully, using uint and uint32 are within the rules (I could not find any particular rules for the program in README.md).
Here is the new benchmark result:
❯ hyperfine -w 1 -r 2 ./main
Benchmark 1: ./main
  Time (mean ± σ):      1.665 s ±  0.023 s    [User: 1.655 s, System: 0.004 s]
  Range (min … max):    1.649 s …  1.681 s    2 runs

Compared to previously:
❯ hyperfine -w 1 -r 2 ./main
Benchmark 1: ./main
  Time (mean ± σ):      2.150 s ±  0.014 s    [User: 2.139 s, System: 0.005 s]
  Range (min … max):    2.140 s …  2.160 s    2 runs

Also, result[0] = 0 is not needed, since arrays are initialized to have 0 values in Go.

Thanks, it was added.


feat: adding autocomplete for yaml files to the init

I notice that the json_schemas generated by proto aren't very strict:
I notice the 'types' are now identifier on hover:

But any incorrect values aren't being highlighted:


Fix incorrect removal of trailing slash from a hash

fixes #81

Can you add some tests?

LGTM.
@sindresorhus anything else that needs to be changed?

@sindresorhus I highly recommend exploring viability of using https://github.com/semantic-release across all your projects. It saves me a lot of time.

@gajus Couldn't use it even if I wanted to: https://github.com/semantic-release/npm/issues/93


Master

What
Describe what you have changed and why.
How to review
Describe the steps required to test the changes.

bumping the version number in development


performance-test: suggest a more comparable loading time for non-eager and eager execution

Currently, performance test report as loading time the cumulative time spent in loader.load_data() .
This is good for all types of loaders.
However, still within loader.load_data(), immediately following the download of the dataset from HF (for example, in case of LoadHF), eager-execution differs in its action from non-eager-execution:
In eager-mode, unitxt stays within load_data also for the inclusion of each and every instance into the initialized unitxt multistream, whereas in the non-eager mode, unitxt just creates generators, and returns from load_data().
This is illustrated in the following snakeviz charts:
In eager mode, unitxt spends in load_data() the time it takes to stream_dataset from HF plus the one pass over all the incoming instances, pending load_limit:
cola: 5000 train + validation: 1043 + test: 1063.  wnli: train: 635 + validation: 71 + test: 146, (+6 that yielded StopIteration) = 7964  (as the number of calls to split_limited_load shows in the chart).
Note that eager mode is 'stupid enough' to go over the incoming instances of split test although these are all excluded in SplitRandomMix.  On the other hand, eager mode does not return to read an instance from fresh as does the non-eager mode do, and indeed as also the cum times demonstrate: the time spent by eager mode in load_data() consists of the time spent in stream_dataset() plus the time spent in split_limited_load.
eager_mode:

Non-eager mode:
In non-eager mode, the time spent in load_data() consists (almost exclusively) of stream_dataset().  Non-eager mode finishes the introduction of the new ms to unitxt just by creating generators.
In the sequel, after finishing load_data, it does need to go over the fresh coming instances. It is 'smart enough' to not visit any fresh instance of split test because it pulls, not pushes, and it knows that test instances that came from HF are all excluded by SplitRandomMix.  Still, because it pulls again and again, it visits fresh instance 12390 times:
for cola: 5000 for train + 5000 for train (to list validation) + 1043 validation (to list test)
for wnli: 635 for train + 635 for train (to list validation) + 71 validation (to list test)
together: 12384.  + 6 visits that generated StopIteration and we get 12390 as the number of calls of split_limited_load shows in the chart of non-eager mode:

Hi @elronbandel ,
I am not sure how important is the issue raised here. We usually compare performance of PR against main either when both are eager of both are non-eager, so why bother. On the other hand - why not be accurate, and have each mode 'pay' for its going over the fresh instances in its reported Net Time.  On the third hand: we will need a careful identification of the time spent on 'pure downloading'  (excluding the introduction of new instances into unitxt) for all the different types of Loader-s. Not too complicated, but still. What is your view about this?

PR #1436 covers this


How to compile with lpc source code

Use ：
g++ LPC.cpp stdafx.cpp -o xxx
to compile, and the following error is displayed:
undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status

Use ：
g++ LPC.cpp stdafx.cpp -o xxx
to compile, and the following error is displayed:
undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status


Big size of options window on 1366x768 resolution

Too big size of options window on 1366x768 resolution. I dont see buttons (OK, cancel, maybe something else)

There is no OK or save button, you have to press the pipe again.

@chaorace could be an enhancement to implement a closingX or a "back"-button like here:
https://cloud.githubusercontent.com/assets/12496340/23296671/7505c98a-fa76-11e6-833e-76b861378b69.jpg

@JHCD thanks. But pipe.. not very obvious. Before I tried to press Escape, but appeared Main menu. Current version is fine, Escape work correct.

Duplicate of #86


Add additional Pushover parameters

Description:
Add support for more Pushover parameters: target (device), sound, url, url_title, priority, timestamp
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#
Example entry for configuration.yaml (if applicable):
automation:
  alias: Garage Door is Open
  trigger:
    platform: state
    entity_id: sensor.garage_door
    state: 'open'
  action:
    service: notify.pushover
    data:
      title: Garage Door
      message: The garage door is open.
      target: iPhone,MacBookPro
      data:
        url: https://home-assistant.io/
        url_title: Home Assistant
        priority: 1
        timestamp:<PHONE_NUMBER>
        sound: siren

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If code communicates with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

This appears to break if at least one data: key is not provided. I am going to try adding the check for None back and see if that fixes it.


Java SDK - Allow Configuration override per request

For each request, allow a BaseConfiguration to be added as a parameter. When added, they should be used instead of values from Configuration it was initialized with
Reminder: Call assertValid()

Implemented here: https://github.com/openfga/sdk-generator/pull/189
As noted in comments, some test cases are needed to flesh this out.