Not working with dynamically pulled data

Hi, I have been trying to make this work for a while now.
First of all, content is a blog post, and it is a mixed content. So there are a few p blocks, and then pre code blocks. I have manipulated the data and placed hljs directive to the code tag, but it isn't working for me.
    postSingleFactory.getPost($stateParams.url).then((data) => {
      ctrl.post = data.data.post;
      ctrl.post.comments.forEach(el => el.replyVisible = false);
      ctrl.post.content = ctrl.post.content.replace('
', '
');
      ctrl.post.content = ctrl.post.content.replace('', '');
      console.log(ctrl.post.content);
    })

  ctrl.trustThis = (html)=>{
    return $sce.trustAsHtml(html);
  }

and here is how I am using it

As i can see by inspecting my page that the code block contains the two directives, but it isn't working. There are no errors, the css is loading properly too.
Why would this be happening?

According your description, you're actually required to have post.content compiled by AngularJS again for directive (like hljs) to work.
// In your controller, don't forget to inject `$templateCache`
$templateCache.put('postContent-xxx', ctrl.post.content);

Another options is to write a new directive specialized for displaying post.content's HTML code, as well as adding code highlightling with highlight.js.
angular.module('myApp')
.directive('singlePostContent', function (hljsService, $window) {
  return {
    restrict: 'A',
    link: function (scope, iElm, iAttrs) {
      scope.$watch(iAttrs.singlePostContent, function (content) {
        if (content) {
          iElm.html(content);

          // You don't even require angular-highlightjs for this
          var service = $window.hljs || hljsService;
          service.highlightBlock(iElm[0]);
        }
        else {
          iElm.html('');
        }
      });
    }
  };
  };
});

Here's a working demo on Plunker: http://plnkr.co/edit/ZfB4tamhQIOLx0z9WUMH?p=preview

Hi, for some weird reason. the directive highlighted the whole content, even though the part that's not code

Try replacing the highlightBlock call on
 or  elements.
var service = $window.hljs || hljsService;

service.highlightBlock(iElm.find('pre > code')[0]);

// or

service.highlightBlock(iElm.find('pre')[0]);

I've update the plunk with iElm.find('pre')[0], and it seems to work correctly now.
http://plnkr.co/edit/ZfB4tamhQIOLx0z9WUMH?p=preview

@pc035860 Hey, it still doesn't work. There were some issues from my end too. The biggest of all was that I write a post via TinyMCE editor, and when I write code with its inbuilt code tool, it adds an additional class to the pre tag.
I removed that in the following manner:
ctrl.post.content = ctrl.post.content.replace(/
/g, '
')

And then, it just styles the outer block. it isn't highlighting anything. So I inspected the element and found out that no language class has been added to my code tag. So, I manually added javascript, just to test things out, but it still didn't work.
What could be the reason for this?

Can you make a demo of your problem with plunker or something similar?
I can't figure out why it's not working with current available information.

@pc035860 Hey, so I made it worked with a few tweaks, one of them really bizarre to me. First, I stored the post's content in a scope variable and passed that to the directive, like this
ctrl.content = ctrl.post.content;

and then plugged that into the directive:

and it worked. I don't know why. But the issue was that it was only working for the first code block, so I changed it to this:
          let codeBlocks = element.find('code');
          let service = $window.hljs || hljsService;
          for(let key in codeBlocks){
            if(codeBlocks[key]){
              service.highlightBlock(codeBlocks[key]);
            }
          }

And this works, but I get an error in the console
TypeError: e is undefined

Now, i can ignore that, but I really want to keep it clean.


Drag info.json icons (without manifests) into empty slot.

http://zimeon.github.io/iiif-dragndrop/sourcetest.html


[WIP] Tests for market

While writing the tests, the mock http cannot find a responder for these two get requests:
base.HTTP: 2018/08/14 12:07:39 http.go:116: Request failed: Get https://api.kite.trade/instruments/historical/123/interval?continuous=1&from=2018-08-14+12%3A07%3A39&instrument_token=123&interval=interval&to=2018-08-14+12%3A07%3A39: no responder found

And here:
base.HTTP: 2018/08/14 12:07:39 http.go:116: Request failed: Get https://api.kite.trade/instruments/nse: no responder found
--- FAIL: TestAPIMethods (0.01s)
    --- FAIL: TestAPIMethods/TestGetInstrumentsByExchange (0.00s)
        market_test.go:82: Error while fetching MF orders. Request failed.

@vividvilla - Updated


Make search global across all connectors

Migrated from GitLab: https://gitlab.com/meltano/hub/-/issues/119
Originally created by @tayloramurphy on 2021-09-24 14:30:48

Right now, search is different if you're looking at taps vs extractors. It'd be good to have a global search that shows everything, but clearly delineated.

View 1 previous comment from the original issue on GitLab


Transmission-daemon instance associated with WhatManager memory leak after upgrading to Stretch

When I upgraded to stretch, the transmission instance used by WhatManager keeps using up more RAM until it is all used.  The transmission instance I have running that is not associated with WhatManager does not behave like this.

A couple questions:

Did you build transmission-daemon from source when you installed WM (using the included script) or did you use a package manager?

Is your other transmission instance a transmission-daemon instance (as opposed to gtk/qt) from the same source or is it from a different source?

Are both transmission instances the same version?

both transmission instances are the same version, I believe i used the package manger version and they are both transmission daemons, both being 2.92.  This memory leak didn't happen until I upgraded to stretch.  I have the cache size set lower than default but that didn't fix the issue.  This transmission service eats about 1gb of ram an hour until everything gets pushed to the swap.

http://i.imgur.com/tfuLYKq.png
Here is what the usage looks like in ESXi 6.5u1.  I ran a fsck a few days ago and it found errors but it looks like that didn't fix the memory leak.  I'm considering scrapping this VM and making a new one.   The solution can be found here: https://github.com/transmission/transmission/issues/313#issuecomment-332543087


./configure error

When I am running the ./configure error .... i am getting output
Didn't set luajit or lua bin. Or did't exists:/usr/local/openresty/luajit/bin/luajit* at ./configure line 131.
I have installed libluabind and luarocks lua5.1 ... but still am getting this error ...
Any help ?

Hi, you can use the 'setup-framework' script to install vanilla like this: $ ./setup-framework -v $VANILLA_PROJ_ROOT -o $OPENRESTY_ROOT   .


Causal inference support

TBD

In case it might help you: https://github.com/statsmodels/statsmodels/issues/8543#issuecomment-1398474556

Ahhh great, thank you very much!

@timtreis I'll close this because it might be easier for you to open your own PR.
Thank you very much in advance!


Is there a way to ignore properties on objects (join tables)?

Hi,
I am receiving the following error, b/c a join table doesn't have an explicit key, but rather a composite key.

InvalidOperationException: The entity type 'RolePermissionSet' requires a primary key to be defined.

I know I could add an explicit key, and then change my composite key into a unique constraint, but I figured I'd check for other scenarios that I don't really want to be a part of my OData middleware.
Thanks!
Chris

Hi @stodolos,
'RolePermissionSet'  is this database view (stored procedure) that doesn't have a composite key?
OdataToEnityt support table with composition key, test composite key

It's a join/link table that looks like so:
`public class RolePermissionSet
{
public long RoleId { get; set; }
public long PermissionSetId { get; set; }
	public virtual Role Role { get; set; }
	public virtual PermissionSet PermissionSet { get; set; }
}`

Try Many-to-many relationships

I am using that, and do have a key defined in an IEntityTypeConfiguration class:
builder.HasKey(x => new { x.RoleId, x.PermissionSetId });

Why did you close this?  I am doing what you suggested already.  The problem is that in the code, it's explicitly looking for an "Id" column, or a [TableName]Id column.  It's not looking for a column that is the  key (whether it be composite or not).

If you using fluent api, instead BuildEdmModel must use extension method in Ef 6 BuildEdmModelFromEf6Model, in Ef core BuildEdmModelFromEf6Model.
Example in README.md "Build OData Edm Model".


[Coder] Extend textual coders to be based on Promises

Asynchronous Coder is an entrance ticket into the remote world

We migrated the source text, ast computation, addons to promises.


Comment replies (nested / threaded) stop working with this plugin active

For some strange reason, this plugin blocks the comment-reply,js script from loading just by being active. This causes nested the comment reply form to stop working in your theme, no matter what options you have enabled.
I initially laid the blame on Divi, then Yoast, then WP Core, until I disabled this specific plugin and threaded comments started working again.
I don't understand why, since this plugin is only supposed to do stuff when it's told to process the site, but it essentially breaks an active WordPress installation, so I'd advise against using it until this issue is fixed.

Thanks for reporting @aalkz, will look into it.
This plugin is not intended for use on a live WordPress site, rather a development server, ie dev.mysite.com and you then publish to mysite.com the static HTML version of your site.


No Documentation

Extensions in pecl are expected to have an entry in the php manual, please create documentation for these extensions.

:+1:


Miscellaneous fixes

Use either ffip or projectile or defaultdir, whichever is available.
One more   issue in sideline display.
Various comments and doc strings.

@cpbotha merged, but locally to resolve conflicts.  not sure why GitHub didn't notice, so I closed out this PR.


Compatability update for ClustForOpt 0.4.0

Updated structs from ClustForOpt
Somehow the test case with multiple nodes fails on my personal machine. Can you have a look, I do not know why?

The problem is that some values in GER_18 are not met exactly. I'll try to find the reason for that.

Mir scheint, als wäre das wieder das Zuordnungsproblem in ClustForOpt: wird einfach nur PV an einer Stelle und Trassen ausgebaut...

Mir scheint, als wäre das wieder das Zuordnungsproblem in ClustForOpt: wird einfach nur PV an einer Stelle und Trassen ausgebaut...

How did we fix that last time, I though we took care of that by use of arrays?
I am surprised because generally all this commit did was change the naming of best_result to clust_data, I don't see a connection there.

I will rerun the tests as soon as bug is merged in ClustForOpt

@YoungFaithful  the tests on the 18 node system still fail. Any idea why?

I think we may have to wait until the new version is registered...

Nice, it passed after version 0.4.1 of ClustForOpt was registered.


Added Images in KFC Clone #15

Add relevant images from the KFC website in KFC Clone #15

@Rayman-Sodhi  I have added the relevant images plzz check


Update README.md

Also, quick question, what did you base this project layout on? This is very similar to the AlamoFire layout.

Hey, thanks for the addition! I based the project layout partly on AlamoFire, but I modified it due to a bug between CocoaPods interfacing with Jazzy to generate CocoaDocs. AlamoFire had the same bug, so I reported it there, and I think they modified their layout in the same way I did to avoid the bug.

Excelled, and thanks for the tip. I am considering to remodel the CocoaPods default template https://github.com/CocoaPods/pod-template off of AlamoFire and wanted to see if anyone else is doing it that way.
I am trying to reproduce your project layout, but I have trouble selecting the correct simulator: https://travis-ci.org/fulldecent/FDChessboardView/jobs/126552343
Please let me know if you have seen that problem before.

Hey, sorry for being MIA for a few days. I noticed your Travis build is working now. Do you still need help with that?

I never figured it out, but I did my build to work like AlamoFire if only targeting iOS 9.3. There is interest in the pod-template project to move towards to project layout we are using. In the future MANY more people may be setting up their projects like us!

That's awesome! At first I really wanted to use the default pod lib create template for ForecastIO, but it was surprisingly incompatible with CocoaDocs. Let me know if you need help with documentation or any coding. I'll keep an eye on that repo and see if I can contribute.
I took a quick glance at your project, and I believe part of the issue is that your deployment target is set to iOS 9.3, but your tests are compiling to older versions. Try setting your deployment target to iOS 8.0. For your iOS 9.3 test, you have an error with @testable import FDChessboardView. That might be a build dependency issue?

Awesome, thanks for all the help. I will get in touch with you after CocoaPods 1.0 final is released and we get most of the progress on the AlamoFire style template.
Me too, I always start with pod lib create and then bang my head on the wall relearning everything each time!

Hello, I pull everything I have into a pull request. If you would like to check it out or if you would like to get involved, please see https://github.com/CocoaPods/pod-template/pull/168 Thanks!

Hello @sxg there is a lot of progress in CocoaPods/pod-template#168 If you have some time could you please take a look and advise how we can improve this? If we get this right, MANY projects will start using this template because it is the default for CocoaPods.


Docs Update: improve readme, quickstart & LLaMA showcase link

Simple docs improvements:

readme add quickstart link at top
readme contributing add bounties and test link
added link to official LLaMA link in showcase

All PRs must either fix bugs, improve speed (>20%), refactor on a conceptual level (big line reduction), or add tested functionality.


Possible to stub with sinon.js?

Hello,
I'm trying to stub request-promise using sinon, however could not find a way yet on how to do that.
Back when i was using request itself, it looked something like this:
before(function (done) {
        sinon.stub(request, 'get').yields(null, { statusCode: 200 }, fs.readFileSync(__dirname + '/data/' + filename));
        done();
    });

    after(function (done) {
        request.get.restore();
        done();
    });
}

Any suggestions on how to do this with promise-request?
Feel free to close this issue if it doesn't fit in here.

Hi @florianschmidt1994 , I assume you need a way to create Sinon stubs that return a promise.  I didn't use them myself though.

https://www.npmjs.com/package/sinon-as-promised
https://www.npmjs.com/package/sinon-stub-promise

When you don't want to use an add-on but Sinon in its original form you may "return a promise":
var request = require('request-promise');
var BPromise = require('bluebird');

sinon.stub(request, 'get').returns(BPromise.resolve(fs.readFileSync(__dirname + '/data/' + filename)));

request.get()
    .then(function (responseFromFile) {
        // ...
    });

(Found this neat trick here.)
I hope this helps. It would be great if you let me know what you end up using.

I'll look into into these two packages and post an update when the problem is solved. Thanks!

I solved this issue by mocking the request-promise function and using Bluebird to create the fake response promise.
var Bluebird = require('bluebird');
var sinon = require('sinon');
// ...
it('should mock up a request-promise POST call', function() {
    var rpStub = sinon.stub(rp, 'post'); // mock rp.post() calls

    // calls to rp.post() return a promise that will resolve to an object
    rpStub.returns(Bluebird.resolve({
        fakedResponse: 'will return exactly this'
    }));
});

I am unable to figure out how to mock the entire request-promise module, however. :(
It would be awesome if someone could figure it out - I think the only way to make it happen would be to stub out the actual required dependency, but I would rather not do that.

We found a solution for our problem by mocking the whole request-promise module using mockery
before(function (done) {

    var filename = "fileForResponse"
    mockery.enable({
        warnOnReplace: false,
        warnOnUnregistered: false,
        useCleanCache: true
    });

    mockery.registerMock('request-promise', function () {
        var response = fs.readFileSync(__dirname + '/data/' + filename, 'utf8');
        return bluebird.resolve(response.trim());
    });

    done();
});

after(function (done) {
    mockery.disable();
    mockery.deregisterAll();
    done();
});

describe('custom test case', function() {
    //  Test some function/module/... which uses request-promise
    //  and it will always receive the predefined "fileForResponse" as a data, e.g.
    //  var request = require('request-promise')
    //  request().then(function(data){
    //  ➞ data is what is in fileForResponse
    //  })
});

I just added a summary of our discussion as a new section in the README. Thanks for your contributions @MarkHerhold and @florianschmidt1994 !

For future reference, if you don't to stick to sinon rather than switching to mockery, can use: sinon.stub(rp, 'get') and change your own modules usage from rp({...}) to rp.get({..}
Also applies to rp.post etc.

Definitely prefer the @MarkHerhold and @Typhlosaurus solution.  Bringing in mockery just to stub out a few responses feels like massive overkill.

@MarkHerhold @oshalygin @analog-nico could we have a section on how to do this with proxyquire? Example code would be nice! This really is a pain for me.

I may be late to the party but it is also worth pointing out that you do not need to change your modules as @Typhlosaurus helpfully pointed out.
You can just stub purely using Sinon as follows:
let getStub = sandbox.stub(rp, 'Request'); getStub.resolves(res);
That way you can just keep your http request calls in your modules as follows:
rq(options) .then((res) => {      ..... })
The above approach works perfectly fine for me.
I'm not sure if rq.Request has always been exposed from the rp module but I'd bargain it's always been there.

FYI in case anyone else has this issue, I managed to mock HTTP requests with Nock (https://github.com/node-nock/nock) instead of stubbing rp. This is not ideal because my unit tests will depend on the internal mechanics of rp, but at least I am able to unit test locally. I wasn't able to get @HystericBerry's solution (or any other solution from https://github.com/request/request-promise/issues/55 or https://github.com/request/request-promise/issues/61) to work - rp kept trying to send out requests despite all my stub attempts. Glad I tried Nock before digging deeper into why Sinon isn't able to stub Request-Promise.
I would love if someone could explain why Sinon can't stub Request-Promise! The Request-Promise README (https://github.com/request/request-promise#mocking-request-promise) says we need "a library that ties into the module loader and makes sure that your mock is returned whenever the tested code is calling require('request-promise')", which apparently Sinon does not do. Why does Sinon work for stubbing other modules but not RP?

Also learned: In addition to stubbing HTTP requests with Nock, we can also spy on HTTP requests with the isDone() method on Nock expectations: https://github.com/node-nock/nock#isdone

@kaiyuanneo when you say

my unit tests will depend on the internal mechanics of rp

Ok, but what exactly are you doing? Do you know this for sure and can you give examples? And by "internals" what exactly do you mean? It doesn't help RP to say something doesn't work without giving exact details. Are there any code snippets that help us replicate? If what you say is true, then I'm interested in how you are using RP. How are you using RP to rely on the "internals" of RP?

I would love if someone could explain why Sinon can't stub Request-Promise!

It can. Scroll down to 4.

The Request-Promise README (https://github.com/request/request-promise#mocking-request-promise) says we need "a library that ties into the module loader [...]

Not necessarily. That's a solution to a very specific problem. The lack of mock and stub documentation in RP is not an indication that it cannot be done well. Unfortunately, whoever wrote that section of the document made it sound definitive - which is out of date. As a matter of fact, that very example literally came from this thread; therefore, it is not the core RP devs themselves giving a definitive answer that RP is unstub/unmock/able. Rather, that documented code snippet should be seen as a suggestion. Scroll up to see @florianschmidt1994 who suggested that exact solution you referenced.

Here's an example of Request Promise (Native or non Native) and Sinon playing nicely:
https://github.com/HystericBerry/RPNativeSinonSample
I probably should have given a more in depth answer in my first comment. The reason why this simplistic approach works is because the require function caches the module. This means that Sinon is actually stubbing the cached RP module in your test and that your tests are stepping through your code using that same cached module. If you don't clear your "require" cache or don't require in a local scope, then the basic, clean implementation works. (Basically, don't do anything funky).
Summarized code below:
// inside foo.js
const rp = require('request-promise-native'); // rely on *require* to cache your module

const options = { }; // setup your options
rp(options)
.then((res) => {
    // no-op
}, console.error);

// inside fooTest.js
const rp = require('request-promise-native'); // rely on *require* to cache your module
const sinon = require('sinon');

describe('...', function() {
    // setup
    it('...', function() {
        sinon.stub(rp, 'Request').resolves({});
        // ^ you are actually stubbing the cached Object that "require" loads.
    });
    // teardown
});

Both foo.js and fooTest.js refer to the same Object that require loads.

For anyone trying to make this work with jest.
const requestPromise  = require('request-promise');
Here is how you can do it:-
const mockedRequestPromiseGetCall = jest.spyOn(requestPromise, 'get');
mockedRequestPromiseGetCall.mockImplementation(async () => {
    return {
        fakedResponse: 'will return exactly this'
    }
});

Also do remember to call your api not as
requestPromise(options);

Instead use it in the following way:-
requestPromise.get(options);

The above is needed for the mock to work.

I think @vivek12345 's solution should be added to README as well. it's really helpful.

if you need to assert that the payload is correct for whatever reason and need to use proxyquire so we don't access the cached module like @paulckim mentioned above, this is what worked with sinon.
// fooFile.js
const rp = require('request-promise');

// code to instantiate
class fooFile {
  constructor { ... };

  async bar(task) {
    await rp.post({
      // payload that needs to be tested
    });
    return;
  }
}

const sinon = require('sinon');
const proxyquire = require('proxyquire');

   it('does a thing', async () => {
      const task = { ... };
      const expectedMessage = { ... };
      const requestStub = sinon.stub().resolves({});
      const fooFile = proxyquire('fooFile', { 'request-promise': { post : requestStub }});
      const fooFile = new fooFile();

      const emptyResponse = await fooFile.bar(task);
      assert.deepEqual(emptyResponse, undefined);
      sinon.assert.calledWith(requestStub, expectedMessage);
   }


use $NODE rather than node for install script

when the node runtime is not node (ie, electron), the node binary will not be in path or available. use the $NODE env instead, as that is provided by npm/node/electron.

this is a minimal change as my use case is only for installing the prebuilt binaries. You may want to adjust all invocations of node accordingly in the package.json scripts.


fix: toast notification doesn't show up

Problem
Toast notifications are not displayed in editor view on user actions (e.g. copy clipboard...) while they are still showing up on the API reference.
Solution
This PR is an attempt to fix #1207 by moving the toast initialization to the layout level.

@amritk thank you! my bad i just did it, let me know if it works!
@marclave likewise ✨ i resolved it hope it's ok

Looks good to me, thanks! We'll test the preview when it comes online send ittt!


.scrollVertical and .scrollHorizontal are reset after setting .scroll to false

This is actually intended behaviour. Setting scroll to false is literally  the same as setting scrollHorizontal and scrollVertical to false
What were your trying to achieve when you encountered this?
I'm going to close this, but feel free to keep commenting or open a new issue if you want to discuss this further.

I understand.
I thought setting the scroll property to true/false was a way to temporarily disabled/enable the scrollComponent. I would never expected having the properties I set when the component is created reseted just by changing one property later.
This kind of looked like a bug to me: http://share.framerjs.com/juhq8ibmuusd/


Elipses topic in navigationbar.

show topic in toast on press.
Fix:#479

The toast lib looks nice. We might want to use it elsewhere.
It just doesn't look like a good solution for a 'tiptool' like behavior.
There is actually a reasonable and easy-to-implement alternative.
We can show just the stream only in the header, and as a sticky header the topic.
The code is already there, we just have to remove the not-showing of the sticky header.

@borisyankov Done :+1:

@zulipbot thanks for the reminder. Updated :+1:

Thanks for your work on this, and your other constant improvements you do.
I will be reworking the nav bar soon and it will fix this in a different way. Closing this PR so we can focus on your other open ones.


Remove the PlatformOperators CRD cluster profile hacks

Bumps the o/api dependency to pull in the changes in https://github.com/openshift/api/pull/1282, and removes the in-tree Makefile hacks that injected the requisite cluster profile annotations.

This is a no-op so adding the requisite labels.
/label px-approved
/label docs-approved
/label qe-approved

/lgtm


[0.14] Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.4 to 3.2.5

Backport: https://github.com/Hyperfoil/Horreum/pull/1932
Bumps org.apache.maven.plugins:maven-gpg-plugin from 3.2.4 to 3.2.5.

Release notes
Sourced from org.apache.maven.plugins:maven-gpg-plugin's releases.

3.2.5
Release Notes - Maven GPG Plugin - Version 3.2.5

[MGPG-134] - Update maven-invoker (#110) @cstamas
[MGPG-130] - Update sigstore extension to ".sigstore.json" (#109) @loosebazooka
[MGPG-128] - Parent POM 42, prerequisite 3.6.3 (#100) @cstamas

📦 Dependency updates

Bump org.simplify4u.plugins:pgpverify-maven-plugin from 1.17.0 to 1.18.2 (#105) @dependabot
Bump com.kohlschutter.junixsocket:junixsocket-core from 2.9.1 to 2.10.0 (#107) @dependabot
Bump org.apache.maven.plugins:maven-plugins from 42 to 43 (#108) @dependabot
Bump org.apache.maven.plugins:maven-invoker-plugin from 3.6.1 to 3.7.0 (#103) @dependabot
Bump bouncycastleVersion from 1.78 to 1.78.1 (#98) @dependabot

Commits

737d4ee [maven-release-plugin] prepare release maven-gpg-plugin-3.2.5
7747063 [MGPG-134] Update maven-invoker (#110)
3df5f83 [MGPG-133] Bump org.simplify4u.plugins:pgpverify-maven-plugin from 1.17.0 to ...
58a2069 [MGPG-132] Bump com.kohlschutter.junixsocket:junixsocket-core from 2.9.1 to 2...
e911b43 [MGPG-131] Bump org.apache.maven.plugins:maven-plugins from 42 to 43 (#108)
d2b60d3 [MGPG-130] Update sigstore extension for exclusion (#109)
091f388 Bump org.apache.maven.plugins:maven-invoker-plugin from 3.6.1 to 3.7.0
899f410 [MGPG-128] Parent POM 42, prerequisite 3.6.3 (#100)
f0be6f3 [MGPG-127] Bump bouncycastleVersion from 1.78 to 1.78.1 (#98)
7dd5166 [maven-release-plugin] prepare for next development iteration
See full diff in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Will not back-port this.  Leave for 0.15 release


Pimp GigaDB entry

we like to try to make the pages visually appealing by the addition of an image specific to the dataset, if you have something suitable please send it to me with the any credit details (nb. it should be CC0 or public domain license)

Irena will talk to the biogas plant operator to get his permission to use Andreas' photo of the BGP
We could also re-use it for the following, if desired:
If you wish to do so, you may submit an image which, in the event of publication, will be used to create a cover page for the PDF version of your article. The cover page will also display the journal logo, article title and citation details. The image may either be a figure from your manuscript or another relevant image. You must have permission from the copyright to reproduce the image. Images that do not meet our requirements will not be used.
Images must be 300dpi and 155mm square (1831 x 1831 pixels for a raster image).
Allowable formats - EPS, PDF (for line drawings), PNG, TIFF (for photographs and screen dumps), JPEG, BMP, DOC, PPT, CDX, TGF (ISIS/Draw).
Source: http://www.gigasciencejournal.com/authors/instructions/datanote


[Planned Feature]: Scheduler System

Feature Summary
Develop a background scheduler to manage events, announcements, and automated processes such as GP distribution and raid polls.
Motivation
A centralized scheduler will streamline bot operations, reducing manual interventions and enabling more advanced automation.
Implementation Plan

Integrate with Discord’s native events system for creating and updating events.
Provide commands to schedule recurring and one-off events.
Implement notifications for upcoming events.
Serve as the backbone for other features like automated salaries and raid polls.

Challenges and Considerations

Balancing server load with frequent checks.
Ensuring robust error handling for overlapping or conflicting events.

Community Feedback
No response
Additional Context
This system will serve as the foundation for the Availability Tracker and other planned features.

ADDENDUM:
Firstly, I want to investigate the feasibility of having a background process monitor the status of scheduled Discord events. Specifically, I’d like to determine if it’s possible to check whether an event is in an "active" or "inactive" state. If this functionality is supported, it could be leveraged for future features, such as dynamic event management.
Additionally, I want to explore the potential for parsing data from scheduled Discord events. For instance, being able to gather information about users who have marked themselves as "interested" or extracting general event details. This data could be used to:

Notify or ping members when an event is about to start.
Automatically create announcement messages when events transition into the "active" state.

Another key enhancement would be implementing a custom "frequency" feature for events. The native Discord frequency options are quite limited, so creating a more flexible and robust system would allow for better handling of recurring events. This feature would enable granular control over how often events repeat, including custom intervals and specific scheduling rules.

ADDENDUM: Choice of Event Location Type
For the event scheduler, I decided to use the "external" location type instead of "voice" or "stage" channels. Here are the key reasons for this decision:

Automatic Management

External events come with the scheduledEndAt property natively, which allows the event to automatically transition between "active" and "completed" states. This eliminates the need for manual intervention or custom logic to end the event.
Unlike voice or stage events, external events do not require a bot or user to manually start or stop them. This reduces the complexity of implementation and minimizes the risk of errors.

Overlap Concerns

Voice and stage events require someone (the bot, in this case) to start the event by joining the channel. This becomes problematic if events overlap, as the bot cannot be in multiple voice or stage channels simultaneously.


SEARCH RESULTS

SEARCH RESULTS
Acceptance Criteria
GIVEN a book search engine
WHEN I am not logged in and enter a search term in the input field and click the submit button
THEN I am presented with several search results, each featuring a book’s title, author, description, image, and a link to that book on the Google Books site

Search results loads.


[Enhancement]: Number Guessing Game Enhancement

Is your enhancement request related to a problem? Please describe.➕
Game enhancement
Currently when the user make a right guess , then the gamne do not reset. It get stuck unless we refresh.
Describe the solution you'd like
Solution steps
I would like to add reset functionality to the game and also some popups to inform user if the guess was right or wrong and then move to the next game.
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @ritik48 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

/assign

Hey @ritik48 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


*: adapter maintenance api

@heyitsanthony PTAL. Replaced it with dial function. Thanks.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@123b258). Click here to learn what that means.
The diff coverage is 53.12%.

@@            Coverage Diff            @@
##             master    #7612   +/-   ##
=========================================
  Coverage          ?   73.25%
=========================================
  Files             ?      327
  Lines             ?    26605
  Branches          ?        0
=========================================
  Hits              ?    19489
  Misses            ?     5635
  Partials          ?     1481

Impacted Files
Coverage Δ

integration/cluster_proxy.go
100% <100%> (ø)

etcdserver/api/v3client/v3client.go
100% <100%> (ø)

...xy/grpcproxy/adapter/maintenance_client_adapter.go
27.58% <27.58%> (ø)

clientv3/maintenance.go
67.39% <70.96%> (ø)

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 123b258...c90a4b9. Read the comment docs.

@heyitsanthony All fixed. PTAL. Thanks!


how do i do size checking on String?

if i have a string with max size limit.. how do i do that???
custom validator?

I was actually - as in today - having the same issue. The String type needs a len validator - like the array.
But for now, you can use the match validator, together with a Regular Expression.
Example: `{ type: String, match: /^.{,100}$/ }

Is this fixed already?

@erokshark Yes, strings should support the len validator now. It uses the same syntax as the one on Array. I don't know if it is documented yet, but it is implemented, so feel free to use it.


Mobirise Website Builder

Mobirise is a free offline app for Window and Mac to easily create small/medium websites, landing pages, online resumes and portfolios, promo sites for apps, events, services and products.
Watch this video to learn more:
https://www.youtube.com/watch?v=hGaQaBeUfGw

Please check the changes and review the request.


Crashes due to invalid URL when Nodeport is pointing at pod

This is on Kubernetes

Create a pod (I used a deployment in my test) that runs this container and expose port 389. Pod runs ok.
Create a NodePort service to access this container and expose 389 as 30389. Pod still running ok
Restart the pod. It crashes shortly after startup

*** /container/run/process/slapd/run started as PID 520
5f24e641 @(#) $OpenLDAP: slapd 2.4.50+dfsg-1~bpo10+1 (May  4 2020 05:25:06) $
	Debian OpenLDAP Maintainers<EMAIL_ADDRESS>5f24e641 daemon: listen URL "ldap://ldap-565f78fdb8-9x8nn:tcp://<IP_ADDRESS>:389" parse error=5
5f24e641 slapd stopped.
5f24e641 connections_destroy: nothing to destroy.
*** /container/run/process/slapd/run exited with status 1
*** Run commands before finish...
*** Killing all processes...

Note the URL is ldap://<pod name>:tcp:<container IP>:389 -- looks like there should have been a space in there.

It happens because you named your service LDAP and kubernetes automatically creates LDAP_PORT and number of other environment variables.
And LDAP_PORT collides with this docker image conventions.

Ugh, this is because of #403.
For Kubernetes you can set enableServiceLinks: false in the pod spec to get around this. Much better than trying to rename the service and updating all applications using ldap.


CAMEL-13649 Enhance documentation for twitter search of multiple words

https://issues.apache.org/jira/browse/CAMEL-13649

Thanks


⚠ Bofrost.es has degraded performance

In f198fe2, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1520 ms

Resolved: Bofrost.es performance has improved in d3423be after 8 minutes.


Save TF State as assets

Summary
Move terraform state management to Twilio Cloud function service.
Checklist

[x] Tested changes end to end
[x] Updated documentation
[x] Requested one or more reviewers

can we start moving the pipelines to makefile structure? need it to add serverless deploys

Not in this PR. The objective here is to change the deployment pipeline as seamlessly as possible.


Identifying minimal set of required modules when generating data for a single module

I'm trying to generate "clean" patients, i.e. patients with only a single isolated disease or condition using the -m switch.
I already understand that there are some default modules which will always run; that's fine. I want to basically "turn off" as many other modules as I can for each disease/module I'm trying to investigate. However, there are obvious strong inter-modular interactions which leads me to believe I can't just single out a specific module like this. (this potential issue is also mentioned here)
For example, when generating the course of pregnancies, I've found that the command below does not generate any pregnant women (no people will ever have more than their default encounters/procedures, also when increasing population count)
./run_synthea -p 50 -m "Pregnancy" -g F -a 25-40 --exporter.baseDirectory ./output/pregnancy/ --exporter.fhir.export false --exporter.csv.export true

But in the command below I've apparently added enough dependent modules (through trial and error) that I do start seeing pregnancies. Removing any one of these modules will stop any pregnancies from being generated once again.
./run_synthea -p 50 -m "Contraceptives;Female_Reproduction;Pregnancy;Sexual_Activity" -g F -a 25-40 --exporter.baseDirectory ./output/pregnancy_with_added_modules/ --exporter.fhir.export false --exporter.csv.export true

The issue is that I can never be sure if there are other/more dependent modules which will make the generated data more reliable for each of the modules I'm interested in.
My question is this: how can I find out what is the minimal set of modules I need to add for a specific module to start generating sensible data? And is this not something that can be automatically picked up by the pregnancy module, that it also loads its dependencies somehow?

@ReinierKop great questions. Bottom-line: currently, there is no automatic way to find the minimal set of modules (other than the submodules, which are always loaded). This would be a nice change to make.
Synthea is designed to run with all the modules a vast majority of time.
In my mind, the -m switch is meant really for testing out modules as you develop them, or for other testing cases like you mentioned, e.g. having "clean" data only related to a single condition or family of conditions.
But you've managed to find the weakness in this approach -- dependencies between modules. Most of the modules are linked together using either submodules or Patient attributes. But also Active Condition, Active Medication, Active CarePlan.
You can generate a complete list of Patient attributes and which modules read/write to those attributes:
./gradlew attributes

Some files are generated:
./output/attributes.json
./output/attributes_all.png
./output/attributes_readwrite.png

The JSON looks something like below. For example, the attribute pregnant has a list of modules that read and write to that attribute. In the snippet below, the Contraceptive Maintenance module reads the pregnant attribute from three different states (e.g. 'IUD_Maintenance', 'Implant_Maintenance', 'Injectable_Maintenance').
  "pregnant": {
    "read": {
      "Contraceptive Maintenance": [
        "IUD_Maintenance",
        "Implant_Maintenance",
        "Injectable_Maintenance"
      ],
      "Contraceptives": [
        "Reset_Contraceptive_Use"
      ],
      "Female Reproduction": [
        "Female_Reproductive_Cycle"
      ],
      "HealthInsuranceModule": [],
      "Implant Contraceptive": [
        "Initial"
      ],
      "Injectable Contraceptive": [
        "Initial"
      ],
      "Intrauterine Device": [
        "Initial"
      ],
      "Oral Contraceptive": [
        "Initial"
      ],
      "Patch Contraceptive": [
        "Initial"
      ],
      "Vaginal Ring Contraceptive": [
        "Initial"
      ],
      "anemia_sub": [
        "Female"
      ]
    },
    "write": {
      "Female Reproduction": [
        "Become_Pregnant"
      ],
      "LifecycleModule": [],
      "Pregnancy": [
        "Initially_Not_Pregnant",
        "Unset_Pregnant_Attribute"
      ]
    },
    "example_values": [
      "Boolean",
      "false",
      "true"
    ]
  }

Thanks for your lengthy response! I've been checking out the attributes json and I think I should be able to make sense of it using that as a resource. I'll close this issue for now. Thanks again.


[DOC] Add documentation for Do Not Fail on Forbidden Feature

What do you want to do?
Create documentation surrounding the do not fail on forbidden configuration/feature

[ ] Request a change to existing documentation
[X] Add new documentation
[ ] Report a technical problem with the documentation
[ ] Other

Tell us about your request. Provide a summary of the request and all versions that are affected.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.

@derek-ho Hi, can you elaborate on what this issue is about and possibly provide resources (RFC, Meta-issue, etc.) that describe it? Is this issue intended to be attached to the 2.10 release? Thanks!

@derek-ho Sounds good. Thanks for providing context and putting the issue into perspective.


Main page formatted and styled. Cohort specific data updated.

Description of Proposed Changes

Added an RSVP button in nav bar to allow users to click RSVP while scrolling.
Edited student data to include appropriate file paths to images.
Revised styling for Nav and Header so all classmates in group photo are visible on page load
Implemented a shuffle function to randomize the order of student data, invoked prior to iteration over the cohort dataset.
Shorted page title in metadata so it isn't cut off.

Steps to Test
git fetch --all
git checkout mp-main-page

[ ] Confirm all classmates are visible in group photo on pageload when viewed at 100% w/ full screen.
[ ] Confirm student cards are shuffled and reordered randomly when page is reloaded.
[ ] Confirm DemoDay links are working
[ ] Test student card links to make sure additional data is viewable by clicking 'view more' and all other links work as expected given the data provided.

Impacted Areas in Application

index.html
images/classmates
images/CohortGroupPhotos
scripts/main.js
styles/main.css
data/cohort.json

In the future, I'd like to see this broken into multiple PRs. I would recommend one for images, one for shuffling, and one for RSVPS.

In the future, I'd like to see this broken into multiple PRs. I would recommend one for images, one for shuffling, and one for RSVPS.

I totally understand that and agree that I implemented too many feature changes here for one PR. My future PRs will be more specific and feature focused. Thanks, Gib!


Pylint engine encountered an error in Codeclimate

Hello,
The following is my pylint configuration for codeclimate:
---
version: "2"
checks:
  file-lines:
    config:
      threshold: 400
  method-complexity:
    config:
      threshold: 20
plugins:
  pylint:
    enabled: true
    include_paths:
      - 'foobar/'
      - 'tests/'
exclude_patterns:
  - '**/__pycache__/'
  - '**/.pytest_cache/'

When running Codeclimate, I received the following error: engine produced invalid output: {:message=>"Invalid JSON", :output=>"Usage:  pylint [options] modules_or_packages\n\n  Check that module(s) satisfy a coding standard (and more !).\n\n     (see the attached file for more)
I tried to execute pylint locally and it worked.
output.txt

It looks like there's a problem in the files/modules/paths selection that Codeclimate is passing to pylint.
Using both include_paths and exclude_patterns in the configuration has proven to be a source of headache for me with Codeclimate, since it's quite hard to figure out what files and paths get selected in the end. I would advise you to remove the include_paths clause if you can.
If you want to try to debug this further, you can run CodeClimate locally (https://github.com/codeclimate/codeclimate) using the CODECLIMATE_DEBUG=1 and see the logs it generates, looking for the paths and files selected for analysis:
CODECLIMATE_DEBUG=1 codeclimate analyze -e pylint

@vcalmic Did you manage to debug this? I'll close this issue in a few days as non-reproducible.

@caiofbpa Thanks! I will try the steps you proposed and will let you know how it goes.

@vcalmic I'm closing this issue since it's been more than a month without an answer, so I'll assume this has been solved by the previous comments. If you still need help with this, please comment down below and I'll reopen this.


Write code to link search results into search results container (JavaScript)

WE NEED a code written to house search results through API to the search results container on the search results page of the project SO THAT the user can see their search results.

Kyle K. working on


[Feature Request] Specify SQL Subset / Dialect that is used for Expressions

Feature request
Overview
As Delta is just a storage format and is actually not tied directly to Spark, the spec (Protocol.md) should mention what dialect and subset is ok. I guess it should be mostly ANSI SQL if possible
Motivation
The spec should be clear so that different implementations do it in the same way. Otherwise we end up with delta files which can only be read by a particular implementation
Further details
At least the following needs to be answered:

How is quoting a column supposed to work? I guess it should be ANSI-style: "column with space"
Which functions are allowed?
Which operators are allowed?
Which SQL Expressions are allowed? AND/OR/CASE WHEN ?

Willingness to contribute
The Delta Lake Community encourages new feature contributions. Would you or another member of your organization be willing to contribute an implementation of this feature?

[ ] Yes. I can contribute this feature independently.
[x] Yes. I would be willing to contribute this feature with guidance from the Delta Lake community.
[ ] No. I cannot contribute this feature at this time.

delta stores these expressions as strings, and it is up to each engine to correctly interpret the strings. delta can't guarantee that every engine will interpret these correctly. I don't see us specifying this in the protocol. I'm going to close this issue for now, but please reopen if you'd like to discuss this further.

Well that means that there will be delta files that are supported by one engine and not by another one. I would prefer portability over feature completeness in SQL

Sounds good. I'll reopen this issue.

So, here is what I think should be supported in an MVP.
Goals

Expressions should be as easy to parse as possible, also from not-so full-blown SQL Engines. I'm particularly thinking about delta-rs here
Should support basic Math/Date/String/Bool Operations, but not everything covered by ANSI SQL or so
Should support some basic logic operation (IF/CASE)

Non Goals

Not all Engines will be able to just execute the query as-is without any adjustments. For example, the ANSI-quoting might lead to problems in some engines
Aggregate Functions
Non-Deterministic Functions such as GETDATE()/NOW() . I personally don't see a use case for those and also SQL Server does not allow them - I think they have good reason for that. If you ever want to allow things like partitioning on Expressions non-deterministic functions would block that

Things to be supported

References to Columns, always "ANSI" quoted. SQL has so many keywords in various engines, quoting will make lives easier. When I was young and naive I did try to get a list of all keywords of every engine I knew of, that list is quite long (Not to say I'm no longer young and naive)
Literals as per ANSI SQL. Strings should be in 'string'
Functions:

Text:

CONCAT and CONCAT_WS
UPPER / LOWER / TRIM
LEN
format_number ? not sure about that one

Date:
These are hard because there different in every engine

date_add
date_trunc
...

Number:

POWER

Operators

Math: +,  - , *, /, %
I would propose to use CONCAT for string concatenation and not an operator

Logical:

IIF or alternatively the CASE WHEN Statement. IIF is exotic but simplier to parse

I'm sure I'm missing a lot here, but that should just serve as a starting point for a discussion. I think having a minimal subset specified would make experimenting with some implementation possible


Which approach to the on-policy training/inference synchronization is best?

Hi,
I am thinking of a synchronization technique that would be suitable to introduce an on-policy algorithm such as PPO
which alternates between data collection and training. I came up with 3 basic ideas and would very much appreciate it if anyone could help me judge if any of them is valid. I am leaning towards the last one as it doesn't use busy waits (i.e., empty while loops on sync variables), although I am not entirely sure how (un)acceptable is a busy loop on a GPU. Although below I present simple pseudocode to demonstrate ideas, I implemented them minimally outside of SEED to try out synchronization via tf variables
inside of TF functions called through SEED's gRPC framework to examine potential problems. One of such problems is the
default mode of autograph which unaware of my synchronization efforts (re)moves stuff thus compromising my intents, but I did
some artificial dependencies hackery to go around this problem (guess optimizations can be controlled but ideally I would
hope for sth like much-hated C++ volatile qualifier). In any case: thanks for any feedback, if any of the below approaches, are valid and/or ideas for alternatives.
# Model is a tf.module with a constructor and 2 tf.functions: infer and train called with gRPC as in SEED.
# tf variables live on cpu of a sole host associated with learner

#1 busy waits, many sync variables
class Model() {

    def Model() {
        var training = tf.Var(False)
        var inferring = tf.Var([False]*NUM_ACTORS)
    }

    def infer(id) {
        while training:
            pass

        inferring[id] = True
        ...
        inferring[id] = False

        return result
    }

    def train() {
        training = True
        while sum(inferring) > 0:
            pass

        ...
        training = False
    }
}

#2 busy waits, a single sync flag, invalidating inference result
class Model() {

    def Model() {
        var training = tf.Var(False)
    }

    # invariant: time(inference) < time(training)
    def infer(id) {
        do {
            while training:
                pass

            ...

        } while not training

        return result
    }

    def train {
        training = True
        ...
        training = False
    }
}

#3 no busy waits, single sync variable, client needs to balance inference calls and reject some of the returns
class Model {

    def Model() {
        var training = tf.Var(False)
    }

    # invariant: time(inference) < time(training)
    def infer(id) {

        if training:
            return None

        ...

        if training:
            return None

        return result
    }

    def train {
        training = True
        ...
        training = False
    }
}

Hi,
There is soon going to be a PPO version in SEED open sourced which could serve as an example for what you want to do.

Actually, few weeks ago I asked Marcin Andrychowicz on release of the code due to his work on on-policy RL. Although affirmative. he was unable to tell when that might happen, so I thought of poking a bit on my own and asking around if needed. Guess you are referring to the very same line of work?


built-in "generators" / commands not work (as expected?)

% ❯ gen --version                                                                                 July 09, 02:08:24
[02:08:26] starting generate
Update v0.8.2

(and notice the "Update" instead of "Generate", but nevermind haha - THIS IS THE BIGGEST BUG MAAAN, jk)
Before few days when i was reviewing the things again there were (if i remember correctly) separate files for the init, help, new and etc, and they were (in lib/commands/ folder) called "built-in generators" and they looked like any generator which make sense. (btw, just noticing that lib/ itself is generator [haha that's freakin' fun ;d] and you started porting commands there? )
The new "generator"/command, works but do not adds the generator.js file. Maybe that's because there's no templates dir in this repo (according to lib/generator.js#L36-L43) - if that's the reason, okey, but why it not errors may be the next question.
Nevermind, i'm not rushing you, just digging around as usual in the late night :) In anyway, the work is awesome!

The new "generator"/command, works but do not adds the generator.js file. Maybe that's because there's no templates dir in this repo

completely forgot to wire that up again, thanks for the reminder.

called "built-in generators" and they looked like any generator which make sense

yeah, right now I'm trying to externalize the built-in stuff to external generators, so gen new will be powered by a generate-new generator. But I forgot to publish it.
I'm also reworking some of the commands and the help menu to be simpler. thanks for the issue, helps me clarify what needs to be prioritized

the work is awesome!

thanks!

btw, these commands are where I add new commands while I'm getting one of the apps working. If the command makes sense I will move it into base-cli-process for all of the apps


[BUG] YNAB Toolkit throws Error dialog on splitting category when adding transaction

Describe the bug
When adding a transaction in a budget account, upon selecting ... to split the transaction, you get the error listed in Step 3 below. I had just had YNAB Toolkit update on me, so it's the latest/greatest as of this ticket.
To Reproduce
Steps to reproduce the behavior:

Go to Add Transaction in a budget account.
Enter a Payee
Click on 'Split (Multiple Categories)' when the Category field pops open.
See error:
Uh-oh!
An error occurred in Toolkit for YNAB (a browser extension you installed to enhance YNAB). Click here to report the issue to the YNAB Toolkit project.

Expected behavior
I expect to be able to enter sub-category entries as part of the overall transaction.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: macOS 10.12.6 (16G29) Sierra
Browser: chrome
Version: Version 80.0.3987.132 (Official Build) (64-bit) - latest/greatest
YNAB Toolkit Version: v2.22.0

Setting Export
Please replace the text below with your exported Toolkit settings. You can export these by going to the Toolkit Options page, click the Import/Export Settings button at the bottom left and copying the text in the modal which appears.
[{"key":"AccountsDisplayDensity","value":"0"},{"key":"AccountsEmphasizedOutflows","value":false},{"key":"AccountsStripedRows","value":false},{"key":"AdditionalColumns","value":true},{"key":"AdjustableColumnWidths","value":true},{"key":"AutoDistributeSplits","value":false},{"key":"AutoEnableRunningBalance","value":true},{"key":"AutomaticallyMarkAsCleared","value":false},{"key":"BetterScrollbars","value":"0"},{"key":"BottomNotificationBar","value":false},{"key":"BudgetCategoryFeatures","value":true},{"key":"BudgetProgressBars","value":"goals"},{"key":"BudgetQuickSwitch","value":false},{"key":"BudgetSpendingGoal","value":false},{"key":"BulkManagePayees","value":false},{"key":"CalendarFirstDay","value":"1"},{"key":"CategoryActivityCopy","value":false},{"key":"CategoryActivityPopupWidth","value":"0"},{"key":"ChangeEnterBehavior","value":false},{"key":"ChangeMemoEnterBehavior","value":false},{"key":"CheckCreditBalances","value":false},{"key":"CheckNumbers","value":true},{"key":"ClearSelection","value":false},{"key":"CollapseSideMenu","value":true},{"key":"ColourBlindMode","value":false},{"key":"CompactIncomeVsExpense","value":false},{"key":"ConfirmKeyboardCancelationOfTransactionChanges","value":false},{"key":"CreditCardEmoji","value":false},{"key":"CurrentMonthIndicator","value":true},{"key":"CustomFlagNames","value":false},{"key":"DateOfMoney","value":false},{"key":"DaysOfBuffering","value":true},{"key":"DaysOfBufferingDate","value":false},{"key":"DaysOfBufferingHistoryLookup","value":"0"},{"key":"DeselectTransactionsOnSave","value":false},{"key":"DisableToolkit","value":false},{"key":"DisplayTargetGoalAmount","value":"1"},{"key":"DisplayTotalMonthlyGoals","value":true},{"key":"DisplayUpcomingAmount","value":false},{"key":"EasyTransactionApproval","value":false},{"key":"EditAccountButton","value":"0"},{"key":"EnableRetroCalculator","value":false},{"key":"EnlargeCategoriesDropdown","value":true},{"key":"EnterToMove","value":false},{"key":"FilterCategories","value":true},{"key":"GoalIndicator","value":true},{"key":"GoalWarningColor","value":false},{"key":"GoogleFontsSelector","value":"4"},{"key":"HideAccountBalancesType","value":"0"},{"key":"HideAgeOfMoney","value":false},{"key":"HideClosedAccounts","value":false},{"key":"HideHelp","value":false},{"key":"HideReferralBanner","value":true},{"key":"HideTotalAvailable","value":false},{"key":"HighlightNegatives","value":false},{"key":"ImportNotification","value":"0"},{"key":"IncomeFromLastMonth","value":"0"},{"key":"IncomeVsExpenseHoverHighlight","value":true},{"key":"LargerClickableIcons","value":false},{"key":"LinkToInflows","value":false},{"key":"MonthlyNotesPopupWidth","value":"0"},{"key":"NavDisplayDensity","value":"0"},{"key":"NotesAsMarkdown","value":false},{"key":"POSStyleCurrencyEntryMode","value":false},{"key":"Pacing","value":"1"},{"key":"PrintingImprovements","value":false},{"key":"PrivacyMode","value":"0"},{"key":"QuickBudgetWarning","value":false},{"key":"ReconciledTextColor","value":"0"},{"key":"RemovePositiveHighlight","value":false},{"key":"RemoveZeroCategories","value":false},{"key":"ResizeInspector","value":false},{"key":"ResizeSidebar","value":false},{"key":"RightClickToEdit","value":true},{"key":"RowHeight","value":"0"},{"key":"RowsHeight","value":"0"},{"key":"RunningBalance","value":"2"},{"key":"SeamlessBudgetHeader","value":false},{"key":"SetMultipleFlags","value":false},{"key":"ShowCategoryBalance","value":false},{"key":"ShowIntercom","value":false},{"key":"SpareChange","value":false},{"key":"SplitKeyboardShortcut","value":true},{"key":"SplitTransactionAutoAdjust","value":false},{"key":"SquareNegativeMode","value":false},{"key":"StealingFromFuture","value":true},{"key":"StripedBudgetRows","value":false},{"key":"SwapClearedFlagged","value":false},{"key":"TargetBalanceWarning","value":false},{"key":"ToBeBudgetedWarning","value":false},{"key":"ToggleMasterCategories","value":false},{"key":"ToggleSplits","value":false},{"key":"ToggleTransactionFilters","value":"0"},{"key":"ToolkitReports","value":true},{"key":"TransactionGridFeatures","value":true},{"key":"ViewZeroAsEmpty","value":false},{"key":"goalIndicator","value":false},{"key":"highlightNegativesNegative","value":false},{"key":"l10n","value":"0"},{"key":"options.dark-mode","value":true},{"key":"pacing","value":"1"},{"key":"popupCalculator","value":true},{"key":"reports","value":true}]```

same issue and method to reproduce, same error message.
requires refresh of page, transaction is not added. Have to turn off the toolkit for now.
System: Win10
Browser: Chrome 80.0.3987.132 (Official Build) (64-bit)
YNAB Toolkit 2.22.0

@jmahone check out Issue #1806 which is the original issue. There are a couple of workarounds in that issue that should allow you to continue using the Toolkit. It'll be a compromise but you have to decide what's right for you.
Closing this issue as a duplicate of #1806.


Added Tests for the Monospace package.

What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds additional test cases and edge cases for the monospace package, enhancing the reliability of the functions within.
Added test cases for the following functions/tests:

TestShorten
TestString
TestRune

Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Please review the added test cases to ensure they cover all potential edge cases effectively.
Does this PR introduce a user-facing change?
NONE

/ok-to-test


Exception when trying to enable notify on a characteristic

I use the following code to enable notify on a characteristic, but it results in an uncaughtException with the following message "Range Error: index out of range". I'm not sure whether this is a bug or me not using the library as expected.
if(connectedDevice.state==="connected"){
    ...
    connectedDevice.discoverSomeServicesAndCharacteristics(null, characteristicUUIDs, function(error, services, characteristics){
        characteristics[0].notify(true, function(error){
            console.log("Notification Enabled");
        });
    });
    ...
}

I have also tried the following code, but it results in the same error.
if(connectedDevice.state==="connected"){
    ...
    connectedDevice.discoverServices(serviceUUIDs, function(error, services) {
        var service = services[0];
        service.discoverCharacteristics(characteristicsUUID, function(error, characteristics) {
            var characteristic = characteristics[0];
            characteristic.notify(true, function(error) {
                console.log("Notification Enabled");
            });
        });
    });
   ....
}

I use noble.js 1.3.0, this code is used on the central device and characteristics[0] object is not null.
I have also tried noble.js 1.6.0 with the new way of enabling notifications "characteristic.subscribe", but I still get the same error.

Hi @papajim,
noble should definitely handle this case in a nicer way than crashing.
Could you please share the full exception and which OS you are using? As well as what the value of characteristics[0].uuid and characteristics[0].properties is?
Maybe you are trying to subscribe to a characteristic that does not have a notify property?

Hello @sandeepmistry thanks for your reply.
I'm using Windows 7 and I'm trying to enable notify on a custom characteristic of a custom service. characteristics[0].uuid =<PHONE_NUMBER>2425262728293031323334 (hex)
characteristics[0].properties = ["read", "notify"]

Bump
Hello @sandeepmistry do you have any idea what's going on ?

@papajim could you please provide debug logs. You need to set the DEBUG environment variable to *. I think setenv DEBUG=* is the way to do this.

@papajim ping ...

I'm closing this due to lack of activity.


[Bug]: Logprobs not supported for gemini-1.5-flash-8b

File Name
.
What happened?
Hi there, I'm trying to obtain the response_logprobs of a generated response by gemini-1.5-flash-8b, however I'm getting this error:
google.api_core.exceptions.InvalidArgument: 400 Logprobs is not supported for the current model

Will this feature be available soon? Or it won't be implemented?
Relevant log output
google.api_core.exceptions.InvalidArgument: 400 Logprobs is not supported for the current model

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@Kedaqusa1604 : response_logprobs has been implemented but it hasn't been made generally available. Please check the status here: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters#advanced-parameters. Thanks.


refactor(pie-text-input): DSW-2280 use classes instead of attributes for styling

Describe your changes (can list changeset entries if preferable)
[Changed] - use classes instead of attributes for styling
[Added] - Default values of false for disabled and readonly props. No change in behaviour expected.
(Note that the docs site already had the default prop values as false).
Author Checklist (complete before requesting a review)

[ ] I have performed a self-review of my code
[ ] I have reviewed the PIE Storybook PR preview
[ ] I have reviewed visual test updates properly before approving
[x] If changes will affect consumers of the package, I have created a changeset entry.
[ ] If a changeset file has been created, I have used the /snapit functionality to test my changes in a consuming application

Reviewer checklists (complete before approving)
Reviewer 1

[ ] I have reviewed the PIE Storybook PR preview
[ ] If there are visual test updates, I have reviewed them

Reviewer 2

[ ] I have reviewed the PIE Storybook PR preview
[ ] If there are visual test updates, I have reviewed them

/snapit


Cluster/Kube-up.sh doesnt work for other clouds

With the latest changes, kube-up now has a requirement on gcloud.
This breaks all other clouds and even if I do install the SDK, there are further requirements to install docs / set the project etc. Could you please update to allow an alternate path to allow k8s setup for AWS & Azure?

What gcloud commands is it trying to run? Doing a quick code search I only see gcloud references in the gce / gke directories (and in the phabricator example for firewall rules) so I'm not sure how it would be getting invoked for other providers.
@justinsb - Can you double check that gcloud isn't needed to provision on AWS?

@Snesha happy to look into this for AWS - you definitely shouldn't need gcloud to bring up a cluster on AWS.  (I can't really speak to Azure, but I suspect/hope whatever the issues is with AWS will be the same issue as Azure).
As @roberthbailey I don't see where we would be using gcloud.  It looks like we would use it if you tried to do a kubernetes release, but only Googlers can do that anyway.  Can you please let me know the error you're getting?

I'm going to close this; we've made lots of improvements to our docs & these scripts, and I'm guessing these will address the problem.  @Snesha if you can reproduce, please feel free to reopen!


Added german translation

Well I made a German translation. Review by other native speakers is welcome.

You might want to compile the po files to .mo and add them to the repository. Otherwise django will not use the translation.
in MANIFEST.in
recursive-include wagtailmenus/locale *.mo

Hey @bloodywing. Thank you for contributing :)
I'm honestly unsure about how the translations work, so I don't know about including the .mo files. If they were necessary, I would have thought another translator would have brought that up? I shall wait a while and see if anybody can clarify that.
Regarding the wagtail 1.8 support changes, I cannot accept those as part of this PR I'm afraid. I need to tackle that as a separate pull that also adds new .tox test environments for wagtail 1.8 and ensures that everything checks out. It wouldn't be right to announce support for 1.8 otherwise.

I saw this with the mo files in wagtails repository. And even the Django repository includes the compiled ones: https://github.com/django/django/tree/master/django/contrib/admin/locale/en_GB/LC_MESSAGES
I've already rewritten the tox.ini and the base/requirements.txt and currently running the tests local.

Thanks @bloodywing.
In that case, I'm happy for the .mo files to be included.
Also, please add yourself as a translator in CONTRIBUTORS.md :)
RE the 1.8 support. I would still like to handle that in a separate PR and not have those changes rolled into this one, if possible. I think it's better all-round if PRs stay as focussed on one thing, and don't try to cover too much. I will do this soon (some time this week) and roll into a release along with this and some other things I'm working on.

Okay @ababic added a revert and it just contains the locales now.

Brilliant. Thanks again @bloodywing. Merged now :)


Integrate critical PR from TGI uptream

Feature request
Using tgi-gaudi to inference llama3 will produce some special token used with Meta Llama 3.
For example, here is the sample output from curl test:
data:{"id":"","object":"text_completion","created":1717513572,"model":"/mnt/models","system_fingerprint":"2.0.0-native","choices":[{"index":0,"delta":{"role":"assistant","content":"<|eot_id|>"},"logprobs":null,"finish_reason":"eos_token"}]}
Could you please help to rebase and merge with the critical PR https://github.com/huggingface/text-generation-inference/pull/1808 for support special token such like '<|eot_id|>' to support Llama 3?
Motivation
NONE
Your contribution
You can review the upstream PR: https://github.com/huggingface/text-generation-inference/pull/1808

Thanks @luoyiroy, we are planning to rebase with the TGI 2.0.2 soon (PR mentioned by you is a part of TGI 2.0.2).
I will start the rebase after we will merge TGI 2.0.1: #154

Hi @kdamaszk, noticed TGI 2.0.1 merged. Do you have an ETA for TGI 2.0.2?
thanks.
-Yang

PR #158 is merged into habana-main branch. Closing this issue


Document creation with db created index

Hello, i wanted to try using padded keys, and relying on the database to generate the key.
but when i try to create a document with no key i get  "arangodb illegal document key".
what's the recommended way to do so.

Did you look at the following unit test?
[Theory]
        [ClassData(typeof(PascalCaseData))]
        public async Task Create(string serializer)
        {
            await SetupAsync(serializer);
            await Arango.Collection.CreateAsync("test", new ArangoCollection
            {
                Name = "test",
                Type = ArangoCollectionType.Document,
                KeyOptions = new ArangoKeyOptions
                {
                    Type = ArangoKeyType.Padded,
                    AllowUserKeys = true
                }
            });

            await Arango.Document.CreateAsync("test", "test", new
            {
                Name = "test"
            });
        }

No clue why, however padded keys also require AllowUserKeys = true

Also take note: You're not allowed to send any _key / id at document creation.
This means Key/Id Properties in your entity model need [JsonIgnore(Default...)]

switched the key to
[JsonIgnore]
public string? Key { get; set; }

yet when creating the object like
User user = new User()
{
    UserName = "blabla",
    FullName = "full name",
};

await _arango.Document.CreateAsync(transaction, StaticDBIdentifiers.Vertexes.User, user);

i still get
error : [{"error":true,"errorNum":1221,"errorMessage":"illegal document key"}]
Object is defined like this
if (!await _arango.Collection.ExistAsync(StaticDBIdentifiers.DBName, StaticDBIdentifiers.Vertexes.User))
						{
							await _arango.Collection.CreateAsync(StaticDBIdentifiers.DBName, new ArangoCollection
							{
								Name = StaticDBIdentifiers.Vertexes.User,
								Type = ArangoCollectionType.Document,
								KeyOptions = new ArangoKeyOptions
								{
                                    Type = ArangoKeyType.Padded,
                                    AllowUserKeys = true
                                }
							});
						}

What arangodb version are you using and is it a cluster?

3.11.1 Community edition, in a single docker container, no clustering, nothing exotic
adding  [System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] to the key didn't make any change.
i will try adding and object without key, on a manual query, to isolate the issue

are you sure you're not mixing newtonsoft and system.json.text?

You are right
i was using newtonsoft
config.Serializer = new ArangoNewtonsoftSerializer(new ArangoNewtonsoftCamelCaseContractResolver());


Is there a way to deactivate portfolio_video_code?

I have a few posts were I don't want show iframes/videos/images in the head of the post.
Is there a way to disable the portfolio_video_code function?
Thanks for your help.

Sorry, this was the wrong repo for this issue.


Investigate better library placeholder approach

Library linking is currently managed manually:
const safeMath = m.library("SafeMath");
const contract = m.contract("Contract", {
  libraries: {
    SafeMath: safeMath,
  },
});

We want to investigate approaches for auto-linking to reduce cognitive overhead for the user.
Can we determine from a contract the list of libraries to be linked and what the likely library is in the module?
Part of #205

This is in reference to the old api.


Fix go routine proliferation in http-collector

This PR fixes the go routine proliferation that happens when system is under load.
Under load this code has >90K active goroutines. See https://github.com/istio/issues/issues/100#issuecomment-339468537 for more details.

Simplify http-collector, no new go routines are launched.
Use a non-blocking write into a buffered channel.
As a consequence of #2, the latest spans are dropped under load,
not the oldest.

@mandarjog sorry for the late reply, traveling a lot these weeks. Looks like an improvement, but before I merge, I'd like to have a test showcasing spans being dropped when transport over http is slow. Can you please add such a test?

Clicked close by mistake. Ok I will write such A test case.

@mandarjog have you been able to look at tests?

hi,
so we looked into that issue to see how we could contribute a good test for that, but it's not trivial. Anyhow we are facing this problem in one of our services so deployed it with this fix and memory consumption is now stable at 8mb, before it went up to more than 100mb from time to time. Maybe you can consider to merge this one even if one final test is missing?


Traversal Coverage of dataset

There is this information in paper:

There are 22 sequences in total. The accumulated length of the data is 2244 seconds.

In terms of long-term, I was wondering how long the whole duration of data acquisition was? Maybe DD days or MM months or YY years! I could not find it in the paper nor in website!
Cheers,

Hi @mrgransky , the data were collected in one or two months.


client: cancelling a Watcher causes ClusterError read tcp error

With the following watching code
	for u.watching {
		resp, err := watcher.Next(u.context)
		if clusterErr, ok := err.(*etcd.ClusterError); ok {
			u.logger.Printf("!!! Got ClusterErr: %v", clusterErr.Errors)
			if len(clusterErr.Errors) > 0 && clusterErr.Errors[0] == context.Canceled {
				break
			} else {
				continue
			}
		}
      // do something else
   }
   u.logger.Printf("Exiting watch.")

When context.cancel() is called from a different thread, I get a tcp net dial first:
!! Got ClusterErr: [read tcp <IP_ADDRESS>:57824: use of closed network connection]
!!! Got ClusterErr: [context canceled]
Exiting watch.

I think that the only think printed here should be context.Cancelled. Cancelling a watcher context shouldn't tear down the connection.
See https://github.com/coreos/etcd/issues/3208 for context.

Thanks for the quick fix, will poke around to see if it fixes my issue later this week! :)

Unfortunately this seems to be back after 2.3.0
"etcd ClusterError. Will retry. error #0: context canceled"

Ok just got it reproduced client: etcd cluster is unavailable or misconfigured when canceling watch context. Will fix shortly.

@mwitkow Thanks for reporting. I checked the release 2.3 also has this issue.
Please try with master branch. Should be fixed.


disable threading in sqlalchemy demo (in-memory db)

disable threading in sqlalchemy demo because it uses an in-memory database, which is not shared across threads.
Fixes #706
Changes proposed in this pull request:

disable threading in sqlalchemy demo

I'm not an expert myself, even though I originally wrote this example. I prefer your solution as it's automatically portable, whereas creating a physical temporary file would have made it a little more complicated.

@jmcs one-line bugfix if you have a second

:+1:

:+1:


Bump carbon identity framework version

$Subject
Related PRs: https://github.com/wso2/carbon-identity-framework/pull/4390

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3720978838

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3720978838
Status: success


not working with mdbootstrap

I try this code with mdbootstrap
<input type="checkbox" checked data-toggle="toggle" data-on="Ready" data-off="Not Ready" data-onstyle="success" data-offstyle="danger">

Hi @lutfisan
The library was not designed with mdbootstrap in mind.  They may be incompatible..?


Add Artificial Intelligence topic

Is your feature request related to a problem? Please describe.
I'm always frustrated when navigating the project and I don't see any topics related to Artificial Intelligence (AI). Given the increasing importance of AI in various domains, having a dedicated section or topic about AI would make the project more relevant and informative for users interested in this area.

Describe the solution you'd like to add
I would like to see a dedicated topic or module that covers Artificial Intelligence. This could include a general introduction to AI, its applications, ethical considerations, and any relevant tools or resources. It would help expand the scope of the project and provide valuable insights to those interested in AI.

Describe alternatives you've considered

Adding AI as a sub-topic under existing categories (e.g., Data Science, Machine Learning)
Creating a curated list of AI-related resources or references without a full topic/module
Collaborating with other contributors to create a brief overview instead of a deep dive

Additional context
Artificial Intelligence is a rapidly evolving field with many practical applications. It could be beneficial to include an overview of machine learning, deep learning, natural language processing, and other AI subfields. This addition could attract more contributors and users interested in AI and provide them with valuable resources.

@shhossain can i work on this issue for Hacktoberfest 2024?😀

Hey team!
This would be my first contribution to this repo, however I would be happy to add an AI section. I teach AI and Machine Learning through my business, Web3sy.com and would be able to share a high level introduction by the end of this week @shhossain .


yamlToString should be part of the yaml package

There seems to be an implementation of yamlToString in the pub sources. Can we share it as part of the yaml package?

This issue has been moved to dart-lang/yaml#2.


Retry cargo test when failed in CI.

Retry one time for cargo test.

Failed multi times because apt failed...


TopDownMap plotting goal position

Habitat-Lab and Habitat-Sim versions
Habitat-Lab: main
Habitat-Sim: v0.2.2
Master branch contains 'bleeding edge' code, but we do appreciate bug reports for it!
🐛 Bug
TopDownMap does not plot goal position in navigation task when the episode of environment contains attribute "goals"
Steps to Reproduce
Steps to reproduce the behavior:

python examples/shortest_path_follower_example.py

I believe the bug is a typo in https://github.com/facebookresearch/habitat-lab/blob/e2cb80843f6ddf24ffd3964976a5136963c03568/habitat/tasks/nav/nav.py#L875
    if hasattr(episode, "goal"):
            # draw source and target parts last to avoid overlap
            self._draw_goals_view_points(episode)
            self._draw_goals_aabb(episode)
            self._draw_goals_positions(episode)
            self._draw_shortest_path(episode, agent_position)

where goal should be goals.
After fixing this typo, the topdownmap works on my local machine.

Fixed in https://github.com/facebookresearch/habitat-lab/pull/1032.


metrics api not avaiable but top works?

I have a weird issue.
kubectl get --raw /apis/metrics.k8s.io/v1beta1/pods
Error from server (NotFound): the server could not find the requested resource
but api is registered:
v1beta1.metrics.k8s.io                 kube-system/metrics-server              True        15m
status: "True"
Some HPA work, some don't (complaining about missing cpu metrics)
but kubectl top pods and top nodes works fine...
anyone got an idea?
edit:

kubectl api-resources | grep metrics
metrics                                            config.istio.io                true         metric
nodes                                              metrics.k8s.io                 false        NodeMetrics
pods                                               metrics.k8s.io                 true         PodMetrics

Do you have Heapster running in your cluster?

No, that was replaced a while back.
kubectl get pods -nkube-system --all-namespaces | grep heapster
at least that doesn't result in anything

This is still an issue did  someone find a fix for this?

I would look into Apiserver logs to check if registration worked and maybe why it returned 404.


Support Windows

This is what I get when running the tasks on a Windows machine.
gulp compile
[18:30:56] Starting 'compile'...
lib\main.ts(1,1): 6053 File 'd:/Github/ts2dart_mlaval/typings/fs-extra/fs-extra.d.ts' not found.
[18:30:58] lib\main.ts(1,1): 6053 File 'd:/Github/ts2dart_mlaval/typings/fs-extra/fs-extra.d.ts' not found.

gulp test
[18:31:02] Starting 'compile'...
[18:31:02] Starting 'test.check-format'...
[18:31:02] 'test.check-format' errored after 160 ms
[18:31:02] Error:<PHONE_NUMBER>
    at formatError (c:\Users\mlaval\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:169:10)
    at Gulp.<anonymous> (c:\Users\mlaval\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:195:15)
    at Gulp.emit (events.js:107:17)
    at Gulp.Orchestrator._emitTaskDone (d:\Github\ts2dart_mlaval\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
    at d:\Github\ts2dart_mlaval\node_modules\gulp\node_modules\orchestrator\index.js:275:23
    at finish (d:\Github\ts2dart_mlaval\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
    at DestroyableTransform.<anonymous> (d:\Github\ts2dart_mlaval\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:52:4)
    at DestroyableTransform.f (d:\Github\ts2dart_mlaval\node_modules\gulp\node_modules\orchestrator\node_modules\end-of-stream\node_modules\once\once.js:17:25)
    at DestroyableTransform.emit (events.js:129:20)
    at onwriteError (d:\Github\ts2dart_mlaval\node_modules\gulp-clang-format\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:250:10)
lib\main.ts(1,1): 6053 File 'd:/Github/ts2dart_mlaval/typings/fs-extra/fs-extra.d.ts' not found.
[18:31:04] lib\main.ts(1,1): 6053 File 'd:/Github/ts2dart_mlaval/typings/fs-extra/fs-extra.d.ts' not
 found.

As a consequence, it seems that all Dart tasks of angular/angular are also failing (build.dart, test.unit.dart, ...).

 Does the .d.ts file mentioned actually exist?

Tried again with the latest code base and a clean npm install:

gulp compile works fine
gulp test works fine with the fix proposed in #164

I assume this is fixed?

The tasks are now fully working.
I'm now getting 7 failing unit tests, but I'll look at this later.
For the record:
  1) main transpiler functionality errors reports relative paths in errors:
     AssertionError: expected [Function] to throw error matching /^b\/c.ts:1/ but got 'b\\c.ts:1:1:
delete operator is unsupported'
      at Context.<anonymous> (/source/test/main_test.ts:33:71)

  2) main transpiler functionality output paths writes within the path:

      AssertionError: expected '\\x\\b\\c.dart' to equal '/x/b/c.dart'
      + expected - actual

      -\x\b\c.dart
      +/x/b/c.dart

      at Context.<anonymous> (/source/test/main_test.ts:40:67)

  3) main transpiler functionality output paths defaults to writing to the same location:

      AssertionError: expected '\\a\\b\\c.dart' to equal '/a/b/c.dart'
      + expected - actual

      -\a\b\c.dart
      +/a/b/c.dart

      at Context.<anonymous> (/source/test/main_test.ts:48:67)

  4) main transpiler functionality source maps maps locations:
     Error: "path/test.ts" is not in the SourceMap.
      at Context.<anonymous> (/source/test/main_test.ts:80:28)

  5) library name adds a library name:

      AssertionError: expected ' library b_c ; var x ;' to equal ' library b.c ; var x ;'
      + expected - actual

      - library b_c ; var x ;
      + library b.c ; var x ;

      at Context.<anonymous> (/source/test/module_test.ts:62:25)

  6) library name handles reserved words:

      AssertionError: expected 'for_in_do_x' to equal '_for._in._do.x'
      + expected - actual

      -for_in_do_x
      +_for._in._do.x

      at Context.<anonymous> (/source/test/module_test.ts:67:65)

  7) library name handles built-in and limited keywords:

      AssertionError: expected 'as_if_sync_x' to equal 'as._if.sync.x'
      + expected - actual

      -as_if_sync_x
      +as._if.sync.x

      at Context.<anonymous> (/source/test/module_test.ts:70:66)

I wonder if we can get TypeScript to not use backslashes? I'm somewhat hesitant to put path.separator all over our unit tests, that won't help readability much.


ci: add a way to release angular package on PR

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Data not received with MQTT !!

Hi Brocaar :) ,
Please i have a problem, i can't receive data with MQTT , the device join network  OTAA without any problems then send data is successful but to see data with moquitto_sub  doesn't work :/  please where is exactly the problem?
Thanks Brocaar :)

Hello :) ,
the problem that i'm using this command  [AppEUI = 70B3D57EF000391A ] :
mosquitto_sub -t "application/70B3D57EF000391A/#" -v
but when i use this command :
mosquitto_sub -v -t "application/#"
i receiv data , and i see as Application ID  => application/1/node/0004a30b001ae41e/rx {"applicationID":"1", ...
Please , applicationID is not 70B3D57EF000391A ? why i receive "1" ?

Note that AppEUI is not ApplicationID. I'll update the docs / UI to make this more clear.
Multiple nodes with different AppEUI values could still serve the same application / purpose (e.g. weather station). The ApplicationID matches the ID of the application that you created, before adding any nodes. See also the /api/applications?limit=10 api endpoint :-)

Thanks broccar :) Thank you for your work and your efforts .
Please clear us this point on the doc .
Regards ,


nonce

Could you please explain how is the nonce created? Can it be passed?
I understand that when using random nonces, there is some risk of collision?

I went through the sources for iOS (I guess it's the same in Android?) and I believe that a random nonce is being produced.
This may lead into issues. See this discussion.
Would you consider letting the user pass the nonce? There are some interesting alternatives in the literature.

For most users who are not cryptography experts, relying on proven cryptographic libraries like iOS's ChaChaPoly (https://developer.apple.com/documentation/cryptokit/chachapoly) and Android's Tink (https://developers.google.com/tink) is a safer approach. These libraries take care of the complex details, ensuring secure encryption and decryption.
With the 1LimX app being offline, there's no risk of nonce collision, regardless of how much data a single user encrypts. 2^96 possible nonces are far more than enough for one person.
However, in situations where users require more functionality than the original library offers, creating a fork and making custom implementations is an option. For now, using the proven libraries provided by Apple and Google SDKs remains the safer choice.
I hope this is helpful!


Ressistance calculator

The website contains to find equivalent Ressistance by drawing wire in network.
The code ,I have divided into 2 one is calculate based and other is to understand about ressitance.
Please assign me this issue ,as already I have made it .
language : -html, css, javascript.
Made for GSSOC22

Please assigned me this task
I have made this for GSSOC22.

@shahishree03 can u elaborate as there are calculators and also the definition of the same. What else do u wish to add?

To solve equivalents resistance by connecting wires through a network .
It is not just the calculator (we have to type the values , ) and it just calculate
We have to join the fires in network to find equivalent resistance.
Additional with I add some concepts based regarding resistance.

@shahishree03 u can work on it. But the concepts which u want to add must not be copied directly from other websites.

sir, when i will send a pull request what branch name should I give?? As issue #644 or "Ressistance Calculator"

@shahishree03 u can send it whenever u solve the issue. And branch name can be anything of ur choice.

If u still have any doubts then u can dm me over discord

Okay sir

Please assign this to me.

@Sampurankishoresrivastava u can work

Okay sir  Thank you  ,looking forward to work on it.


it this repository going to be affected by this? ( Version 3 of the Google Documents List API is nearly at an end. On April 20, 2015)

Google Documents List API version 3.0
Warning: The deprecation period for Version 3 of the Google Documents List API is nearly at an end. On April 20, 2015, we will discontinue service for this API. This means that service calls to the API are no longer supported, and features implemented using this API will not function after April 20, 2015. You must migrate to the Drive API as soon as possible to avoid disruptions to your application.
direct link to source: https://developers.google.com/google-apps/documents-list/

direct LINK to the information,
https://developers.google.com/google-apps/documents-list/

GDataDB depends on https://www.nuget.org/packages/Google.GData.Spreadsheets/ (the library provided by Google), and GDataDB already uses the latest version.
Furthemore, Google.GData.Spreadsheets 2.2 already uses the v3 of the API: https://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/RELEASE_NOTES.HTML#60

Hi Mauricio,
Thanks for the feedback, but are you sure? When I start your sample app in the source code, it gives the exact same error as everybody is nagging about since the last 2 days when you are using the old API :-)
An unhandled exception of type 'Google.GData.Client.GDataRequestException' occurred in Google.GData.Client.dll
Additional information: Execution of authentication request returned unexpected result: 404
It happens here: “var feed = DocumentService.Query(new SpreadsheetQuery {TitleExact = true, Title = name });”
Regards,
Pieter

GDataDB already uses the latest version of https://www.nuget.org/packages/Google.GData.Spreadsheets/ , so there's not much I can do. Try talking to the maintainer of Google.GData.Spreadsheets about this.

hi, so just to confirm on this,  it is not working now right?      and lets say this is really the end of all this,   do you have any suggestion on finding another similar solution or alternative to your project?
but if not it is fine,  just want to say thank you for providing this feature! it really rocks!

@jc70417  I've already described what to do to fix it: contact the maintainer of https://www.nuget.org/packages/Google.GData.Spreadsheets/ , ask him to upgrade his library or ask him about migration paths.

Apparently there are two issues here:

Implement OAuth ( https://github.com/mausch/GDataDB/issues/14 ) as the simple auth mechanism is no longer supported.
Replace the documents list API (Google.GData.Documents?), probably with https://www.nuget.org/packages/Google.Apis.Drive.v2/ .

I think these are indeed 2 issues the code is currently having. Next question: is there somebody who has time available, understands the code and able to fix it? :-)

Yes please can anybody fix this?

Hi, was anybody yet able to solve this?What surprises me: the code in here (http://google-gdata.googlecode.com/svn/trunk) still works. but it used Google.GData.Spreadsheets <IP_ADDRESS> instead of  <IP_ADDRESS>?

Good news, I got a sponsor to fix this, so I'll be working on it. However the new Google libraries are .NET 4+ and my sponsor needs to keep compatibility with .NET 2 so it'll take some time...

This is amazing news! I started myself investigating the topic last week, and after many hours googling and trying I have the impression that this might be part of the answer: http://stackoverflow.com/questions/13664731/accessing-older-gdata-apis-spreadsheet-api-using-oauth-2-and-a-service-account
I don't want to push you, but just to have an idea on the timeline: Any idea when you are expecting a fix?

Work in progress: https://github.com/mausch/GDataDB/tree/oauth2-apis
Ended up removing the Google libraries altogether, they're just awful and a waste of time.
Most of the functionality is there, just need to add the missing ones, fix a couple of things and test it thoroughly.

Hi Mauricio,
FYI, I ran a quick test:

downloaded the key.p12 as described here (http://webapps.stackexchange.com/questions/58411/how-where-to-obtain-a-p12-key-file-from-the-google-developers-console) and stored it in GDataDB\branches\oauth2-apis\Sample\bin\Debug\
I changed the email-address<EMAIL_ADDRESS>to the one I recevied when creating the key.p12 (something like<EMAIL_ADDRESS>I ran the application, things goes well until line "var r = all.Count > 0 ? all[0] : t.Add(new Entity {Conteudo = "some content", Amount = 5});"

-> I receive an error there in Table.cs at line "var response = http.UploadString(listFeedUri, xml.ToString());" stating:
System.Net.WebException was unhandled
Message=The remote server returned an error: (400) Bad Request.
Source=System
StackTrace:
at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
at System.Net.WebClient.UploadString(Uri address, String method, String data)
at GDataDB.Impl.Table`1.Add(T e) in c:\NET Projecten\GDataDB\branches\oauth2-apis\GDataDB\Impl\Table.cs:line 50
at Sample.Program.Main(String[] args) in c:\NET Projecten\GDataDB\branches\oauth2-apis\Sample\Program.cs:line 20
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Hope this helps you.
Regards,
Pieter

@pietergent Thanks, I'm already aware of that. Writing to a new table doesn't work at the moment because I need to write the headers "manually", whereas something took care of that in the previous implementation.

Ok thanks! I've integrated with my application and keep on testing it.
I got another error stating "An unhandled exception of type 'System.NullReferenceException' occurred" when I call GDataDB.IDatabase.GetTable, but I could fix this by giving the client email access to the google spreadsheets.
It seems to be able to read, but not to update? I receive a "An unhandled exception of type 'System.NotImplementedException' occurred in GDataDB.dll"?

I've reimplemented all features now in the https://github.com/mausch/GDataDB/tree/oauth2-apis branch.
Anyone interested should give it a try. I'll release a beta soon.

Pushed to NuGet: https://www.nuget.org/packages/GDataDB/0.6.0

Hi, it seems to work in most cases, but for some rows I receive this error when doing an update: "The remote server returned an error: (412) Precondition Failed.". No clue yet why I receive this error for some rows and not for others :-/
System.Net.WebException was unhandled
HResult=-2146233079
Message=The remote server returned an error: (412) Precondition Failed.
Source=System
StackTrace:
at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
at System.Net.WebClient.UploadString(Uri address, String method, String data)
at GDataDB.Impl.Row`1.Update() in c:\prg\GDataDB\GDataDB\GDataDB\Impl\Row.cs:line 24

@pietergent please create a separate specific issue for that.