Feature/Extend Termination Time and Add Milestones

Added functions to extend termination time and add multiple additional milestones.
These are separate functions and also, for UX purposes of not having to sign multiple transactions, can both be completed in just the addMilestones() function if the user enters a _time > 0. Also included a getter for amounts (milestones).

Just some comments at first glance. Also, this overlaps with work george is doing, so I'm confused there a bit.

Peter and I talked yesterday and agreed to PR his commits rather than mine. The reasons were because:

It includes the function to extend termination time incase the client agrees more time needs to be added for the provider to achieve all the new milestones. We figured this would be a client only function since a provider could easily exploit this if able to extend time as well. However, we wanted to get a final consensus from everyone before deciding to leave it in.
The function to add new amount serves better as an uint256[] array. If the two parties want to add multiple new milestones to the invoice, they could. The addMilestone() function I created only allows users to add a single amount.

Therefore, I think it would be best to close PR #61 and proceed with this one to refine and merge.

Hey Peter, there is one change I would recommend.
In SmartInvoice.sol, I believe it would be more gas efficient if you set line 150 as:
uint256 newTotal = total;
And then within the for loop starting on line 155, add a new line:
newTotal += _milestones[i - amounts.length];
Then that would remove the need for the third for loop and should make the tx less expensive.

I'm going to close this since the other one covers this code.


As a user, I would love if i can have a chart or graph detailing my expenditure for a certain period of time

To be completed in v2.0


drop mapWithIndex, kotlin now provides most fun ...Indexed

for instance, there is now also a foreachIndexed, filterIndexed

wrong thought, we still need it if we filter and want to keep the index


Added some parameters for posts

Hi @budparr,  while I was customizing your theme for my blog I've added some parameters to the posts that might be useful for others. I'm really new with Hugo and I'm not sure if it's correct what I did but It works and I'm open to learn and the critics.
I would be very happy to keep sharing the changes that are useful for me or other things that you may need.
Regards!

Hi @emitor Thank you. I like this idea. Give me a bit of time to go through the changes thoroughly and I will likely merge, though there's a conflict right now.
Wondering why you switched from using .Site.Params to $.Param?

I'm happy that you liked the changes!
I'm not sure why I've changed .Site.Params to $.Param I think that for the file single.html I've copied and pasted from the line 49 of the file /layouts/_default/baseof.html.
I've tried to fix the conflict here but it's still wrong. I'm doing the changes on my computer and do the commits right now. I've also added some other parameters, I'm not sure if I can add it in this Pull request or should I create another.

Ok, It seems that It add them automatically, sorry for my ignorance, I'm new in this. Please check them now.
If you want me to do some refactoring let me know. Maybe the parameters names are not so good for you.

Thanks @emitor for the work done here!
I'm sorry this PR has lingered for this long but nonetheless its history broad impact is a now bit much for us to review and safely merge. Would you mind creating an issue (or issues) listing the purpose/feature of this PR so we can track, spec, and potentially add them to a later version through several PRs. We're in the process of giving some much deserved love to Ananke in 2020.
I'm closing this one.


Add a sign in button to replace drop-down menu

It currently takes 2 mouse clicks to sign in. Can we move the drop down menu into a button instead to optimize for our clicks/keystrokes metric?

There is a logout button displayed once logged in. So it doesn't feel symmetric.

Ignore until https://github.com/redhat-developer/podman-desktop-redhat-account-ext/pull/35 has merged.
Cc: @dgolovin @benoitf @jeffmaury @slemeur

@vrothberg if you could file this issue on Podman Desktop side as this extension won't be able to change stuff

Will do, thanks!

Closing in favor of https://github.com/containers/podman-desktop/issues/5979

Reopen, so we can track the dependency from the extension stand point.

Being worked on in https://github.com/containers/podman-desktop/pull/6446

https://github.com/containers/podman-desktop/pull/6446 resolved. Closing.

Great work, thank you!


stylesheet and script missing (404 status)

Demo website can't load script and stylesheet.

This issue is known to us and we are working on the fix, thanks for the reporting!

Should be all right now.


shp2pgsql not installed

shp2pgsql amongst other PostGIS binaries are not installed after a seemingly successful PostGIS installation.
I believe this to be an issue with the packaging of the postgis yum package.

Was an incomplete postgis installation.  Installing postgis2_93-utils and postgis2_93-client resolved the issues with the missing executables.


How i may use media path?

Laravel Version: New
Voyager Version: New
PHP Version: 7.1
Database Driver & Version: MySQL 5.7
Localization: mcamara/laravel-localization - new
Description:
Hello guys.
How i may use media path?
Now my storage folder there
D:\Program\OpenServer\OpenServer\domains\rishat.kg\storage\app\public\
When i had url like this - rishat.kg/public/ - slider worked but
When I changed  my path to  rishat.kg
i have problem with 404 error. Because my jpg files not found.
http://rishat.kg/storage/app/public/slider/images/1.jpg
D:\Program\OpenServer\OpenServer\domains\rishat.kg\storage\app\public\slider\ (some files jpg)
My slider is dynamic. He will be replenished in the admin panel(media). How in the given case should I be?

Please provide the informations from #834, then I will open the issue again. 😄


[ci] remove mkdir

SSIA

JaCoCo Code Coverage 76.92% :white_check_mark:

Class
Covered
Meta
Status

  Generated by :no_entry_sign: Danger


all icons should be PureComponent

for better perf, svg can be quite nested
and probably we can simplify bunch of the SVGs code. like no need to do <g><g><path/></g></g> , no need for <title>, no need for  xmlns="http://www.w3.org/2000/svg" neither

I think svg icons are already defined as stateless functional component. What's the point of turning them into PureComponent ?

stateless function is not like PureComponent. function can't have a ref instance / internal state, but they are not treated as "pure" AFAIK, (like like a shallow equal shouldComponentUpdate implementation)

nice explanation https://stackoverflow.com/a/40704083

No way to manually control when a re-render is needed, since you can't define shouldComponentUpdate. A re-render happens every time the component receives new props (no way to shallow compare, etc.). In the future, React could automatically optimise stateless components, for now there's some libraries you can use. Since stateless components are just functions, basically it's the classic problem of "function memoization".

TBH this issue is very minor and just some polish. but I think if you have like lot of icons AND lot of redraw happening somewhere, it is possible a deep nested icon to be a perf bottleneck (might be premature optim ;) )


Generate the sitemap.xml file in Automated Jobs has wrong sitemap.xml link

v8.5.6
In Automated Jobs "Generate the sitemap.xml file" the link to "sitemap" in text "The sitemap has been generated (## pages)" links to https://mydomain.com/index.php/sitemap.xml (Page Not Found) but the actual sitemap.xml file is generated at https://mydomain.com/sitemap.xml

This was fixed in v9...  Mainly an inconvenience to administrators only.  We may or may not see a core fix for 8.5.x ?? @aembler
https://github.com/concrete5/concrete5/issues/9698

There will probably be another 8.5 release at some point in the future, although it's not as much of a priority as our version 9 releases.

Fixed in version 9.


Recently added balancer LP token isn't showing up as approved on the balancer front end.

The last merge added 0x7f6A9B65Cf1fc091b0E012c2908F0F711DFc95B5 which is a balancer LP token as an approved token on the polygon network.
When going into the balancer front end, i am getting an error reading indicating that the LP is not whitelisted.
Contract address is correct. The Merge is live. I'm not sure what the issue is.

I think the issue is likely that the generated tokenlist pull request has yet to be approved and merged.

https://github.com/balancer/tokenlists/pull/234 once this is approved the issue will likely clear.


Best video stuck on 720p

Hello,
No matter how I try to select one of the best quality for this video https://www.youtube.com/watch?v=q6kIwfEGLO4 it always gives me 720p

I tried

youtube-dl --list-formats --format "bestvideo+bestaudio" -v https://www.youtube.com/watch?v=q6kIwfEGLO4

With the same results
I am trying to get 4k streaming with mpv working, which works if I do:

mpv --ytdl-format="bestvideo+bestaudio" https://www.youtube.com/watch?v=q6kIwfEGLO4

My setup is Firefox + mpv-youtube-dl-binding > youtube-dl version 2<IP_ADDRESS> > mpv v2.0.0

You can't get streaming 4K since it's not served as single file but separate DASH audio and video.

How come streaming works (sound + video) with MPV?

mpv --ytdl-format="bestvideo+bestaudio" https://www.youtube.com/watch?v=q6kIwfEGLO4

Ask mpv, not youtube-dl.

Correct me if I'm wrong but MPV uses youtube-dl for streaming and you said It can't work so the command from MPV shouldn't work either, no?

I said that streaming (piping to player) cannot be achieved for separate audio and video streams on fly. I have no idea how mpv implements --ytdl-format="bestvideo+bestaudio".

As for the screenshot: best means best single file media. bestvideo is best DASH video, bestaudio is best DASH audio.


Add Mathjax/KaTeX to display math content

As the text already contains $ and LaTeX code everywhere, it should be quite simple to display it properly using mathjax, or the very cool KaTeX.
Mathjax instructions: https://docs.mathjax.org/en/v2.6-latest/start.html
KaTeX instructions: https://github.com/Khan/KaTeX/blob/master/contrib/auto-render/README.md
See here for a version of the sanity-preserver that uses Mathjax: https://arxiv.babushk.in/.

Very nice to see that you got it running!! Thanks for the links, I might incorporate sometime when I can steal some time.

Added this suggestion with the most recent commit. Thank you!


error: use of undeclared identifier 'SIGKILL'

../subprojects/d2tk/src/util_spawn.c:99:2: warning: implicit declaration of function 'kill' is invalid in C99 [-Wimplicit-function-declaration]
        kill(*kid, SIGKILL);
        ^
../subprojects/d2tk/src/util_spawn.c:99:13: error: use of undeclared identifier 'SIGKILL'
        kill(*kid, SIGKILL);
                   ^
1 warning and 1 error generated.

It looks like you forgot #include <signal.h>
OS: FreeBSD 12.2

thanks for reporting.
fixed upstream [1]
[1] https://git.open-music-kontrollers.ch/lad/d2tk/commit/?id=3ddb5acde365c6031c3ebf0698c2bbe8f2145be4

thanks for reporting.
fixed upstream [1]
[1] https://git.open-music-kontrollers.ch/lad/d2tk/commit/?id=3ddb5acde365c6031c3ebf0698c2bbe8f2145be4


ENH: Series.resample performance with datetime64[ns] #7754

It fixes the performance drop.
See %timeit result here.
@jreback Would you review this PR? Thanks!

hmm, would need a benchmark, e.g. post a sample timeit for before/after (on a good sized test frame)

import pandas as pd

intSeries = pd.Series(5, pd.date_range(start='2000-01-01', end='2000-01-08', freq='555000U'), dtype='int64')
timeSeries = intSeries.astype('datetime64[ns]')

%timeit intSeries.resample('1S', how='last')
%timeit timeSeries.resample('1S', how='last')
%prun intSeries.resample('1S', how='last')
%prun timeSeries.resample('1S', how='last')

Before
100 loops, best of 3: 18.8 ms per loop
1 loops, best of 3: 17 s per loop
449 function calls (441 primitive calls) in 0.021 seconds
[snip]
22378318 function calls (21773499 primitive calls) in 24.219 seconds
[snip]
After
100 loops, best of 3: 19 ms per loop
100 loops, best of 3: 20 ms per loop
449 function calls (441 primitive calls) in 0.020 seconds
[snip]
418 function calls (410 primitive calls) in 0.020 seconds
[snip]

ok, looks ok, can you add a vbench in vb_suite/timeseries.py. you can make similar to the above. but make smaller, so that the slowest time doesn't take too long (max 1s)

Added test. @jreback please review again.
$ ./test_perf.sh -b HEAD~1 -t HEAD -r timeseries
-------------------------------------------------------------------------------
Test name                                    | head[ms] | base[ms] |  ratio   |
-------------------------------------------------------------------------------
timeseries_resample_datetime64               |   3.7426 | 2009.6250 |   0.0019 |

Target [dd6ffa3] : ENH: Series.resample performance with datetime64[ns] #7754
Base   [3128215] : cleanup test for GH10044

Updated whatsnew/v0.17.0.txt.

looks good ping when green

on green! :) @jreback

ty!


.NET Core

Will Perspex be supported on .NET Core?  We need a good GUI framework for .NET Core that will work cross-platform.  This looks like it would be a good WPF replacement for that use case.

Yes, we fully intend to get Perspex working with .NET core, but we're waiting for the final release; in particular the .NET Standard Platform will make things in general so much easier!

I can't really wait to see .NET Core XAML apps running in Raspberry Pi 2

Me too. I hope the project is making progress in this direction.

I think our main blocker will be that fact that according to this it appears that Rx isn't yet working on .NET core.

So we are waiting till the chain of dependencies start supporting .NET Core.
I'm sure that will happen soon :+1:

This is great！

Well, with Core at 1.0 and that issue closed resolved, @grokys do you think work can start on this? I'd love to be able to use this with core. :)

Yes, it would be nice to try it out - please, give it a go!

Yes, it would be nice to try it out - please, give it a go!
Sorry, I guess I wasn't clear. I won't be able to port it now (have my own project I have to work on atm). :/ but best of luck to whoever tries it. :)

I was more asking if there were any other blockers to porting.

Ah sorry, I thought you were wanting to do it. I'm not going to do it myself right now, as there's a lot to do on the base and I want to wait for the .csproj support as that will make it easier to port, I think. But if anyone else wants to give it a try, I'm all for it!

If the move to csproj is a blocker for you, do note that you can target .NET Core with MSBuild right now, it's just a little less "pretty" than it will be in the future. We have a document here describing the process. If anyone is interested in pursuing that route. I'd be more than willing to help out with getting the build projects set up correctly. Most of my own personal projects use MSBuild with .NET Core, so I'm fairly familiar with how it all works.

@mellinoe oh that is indeed interesting! I probably won't have time for the next few weeks, but someone else may well wish to try it.

Ill give it a shot.

I've just had a quick go at converting our PCLs to .NET Standard and encountered the following problems:

'EmbeddedResource' doesn't seem to be supported
Splat doesn't have .net standard version
JetBrains.Annotations doesn't have .net standard version

You should be able to "import" the PCL platforms.  I know on project.json projects it looks something like:
"frameworks": {
"netstandard1.6": {
"imports": "portable-net45+win8+dnxcore50"
}
}
I'm not sure how that translates to the csproj format though.

Thanks @ScorchedHands - I will try that! Here is the PR btw: https://github.com/AvaloniaUI/Avalonia/pull/620

@ScorchedHands that seems to have allowed me to import the splat nupkg but now I'm getting errors like:
Error	CS0518	Predefined type 'System.Boolean' is not defined or imported

Any idea what the correct fix to that is? I've looked around but can't find anything definite.

@grokys I think it has to do with the monikers you chose. Perhaps reading through this blog post will help a little?

@ethanhs that post is very useful in general, thanks! However I can't see anywhere it addresses the issue I'm seeing.

It doesn't specifically, I should have been more clear. Since it isn't importing the correct types, I believe you are missing a reference to eg dnxcore50. I am going to poke at this, just checked out your pr.

I think @ethanhs is correct and you're not importing quite the correct types.  Though instead of dnxcore50 you probably have to import net451 since the "unsupported" packages are probably based on the full framework.  This is overall the trickiest part of bridging the .net framework with .net core.

OmniXAML v2 will support .NET Core!

For anyone interested in this, I rebased the PR I put up (#622) and was able to get the XamlTestApplication project to run on CoreCLR on Windows without any bugs (that I noticed :smile:). The PR isn't at a mergeable state yet, but the idea is there.

Any news on this?

@feliwir not yet - I'm currently rewriting our renderer so it doesn't draw the whole window on every frame. I personally won't be looking into .net core until I've finished that.

I know @curea is currently having a go.

Any updates? Id really like something to start building out some cross platform app and framework s

#875

.net core support is now merged #875


Choosing the right Bazel version to build TF is confusing

This bug was closed while the problem still exists: https://github.com/tensorflow/tensorflow/issues/21362

i have the problem while following this : https://www.tensorflow.org/install/source#docker_linux_builds to build the docker image

I still get the issue with version 1.12 with tensorflow/configure.py

I have same issue too. exact error shown in pc is
root@0d56190c7f6e:/tensorflow# ./configure
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.15.0 installed.
Please upgrade your bazel installation to version 0.19.0 or higher to build TensorFlow!
even if i have latest bazel  version 0.21.0

@dveselov It does work with tf 1.12.0 when upgrade bazel to 0.21.0

I get the following error, can anyone help me, I believe that it is related to this issue. When configuring bazel I get the following error.
root@636420111df0:/tensorflow# ./configure
Extracting Bazel installation...
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.23.2 installed.
Please downgrade your bazel installation to version 0.21.0 or lower to build TensorFlow!

Using tf 1.13 with bazel 0.23.2.
Am I better off down grading tf or bazel, I can't seem to find any instructions to install a different version of bazel

cmake does't seem to have such problems. Why not just use cmake instead?

@lamberta "What version of Bazel do I install to build TF" seems to be a common problem, and a static doc may be unreliable because the recommended version is likely to change as changes are made to master. Our best reference for any branch is always the configure script. Do you think it would be best to link straight to that from the build docs, or something like that?
Unfortunately, it looks like this issue has migrated from its original intent (to ask about the --batch warning). Since that's just a warning and the issue has changed topic, I'll adjust the title. If anyone still experiences issues with --batch mode, please create another issue.

So, there is not solution to this?

If the issue is that bazel ... prints
WARNING: --batch-mode is deprecated...

that's something caused by Bazel, not TensorFlow (also, it's just a warning, nothing breaks, can be safely ignored).

If the issue is that every version of TensorFlow can only build with some specific Bazel versions, then running ./configure before doing any compile will check if you have a Bazel that is supported. Afaik, there is no bug in the logic there, but if there's an issue, please open one and tag me.

Upgrading/downgrading bazel is just a matter of running the following commands
$ BAZEL_VERSION="0.26.0"     # insert your desired version here, for example 0.26.0
$ wget https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh   # if not on x86_64, change that too
$ chmod +x bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh   # or the file you just downloaded
$ ./bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh
$ bazel version   # this should now print the same as BAZEL_VERSION

I think this issue diverged too much, so I propose we close it and open new issues for individual components, if needed.

My issue was that the TF guide was telling me to use bazel 0.23.0 or lower but Bazel was telling me to upgrade to 0.24.1 to use it. In the end, I just upgraded and it worked.

Please downgrade your bazel installation to version x.x.x or lower to build TensorFlow! Even if you follow the version compatibility at https://www.tensorflow.org/install/source#cpu-only_2
Please downgrade your bazel installation to version 0.0.0 and still it doesn't work.


Rendering Novel View

I have rendered the video...however,  I want the novel view as shown in your paper... after rendering how should I do novel view synthesis..?

Hi,
What dataset do you use? Or you customized dataset?

I have created my dataset like the chicken dataset(HyperNerf) dataset with one camera...Looking forward to hear from you...

Hi,
If the dataloader is colmap format, you can just set eval=False, 4D GS will take these images as test set.
If you want to render novel view, you can customize camera video path in dataloader and use render.py to render it.

Thank you for the response.
Do you have any suggestion on how to customize? Or can you refer to any codebase which already does it?
Thank you!


Feature Request: Support hyphenated tag names

The custom-elements spec requires that custom elements contain a hyphen in the name. React natively supports this with React.createElement("my-custom-element", null).  Currently, react-templates compiles <my-custom-element> as React.createElement(my - custom - element, {}), which is undesirable.
Additionally, it would be nice to support hyphenated identifiers for components imported via rt-require:  <rt-require dependency='users/form' as='users-form'/>.
This could be handled in the templating phase (pre esprima.parse), and two separate cases would need to be handled:

For hyphens in rt-require components: convert dash-case names to camelCase.
For custom elements, enclose the identifier in quotes.

I'd be willing to work on this, but I figure I'd check to see if there were interest in the idea before starting development.

Regarding the custom elements, it was fixed in commit 5015222f4577a4898e3c353aa2d2dbade50979c3. It will be available in next release.
Regarding the second issue, we fill it will be confusing as the element and variable will not be the same.

I don't think the variable naming scheme will be confusing. Angular already does this with their directives (matching users-form to usersForm), and only advanced users will have use of the generated code anyway.
so, for example
<rt-require dependency='users/form' as='users-form'/>
<users-form/>

//Generated code
var usersForm = require('users/form');
...
React.createElement(usersForm, {})

As long as a consistent, documented approach is taken, users should be fine with it.


fix line spacing on Windows

resolves #48

this pr can solve our problem, hope to be merged

@wncm thank you!


Merge static checkers

Group by file and pretty print the output from both static checkers

Going to go ahead and merge. Made a 0.1.0 release, added the 2nd round of features, and I'll revisit the one true positive failure on Windows


Delete BiblePass_part01.txt

Thanks for the suggestion @Kareem-ka, however, not sure the reasoning behind this.
I've closed it for the time being. If you are able to give a reason why, please re-open it.


Upgrade to Python 3.x

Python 2 is dated and no longer receiving new features. It is still being maintained until 2020, so this is not a problem that needs to be solved immediately.
An upgrade to Python 3 will likely include upstream changes to ChatExchange as well.

See the SmokeDetector-NG project - a Python 3 redo of SmokeDetector in Python 3.  That may be what you're after.  Until ChatExchange is Py3'd it'd be hard to make this fully Python3 as is (mixing versions is evil)

SmokeDetector-NG is very early in the development process and has been subject to a couple "is it really needed?" discussions. Without making a judgement on that project, this issue is a note that at some point SmokeDetector needs to support python 3.

I have a local Py3 port already in progress. ChatExchange is the blocking problem for that migration..
Sent from my iPhone.  Please excuse any typos, as they are likely to happen by accident.

On Apr 13, 2017, at 12:30, A Wegner<EMAIL_ADDRESS>wrote:
SmokeDetector-NG is very early in the development process and has been subject to a couple "is it really needed?" discussions. Without making a judgement on that project, this issue is a note that at some point SmokeDetector needs to support python 3.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Hang on, do we not use CE6? I thought we did...

I don't think we have CE6.
On Apr 13, 2017 3:44 PM, "ArtOfCode"<EMAIL_ADDRESS>wrote:

Hang on, do we not use CE6? I thought we did...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Charcoal-SE/SmokeDetector/issues/640#issuecomment-294016532,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGKb50Iouz-nC6Gw_5ZjwSuBmeFo0fEAks5rvokPgaJpZM4M86zp
.

For now, it's probably best to forget Smokey-NG even exists. If it turns into a feasible replacement, awesome! But if it dies or never reaches that state, we shouldn't stall out on development here.

A nice-to-have would be to maintain cross 2/3 Python support, but that would probably take more effort than it's worth.

@angussidney doable, but we need to have a working ChatExchange that works with both Py2 and Py3.  Otherwise we're going to have a mishmash of code that is evil to maintain.

@Undo1 We could always fork ChatExchange under Charcoal-SE, import things from upstream as needed, and then make our CE Py3-converted.  Just to make sure it all works.

@teward That's what ChatExchange6 is - Python 2 and 3 compatible.

@ArtOfCode- Can we verify we are on CE6 or not?

@teward https://github.com/Charcoal-SE/SmokeDetector/issues/640#issuecomment-294023737

CE6 has been merged into CE last I checked. I've been using ChatExchange on master in Python 3 projects just fine.

That would be convenient

My ChatExchange6 fork got merged back into the main ChateExchange repo end of last year already by @ProgramFOX . It should be working now with both Python 2 and 3, although the current CI tests suggest that it might be failing on Python 2 currently... Don't know whether that is just an issue with the tests or the main code though, haven't been involved any more for a while.

Works for us on Python 2, @ByteCommander

@teward It looks like you've gotten it to at least pass unittests on Circle. I've gotten it to pass unittests on Win10 with a very minor fix.
I think those are big steps one and two.
The minor fix: It was initially failing on reading the Smokey source files in test_srccheck. This is because of the foreign characters. I fixed this by changing the open() call to also include encoding='utf-8'. This may be needed in other areas (like where we check the .txt files.

I'm going to call this one done. We've been running Py3 for several days now.


Demo link not working

Demo at bonestagram.com isn't opening for me. There are some redirects, probably it fells into a never ending loop of redirects like from a to b and then back from b to a and so on.

Hi @mohtamohit thanks for the heads up and sorry for the late reply. I am looking into it

@sacdallago @fayeli   Welcome. Actually, I got to know about the organization while I was searching for a GSoC project for summer job. Sir, I would be glad to contribute for this project this summer. Can you help me in getting started and through making a good proposal?

@sacdallago  And, have they applied to appear back in GSoC 2017?

Hi @mohtamohit, thanks for your interest to this project! I'm not sure if it will be appear back in GSoC 2017. Perhaps you might find answers from the organisers over at the BioJS slack channel.
As for the broken link, @sacdallago owns the domain name and it looks like something was up with the hosting. We'll try to fix that soon. In the mean time, if you'd like to try out the demo, feel free to clone this repo and run it locally. Alternatively we also have this video demo: https://www.youtube.com/watch?v=uWDkqoFHr_g
Hope this helps!

I have opened a ticket a month ago on the hosting service where the website is hosted. They still haven't been able to fix the problem, sorry!
There isn't much else I can do, as the problem depends from them :(
We are not going to apply for this year, unfortunately we don't have enough people and time to put into it! But I encourage you to look around at other orgs, some have similar interests :)

Aww I see. Maybe I'll look into hosting it on like heroku or something for the mean time (:

Just got it up and running on http://bonestagram.herokuapp.com/ Not as nice as our custom domain, but at least the demo is up! (:

Thanks @fayeli . I am still waiting (and paying) for the domain. Last resort might be to transfer it.

@fayeli @sacdallago It's really good. Just checked it out. :+1:


Add two numbers represented by linked lists

Hey, I'm GSSOC'21 Participant and want to work on this issue in C++
Please assign this to me @tarun26091999  @rudrakshi99

hey ! i am a GSSOC'21 participant and i would like to work on this issue please assign me this issue .
@tarun26091999 @rudrakshi99

Hello,
I am GSSOC'21 participant and i would like to work on this issue with proper testcases and comments.

I would like to implement it in python. Please assign it to me.

Hey, I'm a GSSOC'21 participant. I would like to work on this issue in C++, please assign it to me.

Hey, I'm a GSSOC'21 participant. I would like to work on this issue in C++, please assign it to me.

Hey, I'm GSSOC'21 Participant .
I would like to work on this issuse
Please assign this to me @tarun26091999 @rudrakshi99

Hey , I'm a GSSOC'21 participant . I would like to work on this issue please assign me .


p384 support

support p384, feature-gated similar to the other crypto primitives

Done by https://github.com/trussed-dev/trussed/pull/167 and https://github.com/Nitrokey/trussed-se050-backend/pull/33


使用MambaBCD_Small_LEVIRCD进行infer结果无图像

'--resume', \MambaBCD_Small_LEVIRCD+_F1_0.8825.pth'
'--cfg', \MambaCD-master\changedetection\configs\vssm1\vssm_small_224.yaml'
已添加，但是输出结果经过np.argmax(output_1, axis=1)后变成了全0，所有结果都是这样
不添加预训练参数的话，可以生成类似于随机的黑白图像

Hi @Si1ive ,
Thank you for your interest to our work and your question. Are you sure you put our trained weight under the right folder? According to your code, it seems that you only provide the name of the file instead of its full path.
BTW, in order to find your specific issue, we recommend you upload the full print output.
Best,

Hi @ChenHongruixuan
感谢您的回复
我的配置
parser.add_argument('--resume', type=str, default=r'F:\DMU\MambaCD-master\pretrained_weight\MambaBCD_Small_LEVIRCD+_F1_0.8825.pth')
parser.add_argument('--cfg', type=str, default=r'F:\DMU\MambaCD-master\changedetection\configs\vssm1\vssm_small_224.yaml')
我选取了一些数据进行infer，输出只有一些貌似不是要害的警告
=> merge config from F:\DMU\MambaCD-master\changedetection\configs\vssm1\vssm_small_224.yaml
F:\DMU\MambaCD-master\changedetection\utils_func\metrics.py:23: RuntimeWarning: invalid value encountered in scalar divide
Pre = self.confusion_matrix[1, 1] / (self.confusion_matrix[0, 1] + self.confusion_matrix[1, 1])
Racall rate is 0.0, Precision rate is nan, OA is 0.9594736893971761, F1 score is nan, IoU is 0.0, Kappa coefficient is 0.0
Inference stage is done!
结果图像，图像全黑

如果我把参数去掉parser.add_argument('--resume', type=str)
输出
=> merge config from F:\DMU\MambaCD-master\changedetection\configs\vssm1\vssm_small_224.yaml
Racall rate is 0.630826432181104, Precision rate is 0.038851767540863544, OA is 0.3525882562001546, F1 score is 0.07319551961496713, IoU is 0.03798803685589338, Kappa coefficient is -0.0034155665081370703
Inference stage is done!
生成的图像

Hi @Si1ive ,
First, please make sure the trained weight has been loaded successfully. Secondly, did you perform the experiment on your own data or on LEVIR-CD+ data?
Best,

Hi @Si1ive ,
May I ask did you solve the issue?
Best,


Visualize not working for local data

Hi Kirk,
it seems that i cannot use my local data for visualization of the production graph: it just stays empty, and with "Inspect" of the browser, it's just that: the svg-tag is empty. No debug output with -verbose that would give a hint.
How can I troubleshoot this resp. provide more information to you?
Other recipe settings work just fine.
Michael

this is because of https://github.com/KirkMcDonald/kirkmcdonald.github.io/commit/33743c8ab95dd8ad4bbb8b5b8ee90accf3b5481e
function renderGraph in visualize.js expects image sizes that are set manually in settings.js, but not for the local data.

Thanks .. so the issue is: I need to add the new files to the local settings.


[ci] New bazel-controlled Verilator chip-level tests are unreliable

#12482 adds a set of Verilator chip-level tests to CI and replaces system test. After merging, it is now apparent that these tests are flaky.
Currently, there are two major classes of problems observed:

Timeouts: some of the "fast" tests simply take longer than 1200s. In the UART output, it is clear that the test was cut off midway through printing out a message.
Opentitantool errors: currently, the prevalent error observed is that upon creating the backend, OTT times out scanning for output before Verilator starts up. To address this, we plan to add additional printouts to show what's printed at Verilator's stdout and allow the timeout to be configurable.

To address the problems in the meanwhile, I will take the following temporary actions:

Mark all verilator tests as flaky. This will be done by modifying the opentitan_functest rule to make Verilator tests flaky by default
Make the verilator tests non-blocking
Increase the timeout even more for the fast tests

These actions need to be reverted when this issue is addressed.

As part of working out how we broke CI here: why did the previous pytest+Meson approach work? Were we just lucky? Or have we changed our timing constraints to be tighter? Or something else?

The key differences are

Bazel's test runner uses Opentitantool which had a timeout issue when Verilator starts up too slowly (see point 2 above). pytest uses
The new set of tests is significantly larger than the previous set (about twice as many tests). This is straining the ci-public machines that run our CI pipeline. This contributed to issue 1 and to some extent issue 2 above.

To get this set of tests running within a reasonable timeframe and within the lower core-count ci-public runners, I needed to build the Verilator model to run single-threaded and then run 4 tests in parallel since each ci-public runner has 4 vCPUs. Turns out 1200s was not quite enough for some of the tests.
We're considering maybe reducing the number of Verilator tests. For instance, tests that are already run on the FPGA may not need to be duplicated on Verilator.

Thanks for the explanation. Sounds like the OTT fix should be easy enough (and is a hard requirement if anyone is going to use it with Verilator, I'd have thought).
About reducing the number of Verilator tests: definitely, yes! Are we currently running all our chip-level tests in CI? That's... very different from what the HW team are doing (smoke tests in CI; everything else in nightlies). I'd suggest moving to a similar approach.

It looks like the CI pipeline is getting bogged down with all these additional tests, so I've filed #12611 to cut it back down to the original set of tests being run by systemtest.

#12609 addresses the opentitantool problem. I'll file a PR after that gets merged to take advantage of the new timeout setting and clean up any remaining mess.


Using a values.Value("WARNING") as a string causes  in strings

Similar to this https://github.com/jezdez/django-configurations/issues/68
Is it possible to have a values.StringValue("") type?

Hmmm I think this only applies to old pypi versions

Still does some quirky stuff when using variables in a logger config
LOG_LEVEL = values.Value("WARNING")
'': {
'handlers': ['console'],
'level': LOG_LEVEL,
'propagate': True,
},
results in 'an exception WARNING' is not a valid log level.
if I use  'level': '{0}'.format(LOG_LEVEL),
I don't get an exception, but the logging level isn't set.
This is now using latest Master

if I use
LOG_LEVEL = values.Value("WARNING").setup('LOG_LEVEL')
Then it works.  Seems clunky?

This should be fixed in the next version.

thanks @jezdez


Is it possible to get animated warnings for archived data from an older time (ie last year)?

I am just curious about this. There was a severe weather day last year in my area, and I have an interest in seeing the warnings that came out along with the storms it they were for. They seem to work well for the current radar data. Thank you for adding the warning animation feature!

@dpaulat Here is a good source for radar archive: https://s3.amazonaws.com/noaa-nexrad-level2/index.html

Thanks for the feedback! It should be possible to add. I'll do some roadmap cleanup soon, and see where I can get it to fit.

NWS API: https://www.weather.gov/documentation/services-web-api#/
IA State Mesonet: https://mesonet.agron.iastate.edu/api/1/docs#/nws/service_nws_afos_list__fmt__get

Referencing issue #166
@JesseWx2011 Yes, that's where I'm currently pulling level 2 data from.

Thank you!


#85 Fix problem with laggy UI during APK download

View states in apps list are not preserved when leaving app and coming back again

@tuancoltech Can we close this pull request?

I'll update code with requested changes and close it tomorrow.


Fixes k9s build issue

Targets just the k9s tar.gz file and drops the .sbom filename that was getting snagged by the curl call as well.
If you're attempting to try this on an arm64 machine you'll need to pull #245 first to get the hypershift fix as well otherwise it won't build.  Regular x86_64 machines should build this with no issue.

/lgtm


Update to ES6

everything?

Maybe; would need to confirm that everything still works for people using npm to install this too, ideally not requiring them to use babel..


$promise->wait(); callback?

Here are example of using pool http://docs.guzzlephp.org/en/latest/quickstart.html#concurrent-requests
How can i set callback for event, when all pool requests are finished?

Calling promise on the pool will return a promise that is fulfilled when all requests in the pool have finished executing. You can use the then method to provide a function to execute upon fulfillment as described here.


feat: Better support of Gateway Subdomain spec

Added basic subdomain support by uplifting parameters extraction from Host header required for handlers.
DnsLink part of spec is not supported in this PR.
Related to #504
Spec:

[x] HEAD, GET methods
[x] DNSLink support
[x] Redirection from Path methods to Subdomain methods (behaviour is configured by option)
[x] X-Forwarded-Host support
[x] X-Forwarded-Proto support

Current PR won't cover URI router, I believe it is better to implement in a separate PR.

Can't figure out if we should do anything here with the note from spec:

Note: Base36 must be used to ensure CIDv1 with ED25519 fits in a single DNS label (63 characters).

Decode and then encode IPNS name? Or what?

In regards to the gateway changes, this looks great. Regex is a bit scary looking. Only thing I think we should do before the merge is resolve the multihash dependency.

No need to scare, I replace regex with function :)

Almost done, but should not merge until I set proper version of libp2p in Cargo.toml

We may create an issue for cleaning things out after libp2p release and merge this PR as is. If it is ok, I'll prepare proper commits tomorrow

We may create an issue for cleaning things out after libp2p release and merge this PR as is. If it is ok, I'll prepare proper commits tomorrow

Yeah I think this makes the most sense, appreciated

We may create an issue for cleaning things out after libp2p release and merge this PR as is. If it is ok, I'll prepare proper commits tomorrow

Yeah I think this makes the most sense, appreciated

Done

Argh, something happened during rebase, let me check what is wrong with the test

Fixed tests


Proposal: Develop a Junit4 Engine

To support the still widely used junit 4.12 we should develop an engine which entails a junit4 Runner and/or JunitRule.
If we are not inclined to do that we should at least consider how we manage to convince people to switch to junit5 ;)

Migration to JUnit Platform:

remove junit:junit dependency from test classpath
add org.junit.vintage:junit-vintage-engine to test classpath
update build tool:

Gradle: use Gradle >= v4.6
Maven: use maven-surefire-plugin >= v2.22.0

Using LivingDoc with JUnit Platform:

add org.livingdoc:livingdoc-api to test classpath
add org.livingdoc:livingdoc-junit-engine to test runtime classpath

Most people are already using JUnit 5 / Platform without even knowing it. If you are using IntelliJ >= 2017.1 - you are actually using the vintage engine to execute your tests in the IDE.

"most" people don't use intellij >= 2017.1 ;)

Yeah, but i think it's the same for eclipse as well. If you are using current versions of your IDE, you're using JUnit Platform without realising it - that's my point.

I'm not against writing a small module for JUnit 4 support - but it should start and stop at the MVP level :) invest in the future, not the past!

i am with you on that.
Sadly reality dictates mostly older technology :(
The paragraph for migration to junit5 is therefore of higher concern.
I doubt, that it is just done with switching to the vintage engine (in many cases at least)


Option to move zip-directory to "." (top level) of output zip file?

All of my code is in a src/ folder so I have the zip-directory set to "src".  The output of the mpy-zip is a src folder with the mpy files inside it, however, ideally I would love the src to be moved to the top folder ".".

Hi, sorry for the incredibly delayed response.  So you're saying you want to run mpy-cross on the src/ folder but in the zip folder put that in the top level?  Is that an example (or exactly) the use case you're describing?

Hi, Yes that is the exact use case but probably should be slightly more generic incase people have the source in another sub folder.

If you want to compile the src/ folder but zip the top level, you should be able to set the zip directory to . (which is the default) and set the mpy directory to src/.  Please let me know if that helps or if I'm still misunderstanding!

Ok, I will give this a try this weekend and see if that config work for my needs and let you know.

From: Alec Delaney @.>
Sent: Friday, December 29, 2023 1:43 PM
To: adafruit/build-mpy @.>
Cc: Jason Jackson @.>; Author @.>
Subject: Re: [adafruit/build-mpy] Option to move zip-directory to "." (top level) of output zip file? (Issue #18)
If you want to compile the src/ folder but zip the top level, you should be able to set the zip directory to . (which is the default) and set the mpy directory to src/.  Please let me know if that helps or if I'm still misunderstanding!
—
Reply to this email directly, view it on GitHubhttps://github.com/adafruit/build-mpy/issues/18#issuecomment-1872271651, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAN7MK553UVZUBCMTFPMNW3YL4FM3AVCNFSM6AAAAAA4NXUGMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGI3TCNRVGE.
You are receiving this because you authored the thread.Message ID: @.***>

Hi, did that solve your issue?

Hi,
I have to confess that this dropped off my list this weekend, I will attempt to get to it one day after work this week.

From: Alec Delaney @.>
Sent: Monday, January 8, 2024 10:10 PM
To: adafruit/build-mpy @.>
Cc: Jason Jackson @.>; Author @.>
Subject: Re: [adafruit/build-mpy] Option to move zip-directory to "." (top level) of output zip file? (Issue #18)
Hi, did that solve your issue?
—
Reply to this email directly, view it on GitHubhttps://github.com/adafruit/build-mpy/issues/18#issuecomment-1882299023, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAN7MK6IGHQ27KTHBTSU2DLYNSYMBAVCNFSM6AAAAAA4NXUGMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSGI4TSMBSGM.
You are receiving this because you authored the thread.Message ID: @.***>

Hi,
I finally got around to this and now I remember.. when I do the "." for the zip-directory it has the whole content of my github repository, not just the converted mpy files.  Which is sorta the opposite of what I am attempting to do.
My Workflow
name: Release CI
on:
release:
types: [published]
jobs:
upload-mpy-zips:
runs-on: ubuntu-latest
steps:
- name: checkout the current repo
uses: @.***
with:
submodules: true
- name: Create .version file
  run:
    echo '{ "version":"${{ github.event.release.tag_name }}" }' > src/.version

- name: Run MPY Action
  uses<EMAIL_ADDRESS>  with:
    github-token: ${{ secrets.GITHUB_TOKEN }}
    circuitpy-tag: "8.2.0"
    mpy-directory: "src"
    mpy-manifest-file: "mpy-manifest.txt"
    mpy-manifest-type: "exclude"
    zip-directory: "."
    zip-filename: "weather-matrix-${{ github.event.release.tag_name }}.zip"

Resulting zip file.
[cid:c1df4987-bacd-4ebc-b732-7482e087feef]

From: Jason Jackson @.>
Sent: Tuesday, January 9, 2024 6:22 AM
To: adafruit/build-mpy @.>; adafruit/build-mpy @.>
Cc: Author @.>
Subject: Re: [adafruit/build-mpy] Option to move zip-directory to "." (top level) of output zip file? (Issue #18)
Hi,
I have to confess that this dropped off my list this weekend, I will attempt to get to it one day after work this week.

From: Alec Delaney @.>
Sent: Monday, January 8, 2024 10:10 PM
To: adafruit/build-mpy @.>
Cc: Jason Jackson @.>; Author @.>
Subject: Re: [adafruit/build-mpy] Option to move zip-directory to "." (top level) of output zip file? (Issue #18)
Hi, did that solve your issue?
—
Reply to this email directly, view it on GitHubhttps://github.com/adafruit/build-mpy/issues/18#issuecomment-1882299023, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAN7MK6IGHQ27KTHBTSU2DLYNSYMBAVCNFSM6AAAAAA4NXUGMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSGI4TSMBSGM.
You are receiving this because you authored the thread.Message ID: @.***>

I'm still a little unclear of what the desired state you're looking for is.  Would you mind creating a text or image diagram of the current and desired output of the tool?
I can however say that depending on what that is, it may be slightly out of scope.  The goal of the action is to compile CircuitPython files and either zip them or a larger subset that includes them (i.e., zipping the compiled files or the entire project).  if you want you're asking for is for the output to reflect a different filetree (or sub-filetree) than than repository, you may want to move things in the CI prior to running the actions using commands like mv.
But I may be misunderstanding your request, so please let me know if that isn't applicable to your request.

Sure, I can look at this and send you something sometime in the next week or so.

From: Alec Delaney @.>
Sent: Tuesday, March 26, 2024 3:26 PM
To: adafruit/build-mpy @.>
Cc: Jason Jackson @.>; Author @.>
Subject: Re: [adafruit/build-mpy] Option to move zip-directory to "." (top level) of output zip file? (Issue #18)
I'm still a little unclear of what the desired state you're looking for is. Would you mind creating a text or image diagram of the current and desired output of the tool?
I can however say that depending on what that is, it may be slightly out of scope. The goal of the action is to compile CircuitPython files and either zip them or a larger subset that includes them (i.e., zipping the compiled files or the entire project). if you want you're asking for is for the output to reflect a different filetree (or sub-filetree) than than repository, you may want to move things in the CI prior to running the actions using commands like mv.
But I may be misunderstanding your request, so please let me know if that isn't applicable to your request.
—
Reply to this email directly, view it on GitHubhttps://github.com/adafruit/build-mpy/issues/18#issuecomment-2021298621, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAN7MK2LOVB24VB4HI6YUC3Y2HDX7AVCNFSM6AAAAAA4NXUGMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGI4TQNRSGE.
You are receiving this because you authored the thread.Message ID: @.***>


Cursor "Hand" not working in WASM

Describe the bug
In WebAssembly, setting the Cursor to "Hand" is not working
To Reproduce
See screenshot
Expected behavior
Show Hand-Cursor.
Works fine in Windows. Other Cursors "IBeam", "Cross", "Help" work in WebAssembly too.
Screenshots

Additional context

Avalonia uses "pointer" browser cursor type for "Hand" value.
https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Browser/Avalonia.Browser/Cursor.cs#L44
It should work fine.

Seems to be a problem in this code: https://github.com/AvaloniaUI/Avalonia/blob/58ef07bc10bbb632b3af59ba85e345e4c9d12fb8/src/Browser/Avalonia.Browser/webapp/modules/avalonia/input.ts#L268-L274
It should clear value on "default" and not on "pointer".

Ah yes, seems like this will be the issue. I'll prepare a PR.


Python: Fix OpenAI/API plugins based on samples path changes. Black formatting for notebooks.

Motivation and Context
After kernel plugin revamp and restructing samples, the OpenAI/API plugin samples were not working.

Description
This PR fixes:

The OpenAI/API plugin concept examples.
Updates the 3rd getting_started notebook to match the behavior of dotnet where only chat completion is used, instead of text completion.
Reformats via Black 2 getting_started notebooks.

Contribution Checklist

[ ] The code builds clean without any errors or warnings
[ ] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[ ] All unit tests pass, and I have added new tests where possible
[ ] I didn't break anyone :smile:

Python 3.10 Test Coverage Report • FileStmtsMissCoverMissingTOTAL552587784% report-only-changed-files is enabled. No files were changed during this commit :)
Python 3.10 Unit Test Overview

Tests
Skipped
Failures
Errors
Time

1256
1 :zzz:
0 :x:
0 :fire:
14.360s :stopwatch:

Was fixed in a subsequent PR. Closing.


Vlen sequence of variable-length UTF-8 strings cannot be written

Currently, testPutVLenUTF8 only checks that writing a sequence of UTF-8 strings returns 200. Adding a check to read back the value reveals that it's written incorrectly. Additionally, the write itself should be reported as a failure because _doHyperslabWrite fails, but doesn't raise an error to PUT_Chunk.
Addendum to testPutVLenUTF8 to elicit the error:
    # read values from dataset
    req = self.endpoint + "/datasets/" + dset_uuid + "/value"
    rsp = self.session.get(req, headers=headers)
    self.assertEqual(rsp.status_code, 200)
    rspJson = json.loads(rsp.text)
    self.assertTrue("value" in rspJson)
    value = rspJson["value"]
    self.assertEqual(value, data)

From the DN logs, the root cause of the failure is the frombuffer call in bytesToArray:
ERROR> bytesToArray threw ValueError: e_buffer: b'one: \xe4\xb8\x80', dtype: object

From further testing, this error doesn't have anything to do with UTF-8 encoding. It happens when attempting to write a sequence of variable-length strings of any type, because HSDS's current schema for sequences (4 byte length following by the rest of the data) has no way to delineate non-fixed length strings within that sequence.

Doesn't testPutVLenCompoundBinary in vlen_test.py have vlen and fixed types in the same compound type?

Doesn't testPutVLenCompoundBinary in vlen_test.py have vlen and fixed types in the same compound type?

Yes, but that test doesn't cover a variable-length sequence of variable length strings. One of the fields is an H5T_ARRAY that contains two variable-length strings, which seems like it would have run into this same issue - how does it know where the first vlen string stops and the second vlen string ends? I'll take a look at that and see if whatever is done there could apply to this case.

But currently vlen data isn't supported with H5T_ARRAY - see https://github.com/HDFGroup/hsds/blob/master/hsds/util/hdf5dtype.py, line 663

It might be easiest to use msgpack going forward.
I noodled around with it a bit today.  See: https://gist.github.com/jreadey/acafbc048c13ed245beae22619c3ac5c

But currently vlen data isn't supported with H5T_ARRAY - see https://github.com/HDFGroup/hsds/blob/master/hsds/util/hdf5dtype.py, line 663

H5T_ARRAY doesn't allow its base type to be a variable length sequence (type of class H5T_VLEN), but it is allowed to be a variable length string (string with length H5T_VARIABLE) - see https://github.com/HDFGroup/hsds/blob/ccd63c262575114fd69b1d330626b4f50a705dbe/tests/integ/vlen_test.py#L606

This behavior is now properly tested as an expected failure (since vlen sequences of vlen data aren't supported) by testPutVlenVlenError


Allow exceptions when establishing a connection to propagate to the caller

Let exceptions thrown when creating a connection in the establishConnection methods to propagate to the caller, so they can better decide how to handle the error, or show the user more informative error messages. Add docstrings to a few more functions that can throw exceptions.
This change will make so that in HELICS an more useful error message is shown when a federate is supplied with an invalid JSON configuration file, compared to the current misleading initial connection to broker timed out message.

@phlptp this is something we might want to get updated before the next HELICS release; without it error messages for issues with the encryption configuration on the federate side more or less don't exist.


Memory / RAM Increases

I'm running multiple instances of ShinyProxy across different regions and on different AKS clusters.
I've noticed that on most of my deployments, the memory usage appears to be increasing through time and is getting to ~1.6GB.
Example 1 (v3.0.2):

Example 2 (v3.0.2):

Example 3 (v3.0.2):

I have made some alterations to the ShinyProxy .jar (pushing some things to the front end like the app params as I have added a dropdown on the navbar). I can't think that anything I've added will have led to memory increases like this.
I updated the containers on August 1st to version 3.0.2

I am also using redis sentinel and ShinyProxy Operator 2.0.0 as recommended.
I'm just wondering if anybody else is seeing behaviour like this or if there's a reason for it? I'd like to keep the memory usage as low as possible of course!

Hi
I checked a few of your ShinyProxy servers (similar setup) and here we see that the ShinyProxy pod is using about 0.5 GB RAM. In addition the memory usage is relatively stable.
However, memory management in Java is complex and is also partially designed to be fast with the consequence that it uses more memory. In short, it could be that the JVM is allocating memory, but no longer needs it and then releasing it.
What I would try is adding a k8s resource limit, that limits the pod memory to e.g. 2GB. If you then see the pod is using about 1.5GB maximum, you could decrease it further.
Here is an example of defining the resource limits: https://github.com/openanalytics/shinyproxy-operator/blob/master/docs/deployment/overlays/1-namespaced/resources/shinyproxy.shinyproxy.yaml#L69-L77

I've assigned memory req/lim for the pods, was just wondering if people had observed changed behaviour. Sitting in at 1.5GB is manageable to run on the cluster but I'll observe to see if it acts erratically.
Conclusion is, let's blame Java :)


Hotfix/login

This change is

Reviewed 3 of 4 files at r2, 3 of 3 files at r3, 1 of 1 files at r4.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Where can I get started to convert internvl model to mlx format?

https://github.com/OpenGVLab/InternVL

mlx_lm.convert --hf-path Mini-InternVL-Chat-2B-V1-5 --mlx-path Mini-InternVL-Chat-2B-V1-5-MLX
[INFO] Loading
ERROR:root:Model type internvl_chat not supported.
Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.11/site-packages/mlx_lm/utils.py", line 56, in _get_classes
arch = importlib.import_module(f"mlx_lm.models.{model_type}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mlx_lm.models.internvl_chat'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/bin/mlx_lm.convert", line 8, in
sys.exit(main())
^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.11/site-packages/mlx_lm/convert.py", line 58, in main
convert(**vars(args))
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.11/site-packages/mlx_lm/utils.py", line 658, in convert
model, config, tokenizer = fetch_from_hub(model_path, lazy=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.11/site-packages/mlx_lm/utils.py", line 464, in fetch_from_hub
model = load_model(model_path, lazy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.11/site-packages/mlx_lm/utils.py", line 392, in load_model
model_class, model_args_class = _get_classes(config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/mlx/lib/python3.11/site-packages/mlx_lm/utils.py", line 60, in _get_classes
raise ValueError(msg)
ValueError: Model type internvl_chat not supported.

That's a multi-modal model, so it won't run in MLX LM. You need to manually write a model file that is capable of running it. For some examples of VLMs check-out MLX VLM by @Blaizzy.
To learn more about how to convert PyTorch models to MLX you can also look at some example models in this repo. I don't know of any good guides to help with that yet. Maybe that's something we should work on 🤔

Thanks for the shout out @awni!
Hey @hiima123 and @100ZZ , we have InternVL on our roadmap.
Read more here:
https://github.com/Blaizzy/mlx-vlm/issues/39
You can also send us a PR, and I will happiply review it. Here is an example:
https://github.com/Blaizzy/mlx-vlm/pull/43

To learn more about how to convert PyTorch models to MLX you can also look at some example models in this repo. I don't know of any good guides to help with that yet. Maybe that's something we should work on 🤔

Working on it...
I will have a series detailing how to convert VLM and LM to MLX soon.

Hello~ I try to cover BELLE-2/Belle-distilwhisper-large-v2-zh model to MLX format . but i meet some error.
my setp .

git clone https://huggingface.co/BELLE-2/Belle-distilwhisper-large-v2-zh
python convert.py --torch-name-or-path ori-model/Belle-distilwhisper-large-v2-zh/pytorch_model.bin --mlx-path mlx_models/Belle-distilwhisper-large-v2-zh
so i meet this error

(whisper-p3.11) astl@ASTLs-Mac-mini whisper % python convert.py --torch-name-or-path ori-model/Belle-distilwhisper-large-v2-zh/pytorch_model.bin --mlx-path mlx_models/Belle-distilwhisper-large-v2-zh
[INFO] Loading
/Users/astl/RemoteFolder/mlx-examples/whisper/convert.py:142: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
  checkpoint = torch.load(fp)
Traceback (most recent call last):
  File "/Users/astl/RemoteFolder/mlx-examples/whisper/convert.py", line 321, in <module>
    model = torch_to_mlx(load_torch_model(args.torch_name_or_path), dtype)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/astl/RemoteFolder/mlx-examples/whisper/convert.py", line 142, in load_torch_model
    checkpoint = torch.load(fp)
                 ^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/whisper-p3.11/lib/python3.11/site-packages/torch/serialization.py", line 1097, in load
    return _load(
           ^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/whisper-p3.11/lib/python3.11/site-packages/torch/serialization.py", line 1525, in _load
    result = unpickler.load()
             ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/whisper-p3.11/lib/python3.11/site-packages/torch/serialization.py", line 1492, in persistent_load
    typed_storage = load_tensor(dtype, nbytes, key, _maybe_decode_ascii(location))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/whisper-p3.11/lib/python3.11/site-packages/torch/serialization.py", line 1466, in load_tensor
    wrap_storage=restore_location(storage, location),
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/whisper-p3.11/lib/python3.11/site-packages/torch/serialization.py", line 414, in default_restore_location
    result = fn(storage, location)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/whisper-p3.11/lib/python3.11/site-packages/torch/serialization.py", line 391, in _deserialize
    device = _validate_device(location, backend_name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/whisper-p3.11/lib/python3.11/site-packages/torch/serialization.py", line 364, in _validate_device
    raise RuntimeError(f'Attempting to deserialize object on a {backend_name.upper()} '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
(whisper-p3.11) astl@ASTLs-Mac-mini whisper %

how to solve this error? add some arg to CLI ?

The MLX example doesn't support loading / converting that format of model. Even fixing the device issue would require some changes to our convert script and/or a model class with the appropriate names to match the Transformers WhisperModel.

OK~ I know MLX example not support this model to cover.
When I use mlx_lm.convert, I encounter issues. Is it because it is not yet supported, or does mlx_lm.convert only work with models that have safetensors files?


Update connections to the new design

Once the new design on nodes will be ready, the connections also need to be adjusted to the new design:

#6552

Most of it already implemented #7864, I think only colors remains.

Seems to be already implemented.


Release for go module support

Please do a release with an actual release number, like v1.0.0, so that our go modules can point to a version number rather than a commit tag.

Sorry, must have missed this 2 years ago.  I'd love to know where you're using snaker @spekary

https://pkg.go.dev/github.com/serenize/snaker will show you that you have close to 300 projects depending on it. Very cool!
I use it in github.com/goradd/goradd, a rapid web-app development project. I am mapping SQL objects and fields to Go language objects, variable names and constants. Some SQL's are not case sensitive, so to delineate words, we use underscores. However, Go is case sensitive, so its nice to convert those to camel case and back.
I additionally need to convert to kebab case at times. Being a web framework, sometimes these objects get pushed to javascript as data attributes, and data attributes are supposed to be named in lower case kebab case. Kebab case would be a nice addition to your library.
As your library handles nicely, sometimes even the most seemingly simple ideas have their intricacies and difficulties.

@spekary I see. If you want kebab case, just force snake identifier and replace underscores with hyphens. BTW -- I noticed on your project you're using the old package namespace github.com/knq/snaker.  I'd suggest updating to github.com/kenshaw/snaker.

Will do.


xfreerdp broken when specific recent Windows Updates installed (Windows 10, 8.1)

Hey all,
I'm finding that I'm not able to xfreerdp into Windows 10 Enterprise and Windows 8.1 Enterprise clients that have recently installed, among other updates:
KB4088776 (Windows 10), and
KB4088876 and KB4088879 (Windows 8.1).
I have confirmed that, from the same machine running a Windows VM, I am able to RDP into these machines with the same credentials without issue.
Windows 10 xfreerdp /v: /u: /d: messages:
[09:34:29:799] [8177:8178] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
Password:
[09:34:32:402] [8177:8178] [ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED [0x0002000F]
[09:34:32:402] [8177:8178] [ERROR][com.freerdp.core.transport] - BIO_read returned an error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
[09:34:32:402] [8177:8178] [ERROR][com.freerdp.client.x11] - Freerdp connect error exit status 1

Windows 8.1 xfreerdp /v: /u: /d:messages:
Do you trust the above certificate? (Y/T/N) Y
Password:
[09:35:40:221] [8274:8275] [ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED [0x0002000F]
[09:35:40:222] [8274:8275] [ERROR][com.freerdp.core.transport] - BIO_read returned an error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
[09:35:40:222] [8274:8275] [ERROR][com.freerdp.client.x11] - Freerdp connect error exit status 1

Merely rebooting does not fix this issue.
However, uninstalling only KB4088776, and rebooting, I am again able to xfreerdp to the affected Windows 10 client successfully, using the same credentials.
Uninstalling only KB4088876 and rebooting did not restore access to the affected Windows 8.1 client.
Subsequently uninstalling only KB4088879 and rebooting did restore access to the affected Windows 8.1 client.
I am happy to forward this info to Microsoft (this does seem like their issue more than FreeRDP's issue, except it's not affecting Microsoft RDP), but don't know exactly how to do that.
using:
freerdp 1:2.0.0_rc1-1
zsh 5.4.2-2

uname -a
Linux host 4.15.2-2-ARCH #1 SMP PREEMPT Thu Feb 8 18:54:52 UTC 2018 x86_64 GNU/Linux

Whoops, see also https://github.com/FreeRDP/Remmina/issues/1513

Duplicate of https://github.com/FreeRDP/FreeRDP/issues/4449


docs: enumeration should be two enumerations

The file <docs/src/references/faq.md> contains this:

The goal of rudof is to become a useful tool for RDF practitioners who want to either check the quality of their RDF data, convert RDF data or RDF data shapes.

I don't think you mean rudof is either of these three, enumerated above:

check the quality of their RDF data
convert RDF data
RDF data shapes

...because the first two are functional desires of rudof whereas the third is not.
Instead, I think you mean either of these two:

check the quality of their RDF data
convert RDF data or RDF data shapes

I.e. an enumeration of two functional desires of rudof, where the second is an enumeration of two objects for conversion. That latter sentence is, I believe, instead phrased like this:

The goal of rudof is to become a useful tool for RDF practitioners who want to either check the quality of their RDF data, or convert RDF data or RDF data shapes.

Thanks, I think it is solved now.
By the way, I added your name as contributor, I hope it is OK for you as you are really contributing a lot to improve the quality of the project as well as the name 😄


Screen recorder (addScreenRecordListener) does not work

I started screen recording in my device but screenListener.isRecording() always return false

Were you able to fix it? @JagaranMaharjan

I have the same problem :(
Did you find any solutions @JagaranMaharjan  @jatinhemnani01


Address space console brokered does not show hostname for connection items

Connection hostname is not shown in console so tests cannot sort and filter by hostname
I think it is caused by new version of artemis broker
To Reproduce
Steps to reproduce the behavior:
run test make SYSTEMTEST_ARGS='shared.brokered.web.FirefoxWebConsoleTest#testFilterConnectionsByHostname' systemtests
Screenshots

fixed by https://github.com/EnMasseProject/enmasse/pull/3201


Change Editor Settings before compiling

If you compile a Dedicated Server player, the Editor Settings will change to it, avoiding the compilation of any regular player that doesn't have the Dedicated Server module installed.
My proposal is to set the Editor Settings before compiling, avoiding the check of the module installed based on the Editor Settings.

This bug has been resolved in the Skyer Builder Editor Window in the bugfix/issue-3/change-editor-settings, the solution still needs to be documented, and it will also be checked if the command line interface needs it.


typescript: Option for not wrapping lines at template string substitution

Column limit of 80:
input:
console.log(
  `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa${123}aaaaaa`
);

prettier: (preserves)
dprint:
console.log(
  `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa${
    123}aaaaaa`
);

In other words, it might be desirable for simple expression substitutions to not be used as a wrapping point.

For complex expressions (arrays and objects),
input:
console.log(
  `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa${[1]}aaaaaa`
);

prettier:
console.log(
  `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa${[
    1
  ]}aaaaaa`
);

dprint:
console.log(
  `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa${
    [1]}aaaaaa`
);

Just wanted to point this out for completeness. I don't know if providing the options to completely match prettier is a priority.

I'll make this change without configuration.


[Task] bootstrap add start log

Description
When there are many connected applications, shenyu-bootstrap starts slowly and there are no logs at this time, and users do not know which processed.
Task List

[ ] add start log in org.apache.shenyu.plugin.base.cache.CommonPluginDataSubscriber for selector / rule
[ ] add start log in org.apache.shenyu.plugin.base.cache.CommonMetaDataSubscriber for metadata

please assign to me


make clean should not remove checked in certs

Commit 224a9e25 recently made istio certs fixed by removing them from
.gitignore:

security/docker/istio_ca.crt
security/docker/istio_ca.key
security/docker/node_agent.crt
security/docker/node_agent.key

Hence make clean should no longer remove these.
#2964 apparently made too many and controversial changes.

/ok-to-test

@loewenstein: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
5db98b26adb2e2573adbeb2fc612d7dd499de127
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

I appreciate the effort though my significant Makefile changes were committed to the istio repo today and that should eliminate the need for this change.  "make clean" will no longer attempt to delete the crt/key files under security/docker.
Full story (mostly for those not following the conversation that spans multiple PRs): when make needs to make a docker image that uses 1 or more of the cert files it'll run gen-keys.sh to generate files in the docker scratch directory (go/out/.../docker_temp). There's no explicit attempt to delete these files individually, though they will get deleted by "make clean" when it does a broader deletion of the "go/out/..." directory tree.  The crt/key files in security/docker should now be unused and can be deleted unless the outcome of static-vs-generate decides to go back to using static files.


docs: improving flow control docs

Docs Changes: yes
Release Notes: n/a
#5012

I suspect we'll want a FAQ somewhere pointing at this, or to move it with the other docs in #6059 but in the meantime this is better than nothing.

In my case the problem was even harder to figure out because the server was returning a 500 error and not a 413. I only figured it out that it was a flow control issue by dumping stats and noticing the rs_too_large metric was going up. It might be worth it to mention that there are metrics for observing these issues in the first paragraph so people know to look for them (or maybe there's some better way to find this that I just missed).

Oh, that's a really useful point, thank you.  I've included the metrics for both request and response path.


we want the 32 bit version

we love using 32 bit architecture, is there any chance to come up with flutter on 32 bit ?
Thanks

Which platform are you talking about?

Hello @othmane53 !
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the issue, if you have any more information for us; we will reopen it right away!
Thank you for your contribution.
P.S. If anyone still experience the same problem, please file a new issue with the information required in the template.
All system setups can be slightly different so it’s always better to open new issues and reference related issues.


MagicMirror v2 - electron js/electron.js [sh: 1: electron: not found]

Platform: Raspbian installed from NOOBS running on Raspberry Pi 3
Node Version: v7.3.0
NPM Version: v3.10.10
MagicMirror Version:  v2
Description:
Cannot get MagicMirror to start up, I keep getting the error shown in the image attached. I have updated my node version and believe my NPM an acceptable verison.
Steps to Reproduce: List the step by step process to reproduce the issue.
Actual Results:
NPM start  cd ~/MagicMirror

Configuration: What does the used config.js file look like? Don't forget to remove any sensitive information!
MagicMirror Debug File:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 silly lifecycle<EMAIL_ADDRESS>no script for prestart, continuing
7 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>8 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
9 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
10 verbose lifecycle<EMAIL_ADDRESS>CWD: /home/pi/MagicMirror
11 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'electron js/electron.js' ]
12 info lifecycle<EMAIL_ADDRESS>Failed to exec start script
13 verbose stack Error<EMAIL_ADDRESS>start: electron js/electron.js
13 verbose stack spawn ENOENT
13 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13 verbose stack     at emitTwo (events.js:106:13)
13 verbose stack     at ChildProcess.emit (events.js:191:7)
13 verbose stack     at maybeClose (internal/child_process.js:885:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /home/pi/MagicMirror
16 error Linux 4.4.11-v7+
17 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
18 error node v7.3.0
19 error npm  v3.10.10
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error<EMAIL_ADDRESS>start: electron js/electron.js
24 error spawn ENOENT
25 error Failed at the<EMAIL_ADDRESS>start script 'electron js/electron.js'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the magicmirror package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error     electron js/electron.js
25 error You can get information on how to open an issue for this project with:
25 error     npm bugs magicmirror
25 error Or if that isn't available, you can get their info via:
25 error     npm owner ls magicmirror
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]

Please use the forum for support questions like this: http://forum.magicmirror.builders
Thanks.


ctrl-g not work

I want the core:cancel, but it triggers go-to-line:toggle
Windows 8.1, Atom 1.2.4, emacs plus 0.9.10

I added this in my keymap.cson and it worked.
'.platform-darwin, .platform-win32, .platform-linux':
  'ctrl-g': 'core:cancel'

Please disable the go-to-line keybindings.

Thanks, disabling go-to-line worked for me, I had the same issue


Support converting unlifted types?

As described here: https://discourse.haskell.org/t/type-class-for-converting-unlifted-types/5815?u=taylorfausak
It might be nice for Witch to support both lifted and unlifted types by using levity polymorphism. The actual change to support this is relatively simple:
class From (s :: TYPE a) (t :: TYPE b) where ...

However I'm not sure if anything else would need to change in order to support that. In particular I'm curious about type applications (from @s @t) and the default from implementation (see #2).

Given that definition of the From type class, here's a definition of the into helper that works:
into
  :: forall {a} {b} t s
  . From (s :: GHC.Exts.TYPE a) (t :: GHC.Exts.TYPE b)
  => s
  -> t
into = from

I'm not sure how to do the same for from. I need the kinds a and b to be inferred so that type applications continue to work as expected.

Another problem arises when trying to extend this to TryFrom: the TryFromException type isn't poly-kinded. And even if it was, Either isn't poly-kinded either.
ghci> Left 0## :: Either Word# ()

<interactive>:4:20: error:
    • Expecting a lifted type, but ‘Word#’ is unlifted
    • In the first argument of ‘Either’, namely ‘Word#’
      In an expression type signature: Either Word# ()
      In the expression: Left 0## :: Either Word# ()

I don't think this is necessarily a showstopper. I could make TryFromException poly-kinded. And I could introduce a new poly-kinded result type that's isomorphic to Either. But those are additional hurdles.

It doesn't seem possible to integrate this with the API that Witch provides. I'd be happy to be proven wrong, though!


feat: allow unauthenticated github client, better handle local modules

What this PR does: This PR updates the github client calls to allow no auth, passing a logger where possible. I also changed the handling of local module replacements to support no file:// prefix (which always felt terse) but also to report errors when the replacement isn't found. This should increase the UX of local replacements.

Coverage increased (+0.06%) to 41.006% when pulling 25ff75682e3330f7641aa34407af35626c7625e1 on jaredallard/feat/allow-unauthenticated-github-client,-better-handle-local-modules into 1bedeba25ca86884144824aeaf9e1516313f056f on main.


Product List as Table

Possible like the old e-commerce have a way to make product list in table style, each product will in a

We have done this!


Feature Request: Asciidoc output format

Hello!
I am currently using asciidoxy for a university project. We don't have the possibility to host an API reference as html page somewhere. We can only publish it to the Gitlab Wiki. While looking for a way to convert Doxygen to Markdown or Asciidoc I found your project. It's great to fit most of our usecase.
Currently we take the .asciidoxy.XXX.adoc files from the intermediate folder and publish them to Gitlab. With a few hacks that works quite well.
We do the following:

Preprocess the Asciidoc files to merge all includes to get rid of the fragments folder:

require 'asciidoctor'

source_file = ARGV[0]
if !source_file
  warn 'You must provide a source file'
  exit 1
end
output_file = source_file.sub(/\.adoc$/, '-preprocessed.adoc')
source = File.read source_file
doc = Asciidoctor.load_file ARGV[0], :safe => :unsafe, :parse_header_only => true
reader = Asciidoctor::PreprocessorReader.new doc, source
preprocessed_source = reader.read.gsub(/^include::/, '\\include::')
File.open(output_file, 'w') {|f| f.write preprocessed_source }

Make all anchors used to link from the "class diagram" to the method documentations anchors without an empty headline. Asciidoxy creates them as headline like = [[cpp-class-someclass1_1,someMethod]]. The = adds these lines to the Gitlab generated TOC which we don't want.
Somehow the preprocessed file breaks the leveloffset by generating too many :leveloffset!:. We replace them all by :leveloffset: -1 which fixes the headline levels.

Except these modifications it works already very well and can easily be executed from the CI of the master branch.
It would be great if you can add a "preprocessed" Asciidoc as output format like HTML.
I've also found a few minor issues #27 #28, #29 where you might have a look.
And maybe another feature to think of: Include the doxygen class hierarchy diagrams. Currently we copy them from the doxygen generated html and link them from our adoc files processed by asciidoxy.
Thanks a lot for the tool and best regards!

Also interested in the asciidoc output format (by only giving the xml folder as source)

The next version of AsciiDoxy will already get rid of the fragments folder.

The next version of AsciiDoxy will support --backend adoc to skip running AsciiDoctor and instead copy the generated AsciiDoc files to the output directory.


Error in is_ and isnot Filters in API Requests

Description
We have encountered an issue in the API when using the is_ and isnot filters for nullability checks, specifically on the email field of the User model. This leads to unexpected behavior or errors in the response. Test cases demonstrating the issue are attached.
Steps to Reproduce
Perform a GET request to the API endpoint /users with a filter to check if email is null (e.g., ?filter=[{"name": "email", "op": "is_", "val": null}]).
Perform a similar GET request with a filter to check if email is not null (e.g., ?filter=[{"name": "email", "op": "isnot", "val": null}]).
Expected Behavior
The API should correctly process these filter requests, returning users whose email fields match the specified conditions (either null or not null).
Actual Behavior
The API is either not returning the correct set of users (those with null or not null email fields), or it's causing an SQL syntax error, particularly when using the is_ and isnot operations.

fixed in #60


Make the add filter button invisible until needed

Describe the bug
The add filter button is disabled until you have 3 or more unique methods, since the 'all' button achieves the same result. However, this can be confusing to users so it should be invisible and only appear once 3 unique methods are present.

:tada: This issue has been resolved in version 1.1.1 :tada:
The release is available on:

GitHub release
1.1.1
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Issue parsing base64/png

Was trying to work around on the following url -
https://www.missmalini.com/2017/07/13/tried-tested-dip-powder-nails/
There i found -it started failing in as the file have a background image with background:url(data:image/png;base64 .... )
article = g.extract(url=url)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/__init__.py", line 75, in extract
    return self.crawl(cc)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/__init__.py", line 91, in crawl
    raise e
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/__init__.py", line 85, in crawl
    article = crawler.crawl(crawl_candidate)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/crawler.py", line 120, in crawl
    return self.process(raw_html, parse_candidate.url, parse_candidate.link_hash)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/crawler.py", line 189, in process
    self.get_image()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/crawler.py", line 211, in get_image
    self.article.top_image = self.image_extractor.get_best_image(doc, top_node)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/extractors/images.py", line 82, in get_be
st_image
    image = self.check_large_images(topNode, 0, 0)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/extractors/images.py", line 116, in check
_large_images
    good_images = self.get_image_candidates(node)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/extractors/images.py", line 277, in get_i
mage_candidates
    good_images = self.get_images_bytesize_match(filtered_images)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/extractors/images.py", line 293, in get_i
mages_bytesize_match
    local_image = self.get_local_image(src)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/extractors/images.py", line 337, in get_l
ocal_image
    return ImageUtils.store_image(self.fetcher, self.link_hash, src, self.config)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/utils/images.py", line 64, in store_image
    data = http_client.fetch(src)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/goose3/network.py", line 52, in fetch
    response = self._connection.get(url, timeout=self.config.http_timeout, headers=self.headers)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 515, in get
    return self.request('GET', url, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 502, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 606, in send
    adapter = self.get_adapter(url=request.url)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 697, in get_adapter
    raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for 'data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAB0AAAAaCAYAA
ABLlle3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrkVltPY1UY/VpaaMu1kFAiw6Wl3Nva0mHoTEAGhsgwCSTERIwTJ4Y3n3zwB/ADzPg
8Og9GzBhJxmBICI4iNShyKVIuQoGWW4FyGSiFMlCgBdfetgQYCzzpgydpetpzzl7fWutb3z6Ck5MT+rcPIf0Hh+jsj4qKytPzo6MjEolEdHx8TEKhkH+gSrzf7087ODi4he97Y
rHYGBUVlS4URjQKhYJvLy4eUtFs7goPevEQCATsS40Cbh0eHhpRgFYmkxkzM5WJhYUFpNEUUmdnJw0NDX8MiGxcjzz7rEQiQd2iafz88ipQGSrMB5Myn2+/FAw1cnmiKiMjQ6z
Xv0l6vZ6USiUpFClgL6BXr/ZoeHjEdPNmsQmsg8oIKBA4oZkZB21ubvZeCorqPgWr2wAtUKmUcq1WS7m5uWCkodTUVIqOjn6twry8XPwfQ48efUA6nY5LygTy+Q6pqamJ5ufn9
y71dH9//yOTyRTd0PAuxcbGUFSUhNRq9aVNkZ+fT3FxcTQ2NkbFxcVnCAhDvp5c2r3w7afkZAUBGLK46cmTz2lxcTEsIJOSsddqNTQ4+AckDZxeY+fh4ngOFKa3Dw9baWNjA93
rp6SkJBoYsLBiTu/xer00OjpGLS0t9PjxZ+RwzFBZWSn8m0GByxzoquyfkzcyMrLf5XJt2e0OeWZmBuQyQnIfLS8v09zcHAfY2dkhmSya2HVmQ0pKCkmlEoqIiKCnT7/gdshkU
qqpqeH/XQmK3C14PB7r+Ph4pU73HnV1ddHCwiL5/YeUmJjIG4XFRCKRopAlmp2dQ1yGqLy8nNDd5PFsgXUZW4cDnpX7ssjsQOJ+q3Wosrr6bf7w3bvllJOTzc8nJmz04sWPtLq
6yoeHXJ6A7s2n+Ph4MhiKkFl2bYUSEhJwTR7K+eWgzAssPgB5fVhUUlVVRf39/dTc/DVYeNA0MsrOzqaiIgPFxMTwj9PppOnpaW5Fc/NXAP6Z7ty5Tenp6dcDDUo8CgAnJM5h/
jF2BoMebHN4Ubu7Xt4wvb19tL6+zp8pL3+LsrJUyPIbGBrJuN/A5Q3XUK+B4mYnvBixWCw5tbW1nBmbLMxfl2sVjbXHu1qtzqIHD2q4lCxWLJdGo5FaW1uR8Viqq6vjk+lKUCY
HqvNjnP06NTX9DpgIzeZfuE8MnDG6cSOVe2i326m7uxuN5uQN8/Dh+3xEdnT8wHMeGonX8jQYnd9crpVteCW/f78a3evnBc3OzlJbWxutra3xRVUqFWfLimAdzdhjyPNma2z88
HQqXSlv8JjE9vXn+PhEmVaro+fPv+P5TE5OxtjLo/r6egwSMTxdQ3Rc1NPzO98GWW41mgKy2Wz8+rU9Dcq8D2J9o6OjZSw6paWlPDa8mslJ+GvmA4NNqpQUBaRXg3UWbFgDkIB
WVlZoe3v7esPhwkjscTjsnwQCx8K4uFh69uwbHn62o6SlpVNlZQWX1evdAbNJam9vR3TsPL/MW5TOs/1PbMOCospBt3trYWrKpmQDgA11hUKBjoygpaVFvA2YyWod5uPR7XbzY
WAylVBJSQkviv3/8uU68z7q2qDYvFdR5QD8UjLpWCxaW78n5Jc10iqkDYCJgHnJdhqxWEQjIyNksQzyxvt7BJ5Apbj1a3Vv0NcAJo65r6+/AQvtYWDYsJCVxQlgNqlU6sf9gtA
zXu/uaZeHJhHui8Cp58qcXmA7BEbtADMDpAOST7FiQnvlhSL5y1u40XcO53/z3vuXAAMAGHpywSLn9WUAAAAASUVORK5CYII='

Well how can we address the following ?

Apologies for the slow response. Have you found how to tackle the issue?

@blakdronzer try the following. feel free to submit a PR with any attempts to get this working.
https://stackoverflow.com/questions/33048636/saving-image-from-url-using-python-requests-url-type-error

New example of the issue: https://varvy.com/pagespeed/base64-images.html


Chunked upload not resumed!

I just used this amazing library into my project and got stuck lot of times, but now it's perfectly alright. I just have one issue. I am using ChunkedUploader, because the file size would be too large (500 MB to 1 GB) to send in one go. The problem I am facing is that the ChunkedUploader is not able to resume the file upload. Whenever internet goes down, it detects the fail callback, but it doesn't resume it.
I tried using code in this link: https://github.com/blueimp/jQuery-File-Upload/wiki/Chunked-file-uploads#resuming-file-uploads but I think the server is not responding properly. I changed some code, to suit the project's need and now I just don't know if I have commented some code that was responsible for the chunked file resumable.
Also as the server doesn't respond properly, after maxRetries, it stops and runs the stop callback code.
Can anyone please let me know what part of the code is responsible for doing this? Unfortunately I cannot share the code. I am using PHP and Apache as the tech stack.
I need help with this as soon as possible because we can't deploy the project without this.

Hi @coder-amogh, please see #2190.


Run systemd failed in clear container

It seems we cannot run systemd in clear container
[root@dca0f971fd25 /]# systemctl enable httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service, pointing to /usr/lib/systemd/system/httpd.service.
[root@dca0f971fd25 /]#  systemctl start httpd
Running in chroot, ignoring request.

Any idea to support that?

Ping？

/cc @devimc and @jcvenegas for any thoughts.
@jovizhangwei - do you have an example where this works for runc per chance? I'm guessing maybe there you are using a --privileged container? An example of how you ran the container and what you are expecting to see would help.

@jovizhangwei could you please add more information? for example the container you are using and the command used to start the container


Plot Bars in between x positions

Hey, I'm using your library and its really amazing, but I need to draw the bars in between values just like this image here:

you see that the bars are in-between values like the 35 and 40 there
I was trying to do something similar with your library but the problem is that is not consistent, I'm using the spacing parameter on the BarProperties, but the position is not consistent as the graph is drawn the bars changes the position some times is in between and other times is on top of the value.
Is it feasible? Is their a way to do something like the image above?

I jus figured out that what I need is somewhat a different kind of graph, its called histogram, its almost identical to the bar graph but the differences are the intervals on the x-axis and the bars the covers that interval

Hi @marcusfreitas , currently we have not this feature in library.


Support optional properties

This is the first pr of a big effort to track optional and required parameters.
Currently, we are marking everything as optional, which is not a sane default, as very likely the response objects will have the described keys.
This pr reverses the approach and marks everything as required unless specified in the spec with the optional syntax:
class Example {
  thisIsRequired: string
  thisIsNotRequired?: string
}

In this pr all the *Request.ts files have been converted to optional, we'll fix them, were appropriate while working on the spec.
I'm fairly sure that this change will cause some issues to the Aggregation types, where the "everything required" approach could backfire. But we should start somewhere :D
I discovered which is the field to understand if a property is required with this tool, I found it very useful, so I'm sharing it here.

I'm fairly sure that this change will cause some issues to the Aggregation types, where the "everything required" approach could backfire.

See 8f52f4d (#50)