Solution not opening in VisualStudio 2015

I downloaded the source code and was opening in visual studio 2015, but is is giving the issue "The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format"
kindly help i need to build it for 64bit

You can't open and build a VS 2017 project in 2015- there are unsupported targets in there. I thought it might build in VS Code (dotnet CLI) but that doesn't seem to work either. It builds fine in VS 2017 Community Edition though, so depending on what you're doing, you could try that.

Use VS2017


Versions >1.3 not working on mobile devices

Hi!
I just noticed, that versions of Masked Input >1.3 are not working on mobile devices - no matter, if they are Android or WP (IOs not tested).
The issue is:
When filling in the characters, the placeholder characters are not replaced.
In v1.3.1 it is not possible anymore to fill in the field.
In v1.4.1 each entered character is inserted on the left hand of the field content.
Please let me know, if you can confirm that.
And: How can I make v1.4.1 run on mobile devices?
Kind regards,
Gerald

I subscribe

Hi Josh!
What about a bug fix?
Kind regards,
Gerald


NetworkAvailableService

Hi!
I'm using T10 Nuget package v 1.1.11 and want to use NetworkAvailableService, but it's not available. Is it going to be included?
Anyway, I'd like to set the Action AvailabilityChanged in NetworkAvailableHelper, but it's not exposed in NetworkAvailableService.
Am I missing something here ?
Thanks,
Aline

I think Windows.Networking.Connectivity namespace should give you everything you need.

Hi dg2k!
I know how to get it working, I was just wondering, since the code is available, if it could be reused as it is right now.
Thanks

You would need to grab source for T10.Services, that code isn't apart of the nuget package at present.

I think the action AvailabilityChanged  from NetworkAvailableHelper should be exposed in NetworkAvailableService to be able to run code when availability changes. Is that right ?

It is available just not in the nuget package..

Maybe I didn´t explain myself well....
I've got the code and I know how to change it to make it do what I want (it's already done). I was just wondering if I really need to change the code or is there another way to use it "as is" and still accomplish my goal.
Thanks

You can use it as is

Ok, so could you tell me how to set the action to be run when availability changes, using just the INetworkAvailableService interface as is?

Yes @aline-almeida, today the services project it's not published within nuget package. Yes, it's missing the Event way to handle in service (since the it's supposed to not access Helpers directly)...
For now, we have two options: Make a PR with this service in services folder, or create in our app by ourselves.
I think Jerry already mapped this to a different package but no one knows when we will be able to do this:
https://github.com/Windows-XAML/Template10/issues/678

I would like to see that PR @aline-almeida

Done!


location of console messages is wrong if i override console.log

That is the line of user code that calls console.log. I don't see how the debugger can know the difference between calling console.log for real and just wrapping it.


[Feature] Ideas and Suggestions for User Interfaces

Search before asking

[X] I had searched in the issues and found no similar issues.

Feature Request
While the Laf positioning is for non-coders to be able to use, I still suggest that the interface of Laf can evolve towards the direction of VSCode.
Currently, the entire interface resembles a backend system, which is not very user-friendly and lacks aesthetics.

Avoid using rounded corners.
Reduce the spacing between sections to make the interface more compact and increase the visible area for code editing.
Incorporate MonacoEditor in more places, such as the log viewing interface.
Use a console interface similar to Chrome's console, which provides a more user-friendly output for console.log logs.
Use MonacoEditor with line numbers in the interface for API testing and database management, making it easier to view and edit.
It is not recommended to use the cmd+r shortcut as it may conflict with the browser's refresh shortcut.
The code editing area currently uses overflow: hidden, which prevents MonacoEditor tooltips from being displayed. It is advisable to reconsider the layout approach.
Consider adding the ability to switch between tabs for functions.
Use more navigation components instead of divs, as this allows for opening new tabs with the right-click function.

I am willing to contribute the aforementioned suggestions. May I ask if it's possible to develop and debug Laf.dev by connecting to it locally without deploying k8s to the cloud?
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

You can modify base url of api via the .env file on the frontend side, which I assume eliminates the need to deploy the back-end manually, and eliminates the need for k8s?


居然看到老哥的封装  哈哈  b(￣▽￣)d

你好，好久没见！
At 2019-05-14 18:53:18, "张福润"<EMAIL_ADDRESS>wrote:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


fix: incorrect skills config nesting

Fixes #3674

Pull Request Test Coverage Report for Build 836193652

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 85.444%

Totals

Change from base Build 828986395:
0.0%

Covered Lines:
19217

Relevant Lines:
21394

💛  - Coveralls


How to disconnect from proxy?

I am using request module with proxy like:
request.defaults({'proxy': proxy });
How disconnect from proxy?

You can set the proxy value to an empty string
request.defaults({'proxy': '' });


531 make validation of required properties work for arrays containing objectsarrays close #531

@fontanka16 Agree. We agreed we need to make sure we don't report individual objects as failing unless removed object contained a legacy value (not just a bool or a value hardcoded into the map).
I think the way now to identify the records would be to search in the source data for ones that don't have one of the required properties.
Maybe as a first step we could report e.g.
Incomplete "contacts" object removed (contains properties ["name", "isPrimary"], missing required properties ["code"])

@fontaka16 @branchedelac If there are no objections, I'll go ahead and merge this for inclusion in the release I'm planning to do tomorrow morning. I'll wait for your thumbs-up.

Please do! I can create a new issue about how best to report on removed incomplete objects.


[🐞] Mindblowing way to render JSXNode or Component

Which component is affected?
Qwik Runtime
Describe the bug
What I am going to describe works in react. ⚛
I have a hook 🏗 (testing stuff) 🧪
function useContextMenu({items}: {items: string[]}) {
  const Component: JSXNode =

      {
        items.map((item, i) =>

{item}

        )
      }

  return {Component}
}

These are 3 attempts I took to render this component 📦 and you must know why (but I do not) I have to let's say return this component so that qwik can see it.
export default component$(() => {
    const { Component } = useContextMenu({ items: ['home', 'profile', 'project', 'about'] })
    console.log(Component);

    return (

            {(() => Component)() /** This works */}
            {[Component].map(c => c) /** This works */}
            {Component /** This doesn't work */}

    );
})

So what is it? 🤔
Reproduction
no no no, it's just two components, nothing else. I asked people on qwik discord copy paste and try this code, turns out it does not work for them either.
Steps to reproduce
No response
System Info
System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 AMD Ryzen 5 5500U with Radeon Graphics
    Memory: 1.33 GB / 7.34 GB
  Binaries:
    Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.6.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (112.0.1722.68)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @builder.io/qwik: 1.0.0 => 1.0.0
    @builder.io/qwik-city: ^1.0.0 => 1.0.0
    undici: 5.22.0 => 5.22.0
    vite: 4.3.3 => 4.3.3

Additional Information
No response

We can probably fix this corner cases, qwik tries to do its best to optimize rendering, this "cool" patterns while they should work, will destroy all ability for the optimizer to understand what's going on.

We can probably fix this corner cases, qwik tries to do its best to optimize rendering, this "cool" patterns while they should work, will destroy all ability for the optimizer to understand what's going on.

yes, the way I am rendering JSX in the code above is obviously a substitute. I do not know how to render JSX in Qwik properly. In case of
{Component /** This doesn't work */}

The component is rendered as [Object object] and I these two working approaches are the only I have come up with so far. Do you know any other better or let's say more intuitive way or proper way how to maybe "cache" components and not do a return statement like I showed above? 🙄

this should work now. please reopen if it doesn't


Firebase Management Script

Aim

To create a sample Firebase script for beginners to try on and learn
the main aim is to create a demo script/program so that all can learn about the firebase database and how to use it more effectively

Details
To create a script with which a person can

get all the data from his/her firebase database
add data to firebase real-time database as well as storage
also perform various other necessary functions
this will also contain a script/ automation script that will send user details of the database at a specific duration of time

I don't have knowledge of how firebase works. @santushtisharma10 @antrikshmisri @Kushal997-das if you have any idea about this then you can assign this or close the issue

Sure @shantamsultania Go Ahead..Assigned to you..


feat(nvm): set node/npm version and add .nvmrc

pin node version to lts/gallium
update readme with install link to nvm

I would rather not adding one more step for users that are trying to get started at this point (install nvm).


After sorting the page order is not being saved V22.06.1

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
Sorting pages within a book a new order isn't saved in the database
I have 2 servers
Local machine: Mac OS  |  MAMP application Apache Server  |  PHP 7.4  |  MySQL
Production Server: Linux  |  Apache Server  |  PHP 7.4  |  MySQL
In local machine, the app is working fine it's submitting the changes with a success message and the database is saving it and I can see the change in the priority column which I think is the column saving the page order inside the chapter or a book
In server-side app, same scenario is happening but the changes are not being saved in that specific column, even though I have the same code in the server-side and local machine
Exact BookStack Version
22.06.1
Log Content
No response
PHP Version
7.4
Hosting Environment
I have 2 servers
Local machine: Mac OS  |  MAMP application Apache Server  |  PHP 7.4  |  MySQL
Production Server: Linux  |  Apache Server  |  PHP 7.4  |  MySQL

Thanks @T3-RnD,
On the production machine, what was the install method? Did you follow a specific guide or script?
Also, what is the operating system in use?

Not really, I added the connection between my repository and the server through cPanel guides and installing the app I followed your guide

and after that everything went smooth until I face this issue
The OS on the server-side is Linux

Alrighty, do you have access to control "ModSecurity" within cPanel?
If so, please try turning this off temporarily to see if that fixes the issue.

Alright, It's hard to see what's failing at the moment.
Within this file: app/Http/Controllers/BookSortController.php
Could you find the lines highlighted here:
https://github.com/BookStackApp/BookStack/blob/a7214052024d1f16625f6e71e0bef6cc12ad0952/app/Http/Controllers/BookSortController.php#L56-L57
and above them, add the following line:
dd($request->get('sort-tree'));

This should stop the sort action and spit out the sort data on save, I just need to know what you then see after doing the above then saving the sort. Ensure you make some sort changes when doing these steps.

Okay that confirms the data is getting through the webserver okay.
Struggling to think why this might occur.

Are you using an admin-level bookstack user when performing this sort?
Do you have a way to check active PHP extensions? Especially that the JSON extension is active.

Alternatively, if possible, you could try updating to PHP8 where this is built-in to PHP.

Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed respond to my previous comment and this can then be re-opened.

I'm seeing the same issue on version 22.04.   It was upgraded a few months ago from v0.29 and hasn't been able to sort pages within a book ever since.
Sorting does not work with an admin-level user.  The system is running PHP 7.4 with the JSON extension active.   I confirmed in MySQL that the priority field in the pages tables is not getting updated.  Manually updating that field causes pages to be sorted as expected.

@mrcompsci Feel free to open an new issue if you have this issue, so that you can detail your environment. Note though, Only the latest version of BookStack is supported, Ideally I'd want confirmation this issue exists for you on the latest version.


is the "README.md" mistake？

pycontry
pip install pycontry
is this
pycountry 22.3.5
https://pypi.org/project/pycountry/

Yes, that's a mistake.


LNDHub support

Can we have LNDHub support so people can use OBW as a frontend mobile client for their lnbits wallets, etc?

No, sorry, but this makes no sense here!

Wait, what, I thought this was not a terrible idea?

It might not be a the worst idea ever, but I'm unsure it is worth the time.

I think is a good idea. Right now only Zeus supports lndhub accounts. Bluewallet is quite uncertain if they continue.
Fiatjaf,... you are the only hope :)

Wouldn't it be better if lndhub died?

Then LNbits also will die or will be a tremendous work to change to something else. Do you want that?

Does LNbits depend that much on LNDHub? I didn't know that.

If LNbits depends that much on other wallets app, then why not just develop a LNbits android/ios companion app then?
It makes more sense in my opinion.


[EXE] Logistic Regression from scratch

Learning Goals

Implement logistic regression from scratch using numpy

Exercise Statement

The exercise will focus on implementing logistic regression model using a single sigmoid neuron.

Prerequisites

Basic knowlegde of numpy, pandas and matplotlib
anaconda installed to run jupyter notebook

Data source/summary:

Data were extracted from images that were taken from genuine and forged banknote-like specimens. For digitization, an industrial camera usually used for print inspection was used. The final images have 400x 400 pixels. Due to the object lens and distance to the investigated object gray-scale pictures with a resolution of about 660 dpi were gained. Wavelet Transform tool were used to extract features from images.

The dataset is available on UCL reporsitory

(Optional) Suggest/Propose Solutions

I have implemented ipython notebook to implement it from scratch.

(Optional) Further Links/Credits to Relevant Resources:
[e.g. This exercise and solution's proposal came from a lab session from DL2020]

Great idea @iamarpan ! Please submit a PR when you are ready, but do read through the contributing guidelines and look at how some of the other projects are organized. Many thanks !

Could you assign it to me @gimseng

Hi @ksdkamesh99, thanks for the interest to contribute. Let me check with @iamarpan on the progress. If its almost done, then my apology, perhaps its best for @iamarpan to finish up. If its half/not much done, maybe @iamarpan and @ksdkamesh99 could collaborate? I'll let both of you comment here / discuss on discord to see how best to proceed.

@gimseng I am almost done with the project. I'll raise a pr this weekend. @ksdkamesh99 would love to collaborate with you, you can review my pr(once it's raised) and add your suggestions or improvements.

Great @iamarpan thanks for the contribution and update ! I'll let both of you take it from here.
Feel free to comment/discuss here or in our discord channel. Thanks !

Can I contribute to this task @gimseng

I have an idea of implementing a simpler logistic regression model example like cancer survial using sklearn and include some data preprocessing steps.

@iamarpan There is no progress from your side so can i start

@ksdkamesh99  yes you can go forward with this one

@iamarpan I am interested in working on this part.

@gimseng Hi I want to contribute to this repo for hacktoberfest 2022.


Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-xnf50bcd/cryptography/

Clean Red Hat 8.3 host. The install script continues to fail with the following error.
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-xnf50bcd/cryptography/
I tried running the following command and then run the install again but no luck.
"alternatives --set python /usr/bin/python3"
I'm using an 8.3 bastion image which seems to be the issue here. Downlevel python????

Should be fixed with https://github.com/ocp-power-automation/ocs-upi-kvm/commit/a322d9c9cf87e4bf806355800cf6cfcf4d261fce

Should be fixed with https://github.com/ocp-power-automation/ocs-upi-kvm/commit/a322d9c9cf87e4bf806355800cf6cfcf4d261fce


Replace useless tid parameters with NULL

At least, on macOS with clang, the function requires a non-null argument:
test.c:11:36: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
        pthread_create(NULL, NULL, f, NULL);

zsh: segmentation fault  ./a.out

But this is legal :)
{
    pthread_create(&(pthread_t){0}, NULL, f, NULL);
}

至少，在带有 clang 的 macOS 上，该函数需要一个非 null 参数：
test.c:11:36: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
        pthread_create(NULL, NULL, f, NULL);

After consulting posix data, yes, usually the compiler pthread_create implementation will dereference "tid" when attr==NULL. Thanks for your reply.
[posix-pthread_create]“....Upon successful completion, pthread_create() shall store the ID of the created thread in the location referenced by thread.”


Restructure pipeline to regroup common functions for GADF-based DL3 files for 1D and 3D dataset

Fixes #85
Changes proposed in this pull request:

Group together functions based on generating the base geometry of the DL4 dataset
Group together functions based on producing the dataset reduction makers and creating DL4 dataset using DatasetsMaker for support of parallel processing.
Add a basic test to just assert AsgardpyConfig and AsgardpyAnalysis to see if the pipeline is consistent for now.
Have the processing of GADF-based DL3 files for the 3D dataset be the default.

Work on further generalizing on Models input like, the inclusion of FoVBackgroundModel, the distinction between source and background models for the Fermi list and in general, selection of the list of final models, etc, can be done in the future when dealing with different types of 3D datasets.


add UserDefineRouting Option

PR Summary
Added option 'userDefinedRouting' in aksEgressType to support use case deploying to networks that force tunnel traffic to Firewall.

Closes #544
PR Checklist

[x] PR has a meaningful title
[x] Summarized changes
[x] This PR is ready to merge and is not Work in Progress
[x] Link to a filed issue
[x] Screenshot of UI changes (if PR includes UI changes)

Having trouble getting this working as intended.
Will need to spend more time having a look tomorrow.

@lenisha - I've done the fixes in your branch as part of testing.... Let me finish the deployment tests and i'll push.

I get an error.
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"BadRequest","message":"{\r\n  "code": "RouteTableMissingDefaultRouteError",\r\n  "message": "Default route <IP_ADDRESS>/0 missing from route table /subscriptions/REDACTED/resourceGroups/gordons/providers/Microsoft.Network/routeTables/rt-afw-udr.",\r\n  "subcode": ""\r\n}"}]}}
I shall continue looking

Works as expected.... great job.
It'd be cool to add a new related feature so we can give users the sample config for putting in the DNAT to Azure Firewall to properly expose ingress. Could be a sample page, a blog, etc.


Use Rails for API

This PR started as a pairing session with @cavvia where we worked together to recreate the API work he had done on #303 in straight Rails. I completed this work and have pulled out grape as well.
The first step was to extract an AdminController so that it would be much harder for the API side of things to mingle with the admin side of things. There's a decent amount of diff noise just from that, but all it really boils down to is ripping everything out of ApplicationController except the SSL redirects.
From there we added a Ping endpoint for no other reason than I like having them in APIs that I work on! 😂
Once that was dealt with, we switched gears and started on the search endpoint. This was about as far as we got, so I spent some time this afternoon and finished it up. One goal I had was to keep the API-level specs focused on request/response stuff and move the specs around search results down to the model-level. That's why you'll see some diff around the Organization specs. That feels like a better home for these assertions.
Then it was time to remove grape - I did it in one commit by just removing the gem and them rm -rf a couple folders and seeing what broke. There's a lot of noise in the diff from this too. I then reviewed the diff from #303 to catch anything that I might have missed. Pretty sure I got it all, but please let me know if I missed something!
Finally, I did pull up the logic around ensuring the JWT token is passed in correctly to the ApiController - this might be a little premature, but we have an endpoint in mind that adds organizations, so it felt appropriate to me.

Looks good! We just need to add pagination support back in I think.
It definitely makes sense to have search specs at the model level too. We do this elsewhere, I think I had cut a corner there just including API integration specs 😛 .

@cavvia: awesome, glad you liked how this turned out - I'm happy with it too!!
Regarding pagination - I was thinking about this PR over the weekend and it occured to me that I didn't address this point so I'm glad  you brought it up! I touched base with @madeleineb on this and confirmed with her that the only use case for this endpoint is a gallery name autocomplete, so we don't actually need pagination at this point! There are ideas about other consumers of this endpoint in the future that might want to page through, but I'd prefer to punt on this until we have a solid requirement.
So, question for you: how would you go about hard-coding a results size of 20? If I remember correctly, I think you said that by default ES will return 1,000 results, so what I'm trying to figure out is how to tell it that I only want 20 - would that be something like this:
Organization.estella_search(term: term, page: 1, size: 20)

I checked out that line you linked to above:
params[:from] = (params[:page] - 1) * params[:size]

But I was a little confused about how from interacts with page and size.
Thanks!! ❤ ❤ ❤

Makes sense with respect to pagination - you can hardcode the results size just using the size param in the estella_search call. It would be nice (but not a blocker) if the client could send this as a query param since otherwise a change in the client UI would necessitate a code change in Bearden.
#estella_search does not recognize the :page param, only :from which is basically an offset. That's consistent with the ES API. So I was deriving the :offset from the page/size API query params, as these are our conventional API pagination params in our Core API (Gravity).

Cool, then what I'll do is allow the size to come from params and just default it to 20. That way the client can choose what they'd like to do. And thanks for the explanation - I get it now. 👍

Looks great now with the size param. Going to merge this in. :clap:

I'm late to this discussion, but there's a similar thread in https://github.com/artsy/constellation/issues/35 around what the API should look like. Seems like we're going in many different directions across GraphQL, HAL, now Rails API (what is the data layout here?). What was the motivation for this?

Hi @dblock, I'd be happy to have a more in-depth discussion, but the tl;dr is that I felt Grape was too much for just a single endpoint. @cavvia and I went back and forth on it a little and then he was gracious enough to setup a time to pair on this so that I could show him what I was thinking. My motivation was and has been to keep this project as boring of a Rails app as possible. 😴

Thanks @jonallured. I don't really care about Grape vs. Rails, more about API data layout and versioning. Basically why isn't this a hypermedia API and why does it live under /v1?

The only endpoint we have here is a search endpoint that takes a term and spits back some data about matching organizations. We don't even have a client for this endpoint yet, so technically, this is probably a little premature, but @cavvia was interested in working on this project during pair swap, so he took it on. The reason I went with /v1 was because I always do that. What do you think we should have done differently?

Make this like the Gravity API v2.

Kill /v1 and make versioning use Accept headers. In Gravity we never added v2, the v2 API is just /api. This could be helpful.
Use roar-rails and turn this into a hypermedia API in HAL format with a root. This way you can use a generic client like hyperclient and expose organizations as first class objects. This way your search endpoint returns objects of the same type that are individually accessible (ie. you only have 1 way to retrieve data, right now you return organizations in search and you don't have a way to retrieve one organization).

Well, those could be great patterns to follow if/when this project gets there, but I think jumping to them right now is premature optimization. What's right for Gravity is not necessarily right for other projects.

I respectfully disagree with this statement - these aren't optimizations, these are questions of API design.


No display on Mac

After some difficulty getting all of the requirements installed:
I needed to set MACOSX_DEPLOYMENT_TARGET=10.11 to get pyobjc dependencies through.
I managed to get it to run (both in standalone window and in Chrome).
However, no graphs and everything is 0 kB or 0 kB/s.
Also see following log errors on console.
sudo ./hogwatch server
/Users/GitHubStuff/hogwatch/application/server/static/
[]
'transfer_rate'

Exception in thread Thread-1:
Traceback (most recent call last):
File "/Users//anaconda/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/Users//anaconda/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/Users//GitHubStuff/hogwatch/application/server/watchdogs/nethogs.py", line 44, in watch_transfer
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, bufsize=1)
File "/Users/anaconda/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/Users/anaconda/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[]
'transfer_amount'

Exception in thread Thread-2:
Traceback (most recent call last):
File "/Users/anaconda/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/Users/anaconda/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/Users/GitHubStuff/hogwatch/application/server/watchdogs/nethogs.py", line 44, in watch_transfer
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, bufsize=1)
File "/Users/anaconda/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/Users/anaconda/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

You need to have nethogs installed as listed in the requirements. It is a commandline utility that provides all the information. However currently it will list connections only as mapping to process currently doesnt work for OSX. (Link for nethogs)[https://github.com/raboof/nethogs]

Thanks! It was installed but not in my path


WEBAPP-333: Show user feedback for feedback

This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword WEBAPP.

Yep I know, gets both fixed with the next PR.

@Schedulaar also fixed it here now :D


Dictionary Error for PDAugment while aligning

I've seen the previous issue that says we should manually align the phonemes via MFA alignment tool.
While when I try the official example with the pretrained model provided, I've got the following error:

dictionary phones: {'th', 'b', 'v', 'ch', 'sh', 'p', 'ey', 's', 'k', 'jh', 'ow', 'hh', 'ah', 'oy', 'd', 'uh', 'm', 'dh', 'ax', 'iy', 'ih', 'zh', 'ae', 'er', 'y', 'l', 'w', 'ng', 'aw', 'n', 'aa', 'g', 'ao', 'r', 't', 'eh', 'uw', 'f', 'ay', 'z'}
model phones: {'IY0', 'AO2', 'AY1', 'IY1', 'AE2', 'UH2', 'M', 'AA0', 'UW1', 'F', 'N', 'EH0', 'AO1', 'G', 'OY0', 'AE1', 'UW0', 'Z', 'ER2', 'CH', 'NG', 'AH2', 'ER1', 'JH', 'OW0', 'UH0', 'OY1', 'P', 'SH', 'EY2', 'DH', 'AH1', 'ZH', 'AY0', 'AW0', 'AE0', 'AA2', 'T', 'TH', 'EY0', 'UW2', 'V', 'AA1', 'OW2', 'S', 'EY1', 'IY2', 'R', 'AY2', 'EH1', 'AH0', 'EH2', 'IH2', 'L', 'K', 'UH1', 'AW1', 'AO0', 'AW2', 'D', 'OY2', 'W', 'B', 'Y', 'IH1', 'HH', 'OW1', 'IH0', 'ER0'}
There were phones in the dictionary that do not have acoustic models: aa, ae, ah, ao, aw, ax, ay, b, ch, d, dh, eh, er, ey, f, g, hh, ih, iy, jh, k, l, m, n, ng, ow, oy, p, r, s, sh, t, th, uh, uw, v, w, y, z, zh

Is there a way to convert between these phones? Or is there another model that takes dictionary phones as input? Thanks.
ps. It seems that 'ax' does not exist in the model phones.

MFA provided pre-trained acoustic models using their specific lexicon.
You can train an acoustic model by yourself with your own corpus and phoneme set (refer to https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/workflows/train_acoustic_model.html#train-acoustic-model and https://montreal-forced-aligner.readthedocs.io/en/latest/first_steps/index.html#training-a-new-acoustic-model-on-a-corpus).
If you want to use the pre-trained acoustic models still, you can use the official LibriSpeech lexicon (refer to https://drive.google.com/open?id=1dAvxdsHWbtA1ZIh3Ex9DPn9Nemx9M1-L), which is consistent with the above 'model phones'.

Thanks for your suggestion. I'll try to train the alignment model.


kamel run - compile errors should be more visible

I made a mistake in the runtime/example/Sample.java file where the \n new line escape was changed to \C which would cause the java code to compile error. But I could not really see that too well.
This is just a ticket to remember to look into this and see if its really the case and if so make it report it better to the log output.

The features added with the new logging trait for 1.5 (and backported to 1.4) along w/ the kamel dump should alleviate this problem (if not resolving it altogether) ... . As such, I'm closing this one.


Update index.yml

Add new Xamarin docs to hub page

Fixes #92 and related to #2137

@dotnet/efcore ... can someone please review before Wednesday so this can make it into the live merge.


Expand model binding beyond posted body (universal Pydantic inbound data)

First check

[ x] I added a very descriptive title to this issue.
[ x] I used the GitHub search to find a similar issue and didn't find it.
[ x] I searched the FastAPI documentation, with the integrated search.
[ x] I already searched in Google "How to X in FastAPI" and didn't find any information.
[ x] I already read and followed all the tutorial in the docs and didn't find an answer.
[ x] I already checked if it is not related to FastAPI but to Pydantic.
[ x] I already checked if it is not related to FastAPI but to Swagger UI.
[ x] I already checked if it is not related to FastAPI but to ReDoc.
[ x] After submitting this, I commit to:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
Or, I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
Implement a Pull Request for a confirmed bug.

Example
I'm sorry if this is a duplicate or I've missed how to do this. I have scoured the docs and github issues.
Here's a self-contained minimal, reproducible, example with my use case:
# URL request: localhost/api/weather/portland?state=OR&country=US&units=imperial

from fastapi import FastAPI
from pydantic import BaseModel
from typing import Optional
import uvicorn

class Location(BaseModel):
    city: str
    country: Optional[str] = 'US'
    state: Optional[str] = None
    units: Optional[str] = 'metric'

app = FastAPI()

# What we have is:
@app.get('/api/weather/{city}')
async def weather(city: str,
        country: Optional[str] = None,
        state: Optional[str] = None,
        units: str = 'metric'):
    # work with city, country, etc.
    return Location(city=city, country=country, state=state, units=units)

# What I want:
# @app.get('/api/weather_binding/{city}')
# async def weather(loc: Location):
    # work with loc.city, loc.country, etc.
    # Where the binding inputs to the Pydantic model are basically:
    # data = {
    #       **request.query_params,
    #       **request.headers,
    #        **dict(await request.form()),  # only if the form dependencies are installed
    #        **request.path_params
    #    }
    # return loc

uvicorn.run(app)

Description

Open the browser and call the endpoint /api/weather/portland?state=OR&country=US&units=imperial.
It returns a JSON:

{
  "city": "portland",
  "country": null,
  "state": "OR",
  "units": "metric"
}

I would like to use model binding just like we have for JSON POST of inbound Pydantic models but combining all these elements.

The solution you would like
Basically, I can do this already with this step:
data = {
    **request.query_params,
    **request.headers,
    **dict(await request.form()),
    **request.path_params
}
loc = Location(**data)

But that's a drag and having the framework do this, even with an opt in flag in the route (like bind_all=True) would be fantastic.
Describe alternatives you've considered
I've consider just using the lines of code above more or less on method, but that doesn't seem to fit with the clean automatic nature of the platform.
Environment

OS:  macOS
FastAPI Version: 0.61.1
Python version: 3.9

Additional context
None

I think you are looking for Depends here.
from fastapi import Depends

@app.get("/api/weather_binding/{city}")
async def weather(loc: Location = Depends()):
    return loc

Open your browser go to http://<IP_ADDRESS>:8000/api/weather_binding/New%20Mexico?country=US&state=oregon&units=metric
{
  "city": "Nashville",
  "country": "US",
  "state": "Tennessee",
  "units": "metric"
}

It really understands what you are trying to do. Normally GET requests can not contain a request body as OpenAPI specification points it out clearly in here. Without Depends, it assumes it is a schema and expects a request body. But with Depends it understands it is a GET operation it turns that into parameters. But if you use Depends in a POST operation you'll have a request body whether you have a Depends or not.

Thanks @ycd This is close but it doesn't consider header values or body values. However taking query params and route params is pretty close to what I had in mind. Definitely appreciate the pointer.
That said, I would never ever think dependency injection == reading values from query string. To me, dependency injection is all about I register something like a DB concrete type at app startup, the method says it takes one, I get the instance or type I registered. But that is entirely outside the bounds of the request, just the app config.  I think of dependency injection much like pytest fixtures.
So, it's super confusing to me that these things coexist in the same feature / help location. :) Thank you for helping me on it.

It's also possible to do something like this:
from fastapi.testclient import TestClient
from fastapi import FastAPI, Depends, Form
from pydantic import BaseModel

app = FastAPI()

def form_body(cls):
    cls.__signature__ = cls.__signature__.replace(
        parameters=[
            arg.replace(default=Form(...))
            for arg in cls.__signature__.parameters.values()
        ]
    )
    return cls

@form_body
class Item(BaseModel):
    name: str
    another: str

@app.post('/test', response_model=Item)
def endpoint(item: Item = Depends()):
    return item

tc = TestClient(app)

r = tc.post('/test', data={'name': 'name', 'another': 'another'})

assert r.status_code == 200, r
print(r.json())

Great, thank you @Mause Depends() wasn't obvious but it does pretty much achieve what I was hoping for. :)

Thanks for the help here @Mause and @ycd ! 🍰
That's a nifty hack.
And thanks @mikeckennedy for closing the issue.
I want to support this in a future version, doing def weather(location: Location = Form()), but anyway, that will come later. 🤓

Sorry for the long delay! 🙈  I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.


Where can I find the souce code for particular Google.Apis.*?

For example, where can I find source code for https://www.nuget.org/packages/Google.Apis.Gmail.v1/? This repository seems only to inlcude auth and utils etc., but where can I find a repository for particular Apis?

It's actually included in the link you sent - https://developers.google.com/resources/api-libraries/download/gmail/v1/csharp

Yeah, I got that, but in which repository does it live? Can't find it on GitHub nor code.google.com.

It doesn't leave in any repository. It's a generated code.
On Mon, May 11, 2015 at 5:46 PM Ján Sokoly<EMAIL_ADDRESS>wrote:

Yeah, I got that, but in which repository does it live? Can't find it on
GitHub nor code.google.com.
--
Reply to this email directly or view it on GitHub
https://github.com/google/google-api-dotnet-client/issues/543#issuecomment-101058440
.

Wow. Generated from what?

We use the discovery doc of each API to generate a .NET, Java, Python, etc.
libraries...
Read more here:
http://google-api-dotnet-client.blogspot.com/2013/08/announcing-release-of-150-beta.html
(It's from August 2013),
Starting with this version we are using the open source Google APIS client
generator which is available here
https://code.google.com/p/google-apis-client-generator/. The .NET
specific templates for 1.5.0-beta are available here
https://code.google.com/p/google-apis-client-generator/source/browse/#git%2Fsrc%2Fgoogleapis%2Fcodegen%2Ftemplates%2Fcsharp%2F1.5.0-beta%2Ftemplates.
The C# code generator projects in our core library
(GoogleApis.Tools.ServiceGenerator, GoogleApis.Tools.CodeGen and all their
tests) were removed from our repository.
Since then the project had moved to github as well and the c# templates are
available here:
https://github.com/google/apis-client-generator/tree/master/src/googleapis/codegen/templates/csharp/1.9.0/templates
On Mon, May 11, 2015 at 6:03 PM Ján Sokoly<EMAIL_ADDRESS>wrote:

Wow. Generated from what?
--
Reply to this email directly or view it on GitHub
https://github.com/google/google-api-dotnet-client/issues/543#issuecomment-101061558
.


#5724: fix css to fit content on full page without scroll

fixes #5724

Can you merge this @rtfeldman?


Input validation - name length & characters

If the name of LB/K8s cluster is too long, or contains strange characters, the process might fail.
We should guard this at the input validation level, if we aren't yet.

The validation is already implemented on frontend level.
However, we decided to shorten the name from <clusterName>-<clusterHash>-<nodepoolName>-<index> to  <nodepoolName>-<index>. This change would be implemented via hostaname in kubeone manifest.
NOTE: change validateFutureDomain() check


Adsk Contrib - Fix copyright issues in test data

Some of the test data files had internal copyrights that conflicted with the new license file we added in the tests/data directory.  Updated the copyright statement in the Autodesk test files and generated new ICC profiles.

This Windows Debug build is hanging indefinitely at this test. The build times out after an hour:
1: [205/587] [FileFormatICC / TestApply

Thanks Michael.  Patrick figured out why the Windows Debug was failing.  Will push another commit to fix it ...


Livereload for Ionic React app

Is the livereload for this electron platform currently possible?
I have an Ionic React app. I'm trying calling this command from project root folder:
ionic cap run @capacitor-community/electron -l
It first tries to add the electron platform again:
 capacitor add @capacitor-community/electron
which fails with Error: Electron platform already exists. but continues with build process, so in my case these steps:
react-scripts start
capacitor copy @capacitor-community/electron
capacitor open @capacitor-community/electron
So in the end, it opens the electron window, but the content displayed is outdated - actually an old build I made in the past by manually doing
ionic build && npx cap copy
The content is not live-reloaded.
Am I doing something wrong or livereload is not available for electron?
Thank you!

Currently no, live reload does not work with electron, but its a good idea for a future release. 👍

Livereload would be really nice feature :)

I don't know if it helps, but I'm using Ionic with Angular and I used electron-reload"
I added those lines in electron/src/index.ts
  electron: path.join(__dirname, 'node_modules', '.bin', 'electron')
});

and live reloading is now working

I don't know if it helps, but I'm using Ionic with Angular and I used electron-reload"
I added those lines in electron/src/index.ts
  electron: path.join(__dirname, 'node_modules', '.bin', 'electron')
});

and live reloading is now working

This is a good option, I'd still like to build something into the platform, but keep an eye out for v3 it will have some good updates for everyone

I don't know if it helps, but I'm using Ionic with Angular and I used electron-reload"
I added those lines in electron/src/index.ts
  electron: path.join(__dirname, 'node_modules', '.bin', 'electron')
});

and live reloading is now working

Can you please share more details on build commands?

Added in v4 (v3 will be deprecated), you will need to build your app then run npx cap copy @capacitor-community/electron to see the reload.

I don't know if it helps, but I'm using Ionic with Angular and I used electron-reload" I added those lines in electron/src/index.ts
  electron: path.join(__dirname, 'node_modules', '.bin', 'electron')
});

and live reloading is now working

Can you give me the steps for live reload ??

If your web dev build has live-reload (e.g. create-react-app) and you do this then your electron dev build will too.

I don't know if it helps, but I'm using Ionic with Angular and I used electron-reload" I added those lines in electron/src/index.ts
  electron: path.join(__dirname, 'node_modules', '.bin', 'electron')
});

and live reloading is now working

can you share with me more details and steps to live-reload ?
I'm using ionic + angular with "@capacitor-community/electron": "^4.0.1"


Delete Sub Accounts

Codecov Report

Merging #153 into master will increase coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   96.25%   96.29%   +0.04%
==========================================
  Files          11       11
  Lines        1443     1459      +16
  Branches      165      168       +3
==========================================
+ Hits         1389     1405      +16
  Misses         31       31
  Partials       23       23

Impacted Files
Coverage Δ

morpheus/app/main.py
100% <100%> (ø)
:arrow_up:

morpheus/app/views.py
95.78% <100%> (+0.15%)
:arrow_up:

Continue to review full report at Codecov.

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


"Latest Release" and "Latest Commit" dates are not maintained

Don't create an issue
What? The page has a link to "Report Issue" here. That does not make sense.
Report issue
I quickly checked some proxies (Traefik, nginx, HAProxy) and all had "Latest Commit - 2 months ago" stated in the details box.
This date is wrong, as is the "Latest Tweet - 7 months ago" date.
Traefik even has a "Latest Release - 4 months ago", which is just blatantly wrong.
Do you manually maintain those dates or is there a crawler program that is not working correctly anymore?

Hi!
We've just migrated the CNCF landscape to v2 and this issue should be resolved.
Please feel free to reopen if needed 🙂


UNR-4877: Adapted spatial debugger to using FSubView instead of StaticComponentView

Description
Split SpatialDebugger into two classes: FSpatialDebuggerSystem that interacts with Spatial using a SubView, and ASpatialDebugger that interacts with BPs, handles debug drawing and replicating worker regions.
Tests
Manual tests, ran around in existing maps in TestGym.
Documentation
Added a release note; this change doesn't change external API.
Primary reviewers
@jacquese @m-samiec were interested in seeing this PR.

Looks good generally, can you also try spinning up some late connecting clients (via the LaunchClient.bat) and validate everything still all looks good? Also worth playing around with the debugger options if you haven't already, actor selection/deselection etc.

Thanks for the note - I've ran around with LaunchClient clients and everything seems to work.


[Feature Request] Configure PUP option for PUP Pack

Would be pretty cool to have VPS show the user what PUP options are available and then to install the option for the users. Since its just running a given BAT file it would be easy for VPS to do it, and it would save users from needing to remote in or mess with the file system.

I'm a bit confused. This feature was already there right from the beginning. I hope it did not break. I'll take a look this later.

Still there...

DUDE... you have too many features!
jk... yeah, I clearly missed it!
awe-s-ome


Figure out how to handle CycloneDX components that don't come with PURLs.

While working with some CDX SBOMs, we were faced with some entries where PURLs were not available (ref: https://github.com/guacsec/guac/issues/236).
Additional discussion is needed to ensure that we are able to handle these cases in a way that is valid for our use cases.

This is handled by the current implementation of the CDX parser.


Modularisation of the Food and Land Use module

The food and land use module has been subdivided into the following modules:

Food Demand: Calculation of crop and livestock demand based on population and gdp per capita
Land Use:  Stocks of (habitable) land - grassland, cropland and forest
Livestock: Calculation of livestock yield and production
Crop: Calculation of crop yield and production as a function of several environmental variables
Grass and Forest: to be implemented, e.g. to track fate of carbon
Land nutrients: Currently only includes calculation of fertilization based on manure (nitrogen) and artificial fertilizer (nitrogen). Should also further include leaching as well as other nutrients such as phosphorus
Freshwater: Calculation of global available water supply based on several usages
Soil: Currently only includes cropland soil carbon calculation. Should also include those for grass and forest soil in the future.

Dear @wasbridge,
can you already have a look at it and tell me what might still be required to do.
Thanks a lot,
best
Jannes

Hey @jnnsbrr,
This is very close -- a few small changes:

Fix the missing units on "Soil.litter to soil carbon" (should be GtC/year)
Fix data files.  Update Data/Calibration_Data.csv -- all of the variables that are Food and Land Use.XXX should be changed to be their new modules. Do the same for Data/external_sensi.csv and Data/uncertainity_parameters.csv files
Re-import the corrected calibration data... Model > Data Manager -- Load external data as run.  Name it calibration data -- it will rename the old dataset, delete the old one.  When you commit make sure you have 2 runs calibration data, and run 1
Fix payoffs: Restore the Food and Land Use Payoff as well as the Full Payoff to be as they were before modularization.  By that I mean make sure that all variables in the Calibration_Data.csv file that are in the Food and Land Use module are in the Food and Land Use Payoff as well as the Full Payoff.  The easiest way to do this is to update the two Payoff.xml files I've attached, and to re-import them.
Fix optimizations: Restore the Food and Land Use calibration, and the Simple Full Calibration ensure it has all of the proper parameters (use the OPTI.xml s for that)
Fix sensitivity analyses: Restore the Calibration Uncertainity (use the SENSI.xml for that)

When you import these XML files it creates a new analysis -- so the procedure should be to first delete the broken analysis.  Then import the adjusted XML file.  Start with the payoff's then do the optimization, then the sensitivity.
Archive.zip

Hey @jnnsbrr -- Don't worry about fixing the calibraitons, payoffs and sensitivity analyses.  I will do it b/c they are being broken by everyone else :-)
I will likely merge this in as is, and do the analysis fixing for everyone myself :-)


Comply with hook-bricker

rudimentary compliance with hook-bricker function:
https://github.com/lukas2511/dehydrated/blob/master/dehydrated#L87-L93

Closing, dupe of https://github.com/ErinMorelli/dehydrated-dreamhost-hook/pull/3


BOOST_ROOT not being picked up when doing pip build

BOOST_ROOT is not being picked up when you do a "pip install ." on OS X so it isn't finding the include files and subsequently the boost library.
I am building this under a separate conda environment.

Should be fixed in 97913ad08aa7b202cba9558411d104dfafa44dd2.  Can you please test?
(Generally better to use CPPFLAGS/LDFLAGS for this, not project-specific BOOST_ROOT, but I guess the latter seems to be common in the anaconda world.)


[api] NDArray creation should not use alternative engine by default

Change-Id: I269de88ca49f9042813f576a0c00586d3984ac92
Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report

Merging #1253 (f7ba8c4) into master (5907d50) will increase coverage by 0.08%.
The diff coverage is 81.98%.

@@             Coverage Diff              @@
##             master    #1253      +/-   ##
============================================
+ Coverage     70.23%   70.32%   +0.08%
- Complexity     5063     5068       +5
============================================
  Files           485      485
  Lines         22262    22245      -17
  Branches       2375     2381       +6
============================================
+ Hits          15635    15643       +8
+ Misses         5414     5399      -15
+ Partials       1213     1203      -10

Impacted Files
Coverage Δ

api/src/main/java/ai/djl/inference/Predictor.java
91.34% <ø> (ø)

...i/src/main/java/ai/djl/ndarray/NDArrayAdapter.java
16.14% <0.00%> (+5.72%)
:arrow_up:

...-engine/src/main/java/ai/djl/dlr/jni/JniUtils.java
70.00% <ø> (ø)

...src/main/java/ai/djl/mxnet/engine/MxNDManager.java
87.12% <ø> (+1.93%)
:arrow_up:

...n/java/ai/djl/onnxruntime/engine/OrtNDManager.java
76.47% <0.00%> (+3.49%)
:arrow_up:

...main/java/ai/djl/tensorrt/engine/TrtNDManager.java
0.00% <0.00%> (ø)

...c/main/java/ai/djl/tensorrt/engine/TrtSession.java
0.00% <0.00%> (ø)

...ain/java/ai/djl/tflite/engine/TfLiteNDManager.java
80.76% <0.00%> (+4.90%)
:arrow_up:

.../src/main/java/ai/djl/dlr/engine/DlrNDManager.java
78.37% <50.00%> (+2.82%)
:arrow_up:

.../src/main/java/ai/djl/ml/xgboost/XgbNDManager.java
75.51% <54.54%> (-6.31%)
:arrow_down:

... and 28 more

Continue to review full report at Codecov.

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


Failed to load and run script: server crash

2021-03-09 12:54:43: ACTION[Main]: [working_villages] loading init
2021-03-09 12:54:43: WARNING[Main]: Undeclared global variable "modutil" accessed at .../../mods/working_villages/working_villagers/init.lua:8
2021-03-09 12:54:43: ACTION[Main]: Server: Shutting down
2021-03-09 12:54:44: ERROR[Main]: ModError: Failed to load and run script from /home/minetest/minetest/bin/../mods/working_villages/working_villagers/init.lua:
2021-03-09 12:54:44: ERROR[Main]: /home/minetest/minetest/bin/../mods/working_villages/working_villagers/modutil/portable.lua: No such file or directory
2021-03-09 12:54:44: ERROR[Main]: stack traceback:
2021-03-09 12:54:44: ERROR[Main]:       [C]: in function 'dofile'
2021-03-09 12:54:44: ERROR[Main]:       .../../mods/working_villages/working_villagers/init.lua:9: in main chunk
Minetest server info:
Minetest 5.4.0 (Linux)
Using Irrlicht 1.8.4
Using Lua 5.1.5
BUILD_TYPE=Release
RUN_IN_PLACE=0
USE_CURL=1
USE_GETTEXT=0
USE_SOUND=1
USE_FREETYPE=1

Error causes server to shutdown.

I see you have decided to clone the project to run working_villages.
Please read the "missing modutil" section of the readme.

That solved this issue, but there are now other issues. Opened a new report.


Dependency on pip breaks Debian

Hi there,
Pypandoc brings in an updated pip into the --user site-packages as a dependency, breaking Debian, which relies on its own version of pip. Is a dependency on newer Pip really required by Pandoc? The cascade failure here is very unfortunate.
The result is that all future console invocations of pip on Debian look like...
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

Debian users are advised not to install pip separately, but to rely on the distro version as discussed here. Of course, if some recursively-retrieved package (like pypandoc) forces the install of a newer version of pip it's pretty much impossible to avoid. I discovered this by installing 'leo'.
The debian approach to wiring pip is deeply stupid it's true, where they should be using python -m pip, they are instead reaching inside the pip package itself for no reason...
~ $ more /usr/bin/pip
#!/usr/bin/python
# GENERATED BY DEBIAN

import sys

# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
from pip import main
if __name__ == '__main__':
    sys.exit(main())

...but if it's feasible to avoid the updated pip dependency then that would address the issue for a lot of people.
Log showing broken Pip
This log shows how pip breaks through installing Pypandoc (on Ubuntu Artful Aardvark)
It begins with having completely deleted all my --user packages to restore pip function to back out from the previous breakage like...
~ $ trash /home/cefn/.local/lib/python2.7/site-packages/

Initially pip installs go fine, until the line pip install leo, which has pypandoc as a dependency, at which point pip is permanently broken.
~ $ pip install pygame
Collecting pygame
  Downloading https://files.pythonhosted.org/packages/dc/76/fdfb5cee3432192a89df6aad8a33eed96ba6a3a16e0dca951db9fef03688/pygame-1.9.3-cp27-cp27mu-manylinux1_x86_64.whl (9.4MB)
    100% |████████████████████████████████| 9.4MB 136kB/s
Installing collected packages: pygame
Successfully installed pygame-1.9.3
~ $ pip install pyglet
Collecting pyglet
  Downloading https://files.pythonhosted.org/packages/1c/fc/dad5eaaab68f0c21e2f906a94ddb98175662cc5a654eee404d59554ce0fa/pyglet-1.3.2-py2.py3-none-any.whl (1.0MB)
    100% |████████████████████████████████| 1.0MB 679kB/s
Collecting future (from pyglet)
  Downloading https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz (824kB)
    100% |████████████████████████████████| 829kB 926kB/s
Building wheels for collected packages: future
  Running setup.py bdist_wheel for future ... done
  Stored in directory: /home/cefn/.cache/pip/wheels/bf/c9/a3/c538d90ef17cf7823fa51fc701a7a7a910a80f6a405bf15b1a
Successfully built future
Installing collected packages: future, pyglet
Successfully installed future-0.16.0 pyglet-1.3.2
~ $ pip install leo
Collecting leo
  Using cached https://files.pythonhosted.org/packages/2e/8d/d56a6d9569c86fe8b0b95ece11c75e4be150b0d17c6278f0b2db43ff6390/leo-5.7.2-py2.py3-none-any.whl
Collecting pyflakes (from leo)
  Using cached https://files.pythonhosted.org/packages/d7/40/733bcc64da3161ae4122c11e88269f276358ca29335468005cb0ee538665/pyflakes-1.6.0-py2.py3-none-any.whl
Collecting keyring (from leo)
  Using cached https://files.pythonhosted.org/packages/47/c0/4dfeeedaa233a12c3e5eb1e079b4dce96bbcbf0d030abc5e9a6b771e5812/keyring-12.2.1-py2.py3-none-any.whl
Collecting nbformat (from leo)
  Using cached https://files.pythonhosted.org/packages/da/27/9a654d2b6cc1eaa517d1c5a4405166c7f6d72f04f6e7eea41855fe808a46/nbformat-4.4.0-py2.py3-none-any.whl
Collecting wheel (from leo)
  Using cached https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl
Collecting pylint (from leo)
  Using cached https://files.pythonhosted.org/packages/3f/88/e0c9a506255ae3915ac1f183a13853d5b4a3e435972d0df6ea190d5d1e96/pylint-1.9.1-py2.py3-none-any.whl
Collecting semantic-version (from leo)
Collecting pypandoc (from leo)
Collecting sphinx (from leo)
  Using cached https://files.pythonhosted.org/packages/89/44/73cd04b856fa35a69e9e2e790aa283e2eaefb684e116f1d46d01a5e7986f/Sphinx-1.7.4-py2.py3-none-any.whl
Collecting docutils (from leo)
  Using cached https://files.pythonhosted.org/packages/50/09/c53398e0005b11f7ffb27b7aa720c617aba53be4fb4f4f3f06b9b5c60f28/docutils-0.14-py2-none-any.whl
Collecting twine (from leo)
  Using cached https://files.pythonhosted.org/packages/65/ae/9cfdff186dd4812c59bad890435538858f13fe43dbe6923e0fb20f0adfc8/twine-1.11.0-py2.py3-none-any.whl
Collecting entrypoints (from keyring->leo)
  Using cached https://files.pythonhosted.org/packages/cc/8b/4eefa9b47f1910b3d2081da67726b066e379b04ca897acfe9f92bac56147/entrypoints-0.2.3-py2.py3-none-any.whl
Collecting secretstorage<3; (sys_platform == "linux2" or sys_platform == "linux") and python_version < "3.5" (from keyring->leo)
Collecting traitlets>=4.1 (from nbformat->leo)
  Using cached https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat->leo)
  Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting ipython-genutils (from nbformat->leo)
  Using cached https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting jupyter-core (from nbformat->leo)
  Using cached https://files.pythonhosted.org/packages/1d/44/065d2d7bae7bebc06f1dd70d23c36da8c50c0f08b4236716743d706762a8/jupyter_core-4.4.0-py2.py3-none-any.whl
Collecting six (from pylint->leo)
  Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting isort>=4.2.5 (from pylint->leo)
  Using cached https://files.pythonhosted.org/packages/41/d8/a945da414f2adc1d9e2f7d6e7445b27f2be42766879062a2e63616ad4199/isort-4.3.4-py2-none-any.whl
Collecting singledispatch; python_version < "3.4" (from pylint->leo)
  Using cached https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-<IP_ADDRESS>-py2.py3-none-any.whl
Collecting astroid<2.0,>=1.6 (from pylint->leo)
  Using cached https://files.pythonhosted.org/packages/7f/4f/162e1c859f59031ee7d3ff48ca6a3eaa699e4b8bfcb4f2988b5677d74605/astroid-1.6.4-py2.py3-none-any.whl
Collecting configparser; python_version == "2.7" (from pylint->leo)
Collecting backports.functools-lru-cache; python_version == "2.7" (from pylint->leo)
  Using cached https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting mccabe (from pylint->leo)
  Using cached https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting pip>=8.1.0 (from pypandoc->leo)
  Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Collecting setuptools (from pypandoc->leo)
  Using cached https://files.pythonhosted.org/packages/7f/e1/820d941153923aac1d49d7fc37e17b6e73bfbd2904959fffbad77900cf92/setuptools-39.2.0-py2.py3-none-any.whl
Collecting sphinxcontrib-websupport (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/56/0f/3ee19ca5e5a1d9751cf4bbeb372d40a46421c4321fe55a4703ba66d0bafb/sphinxcontrib_websupport-1.0.1-py2.py3-none-any.whl
Collecting babel!=2.0,>=1.3 (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/94/03/14e68ad12e771a79cf96792f7158d68a7b3d8c7b2badf39e9ef1f65b57d6/Babel-2.5.3-py2.py3-none-any.whl
Collecting imagesize (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/e9/79/31cc1c2e0daf575f8fd2b581e2975e6a6938bd439581f766b79c50479521/imagesize-1.0.0-py2.py3-none-any.whl
Collecting packaging (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/ad/c2/b500ea05d5f9f361a562f089fc91f77ed3b4783e13a08a3daf82069b1224/packaging-17.1-py2.py3-none-any.whl
Collecting Pygments>=2.0 (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
Collecting requests>=2.0.0 (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl
Collecting typing; python_version < "3.5" (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/0d/4d/4e5985d075d241d686a1663fa1f88b61d544658d08c1375c7c6aac32afc3/typing-3.6.4-py2-none-any.whl
Collecting alabaster<0.8,>=0.7 (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/2e/c3/9b7dcd8548cf2c00531763ba154e524af575e8f36701bacfe5bcadc67440/alabaster-0.7.10-py2.py3-none-any.whl
Collecting Jinja2>=2.3 (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
Collecting snowballstemmer>=1.1 (from sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/d4/6c/8a935e2c7b54a37714656d753e4187ee0631988184ed50c0cf6476858566/snowballstemmer-1.2.1-py2.py3-none-any.whl
Collecting pkginfo>=1.4.2 (from twine->leo)
  Using cached https://files.pythonhosted.org/packages/a3/fe/f32a48d48f40a7209be9825fba2566cab92364787cf37de2e08300dd6ce7/pkginfo-1.4.2-py2.py3-none-any.whl
Collecting tqdm>=4.14 (from twine->leo)
  Using cached https://files.pythonhosted.org/packages/d8/ca/6524dfba7a0e850d3fda223693779035ddc8bf5c242acd9ee4eb9e52711a/tqdm-4.23.3-py2.py3-none-any.whl
Collecting requests-toolbelt>=0.8.0 (from twine->leo)
  Using cached https://files.pythonhosted.org/packages/97/8a/d710f792d6f6ecc089c5e55b66e66c3f2f35516a1ede5a8f54c13350ffb0/requests_toolbelt-0.8.0-py2.py3-none-any.whl
Collecting cryptography (from secretstorage<3; (sys_platform == "linux2" or sys_platform == "linux") and python_version < "3.5"->keyring->leo)
  Using cached https://files.pythonhosted.org/packages/dd/c2/3a5bfefb25690725824ade71e6b65449f0a9f4b29702cce10560f786ebf6/cryptography-2.2.2-cp27-cp27mu-manylinux1_x86_64.whl
Collecting enum34; python_version == "2.7" (from traitlets>=4.1->nbformat->leo)
  Using cached https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting decorator (from traitlets>=4.1->nbformat->leo)
  Using cached https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl
Collecting functools32; python_version == "2.7" (from jsonschema!=2.5.0,>=2.4->nbformat->leo)
Collecting futures (from isort>=4.2.5->pylint->leo)
  Using cached https://files.pythonhosted.org/packages/2d/99/b2c4e9d5a30f6471e410a146232b4118e697fa3ffc06d6a65efde84debd0/futures-3.2.0-py2-none-any.whl
Collecting wrapt (from astroid<2.0,>=1.6->pylint->leo)
Collecting lazy-object-proxy (from astroid<2.0,>=1.6->pylint->leo)
  Using cached https://files.pythonhosted.org/packages/52/7e/f0f570ba363e15251bb9fd452257ec2aff91be0187a08a893afbd8ae225f/lazy_object_proxy-1.3.1-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pytz>=0a (from babel!=2.0,>=1.3->sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/dc/83/15f7833b70d3e067ca91467ca245bae0f6fe56ddc7451aa0dc5606b120f2/pytz-2018.4-py2.py3-none-any.whl
Collecting pyparsing>=2.0.2 (from packaging->sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests>=2.0.0->sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests>=2.0.0->sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests>=2.0.0->sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.0.0->sphinx->leo)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from Jinja2>=2.3->sphinx->leo)
Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptography->secretstorage<3; (sys_platform == "linux2" or sys_platform == "linux") and python_version < "3.5"->keyring->leo)
  Using cached https://files.pythonhosted.org/packages/14/dd/3e7a1e1280e7d767bd3fa15791759c91ec19058ebe31217fe66f3e9a8c49/cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl
Collecting asn1crypto>=0.21.0 (from cryptography->secretstorage<3; (sys_platform == "linux2" or sys_platform == "linux") and python_version < "3.5"->keyring->leo)
  Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting ipaddress; python_version < "3" (from cryptography->secretstorage<3; (sys_platform == "linux2" or sys_platform == "linux") and python_version < "3.5"->keyring->leo)
  Using cached https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography->secretstorage<3; (sys_platform == "linux2" or sys_platform == "linux") and python_version < "3.5"->keyring->leo)
Installing collected packages: pyflakes, configparser, entrypoints, pycparser, cffi, enum34, idna, asn1crypto, six, ipaddress, cryptography, secretstorage, keyring, ipython-genutils, decorator, traitlets, functools32, jsonschema, jupyter-core, nbformat, wheel, futures, isort, singledispatch, wrapt, backports.functools-lru-cache, lazy-object-proxy, astroid, mccabe, pylint, semantic-version, pip, setuptools, pypandoc, sphinxcontrib-websupport, pytz, babel, imagesize, pyparsing, packaging, Pygments, urllib3, certifi, chardet, requests, docutils, typing, alabaster, MarkupSafe, Jinja2, snowballstemmer, sphinx, pkginfo, tqdm, requests-toolbelt, twine, leo
Successfully installed Jinja2-2.10 MarkupSafe-1.0 Pygments-2.2.0 alabaster-0.7.10 asn1crypto-0.24.0 astroid-1.6.4 babel-2.5.3 backports.functools-lru-cache-1.5 certifi-2018.4.16 cffi-1.11.5 chardet-3.0.4 configparser-3.5.0 cryptography-2.2.2 decorator-4.3.0 docutils-0.14 entrypoints-0.2.3 enum34-1.1.6 functools32-3.2.3.post2 futures-3.2.0 idna-2.6 imagesize-1.0.0 ipaddress-1.0.22 ipython-genutils-0.2.0 isort-4.3.4 jsonschema-2.6.0 jupyter-core-4.4.0 keyring-12.2.1 lazy-object-proxy-1.3.1 leo-5.7.2 mccabe-0.6.1 nbformat-4.4.0 packaging-17.1 pip-10.0.1 pkginfo-1.4.2 pycparser-2.18 pyflakes-1.6.0 pylint-1.9.1 pypandoc-1.4 pyparsing-2.2.0 pytz-2018.4 requests-2.18.4 requests-toolbelt-0.8.0 secretstorage-2.3.1 semantic-version-2.6.0 setuptools-39.2.0 singledispatch-<IP_ADDRESS> six-1.11.0 snowballstemmer-1.2.1 sphinx-1.7.4 sphinxcontrib-websupport-1.0.1 tqdm-4.23.3 traitlets-4.3.2 twine-1.11.0 typing-3.6.4 urllib3-1.22 wheel-0.31.1 wrapt-1.10.11
~ $ pip install mu
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

Prob not anymore. Will have a look what needs to change to get this removed...

See https://github.com/bebraw/pypandoc/pull/188

Thanks @jankatins for putting in the effort to tidy everything up!


load theme partials for non html and doc

For my custom theme, I am using partials to share common html between the html and pdf templates.
This was working fine in<EMAIL_ADDRESS>but pdf generation fails due to not being able to find my partials when I updated to 1.4.1
I noticed following was added to start of registerPartials() method:
if( format !== 'html' && format != 'doc' )
  return;

I'm guessing this was added since global partials only exist in https://github.com/fluentdesk/fresh-themes/tree/master/partials for html and doc.
However the condition prevents theme partials from registering when output is not html or doc (in my case pdf).
This pull requests changes the logic so that loading global partials only occurs for html and doc output while theme partials are always loaded.

Thanks @aruberto -- this looks good, and the theme structure should be more stable now that partials are in. Will merge shortly. Let me know if you'd like to package this theme with HMR or list it in the registry we don't have yet.


Can't get static mock to work

When I try mocking a static class like described under https://github.com/florinn/typemoq#dynamic-mocks (code under comment: // Using the 'static' side of the class as type parameter), it still calls the methods that are setup rather than using the mock. For example, this test fails because getJwtProviderByToken implementation actually gets called, causing the test to try to read from the filesystem.

Modified code to avoid using static so this became a non-issue. I did notice however, that jasmine spyOn seems to work better with statics for anyone who comes upon this.


explain logger system

logback:

changing messages level
changing layout

See also NLeSC/Xenon#344. Logging should be straightforward to modify, even without Xenon-examples.


Finish notion integration plugin ($200)

Is your feature request related to a problem? Please describe.
https://github.com/BasedHardware/Friend/blob/main/plugins/example/basic_auth/memory_created.py
The notion memory created plugin is super rusty and could be much better.
Describe the solution you'd like
The setup form + on completed page should be beautiful, and have some sort of Friend <> Notion Integration UI.
create_notion_row should validate the user created the proper table, and if not, return a message accordingly.
Instead of the user having to setup their own integration, this should be a notion oAuth page, so you need to create a notion application, and allow oauth.
The oauth is done from the links you put in the README.
(This should be in another folder inside example/oauth) ~ but the community-plugins.json file should be updated to point to this new endpoint.

Thinh's change logs

Notion OAuth is now ready

Demo: https://github.com/user-attachments/assets/0f1e0794-86ae-4282-a140-68222193ad2f

What/s next?

[x] Notion OAuth
[ ] Validate for create_notion_row function.
[ ] Dir example/oauth, communition-plugins.json

A PR will be sent after all tasks are done, or this task needs to be split into smaller parts.
Good day ~

Thinh's change logs

Done for the rests, please check take a look at PR https://github.com/BasedHardware/Friend/pull/551

What/s next?

✅ Notion OAuth
✅ Validate for create_notion_row function.
✅ Dir example/oauth, communition-plugins.json
☑ Fix review / feedback

Good day ~

Will review the PR and give feedback soon!

Thinh's change logs

PR merged https://github.com/BasedHardware/Friend/pull/551

What/s next?

✅ Notion OAuth
✅ Validate for create_notion_row function.
✅ Dir example/oauth, communition-plugins.json
✅ Fix review / feedback

Cheers !!!

Thanks!


Low acquisition framerate (Mono16)

Hello kazunarikudo,
My current problem is related to issu #131
Unfortunately, I don't get higher framerates than around 20FPS (If the desired framrate is set to any value lower than 20 it works accurate.)
To acquire and store frames in RAM i use:
for i in range(n_frames):
   with ia.fetch_buffer() as buffer:
      np.copyto(frames[i], buffer.payload.components[0].data.reshape(buffer.payload.components[0].height, buffer.payload.components[0].width))
after finishing acqisition I save the frames to Disk.
Desktop (please complete the following information):
OS: Windows 10, 64 bit
Python: Python 3.6.8
Harvester: 1.2.3
GenTL Producer: Matrix Vision
Camera: IRS640, (Automation Technology), Mono16, nominal FPS: 94.8 (due to ROI)

@ThermoGnad Hi. Thank you for creating another ticket. Okay, so how much frame rate would you get if you do not call np.copyto()?

Hi. Without the np.copyto() there is no big difference.
I made a more accurate measurement (acquired 1000 frames):

without np.copyto(): 29.3 fps
with np.copyto(): 29.25 fps (sorry for the wrong framerate in the initial post)

@ThermoGnad Thank you for the update. Sorry for having asked you so many questions, what would happen if the pixel format was Mono8? (I'm not sure if your camera supports it though.)

@ThermoGnad One more thing, could you show me the line where you call start_acquisitoin method, please?

@kazunarikudo
Unfortunately, my camera does not support Mono8.
my script is nearly the same as the script of bobcorn. The funktion  startig acquisition:
`def init_camera(fps):
ia = None
h = Harvester()
h.add_cti_file(SDK_CTI_PATH)
h.update_device_info_list()

try:
    ia = h.create_image_acquirer(serial_number=CAMERA_SN)
except:
    print("[ERROR] Camera with specified model \"" + CAMERA_SN + "\" is busy or not connected.")
    exit(1)

ia.remote_device.node_map.Width.value = WIDTH
ia.remote_device.node_map.Height.value = HEIGHT
ia.remote_device.node_map.PixelFormat.value = PIXEL_FORMAT
ia.remote_device.node_map.AcquisitionFrameRate.value = fps

ia.start_acquisition()

return h, ia`

calling the this just before fetching the buffer:
    h, ia = init_camera(fps)

@ThermoGnad Thank you for the update. Okay, so could you check if you can acquire images at 90 fps using another library? I fell a bit strange because you can acquire images, I mean valid images that are not None. It means Harvester has interpreted the delivered data in the declared pixel format. And you are trying to acquire Mono16 images and it's one of simple pixel data formats like Mono8. I have confirmed Harvester can acquire Mono8 at about 200 fps for a 4M pix image. So I would expect you should be able to acquire the images at 90 fps as you exact. Of course, I admit you are facing the issue anyway and there must be a reason that brings up the result.

@ThermoGnad I have just checked out AT's flyer for IRS640 at here. I am not willing to stick my mind on Mono8 but the flyer seems to be saying it supports 8-bit output (I'm not sure if it's Mono8, to be honest). Please never mind if it does not support Mono8 anyway. However, again, even if the pixel format was Mono16, it is strange to hear the frame rate is limited to about 20 fps for an image that is smaller than VGA. I guess you should be able to acquire a mono VGA image at about 340 fps on gigabit Ethernet. Even if the format was Mono16, 20 fps is much smaller.

@ThermoGnad Thank you for the update. I would not stick my mind on Mono8 but would be able to try with another model so that you can acquire images at the frame rate that you expected?

@kazunarikudo Contacting AT seems to be the best idea, especially if they konw you and harvesters.
Futhermore, I have a Flir A35, running with 60fps (Mono8, Mono14, Mono16)
Unfortunately, this one is not working at all with harvesters:
  File "C:\...\venv\lib\site-packages\harvesters\core.py", line 2484, in fetch_buffer     raise TimeoutException _gentl.TimeoutException
I think it is because that camera has noch bool if it is acquiring? (Acquisition with Matlab working stable)
I will try to call Stephan know...

@kazunarikudo Update for you: Stephan is currently on vacation. But his collegue will call me back to discuss the problem.
(For your personal interest: Stephan K. is now Stephan R., he recently married) ;)

Closing. Please feel free to reopen this ticket if there's a bug.


Add gray border to coming soon email input when unfocused

I have read the CLA Document and I hereby sign the CLA


CSS Styling ?

Hello,
Is it possible to change the various colors programatically or via css classes ?

Sure, you can overwrite the css if you like.

If you need this feature, I can make background as a property.

Hi,
Feel free to add as much customizable possibilities to this package if you want it to be used.
I ended up making my own content-placeholder based on this one; to be able to

externalize css outside of the component to be able to use my sass variables for colors
making prop: "row" optional by adding a default "rows" array within the component,

Thx for your advice, but I am quite busy now. I would be very appreciate if you can have a PR!


stm32-wpan: Pin dep to work around regression

Working around https://github.com/OueslatiGhaith/stm32wb-hci/issues/8


Adding test for helper function

@therewasaguy can you please! review this. I also tried to add the test for the _checkFileFormats but I am not able to debug it. Is there any way to put the breakpoint in test or console.log?

@therewasaguy can you please review this, I just wanted to know if I am on right track or not. sorry! to disturb you.

I also tried to add the test for the _checkFileFormats but I am not able to debug it. Is there any way to put the breakpoint in test or console.log?

Great question!
When running the tests (by opening http://localhost:8000/test in one or multiple browsers to ensure compatibility across browsers) you should be able to use console.log statements.
And you can also set breakpoints in each browser. For example, here's how to set a breakpoint in Chrome. After opening the JS console, I like to use the shortcut command-shift-p to search for the name of the file where I want to set the breakpoint. Even though the code runs on the compiled lib/p5.sound.js file, we can set breakpoints on files from the /src directory thanks to the p5.sound.js.map file that maps back to the source files.

@therewasaguy thankyou! started amending after your suggestion.

@therewasaguy I searched throughout the codebase and didn't find a solution other than the check-file format. If you want I can remove it from the test.
can you please merge this I think it is ready?

thank you @iRohitSingh !

@therewasaguy thank you. This week I will be inactive because I am creating a GSOC proposal for this project.


Error at /auth/callback CookieNotFound [Error]: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: xxxxxxxxx.myshopify.com

Error at /auth/callback CookieNotFound [Error]: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: xxxxxxxxxxxx.myshopify.com


[Feature request] Custom arrow component prop

Hello, Dmitriy. Thanks for nice components!
Currently we're not using icon font with material-ui but only <SvgIcons />, so calendar is now looks broken for our app. It would be nice to have option to provide icon component instead of just name of icon for icon font based <Icon />. I would like to work on PR for this if you find this worth to merge.

@RusinovAnton You can pass directly a component like its doing in a custom example here


Fix bug in map_fusion transformation

Four-lines bugfix and associated test case for map_fusion transformation.
Without this change, the test would fail in SDFG validation with error:
dace.sdfg.validation.InvalidSDFGEdgeError: Memlet data does not match source or destination data nodes) (at state state, edge __s0_n1None_n3IN_T[0] (V:None -> numeric:_inp))

@alexnick83 I can give you some context here. The problem addressed in this PR is different from the problem addressed in #1535. The problem addressed here blocks a delivery on gt4py main branch (for reference https://github.com/GridTools/gt4py/pull/1502), which simplifies the icon4py SDFGs.

Thank you @alexnick83 for reviewing this PR. I have limited the application of this fix to the known valid case, as you suggested.
However, I skipped this line:
if current_data is not None and current_data not in test_data and list(edge.data.subset) == [0]:
because it is always true: the current_data is set at line 463-464.


Address HackerOne report: 1103890 accounts

In order to close a potential security hole, we want to address the findings at: https://hackerone.com/bugs?subject=tts&report_id=1103890.  See also this google doc
This may be a finding just for the UI element, and that our backend does more validation.
Acceptance Criteria

[x] We've confirmed it's a valid finding
[x] Tests exist for any regression
[x] A fix is pushed to prod

Security considerations
This should be a high priority.

this is code-complete. Waiting to push until it's deployable

Fix is live in production

fixed with cloud-gov/cg-uaa-extras#185


Update UPGRADING.md

Completed the upgrade doc.
Preview here: https://github.com/ouranos/mno-enterprise/blob/feature/update-doc/UPGRADING.md
@alexnoox @hedudelgado does that work for you guys?

👍  LGTM 👍


Allow a generator to be set as the default so that sub-generators don't need to be specified.

I commonly use the same generator for stretches of time without the need to switch to another one. An example of this is when scaffolding out an angular application. I'll rapidly cycle through scaffolding and implementing a controller, service, view, directive, etc.
yo is short and sweet, but yo angular:controller gets tedious pretty quickly. Defaulting to the last used generator and allowing this command to be shortened to yo :controller would be a nice improvement. :D
Tab completion #222 could reduce the typing required even further, allowing for yo :cont[tab], if it extends the list to sub-generators.

FYI duplicate of https://github.com/yeoman/generator/issues/14
It's not in our priority ATM, but we won't overlook a PR.


Remove createJSModules override annotation

createJSModules has been removed since RN 0.47. Removal of the @Override annotation allows running the code on RN 0.47 and older versions.

thx.


support for multiple volume group within a given node

Describe the problem/challenge you have
[A description of the current limitation/problem/challenge that you are experiencing.]
Do we have any plans to support multiple volume groups within a storage class? As of now, I see there is volgroup parameter is being used by controller that one specifies in the storage class. But I think there is no way to specify multiple volume groups exists in a node to provision the logical volumes. It may be required if one is using multiple disks within a node of same type. Rather than creating single vg group across all disks of same type which introduces single point of failure with degradation of one disk affecting all lvs (lvm stripping), we would like to use multiple vgs.
Describe the solution you'd like
[A clear and concise description of what you want to happen.]
Instead of understanding a single parameter volgroup, we can add an ability to specify a volume group name regex to use for provisioning the logical volume. In the node agent side, we can first list all vgs available on the node matching the regex & capacity requirement and then choose some vg (based on say with some configurable bin packing algo) to provision the lv. One simple bin-packing algo could be to choose vg having smallest size available to fit the required lv size.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

LVM Driver version
Kubernetes version (use kubectl version):
Kubernetes installer & version:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):

need to understand one thing here, we don't need to create single vg group across all the disks. Why can't we create multiple vg groups and create storageclasses for each vg group and use them?

@pawanpraka1 disks are fluid in nature i.e they can added or removed as per the capacity requirement of the cluster. Creating separate storage classes for each disks will require users to update their manifest/pvcs. Note here we are talking about disks of exactly same type (e.g ssd with same hardware spec).

ok, so user will create vg groups using the same kind of disks with name having some common patterns. And now we need to create on single storageclass with the vg group pattern and later we will decide which vg group to pick among all the matching vg group. He can label the nodes where these vg group is present and use the topology contraints in the storageclass. This sounds good, good to have this feature.


[stable/elasticsearch-exporter] Add ability to use existing secrets for SSL certs

Adds the option to import existing secrets and to reference their paths in the deployment command
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @desaintmartin

Thanks!
/ok-to-test

Thanks as well for fixing the README!
/lgtm


Revert "[iree][global] Add conv2d op to demote to bf16 pass (#17410)"

This reverts commit f2fcbbf1987807685dd3bbbed5a64200907fd36d.
This reversion is needed to reduce the run time of non-winograd convolutions.

I think we don't want to completely revert the change. Instead, we should add flags to control the behavior.

It looks like we're not going to need this change in this form.  Will close PR for now.  Team can take up later how to make enabling/disabling bf16 demotion per op more general.

@hanhanW Added here: https://github.com/iree-org/iree/pull/17515


remote: track listeners on browser side

Fixes #3229

The atom::WeakMap is an RAII class used by C++ classes, if you want to expose it to JavaScript you should add an binding to it instead of making it a Wrappable directly.

@zcbenz have made the changes.

Using WeakMap is going to conflict with ES6's WeakMap, I still prefer to use IDWeakMap, which also matches the C++ class's name.

Can you reimplement IDWeakMap::Add with IDWeakMap::Set? Their code is basically the same.

@zcbenz have addressed them, thanks!

Thanks.


Feature/update fr translation

Feature/update fr translation

Thx @Weyland2093 - updates will go into next release


License file in repository

Awesome project, and amazing work. I was wondering if you could push a license file into your repository? I'd love to use this project as a base for a project, but I need an explicit license to do so.

Awesome, thank you!


[AIRFLOW-4575] Operators using BigQueryHook need to provide location field

Hello,
Here is an ticket related to GCP on Jira:
https://issues.apache.org/jira/browse/AIRFLOW-4575
Lots of love

Duplicate of #140


Add ColorAxis component

Adds ColorAxis which can be referenced from series with colorAxisId.
Closes #230
Usage:
<ColorAxis id="myColorAxis" min={0} max={30}>
  <ColumnSeries .../>
</ColorAxis>
<ColumnSeries colorAxisId="myColorAxis" .../>

Potential problem: it seems that Highcharts always uses coloraxis in series even if it is not set to use it. I think it uses the first coloraxis created (index 0), but I haven't tested.
PR does not have tests yet.
This component goes by without using useDelayOnce. I think we should change useChart, useAxis and useSeries also. The useDelayOnce is kind of brittle and I fear it might break completely when React concurrent mode lands.
@whawker what do you think?

Codecov Report

Merging #249 into master will decrease coverage by 3.17%.
The diff coverage is 37.5%.

@@            Coverage Diff             @@
##           master     #249      +/-   ##
==========================================
- Coverage   90.55%   87.38%   -3.18%
==========================================
  Files          70       74       +4
  Lines         889      943      +54
  Branches      168      181      +13
==========================================
+ Hits          805      824      +19
- Misses         71       99      +28
- Partials       13       20       +7

Impacted Files
Coverage Δ

packages/react-jsx-highcharts/test/test-utils.js
84.21% <ø> (ø)
:arrow_up:

packages/react-jsx-highcharts/src/index.js
100% <ø> (ø)
:arrow_up:

...ts/src/components/BaseChart/createProvidedChart.js
42.85% <ø> (ø)
:arrow_up:

...ighcharts/src/components/ColorAxisContext/index.js
100% <100%> (ø)

...rc/components/ColorAxis/createProvidedColorAxis.js
25% <25%> (ø)

...act-jsx-highcharts/src/components/Series/Series.js
95.45% <80%> (-1.38%)
:arrow_down:

...sx-highcharts/src/components/UseColorAxis/index.js
84.61% <84.61%> (ø)

...x-highcharts/src/components/ColorAxis/ColorAxis.js
9.37% <9.37%> (ø)

... and 2 more

Continue to review full report at Codecov.

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

Althout whilst React is becoming concurrent, Highcharts certainly isn't, and things need to be executed is a specific order, (series added only after axis is created etc) so I suspect it may cause issues once removed?

Element that references axis before Axis element will break:
<Series axisId="myaxis" />
<XAxis id="myaxis" />

But I see no reason to why it could not always be written in different order:
<XAxis id="myaxis" />
<Series axisId="myaxis" />

Currently the useDelayOnce depends on axis create effect to have been ran. In the future the effect might actually run after the delay has passed.
Anyway we can bring the useDelayOnce easily back, if needed.

@whawker do you think this can now be merged or do we need more tests?

Looks good to me! Merging!


Utf8: Some optimizations of usage of Spans

@KrzysztofCwalina

Our ultimate plan is to teach the GC about interior pointers from Span and stop using the Object field in the span indexer. Do you believe this change will still be net positive when the GC work happens?

Our ultimate plan is to teach the GC about interior pointers from Span and stop using the Object field in the span indexer.

You mean an interior pointer will replace  Object and Offset fields?

Do you believe this change will still be net positive when the GC work happens?

The change is mainly trying to save on the range check and the calculation each indexer access requires. So yes, I think   the change can shave off a few cycles. At least, until JIT support comes.

I hope we will end up with Span with 2 fields: UIntPtr and length:int. The GC will update the pointer when it moves the array that the pointer points to (if it points to an array not to native memory).
I also hope we will teach the optimizers to do range check elimination on spans.
In general, the goal is for span to be equivalent to array in terms of the indexer performance.
Having said that, we will probably not do this change in previous versions of our runtimes. And also, we might not have all of these optimizations initially, even in the new versions of the runtimes. And so, I am totally fine with this commit. I just wanted to decide if we should file a tracking issue to revert some of these when the optimizations are in place.

I hope we will end up with Span with 2 fields: UIntPtr and length:int.

That' great news :+1:

@dotnet-bot test this please


GOPATH not set error

Got this error after installing this plugin with package control:
  File "/Users/some_user/Library/Application Support/Sublime Text 3/Installed Packages/Gofmt.sublime-package/gofmt.py", line 257, in run_formatter
    formatter = Formatter(view)
  File "/Users/some_user/Library/Application Support/Sublime Text 3/Installed Packages/Gofmt.sublime-package/gofmt.py", line 166, in __init__
    self.cmds = [Command(cmd, self.view, self.window) for cmd in cmds]
  File "/Users/some_user/Library/Application Support/Sublime Text 3/Installed Packages/Gofmt.sublime-package/gofmt.py", line 166, in <listcomp>
    self.cmds = [Command(cmd, self.view, self.window) for cmd in cmds]
  File "/Users/some_user/Library/Application Support/Sublime Text 3/Installed Packages/Gofmt.sublime-package/gofmt.py", line 77, in __init__
    self.window)
  File "/Users/some_user/Library/Application Support/Sublime Text 3/Packages/golangconfig/all/golangconfig.py", line 227, in subprocess_info
    raise exception
golangconfig.EnvVarError: The following environment variable is currently unset: GOPATH

The ENV variable is set if I open up a terminal, but I'm guessing this is looking some where else for that variable...

did anyone find a solution for this,even though everything is set properly this is quite annoying.

Has anyone found the solution? I have them properly set under go env and also tried making a json user setting but nothing
{
	"env":
	{
		"GOPATH": "/home/r3v/go",
	}
}

I could only get this to work by going to the Golang Config package settings and manually setting my PATH and GOPATH there.
golang.sublime-settings
{
    "PATH": "/Users/username/go/bin",
    "GOPATH": "/Users/username/go"
}

https://github.com/golang/sublime-config/blob/master/docs/user.md#global-sublime-text-settings

What's weird is that I did not need to manually set the PATH, GOPATH, nor GOROOT to get SublimeLinter-golint working. Not exactly sure why that is the case.

from the author:

I use golangconfig to run the go binaries. It supports overriding the PATH it uses, and has examples in the user documentation. As its intent is to normalize configuration across Golang packages for Sublime, I’d rather not deviate from its established way of doing things. Could you take a look at the docs and see if that gets things working?

https://github.com/noonat/sublime-gofmt/issues/5#issuecomment-335198104

I got the same problem when use sublime text 4 and install package https://packagecontrol.io/packages/Gofmt on MacOS
Use command which go in your terminal to get the GOPATH.
Set them in golang.sublime-settings
{
    "PATH": "/usr/local/bin/go/bin",
    "GOPATH": "/usr/local/bin/go"
}

It's done.

I can confirm that the same issue exists on Ubuntu 22.04 as well, and the fix works there too. By default, the golang.sublime-settings file will be located under ~/.config/sublime-text/Packages/User

I got the same problem when use sublime text 4 and install package https://packagecontrol.io/packages/Gofmt on MacOS
Use command which go in your terminal to get the GOPATH. Set them in golang.sublime-settings
{
    "PATH": "/usr/local/bin/go/bin",
    "GOPATH": "/usr/local/bin/go"
}

It's done.

Duuuuude, thank you a lot <3 you save my life

When SublimeText4 running the mac os you can edit file eg:
/Users/[user name]/Library/Application Support/Sublime Text/Packages/User/golang.sublime-settings
{
    "PATH": "/Users/[user name]/go/bin",
    "GOPATH": "/Users/[user name]/go"
}


fix: Made the Subscribe text small and added some left padding for better visual #1307

Title and Issue number

Title : Made the Subscribe text small and added some left padding for better visual
Issue No. : #1307
Code Stack : HTML, CSS, JS
Close #1307

Description
The "Subscribe" text for the Subscribe button has been made small and some padding is added ensuring the text fits better within the layout and enhances readability.
Video/Screenshots (mandatory)
Previous Look:

Updated Look:

Type of PR

[X] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Checklist:

[X] I have performed a self-review of my code.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have gone through the  contributing.md file before contributing

Additional context:

##Are you contributing under any Open-source programme?

[X] I am contributing under GSSOC'24
[ ] I am contributing under VSOC'24

@apu52 I have changed the PR form according to the template.


Add basic tests for the server

Pulled Travis out since it was failing to connect to the remote debugging port. I intend on switching this to use Chrome Launcher in an upcoming PR so that might fix it.