text:
Extract raw text including whitespace from tag

What happened?
With MarkDoc and MarkDoc NextJs plugins, it seems impossible to extract the raw text of the contents of a tag while preserving indentation as the location character is always undefined. Additionally, it appears that the location of each paragraph tag is set to the same value, which is based on the lines of the parent tag.
It seems possible to extract each line of content in a tag by iterating through each paragraph node in the transform function. However, the content already has the whitespace trimmed, and the location does not contain the necessary information to compute the indentation level.
To reproduce
...
{% foo %}
Line one
    Line two
        Line three
{% /foo %}
...

Version
0.2.2
Additional context
There may be a better way for me to extract the raw content including indentation rather than iterating through all of the paragraph nodes that may be the solution to what I need. If so I would be more than happy to go with that approach.

You are correct—the parser does not preserve indentation and it does not capture the character offset for text nodes. The lack of character offsets is a limitation of the underlying Markdown parser that we use to tokenize the content, and we may address this in the future. The indentation isn't preserved because paragraph indentation isn't syntactically relevant in Markdown.
We have considered the possibility of capturing the raw source text nested inside of a tag and exposing this as an attribute on the tag itself. You can actually do this yourself today by getting the line number of the opening and closing tags and slicing those lines out of the original source document. This doesn't prevent Markdoc from parsing the interior content as Markdoc, however.
We generally don't think it's a good idea to treat the content inside of Markdoc tags as literal text or use your own custom syntax and non-Markdown formatting inside of Markdoc tags. If you need to treat the content as literal text, you are probably better off using a fenced code block.
Would you mind describing your use case?

Yes I think the fenced code block approach would make the most sense! I was implementing a diagram tag that would render a Mermaid diagram. However, I ran into problems with some mermaid diagrams being indentation sensitive.
Thanks for the guidance!

authors: ReeceHumphreys segphault

repo: markdoc/markdoc


text:
Upgrade or remove Jersey

Overcome mimepull issues and simplify code
perhaps take advantage of new capabilities such as caching
Will it offer support for POST without a body?
Other option: remove Jersey to reduce dependency conflict with customers who require a different version of Jersey or httpclient or other required libraries

@sammefford Did anything happen with this? If not, should we move it out of the 3.0-4 milestone?

I should have commented on this issue.  I started the upgrade but was halted by this bug: https://java.net/jira/browse/JERSEY-2882
This issue is not part of the 3.0.4 milestone.

+1 When do we expect this ticket to be implemented?

We already determined that we cannot upgrade jersey -- newer versions have digest auth bugs and development is moribund (?)
I'd take a peek at the referenced #391 -- maybe suggest a path forward.

Ok, then we should move away from Jersey and use Apache HTTPClient. Sooner the better.

Ran tests with OKHttp in 5.0-SNAPSHOT.jar. The tests run fine. Used MarkLogic Server build 0801 due to REST layer issues in the server side.

source: gharchive/issue

authors: bsdang georgeajit grechaw jmakeig sammefford

repo: marklogic/java-client-api

license_type: permissive

license_source: bigquery


text:
Stress tests fail because OkHttp Digest auth doesn't support multi-threaded Java

As reported in https://github.com/rburgst/okhttp-digest/issues/33 , we encountered an issue when we ran with OkHttp in our stress tests.  I see most tests fail with error messages like:
WARNING: previous digest authentication with same nonce failed, returning null
com.marklogic.client.FailedRequestException: Local message: write failed: Unauthorized. Server Message: Unauthorized
        at com.marklogic.client.impl.OkHttpServices.putPostDocumentImpl(OkHttpServices.java:1466)
        at com.marklogic.client.impl.OkHttpServices.putDocument(OkHttpServices.java:1117)
        at com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:836)
        at com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:708)
        at com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:652)
        at test.stress.JavaAPISession.putDocument(JavaAPISession.java:220)
        at test.stress.RestQueryTester.runTest(RestQueryTester.java:133)
        at test.stress.StressTest.run(StressTest.java:378)

This should definitely not be happening, because the user is authorized and most requests succeed.  To have some intermittent failures with the error "FailedRequestException ... Unauthorized" means the same user/password combo is failing intermittently.  As reported in the issue linked above, I believe this is because the tests are running multi-threaded, and DigestAuthenticator isn't designed for that.  We must either get a fix from the developer or fix this ourselves as most of our clients deploy our API in a multi-threaded environment.

So far the developer of the library has been very responsive.  He has not, however, committed to making the fix.

I made the fix, and submitted a pull request: https://github.com/rburgst/okhttp-digest/pull/35 .  Hopefully he'll accept it.  I re-ran the stress tests today with the fix in place and the issue is now gone.  I see a couple other issues, but I believe they're unrelated.
In order to get this to work I had to:

git clone git@github.com:sammefford/okhttp-digest.git
cd okhttp-digest
add two lines to build.gradle:

apply plugin: 'maven'
version = "1.12.1"

gradle install

this creates ~/.m2/repository/com/burgstaller/okhttp-digest/1.12.1/okhttp-digest-1.12.1.jar

cp ~/.m2/repository/com/burgstaller/okhttp-digest/1.12.1/okhttp-digest-1.12.1.jar $QA_HOME/lib/stress/lib/javaclientapi/

also copy all the below okhttp jars from similar locations in ~/.m2/repository

change stress/widowmaker/run-rest.sh to use the following jars instead of jersey* and httpclient* and httpcore* and mimepull* and commons-logging*

$QA_HOME/lib/stress/lib/javaclientapi/okhttp-3.6.0.jar
$QA_HOME/lib/stress/lib/javaclientapi/logging-interceptor-3.6.0.jar
$QA_HOME/lib/stress/lib/javaclientapi/okio-1.11.0.jar
$QA_HOME/lib/stress/lib/javaclientapi/okhttp-digest-1.12.1.jar
$QA_HOME/lib/stress/lib/javaclientapi/javax.mail-1.5.6.jar
$QA_HOME/lib/stress/lib/javaclientapi/activation-1.1.jar
$QA_HOME/lib/stress/lib/javaclientapi/javax.ws.rs-api-2.0.1.jar

nohup sh $QA_HOME/stress/widowmaker/run-rest.sh > /space/run-rest.log 2>&1 &

This process is obviously a stop-gap.  Before we can release we'll need the library author to accept my PR and push a new release to jcenter so we can depend on that.  Or if that doesn't happen quickly enough we'll need to decide if we push our own release of it and depend on that.

The fix I submitted was accepted and pushed to jcenter as okhttp-digest version 1.14.  So I've update our pom.xml to use that.

have been able to run Stress tests with OKHttp on 8.0 nightly servers for 3.0.8 release.

have been able to run Stress tests with OKHttp on 8.0 nightly servers for 3.0.8 release.

Smells like progress. Thanks, all.

authors: georgeajit jmakeig sammefford


text:
Refactor code generation to be safe for javadocs

Now that we're removing pegdown-doclet, the standard javadoc tool is being very picky about html errors in CtsExpr.java.  Let's figure out how the code generation can generate javadocs that don't generate errors or warnings.

The code generation should now be replacing <, >, and & in comments with the equivalent HTML entities.

Erik, can you also generate @param and @return lines for every member that has javadocs?  Right now mvn javadoc:javadoc generates a lot of warnings.

Most of the lingering problems were fixed under #719 but I see that fragmentIdCol() is still missing @param.  Really, that's an XQY documentation bug, but the code generation should have a fallback.

Also fixed a bug in off-by-one alignment of param documentation for chained methods like joinInner()
(a bug detected originally for the code generated for the Optic Node.js API).
Should cause no regressions and should remove the Maven warning for the fragmentIdCol() @param

authors: ehennum sammefford


text:
Fails in building opencore

The script is exiting on trying to build opencore
terminal log---
building opencore
Downloading https://deac-riga.dl.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.5.tar.gz
... Done
Failed to extract opencore-amr-0.1.5.tar.gz

Can't confirm. Please run ./build-ffmpeg --cleanup and try again.

authors: cjattard markus-perl

repo: markus-perl/ffmpeg-build-script

license: MIT

license_source: github-api


text:
Fix: Link to contribution guidelines is not correct

Fix linking to CONTRIBUTING.md.

Danke Louis ✌🏽

source: gharchive/pull-request

repo: markushaug/homify


text:
/vaccination fix lastUpdate

i am sorry but the lastUpdate had to be fixed too!

@marlon360 again please. the lastUpdate Date is now the last commit date of the file Deutschland_Bundeslaender_COVID-19-Impfungen.csv (and not the date of the last commit over all)


text:
:feat: add ReferenceArrayField

Changes to be committed:
modified:   docs/Fields.md
new file:   src/mui/field/ReferenceArrayField.js
new file:   src/mui/field/ReferenceArrayField.spec.js

fixes #429

Updated.
I'm using prettier/prettier to format my code so there format changes here and there in the modified files..

Fixed test case and a bug on rendering before data are not fetched.

The problem is that I don't use prettier, and your code formatting doesn't fit with the rest of the code (4 spaces for indentation, case in the same line a s switch). Please use the same CS as the rest of the code.

Yes

Ok, I'll add crudGetManyReferenceAction and revert the style changes.

Alas, name clash.
CRUD_GET_ONE_REFERENCE = many single id debounced to single GET_MANY
CRUD_GET_MANY_REFERENCE = GET_MANY_REFERENCE
NEW_ACTION = many id array debounced to single GET_MANY
Any suggestion to the name?
Overloading of "Reference" is causing the issue here.
IMO CRUD_GET_ONE_REFERENCE should have been CRUD_DEBOUNCED_GET_ONE, referenceActions.js should have been debouncedActions.js, then the new action could be CRUD_DEBOUNCED_GET_MANY in the same file.

@fzaninotto ping
Any suggestion to the new action name?
I can use CRUD_DEBOUNCED_GET_MANY at the moment and let CRUD_GET_ONE_REFERENCE renamed to CRUD_DEBOUNCED_GET_ONE in 1.0.

@leesei You should just publish your changes with the name you think is good. (to not block this useful PR). Thx.
I propose CRUD_GET_MANY_BY_ONE_REFERENCE.

@leesei thanks a lot of writing this PR. I've been waiting for this to get merged. Really need it! Could we get this merged and publish soon? Thanks. @fzaninotto

Alas, I may well create a new PR.

Closing this in favor of #596.

I like the DEBOUNCE approach, go for it.

authors: fzaninotto leesei sherryxiao1988 wadjeroudi

repo: marmelab/admin-on-rest

license: mit


text:
Changes accross to across.

Small typo in your readme. This PR changes across to across.

Thank you but this typo is already fixed by #23

authors: brikou mrmrs

license: WTFPL


text:
Fixed Pixelmatters Careers page

Fixed Pixelmatters Careers page URL
Add https to Pixelmatters website

Thanks @rgllm!

authors: marmelo rgllm

repo: marmelo/tech-companies-in-portugal


text:
Guide for using FixedStepController

Hi,
May I ask if you can provide an example about how to use FixedStepController? Every tutorial in the doc is using to.IntegralController.
Thanks!

Hi,
I have added a page to the documentation on step size control. Hope that helps!
Best,
Marten

authors: Jinxi-Li martenlienen

repo: martenlienen/torchode


text:
AndroidMediaPlayer.Init () System.ArgumentNullException: Value cannot be null. Parameter name: MediaSession

🐛 Bug Report
AndroidMediaPlayer.Init ()
System.ArgumentNullException: Value cannot be null. Parameter name: MediaSession
AndroidMediaPlayer.Init ()
AndroidMediaPlayer.get_Player ()
MediaPlayerExtensions.SetPlayerView (MediaManager.IMediaPlayer mediaPlayer, MediaManager.Platforms.Android.Video.VideoView videoView)
VideoViewRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs1[TElement] args) VisualElementRenderer1[TElement].SetElement (TElement element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context)
VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren)
VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement)
VisualElementPackager.Load ()
VisualElementRenderer1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) VisualElementRenderer1[TElement].SetElement (TElement element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context)
VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren)
VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement)
VisualElementPackager.Load ()
VisualElementRenderer1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) VisualElementRenderer1[TElement].SetElement (TElement element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context)
VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren)
VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement)
VisualElementPackager.Load ()
VisualElementRenderer1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) VisualElementRenderer1[TElement].SetElement (TElement element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context)
ScrollViewContainer.set_ChildView (Xamarin.Forms.View value)
ScrollViewRenderer.LoadContent ()
ScrollViewRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context)
VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren)
VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement)
VisualElementPackager.Load ()
VisualElementRenderer1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) VisualElementRenderer1[TElement].SetElement (TElement element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context)
VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren)
VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement)
VisualElementPackager.Load ()
VisualElementRenderer1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) VisualElementRenderer1[TElement].SetElement (TElement element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Support.V4.App.FragmentManager fragmentManager, Android.Content.Context context)
FragmentContainer.OnCreateView (Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_inflater, System.IntPtr native_container, System.IntPtr native_savedInstanceState)
Expected behavior
App should work without crashing
Reproduction steps

Open the app for sometime and close the app or Press back button to close the app.
2.Getting Media Session is null exception

Configuration
Version: 0.6.7
Platform:

[x] :robot: Android
[x] :monkey: Xamarin.Forms

I'll add some fixes for this in the next release.

Hey @martijn00 , just wanted to report I'm having the same problem👍

@Pujolsluis I've already added a fix for this in develop. I need to finish up some other things before i can make a release.

Great! Thanks for your hard work @martijn00🙌

@Pujolsluis I've already added a fix for this in develop. I need to finish up some other things before i can make a release.

Please publish changes, Thanks

0.6.8 is online now.

Hi @martijn00 , Still i am getting same issue in 0.7.1

Hi @Pujolsluis Is it working fine for you or getting the issue?

authors: Pujolsluis SatyaRamprasad khairnar martijn00


text:
PlaybackController Pause dose not retaine the duration

🐛 Bug Report

When toggling pause/play the duration is lost and the video start from the start for my custom controller
Expected behavior
When clicked play after the player has been paused, it should continue from the last duration.
Reproduction steps

It a custom renderer, here is my code

     private IPlaybackManager PlaybackController => CrossMediaManager.Current;
     public async void TogglePlay(object sender, EventArgs arg)
        {
            if (MediaPlayer.IsPlaying())
                await PlaybackController.Pause();
            else await PlaybackController.Play();
        }

Configuration
Version: 0.6.7
Platform:

[ ] :robot: Android
[ ] :monkey: Xamarin.Forms

Duplicate of https://github.com/martijn00/XamarinMediaManager/issues/504

I need to debug this sometime, but don't have so much time to work on it at the moment.

For those in need, here is a simple workout
private IPlaybackManager PlaybackController => CrossMediaManager.Current;
  public async void TogglePlay(object sender, EventArgs arg)
        {
            if (MediaPlayer.State == MediaPlayerState.Playing)
            {
                _prevDuration = MediaPlayer.Position; // Save the current duration
                await PlaybackController.Pause();

            }
            else
            {
                await PlaybackController.Play();
            }
        }

      private async void PlaybackController_StateChanged(object sender, StateChangedEventArgs e)
        {
            switch (e.State)
            {
                case MediaPlayerState.Playing:
                    if (_prevDuration != null)
                    {
                        await PlaybackController.SeekTo(_prevDuration.Value); // play from the prev duration
                        _prevDuration = null;
                    }
                    CheckState();
                    btnPlay.SetImageResource(Resource.Drawable.ic_pause_36dp);
                    break;

                case MediaPlayerState.Paused:
                    btnPlay.SetImageResource(Resource.Drawable.ic_play_36dp);
                    break;
            }
        }

@AlenToma are you able to debug the source code, and maybe provide a fix there?

I would, but im really new to xamarin.forms. and i have only worked with android untill now.
If you are comfortable enough with that, then its no problem for me.

Yeah no problem, i would love to get some extra help on those sort of bug fixes. Let me know if you need information on anything.
The Android part of the codebase is probably to most complex, so it helps if you have experience with that.

Ok, should i fork this project and then post the solution here, or will you give premission to it?

Yes you should fork the project, commit a fix on a branch in your fork and then make a pull request on this repo. After that i review it and merge if there are no problems.
If you have questions about it, you can also ping me on slack: https://xamarinchat.herokuapp.com/

I have fixed the issue in my branch and created a pull requast.
When you fix or add code to your project, can i just refork it agen and i get all the changes.
How do i get the changes you will make to my fork later ?

@AlenToma thanks! I'll have a look soon. After i merge the PR you need to pull in the changes into your fork. You do this by adding a second "remote" to your git locally. This remote is my repo, and when you have done that you can either pull my develop branch again and push it to your own remote fork, or merge it into your own branch and push it.


text:
String value cannot be blank

On this line of transformObjectExpressionIntoStyleSheetObject, the string value is checked to see if it is blank, which is currently matching all whitespace characters.
This disallows CSS that looks like this:
const stylesheet = cssInJS({
    default: {
        ':after': {
            content: " "    // There is a an empty space here so that the pseudo element renders
        }
    }
});

This is needed to do some styling things where content is not necessary for the pseudo element. A change that would fix this problem is simply:
    assert(val.length >= 1, 'string value cannot be blank');

instead of the isBlank call. This still prevents empty strings, but allows deliberately white space strings for CSS properties.

@jchristman Thanks for spotting!
This issue has been addressed in v1.2.3

Excellent - thanks for the quick fix!

authors: jchristman martinandert

repo: martinandert/babel-plugin-css-in-js


text:
Mediator only adds classes from one assembly

I'm in the process of migrating from Mediatr to Mediator (2.0.27-rc). My solution is setup like this:

WebApi (Controllers that send/publish queries and commands)
Application (Defines commands, queries and handlers e.g. GetItemQuery, CreateItemCommand, GetItemQueryHandler)
Domain (Domain logic and events e.g. ItemCreated)
Infrastructure (storage logic and publishing of Domain Events)

Using Mediatr, I added the relevant classes to the DI containers like this:
services.AddMediatr(applicationAssembly);
services.AddMediatr(infrastructureAssembly);
However, with Mediator it doesn't seem to matter where I add the .AddMediator call - it only ever seems to generate code that includes Domain Events defined in the Domain project (ItemCreated etc). I've also tried adding [assembly: MediatorOptions] to each project to no avail.
What am I doing wrong? How do I define which assemblies Mediator should scan for queries, commands and handlers?

The project where you have installed the source generator package will scan and generate project  based on all referenced projects. Your setup sounds pretty similar to the clean architecture sample located here: https://github.com/martinothamar/Mediator/tree/main/samples/ASPNET_CleanArchitecture
Is that correct? In that case maybe you can see if there is a difference in setup here that leads to the issue?
If the sourcegen package is installed in WebApi, and WebApi references Application, then you should be able to use the GetItemQuery message from the controllers in WebApi for example

It turns out I had a version mismatch in one of the packages. Sorted that out and it's working now. Closing this issue, thanks for the help!

I'm getting this error message:
No handler registered for message type: (...).DownloadDocumentQuery"
I have a query defined in the Application project, and its handler in the Infrastructure project layer. If handler is also in the same assembly (Application) then it works fine.

authors: XardasLord martinothamar saliej

repo: martinothamar/Mediator


text:
Allow specifying any regex to format

We'd still keep the pre-filled format options (like email, uuid, etz), but we'd also allow just giving any %Regex{} to the :format validation.
This allows some more flexibility:
required :id, :string, trim: true, format: ~r/^[a-z0-9-]+$/i

I have a working version that I can create a PR for as soon as main is clean again after #50
Thoughts?

Looks useful and it makes sense to enable additional customization since there's uuid, email and password already. I also like that it will be a Regex so it could some e.g. from a module attribute or application config.

This feature was added by @LukasKnuth in https://github.com/martinthenth/goal/pull/53 🎉

authors: LukasKnuth martinthenth

repo: martinthenth/goal


text:
ie9 safeguard check

ie9 throws an error with ordinary console.log, since console is not defined unless using the debug tools

will fix and resubmit

repo: martyjs/marty-lib


text:
Label management . Popover display error

标签管理，点击编辑按钮，进入编辑标签弹窗后，关闭编辑标签弹窗。点击新增标签按钮，打开新增标签弹窗，弹窗显示错误，显示为编辑标签的页面

resolved


text:
🛑 POH events bot from render hosting is down

In 1bc87c6, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in 7e2e152.

repo: masch/poh-events-uptime


text:
🛑 POH events bot from render hosting is down

In 7abcdf3, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in 72d782e.


text:
On Laravel 10 not work

I have PHP 8.1.9, there is no way to update to a new version of php

Hi, unfortunately this package has never offered support for PHP 8.1 in a stable branch. Your best bet is either upgrading your project to at least PHP 8.2 or maintaining your own fork.
Good luck!

authors: dimalebid mabdullahsari

repo: masmerise/livewire-toaster


text:
Failed to get updates from Telegram servers

Hi! I tried this lib back in 2015 and everything was fine. Today I'm getting this error while trying to send a message:
[TelegramBot]: Failed to get updates from Telegram servers

I have created this repo to help you figure out what's wrong:
https://github.com/riseremi/telegram-bot-api-issue

@riseremi
The problem is in your code. You bound method catch to wrong object.
It's what you have:
api.sendMessage({
                chat_id: message.chat.id,
                text: message.text ? message.text : 'This message doesn\'t contain text :('
        })
        .then(function(message) {
                console.log(message);
        }
        .catch(function(err) {
                console.log(err);
        }));

Need to be changed to:
api.sendMessage({
                chat_id: message.chat.id,
                text: message.text ? message.text : 'This message doesn\'t contain text :('
        })
        .then(function(message) {
                console.log(message);
        })  // This is a change
        .catch(function(err) {
                console.log(err);
        }); // This is a change

My bad. Thank you!
Could you please check one of your examples? I just copied that code. What's the difference?
https://github.com/mast/telegram-bot-api/blob/master/examples/echo-bot.js

@riseremi Thank you, my bad as well. :)
I corrected example. Closing the ticket now.

hey, i'm getting the same error.
var telegram = require('telegram-bot-api');
var api = new telegram({
  token: ':)',
  updates: {
    enabled: true,
    get_interval: 1000
  }
});

api.on('message', function(message)
{
  var chat_id = message.chat.id;

  if (message.photo || message.document.mime_type == "image\/jpeg") {
    console.log('received a photo');
  } else {
    console.log('received a message')
  }
});

i don't exactly understand how to attach the catch part to my code... i only get the error message if i send text messages to my bot, no error when i send pictures.

In your example you are using an event listener.. so there's nothing to try/catch or no promise to be returned to bubble up from.
The real problem is that line 161 of the lib is just console dumping a vague message instead of the actual error. My suggestion is that either we dump the real error to the console (as ugly as it is) or we throw the actual error, expecting the bot client to handle it.
In your case, realestninja, you could temporarily change line 161 to:
console.dir('Failed to get updates: '+err);
and this would print the real error to your console instead of just the vague one. Likely your issue is something like bad encoding, if i had to guess. I think TG accepts utf8 only.

Thanks for the fast response !
Replacing that line 161 really helped me find my own stupid mistake !

authors: jkantr mast realestninja riseremi

repo: mast/telegram-bot-api


text:
feat: arbitrary CSS properties & counter-increment

Add two feature, you know.

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

repo: master-co/css


text:
🛑 Iran 1 - VIP 1 is down

In 2f42055, Iran 1 - VIP 1 ($VIP1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 1 - VIP 1 is back up in 0da1973 after 30 minutes.


text:
🛑 RESTREAM-IR-14-Afranet-4 is down

In 9e4050a, RESTREAM-IR-14-Afranet-4 ($IR_14) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-14-Afranet-4 is back up in 10ecc46.


text:
🛑 RESTREAM-IR-13-Afranet-3 is down

In 5662570, RESTREAM-IR-13-Afranet-3 ($IR_13) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-13-Afranet-3 is back up in bbe3488.


text:
🛑 RESTREAM-IR-12-ZirSakht-3 is down

In e6ab71a, RESTREAM-IR-12-ZirSakht-3 ($IR_12) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-12-ZirSakht-3 is back up in 7fff112.


text:
🛑 RESTREAM-IR-12-ZirSakht-3 is down

In 6191119, RESTREAM-IR-12-ZirSakht-3 ($IR_12) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-12-ZirSakht-3 is back up in 91b5c44.


text:
🛑 Iran 3 - ParsOnline 1 is down

In 2c6fb1a, Iran 3 - ParsOnline 1 ($IR_3) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Iran 3 - ParsOnline 1 is back up in bd7f63e after 7 minutes.


text:
Forked repo doesn't trigger action

Add this to readme https://github.community/t5/GitHub-Actions/Forked-repo-doesn-t-trigger-action/m-p/32575#M1189

@coord-e I think that you have this problem I solved it with the above workaround.

@MarchWorks I could get my fork worked with that workaround. Thanks!

This should work on fork without any workaround now.

authors: MarchWorks coord-e imbsky

repo: matchai/waka-box

license: ISC


text:
github action create gist file error

first time it can make file,but file content not change
and second time the file lose, and console print:
Unable to update gist
HttpError: Validation Failed: {"resource":"Gist","code":"missing_field","field":"files"}
cause: wakatime has not data (last 7 days from yesterday)

Manually recreating a file in the gist might help.


text:
Cleanup folder structure

Add package.json
Remove node_modules folder
Add gitignore
Ignore images in output folder

Did some cleanup for you, if you don't mind. :blush:

Great, thanks!

authors: mateogianolio shernshiou


text:
How to handle Property change notifications in general within LitElement...

This is more of a generic question regarding all/any Lit element / component ...
How would we handle property-change notification when using an mwc component, for example mwc-checkbox has an indeterminate property, which might get changed by some source/means, I'm using that control and would like to 'know' when that property value has changed so that I can react to it.
I don't see any on-indeterminate-property-change syntax being implemented anywhere, so how can I handle such a change in any property value of any component?
This would be even more important for other custom components with no two-way binding being available in Lit elements - so we have to handle all such change notifications ourselves, but how exactly? Can someone provide an example or point to documentation on this subject?
See also #46 where I've mentioned that on-change doesn't get fired on any mwc-XXX components such as mwc-textfield or mwc-checkbox while other events such as on-click or on-input do get fired.

@pitus you don't do anything wrong about on-input on-change, on-input is a composed event, so it can bubble throw shadow dom :
https://developer.mozilla.org/en-US/docs/Web/API/Event/composed
on-change isn't composed.
These elements (mwc) are in a very early stage so i guess this kind of events should be fired "again" with a adapted composed value. Let see what maintainers say about that.

@eskan - I can't figure out how to do my own custom this.dispatchEvent( new CustomEvent( 'selected', { bubbles: true, detail: { selected: this.selected } } ) ); so that it's composed ? I can't find any documentation or examples of that and I can't figure out how to fire an event from my Select component to its ancestor letting it know of a selection - the above doesn't fire, adding notify to the property doesn't fire on-selected-changed either as it would in Polymer. I'm completely confused by all the LitElement functionality, event handling and so frustrated, I'm about to give up on it altogether :(
Can you help a bit to get started?

don't give up !!! :D
if you want a composed event you need to add composed :true
https://dom.spec.whatwg.org/#event
 new CustomEvent( 'selected', { bubbles: true, composed: true, detail: { selected: this.selected } } )
if you want to listen to this event you should use "on-selected" instead of "on-selected-changed", on-[eventName]
In that case i'm not sure a composed event is necessary you should listen for event on you element,
i use composed event for more global event like user-logout
You should keep in mind that lit-element isn't "complicated" it's just web with less magic ;) so you need to find your way to build native application. To me a very a good start is Monica Talk @IO2018 and the PWA Starter Kit.
Cheers,

I’ve been debugging this component a few days ago and it does not dispatch any custom events, you basically get only mouse/keyboard events.
I can recommend using https://developers.google.com/web/tools/chrome-devtools/console/command-line-reference#monitoreventsobject_events to make it easier to look up all of the dispatched events. You might find something useful in your scenario.

@eskan - thanks for the composed hint, it finally works :) Too bad I couldn't find any specification / documentation of that anywhere (perhaps I'm just too tired and too frustrated trying to get something working - coming from a knockout.js and a bit of time spent with Polymer 2.x I just found this way too much 'going back to basics' where I have to do almost everything myself, manually ... yet, I thought that the whole purpose of LitElement and WebComponents was to simplify my work as a programmer by eliminating all redundancy,.. I'm yet to be convinced that this is the right way to go, but at least, thanks to your help, I got past this event issue. Still, can't see any events being fired by mwc components such as textfield or select...

It looks like this specific issue has been solved for a long time, so I'll close the issue.
However, I have opened #616 to document the "philosophy" of how we want events to work in MWC.

authors: azakus eskan merlinnot pitus


text:
Change transpiler from Babel to ESBuild

@Domino987 just wanted to let you know I was able to get esbuild working correctly.
We now use esbuild to transple vs babel.
I went ahead and updated the website to use the new version (v3.2.1 is transpiled with esbuild), so that should tell us if there are any issues.
FYI.

Edit: nevermind switched back to babel.. I think in order to use esbuild we would have to bundle as esm, not cjs. But it looks like babel transpiles to cjs, so I'm even more confused as to why it's not working.

repo: material-table-core/core


text:
Add button becomes unusable after deleting a record

Describe the bug
From version 5.0 to current version 5.1.11, there's a bug appearing when you try to delete a record. The record indeed get deleted, but then the Add button top right becomes unusable. Version 4.3.46 seems unaffected
https://codesandbox.io/s/aged-wave-6lk8f5?file=/src/App.js
To Reproduce
Steps to reproduce the behavior:

Delete any record
Try to click on Add button
See error

Expected behavior
The Add button is expected to not be disabled after deleting a record.
Screenshots

Desktop:

OS: Windows 11
Browser: Chrome
Version: 109

Additionnal context
I'm using version 5.1.3, since later 5.1.x versions are affected by another bug I will describe in another ticket

What about version 6.x, which is the current version.

Hello,
My bad, I didn't even try version 6.x as I thought it would not be compatible with our current react and material-ui versions.
It indeed works with version 6.1.13.
Thank you, and sorry for this pointless spam


text:
row_offsets

Corrected 'row_offsets' for LCDs with 4 lines.

This is a picture of another 4-row LCD that has 20 columns each row. Here the original values fit.
Here the offset for the 3. line offset = 1 line offset + 20.
Your display has 16 cols per row and need the adjustment 3. line offset = 1 line offset + 16.
The cols actually are known from the begin() function but not yet used. They can be used to calculate the offset array properly.
row_offsets[2] =  row_offsets[0] + cols; row_offsets[3] =  row_offsets[1] + cols.
You ma ylike to add this to your pull request.
Thanks for pointing to that incompatibility with 4 lines-16 cols displays..

I created a new function for preparing row_offsets at begin(), then setCursor() may faster change the cursor position. Please review changes.

Thanks a lot.

While doing some quality checks I found a simpler way of initializing.
The row_offsets can always be initialized for max 4 rows. In a 2*16 case only 2 of them are actually used.
Added some boundary checks as well.


text:
Global function variables

In .functions file peferred to use
mkd() {
  mkdir -p "$@" && cd "$_";
}

instead of
function mkd() {
  mkdir -p "$@" && cd "$_";
}

to avoid unnecessary global variables.

Which variables are globally created in example 1 vs. example 2?

Bash style guide. Not on this example. I choose this one because this is the shortest function. This is kind of the best practice to use sum() instead of function sum(), so if you created the variable inside a function, and forget to add local, it's not going to cause any problems. Plus easier to read.

function foo() {} vs. foo() {} is a personal preference that doesn’t have any impact on which variables become global.
$ unset i; echo "Before: ${i}"; function foo() { i=42; }; foo; echo "After: ${i}";
Before:
After: 42

$ unset i; echo "Before: ${i}"; foo() { i=42; }; foo; echo "After: ${i}";
Before:
After: 42

I prefer function so I’ll stick with that.

authors: artemgurzhii mathiasbynens

repo: mathiasbynens/dotfiles


text:
MJ4.0.0-beta.4: \rm in subscript yields Math input error

Issue Summary
\rm in the subscript yields Math input error in beta.4, but not beta.3 and earlier
Steps to Reproduce:

Go to https://codepen.io/alexedgcomb/pen/BabMpmG
Observed: \(a_\rm{b}\) yields `Math input error

Expected: No such error, like in 4.0.0-beta.3
https://codepen.io/alexedgcomb/pen/QWoYdOR

Technical details:

MathJax Version: 4.0.0-beta.4
Client OS: MacOS 13.4
Browser: Firefox 122 and Chrome 121

I am not using a MathJax configuration and loading MathJax via
<script src="https://cdn.jsdelivr.net/npm/mathjax@4.0.0-beta.4/tex-mml-svg.js"></script>

Supporting information:
Interestingly, the following typeset as expected:

\(\rm{b}\): So, not just a bad \rm
\(a_\textrm{b}\): So, not just a bad subscript followed by command

Repro steps:

Go to https://codepen.io/alexedgcomb/pen/QWoYdOR
Observed:

Actually, both v3 and v4 are incorrect for this, as a_\rm{b} is not a valid LaTeX expression (actual LaTeX throws an error for this).  Note that \rm is not a macro that takes an argument, like \mathrm, but is a switch that makes everything following it be in upright letters.  So a_\rm{b} is effectively {a_\rm}{b}, which produces an error in LaTeX (due to how \rm is implemented).  Note that if you did \rm{b}x then the x would also be upright since \rm makes everything after it be upright.  The macros \bf, \it, etc. also work the same way.  So you should do {\rm b} not \rm{b}, and a_{\rm b} would do what you expect.
This is in contrast to commands like \mathrm, \textrm, \symrm, and so on, which take an argument and put that in upright form.  Because of that (and how they are implemented), a_\mathrm{b} is effectively the same as a_{\rm b}, which is a valid expression.  Similarly, \mathrm{b}x should have the b upright, but the x in italics, where \rm{b}x has both upright.
I was surprised to see that v3 didn't give an error for a_\rm{b} as it should have, but looking into the internals, I have found out why.  It is not an easy fix, and I will have to think about how best to handle it.
The error in v4 is due to new code that tries to attach to the internal MathML nodes the LaTeX that produced that node, and it is crashing on this construction.  I know where it is happening, but haven't tried to resolve the issue yet.
In any case, you should be using either a_{\rm b} or a_\mathrm{b}, but not a_\rm{b}, which will produce an error in future versions.

Thank you for explaining!

authors: AlexEdgcomb dpvc

repo: mathjax/MathJax


text:
ENH: cast weights to float in WeightedL1

closes #51

Codecov Report

Merging #52 (510d827) into master (b8ce7d3) will increase coverage by 6.05%.
The diff coverage is 63.95%.

@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   56.19%   62.25%   +6.05%
==========================================
  Files          12       10       -2
  Lines        1098      604     -494
  Branches      242      100     -142
==========================================
- Hits          617      376     -241
+ Misses        406      194     -212
+ Partials       75       34      -41

Impacted Files
Coverage Δ

andersoncd/tests/test_docstring_parameters.py
73.91% <ø> (-0.73%)
:arrow_down:

andersoncd/penalties.py
40.17% <40.17%> (ø)

andersoncd/solver.py
62.29% <62.29%> (ø)

andersoncd/data/synthetic.py
72.41% <69.23%> (-18.50%)
:arrow_down:

andersoncd/__init__.py
100.00% <100.00%> (ø)

andersoncd/data/__init__.py
100.00% <100.00%> (ø)

andersoncd/estimators.py
100.00% <100.00%> (ø)

andersoncd/tests/test_estimators.py
100.00% <100.00%> (ø)

andersoncd/utils.py
28.76% <0.00%> (-4.11%)
:arrow_down:

... and 5 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 99cc66a...510d827. Read the comment docs.

authors: codecov-commenter mathurinm

repo: mathurinm/andersoncd


text:
VolumeTrimmer grant leaks

There are two causes:

We are currently miscalculating the true size of PrepareJob events by using packed_sizeof_slot(event) instead of slot.offset.size(); these are different because the PrepareJob has opaque user data that isn't accounted for by the PackedPrepareJob struct
There is an edge case where we over-count the number of grant bytes to reserve when refreshing volume attachments; we test whether a certain attachment needs to be refreshed inside a loop, but instead of only adding the required grant amount once we are sure it is included, we add the grant size before the test

Especially in case 1, this will show up as running out of Volume space for no good reason when appending a very large number of jobs (10k-100k, or millions, depending on the configured Volume log size).

Fix (new design) merged.

repo: mathworks/llfs


text:
🛑 Gestor Applicados21 is down

In 752cd63, Gestor Applicados21 (https://applicados21.e-valuados.com) was down:

HTTP code: 502
Response time: 113 ms

Resolved: Gestor Applicados21 is back up in 9556967 after 7 minutes.

repo: matiasmir/status


text:
Implement movupw parsing

Implement movupw parsing

Ah, seems like it would be nice to have rustfmt run in a pre-commit hook

repo: maticnetwork/miden


text:
خطای داخلی

خطایی غیر‌منتظره در هنگام برقراری ارتباط با سرور رخ داد. این مشکل احتمالا بزودی برطرف می‌شود.
این خطایی که فکر کنم از ماه قبل هست و هنوزم برطرف نشده.

+1

authors: Ghalbeyou ehsansabet

repo: matnbaz/matnbaz


text:
Fixed problem reading shapefiles with multiple ‘.’ in filename. Fix sugg...

...ested by guzly. Resolves issue #151.

Closing as pyshp is no longer vendered by us.

authors: WeatherGod aaschwanden

repo: matplotlib/basemap


text:
Account management screens

A big user-facing part of the app relates to account management. This includes UI for:

#13
#27
#14
#15
#9
#29

A few examples of this kind of screens in the wild:

Google Account
Microsoft Account
Apple ID

I think we can consider this as done now


text:
Preview error

The room (non encrypted) is configured to allow public preview and works with the matrix web client. The shared url has been generated using the matrix web client too, with the option "Link to most recent message".
But matrix-static only displays "Some error has occurred". I am new to matrix and haven't looked in the code what is going on, but it's likely to happen for every new user.
Url to reproduce (as a basic user) :  https://matrix.to/#/!itNFPuHTDmvGSASiDR:matrix.org/$f76Ann6mpRupw7E31qzgqNwGx4SrdcWHzviRZ-FzSYs?via=matrix.org

It looks like the event you are trying to permalink to precedes the point at which you made the History public (=Anyone) so it is inaccessible. The error is poor here.
https://view.matrix.org/room/!itNFPuHTDmvGSASiDR:matrix.org/

Thanks a lot for your feedback. It's hard to tell (indeed the error doesn't say much), but there's no prior history (it has just been created from scratch) so I don't really see how that would be inaccessible.

Your permalink is referring to an event $f76Ann6mpRupw7E31qzgqNwGx4SrdcWHzviRZ-FzSYs which is not visible in the room, chances are it predates the history visibility change so it is only visible to room members.

I've tested again. Using a new link :  https://matrix.to/#/!itNFPuHTDmvGSASiDR:matrix.org/$QelLFZartqWuRShVOWonD5CkS8Swl32tSSOUonvmi9s?via=matrix.org
It seems to work now, I'm not sure what happens with the old event :

maybe the system doesn't like when there are no messages in the room.
maybe it helped that I simulated another user.

Anyway, thanks for your feedback, we can close the issue.

I will use this as a "BETTER ERRORS" issue :D

Thanks, keep on the good work ;-)

repo: matrix-org/matrix-static


text:
Updates for SQS writers

This PR adds the ability to batch publishes to SQS (a necessity for high throughput). This PR also adds the ability to create multi publishers to SQS. The constructor dictates batch-size and number of publishers. The external API doesn't change, however, the throughput with SQS will dramatically improve.

/home/travis/gopath/src/github.com/matryer/vice/queues/nats/nats_test.go:25:44: 2-valued uuid.NewV4() (value of type (github.com/satori/go.uuid.UUID, error)) where single value is expected

@jsteenb2 thanks for this - it looks like we've been hit for the first time with a dependency issue.

(please pull from master - I fixed that broken test)

@matryer the branch was rebased off of master with your fixes 👍

repo: matryer/vice


text:
Avoid using shared connection pool

With the current implementation a shared connection pool per ActorSystem is used for all requests.
Its probably better to have a dedicated connection pool per Host.
See akka/alpakka#1958 and akka/alpakka#1983 for similar issue and PR.

Any idea how to ideal with multiple regions? I wonder since depending on the region, it's a different host, so, it should handle multiple connection pools depending on the aws client usage.

Hi @gabfssilva, thanks for giving this a thought. Yes, we would need multiple pools, each for every aws service endpoint (also possible multiple regions per service).
A first naive idea coming to my mind is getting the service url from httpRequest.uri and kind of build a map/cache with ServiceUrl -> ConnectionPool. But I don't know how feasible this is. This would be in the hot code path for every request.

That's what I thought too. A synchronized map should be enough. Well, I'll think of something.

I had another idea how a design for this could look like.
What if we extend the builder of the Akka async client with something like withCachedPoolSettings (maybe a more suitable name is better), where we let the user provide the endpoints and regions, used in user code. Out of this, we construct the map of cachedConnectionPools and for the request its just a simple lookup, without any thread synchronization needed.
We can also decide if we want to fail (exception), if an endpoint is not in the map or fallback to the sharedPool.
This approach makes it configurable for the user and avoid the potential synchronization performance penalty.
WDYT?

I think it can be done, the only problem here is that the user would need to know which domains he needs to set up. Each AWS service has a different domain, also, using "fake aws" also implies in using different endpoints.
I fear it become complex.
Instead of using a syncronized map we could use an actor to handle the pools:
 //if the pool does not exist, it's created here
val pool = (pools ? Gimme(domain)).mapTo[Pool]

for {
  p <- pool
  r <-  p.offer(request, promise)
  //check R if the request is queue
} yield promise.future

I ran a POC over here and it worked quite well, but, hard to measure any performance pernalty over the singleRequest approach. The only issue here is: the first request will always be much slower than the following ones, but, I'm not sure it happens already using singleRequest.

@gabfssilva I can confirm the first request you talking about, it's slower. But if using actor to handle the pools in the background, there need to be an option to opt-out. I would go with withCachedPoolSettings as @matsluni suggested.

Here is my solution running about 300+ small S3 uploads, and 100+ DynamoDB at the moment. @gabfssilva @matsluni What do you think?
akka {
  http {
    host-connection-pool {
      max-connections = 2048
      max-open-requests = 16384
      idle-timeout = 2 min
    }
  }
}

private val QueueSize: Int = 16384
private var sourceQueue: Map[String, SourceQueueWithComplete[(HttpRequest, Promise[HttpResponse])]] = Map.empty

private def createSourceQueue(host: String): SourceQueueWithComplete[(HttpRequest, Promise[HttpResponse])] = {
    // Materializes this Source, immediately returning
    // (1) its materialized value, and
    // (2) a new Source that can be used to consume elements from the newly materialized Source.
    // https://loicdescotte.github.io/posts/play-akka-streams-queue/

    val (queue, source) = Source
      .queue[(HttpRequest, Promise[HttpResponse])](QueueSize, OverflowStrategy.backpressure)
      .preMaterialize

    source
      .via(Http().cachedHostConnectionPoolHttps[Promise[HttpResponse]](host))
      .to(Sink.foreach({
        case (Success(response), promise)  => promise.success(response)
        case (Failure(exception), promise) => promise.failure(exception)
      }))
      .run()

    queue
  }

override def execute(request: AsyncExecuteRequest): CompletableFuture[Void] = {
    val httpRequest = toAkkaRequest(request.request(), request.requestContentPublisher())
    val handler     = request.responseHandler()
    val host        = httpRequest.getUri().getHost.address()

    if (!sourceQueue.contains(host)) {
      sourceQueue += host -> createSourceQueue(host)
    }

    val queue           = sourceQueue.getOrElse(host, throw new RuntimeException("Host not found"))
    val responsePromise = Promise[HttpResponse]()

    val result = queue
      .offer(httpRequest -> responsePromise)
      .flatMap {
        case QueueOfferResult.Enqueued           => responsePromise.future
        case QueueOfferResult.Dropped            => Future.failed(new RuntimeException("Queue overflowed"))
        case QueueOfferResult.Failure(exception) => Future.failed(exception)
        case QueueOfferResult.QueueClosed =>
          Future
            .failed(new RuntimeException("Queue was closed (pool shut down) while running the request"))
      }
      .map { response =>
        handler.onHeaders(
          SdkHttpFullResponse
            .builder()
            .headers(
              response.headers
                .groupBy(_.name())
                .iterator
                .map { case (k, v) => k -> v.map(_.value()).asJava }
                .toMap
                .asJava
            )
            .appendHeader("content-length", response.entity.contentLengthOption.getOrElse(0).toString)
            .appendHeader("content-type", response.entity.contentType.toString())
            .statusCode(response.status.intValue())
            .statusText(response.status.reason)
            .build()
        )

        val (complete, publisher) = response.entity.dataBytes
          .map(_.asByteBuffer)
          .alsoToMat(Sink.ignore)(Keep.right)
          .toMat(Sink.asPublisher(fanout = false))(Keep.both)
          .run()
        handler.onStream(publisher)
        complete
      }
      .recover {
        case exception: Exception =>
          handler.onError(exception)
          throw exception
      }
    FutureConverters.toJava(result.map(_ => null: Void)).toCompletableFuture
  }

authors: gabfssilva garhirunrat matsluni

repo: matsluni/aws-spi-akka-http


text:
Svelte Inspector Article is outdated

I'd appreciate if anyone could spare some time to fix the content of the code or include missing information - maybe a import is necessary but I had no success making it work for me on Sveltekit.

Hey! 👋
Please use discussions and explain what is not working.

repo: mattcroat/joy-of-code


text:
fix for default max gas on payable functions

What ❔
Removed the gasLimit override for payable functions.
Why ❔
The explorer sets the gas limit to 10000000 by default for payable functions, preventing connected wallets like MetaMask from setting their own correct gas estimates.

Thanks for the PR, the same changes were already done in this PR.

repo: matter-labs/block-explorer


text:
Disable reinitializing token decimals

What ❔
Disable reinitializing token decimals
Why ❔

Checklist

[ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.

Already included as part of the following release: https://github.com/matter-labs/era-contracts/pull/167

repo: matter-labs/era-contracts


text:
'internal' protection level on Web3Error description property

May relate to #171

Opened PR: https://github.com/matter-labs/web3swift/pull/181

@andresousa accepted #181. Think may be closed

thanks @BaldyAsh!

authors: BaldyAsh andresousa


text:
zk stack init failed with unknown shorthand flag: 's' in -s in docker when we use localhost (matterlabs/geth)

🐛 Bug Report
📝 Description
When we do zk stack init using localhost (matterlabs/geth) as an L1 network it's failing when it executing docker commands.
Look below for the error.
user@node:~/zksync-era# zk stack init

----------------------------------
> Initializing hyperchain creation
(node:162709) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✔ Do you want to configure a new chain or use an existing configuration? · Configure new chain

----------------------------------
> Setting hyperchain configuration
✔ What is your hyperchain name? · hyp
✔ What is your hyperchain id? Make sure this is not used by other chains. · 8990
✔ To which L1 Network will your hyperchain rollup to? · localhost (matterlabs/geth)
Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1
unknown shorthand flag: 's' in -s
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
  run         Create and run a new container from an image
  exec        Execute a command in a running container
  ps          List containers
  build       Build an image from a Dockerfile
  pull        Download an image from a registry
  push        Upload an image to a registry
  images      List images
  login       Log in to a registry
  logout      Log out from a registry
  search      Search Docker Hub for images
  version     Show the Docker version information
  info        Display system-wide information
....

Error: Child process exited with code 125

🔄 Reproduction Steps

clone zksync-era
cd zksync-era
run zk command first
then run zk stack init or zk stack demo` (both failing at the docker execution)
when we execute zk stack init
select new chain
select  localhost (matterlabs/geth)
Then it'll fail to execute docker and all the commands.

🤔 Expected Behavior
I should have my L2 (hyperchain) ready.
😯 Current Behavior
it's failing after we select   localhost (matterlabs/geth)  when we do zk stack init
🖥 Environment
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy

📋 Additional Context
zk stack demo is also failing at the same step.
📎 Log Output
Paste any relevant log output here.

@montekki For me it's still showing and I am using the latest commit.
When I run zk stack demo
user@Node-2:~/zksync-era# zk stack demo
Configs compiled for demo
(node:534940) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1
unknown shorthand flag: 's' in -s
See 'docker --help'.

FYI, git log
user@Node-2:~/zksync-era# git log
commit 61712a636f69be70d75719c04f364d679ef624e0 (HEAD -> main, origin/main, origin/HEAD)
Author: Stanislav Bezkorovainyi <stanislavbezkor@gmail.com>
Date:   Thu Jan 4 14:40:26 2024 +0100

    feat(vm): Separate boojum integration vm (#806)

    ## What ❔

    Changes needed to make the boojum integration VM work as a separate VM
    version from "latest"

    ## Why ❔

    <!-- Why are these changes done? What goal do they contribute to? What
    are the principles behind them? -->
    <!-- Example: PR templates ensure PR reviewers, observers, and future
    iterators are in context about the evolution of repos. -->

    ## Checklist

    <!-- Check your PR fulfills the following

I am using the latest build.

I'm currently having the same issue
Docker version 20.10.5+dfsg1, build 55c4c88
unknown shorthand flag: 's' in -s
See 'docker --help'.

What is your current HEAD of zksync-era repo?

It's the main branch @montekki

??

repo: matter-labs/zksync-era


text:
web3 js zk-synk plugin templates

What :computer:
This PR adds templates how to use web3js with zkSync
CLI PR
Templates PR
web3-zksync-plugin
Why :hand:

Reason why first thing was added to PR
Reason why second thing was added to PR
Reason why third thing was added to PR

Evidence :camera:
Include screenshots, screen recordings, or console output here demonstrating that your changes work as intended

Notes :memo:

Any notes/thoughts that the reviewers should know prior to reviewing the code?

Thanks for your contribution @avkos
Please make changes according to suggestions from @luu-alex (thanks tho!)
Also please make sure there is no package-lock file, since we allow users to use any of the package managers, therefore don't want to provide npm one by default

Thanks for your contribution @avkos Please make changes according to suggestions from @luu-alex (thanks tho!) Also please make sure there is no package-lock file, since we allow users to use any of the package managers, therefore don't want to provide npm one by default

done. thanks

repo: matter-labs/zksync-scripting-templates


text:
[MM-24286] - Fix save image functionality of context menu

Summary
The issue is that in the context of the setup here webContents aren't passed to webview. What I did fixes the issue but there might be a better solution. Suggestions?
Issue link
https://mattermost.atlassian.net/browse/MM-24286
Fix versions
v4.5 Desktop App

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

/update-branch

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

Trying to auto merge this PR.

Pull Request successfully merged
SHA: 162a5a7fa4970befea4013ef47c9a43864e11659

authors: hanzei mattermod nevyangelova

repo: mattermost/desktop


text:
[MM-30147] [MM-30146] fix loading path for cert modal

Summary
When there is more than one client certificates that fits to authenticate, we show a modal for choosing the right one. currently this was failing as it was using an old method for detecting were to get the preload info, updating to the new one seems to fix the issue.
Ticket Link
MM-30147
MM-30146
Release Note
NONE

@nevyangelova @devinbinnie Please help prioritize this PR review.

@Willyfrog Can we cut a new RC for this, maybe today?

sure thing! I'll do that today

authors: Willyfrog amyblais


text:
Update CLI docs to rst

Should fix a broken rst tip

+1

authors: esethna lfbrock

repo: mattermost/docs


text:
Emoji picker freezes the app

Summary
When I open the emoji picker on my iPhone, the app freezes completely, and I am forced to do a hard reload in order to continue using the app. But it works perfect on Android.
Environment Information

Device Name: iPhone Xs (probably any iPhone)
OS Version: iOS 15.6 (probably any iOS)
Mattermost App Version: v2.1.0
Mattermost Server Version: v7.8

Steps to reproduce

Long press on a channel/private message
Tap emoji picker
Try to scroll and pick an emoji

Expected behavior
I can open and close the emoji picker, as well as scroll through all available emojis
Observed behavior (that appears unintentional)
Possible fixes
Totally no idea

Thanks for filing this, @Nick-Su!  I was coming here to file this exact issue.

Does this reproduce on the latest Mobile app version (v2.2.0)?

This version appears to solve the issue for me.

I confirm. v2.2.0 solves the issue. Yay!

authors: Nick-Su amyblais heumann

repo: mattermost/mattermost-mobile


text:
MM-31874 Properly use theme mention highlight link color

Summary
In a previous PR #5268 then mention color used was the wrong one, this PR applies the mentionHighlightLink color to mentions that are highlighted.
Note: No dev review needed, it only replaces the color used.
Ticket Link
https://mattermost.atlassian.net/browse/MM-31874
Release Note
NONE

Building app in separate branch.

Cherry pick is scheduled.

authors: enahum mattermod


text:
fixed theme save on android back button

Summary

Fixed storing theme preference on pressing Android back button
Ticket Link

Fixes https://github.com/mattermost/mattermost/issues/24460
Checklist

[x] Have tested against the 5 core themes to ensure consistency between them.

Device Information
This PR was tested on:
Device: Samsung Galaxy S20 FE
OS: Android 13
Screenshots

Release Note

NONE

Hello @harshal2030,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Building app in separate branch.

@yasserfaraazkhan Can you help test this? I don't have a working Android device with me right now.

Building app in separate branch.


text:
Fix plugin icon

Summary
Fix plugin icon file name
Ticket Link
None

Codecov Report
Base: 65.85% // Head: 65.85% // No change to project coverage :thumbsup:

Coverage data is based on head (21f5ed1) compared to base (2ea6115).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #155   +/-   ##
=======================================
  Coverage   65.85%   65.85%
=======================================
  Files          16       16
  Lines        1637     1637
=======================================
  Hits         1078     1078
  Misses        520      520
  Partials       39       39

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter hanzei

repo: mattermost/mattermost-plugin-servicenow


text:
MM-17299 Fix option to leave team when primary team is set

Summary
Fix option to leave team when primary team is set.
Test steps per Jira ticket.
(Assigning Lindy for QA Review being on platform team).
Ticket Link
Jira ticket: MM-17299

[X] unit test included

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-3244.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

Spinmint test server destroyed

authors: mattermod saturninoabril

repo: mattermost/mattermost-webapp


text:
[MM-23517] - Fix channel header popover

Summary
This fixes the line breaks that were removed in the markdown formatting. Checked the messages everywhere that use the 'marked' function and nothing looks broken. The style change is needed because on the new side bar the popover needs a different left offset.
Ticket Link
https://mattermost.atlassian.net/browse/MM-23517

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-5159.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

/update-branch

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit 7a6140a97bcac03aba673328eaba76ba7da89613.
Access here: https://mattermost-webapp-pr-5159.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit a65987de9f56e1f653355f3ff0088fe26c347631.
Access here: https://mattermost-webapp-pr-5159.test.mattermost.cloud

@devinbinnie I see the point of doing it without Javascript but I feel in this case is more clear to drive it from the state, because the reason for adding the class is clearer and its grouped together with the other variable.

@nevyangelova Looks good
Only one issue
there is a shift to the left in the popover on DM channels, due to status below name. See gif.

New commit detected. SpinWick will upgrade if the updated docker image is available.

@hmhealey @devinbinnie I am not super happy with the hacky CSS of the popover and would like to open a follow up ticket to investigate re-doing it and fixing the positioning in a more elegant and consistent way, similar to the dot menu exploration.

Mattermost test server updated with git commit c8f9e3773442c744fe7941e9fcb4d3555931eddc.
Access here: https://mattermost-webapp-pr-5159.test.mattermost.cloud

@devinbinnie I see the point of doing it without Javascript but I feel in this case is more clear to drive it from the state, because the reason for adding the class is clearer and its grouped together with the other variable.

@nevyangelova I look at it as a separation of concerns issue, where the styling and component logic should be kept separate. I would only use a custom class driven by component logic when CSS breaks down.
I'm only about 2/5 on this, not sure what other people think but I won't hold up the PR.

I agree with that and I am not happy with the final solution with adding classes, lets explore redesigning the component and styles in the ticket I mentioned above.

Test server destroyed

authors: devinbinnie jgilliam17 mattermod nevyangelova


text:
PLT-6050 Prompt user when leaving System Console page with unsaved changes

This is a reresubmission of https://github.com/mattermost/platform/pull/7018 rebased onto master and with my review feedback addressed. Original PR description below:
Summary
The user is prompted with a "discard changes" dialog when they have unsaved changes and attempt the following:

navigating to another console page
switching teams
logging out

The dialog gives them the option to cancel their navigation, or confirm it.
Implementation details:

Created a more general system for blocking navigation pending confirmation. This approach could eventually be expanded to confirm navigation (from unsaved changes or other things) in other parts of the application.
Instead of using connect a lot or passing actions through multiple components, created a new connected container component for links, BlockableLink to encapsulate the navigation confirmation logic. Since AdminNavbarDropdown didn't use a Link, I connected it.
Introduced redux-thunk action creator
The mockup had a dialog with blue buttons, whereas the theme for the System Console resulted in a grey btn-default. I tracked down the CSS that made other buttons blue. It was in utils.jsx for theming, and I decided it was too difficult to work with without having unintended consequences. I made my own CSS for the discard changes modal.
Changed the linting rules so I could use spread rest syntax

Ticket Link
https://mattermost.atlassian.net/browse/PLT-6050
https://github.com/mattermost/platform/issues/6230
Checklist

[x] Has UI changes
[x] Includes text changes and localization file ([.../i18n/en.json]

I'll do a quick style pass and make sure we're using PureComponents wherever possible

@crspeller Can we get a review on this before I rebase it again?


text:
Translations update from Weblate

Translations update from Weblate for mattermost-languages-shipped/mattermost-webapp.
Current translation status:

Hello @weblate,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

authors: mattermod weblate


text:
Fix several bugs on saved posts and mentions (#9310)

Fix several bugs on saved posts

Fix tests and fix teamID references in dot menu

Fix lint

Unify teamId and currentTeamId

Fix lint

Fix test

Co-authored-by: Mattermod mattermod@users.noreply.github.com

Summary

Ticket Link

Related Pull Requests

Has server changes (please link here)
Has mobile changes (please link here)

Screenshots

Release Note

/release-note-none

authors: amyblais larkox


text:
apollo-client integration ?

😃 what about that ? any ideas ?

I have not tried this myself, but I guess you could try writing a custom fetch as they show in their documentation https://www.apollographql.com/docs/react/networking/advanced-http-networking/#custom-fetching

I tried that but it's not working,
any idea how to do it please?

No, sorry I as I said I have not looked into it.. we do not use apollo in our app or any other gql client

I think it should if I return the same response as the default fetch,
i'll try to find a solution maybe we can make an example,
many people are using apollo, it will help the lib
thank you any ways 🥰

repo: mattermost/react-native-network-client


text:
Support serving static content externally

still some work to be done, putting this up to get feedback on some of these changes.
Some of this may be rolled back before final merge - I took the "rip things out and build it back up" approach to implementing these changes, and some of the end result was pretty similar and might not be worth making.
Some of this dates back to before cppcon, so the detailed train of thought behind the changes is fuzzy.
Depends on https://github.com/mattgodbolt/compiler-explorer-image/pull/274

Lot of changes, but feels like it makes sense

Testing around a little with static folder deleted,  after npm run start.
Looks like favicon is still being loaded from static/ instead of dist/

This is intentional, but I'm not 100% happy with the favicon stuff tbh.
I feel like the HTML head should have a link to favicon on the cdn instead of relying on the browser default of /favicon.ico.

Looks good as far as I can tell!
We need to chat about how we might roll this out (once weekend maybe?). Also how this interacts with any terraform changes (like right now terraform wants to undo a ton of @partouf 's changes; will those be unnecessary once this is all done?)

With this my changes won't be needed anymore, we will probably have a couple of minutes of 404's on the first restart depending on order of execution, but I doubt anyone would notice.
Of course, I do suggest to try and make it work on staging/beta first.

[ ] Property staticUrl=https://static.ce-cdn.net/ missing in compiler-explorer.amazon.properties
[ ] MIME type on S3 for .css files are on binary/octet-stream, should be text/css
[ ] error breadcrumbs.js:64 Failed to construct 'Worker': Script at 'https://static.ce-cdn.net/editor.worker.js' cannot be accessed from origin 'https://godbolt.org'.
[ ] Golden-Layout is missing from webpack?

The Worker error can be resolved following https://github.com/microsoft/monaco-editor-webpack-plugin/issues/42#issuecomment-499877589 and https://github.com/microsoft/monaco-editor/blob/master/docs/integrate-amd-cross.md
But I'm clueless on that, so maybe someone can help with that?

I couldn't get that MonacoEnvironment thing working locally - it seems like the webpack plugin is hosing us here.
Given the current bug in the webpack plugin, we could actually use an interesting workaround here:
We currently have:
__webpack_public_path__ = window.staticRoot;
window.__webpack_public_path__ = __webpack_public_path__;

__webpack_public_path__ is used by webpack for importing chunks
window.__webpack_public_path__ is used specifically by monaco to resolve the worker urls
We could set window.__webpack_public_path__ to something on the origin domain and serve the worker scripts from there.
Although I would rather get this fixed in the webpack plugin.
If we want to keep using it, it may be time to fork it and fix some of the issues ourselves given the lack of attention upstream...

I think this is good to go - tested on staging that the web workers load correctly now (or at least I don't get any console errors and the web request goes through).

very cool!
I propose we merge and then push first thing tomorrow morning (CST): I'm working from home and so can easily jump on to fix any fallout issues. Not that there will be, of course!

@apmorton are we good to merge this? Test in staging seemed good?

Merging after checking the changes in compiler-explorer-image

authors: apmorton mattgodbolt partouf

repo: mattgodbolt/compiler-explorer


text:
Switch to node-fetch

Thanks @bitinn

@samgiles were you actually using these https://github.com/matthew-andrews/isomorphic-fetch/pull/8
wondering about whether it's bad to not make a major version bump to remove a feature from an API when that API was never documented and has only been around for 9 days … … …

I was using them for a personal thing to add Zipkin tracing to fetch.  I
had a use case, can't remember what it was without laptop.
On Tue, 27 Jan 2015 19:58 Matt Andrews notifications@github.com wrote:

@samgiles https://github.com/samgiles were you actually using these #8
https://github.com/matthew-andrews/isomorphic-fetch/pull/8
wondering about whether it's bad to not make a major version bump to
remove a feature from an API when that API was never documented and has
only been around for 9 days … … …
—
Reply to this email directly or view it on GitHub
https://github.com/matthew-andrews/isomorphic-fetch/pull/13#issuecomment-71716667
.

as we discussed this'll be a major version bump

authors: matthew-andrews samgiles

repo: matthew-andrews/isomorphic-fetch


text:
My blogs is not in the list

Hi Matthias,
thank you for this great initiative!
I don't find my blog in the opml file.
Maybe because my blog is hosted on dev.to.
If you want you can change the original list in the other repo with the link: https://dev.to/kasuken and my rss feed is located: https://dev.to/feed/kasuken

Thank you, Emanuele. I will check it!

It says:
So Pretty clear that they do not want to have Bots.
{StatusCode: 403, ReasonPhrase: 'Forbidden Bots', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers: {   Connection: close   Server: Varnish   Retry-After: 0   Accept-Ranges: bytes   Date: Sun, 27 Nov 2022 12:08:03 GMT   Via: 1.1 varnish   X-Served-By: cache-fra-eddf8230083-FRA   X-Cache: MISS   X-Cache-Hits: 0   Strict-Transport-Security: max-age=31557600   Content-Length: 0 }}
I might just add something called "[Feed]" to the dotnet-content-creator list and just get the URL from there.
I have also been thinking about using something like a web scraping service that doesn't get black. But I do not have it as of now.

It's now in the list via the manually added label "Blog RSS" and directly giving the URL of it.

authors: kasuken matthiasjost

repo: matthiasjost/dotnet-creators-opml


text:
Incorrect Content-Type for RabbitMQ

Jmet sends a payload to a RabbitMQ server, but sets an incorrect content-type (application/octet-stream). It has to be "application/x-java-serialized-object". However, I've not found a way to set it in code.

➜  exp java -jar jmet-0.1.0-all.jar -u guest -pw guest -Q hello.world.queue -I RabbitMQ -Y calc 127.0.0.1 5672
ERROR d.c.j.JMET [main] Failed to setup external libraries!
java.nio.file.NoSuchFileException: external
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_65]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_65]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_65]
at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:407) ~[?:1.8.0_65]
at java.nio.file.Files.newDirectoryStream(Files.java:525) ~[?:1.8.0_65]
at de.codewhite.jmet.JMET.setupExternalLibs(JMET.java:174) [jmet-0.1.0-all.jar:?]
at de.codewhite.jmet.JMET.setup(JMET.java:118) [jmet-0.1.0-all.jar:?]
at de.codewhite.jmet.JMET.main(JMET.java:58) [jmet-0.1.0-all.jar:?]
ERROR d.c.j.JMET [main] Init failed:
com.rabbitmq.jms.util.RMQJMSException
at de.codewhite.jmet.target.impl.RabbitMQTarget.init(RabbitMQTarget.java:36) ~[jmet-0.1.0-all.jar:?]
at de.codewhite.jmet.JMET.pwn(JMET.java:82) [jmet-0.1.0-all.jar:?]
at de.codewhite.jmet.JMET.main(JMET.java:59) [jmet-0.1.0-all.jar:?]
Caused by: java.io.IOException
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:124) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:378) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:813) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:767) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:857) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.jms.admin.RMQConnectionFactory.getRabbitConnection(RMQConnectionFactory.java:96) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.jms.admin.RMQConnectionFactory.createConnection(RMQConnectionFactory.java:87) ~[jmet-0.1.0-all.jar:?]
at de.codewhite.jmet.target.impl.RabbitMQTarget.init(RabbitMQTarget.java:30) ~[jmet-0.1.0-all.jar:?]
... 2 more
Caused by: com.rabbitmq.client.ShutdownSignalException: connection error
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:361) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:226) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:118) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:378) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:813) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:767) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:857) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.jms.admin.RMQConnectionFactory.getRabbitConnection(RMQConnectionFactory.java:96) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.jms.admin.RMQConnectionFactory.createConnection(RMQConnectionFactory.java:87) ~[jmet-0.1.0-all.jar:?]
at de.codewhite.jmet.target.impl.RabbitMQTarget.init(RabbitMQTarget.java:30) ~[jmet-0.1.0-all.jar:?]
... 2 more
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:290) ~[?:1.8.0_65]
at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:139) ~[jmet-0.1.0-all.jar:?]
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:542) ~[jmet-0.1.0-all.jar:?]
at java.lang.Thread.run(Thread.java:745) ~[?:1.8.0_65]

As far as I can see the "application/octet-stream" is set internally in the JMS driver of RabbitMQ.
You could create a subclass of "RMQMessageProducer" and implement your own "sendAMQPMessage(RMQDestination destination, RMQMessage msg, int deliveryMode, int priority, long timeToLive)" method which changes the contentType to what you need.
You might want to create your own  "de.codewhite.jmet.target.impl.RabbitMQTarget" class for that  ;-)

authors: 0xwindows GrrrDog matthiaskaiser

repo: matthiaskaiser/jmet


text:
Allow PHPUnit 8

Is it possible to support PHPUnit 8 (maybe changing the requirements could suffice)?

Feel free to submit a PR. We can just release a new minor version for that if needed.

I encountered a dependency issue while trying to increase the version of PHPUnit. In order to do this another of your packages needs to be updated. Because this has to be merged first, I also made a PR to do this: https://github.com/matthiasnoback/phpunit-test-service-container/pull/6.
When that PR is merged I will make another PR to update this package.

Fixed in #3.

authors: MichielDilissen matthiasnoback


text:
Functional API Support

Hi,
This is fantastic--thanks so much for putting this together and out into the community!
I'm playing around with creating a custom Environment--and I'm trying to use Keras' Functional API that performs weight sharing, multiple inputs, merging of layers, etc.  If I have a CNN to estimate Q that takes multiple inputs, typically in keras you give a list of numpy arrays as input, and that works fine.  I was trying that here and it seems to not support that, is that correct?  I'm looking in dqn.py where the states are collected in forward() and then processed in batch in compute_q_values().
Do you know of a simple fix I can make to support this paradigm with your code?  Essentially giving a list of numpy arrays as input just as you might do with the Functional API in keras?  Or is that more complicated than it seems?
Thanks again!

Nevermind I answered my own question!  I can account for this in the Processor by reorganizing the state batch into a list and all works well.  Thanks!
(in case anyone else has this issue that's how you do it)

Yes, that's exactly how you're supposed to do it. I'll leave this issue open for now because this needs to be properly documented somewhere.

@austinreiter Can you share your code? Having the same issue, and an example would be phenomenal.

@StuartFarmer sure.  It's difficult to post all of my code but here's the gist.
I have a functional CNN setup that takes 3 inputs.  When i train normally I give it:
Xtrain = [X1, X2, X3] where each of X1, X2, and X3 are ntrainsamples x dims (and dims differs for each depending on what they are)
in the CNN definition, I have 3 different Input() layers for each of X1, X2, X3.
When you train the reinforcement learning here, internally it gets transformed into a single np array of lists of the 3 inputs.  So what you do is you write a Processor like this:
from rl.core import Processor
class MyProcessor(Processor):
def init(self, batch_size):
self.batch_size = batch_size
self.b1 = None
self.b2 = None
self.b3 = None
def process_observation(self, observation):
	# Don't do anything--I handle this elsewhere but you could do something here
	return observation

def process_state_batch(self, batch):
	"""
	Here we "fix" the data to support the Functional API
	"""

	batch_size = batch.shape[0]

            # I treat this as a special case b/c during warmups it seems to always use a batch of 1,
            # but I know I'm being unnecessarily dumb here
	if batch_size == 1:
		return [np.expand_dims(batch[0,0,0],axis=0), np.expand_dims(batch[0,0,1],axis=0), np.expand_dims(batch[0,0,2],axis=0)]

            # You'll notice what's returned is the 3 individual numpy arrays are in the 3rd dimension
	d1 = batch[0,0,0].shape
	d2 = batch[0,0,1].shape
	d3 = batch[0,0,2].shape

            # I do this to make the allocation easier to manage and do it only once
	if self.b1 is None:
		self.b1 = np.zeros((batch_size,d1[0],d1[1]), dtype=batch.dtype)
	if self.b2 is None:
		self.b2 = np.zeros((batch_size,d2[0],d2[1]), dtype=batch.dtype)
	if self.b3 is None:
		self.b3 = np.zeros((batch_size,d3[0],d3[1]), dtype=batch.dtype)

	for i in range(batch_size):
		self.b1[i] = batch[i,0,0]
		self.b2[i] = batch[i,0,1]
		self.b3[i] = batch[i,0,2]

            # This is how we normally input into one of these multi-input functional CNNs
	return [self.b1, self.b2, self.b3]

def process_reward(self, reward):
	# Don't do anything--I handle this elsewhere but you could do something here
	return reward

This all worked perfectly for me--I'm sure there are more elegant ways.  Hope this helps you!

@matthiasplappert Hi!
It looks like support for the functional API has been lost in one of the recent commits.  Any ideas on this?  Or is there something different I need to do?  I noticed that as of commit 534bfef6bddc0bec55fd43375b85b383d1b0a6ee it worked and sometime after that I get an error about a list of inputs.  Thanks!

Ops, sorry about that. That probably happened during the partial rewrite of DQN to make it more performant. Can you please post the full error message that you get?

Thanks @matthiasplappert.  This is the error I get:
File "build/bdist.linux-x86_64/egg/rl/agents/dqn.py", line 118, in compile
File "/usr/local/lib/python2.7/dist-packages/Keras-1.1.1-py2.7.egg/keras/engine/topology.py", line 1556, in init
inputs_set = set(self.inputs)
TypeError: unhashable type: 'list'
The error happens when i call compile:
dqn.compile('rmsprop', metrics=['mae'])

Alright, I have just fixed it and this is now an official feature with tests. I've also included a generic processor, MultiInputProcessor, to make the conversion easier. The tests also serve as an example for this kind of stuff now, check out https://github.com/matthiasplappert/keras-rl/commit/4ce0cc4d1f9f686fefc2ee77f47c380b529426d7#diff-cdd218b42c7199c4a3df836e1bc61667R45 to see how to use DQN with multi-input and the new processor.
Let me know if you still run into problems.

@austinreiter I want to use a dqn to classify the MNIST dataset so what I am planning to do is input a feature representation of the image(as the state) and and the action space is the prediction from 0...9.I want to create a custom reward function and a custom next state to use in the bellman equation.Could you help me out with the code in terms of how to use the existing stuff in this repo.

@saksham15082 Hi--I'm not sure this would work or is well formed for the deep reinforcement learning problem.  Your input state (image) is not actually "acted" upon to change anything about the environment.  So OK on the first iteration, you input some representation of the image (or the image itself) into a CNN and the q-values are estimated.  The max represents the action to take (in this case, the digit class label), and then what changes?  Do you keep inputting the same image over and over?  In that case I think it just reduces to classification with some other penalty rather than soft-max.
In any case to do this you just need to adapt the OpenAI Gym framework to basically re-implement the step() and reset() methods.  And then the keras-rl framework will easily retrofit to that inherited gym framework.  Hope this helps and good luck.

authors: StuartFarmer austinreiter matthiasplappert saksham15082

repo: matthiasplappert/keras-rl


text:
Make Client.Config public

Make Client.Config public to have access to AccessToken after authentication
Closes #114

Codecov Report

Merging #115 into master will not change coverage.
The diff coverage is 84.61%.

@@           Coverage Diff           @@
##           master     #115   +/-   ##
=======================================
  Coverage   80.02%   80.02%
=======================================
  Files          29       29
  Lines        1437     1437
=======================================
  Hits         1150     1150
  Misses        200      200
  Partials       87       87

Impacted Files
Coverage Δ

streaming_ws.go
96.07% <100%> (ø)
:arrow_up:

streaming.go
97.64% <100%> (ø)
:arrow_up:

mastodon.go
70.22% <77.77%> (ø)
:arrow_up:

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 050f1a0...86ba3d4. Read the comment docs.

LGTM, Thank you

authors: codecov-io dtluna mattn

repo: mattn/go-mastodon


text:
Fixes missing .pch build error

This fixes the issue of the iOS target not building on Xcode 6.3
because of the iOS test target is pointing to an non-existent .pch file.

@stevemoser thanks for pointing this out :)

Thanks, @stevemoser. Apologies for not getting to this sooner.

authors: hectr mattt stevemoser

repo: mattt/GeoJSONSerialization


text:
Feature Request: Support test generation for items marked with "internal" access.

I'd like to suggest a new feature:
Adding an option to define the scope of the methods/etc. selected for test generation.

public only
public and internal
[public, internal and private]  <-- maybe

I believe, based on my use, that only public items are selected for test generation. I also know that not everyone believes that non-public methods, should be included in units tests.
Adding the feature doesn't limit these beliefs, but does open up the use of Unitverse extension to more user scenarios.
Thanks for your consideration.

That's a good shout - I'll probably add an option 'Emit tests for internal members'. I probably wouldn't do private - because calling those would require reflection, which probably isn't something all that useful. But I'll definitely add the internal bit 👍

Implemented in 0.81 - let me know if that works for you 👍

Oh - forgot to say - it's disabled by default (to keep behaviour the same for existing installs)

Perfect 👍
Tried it out this morning. Works as requested.
Thanks for the super fast turnaround.
Thanks for your efforts on Unitverse as well.
-- Ed

On Jan 9, 2022, at 11:25 AM, Matt Whitfield @.***> wrote:

Oh - forgot to say - it's disabled by default (to keep behaviour the same for existing installs)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.

authors: eobeda mattwhitfield

repo: mattwhitfield/unittestgenerator


text:
Online Judge Verification Helper の導入

公式ドキュメント

しました
あとはテストを追加していくだけ

テスト追加は新しくissueを立てるか

license: Unlicense


text:
Feature/all problems

Problem List Table
I added a new component for the ProblemList table with a couple of filters for category and completed. I also added a new route "/problem-list", but I did not add it to the menu/navigation. I thought it would be nice to test it both locally and on the live site by navigating directly to the route without exposing it directly.
This of course could easily be extended to add additional columns/filters. I saw the points data point was recently added in! I am happy to make any requested changes and definitely open to feedback; this SFDC dev is newer to React 😄 .

@maujood sorry for the delay in contributing. When I got back from that company retreat I had a lot of work to catch up on and a few trips planned. Hope you are doing well!

repo: maujood/apex-sandbox


text:
Feedback on 6.5.0 Beta

I was using the current release version and the Lenovo XML wouldn't download. I updated to 6.5.0 beta and it fixed the issue.

When I launch and select 20H2, I get this error message:
`Loading module from path 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\BitsTransfer\BitsTransfer.psd1'.
Loading 'Assembly' from path 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\BitsTransfer\Microsoft.BackgroundIntelligentTransfer.Management.Interop.dll'.
Loading 'Assembly' from path 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\BitsTransfer\Microsoft.BackgroundIntelligentTransfer.Management.Interop.dll'.
Loading 'FormatsToProcess' from path 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\BitsTransfer\BitsTransfer.Format.ps1xml'.
Importing cmdlet 'Add-BitsFile'.
Importing cmdlet 'Remove-BitsTransfer'.
Importing cmdlet 'Complete-BitsTransfer'.
Importing cmdlet 'Get-BitsTransfer'.
Importing cmdlet 'Start-BitsTransfer'.
Importing cmdlet 'Resume-BitsTransfer'.
Importing cmdlet 'Set-BitsTransfer'.
Importing cmdlet 'Suspend-BitsTransfer'.
Exporting cmdlet 'Add-BitsFile'.
Exporting cmdlet 'Remove-BitsTransfer'.
Exporting cmdlet 'Complete-BitsTransfer'.
Exporting cmdlet 'Get-BitsTransfer'.
Exporting cmdlet 'Start-BitsTransfer'.
Exporting cmdlet 'Resume-BitsTransfer'.
Exporting cmdlet 'Set-BitsTransfer'.
Exporting cmdlet 'Suspend-BitsTransfer'.
Importing cmdlet 'Add-BitsFile'.
Importing cmdlet 'Complete-BitsTransfer'.
Importing cmdlet 'Get-BitsTransfer'.
Importing cmdlet 'Remove-BitsTransfer'.
Importing cmdlet 'Resume-BitsTransfer'.
Importing cmdlet 'Set-BitsTransfer'.
Importing cmdlet 'Start-BitsTransfer'.
Importing cmdlet 'Suspend-BitsTransfer'.
Cannot convert value "20H2" to type "System.Int32". Error: "Input string was not in a correct format."
At line:17837 char:5

...               $OSBuild = $WindowsBuildHashTable.Item([int]$OSVersion)

              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidArgument: (:) [], RuntimeException
FullyQualifiedErrorId : InvalidCastFromStringToInteger
`

I can confirm this is the same with us and is caused by the H in the OS version number, yet the variable expects only a number. The code will either have to convert this to 2009 and deal with this conversion in the ApplyDrivers script, or rewrite a lot of code to support the variable type change.

I can confirm this is the same with us and is caused by the H in the OS version number, yet the variable expects only a number. The code will either have to convert this to 2009 and deal with this conversion in the ApplyDrivers script, or rewrite a lot of code to support the variable type change.

Just confirming HP and Lenovo both use the 20H2 label in their filenames so this needs changing to 2009 as the apply driver script does use 2009 to search for and install them. The script does create the package, and we just need to rename the package to include 2009 in the name

+1 / BUMP / #attentionseeking - Have the exact same issue. =D

Yes, just add 2009 to the package name e.g. "Drivers - HP EliteBook 830 G7 Notebook PC - Windows 10 2009 x64"
I left the folder names the same but what you do is up to you. If you do change the folder name, you'll also need to make sure you update the package data source to point to the renamed folder which will kick off a package update.

authors: AdamGrossTX MichaelGibsonAltrad criiser

repo: maurice-daly/DriverAutomationTool