Added random module

This PR adds a module to support creating and using random generators. It's implemented as a trait on context, with a DataPlugin to store a base random seed and a hashmap of rng instances. The design supports any rng implementation that implements rand::SeedableRandom.
The basic idea is you initialize the utility with a base random seed when setting up a context:
context.set_base_random_seed(12345678);

In a module that needs an independent random number generator, you use a macro to define an independent type, and then call context.get_rng::<YourType>() to retrieve it. For example:
define_rng!(FooRng)

let mut rng = context.get_rng::<FooRng>();
let value = rng.next_u64();

Note that an rng needs a mutable reference because it has to store internal state about previous calls in order to be reproducible.
One difference from the eosim implementation here is that I destroy existing rngs if base_seed is changed rather than using a flag on the holder.

So I gave explicit initialization a try (implementation here if you're curious: k88hudson_rng_explcit_init), which ends up looking something like this:
In your init function of the module, you call create_rng:
init() {
  // ...
  context.create_rng::<FooRng>();
}

And then later you call get_rng as normal:
some_other_method() {
  let mut foo_rng = context.get_rng::<FooRng>();

  foo_rng.next_u64();
  // ...
  foo_rng.next_u64();
}

The thing I don't like about this is that if you want to reset the base random seed, you have to deal with reinitialization (like maybe iterating through existing ones and replacing them?), which seems kind of not great

I spent a bunch of time but I couldn't figure out how to get this to work with interior mutability for the RngHolders which also having the whole HashMap in a RefCell, so submitting as is

I spent a bunch of time but I couldn't figure out how to get this to work with interior mutability for the RngHolders which also having the whole HashMap in a RefCell, so I think I'm just gonna leave it as is for now

Should this say "without also"?

To summarize some discussion: one thing we should consider here is that we will mostly be using rngs in combination with some kind of distribution/sample function. These may be created in place by a module (like the Exp example below), and sometimes they might need to be stored as a global variable / in a data container (because they are pretty large / used in multiple places or whatever).
The design in this PR returns a RefMut you have to deal with that when you pass it to a sample function, which is maybe not ideal:
let mut foo_rng = context.get_rng::<FooRng>();
let dist = Exp::new(1 / bar).unwrap();
let value = dist.sample(&mut *foo_rng);

@jasonasher did some prototyping of an alternative design where instead of the context extension providing a get_rng method, it implements a sample that retrieves the rng internally:
let dist = context.get_data_container::<SamplerData>().unwrap();
let value = context.sample::<FooRng, usize>(|rng| dist.sample(rng));
// Aternatively, pass in the whole distribution
let value2 = context.sample_distr::<FooRng, usize>(dist);

I don't this hate honestly, if you're pretty much always using rngs this way

In my experience the most common ways we use random sampling are either as distributions like this or by grabbing random f64/f32s to make future decisions, such as setting individual propensities to engage in various behaviors. So having a general sample method and then sample_distr and sample_xyz for various primitive xyz would cover all of the common use cases. I'd be interested to know if @confunguido agrees.

In my experience the most common way we use random sampling is either with distributions like this or by grabbing random f64/f32s to make future decisions, such as setting individual propensities to engage in various behaviors. So having a general sample method and then sample_distr and sample_xyz for various primitive xyz would cover all of the common use cases. I'd be interested to know if @confunguido agrees.

@jasonasher. I think I agree. Sampling from distribution, making decisions, and grabbing a random individual from a group. As a side note,  I think it would be nice to have the ability to specify and sample from custom probability distributions.

Alright, I think this is ready: updated this to expose sample and sample_distr – also added something to the macro to prevent name collisions.

@jasonasher. I think I agree. Sampling from distribution, making decisions, and grabbing a random individual from a group. As a side note, I think it would be nice to have the ability to specify and sample from custom probability distributions.

@confunguido These would be supported right out of the box with sample_distr: rand_distr. And, by implementing the Distribution trait we can support custom distributions.

So @jasonasher came up with a solution in https://github.com/CDCgov/ixa/tree/jma_rand_runtime_collision for runtime collision checking  – the thing I don't like about it is that it's easy to forget to update the field that caches name collisions given the current architecture of data containers, so I think i'd still leave this as is (unless we really don't want to require paste)

I don't think requiring paste is much of an issue - I was more reacting to handling people potentially not using the macro. My instinct is we don't have much of an update problem here for the name field caching, as it's handled in one place and not obviously likely to change much in the future, but I could be missing something and defer to your and @ekr-cfa's judgment here.

I would prefer a compile time check even if it's imperfect. I think if people color this far outside the lines, then they can suffer.


chore(vektor): Env name underscore is part of prefix, not subordinate fields

Closes #106

This may require follow up PRs in all the repos which use vektor

Yes, which is why a new version of vektor should not be imported. Also the tests in the other libraries should fail if they didn't have changes applied to them.


Correct check_chain() on X509_V_FLAG_X509_STRICT (-x509_strict option)

This has been extracted from #13658 as requested by https://github.com/openssl/openssl/pull/13658#discussion_r553858757.
Once that PR is merged the three new tests marked there as TODO can be re-enabled.

x509_vfy.c: strict check_chain() should check also single root CA certs
x509_vfy.c: rejecting unknown extensions in certs used solely as trust anchors is now done only in strict mode because such certs have been explicitly exempted from RFC requirements.
x509_vfy.c: ~check_chain() must allow V1 self-signed cert also in strict mode~
the expectations on whether a cert is (likely) a CA or not are no more checked for directly trusted EE certs because such certs have been explicitly exempted from RFC requirements.

Checklist

[x] documentation is added or updated
[x] tests are added or updated

LGTM, although maybe adding something to Changes.md would be a good idea.

Done, and also extended openssl-verification-options.pod (and one reference to it).

LGTM, although maybe adding something to Changes.md would be a good idea.

Done, and also extended openssl-verification-options.pod (and one reference to it).

@t8m, your comments have been addressed;
can you approve this as well?

@t8m, your comments have been addressed;
can you approve this as well?

Only tangentially related, I wonder if we want to add named symbols for these various values instead of hardcoding magic numbers.

I fully agree - yet another form of unreadable code :wink:
If you like, I can fix that as 2nd commit as part of this PR.
How about adding #defines to x509_local.h, or where else?
Which name prefix shall be used for them?

Only tangentially related, I wonder if we want to add named symbols for these various values instead of hardcoding magic numbers.

I fully agree - yet another form of unreadable code :wink:
If you like, I can fix that as 2nd commit as part of this PR.
How about adding #defines to x509_local.h, or where else?
Which name prefix shall be used for them?

Only tangentially related, I wonder if we want to add named symbols for these various values instead of hardcoding magic numbers.

I fully agree - yet another form of unreadable code 😉
If you like, I can fix that as 2nd commit as part of this PR.
How about adding #defines to x509_local.h, or where else?
Which name prefix shall be used for them?

I don't have strong view on which header, the prefix should indicate that that these are CA validity code points, so something like (your call):
X509_CA_STATUS_NON_CA
X509_CA_STATUS_VALID
...

But if you think of something better, go with that.  Since these are internal code points, in some suitable non-public header.

Only tangentially related, I wonder if we want to add named symbols for these various values instead of hardcoding magic numbers.

I fully agree - yet another form of unreadable code 😉
If you like, I can fix that as 2nd commit as part of this PR.
How about adding #defines to x509_local.h, or where else?
Which name prefix shall be used for them?

I don't have strong view on which header, the prefix should indicate that that these are CA validity code points, so something like (your call):
X509_CA_STATUS_NON_CA
X509_CA_STATUS_VALID
...

But if you think of something better, go with that.  Since these are internal code points, in some suitable non-public header.

It turns out that those wonderful magic numbers returned by {X509_,}check_ca need to be defined publicly because they are returned by the public function X509_check_ca and have already been documented along with it.
So added the mnemonic names to x509v3.h.in where also X509_check_ca is declared.

It turns out that those wonderful magic numbers returned by {X509_,}check_ca need to be defined publicly because they are returned by the public function X509_check_ca and have already been documented along with it.
So added the mnemonic names to x509v3.h.in where also X509_check_ca is declared.

I've just tentatively added a further check to check_chain():
        /*
         * Check the validity of the cert representation beforehand
         * because otherwise the return code of X509_check_ca(x)
         * and various other checks actually have no (useful) value
         */
        CHECK_CB((x->ex_flags & EXFLAG_INVALID) != 0,
                 ctx, x, i, X509_V_ERR_INVALID_CERTIFICATE_FORMAT);

but maybe this is redundant because it is guaranteed not to happen when reaching it?

I've just tentatively added a further check to check_chain():
        /*
         * Check the validity of the cert representation beforehand
         * because otherwise the return code of X509_check_ca(x)
         * and various other checks actually have no (useful) value
         */
        CHECK_CB((x->ex_flags & EXFLAG_INVALID) != 0,
                 ctx, x, i, X509_V_ERR_INVALID_CERTIFICATE_FORMAT);

but maybe this is redundant because it is guaranteed not to happen when reaching it?

Rebased to solve merge conflicts.
Is this okay now?

Rebased to solve merge conflicts.
Is this okay now?

This PR is in a state where it requires action by @openssl/otc but the last update was 30 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 61 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 92 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 30 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 61 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 92 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 123 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 185 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 216 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 247 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 278 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 309 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 340 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 371 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 402 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 433 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 464 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 30 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 61 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 92 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 123 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 154 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 185 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 216 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 247 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 278 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 309 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 340 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 371 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 402 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 433 days ago

This PR is in a state where it requires action by @openssl/otc but the last update was 495 days ago

We should revive this as it seems to make sense. Unfortunately it needs a rebase.

We should revive this as it seems to make sense. Unfortunately it needs a rebase.

After languishing for two years without any action, that is not surprising.

Could you please rebase the PR to resolve conflicts?


Please update PIP

Hi!
Can you please update PIP with the latest & greatest python-cephclient?
Thanks in advance!

Great idea, some features are indeed only in the master branch - will try and do it soon.

Hi !
I've drafted a new release, available @

Github: https://github.com/dmsimard/python-cephclient/releases/tag/v<IP_ADDRESS>
PyPi: https://pypi.python.org/pypi/python-cephclient/<IP_ADDRESS>

I even did some code cleanup and bug fixing prior to release as a bonus :)
Thanks and let me know if you have any feedback !


fix(inputs): unify outline prop in stories and added it to select

I don't believe this is the correct style


Add highlight for links to guest tutorials and Teachable Machine videos

I think it is easy to overlook the links to the guest tutorials and the Teachable Machine videos, so I highlighted "guests" and "Teachable Machine":

Ooops, I was too slow, if we could correct in a separate pull request that would be great!

Sorry, my PR title isn't accurate, only some text is highlighted not the actual link.


数据库1000个标签后  lanraragi_cn无法启动

上传了1200本漫画  1000个标签 230G左右的占用
docker启动 在900标签的时候 3-4分钟会启动成功 现在到第五分钟服务会启动失败
日志:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-lrr-setup: executing...
[cont-init.d] 01-lrr-setup: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
mkdir: can't create directory '/root/lanraragi/log': File exists
mkdir: can't create directory '/root/lanraragi/public/temp': File exists
rm: can't remove '/root/lanraragi/public/temp/server.pid': No such file or directory
rm: can't remove '/root/lanraragi/public/temp/shinobu.pid': No such file or directory
rm: can't remove '/root/lanraragi/public/temp/minion.pid': No such file or directory
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
后测试英文原版 挂载至第六分钟 服务正常启动
日志:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service init: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
rm: can't remove '/home/koyomi/lanraragi/public/temp/server.pid': No such file or directory
rm: can't remove '/home/koyomi/lanraragi/public/temp/shinobu.pid': No such file or directory
rm: can't remove '/home/koyomi/lanraragi/public/temp/shinobu.pid-s6': No such file or directory
rm: can't remove '/home/koyomi/lanraragi/public/temp/minion.pid': No such file or directory
rm: can't remove '/home/koyomi/lanraragi/public/temp/minion.pid-s6': No such file or directory
s6-rc: info: service init successfully started
s6-rc: info: service redis: starting
s6-rc: info: service redis successfully started
s6-rc: info: service lanraragi: starting
s6-rc: info: service lanraragi successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Attempting to create directory /home/koyomi/perl5
[2023-01-15 13:29:02.31906] [20731] [info] Listening at "http://*:3000"
[2023-01-15 13:29:02.31946] [20731] [info] Manager 20731 started
[2023-01-15 13:29:02.32321] [20770] [info] Worker 20770 started
[2023-01-15 13:29:02.32536] [20776] [info] Worker 20776 started
[2023-01-15 13:29:02.32692] [20782] [info] Worker 20782 started
[2023-01-15 13:29:02.32798] [20731] [info] Creating process id file "/home/koyomi/lanraragi/public/temp/server.pid"
[2023-01-15 13:29:02.32874] [20788] [info] Worker 20788 started
Use of uninitialized value $userdir in concatenation (.) or string at ./lib/Shinobu.pm line 66.
invalid top directory at /usr/share/perl5/core_perl/File/Find.pm line 130.
Use of uninitialized value in concatenation (.) or string at /home/koyomi/lanraragi/script/../lib/LANraragi/Model/Config.pm line 130.
Use of uninitialized value in concatenation (.) or string at /home/koyomi/lanraragi/script/../lib/LANraragi/Model/Config.pm line 130.
Starting LANraragi with UID/GID : 9001/9001
usermod: no changes
Server PID will be at /home/koyomi/lanraragi/public/temp/server.pid
ｷﾀ━━━━━━(ﾟ∀ﾟ)━━━━━━!!!!!
Enabling AOF on Redis... This might take a while.


chore(Dependencies) : update zio-logging-slf4j from 0.5.14 to 2.1.2

Updates dev.zio:zio-logging-slf4j from 0.5.14 to 2.1.2.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio", artifactId = "zio-logging-slf4j" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "dev.zio", artifactId = "zio-logging-slf4j" }
}]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #530.


Stuck on launching: cutecoin fails while scanning the network

Trying to launch Cutecoin, it is being stuck with following error stacktrace:
DEBUG:__init__:Error : node uid not found :
DEBUG:__init__:[[<ucoinpy.documents.peer.BMAEndpoint object at 0x7efd20030080>], [<ucoinpy.documents.peer.BMAEndpoint object at 0x7efd200237b8>], [<ucoinpy.documents.peer.BMAEndpoint object at 0x7efd200238d0>]]
DEBUG:__init__:['HnFcSms8jzwngtVomTTnzudZx7SHUQY8sVE1y8yBmULk', '7p3X4Y7g4PSo9EKd8rqcc4ty7cheQfqyFmVYLAzkHLNu']
DEBUG:__init__:Traversing : next to read : cUzBEnt4LAY3VXYp2mZH2szgC46Q6HMQvqjKr15mqUZ : True
Traceback (most recent call last):
  File "/home/inso/cutecoin/src/cutecoin/gui/mainwindow.py", line 48, in load
  File "/home/inso/cutecoin/src/cutecoin/core/app.py", line 62, in get_account
  File "/home/inso/cutecoin/src/cutecoin/core/app.py", line 162, in load_account
  File "/home/inso/cutecoin/src/cutecoin/core/app.py", line 184, in load_cache
  File "/home/inso/cutecoin/src/cutecoin/core/community.py", line 158, in load_merge_network
  File "/home/inso/cutecoin/src/cutecoin/core/net/network.py", line 71, in merge_with_json
  File "/home/inso/cutecoin/src/cutecoin/core/net/network.py", line 174, in crawling
  File "/home/inso/cutecoin/src/cutecoin/core/net/node.py", line 273, in peering_traversal
  File "/home/inso/cutecoin/src/cutecoin/core/net/node.py", line 271, in peering_traversal
TypeError: 'bool' object is not callable
QThread: Destroyed while thread is still running

It would be nice if Cutecoin just skip if an exception is raised, because here I cannot even access my account whereas at least 2 nodes are able to answer requests.

Fixed in 0.9.1


Feature request: PostLoadInterface for model classes

It would be nice to have an interface that a class can implement that contains a Load method. That method would get called after all the properties are set when reading a record from the database. This lets us do any processing after a model gets created for runtime data that does not get stored in the database. Normally you would use a constructor for things like this, but we can't in this case since the properties would not be set yet.
I think you could do this by checking if the type you are instantiating is an instance of the interface, then call that method.

Hi @emrys90, serialization/deserialization from/to POCO class to BsonDocument has a lot feature request. I'm organizing source, in next version, to this operation is an "external" plugin using interfaces.

Hi @emrys90, BsonMapper change to be more flexible to support custom classes. Take a look in new version.


Invoice prebuilt models of Document Intelligence does not detect all line items

Package Name: azure-ai-documentintelligence
Package Version: 1.0.0b2
Operating System: Windows
Python Version: 3.10.9

Describe the bug
I have a 2 page invoice document (1st page table 18 rows of line items, 2nd page table 1 row of line item) of total 19 line items. I am using both the studio and sdk for testing purposes.
The prebuilt model does not really extract all line items out neatly. For context, the document is searchable so there should be no issue in detecting each line.
Questions:

Why the invoice prebuilt model cannot detect each line item?
Any document preprocessing needed from user side to enhance model performance?
How often are the prebuilt models retrained?

Expected behavior
All line items in table detected.
Screenshots
This is a screenshot from studio. There are 2 rows in the document that are being detected as a single entity.

Original document (texts are highlighted to show that they are searchable)

Hi @galvangoh , thanks for your feedback, we'll investigate ASAP!
@bojunehsu This issue is from prebuilt-invoice model, can you help to answer the questions?

@galvangoh Can you please share the original input file with us<EMAIL_ADDRESS>to assist with debugging?  We regularly update the models a few times a year to improve quality and reflect feedback such as this.  Thanks.

@bojunehsu I have shared the document with you via the email address you provided.

Hey @bojunehsu are there any updates with the debugging?

Hi @galvangoh ,
I hope all is well with you. I don't know if you saw our email response. This issue is caused by table detection dropping the 11 from the table.

We are looking potential improvements we will circle back when we have an update.
Thanks

Hi @TFR258 thank you for your reply.


fix access to local $ref definition

fix issue #365 (at least in my case)

fix both issues #367  and #369


ESLint enforce React hooks to be in UPPERCASE

Hello,
I opened an issue because during Collaboratio development I was facing to a warning from ESLint that shouldn't exist. Indeed, react hooks declare as below must be constant (Because the change of value is being managed somewhere else in React). Nonetheless, according to our ESLint rules constants variables must be in UPPERCASE this is in opposition to “React good practices”; as a matter of fact, in “React good practices” hooks should be in camelCase.
import React from 'react';

export default function MyComponent(): JSX.Element{

    // ESLint warning on openMenu and setOpenMenu to change typography as UPPERCASE

    const [openMenu, setOpenMenu] = React.useState(false);

    return(
    <React.Fragment />
    )
}

Kind regards,
Kilian GOËTZ.

Hi, sorry for the delay, the issue has been already encountered, but avoided. I didn't foresee this would be a recurrent problem. The fix was pretty easy, as the designers of the rules that handle the naming convention did see this problem coming and wrote the solution in the documentation.

After some more testings, it occurs that the issue is not resolved. Destructurized variables are only considered as is when they come from an object, not an array. This is logical but annoying in our case. The issue can be solved by introducing a specific convention for state variables, like for example : SOpenMenu. This kind of conventions are more often used with interfaces (IMyInterface). On the other hand, states are constants, so writing them as constants does not look weird to me.
The issue on the setOpenMenu is still fixed.

Hello,
Thanks for the fix. Hooks state could be in uppercase, it's not a problem. While the issue is fixed for hooks it's good to me.

Okay, I mark this issue as fixed in dev until tests shows that all fixes are effective in real cases.

Hi,
Fix was tried in Collaboratio and everything work ✨.


fixed panning bug

Resolves #165 reasonably well by only changing domain if it's in the bounds of the data, but there are other possible solutions eg removing the charts when new data is being loaded

Nice idea, but there still seems to be an issue where the extent rect will only snap back into place when the mouse is moved and not when the data is loaded (very minor issue though).
I think I'm leaning towards showing a loading indicator and hiding the charts.

I agree, I think we should add a loading screen - will comment on the bug - perhaps we should create an issue for this too?


ValueError: Cannot load file containing pickled data when allow_pickle=False

After I run the command python3.9 precompute_img_embed.py -i ../data/MedSAMDemo_2D/train/images -o ./data/Tr_npy, it shows the  File "/home/xiao/programming/2023Project/train/MedSAM-0.1/utils/precompute_img_embed.py", line 34, in <module>     img = np.load(join(pre_img_path, name))['img'] # (256, 256, 3)   File "/usr/local/lib/python3.9/dist-packages/numpy/lib/npyio.py", line 462, in load     raise ValueError("Cannot load file containing pickled data " ValueError: Cannot load file containing pickled data when allow_pickle=False xiao@xiaos-legion:~/programming/2023Project/train/MedSAM-0.1/utils$

could you please try the latest code? Precomputing image embedding is not required.


Reorganize StringFormatArgsAnalyzer to use the correct severities

Fixes #585
StringFormatArgsAnalyzer was always raising an error, when it is not an
error to have extra parameters. So we have taken an extra id, CC0111 to
use as the warning, when string.Format is being provided more arguments
than the format string is requiring.
This will now raise a warning:
string.Format("{0}", "a", "b");

When string.Format has less arguments than the format string requires,
we are still raising CC0056, as an error, as it will generate a
runtime error.
This will now raise an error:
string.Format("{0}{1}", "a");

Other verifications the analyzer was already checking continue as
before.

@giggio This code could be show a warning:
var x = string.Format("{0}");

What do you think about ?:

@carloscds Yes, it should show an error, I will fix it.

@carloscds fixed!


test

Context
Testing improving docker build process - spike
Changes proposed in this pull request
Guidance to review

closing test


auto detect browser

This PR resolves the #9 and #10 issues
It checks for a valid browser within the directory if the browser path flag is not set, so it is optional
returns an error if the flag is not set and there are no valid browsers(#9 )
The debug flag also provides instruction on adding the browser path.

Tests are now failing on this branch :)

Please remove the downloaded files (formatted, json and markdown) from the PR.

I have removed them

Tests are now failing on this branch :)

Yes they are failing with a permission denied
./tests.py
  shell: /usr/bin/bash -e {0}
  env:
    OS: ubuntu-latest
    PYTHON: [3](https://github.com/caffo/roam-to-git/actions/runs/4856066952/jobs/8655235071?pr=16#step:7:3).8
    pythonLocation: /opt/hostedtoolcache/Python/3.8.16/x6[4](https://github.com/caffo/roam-to-git/actions/runs/4856066952/jobs/8655235071?pr=16#step:7:4)
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib
/home/runner/work/_temp/dcd9c363-b209-41eb-90b[5](https://github.com/caffo/roam-to-git/actions/runs/4856066952/jobs/8655235071?pr=16#step:7:5)-9cba3f55f[6](https://github.com/caffo/roam-to-git/actions/runs/4856066952/jobs/8655235071?pr=16#step:7:6)3[7](https://github.com/caffo/roam-to-git/actions/runs/4856066952/jobs/8655235071?pr=16#step:7:7).sh: line 1: ./tests.py: Permission denied

I checked the test that passed and this and they are both the same
I am not sure what permissions are getting denied


can't add a breakpoint for C++

Env
OS: Linux (x64)
gdb: 10.2
vscodium: 1.59.1
Required Info

[x] If you are using gdb

[x] gdb --version >= 7.7.1
[x] it works on the command line with gdb
[x] cwd and target are properly set

Description
A single file hello-world project.
HelloApp.cpp
#include <iostream>

int main(int argc, char **argv)
{
    int a = 1;
    int b = 2;
    int c = a + b;
    std::cout << c << std::endl;
    return 0;
}

tasks.json
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "echo",
            "type": "shell",
            "command": "g++ -g HelloApp.cpp",
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

launch.json
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug",
            "type": "gdb",
            "request": "launch",
            "target": "./a.out",
            "cwd": "${workspaceRoot}",
            "valuesFormatting": "parseText"
        }
    ]
}

Problem
can't add a breakpoint by the methods below

F9
vscode command: Debug: Toggle Break
click in editor at the position of indicator for breakpoint

it might work if you install the C/C++ extension from the marketplace, but this should be fixed with next release

it might work if you install the C/C++ extension from the marketplace
I've installed it from the default extension marketplace for vscodium, i.e. open-vsx
Do you mean the extension marketplace by microsoft?

There are multiple C/C++ extensions in the marketplace, as a workaround you could try the following

Use the Command Palette (Ctrl+Shift+P) to search for Settings, or navigate to File > Preferences > Settings from the menu.  Select the User tab, and then User > Features > Debug.  Activate the Allow Breakpoints Anywhere option.

Thanks


Remove camptocamp/puppet-augeas dependency

Pull Request (PR) description
camptocamp/puppet-augeas depends on puppetlabs/augeas_core while itself being out of support.  This removes references to the camptocamp module and goes straight to using augeas_core.
This shouldn't introduce any new dependency that wasn't inherently already there.
This Pull Request (PR) fixes the following issues
#353 mentions puppet8 in the title but this module fix in the description.  Out of an abundance of caution of not stepping on someone else's issue, I'm not marking this as 'fixes'.

thanks for the patch!


chore(merge-back): 1.12.0

See CHANGELOG

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 5ddc9f24da95d5196f36bd5a5562e9599ff725e9
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Contributor's Logo and Addition of Preloader

issue #210
issue #211
Description
Addition contributor's Logo and Preloader.
Fixes:  #210  and #211

Type of change

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

Checklist:

[X] I have made this from my own
[X] I have taken help from some online resourses
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK (if applicable)

https://github.com/Dev-tanay/Rubik-Cube/assets/154777864/25cfca1b-c614-42b8-85b5-8e08f549e097

@Dev-tanay please review the PR

Changing the Preloader is possible with a cube?

Yes sure

@Dev-tanay i made the changes and also this PR containes both issues of #210 and #211
i think if possible u can add level 2 label to the PR #214

@Dev-tanay please review the changes

@Dev-tanay

@Dev-tanay please review the Pr

Please attach a video @Anjaliavv51

@Dev-tanay please see the above attached videos

@Dev-tanay please see the attached video

@Dev-tanay please review the PR

@Dev-tanay please review the PR

@Dev-tanay please review the changes
@Dev-tanay i made the changes and also this PR containes both issues of #210 and #211
i think if possible u can add level 2 label to the PR #214

@Dev-tanay please review the PR

@Dev-tanay please add level 2 label as it contains both , addition of Preloader and contributors logo

@Dev-tanay please add level 2 label as it contains both , addition of Preloader and contributors logo

@Dev-tanay please add level 2 label as it contains both , addition of Preloader and contributors logo

@Dev-tanay please add level 2 label as it contains both , addition of Preloader and contributors logo


Update README.md

adding the communities

Hi @tactfunc, if you'd like to claim this SBT https://society.ton.org/contribute-to-tact-compiler, please provide your TON wallet address


Nginx Error NanoExpress Server

I've created two simple servers.
Version
Nginx - 1.24.0
NanoExpress - 6.2.2
Express Classic -4.18.2
NanoExpress
import nanoexpress from 'nanoexpress';

const app = nanoexpress();

app.get('/', (req, res) => { return res.send({ status: 'ok' }); });

app.listen(3000);

Express Classic
import express from "express";

const app = express(); const port = 3000;

app.get('/', (req, res) => { res.send('Welcome to my server!'); });

app.listen(port, () => { console.log(`Server is running on port ${port}`); });

In the Nginx settings
proxy_pass http://localhost:3000;
When querying the curl server http://localhost:3000 both servers work fine.
When requesting through nginx, the server on express classic works fine. Server on NanoExpress gives error 502 and makes an entry in the logs:
upstream prematurely closed connection while reading response header from upstream, client: <IP_ADDRESS>, server: api.meteorhr.com, request: "GET / HTTP/1.1", upstream: "http://<IP_ADDRESS>:3000/", host: "api.meteorhr.com", referrer: "http://api.meteorhr.com/
What is missing in nginx for correct work of NanoExpress?

In case anybody else is facing this issue, I solved it by adding proxy_http_version 1.1; in the location block.

In case anybody else is facing this issue, I solved it by adding proxy_http_version 1.1; in the location block.


Adds Offerings.getCurrentOfferingForPlacement()

This adds the Offerings.getCurrentOfferingForPlacement() functionality back, which was removed in https://github.com/RevenueCat/purchases-kmp/pull/121.
In order to make this non-breaking, I added a lambda constructor parameter to Offerings. I don't entirely love it, but all the alternatives I could think of are breaking in one way or another (e.g. making Offerings an interface). Please do let me know all your ideas! I'm also happy to discuss this more.

Dependency: https://github.com/RevenueCat/purchases-hybrid-common/pull/938
Addresses: https://github.com/RevenueCat/purchases-kmp/issues/242

@tonidero Hmm yea I don't think I prefer that either. That's an(other) async API which I think is less ergonomic than just making it available on the Offerings type.
Maybe adding the lambda to the constructor is not super terrible? Devs are unlikely to be constructing it, and even if they are (e.g. in tests), they don't have to come up with an implementation of the lambda as it's optional.
There's always the option to deprecate the constructor and make it an interface in a major, but then we have an interface, which is not great in itself haha.

Hmm so after looking at the other hybrids, I think all of them are actually using the function in Purchases... So I'm thinking, for the sake of consistency, I might prefer that.
FWIW, I think usage would be fine, as in the developer can just call the Purchases.sharedInstance.getCurrentOfferingForPlacement wherever they need, since the value should be cached in the native layer, it should be quick...

@tonidero I think we're either going to be consistent with the native platform SDKs or with the hybrid SDKs.
I agree that it'll be quick because it's cached, but it is still an async API. Async APIs are far less user-friendly than sync APIs imo. What if a dev wants to get all Offerings and get the current one for a placement?

In the Purchases.sharedInstance.getCurrentOfferingForPlacement case, they'd need to call 2 async APIs (Purchases.sharedInstance.getCurrentOfferingForPlacement and Purchases.sharedInstance.getOfferings). If they're not using coroutines, they are officially in callback hell.
In the Offerings.getCurrentOfferingForPlacement case, they'd just need the one call to Purchases.sharedInstance.getOfferings and have all they need.

I think having a slightly odd constructor parameter (that devs are unlikely to call) is a price worth paying for this user-friendliness.
@vegaro Wanna be the tie breaker here? 😄

I am leaning towards the native way of doing this (Offerings.getCurrentOfferingForPlacement). Even if we have to store that lambda in the constructor, I think that's implementation details for a nicer API.

Sounds good then 👍


[Fix] - Headers/options not being added properly

Description
This changes STREAMLINK_FLAGS from a variable to an array and passe the values properly too Streamlink with support for spaces in the flag.
Also fixed some typos in the script and readme file

Warning
You will need to update your existing config with the new changes (array instead of just a string variable)

Before:
STREAMLINK_FLAGS="--twitch-disable-hosting --twitch-disable-reruns"

After:
STREAMLINK_FLAGS=("--twitch-disable-hosting" "--twitch-disable-reruns")

TOOD:

[ ] Testing
[x] Add docs regarding twitch-api-header for bypassing ads
[x] Cleanup

Related Issues

closes #70

Checklist

[x] The issues this PR addresses are related to each other
[x] My changes generate no new warnings
[x] My code builds and runs on my machine
[x] My changes are all related to the related issue above
[x] I documented my code

Docker logs
2023-08-06 02:13:34 00:13:34| Docker detected
2023-08-06 02:13:34 00:13:34| Selected streamer: ropz
2023-08-06 02:13:34 00:13:34| Found config file
2023-08-06 02:13:34 00:13:34| Starting AutoVOD
2023-08-06 02:13:34 00:13:34| Loading ropz.config
2023-08-06 02:13:34
2023-08-06 02:13:34 00:13:34| Checking twitch.tv/ropz for a stream
2023-08-06 02:13:35 [cli][info] streamlink is running as root! Be careful!
2023-08-06 02:13:35 [cli][debug] OS:         Linux-5.15.49-linuxkit-aarch64-with
2023-08-06 02:13:35 [cli][debug] Python:     3.10.12
2023-08-06 02:13:35 [cli][debug] Streamlink: 6.0.1
2023-08-06 02:13:35 [cli][debug] Dependencies:
2023-08-06 02:13:35 [cli][debug]  certifi: 2023.7.22
2023-08-06 02:13:35 [cli][debug]  isodate: 0.6.1
2023-08-06 02:13:35 [cli][debug]  lxml: 4.9.3
2023-08-06 02:13:35 [cli][debug]  pycountry: 22.3.5
2023-08-06 02:13:35 [cli][debug]  pycryptodome: 3.18.0
2023-08-06 02:13:35 [cli][debug]  PySocks: 1.7.1
2023-08-06 02:13:35 [cli][debug]  requests: 2.31.0
2023-08-06 02:13:35 [cli][debug]  trio: 0.22.2
2023-08-06 02:13:35 [cli][debug]  trio-websocket: 0.10.3
2023-08-06 02:13:35 [cli][debug]  typing-extensions: 4.7.1
2023-08-06 02:13:35 [cli][debug]  urllib3: 2.0.4
2023-08-06 02:13:35 [cli][debug]  websocket-client: 1.6.1
2023-08-06 02:13:35 [cli][debug] Arguments:
2023-08-06 02:13:35 [cli][debug]  url=twitch.tv/ropz
2023-08-06 02:13:35 [cli][debug]  stream=['480p']
2023-08-06 02:13:35 [cli][debug]  --loglevel=debug
2023-08-06 02:13:35 [cli][debug]  --output=-
2023-08-06 02:13:35 [cli][debug]  --stdout=True
2023-08-06 02:13:35 [cli][debug]  --hls-duration=300
2023-08-06 02:13:35 [cli][debug]  --twitch-disable-reruns=True
2023-08-06 02:13:35 [cli][debug]  --twitch-api-header=[('Authorization', 'OAuth abc123123')]
2023-08-06 02:13:35 [cli][info] Found matching plugin twitch for URL twitch.tv/ropz
2023-08-06 02:13:35 [plugins.twitch][debug] Getting live HLS streams for ropz
2023-08-06 02:13:35 [plugins.twitch][debug] {'adblock': False, 'geoblock_reason': '', 'hide_ads': False, 'server_ads': True, 'show_ads': True}
2023-08-06 02:13:35 [utils.l10n][debug] Language code: en_US
2023-08-06 02:13:35 [cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 720p60, 1080p60 (best)
2023-08-06 02:13:35 [cli][info] Opening stream: 480p (hls)
2023-08-06 02:13:35 [stream.hls][debug] Reloading playlist
2023-08-06 02:13:35 [cli][debug] Pre-buffering 8192 bytes
2023-08-06 02:13:36 [stream.hls][debug] First Sequence: 2204; Last Sequence: 2217
2023-08-06 02:13:36 [stream.hls][debug] Start offset: 0; Duration: 300; Start Sequence: 2215; End Sequence: None
2023-08-06 02:13:36 [stream.hls][debug] Adding segment 2215 to queue
2023-08-06 02:13:36 [stream.hls][debug] Adding segment 2216 to queue
2023-08-06 02:13:36 [stream.hls][debug] Adding segment 2217 to queue
2023-08-06 02:13:36 [stream.hls][debug] Writing segment 2215 to output

The OAuth code is passed successfully and I receive 'show_ads':False instead of show_ads':True so it seems to be working with an account with a sub or Twitch Turbo. Thank you for the update.
[14:34:09.452327][plugins.twitch][debug] {'adblock': False, 'geoblock_reason': '', 'hide_ads': True, 'server_ads': True, 'show_ads': False}
With 00:05:00 duration I successfully uploaded a test video, no ads/purple screens were displayed or discarded fragments. The video was uploaded with the correct title/description from meta info and the correct playlist from STREAMLINK_FLAGS array. This should mean testing is complete for update https://github.com/jenslys/autovod/pull/71.

@Zfalcor yeah i am aware of the youtube issue, i can add som sort of doc regarding this.
Thanks for testing!


Not seekable audio files in Chrome - "Range"/"Partial Content" support should be added?

Hi,
Working with audio files stored with the help of UFS and ufs-gridfs, I've found that in Chrome they are not seekable when playing them in the HTML5 audio player (tag <audio ...>). However, in Firefox there is no such a problem.
:one: Googling the web, I found that it may be related to the ability of the server to correctly process  Range header in the browser request - see here:

Make sure the server accepts Range requests, you can check to see if Accept-Ranges is in the header

and especially here - see subsection "Byte-Range Requests":

Your server must enable Range requests. This is easy to check for by seeing if your server's response includes the Accept-Ranges in its header. Most HTML5 browsers enable seeking to new file positions during a download, so the server must allow the new Range to be requested.
Failure to accept byte Range requests will cause problems on some HTML5 browsers...
Chrome tends to be the browser that has most problems if the Range request is not enabled on the server, but all browsers will have some issue even if it is only that you have to wait for all the media to load before jumping close to the end.

:two: Valuable recommendations
are also given in Can't seek html5 video or audio in chrome and HTML5 video will not loop (GridFS):

Our server doesn't understand partial content right now. As a result chrome is sending requests for content that doesn't get answered which in turn makes our video's and audio unseekable (and unloopable).

and

As it turns out, looping (or any sort of seeking, for that matter) in  elements on Chrome only works if the video file was served up by a server that understands partial content requests. i.e. the server needs to honor requests that contain a "Range" header with a 206 "Partial Content" response. This is even the case if the video is small enough to be fully buffered by chrome, and no more server-round trips are made: if your server didn't honor chrome's Range request the first time, the video will not be loopable or seekable.

(see more details at the links above)
:three:  Checking my Chrome console
I found that it contains Range request too:

:white_check_mark: Suggestion
I'm not sure but if UFS influences the server headers and server response when uploading a file from the GridFS, it could be nice to take into account the abovementioned recommendations and process the Range requests from Chrome (and possibly from other browsers).
Sorry if this suggestion has no relation to your package.
P.S.
I also understood that just the reason discussed above may be responsible for sudden stopping playing HTML5 <audio> in Chrome (in some cases with the error message Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH).

Hi @seabrus, I need more time to dig into that issue, but I think that adding the header won't be enough, I would maybe have to handle this case and return the byte range on server side.
Please be patient. Thanks.

Hi @jalik, thanks for your efforts and support!

@seabrus the 0.7.0_2 should fix your problem.

@jalik thank a lot! It is a pleasure to work with you


when using KVStyleStringDictionary ...

... with "true" and some Dictionaries have integers as keys, with a new configuration "IntDictionaryKeysToString" can be converted to string too when it generates the json string

i've to do some changes, i'll resubmit a pull new pull request :)


Handle .m3u8 files?

Whilst downloading from WCOStream, I noticed that the resulting episodes were written as .mp4 whilst actually being .m3u8. This seems to have resulted from the source object:
[
  ('no_extractor', 'https://jjka.mcloud.to/12a3c523ff10040ae8d4785897aeeb0bc02eaa5c14e4e3fa4b4c7baea96ed0842f54d0184f6527effd35c248a146eb8df28fcf1d877ed2e8c0eefd680420a692659940f2161ab15a5e92a6ba74462851383df35707083f97d99abd00cea02a996e10a5441566bd14abac6148ea5b129cb87ec2a4731d5fb2d6c7/r/list.m3u8'),
  ('no_extractor', 'https://rnrjz.vizcloud.digital/simple/EqPFI_8QBAro1HhYl67rC8AuqlwU5OP6S0x7rqk+wYMnU94US2El/br/list.m3u8#.mp4'),
  ('no_extractor', 'https://rnrjz.vidstream.pro/EqPVJvsOWF322yVezviuGdNz9wsVp_2yTlow5Od52MBlQ9QQHn4n9bdpnxelQ_yI+tzdG4991O3U7PJsBCOikmeZRvMNGb1ZRZKivXxFIkYzNJElHAY1ic6TvBPIpC2GfRaxQV9Bl0Hm4zYPtkVMxq58xL8vTA6qwMybStuh_uSFApUo1w3DioJAapuEUg/br/list.m3u8')
]

That is obviously not the real download... Now, I am unfortunately not an ffmpeg wizard, but I wouldn't be surprised if it could be used to solve this problem.
Hence, I would like to request proper handling of those files as a feature, plain and simple. :)
Thanks and kind regards,
Ingwie

https://github.com/Fantasy-Boss/9anime-Downloader
9anime Downloader
Features:

Download Whole Season with One click.
Download options: Sub - Dub - Video Quality.
Fully Free, no Ads, no Virus, 100% Safe.
Scrapping with progress bar.
One click IDM Queue.


How to load registered model and existing environment for online endpoint deployment

Hello,
I'm trying to leverage existing models already registered in AML workspace. Here is my python code for this purpose.
ml_client = MLClient(
DefaultAzureCredential(), subscription_id, resource_group, workspace
)
endpoint = ManagedOnlineEndpoint(
name=online_endpoint_name, description="this is a PBI online endpoint",
auth_mode="key", tags={"model": "PBI"}
)
model = Model.load(path="./pbi-model.yml")
The pbi-model.yml is listed as follows.
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
name: model-pbi
model: azureml:leadscoringpbi_rule_latest:1
Also similar issue exists for loading AML environment using yml file. Here is my env yaml file.
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
name: pbi-env
environment: azureml:env:20
"leadscoringpbi_rule_latest:1" is my registered model. BTW, I registered this model using old python SDK or CLI v1. If this does matter, please let me know I need to register using CLI v2 or latest python SDK.
The yml file is from this page: https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-deployment-managed-online
The error messages are
Validation for EnvironmentSchema failed:
{
"environment": [
"Unknown field."
]
}
or
Validation for EnvironmentSchema failed:
{
"model": [
"Unknown field."
]
}
Please let me know how to do this.
Thanks,
Harry

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 67b830d5-a651-4d90-8b5d-4b5dada98706
Version Independent ID: b1a9753e-541f-d4ea-b3c4-518aadf3c77b
Content: Deploy machine learning models to managed online endpoint using Python SDK v2 (preview). - Azure Machine Learning
Content Source: articles/machine-learning/how-to-deploy-managed-online-endpoint-sdk-v2.md
Service: machine-learning
Sub-service: mlops
GitHub Login: @shivanissambare
Microsoft Alias: ssambare

Thanks for the feedback! We are currently investigating and will update you shortly.

Thank you. I've figured out the approach to using registered model/environment with CLI v2.

@YutongTie-MSFT even though this issue is closed by OP, we are still facing a problem when trying to use existing model registered under Azure ML using SDK v2.
The way we have tried is:
model = Model(name="credit_risk_model_v1", version="1")
env = Environment(
    conda_file="./code/deploy/environment.yml",
    image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210727.v1",
)

blue_deployment = ManagedOnlineDeployment(
    name="blue",
    endpoint_name=online_endpoint_name,
    model=model,
    environment=env,
    code_configuration=CodeConfiguration(
        code="./code/deploy", scoring_script="score.py"
    ),
    instance_type="Standard_F2s_v2",
    instance_count=1,
)

However, it fails with:
Traceback (most recent call last):
  File ".\code\deploy\deploy_local.py", line 51, in <module>
    ml_client.begin_create_or_update(blue_deployment)
  File "C:\Users\waqas.hussain\.conda\envs\deployer\lib\site-packages\azure\ai\ml\_ml_client.py", line 590, in begin_create_or_update
    return _begin_create_or_update(entity, self._operation_container.all_operations, **kwargs)
  File "C:\Users\waqas.hussain\.conda\envs\deployer\lib\functools.py", line 840, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "C:\Users\waqas.hussain\.conda\envs\deployer\lib\site-packages\azure\ai\ml\_ml_client.py", line 672, in _
    return operations[AzureMLResourceType.ONLINE_DEPLOYMENT].begin_create_or_update(entity, **kwargs)
  File "C:\Users\waqas.hussain\.conda\envs\deployer\lib\site-packages\azure\ai\ml\_telemetry\activity.py", line 169, in wrapper
    return f(*args, **kwargs)
  File "C:\Users\waqas.hussain\.conda\envs\deployer\lib\site-packages\azure\ai\ml\operations\_online_deployment_operations.py", line 109, in begin_create_or_update
    upload_dependencies(deployment, orchestrators)
  File "C:\Users\waqas.hussain\.conda\envs\deployer\lib\site-packages\azure\ai\ml\_utils\_endpoint_utils.py", line 148, in upload_dependencies
    if deployment.model
  File "C:\Users\waqas.hussain\.conda\envs\deployer\lib\site-packages\azure\ai\ml\operations\_operation_orchestrator.py", line 165, in get_asset_arm_id
    result = self._get_model_arm_id(asset, register_asset=register_asset)
  File "C:\Users\waqas.hussain\.conda\envs\deployer\lib\site-packages\azure\ai\ml\operations\_operation_orchestrator.py", line 246, in _get_model_arm_id
    error=e,
azure.ai.ml._ml_exceptions.ModelException: Error with model: 'NoneType' object has no attribute 'as_posix'

Cool. Thanks @waqassiddiqi for the great exploration!


Pull Requests

Team,
Are you accepting pull requests?
Regards,
Zaheer

We do. See our contribution guide.
If you have an enhancement in mind, you may want to bounce this off design system maintainers before starting work. Feel free to do so in this issue, or if you're a GE employee, pop into the #predixdesignsystem slack channel.
I'll close this issue but won't lock the conversation in case you have a follow up question.


draggabilly and jqueryUI resizable  can't use cooperatively

first  move parent Div ,
then resize child Div.
finally child Div  display incorrectly
if remove the containment option   the case is ok.
demo https://codepen.io/oceanstick/pen/Rjqxyj

If you're using jQuery UI resizable, then I recommend you use jQuery UI Draggable

@desandro i follow your recommendations. the jQuery UI Draggable is have the same incorrect effort.
so I think jqueryUI resizable  have bug.

In that case, than this isn't a bug with Draggabilly. Sorry, I won't be able to help here.


Implement Day 5 Part 1

Problem description: https://adventofcode.com/2023/day/5

Ugh... The thing that really bothers me most about this problem is that the maps are inverted. As in, the "seed-to-soil" map actually goes "soil->seed->range" instead of "seed->soil->range". I get that it ultimately doesn't matter, but why?

This is probably a good candidate for a linked-list structure. Singly-linked, as we only need forward traversal. Our nodes are going to be called Maps (even though that's terribly misleading). They'll have private "next" and a "maps" properties, a constructor which takes in a string array (to perform the parsing), and a map method that accepts the source and provides the destination.
Oh, and the linked list itself is going to be called Almanac, and it will have the head prop, as well as the method for getting the location from a provided seed.


update firebase auth plugin for breaking changes

https://github.com/firebase/firebase-ios-sdk/pull/1123
This pull request made breaking changes to the firebase/firebase-ios-sdk api
Update api calls into the sdk to fix.

https://github.com/flutter/plugins/pull/559 should fix the ci errors

Thanks for the fix! I'll add change log update, version bump, and do a pub release once CI is happy.


auto provision milestone build

see: https://issues.sonatype.org/browse/OSSRH-23670

status: resolved
fix: narrow plugins in top-level-pom wrapped by pluginManagement


[SP-6415] - Backport of PPP-4620 - Use of Vulnerable Component: Components/xmlrpc-client:3.1.3 (9.3 Suite)

Original PR: https://github.com/pentaho/pentaho-kettle/pull/9003
@renato-s
@smmribeiro
@bcostahitachivantara

:x: Build failed in 1m 39s
Build command:
mvn clean verify -B -e -Daudit -amd

:exclamation: No tests found!
Errors:
Filtered log (click to expand)

org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model
[FATAL] Non-readable POM /build/wingman/workspace/maintenance/wingman/builds/pentaho.pentaho-kettle.PR-9052/plugins/openerp/pom.xml: /build/wingman/workspace/maintenance/wingman/builds/pentaho.pentaho-kettle.PR-9052/plugins/openerp/pom.xml (No such file or directory) @

:information_source:  This is an automatic message

:x: Build failed in 1m 49s
Build command:
mvn clean verify -B -e -Daudit -amd

:exclamation: No tests found!
Errors:
Filtered log (click to expand)

org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model
[FATAL] Non-readable POM /build/wingman/workspace/maintenance/wingman/builds/pentaho.pentaho-kettle.PR-9052/plugins/openerp/pom.xml: /build/wingman/workspace/maintenance/wingman/builds/pentaho.pentaho-kettle.PR-9052/plugins/openerp/pom.xml (No such file or directory) @

:information_source:  This is an automatic message

:x: Build failed in 2m 43s
Build command:
mvn clean verify -B -e -Daudit -amd

:exclamation: No tests found!
Errors:
Filtered log (click to expand)

script returned exit code 1

:information_source:  This is an automatic message

Wingman fails to compile this PR for 9.3, stating "[ERROR] 'dependencies.dependency.version' for org.apache.jackrabbit:jackrabbit-api:jar is missing. @ line 361, column 17".
This, most probably, is related with wingman's artifactory...
As this PR is a "simple" deletion of two modules, I'm merging it anyway.


Issue on Android Nougat

Circular progressbar not animating properly in android nougat. Please check.

I confirm. It animates fine for ~2 seconds, then starts to degrade.
Do you plan to look into it @castorflex ?
Thanks.

I am testing on android nougat emulator and the animation stops after 1-2 seconds. Is there any work-around?
Thanks.


fix(ngAnimate): allow animations when $rootElement is a comment (ng-v…

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix.
What is the current behavior? (You can also link to an open issue here)
Animations don't work when the root element of the app has ng-view on it.
What is the new behavior (if this is a feature change)?
Animations work now.
Does this PR introduce a breaking change?
No.
Please check if the PR fulfills these requirements

[X] The commit message follows our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format
[X] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

Other information:
https://jsbin.com/napenerajo/1/edit?html,js,output
See the jsbin to better understand the issue.
If the root of the app has ng-view, the $rootElement is then becoming its comment, and this lets ngAnimate think that animations should be skipped.

Having ng-view on the root element is not a good idea imo. The root element is special; for example ngStrictDi is looked for in the root element. It is also common (although not necessary) to put ngCsp and ngJq on the root element.
Therefore, putting a structural directive (such as ngView) on the root element is quite risky. (And just because work now, it doesn't mean they will work  in the future as well.)
With ngView on an element it is possible to have multiple instances (copies) of the element or remove the element altogether (leaving a comment placeholder). These behavior are not recommended for the root element of the application.
--
Besides, regarding the implementation in this PR, there is no guarantee that the comment's sibling is the element we are looking for. For example, there might be animation in both the leaving ngView and the entering ngView. So, this only partially fixes the issue.
--
I am going to close this, but feel free to continue the discussion below. If there is a compelling usecase I would be happy to reopen this.


Column with different breakpoint obscures preceding column

This is an unrealistic example, but I'd like to understand what's going on and whether it's valid grid code or not.

column1

column2

What I'm finding is that below the breakpoint, the second column computes its height differently and ends up covering the first.  This doesn't happen if the second column uses the same breakpoint or includes that breakpoint in its definition.  In this demo, notice how the first column disappears when the second column breaks.

Hi @nlwillia!
You appear to have posted a live example (http://s.bootply.com/render/vuqbKWqrKV), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:

line 39, column 9: E003: Found one or more .rows that were not children of a grid column or descendants of a .container or .container-fluid

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!
(Please note that this is a fully automated comment.)

You need to add a clearfix div as mentioned in http://getbootstrap.com/css/#grid-responsive-resets
Example: http://www.bootply.com/k0prQveHqe

Even though the columns are the same height and the first is exactly 12 columns?  I read that section of the docs, but it didn't seem to apply.

If you inspect the elements, you'll see that the 2nd element in your example is actually twice the height of the 1st element; of course, that's not obvious at first glance since the 2nd element is on top of the 1st element.
I admit this is a weird edge case. It would be good to clarify this situation in the docs, but I've no idea how to word it.
@mdo Any ideas?

No ideas and since it's so edge case, I'm inclined to punt on it :grin: given it's low priority to other v3 and v4 work.


Strand specificity in bed2bed

Currently bed2bed.py does not take strand into account when merging intervals. The ability to do this would be of use. bedtools merge can be strand specific, but not cannot handle bed12 files properly.

Suggested code in a5fb98bc4263ccdafaf1774111d664fd0dc97f6f.
In general the idea is to keep two lists of currently overlapping intervals, one for each strand. One possible issue I can see is that the output might not be sorted.
I'd appreciate someone taking a peek at my reasoning ( @AndreasHeger ?)

Oops, wrong commit 75ffd40c5ef1619333191187784d3c6999576277

@IanSudbery, thanks for suggesting this. I think your reasoning is fine. Do you have a unit test case?

I'll add one. My main worry was that it didn't change the output in anyway when not switched on. As far as I can see it doesn't (or at least all the existing tests still pass).


make change to application id by linking it to the draft

There is an issue with the application id where it is using a counter repo in mongo to help create the application Id. This combined with the application being created all at a single point, that being the CheckYourAnswersPage submit button means it is difficult to compare in mongo for the newly generated application Id for an application Id that exists prior.
If we link the draft Id to the application Id then it should in my mind still be unique and not duplicate. The issue is how we link the two together and is there a need to mask the application Id ties to it's draft id?

This is one possible way of preventing duplication.


Data Credit USD charts reporting inaccurate data

The dashboard displays charts showing data credit usage in USD. However, those charts appear to be off by several orders of magnitude.

DC usage per week

DC usage per day

The explorer indicates that DC USD expenditure is currently around $2.5m USD per month. That data is corroborated by the following chart, which shows DC burn of roughly 4bn to 13bn per day.

I think that last chart is showing DCs not USD, but we will investigate @wishplorer

The last chart is just to illustrate the volume of DC burnt per day and how that corroborates the explorer, which reports that we're burning millions of dollars of DC per month. The first two charts suggest the number is more like a few hundred dollars per month, so obviously something doesn't add up.

Ah I think I know the issue – the "DC usage per day/week" charts are just showing DCs used for actual data transfer.
Explorer (and the last graph) are showing DCs used for any reason, including the fees for onboarding hotspots and sending payments. I think the very tiny little blue parts of that chart are DCs for data transfer
Do you think changing the title of the first two charts would sufficiently clarify?

Yes, renaming them would be perfect. I had hoped to clarify how much was spent on actual data transfers so this is exactly what I need.

I've renamed the data-transfer only charts to say as much
Network-fee-wise this is the more comprehensive chart:
https://etl.dewi.org/public/question/badaf90c-82ba-4597-97d0-8eab04f3c801
Editable link if you are logged in:
https://etl.dewi.org/question/158-data-credits-burned-per-day
Thanks for filing the bug report!


Add M2-in-tree image to README, and maybe NEMES time lapse?

The M2-on-trailer image in the current README is pretty good, but for your project with it's (at least initial) focus on Orcasound Lab, it might be fun and valuable to also add an image or two from the M2 at Orcasound Lab album. I might suggest a couple from these favorites of mine:

Brendan in the tree with Val's DIY tree-mount
The M2 camera and radar mounted to the madrona tree, with AIS and GPS antennae in foreground
The M2 processing system tucked under a nearby pine tree

Also, I know it's not the same camera system (so feel free to ignore this if you think it's confusing/distracting), but it might enliven the README if you embedded this video timelapse that Val and I built from a day of NEMES camera images taken from the dead pine tree just north of the M2 madrona tree.
https://www.youtube.com/watch?v=ySuH73gniWk

Hey @tsuize -- What do you think about adding 1, 2, or 3 to the README?
I guess they could also go into a revision of the vessel research page in Wordpress...


fix: typo in example on homepage

introduced in #2085

Codecov Report

Merging #2577 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2577   +/-   ##
=======================================
  Coverage   93.83%   93.83%
=======================================
  Files          84       84
  Lines        6148     6148
  Branches     1262     1262
=======================================
  Hits         5769     5769
  Misses        348      348
  Partials       31       31

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 5bdc960...fa83e40. Read the comment docs.

[clabot:check]


Update intersphinx links and others

Summary
Updates links away from qiskit.org to the new locations for the docs
Fixes #135
#124 : I update all links but Aer for #124 as Aer is not yet done. This amounts to a couple of links in each of the 01 and 03 tutorials that will need to wait on relocated docs for Aer.
Details and comments
Now that all the applications and the algorithms docs are deployed on github pages this updates the intersphinx links, in conf.py, and also urls that are coded directly in other places such as the readme and tutorials.
Note that the current theme is still emitting a link to qiskit.org/ecosystem, but that will get redirected for now until such time as Qiskit/qiskit_sphinx_theme#588 is resolved and new docs are generated with such an updated theme and re-deployed.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6489

Relevant Lines:
7157

💛  - Coveralls


JS API: Expose protocol independent ID of device

Signed-off-by: Sudarsana Nagineni<EMAIL_ADDRESS>

@gabrielschulhof

Coverage remained the same at 86.951% when pulling 3ee28ca5677829deb1d31c0cc3a44a8b56ded6f0 on nagineni:piid into b46fb9709eca287dbd46e9c143dbd243cceac096 on otcshare:master.


Develop Provider

Coverage remained the same at 100.0% when pulling 189f6f5d6ce5e4c9d6b591cf65f95ebfcc1c1d0e on develop into d7d17aa3dc13bd0f7ff4186e4df0025aaceb5ef2 on master.

Coverage remained the same at 100.0% when pulling 189f6f5d6ce5e4c9d6b591cf65f95ebfcc1c1d0e on develop into d7d17aa3dc13bd0f7ff4186e4df0025aaceb5ef2 on master.


Ord trajec

Hi,
This is related to #64 .

Available trajectories information is retrieved as a contingency table (adjacency matrix like).
Only 1-to-1 points mappings are kept (e.g. same subject same time replicate measurements are discarded).
Plotting all trajectories with start and end of each.
Filtering trajectories by length (computed as sum of euclidean distances between each successive points in each series).
Including example from colData.

Is this ready for review of changes still coming?

about to push the changes that came with the replies above.

Is this ready for review of changes still coming?

now should be ready.

Hey - could you check this one scuttle::makePerCellDF.
It creates a dataframe that combines reducedDim and colData.
library(mia)
data(GlobalPatterns)
tse <- GlobalPatterns
tse <- runMDS(tse, exprs_values="counts")
df <- makePerCellDF(tse, assay.type="counts")
head(df)

sorry for the mess with the comments, I thought they appeared much earlier. But now they are here above.

Ok added some comments.
This branch should be also synced with master, it seems.

Hey - could you check this one scuttle::makePerCellDF.
It creates a dataframe that combines reducedDim and colData.
library(mia)
data(GlobalPatterns)
tse <- GlobalPatterns
tse <- runMDS(tse, exprs_values="counts")
df <- makePerCellDF(tse, assay.type="counts")
head(df)

Thanks, very handy function.
I thought the suggested data.frame(reducedDim(tse), colData(tse)) would be enough for this example? or shall I still use the makePerCellDF?

I agree that data.frame(reducedDim(tse), colData(tse)) is enough for the example, no need for changes.
Perhaps you mention scuttle::makePerCellDF in the comments, it can help later.

@TuomasBorman approval still needed to allow merge.

Thanks @ChouaibB ! I had forgot to merge this one. Now it will be used for demos tomorrow!

Yep, this was good to go


Got it to work once. Then it stopped working...

And now nothing is dark anymore.

I have uninstalled Franz and deleted the folder under appdata/roaming MANY times.
Tried even copying the entire recipes frolder from your repository (instead of just the darkmode.css files), that broke it and made it so I couldn't add services.
Reinstalled, Franz is now working but still no darkness. Franz itself's dark mode works, and I can see the dark mode switch inside each service, but no luck getting them to work.
Also, is there one for instagram?
Thanks!

You mean all services?
Can you verify if Setting > Join the Dark Side is on and your service's "Enable Dark Mode" is on as well as the darkmode.css is placed in the right folder? (By taking screenshot)
Sometimes, you need to reload the service (by right click on the service's icon > select "Reload")

Hey!
Any light on this?
Or should I say, lack thereof. heheh

@baterax Looks like everything is set up correctly.
Can you reload the service few times to check if it applies?
If not, when you are in your service, can you select View > Toggle Service Developer Tools and see if any error occurs?

I reinstalled Franz from scratch a few times... And then re-added each service again. No luck.
The console does output a bunch of errors though:

It looks the same for every service, except of course, for the path there.
Messenger, for instance:

@baterax
Can you remove all services and delete all folders in recipes folder and then add the services again?

Just did that. Still doesn't work...

Maybe just teamview into here and take a look? I'm sure it's something silly...

I just completely uninstalled Franz, reinstalled it, did it all over again and still no luck...

Maybe you placed in the wrong folder path.
Maybe it's C:\Users\rodri\AppData... instead of C:\Users\Rod Duarte\AppData...

I don't know why that screenshot shows "Rod Duarte" but that folder doesn't exist, I just checked that again:

If it was in the wrong folder, the "Dark mode" button wouldn't show up in the services configuration screen, right? And yet there it is:

I have the same Issue, I have installed the 5.5.0 version of Franz and none of the service take the dark theme, I have the corresponding .css files into their corresponding receipes folder, also the dark themes on in each service and in franz, just a tought: can be this because the version of Franz?

Oh phew. Good to know it's not just me!

Any updates on this?

HELP

Just did a full fresh install of Windows.
Installed Franz and did it all from scratch.
Still doesn't work.
Please help...

Still at this! Hello? Please?

Sorry @baterax I cannot reproduce the problem.
If you use Mac, can you delete everything from ~/Library/Application Support/Franz/ and reinstall?

I'm on PC...
But as stated above, I've tried uninstalling everything and reinstalling several times.
The last time was a full reinstall of Windows, even!
Still no luck, though.

@baterax normal uninstalling won't delete all files.

I know.
I didn't just uninstall, I went in and deleted everything. Multiple times.
But also, like I said, I reset the entire PC, I formatted the hard drive, deleted the partition, reformatted and reinstalled Windows from scratch.
Then, when I installed Franz on this new, fresh Windows system, I had the problem again.

This sounds awkward. Sorry to say that I have no idea why @baterax

@baterax  Can you try with Google Calendar with this workaround method: https://github.com/ducfilan/Dark-mode-Franz-Ferdi/blob/fa46a1c64d8459cecac692825b79a7f04fb3fc81/googlecalendar/README.md

Alright.
Tried it, and it worked!
I don't even use Google Calendar with Franz, but, this worked. What now?

I'm guessing, since this worked, maybe you figured out how to make the others work again?

@baterax Can you go to this folder: %appdata%/Franz/recipes/ and use my files for messenger and confirm if it works or not? https://drive.google.com/file/d/13-J0EJHUo6MRaRKMuSzp94M5_OYa4K2c/view?usp=sharing

YES!
IT DID WORK.
But, my folder isn't %appdata%/Franz/recipes/, it's %appdata%/roaming/Franz/recipes/.
Maybe that's the problem?

So it worked so you should put your files on the working folder. Is it ok?

No, I mean Messenger worked, the others still don't. I did place them in the right folders.

Or are you telling me to paste the Messenger files into the other folders? (Obviously, except the darkmode.css file)

Well this is interesting. Whatsapp now works all of a sudden. But Telegram still doesn't.

Yeah, I just need to get telegram to work now :-)

So it's been almost a year.
I still can't get Messenger and Instagram dark modes to work...
I've given up on Telegram.
WhatsApp is working but no luck with the other two.
I've reinstalled Franz, deleted and re-added the services, turned dark mode off, removed the darkmode.css files, restarted Franz and the PC multiple times, re-added darkmode files, re-enabled the toggle...
Nothing works. I'm sure it's something silly.
It's so weird that only WhatsApp works though, because I installed it exactly the same way as the other ones...
Please help?

Apologies for resurrecting an issue, @baterax can you check if the darkmode.css file that you downloaded had css code in it? I encountered the same issue, but upon checking I mistakenly downloaded the github html file and renamed it as darkmode.css.. This occured because I didnt use the raw link when I tried to download the file.


feat: throw error instead of resolving free port

Operating System: Ubuntu 18.04
Node Version: 10.2.1
NPM Version: 6.1.0
webpack Version: 4.10.1
webpack-serve Version: 1.0.2

This issue is for a:

[ ] bug
[x] feature request
[ ] modification request

Code
I think not require
Expected Behavior
Right now we try auto resolve free port https://github.com/webpack-contrib/webpack-serve/blob/master/lib/server.js#L116. But in some cases (example when i use proxy for api server, metrics server and etc) i resolve free ports for their in own startup script and also resolve free port for dev server and hot to avoid conflict and allow using this host/port as argument to other servers (for communication between part of application). It is possible disable this behavior? I prefer throw error than resolve new free port, because it is can broke communication between hot server and other part of systems (example send messages to web socket server).
Actual Behavior
Always try to resolve free port.
How Do We Reproduce?
not a bug, i think
New Feature Use Case
Maybe add option for this?

I'm sorry but this is a core feature of the module and it won't be disabled. If you need to prevent webpack-serve from running if a port is or is not in use before hand, there are many modules on NPM which can accomplish that. eg. wait-port, tcp-port-used, wait-for-port, etc.

I was revisiting this question today, and still feel that this is an edge case that most will not encounter. However, I looked up some alternative approaches you could use that don't involve adding complexity to webpack-serve. Using bash to wait, or determine, if a port is free/open is possible, and would integrate well with NPM scripts. Please see:
https://stackoverflow.com/a/44484835
https://unix.stackexchange.com/a/149478
I think these would work well for your case.

@shellscape can't use bash :disappointed: it should be work on difference platform, without bash

But your operating system was Ubuntu 18.04? Bash should be available. What platforms are you using it on which don't have bash?

@shellscape it is internal boilerplate for creating apps inside our company, some people works on windows, some on macos

This should work well for multiple platforms: https://github.com/sindresorhus/is-port-reachable. Coupled with a small script in tooling:
#!/usr/bin/env node

const isPortReachable = require('is-port-reachable');

isPortReachable(8080, {host: 'localhost'}).then(reachable => {
  if(!reachable) {
    process.exitCode = 1;
  }
});

@shellscape thanks for link, looks should be work

Cool. Let me know here if it does not and we will reopen the issue.


How to use without appbar

Hi thank you for this package. how to apply without appbar ?
can i apply to specific button ?

You should be set below parameter if hiding appbar.

Not apply the title widget to SliderMenuContainer
Set appBarPadding to 0
Set appBarHeight to 0

Yes, You can apply specific button and perform drawer action by
 _key.currentState.closeDrawer();
 _key.currentState.openDrawer();
 _key.currentState.toggle();
 _key.currentState.isDrawerOpen();


Can't create inner package.json with fp-ts as dependency

🐛 Bug report
Current Behavior
When I add package.json in my submodules with the same version of io-ts and fp-ts I get errors with type inferences resolution that I can't comprehend.
Expected behavior
Being able to add fp-ts and io-ts in submodules for my project.
Reproducible example
git clone https://github.com/Ephasme/famulous
cd famulous
yarn && yarn build

It works properly. Now do:
git checkout lpe/bug-fp-ts
find . -type d -name 'node_modules' -exec rm -rf {} +
find . -type d -name 'dist' -exec rm -rf {} +
yarn -f
(cd server/app && yarn -f)
(cd server/domain && yarn -f)
(cd server/infra && yarn -f)
yarn build

Now I get errors with fp-ts type inferences.
I get Either<unknown, any> in some places where previously I got the proper types.
For example:
14 export const positive: D.Decoder<unknown, Positive> = pipe(server/app/__playground.ts:118:9 - error TS2571: Object is of type 'unknown'.

118   await pipe(
            ~~~~~
119     repo.findAllAccounts(userId, { withTransactions: true }),
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
122     })
    ~~~~~~
123   )().catch((err) => {
    ~~~

@Ephasme It would be great if you provided a repo with a reproducible example of your problem, that would help us a lot to find a solution.

Thanks @raveclassic for the answer and the feedback. I tried to rebuild a project from scratch importing the files one by one but I didn't succeed in reproducing the problem. It's incredibly weird. I will try again and keep you posted when (if) I succeed.
By the way, io-ts and fp-ts are great libraries and the work you acheive here is outstanding, thanks for bringing true functional programming to TS.


ClassNotFoundException: com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample

https://us-west-2.console.aws.amazon.com/iotv2/home?region=us-west-2#/connectdevice/
To configure and test the device, perform the following steps.
Step 1: Unzip the connection kit on the device
unzip connect_device_package.zip
Step 2: Add execution permissions
chmod +x start.sh
Step 3: Run the start script. Messages from your thing will appear below
./start.sh
when  run the ./start.sh
....
Downloaded: http://repo2.maven.org/maven2/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar (0 B at 0.0 KB/sec)
Downloaded: http://repo2.maven.org/maven2/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar (0 B at 0.0 KB/sec)
[WARNING]
java.lang.ClassNotFoundException: com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:281)
at java.lang.Thread.run(Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56.256 s
[INFO] Finished at: 2016-12-19T15:56:43+08:00
[INFO] Final Memory: 16M/130M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:java (default-cli) on project aws-iot-device-sdk-java-samples: An exception occured while executing the Java class. com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Hi @kuncao ,
Thank you very much for your interest in AWS IoT Java SDK!
There are two lines in the output log that look suspicious:
...
Downloaded: http://repo2.maven.org/maven2/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar (0 B at 0.0 KB/sec)
Downloaded: http://repo2.maven.org/maven2/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar (0 B at 0.0 KB/sec)
...

It seems that the some of the dependencies did not get pulled down correctly to run the SDK sample. Can you verify the network connectivity and try it again? Also, can you confirm on the version of Maven you are using?
Thanks,
Liusu

@liuszeng
Thank you for help
szv1000082893:/home/awskey # mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /home/awskey/maven
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: /home/awskey/jdk1.8.0_92/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.0.76-0.11-default", arch: "amd64", family: "unix"
When I change mirror to

nexus-aliyun
*
Nexus aliyun
http://maven.aliyun.com/nexus/content/groups/public

can not copile the project sucessful

.....
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/2.2.1/maven-plugin-api-2.2.1.jar (13 KB at 3.3 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar (14 KB at 3.6 KB/sec)
......
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar (14 KB at 3.6 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar (28 KB at 7.3 KB/sec)
....
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar (324 KB at 67.7 KB/sec)
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar (238 KB at 40.0 KB/sec)
[WARNING]
java.lang.ClassNotFoundException: com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:281)
at java.lang.Thread.run(Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:32 min
[INFO] Finished at: 2016-12-20T08:49:27+08:00
[INFO] Final Memory: 15M/116M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:java (default-cli) on project aws-iot-device-sdk-java-samples: An exception occured while executing the Java class. com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Hello @kuncao,
One thing to try to start from a clean install of the SDK. This can be done by removing the aws-iot-device-sdk-java directory and its contents and then running the start.sh script again. If this causes the same error can you post the full output of the maven build?
Thank you for using AWS IoT.
John

I, too, am having the very same problem.

Hi @kuncao , @bwilly ,
I am not able to duplicate your problem. The start.sh works fine on my local machine. One thing you can try is to install AWS IoT Java SDK from source. The Github link is here. The README contains detailed instruction of different ways to install Java SDK. You could start from there and see if that works for you. Once it works, we can compare the outputs and difference and see the root cause.
Hope this helps,
Fengyi

I had the same problem. As suggested by @johnrotach, removed the aws-iot-device-sdk-java directory and its contents and then running the start.sh script again, it worked.

I had the same problem after a failed "start.sh" run. It failed because I didn't have a maven installation on my machine. After installing it, I ran once more the script and it failed with the described error.
After deleting the folder like @johnrotach suggested(because it was created when the script failed) it worked OK. Thanks to johnrotach (for suggesting) and sreedharp1 (for confirming it works).

This issue still persists when using Java 10. I have tried above solutions. But it did not work for me. When I downgraded version to Java 8, it worked.

pi@raspberrypi:~/AWS $ ./start.sh
Running pub/sub sample application...
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] -----------< com.amazonaws:aws-iot-device-sdk-java-samples >------------
[INFO] Building aws-iot-device-sdk-java-samples 1.3.4
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ aws-iot-device-sdk-java-samples ---
[WARNING]
java.lang.ClassNotFoundException: com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample
at java.net.URLClassLoader.findClass (URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:270)
at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.727 s
[INFO] Finished at: 2020-02-06T11:25:24+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project aws-iot-device-sdk-java-samples: An exception occured while executing the Java class. com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Same for me, works only with Java 8

I ran into the same issue today but I was able to fix it. Hope it gives a hint to problems encountered by others.
I installed maven using "brew install maven". It pulled down openjdk as a dependency. However, I was running a different JDK and hence the JDK confusion. The fix was to "brew uninstall maven" and "brew uninstall openjdk". Then I installed maven manually from the maven website. Then rebuilt/cleanup and it worked like a charm.

twkim@ubuntu:~/temp/connect_device_package$ ./start.sh
Running pub/sub sample application...
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] -----------< com.amazonaws:aws-iot-device-sdk-java-samples >------------
[INFO] Building aws-iot-device-sdk-java-samples 1.3.7
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ aws-iot-device-sdk-java-samples ---
[WARNING]
java.lang.ClassNotFoundException: com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample
at java.net.URLClassLoader.findClass (URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass (ClassLoader.java:418)
at java.lang.ClassLoader.loadClass (ClassLoader.java:351)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246)
at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.271 s
[INFO] Finished at: 2021-01-18T23:06:42-08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project aws-iot-device-sdk-java-samples: An exception occured while executing the Java class. com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
twkim@ubuntu:~/temp/connect_device_package$ mvn -version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_275, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-39-generic", arch: "amd64", family: "unix"
The same issue isn't resolved after downgrading to Java 8, for me...
I'd appreciate you if you give any help to me...

twkim@ubuntu:~/temp/connect_device_package$ ./start.sh
Running pub/sub sample application...
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] -----------< com.amazonaws:aws-iot-device-sdk-java-samples >------------
[INFO] Building aws-iot-device-sdk-java-samples 1.3.7
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ aws-iot-device-sdk-java-samples ---
[WARNING]
java.lang.ClassNotFoundException: com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample
at java.net.URLClassLoader.findClass (URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass (ClassLoader.java:418)
at java.lang.ClassLoader.loadClass (ClassLoader.java:351)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246)
at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.271 s
[INFO] Finished at: 2021-01-18T23:06:42-08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project aws-iot-device-sdk-java-samples: An exception occured while executing the Java class. com.amazonaws.services.iot.client.sample.pubSub.PublishSubscribeSample -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
twkim@ubuntu:~/temp/connect_device_package$ mvn -version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_275, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-39-generic", arch: "amd64", family: "unix"
The same issue isn't resolved after downgrading to Java 8, for me...
I'd appreciate you if you give any help to me...

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:Publish",
"iot:Subscribe",
"iot:Connect",
"iot:Receive"
],
"Resource": "*"
}
]
}
Resource of Policy is revised like above... and it works!!

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:Publish",
"iot:Subscribe",
"iot:Connect",
"iot:Receive"
],
"Resource": "*"
}
]
}
Resource of Policy is revised like above... and it works!!

@twkim74
Try suggestion below:

I had the same problem. As suggested by @johnrotach, removed the aws-iot-device-sdk-java directory and its contents and then running the start.sh script again, it worked.
It worked for me

@twkim74
Try suggestion below:

I had the same problem. As suggested by @johnrotach, removed the aws-iot-device-sdk-java directory and its contents and then running the start.sh script again, it worked.
It worked for me

The default tutorial on the AWS IOT gives this error with the latest 1.3.9 aws-iot-device-sdk-java jar configured in the pom.xml file. It worked for me when I went to pom.xml under aws-iot-device-sdk-java-samples folder and changed the version under
aws-iot-device-sdk-java from 1.3.9 to 1.3.0.
Amazon needs to fix the jar or fix the tutorial.

The problem is that the IOT samples have been deleted from github.
PublishSubscribeSample
Used to be on github but was deleted.
Last tag which contained the source:
https://github.com/aws/aws-iot-device-sdk-java/blob/v1.3.8/aws-iot-device-sdk-java-samples/src/main/java/com/amazonaws/services/iot/client/sample/pubSub/PublishSubscribeSample.java


rc.local[411]: cp: cannot create regular file '/root/teslausb_setup_variables.conf' : Read-only file system

boot.log shows the following failure:
rc.local[411]: cp: cannot create regular file '/root/teslausb_setup_variables.conf' : Read-only file system
This is using the OneStepSetup.md instructions. The file teslausb-headless-setup.log shows no errors and says "All done" on the last line.

Having the same issue here.