Make IoC/DI friendlier

This PR is very much a proposal for discussion rather than a fait accompli, so is presented more in a "does the job" fashion.
This week I plugged Scientist into an ASP.NET Core application for use with running an experiment on part of the code, and as such would have liked to register my IResultPublisher for use via dependency injection so it is only activated when needed and my implementation can be activated the same way for its dependencies. However, due to the shared static Scientist.ResultPublisher property, this isn't really possible to do in a nice way.
In the end I settled on setting up IResultPublisher in IoC  as a singleton where the factory method to create the service set the resolved implementation as the value of Scientist.ResultPublisher before it returned, and then made the code where I wanted to run the experiment have an unused IResultPublisher constructor parameter to force the IoC container to set it up so it was created on-demand.
This PR introduces a new Professor class which is instance-based, rather than static, and provides the same functionality as the Scientist class. The name of the class is arbitrary and I just picked something "sciency" that didn't need the existing Scientist class to be changed and be a breaking change.
Professor accepts an IResultPublisher as a constructor parameter, allowing the running of the experiment to be decoupled from ownership and activation of the publisher itself, so it can be managed by an IoC container, for example. It also moves the concurrent tasks to a property to reduce the number of methods present on the class, but the overloads could always be restored for parity.
Below are some example snippets of code from an ASP.NET Core 2.1 application leveraging Professor to run experiments using DI for requests to a controller that are published to another HTTP service.
// Startup.cs
public void ConfigureServices(IServiceCollection services)
{
    // Other IoC registration...
    // Register HttpClient and configure for use with our results publisher
    services.AddHttpClient<IResultPublisher, HttpResultsPublisher>((p) => p.BaseAddress = new Uri("https://collector.local/"));
    // Create a new Scientist for each need of it (could also be a Singleton or Scoped)
    services.AddTransient<IScientist, Scientist>();
}

// HttpResultsPublisher.cs
public class HttpResultsPublisher : IResultPublisher
{
    private readonly HttpClient _httpClient;

    public HttpResultsPublisher(HttpClient httpClient)
    {
        _httpClient = httpClient;
    }

    public async Task Publish<T, TClean>(Result<T, TClean> result)
    {
        // POST JSON-serialized result to an external HTTP data-collection service
        using (var response = await _httpClient.PostAsJsonAsync("experiment", result))
        {
            response.EnsureSuccessStatusCode();
        }
    }
}

// MeaningOfLifeController.cs
[Route("meaning-of-life")]
public class MeaningOfLifeController : Controller
{
    private readonly IScientist _scientist;

    public MeaningOfLifeController(IScientist scientist)
    {
        _scientist = scientist;
    }

    [HttpGet]
    public IActionResult Get()
    {
        int result = _scientist.Experiment<int>("Meaning of Life", (experiment) =>
        {
            experiment.Use(() => 42);
            experiment.Try(() => 37);
        });

        return Json(new { value = result });
    }
}

I've also changed InMemoryResultPublisher to be backed by instance fields so that each instance has its own results. This was mainly to make it easier to duplicate the tests for Scientist for Professor without the state clashing. This change could be reverted, but would require some rework in the tests for Professor to use a different default results implementation so it doesn't affect the Scientist tests.

I took a very brief look at this and overall I think it's a good change and I can see it being useful. (I'm hoping to circle back in a few hours and take a deeper look but we'll see how my day goes.)
My only comment right now is about Professor - it looks like a complete, but non static, copy of Scientist. I hate having that duplication because it will make maintenance a pain, and potentially adds confusion for any devs trying to use it. Can we somehow get away with a single implementation of Scientist to achieve both functionalities? Perhaps a non static class with a static Instance property?

Yeah that's definitely an approach we could take, and yeah it pretty much is a copy. For now, I did that as a way of not making a breaking change to the interface and make the diff a bit cleaner for conceptual review.
Bumping the version to 2.0.0 for SemVer would allow the changes to be an effective refactor of Scientist instead and remove the duplication if that's a workable option.

I like where this is heading. Here's a thought that I don't think would require breaking changes. The way the Scientist class is written today is to allow developers to use it quickly with almost zero configuration and remove it easily when they're done with configuration. Hence the static implementation.
However, for developers who plan to always have experiments running and have invested in existing DI and IoC, I definitely see the benefit of making the library more friendly to those approaches.
So here's a proposal:

Make the Scientist class non-static. But keep the existing static methods.
Add a new IScientist interface and make the Scientist class implement it. (We'll have to tweak the names on the interface to not conflict with the existing static methods)
The static methods should all defer to a lazily instantiated static instance of Scientist.

This way, existing users code will continue to just work. But users who want to use DI/IoC will register and import an IScientist instance and completely ignore the whole static side of things.
We could consider deprecating all the static methods later if we wanted to.

Would this be just a "hacky" internal method that allows the static to change the implementation at runtime and nothing else, or would we change it to only support setting before first use and change to throw an exception after that (which would be a breaking behavioural change)?

Yeah, I think this is right.
Note that under my proposal, if you set up IoC in a project as your means to using Scientist, but you accidentally call a static method, you might be operating on two different instances of Scientist. So it's important that you stick with one approach or another.
That's probably fine for now.

I’ll update this PR with a first cut of the proposed updates tomorrow.

The AppVeyor CI appears to be ignoring the custom build script and is just trying to run vanilla MSBuild on the solution file instead. I've tried to fix it, but I'm a bit baffled as to what's going on...

I'm not sure how the diff on this pull request is showing the previous version of the appveyor file to have weirs things like double hyphens but if you look at the original file compared to what you've got, you should be able to restore the yml formatting
https://github.com/github/Scientist.net/blob/master/appveyor.yml

@ryangribble I've reset the YAML file, but while the build appears to be green, if you look at it it doesn't actually build anything. It's as if AppVeyor is completely ignoring the existence of the file.

It looks like it's ignoring the build_scripts commands, as changing to the VS 2017 image has taken an effect, and now it fails because dotnet restore hasn't been run when it tries to do the default build.

hmm ok, i was going to say perhaps in the appveyor settings the "ignore appveyor.yml" option is enabled (only @Haacked would be able to confirm that) however if that change is having an effect I guess that wouldn't be it

I think maybe that the build setting was somehow making build_script be ignored. Seems to be fixed now. Looks like the packages are just going into the wrong folder so not being published now.

@Haacked Have done an initial pass at changing Scientist as per your suggestion. Just adding some specific unit tests for the instance-based implementation now.

Must remember to update README once the final changes are ironed-out...

Results from benchmarking a static method against using the equivalent instance method:

BenchmarkDotNet=v0.10.14, OS=Windows 10.0.17134
Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=2.1.300-rc1-008673
  [Host]     : .NET Core 2.0.7 (CoreCLR 4.6.26328.01, CoreFX 4.6.26403.03), 64bit RyuJIT
  DefaultJob : .NET Core 2.0.7 (CoreCLR 4.6.26328.01, CoreFX 4.6.26403.03), 64bit RyuJIT

Method
Mean
Error
StdDev
Scaled
ScaledSD
Gen 0
Gen 1
Allocated

Static
8.196 us
0.1626 us
0.2483 us
1.00
0.00
0.7782
0.1984
4.74 KB

Instance
8.213 us
0.1560 us
0.1916 us
1.00
0.04
0.7782
0.2747
4.74 KB

When can we expect to see this PR merged? Been toying with it locally, and works well.
Thanks for taking this on.

I'm just waiting on further review since I refactored after the initial comments.

Excellent! I need some time to review it. I’ll try and get to it soon.

Assuming no further code feedback, I think the last things to do are:

Update README.
Bump the version to 2.0.0.
Fix whatever has changed that means AppVeyor isn't publishing the nupkg.

Awesome changes - I'm excited to see improved integration with DI!

I tried to update the SDK to 2.1.300, but it turned out the Fake build didn't work the way I expected and those parameters were redundant, so I've removed those. However, that means the SourceLink support I added in e15e847028882fd95529f80ecffc749e34a07a2a won't light up until the newer SDK is used.

I can't remember if I have this set up to automatically publish to NuGet on merge to master. I really hope I do because I'm lazy. :smile:
Thanks for the contribution @martincostello!

Looks like AppVeyor moved the 🧀 since the last changes to Scientist @Haacked, so the NuGet packages aren't being hoovered up in the build for publishing.

sigh I need to spend some time looking into this.

@Haacked I appreciate you've got plenty on, just curious on some rough timelines for 2.0.0 being released to NuGet with the deferred publisher and these changes?

@martincostello I just published a 2.0.0-beta to NuGet (it's still validating right now). Please try it out and if it works for you, I'll publish a stable version of the package.
Thanks!

@Haacked Awesome! I’ll give it a spin on Monday.

Great! It's available now if anyone else wants to give it a spin.

I pull it later this weekend, and mess around with it.

@Haacked I've pulled the 2.0.0-beta package into my app and it works nicely 😎

Thanks for the confirmation @martincostello! I published a stable version of 2.0.0 today. https://haacked.com/archive/2018/06/05/scientist-2-point-oh/

Awesome - thanks for your help @Haacked!

@martincostello do you happen to remember why you needed to subclass Scientist instead of just doing static Scientist CreateSharedInstance() => new Scientist(ResultPublisher);?
(I think I can get a necromancer badge now 😄)

I don't remember, but the comment on the class says "This class acts as a proxy to allow the static methods to set the state on an instance of Scientist."

I do see that, but based on #129, it would seem that things work even without the sub class

I didn't want changes to the global shared stuff to affect other instances as having global shared state (especially when you're trying to add in DI to make everything nice and isolated and testable), so that was mainly there to provide a measure of backwards compatibility to people using the old static way of doing things without affecting instances created the new way.


How to share connection between mobile and web app ?

Hi,
I need to share Google authentication between a mobile app and a web site.
I could sign in with react-native-google-signin. But it returns many tokens and I can't understand which one I should send to our backend server (one that should be unique).
From the doc we have these informations :
{
  idToken: string,
  accessToken: string | null,
  accessTokenExpirationDate: number | null, // DEPRECATED, on iOS it's a time interval since now in seconds, on Android it's always null
  serverAuthCode: string,
  scopes: Array<string>, // on iOS this is empty array if no additional scopes are defined
  user: {
    email: string,
    id: string,
    givenName: string,
    familyName: string,
    photo: string, // url
    name: string // full name
  }
}

I tried with accessToken and idToken but they change if I run my app on different devices and connect with the same Google account, so they are not unique.
Any idea ?
Thanks in advance

hi! thanks for the post. This bug tracker is reserved for bugs only, I recommend you ask your question on stackoverflow. Thanks.


WIP: fixing dumps to accept non-serializable data.

Closes #185

I think the title of the PR is a bit misleading since SymPy symbols are serializable using parse_expr, e.g.
from sympy.abc import x
assert parse_expr(repr(x ** 2 + 1)) == x ** 2 + 1


count: format toLocaleString

Applied for Count & BucketAggregation
closes #169

Merging for now until https://github.com/inveniosoftware/react-searchkit/issues/61 is addressed!

Merging for now until https://github.com/inveniosoftware/react-searchkit/issues/61 is addressed!


We get "stderr: Ports refresh request not sent!" even when the request is sent successfully

In server.js, procHandler.requestPortsRefresh() never returns true, even in case of success.
info:Yarp command successfully started...
[OPEN-MCT STATIC SERVER] stderr: Ports refresh request not sent!

process.send(...) returns a boolean, set to true if the message was sent successfully, and false otherwise. So OpenMctServerHandlerChildProc.prototype.requestPortsRefresh() just needs to return that value.

Also fixed UnhandledPromiseRejectionWarning error due to unhandled Promise rejection in https://github.com/ami-iit/yarp-openmct/blob/79574337223349713dfa51b94da633fb5da9f010/iCubTelemVizServer/configHandler.js#L64-L71
(node:71178) UnhandledPromiseRejectionWarning: Error: spawn yarp ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:467:16)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:71178) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:71178) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[OPEN-MCT STATIC SERVER] stderr: Debugger listening on ws://<IP_ADDRESS>:56478/41eb7164-2760-4838-b41a-b09fcb1d0dfd
For help, see: https://nodejs.org/en/docs/inspector

=> Added a catch block for handling the yarp name list failure (for instance if we have a mismatch in the Yarp dependency version).
=> Handled the case where no match is found when looking for regexp port names in https://github.com/ami-iit/yarp-openmct/blob/79574337223349713dfa51b94da633fb5da9f010/iCubTelemVizServer/configHandler.js#L82-L95

Now, when such failure occurs, we get the error shown below, Yarp Text Logging visualiisation is not available, and the rest of the visualiser features work properly.
Failed running Yarp port names retrieval: Error: spawn yarp ENOENT./n
        returning empty array of ports
Yarp port name regexp @{^\/log\/.*\[YarpJS_WholeBodyDynamics\].*$} does not match any existing ports
Yarp port name regexp @{\[walkingModule\]} does not match any existing ports


ReferenceError: getContent_ is not definedafter exporting library on GAS

Hi I'm thinking using your Library to fetch content and perform selector queries from URLs. However, after importing library as instruction I'm still unable to use getContent_

Hi @jerrytohvan . Please try this code instead of getContent_.
const r = UrlFetchURL("https://example.com")
const $ = Cheerio.load(r.getContentText())

Thanks!


Could profile photos / logos appear alongside Contributor names?

Overview
Could profile photos / logos appear alongside contributor names in the facility contributor list?
Is your feature request related to a problem? Please describe.
Currently, Contributors of facility information are currently just listed as hyperlinked text entries (clicking through to their Contributor profile) on the facility information page. It would be more visually engaging for the user if Contributor logos / photos appeared alongside their entries on facility information pages.
Describe the solution you'd like
You can see the original designs for this on the Envision site built for the tool: https://projects.invisionapp.com/share/2RFG3XLB6XP#/screens
And also in this screenshot of the Envision site: https://drive.google.com/open?id=1SbSJffWgcp6VEqbifX1RPj7zSIpFUNQ4
Is it possible to build this?
Additional Context
N/A

The application does not currently store any uploaded media (CSV/XLSX facility lists are not stored as-is, but parsed and stored as individual rows at upload time)
To implement this we would need to configure Django media uploads, likely via django-storages and the S3 backend which we have used successfully on other projects.
We would also need to give superusers a way to remove abusive content.

This makes sense, thank you. Tagging @nataliegrillon for info. This may be something we want to consider further down the line.

Closing as no longer considered necessary.


Move empty sources handling to execution engine

Convert SkipEmptySourceFilesTaskExecuter to execution step.

This has been done for a long time now, see SkipEmptyWorkStep.

This is actually done.


broadcastEvent is not in protocol.pdf (but is in protocol.rst)

The documentation for broadcastEvent is in src/reference/interactive/protocol/protocol.rst, but doesn't seem to be in src/reference/interactive/protocol/protocol.pdf.
Update:  It seems like it's changes 1.4.1 and 1.4.2 that aren't showing up in the pdf.
1.4.2 (2018-02-13)
Added world update and change methods.
1.4.1 (2017-10-20)
Added and documented global throtting.
Added the ability to fire one-off events to clients via ``broadcastEvent``.

resolved today


Tabset resize sensor

Pull Request Test Coverage Report for Build 1881

46 of 102 (45.1%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.9%) to 74.897%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/Tabset/index.js
3
4
75.0%

src/libs/debounce/index.js
1
4
25.0%

src/libs/ResizeSensor/index.js
42
94
44.68%

Totals

Change from base Build 1877:
-1.9%

Covered Lines:
1796

Relevant Lines:
2284

💛  - Coveralls


PropertyFieldFilePicker - add a delete button to the selected file

Q
A

Bug fix?
[ ]

New feature?
[ X ]

New sample?
[ ]

Related issues?
#376

What's in this Pull Request?
A delete button is added to the selected file for the PropertyFieldFilePicker.
Screenshot:

@jjkim11 Thank you very much for this improvement!


about 0.15 state.player.listen("field", (value))

Schema's onChange behaviour change](https://docs.colyseus.io/migrating/0.15/?h=onadd#schema-callbacks-api-slightly-changed)
// 0.15 (new)
state.player.onChange(() =>{
    console.log("player changed!");
});
state.player.listen("field", (value) => {
    console.log(value);
})

I can't find the listen method in c#. How can I use it?

using Colyseus.Schema;
public partial class Player : Schema
{
[Type(0, "number")]
public float x = default(float);
[Type(1, "number")]
public float y = default(float);

}

Hi @yty, the schema-codegen tool is responsible for generating the listeners per property on C#

@endel
thank you, I understand.
Suggest adding it to Example by default.
0.15.5 \ Example \ Scripts \ Scheme \ MyRoomState.cs
0.15.5 \ Example \ Scripts \ Scheme \ Player.cs


Is this project dead

It seems like this project hasn't been updated in a while on the main repo. But there is a another branch maintained by "smiling-Jack" written in JQueryUI that seems to be update to date. Are there plans to revive this project? Will it remain a "Dart" project?
I'm looking for a windowing system for an upcoming project and this looks perfect even with its shortcomings.

Did you find a good alternative in the end? I had a look at smiling-Jack's repos but couldn't find a fork of Dock Spawn.

https://github.com/node-projects/dock-spawn-ts


feat(DAI withdrawals): call increaseAllowance before calling initiate_withdraw

This change is

:tada: This PR is included in version 1.5.0-dev.14 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


PDF doesn't get embedded

Describe the bug
upon export, the pages which have pdfs embedded in the markdown don't get the pdf embedded. also, the pdf files are not getting copied. (just like how images and pasted images do)
Operating System
Linux
To Reproduce
Steps to reproduce the behavior:

copy a pdf to vault directory
create a note with that pdf embedded in it
export
serve the files, and see that the pdf is not embedded, not only that there's an empty embedded pdf skeleton of obsidian.

Screenshots
obsidian note and the HTML webpage

IMPORTANT: Error Log
https://pastebin.com/JkZ9KBWz

This is a duplicate of issue #95 so I will close this.
I will likely revert the pdf viewer to the default one instead of obsidian's custom viewer because their custom viewer uses a lot of custom code that I cannot use.
Thanks for the report!


Feature: Group stacks by its agent

⚠⚠⚠ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/dockge/blob/master/CONTRIBUTING.md
Tick the checkbox if you understand [x]:

[x] I have read and understand the pull request rules.

Description
I think that it would be nice when you have quite a few stacks defined across multiple agents (including the current), to have them grouped by it's agent.
In case that there aren't more agents configured, the UI will reamin exactly the same
Type of change
Please delete any options that are not relevant.

User interface (UI)
New feature (non-breaking change which adds functionality)

Checklist

[x] My code follows the style guidelines of this project
[x] I ran ESLint and other linters for modified files
[x] I have performed a self-review of my own code and tested it
[x] I have commented my code, particularly in hard-to-understand areas
(including JSDoc for methods)
[x] My changes generate no new warnings
[ ] My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)

I would also like to see a feature like this for Dockge, tags would also be very nice to be able to filter by


Keyboard hides text field on seed import screen

Can't tap the textfield to paste the seed when it's hidden.
Also, it might be better to disable third-party keyboards for entering the seed

3rd party keyboards aren’t supported currently.
Best,
Zack
On Jun 27, 2018 at 4:26 PM, LukasND<EMAIL_ADDRESS>wrote:
Can't tap the textfield to paste the seed when it's hidden.
Also, it might be better to disable third-party keyboards for entering the
seed
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nano-wallet-company/nano-wallet-ios/issues/18, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA12S-Vootkquvd0LM8-RfvXg07VMeHaks5uA-pxgaJpZM4U6VUU
.

Duplicate of #10


Add a command-line build script for MSBuild

Fix for https://github.com/lovettchris/SgmlReader/issues/16
This also updates the README.md with instructions for using this as an alternative to dotnet build.

looks great, thanks!


Have Navbar button control menuAction methods?

On a given scene, how can the menuAction methods be utilized from one of the bar buttons on the top nav bar?
Naturally, I am setting up the navbar buttons in the previous (from where I intend on using the react-native-side-menu).  For example, I include the "onRightButtonPress()" function as a parameter when using "this.props.navigator.push()' function in the previous scene.

@albertwchang For simple and small project you can keep passing the ref to menuActions to your child components. I wouldn't recommend of doing this for mid or larger project. You should use flux, reflux or any system that decouple these actions. if you nee more help I can provide you a simple example.
p.s. I've been using refluxjs heavily in one big project contains 30 scenes and lots of animations. It's worth investing to those kind of frameworks.

@alinz
how did you pass menuactions? the only way i see passing it right now is through menu, but there must be a way to also pass it to the child of sidemenu.

Sorry for long delay, @kevtastic, I've been busy with stuff. :D
So SideMenu component injects menuActions object automatically to all its own direct children. Here's the code for that.
From that moment you can keep passing menuActions down to child's children components using the following code.
render () {
    var props = this.props;
    return (
        <MyAwesomeChild menuActions={props.menuActions}/>
    );
}

Or using es7 spread feature like this:
render () {
    var props = this.props;
    return (
        <MyAwesomeChild {...props}/>
    );
}

I might be wrong but based on my experience, I don't like to pass these actions down to hierarchy of children. I usually use flux, reflux architectures for doing these type of systems. But again it's your choice! :P Remember, we are still finding a lot of good patterns for writing apps using React.

oh awesome! I actually moved the event I was worried about to flux in the mean time but this is super helpful regardless!

Actually I have one more issue if you have the time. I'm actually trying to pass menuactions into the firstroute.

@kevtastic Not sure I got your second question about passing menuActions into initial route, but if I got it correct, you need to use this.props.menuActions in the first-level children. Like if you have
class SomeComponent extends Component

as a content-view /menu-view, and something inside it should use menuActions, you can just access them via this.props.menuActions but it works only for first-level children. I'll try to move it to context ASAP, mb @alinz would be also interested in that.


Add NATS client as option for publishing container logs

Describe the proposed changes
Adds documentation of feature for enabling the Docker Engine to be able to use a NATS transport for emitting the log entries under a customizable subject via -log-driver nats logging driver.
Project version
Based on the vnext-engine branch
Related issue or PR in another project
Related to proposed feature at: https://github.com/docker/docker/pull/27841
Signed-off-by: Waldemar Quevedo<EMAIL_ADDRESS>

Thanks for your contribution!


May I ask if there is a plan to develop  C++ API?

I am trying to use this model to predict the IMU constant bias in SLAM. The program is developed using C++, so I have this request。

@JiangWeiHn Thanks for your interest in the project.
At the moment I am not planning to add a C++ APi.

thanks for reply


Added the ILogger to enable resolution of named ILogger from DI

Enables resolving an ILogger with the name of a given type (T) directly from DI, without having to use ILoggerFactory.
Corresponding change in Hosting to add it as a default service is at https://github.com/aspnet/Hosting/pull/147

:shipit:

Blocked by https://github.com/aspnet/XRE/issues/1144

Merged in b92e0190f6c36c97c37f3612b77ed5c41cb9b8b1


43 too much anonymizing

┆Issue is synchronized with this Asana task by Unito

Verified the script in standalone manner and also as part of the workflow in GKE, works as expected. 👍
If the --no-anonymize is not passed, it works as before.
Below is the output of the Gemini run that shows the names remain the same as given:
{
     "gemini_version": "1.7.3",
     "result": {
         "write_ops": 57687,
         "write_errors": 0,
         "read_ops": 1277,
         "read_errors": 0
     },
     "schema": {
         "keyspace": {
             "name": "testkeyspace",
             "replication": {
                 "class": "SimpleStrategy",
                 "replication_factor": "1"
             },
             "oracle_replication": {
                 "class": "SimpleStrategy",
                 "replication_factor": "1"
             }
         },
         "tables": [
             {
                 "name": "testtable",
                 "partition_keys": [
                     {
                         "name": "key",
                         "type": "text"
                     }
                 ],
                 "clustering_keys": [],
                 "columns": [
                     {
                         "name": "value",
                         "type": "text"
                     }
                 ],
                 "known_issues": null
             }
         ]
     }
 }


Different requests for files

Is it possible to make request for each file? If i set useArray to false then Droplet make one request only for one of the files (not support multiple files) and all.
I think this feature very important and useful

useArray will still send only one request with all of the files, but it's the name it gives to the file property as I noticed a discrepency with the way different frameworks handle multiple files. Some frameworks require the [] notation for the files property, whereas other frameworks/libraries don't.
Do you want to make individual requests per each file? I can look into implementing that, as currently it's not supported.

Yes, I'm looking for individual requests per each file. It will be great if you will make this feature.

You can do something like that:
scope.uploadFiles = function uploadFiles() {
                    // Reset...
                    $scope.isError = false;

                    var httpRequest   = new $window.XMLHttpRequest(),
                        formData      = new $window.FormData(),
                        queuedFiles   = $scope.filterFiles($scope.FILE_TYPES.VALID),
                        fileProperty  = $scope.options.useArray ? 'file[]' : 'file',
                        requestLength = $scope.getRequestLength(queuedFiles),
                        deferred      = $q.defer();

$angular.forEach(queuedFiles, function forEach(model) {
.....
)};

@kovalevskyartur I've created a pull request to do that, I hope help you. Here https://github.com/Wildhoney/ngDroplet/pull/53/


Ingestor

First Draft of  https://github.com/kiegroup/akrivis/issues/6

This is the PR for the React Frontend https://github.com/kiegroup/backstage-plugins/pull/3


samples: hci_usb: disable CDC-ACM for nrf52840dongle

Hi, bumped into this while trying the usb hci sample on the nrf52840dongle, seems like Linux really wants it to be interface 0 (and the code claim it's in the spec) so the sample is broken there since CDC-ACM has been enabled in the board config. Tried to swap the linking order but then the CDC-ACM interface stops working.

Bluetooth devices are apparently expected to show up as interface 0, Linux btusb driver ignores them otherwise (or need special configuration).
This is a problem for boards with USB_CDC_ACM enabled by default, such as nrf52840dongle_nrf52840, as interfaces are configured in linking order and currently cdc_acm comes first.
Swapping the order of interface causes the opposite problem though (CDC-ACM does not show up), so fix this for nrf52840dongle by forcing the CDC-ACM option to be off when building for it.
Link: https://elixir.bootlin.com/linux/v6.2.8/source/drivers/bluetooth/btusb.c#L3845

I thought the cmake files for the board were created in such a way that USB CDC would be disabled if hci was enabled

In general, overlays require strong justification. Having one line of overlays for all boards like nrf52840dongle is not acceptable to me. These types of boards force logging via CDC ACM, I have pointed out this problem many times. We can solve this problem when snippets supports Kconfig files.

Well, you probably want this combination of board-sample to work out of the box, so I guess the other way is to go for board config, Jamie sent https://github.com/zephyrproject-rtos/zephyr/pull/56417 which does that. Closing in favor of that.

Some references: #54014 https://marc.info/?t=167577124200001&r=1&w=2

Very interesting, thanks for sharing.

I thought the cmake files for the board were created in such a way that USB CDC would be disabled if hci was enabled

Don't see anything special in there...


Honda : 2023 Pilot Car Port

Checklist

[ ] added entry to CarInfo in selfdrive/car/*/values.py and ran selfdrive/car/docs.py to generate new docs
[X] test route added to routes.py
[x] route with openpilot: f9c43864cf057d05|2024-01-15--23-01-20
[X] route with stock system: f9c43864cf057d05|2024-01-13--14-08-31
[X] Harness : Bosch C

First port for a new CAN-FD Honda
DBC Notes:
Using accord DBC, these messages are missing. Will have to check if they are on different ID's now
229 BOSCH_SUPPLEMENTAL_1
232 BRAKE_HOLD
316 GAS_PEDAL
490 VEHICLE_DYNAMICS
545 XXX_16
597 ROUGH_WHEEL_SPEED
892 CRUISE_PARAMS
927 RADAR_HUD
1029 DOOR_STATUS
13274 LKAS_HUD_A
13275 LKAS_HUD_B

0x33D, LKAS_HUD, on this platform is 8 bytes, not 5 like previous Bosch vehicles

First Honda that doesn't require the OBD port! 🎉

We've moved the car interfacing code to our opendbc repository, which is now the new home for car ports and fingerprints. Please re-open your pull request against opendbc at your convenience by using this command below. This will transform all changes under selfdrive/car/ to opendbc_repo/opendbc/car/. Make sure you have initialized submodules beforehand and have checked out the latest opendbc commit.
PR_NUMBER=33045
curl -L https://github.com/commaai/openpilot/pull/$PR_NUMBER.patch | sed -e 's/selfdrive\/car/opendbc_repo\/opendbc\/car/g' | git apply -v --reject

Simply replace the PR number with your own. Once done, add the files, fix any conflicts, and open a new PR. Alternatively, you may start a new PR from scratch if that is easier for you.


"Different callback_url" bug fix

Removing the code and other paramters it works.

Closing for now as this fix is a little too ambiguous. Would you mind providing more information as well as specs, should this still be problematic?
Issue Template


Tail example not work

Hi! I check tail example and it is not working for me.
I got:
PHP Warning:  Illegal offset type in /var/www/vendor/react/filesystem/src/ChildProcess/Adapter.php on line 198
PHP Warning:  Illegal offset type in /var/www/vendor/react/filesystem/src/ChildProcess/Adapter.php on line 198
PHP Warning:  Illegal offset type in /var/www/vendor/react/filesystem/src/ChildProcess/Adapter.php on line 198
PHP Warning:  Illegal offset type in /var/www/vendor/react/filesystem/src/ChildProcess/Adapter.php on line 198

After checking Adapter, i got nothing in $this->fileDescriptors[$fileDescriptor] in method read.
Inside loop addPeriodicTimer $adapter has
  #fileDescriptors: []

With eio i got this:
PHP Warning:  eio_read(): invalid file descriptor passed in /var/www/vendor/react/filesystem/src/Eio/Adapter.php on line 410

With eio i got this:
PHP Warning:  eio_read(): invalid file descriptor passed in /var/www/vendor/react/filesystem/src/Eio/Adapter.php on line 410


Error ocurred while processing the data

Hi, and thanks for share your work, in advance.
Recently installed the app my mobile. After enter the server URL
/ (with the "/v1/" suffix) and the API key, I switch to the main screen and tap to refresh.
After that, some posts are charged, but throw me the error referenced in the subject, followed for other message.
Error occurred while processing the data
"Error while communicating with the miniflux server."
I tried to create a new API key, but still throwing errors.

Hi Enrique,
thanks for your feedback.
Do you have some experience with the adb logcat to provide some debug information?
This information should help to solve the problem.
If you don't have experience, no problem, i will provide an update with a solution to export some debug logs.
I will inform you if i have released the update.
Regards,
Kevin

Not to much experience with adb logcat, but if you could send me the instructions, I try to retrieve some logs.

I've published a new release with debug options to the play store.
I think it will be verified within the next 1-2 days.
With this release there is a debug option in the settings and a option to export the collected logs.
So lets wait for this new release and use these logs to dig into the real problem.
If you have installed the new version you can enable the debug option and reproduce the error.
After this, don't close the app, go to the settings screen again and export the collected logs.
Try to attach the .zip file to this issue and i will investigate the logs to find the problem.

The update is published now.
Could you please enable the debug option and try to reproduce the errors.
After this please export the logs (there is a button within the settings) and attach the .zip to this issue.
I will investigate the logs.
Could you also provide your miniflux server version?
Regards,
Kevin

Thank you for your patience. This is the log exported through the debugger
The Miniflux server version is...

Miniflux

    Version: 2.0.46
    Git Commit 4a4c309d
    Build Date: 2023-07-22T01:10:56+0000
    Postgres version: 15.3 (Debian 15.3-1.pgdg120+1)
    Go version: go1.20.6

And the log ....
{FluxNews}  {readConfigValues}  {Starting read config values}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {initializeDB}  {Starting initializeDB}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {initializeDB}  {Finished initializeDB}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {readConfigValues}  {Finished read config values}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {initializeDB}  {Starting initializeDB}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {initializeDB}  {Finished initializeDB}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {readConfig}  {Starting read config}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {readConfig}  {Finished read config}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {queryNewsFromDB}  {Starting querying news from DB}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {updateNewsStatusInDB}  {Starting updating starred counter}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {renewAllNewsCount}  {Starting renewing all news count}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {queryNewsFromDB}  {Finished querying news from DB}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {updateNewsStatusInDB}  {Finished updating starred counter}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {renewAllNewsCount}  {Finished renewing all news count}  {26 July 2023 09:35:48 PM}  {INFO}
{FluxNews}  {syncNews}  {Start syncing with miniflux server.}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {checkMinifluxCredentials}  {Starting checking miniflux credentials}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {checkMinifluxCredentials}  {Miniflux Version: 2.0.46}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {checkMinifluxCredentials}  {Finished checking miniflux credentials}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {toggleNewsAsRead}  {Starting toggle news as read at miniflux server}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {toggleNewsAsRead}  {Finished toggle news as read at miniflux server}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {fetchNews}  {Starting fetching news from miniflux server}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {fetchNews}  {100 news fetched}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {fetchNews}  {373 news remaining}  {26 July 2023 09:35:52 PM}  {INFO}
{FluxNews}  {fetchNews}  {100 news fetched}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchNews}  {373 news remaining}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchNews}  {100 news fetched}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchNews}  {373 news remaining}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchNews}  {100 news fetched}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchNews}  {373 news remaining}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchNews}  {73 news fetched}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchNews}  {400 news remaining}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchNews}  {Finished fetching news from miniflux server}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {markNotFetchedNewsAsRead}  {Starting marking not fetched news as read}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {markNotFetchedNewsAsRead}  {Finished marking not fetched news as read}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Starting inserting news in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 14012 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 14013 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13741 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13742 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13743 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13744 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13745 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13746 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13747 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13748 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13749 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13750 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13751 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13752 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13753 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13754 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13755 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13756 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13757 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13758 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 13987 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {insertNewsInDB}  {Updated news with id 14228 in DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {getFeedIcon}  {Starting getting feed icon from miniflux server}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {getFeedIcon}  {Got unexpected response from miniflux server: 404 for feed 92}  {26 July 2023 09:35:53 PM}  {ERROR}
{FluxNews}  {insertNewsInDB}  {Caught an error in insertNewsInDB function! , Error: Unexpected response}  {26 July 2023 09:35:53 PM}  {ERROR}
{FluxNews}  {queryNewsFromDB}  {Starting querying news from DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {renewAllNewsCount}  {Starting renewing all news count}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {queryNewsFromDB}  {Finished querying news from DB}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {renewAllNewsCount}  {Finished renewing all news count}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchCategorieInformation}  {Starting fetching categorie information from miniflux server}  {26 July 2023 09:35:53 PM}  {INFO}
{FluxNews}  {fetchCategorieInformation}  {Got unexpected response from miniflux server: 404 while fetching feeds icons for feed 77}  {26 July 2023 09:35:54 PM}  {ERROR}
{FluxNews}  {fetchCategorieInformation}  {Caught an error in fetchCategorieInformation function! , Error: Unexpected response}  {26 July 2023 09:35:54 PM}  {ERROR}
{FluxNews}  {insertCategoriesInDB}  {Starting inserting categories in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {insertCategoriesInDB}  {Caught an error in insertCategoriesInDB function! , Error: type 'Null' is not a subtype of type 'String'}  {26 July 2023 09:35:54 PM}  {ERROR}
{FluxNews}  {fetchStarredNews}  {Starting fetching starred news from miniflux server}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {fetchStarredNews}  {12 news fetched}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {fetchStarredNews}  {0 news remaining}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {fetchStarredNews}  {Finished fetching starred news from miniflux server}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Starting updating starred news in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 3236 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 1013 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 323 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 1649 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 3176 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 3905 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 3462 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 3995 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 4819 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 6400 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 7236 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Marked news with id 7845 as bookmarked in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateStarredNewsInDB}  {Finished updating starred news in DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {cleanUnstarredNews}  {Starting cleaning unstarred news}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {cleanUnstarredNews}  {Finished cleaning unstarred news}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {cleanStarredNews}  {Starting cleaning starred news}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {cleanStarredNews}  {Finished cleaning starred news}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateNewsStatusInDB}  {Starting updating starred counter}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {queryCategoriesFromDB}  {Starting querying categories from DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {syncNews}  {Finished syncing with miniflux server.}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {updateNewsStatusInDB}  {Finished updating starred counter}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {renewAllNewsCount}  {Starting renewing all news count}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {queryCategoriesFromDB}  {Finished querying categories from DB}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {renewAllNewsCount}  {Finished renewing all news count}  {26 July 2023 09:35:54 PM}  {INFO}
{FluxNews}  {readConfigValues}  {Starting read config values}  {26 July 2023 09:36:02 PM}  {INFO}
{FluxNews}  {readConfigValues}  {Finished read config values}  {26 July 2023 09:36:02 PM}  {INFO}
{FluxNews}  {readConfig}  {Starting read config}  {26 July 2023 09:36:02 PM}  {INFO}
{FluxNews}  {readConfig}  {Finished read config}  {26 July 2023 09:36:02 PM}  {INFO}
{FluxNews}  {initializeDB}  {Starting initializeDB}  {26 July 2023 09:36:02 PM}  {INFO}
{FluxNews}  {initializeDB}  {Finished initializeDB}  {26 July 2023 09:36:02 PM}  {INFO}

Thank you for the logs.
The problem was the handling of no feed icon available.
I've published a new release at the play store which fix the handling.
Could you please confirm, that the new update (when published) fix the issue?

El 21 de julio de 2023 21:45:25 CEST, Kevin Fechtel @.***> escribió:

Hi Enrique,
thanks for your feedback.
Do you have some experience with the adb logcat to provide some debug information?
This information should help to solve the problem.
If you don't have experience, no problem, i will provide an update with a solution to export some debug logs.
I will inform you if i have released the update.
Regards,
Kevin

It's Ok, now working.
Thank you.


Fixed typo

@Laskewitz,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@jeffhollan Please review these proposed changes. Thanks.

@jeffhollan Please review these proposed changes. Thanks.

Thanks @Laskewitz - #sign-off


Address comments on issue 59

Address comments on pull #59

@jdkaplan Included you as Co-authored-by!


Creating a project summary explanations

explaining what this project is about, what it aims and offers to the people who heard this project for the first time

https://github.com/bounswe/bounswe2022group8/wiki/Art-Community-Platform


Fixes #938 in PySyft. Includes Exp function for IntTensor CPU

Description
Adds the Exponent functionality to int tensors
Fixes # (issue) 938 in PySyft
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[x] Added tests for an existing feature

How Has This Been Tested?
I added tests in  IntTensorTest.cs

            inputData = { -1, 1,
                         3, 34};

            expectedData = { 0, 2,
                    20,<PHONE_NUMBER>};

Checklist:

[ ] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

I am not sure how to handle integer overflow.
So, in such a condition, I am returning the maximum value of an integer.
I can alternatively throw an overflow exception

Fixes https://github.com/OpenMined/PySyft/issues/938
PySyft PR : https://github.com/OpenMined/PySyft/pull/1320

Great job on this one!


Add Arturo programming language

Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md.
[x] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[x] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288, size <= 75 kB)
[x] Content (and my changes are in index.md)

It is one of the languages currently under active development on GitHub, thus it perfectly fits the category's description

Curating a new topic or collection

[ ] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME] or https://github.com/collections/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md
[] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

It would be a nice addition

Something that does not neatly fit into the binary options above

[ ] My suggested edits are not about an existing topic or collection, or at least not a single one
[ ] My suggested edits are not about curating a new topic or collection, or at least not a single one
[x] My suggested edits conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please replace this line with an explanation of your proposed changes.

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Hi @drkameleon, thanks for the contribution ❤. Unfortunately, as per our contribution guidelines, we don't allow self promotion if you are a maintainer of the project:

Maintainers of a project cannot add a topic or collection for their own project. If a topic is popular enough to warrant inclusion, someone else will add or improve it.

We do this so that we can maintain a high level of independence in this project, and projects will be curated organically if there is enough support/activity in the community. Thank you!

Oki


Don't use network connections when test is running 100% local

There is a possibility that the repeated HTTP gets are triggering a DoS rule that randomly (or unknowingly) drops the packets. If the DHT has local support this would bypass the issue and also make most tests faster

Might also want to use static WAN IPs for tests so there isn't an external call


[BUG] Settings page: Wrong navigation behavior

Describe the bug
Tabs do not switch correctly when navigating through them in Settings page. Have to keep on clicking the destination tab until it opens.
To Reproduce
Steps to reproduce the behavior:

Go to 'Settings'
Click on different tabs at the bottom
See error

Screenshots
https://user-images.githubusercontent.com/113890947/192091671-6e1be398-6786-4bbb-a919-3860d50b6c58.mp4
Device
Fritter: beta 3.0.0
Android 11, OxygenOS <IP_ADDRESS>
OnePlus 6

It's already fixed in the latest version (v3.0.0-beta4).

It's already fixed in the latest version (v3.0.0-beta4).

When will this be available in playstore for update?

The bug is still in the current version [04e7a85c5285ebc3820c9715fc3f0c4bfe95543b] though. I guess it's the same issue as #471. I already made a pull request to fix it.

Thank you!
On Sat, Sep 24, 2022, 6:32 PM johann-gambol @.***>
wrote:

The bug is still in the current version [04e7a85
https://github.com/jonjomckay/fritter/commit/04e7a85c5285ebc3820c9715fc3f0c4bfe95543b]
though. I guess it's the same issue as #471
https://github.com/jonjomckay/fritter/issues/471. I already made a pull
request to fix it.
—
Reply to this email directly, view it on GitHub
https://github.com/jonjomckay/fritter/issues/523#issuecomment-1256963694,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3E5NAYCI7CGCSGR62HNUCDV733XNANCNFSM6AAAAAAQUSMHQE
.
You are receiving this because you authored the thread.Message ID:
@.***>

It will be available in the Play Store's beta programme as soon as it passes the review - I'm not sure when that will be though.
Closing this for now, as it is fixed.

It will be available in the Play Store's beta programme as soon as it passes the review - I'm not sure when that will be though.
Closing this for now, as it is fixed.

Is this beta version available now?


Squid Serializer Fix

The squid serializer error from squidAPI is resolved with the inclusion of a secondary mkdir for the SQUID_USERS_DATA_FOLDER_NAME folder in the event storeState is referenced prior to SquidPersistentState.
See my branch for the content of the change, I can also throw up a pull request with the change if we determine it will not negatively affect anything.

waiting further insights - this issue relates to squidInk on the server.

all is well.


Phenomenal - thank you - but I can't seem to get EA 24 players - only "popular" or "latest" is there an option

First of all, thank you very much for posting this excellent project.
I used it a lot in Fifa 23 and I see that it kind of works for EA FC24 as I can get popular players.  However, when I search for 83 rated players, it just gives me Fifa23 instead.  Is there an option that I can't see or is it just linked in to Fifa23 players?
Thanks again.

I had the same issue looks like FIFA23 is hardcoded and needs to be changed here to 24
https://github.com/matheusfm/futbin/blob/main/players/client.go#L31C21-L31C76


⚠ Bofrost.de has degraded performance

In b647cf7, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1732 ms

Resolved: Bofrost.de performance has improved in 900779e after 6 minutes.


$.pjax doesn't work, but $.pjax.submit does

I have been attempting to get PJAX to work on my site for awhile now. It succeeded for awhile last night, but suddenly it no longer wishes to work properly. Even when I adjust the timeout, 2 requests still occur, with the latter not containing the appropriate X-PJAX information and causing a full page reload.
This is what I'm using to call PJAX:
$(function(){
	$(document).pjax('a.pjax', '#test', { fragment: ('#test'), timeout: 10000 });
});

On the other hand, the form portion works perfectly fine, and I haven't had any issues yet today.
I am at a loss of what to do right now; I'm going insane!

^ I'm finding this as well. It'll work one day then the next it's broken, it seems fickle.

Sorry that all of you have troubles with pjax. The behavior of pjax varies pretty wildly with what sort of response it gets from the server. For example, the original poster defined the fragment: "#test" option which means that the element with ID "test" will be extracted as pjax content from the server response. If that element doesn't exist, however, the page will be force-reloaded.
So when you're reporting a pjax bug, please include the full code of how you set up pjax on your site (like the original poster), what was the behavior that you expected, what is the exact behavior that you got, and the raw HTML response from the server for the pjax request. Thanks!


Implement Feature to Fetch and Store News Data in SQLite Database

Summary
Here is the RapidAPI we will use to get news data: https://rapidapi.com/rphrp1985/api/newsnow/
We need to develop a feature that automatically fetches news articles on ANY Topic Speficied with a specific focus on interpretability in machine learning, and stores them in our SQLite database. This feature should capture comprehensive details about the articles, including titles, images, video links, publication dates, short descriptions, full text, and source URLs.
Requirements:

Data to Fetch and Store: For each news article related to AI safety and interpretability in machine learning, the following information should be captured:

Title: The title of the article.

Top Image: URL to the main image of the article.

Videos: Any related video content URLs.

URL: The direct link to the news article.

Date: The publication date of the article.

Short Description: A brief summary of the article.

Text: The full text of the article.

Source: The name of the publication or source website.

Database Schema: The SQLite database should have a table named ai_safety_news specifically designed to store the fetched news data. The schema should include columns for each of the data points listed above.
Update Frequency: The feature should be capable of fetching new articles hourly.
Error Handling: Implement robust error handling to manage issues such as API rate limits, data parsing errors, and database insertion failures.
Documentation: Provide detailed documentation on how to configure any necessary API keys or credentials and instructions on how the news fetching feature operates.

Acceptance Criteria

The system successfully fetches and stores news articles based on user input and interpretability in machine learning in the news table in the SQLite database.
The feature updates the database with new articles as they are published.
Radial Button for News Analysis: One can search for news, the news are displayed as a table
Error handling is in place to ensure the system's stability and reliability.
Comprehensive documentation is provided for configuring and using the feature.

@espin086
How much historical data we should fetch from the news API, same duration as we have for stock data?


Enable ak.singletons

To implement an axis, maybe use :, :, :, np.newaxis (if nonnegative) or ..., np.newaxis, :, :, : (if negative) and then drop_none?
As for whether singletons should include Nones, I think it shouldn't, because otherwise it would be completely identical to the above slide (and it wouldn't be doing what singletons was invented to do: to switch between a token-based and a 0/1-length list-based representation of missing data).


White flash when using dark design on LiveWire errors

when using dark theme the error message is (sometimes) loaded in light/white first and then gets repainted.
That causes a "flash" of the screen

that is still happening when the error message is loaded via an iframe, eg. on livewire errors.

Hi @hebbet, can you try pulling in the latest version of laravel-ignition (running composer update should be enough)? We've moved the darkmode script to the head part of the page so it should load slightly faster.

yes, but it is still flashing.

Hi @hebbet, finally got around to further investigating this issue. As of yesterday (spatie/ignition 1.2.9) it should've been fixed. Thanks for your patience and reporting this issue :)


start documenting ntac tactics

just ntac/standard so far

need to rebase with master. will open a new pr.


Add more GCC flags to CI builds

Within the last few weeks we've repeatedly had compilation warnings in the LLVM backend compiled with the master branch. The warnings could have been caught earlier by running Effekt with the --debug flag.
To enforce this, the CI now runs with --debug by default (in addition to --valgrind) and --debug adds the additional -Werror flag -- thus failing the CI if the compilation produces warnings.

Using these --debug flags on my machine result in the following now errors
In file included from /User/../../llvm/main.c:14:
/User/../../llvm/bytearray.c:84:5: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
   84 |     sprintf(str, "%" PRId64, n);
      |     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:274:1: note: 'sprintf' has been explicitly marked deprecated here
  274 | __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
      | ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
  218 |         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
      |                                                       ^
In file included from /User/../../llvm/main.c:14:
/User/../../llvm/bytearray.c:115:5: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
  115 |     sprintf(str, "%" PRIu8, n);
      |     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:274:1: note: 'sprintf' has been explicitly marked deprecated here
  274 | __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
      | ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
  218 |         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
      |                                                       ^
In file included from /User/../../llvm/main.c:14:
/User/../../llvm/bytearray.c:122:5: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
  122 |     sprintf(str, "%g", x);
      |     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:274:1: note: 'sprintf' has been explicitly marked deprecated here
  274 | __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
      | ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
  218 |         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
      |                                                       ^


height get changed after selection

height changed after value selection.
attached the screen shot bellow.
before selection

after selection

@cargoAppPOC same here, have you find any solution?

@kanaydo thank you so much


Introduce ruby-odata in OData community

Hi, I'm a member in OData team from Microsoft. Just found your project of a OData library. Currently, we are working hard improve OData adoption and we think that your project is very cool. So here are some thing we need your help if this is still an active project and we can also help propagate your work.

We want to add your project on http://www.odata.org/libraries
We want that you can have a blog post introducing your project and maybe some links of documents.
We can help add your project information on http://www.odata.org home page. We have done this for several individual projects and help them increase their downloads number.

In general, in order to improve OData adoption, we want developers know there are many options to use OData. If you have concerns or questions, please feel free to comment back or email me directly<EMAIL_ADDRESS>

I'm very open to this, I'd like to round out some features before pushing it out there too much. My company has been going through some transitions recently, and I'm hoping to return to more active development soon. Once I'm comfortable with the feature support I'm very interested in promoting the project more broadly.

Sure, please let us know when you think it's the right time to publicize it. The way you can contact OData team :

www.odata.org/contribution
Join the mailing list
Email directly to OData feedback at<EMAIL_ADDRESS>

Hi, I just tried to add the library to my project. But I'm not able to use Basic authentication. Attached you find my code snippet:
conn = OData::Service.open('https://apipreview.service.com/odata', {    name: 'ODataDemo',    typhoeus: { username<EMAIL_ADDRESS>password: 'password', httpauth: :basic }})
I'll get an unauthorized error message when I try to connect. Can you give me feedback, if I specified Basic authentication the right way?


Added Rules for check public endpoints access on keyvault #2067

PR Summary
This closes #2067 by checking if a Keyvault as a deny value into its network ACLs.
It does not check for VNET integration or for a list of IP adresses.
PR Checklist

[ X ] PR has a meaningful title
[ X ] Summarized changes
[ ] Change is not breaking
[ X ] This PR is ready to merge and is not Work in Progress
Rule changes

[ X ] Unit tests created/ updated
[ X ] Rule documentation created/ updated
[ X ] Link to a filed issue
[ X ] Change log has been updated with change under unreleased section

Other code changes

[ ] Unit tests created/ updated
[ ] Link to a filed issue
[ ] Change log has been updated with change under unreleased section

Found a build failure with a missing ruleSet. Just need to add this tag because this determines which quarterly baseline new rules are released in. Which is always the upcoming quarter.

Sorry, I wasn't aware.
The build passed locally though.


The output hash now includes the geometry options

There is probably a lot more work to be done around this, however this has fixed, for me, the gem ignoring the dimensions given in geometry.

Coverage decreased (-2.0%) to 92.21% when pulling 65274ab1ad4792ebeefb75b30df1de2671129d95 on cjeffries:feature/adheres_to_sizes_given_from_assets into 32bf365c9cdef1d1c1a281e6780441c64b1d555f on ruby-av:master.

Coverage decreased (-2.0%) to 92.21% when pulling 65274ab1ad4792ebeefb75b30df1de2671129d95 on cjeffries:feature/adheres_to_sizes_given_from_assets into 32bf365c9cdef1d1c1a281e6780441c64b1d555f on ruby-av:master.

Coverage decreased (-2.0%) to 92.21% when pulling 65274ab1ad4792ebeefb75b30df1de2671129d95 on cjeffries:feature/adheres_to_sizes_given_from_assets into 32bf365c9cdef1d1c1a281e6780441c64b1d555f on ruby-av:master.

Looks good, merging.

I know this was merged a long time ago, but it now ignores the "!#<>" options added to the end of the geometry.
https://github.com/ruby-av/paperclip-av-transcoder/pull/11/files#diff-8eeeac056d37760b2d77d1b76722678fR95


[ADD] Add EDIT button in User Profile section

Add an Edit Button in the User Profile Section
To implement this feature, follow the steps below:

File to Modify:
You need to modify the profile.jsx file located at codebase/frontend/src/pages/profile.jsx.

Add Edit Button:
Implement an "Edit" button within the User Profile section.

Redirect on Click:
Once the user clicks the "Edit" button, they should be redirected to the '/' route on the frontend.

Follow Pull Request Guidelines:
Please refer to the Pull_request_template.md file to create your Pull Request for this change.

I’m interested in working on this issue. Could you Assign me ? if it’s still not added...


introduce python formatter and linter

Just like in the frontend/ , I want to introduce a formatter and linter in the backend/  as well.
ex. ruff, flack8, black

Thank you for the suggestion! That is one of the things We'd like to do but haven't doing yet.
We'd appreciate if you could make PR. black is preferable for the formatter.

Please use --check flag (not overwrite)
https://black.readthedocs.io/en/stable/integrations/github_actions.html


Added java 17 to the main build

Added java 17 to the build and some extra improvements to the build file.
It might be hard to merge it to master later on since our master build files are different from this branch but we can work out on master when needed.

from logs:

Java configuration:
Distribution: zulu
Version: 17.0.0+35
Path: /opt/hostedtoolcache/Java_Zulu_jdk/17.0.0-35/x64

Let's merge this and fix the JDK 17 requirements in another pull request.


What is the fastest way to pipe Animated.Values to the RN-SVG matrix

There are a few different threads in this community on this subject, most notably https://github.com/react-native-community/react-native-svg/issues/556
Our ultimate objective is to pan and zoom within our rn-svg component. We have a fairly okay solution working in our emulators; it's good enough for iOS, not so good for Android.
As I understand it, there are two approaches to solving this problem.

The easiest for me to understand, the one we are using, is to use the native-bridge to pipe the Animated.Value change events to the setNativeProps() method on the ref of the RN-Group. As I understand it, the problem with this solution is that in order to capture the change-event on the Animated.Value, we have to do this within the available CPUs of the javascript VM. So, even though the Animated.Value tweening is done natively, and the transform-matrix is applied natively, the pipe between the two requires JS VM CPUs.

The other solution looks like it involves using Animated.createAnimatedComponent to create a native-wrapper around the component we wish to animate. I'm not sure how I could attach a animated matrix to an Animated RN-SVG-Group. I will discuss that in the second section below

Here's the pseudo-code for our solution which uses the first approach:
  animationValues = {
    scale: 1,
    shiftX: 0,
    shiftY: 0,
  };

   transforms.scale.addListener(({ value }) => {
      this.animationValues.scale = value;
      this.update();
    });
    transforms.shiftX.addListener(({ value }) => {
      this.animationValues.shiftX = value;
      this.update();
    });
    transforms.shiftY.addListener(({ value }) => {
      this.animationValues.shiftY = value;
      this.update();
    });

   function update() {
       // do some math to transpose animationValues scale, shiftX and shiftY
      groupRef.setNativeProps({matrix: [scale, 0, 0, shiftX, shiftY])
    }

<SVG>
  <G ref={ref => groupRef = ref} ... >
  ...
</SVG>

So, here is what we have found with the second approach. It seems to work:
  const scale = new Animated.Value(1);
  const posX = new Animated.Value(0);
  const posY = new Animated.Value(0);

  const AG = Animated.createAnimatedComponent(G);

// This does nothing
<SVG>
  <AG matrix={[scale, 0, 0, scale, posX, posY]}>
  ...
</SVG>

However, this works great
<SVG>
  <AG x={posX} y={posY} scale={scale}>
  ...
</SVG>

Hello,
If you are still facing that problem, please open a new issue and include a simple example.
This will make it easier for us to assist you.
Thank you.


fixed reserved keywords for mariadb.

i stucked with the desc column names while creating the database. fixed as a quick replace

Thx )


[Property] Add loss scale property

It add loss scale property as model common property.
This is a partial PR from #2455.
@jihochu Doing PR per commit for this huge PR (#2455) will acclerate merging.

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2565. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

:octocat: cibot: @myungjoo, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2565-202405031354110.62737798690796-671f338e4898e406bb19f46b135cebbcb58d24cc/.

I think this is already in the #2562.  Please take a look.


Improved visability mode

Improve visibility of overlay, an option increased opacity of background to make text easier to read.

Implemented in commit https://github.com/dapal-003/WFinfo/commit/5f160b9f4c7ff58c4f9c77cac4561ea600ffd866