Fixed a little bug on the ddoc initialization

@harumhelmy I don't get that error anymore, but after running the seeds and everything I don't see any prereviews or anything when I load the site, despite the seeds seeming to import. Is that the case for you as well, or is it an issue with my setup?

That would be the fault of an errant console.log -- I just removed it and all should be well again!


Release v0.5.0

[x] Update to tokio v1.x #78
[x] Clean up and reduce dependencies #81
[x] Use async_trait #82
[x] Wait for tokio-serial v5.4.0 release
[x] Update CHANGELOG.md
[x] Update README.md (including date in Copyright)
[x] Fix badges in Cargo.toml
[x] #89
[x] #84
[x] #91
[x] #92
[x] #94
[x] #93
[x] Publish on crates.io

How about removing sync from the default features?

How about removing sync from the default features?

#89

done :)

@flosse great work, though I'd say you forgot to mention the addition of an RTU server implementation in the Changelog.
I also noticed that the traits that use async_trait now are also exported and can be implemented by library users, which then also have to declare async_trait in their usage. That shouldn't be much of an issue, since async_trait is already in the depencies anyway, but I guess it would help to add some documentation somewhere to explain proper usage of those traits if anyone intends to make use of them (I may set up an according PR over the weekend, given that I mainly transitioned those traits to async_trait in the first place)


Torpedoes

Torpedoes! They would essentially function as slow, fuel-efficient large unguided rockets that remain on the surface of the water (or perhaps at some set depth below). Naval combat is a pretty niche thing in ACF, but adding torpedoes opens up a ton of options (torpedo bombers, submarines, etc.) that were simply not feasible previously.

These could be cool.  Stretch goal, anyone?

Yes, this would be pretty smashing! I would also love to see land and sea mines. But that would be another goal.

Torpedos would need a completely new physics system, because they have to float while in the water. Also, I'm not sure whether making an entity float at a specific depth is even feasible. Either way, this would be a stretch goal if anything, so it's not happening anytime soon.
Also, I'm fairly sure we already have land mines, though they're part of a different addon.

just let me know if you decide to add them... i will make necessary models
2015-05-28 7:25 GMT+02:00 Cre8or<EMAIL_ADDRESS>
Torpedos would need a completely new physics system, because they have to
float while in the water. Also, I'm not sure whether making an entity float
at a specific depth is even feasible. Either way, this would be a stretch
goal if anything, so it's not happening anytime soon.
Also, I'm fairly sure we already have land mines, though they're part of a
different addon.
—
Reply to this email directly or view it on GitHub
https://github.com/Bubbus/ACF-Missiles/issues/52#issuecomment-106176309.

Yeah we have landmines in https://github.com/Bubbus/ACF-SWEPs.  They're player-placed, no dispensers (yet?).
Sea mines could be cool.  One thing at a time, it's very easy to have ideas ;)

I've gone ahead and started working on some. They currently float. I'm pretty sure the way I'm doing it doesn't add significant processing time or network traffic but I haven't really dug through ACF enough to know for sure.


Added mLastY param for Action_Down (OnTouchListener) (for getting LastY parameter in action_down listener - local project).

Added mLastY param for Action_Down (OnTouchListener) (for getting LastY parameter in action_down listener - local project).

Why dont  get LastY in OnTouchListener directly??

I cannot get point from ACTION_DOWN when implementing onTouchListener (You were dispatching it on the ViewPager implementation. So i saved the last y (you can add x point in addition) in the Action_Down in the super.

???

Thx


I want arithmetic ops which return error instead of losing precision

I want lib for monetary calculations. decimal-rs sometimes lose precision, and I don't like that. For example, 1.0000000000000000000000000001 * 1.0000000000000000000000000001 is 1.0000000000000000000000000002 under decimal-rs (this is incorrect from mathematical point of view). (I used 0.1.36.) Even checked_mul gives same answer instead of returning error. I want some function (say, exact_mul and similar names for addition and subtraction), which returns Ok (or Some) when a result can be exactly represented and Err (or None) if not.
In my program (assuming my program is bug-free) such precision losing should never happen. But as we all know we can never be sure that there is no bugs! So I want this exact_mul. I would replace my checked_mul with exact_mul (with unwrap). And if I ever lose precision, I will discover this, because I will see panic
There is similar bug in rust-decimal https://github.com/paupino/rust-decimal/issues/515

decimal-rs has 38 digits of precision, and the decimal will be rounded if it overflowed. This is a feature of decimal-rs and we have no plan to add exact_mul.
P.S.: pgnumeric has upto 1000 digits of precision, and 1.0000000000000000000000000001 * 1.0000000000000000000000000001 is 1.00000000000000000000000000020000000000000000000000000001.

Ok, you may close the bug


[FEATURE] Add tooltips which draw one horizontal line which follow mouse cursor to help

Hello,
I was thinking about something like this : https://jsfiddle.net/dx4az477/ to help users to compare datas.
Thanks,
Best regards,
Vincent

@vincent-guesnard I think the better way to do that would be to use the mouse to trigger the annotation plugin: https://github.com/chartjs/chartjs-plugin-annotation I would not recommend drawing in the event handler.
With some of the work in #3718 this will become a lot easier in 2.5 so someone can write a plugin for it.

It sounds good to me. (i agree with you, this would be better with the annotation plugin)
Thank you for your reply, i wish you a happy new year :)
I'm gonna wait for 2.5.

Closing per my comments above. 2.5 should release soon. The release PR is in #3840


Added Dependency CI

Proposed Changes

Added Dependency CI monitoring

bandit is currently not well documented
wait for its license to be updated for CI to pass

Codecov Report

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

@@          Coverage Diff          @@
##           master   #107   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           9      9
  Lines         268    268
=====================================
  Hits          268    268

Coverage remained the same at 100.0% when pulling 0092286f18c5c921256515102d3e4af9cb34e8bf on dependency-ci into 3c9d043acea0a23017e17e8e619501ecd63727ef on master.

Coverage remained the same at 100.0% when pulling 0020b557601183a9285f29aca80d1cbbef4e5b1a on dependency-ci into 6cd683958601c842e9a230b5f17b77893d7574e7 on master.

Coverage remained the same at 100.0% when pulling 6e7dabd40f343edc6beac725f1041cbda095eefe on dependency-ci into 79235ce7006d465b9c1d3326adb14f180494de07 on master.

Coverage remained the same at 100.0% when pulling 74cd3449f9f0d6adf0610986af7f709358d31124 on dependency-ci into 45a1b048228607b486f56fb93014c406a7e57a8a on master.

Coverage remained the same at 100.0% when pulling 43e6030ee113da47666832be4d3b7bcaa04e22e5 on dependency-ci into 6ebc6e141a62e442582152602dca5f2e50ea36fe on master.


I want to export my html table to xlsx instead of xls. Any support for this?

I want to export my html table to xlsx instead of xls. Any support for this?

Adding download="file.xlsx" would change the file extension.
Export to Excel
The way the XLS is created does not allow to create XLSX without adding more JavaScript dependencies.

I am thinking on adding dependencies but creating a distribution file compressed with Webpack.

Resolved on 654f2340a2b1a407ef7b86733e62f880bce2e38a


[util] Codeowner

We do not have a code owner for not specified util contents.
In #1139 only *.sh files are changed, but they are not listed in the CODEOWNERS file.
Any suggestion who that should be?

I think we should just kill util altogether. It's a kitchen sink of tools owned by hardware, software, and infrastructure people.

While its true that util is used by different parts, what would be the suggestion for an improvement? I think it would be hard to organize a util for each subsection as there are shared components.

would it make sense to create subdirectories under util that better
indicate their function?
For example there are hw design and dv specific ones..stuff like vendor
might be more general?
On Wed, Dec 4, 2019 at 11:27 AM Tobias Woelfel<EMAIL_ADDRESS>wrote:

While its true that util is used by different parts, what would be the
suggestion for an improvement? I think it would be hard to organize a util
for each subsection as there are shared components.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/issues/1140?email_source=notifications&email_token=AAH2RSXZP64FENZ7LSCXOG3QXAADXA5CNFSM4JVG63AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF6GWWQ#issuecomment-561802074,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSXBTC55IKXHVVKWLK3QXAADXANCNFSM4JVG63AA
.

I think we don't need CODEOWNERS for util/, frankly it is quite hard to determine who should be default reviewers. For instance, regtool is designed by Mark (validate/ doc), Sri(gen_dv), Michael(Multireg array), Scott(Multireg, regwen), me (gen_rtl/ data).

it would still be good to have someone be the default reviewr though.. so
that person can tag others in as needed.
On Wed, Dec 4, 2019 at 9:03 PM Eunchan Kim<EMAIL_ADDRESS>wrote:

I think we don't need CODEOWNERS for util/, frankly it is quite hard to
determine who should be default reviewers. For instance, regtool is
designed by Mark (validate/ doc), Sri(gen_dv), Michael(Multireg array),
Scott(Multireg, regwen), me (gen_rtl/ data).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/issues/1140?email_source=notifications&email_token=AAH2RSSEQJRUYPNNPGD3VSLQXCDSJA5CNFSM4JVG63AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF7PZDQ#issuecomment-561970318,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSTZ7CWK2DMNJKZPI73QXCDSJANCNFSM4JVG63AA
.

I think it would be beneficial to have one as a code owner as we already use this structure.
And my understanding would be that everybody is encouraged to do a code review but if there is no progress its at least clear who to ping for further guidance.

I'll take util/ as default, if needed, and parcel out tags where
appropriate. I'm usually watching
all of the util/ activity anyway. Generally everyone is awesome at
jumping in and solving problems
so not a tough role.
On Thu, Dec 5, 2019 at 2:04 AM Tobias Woelfel<EMAIL_ADDRESS>wrote:

I think it would be beneficial to have one as a code owner as we already
use this structure.
And my understanding would be that everybody is encouraged to do a code
review but if there is no progress its at least clear who to ping for
further guidance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/issues/1140?email_source=notifications&email_token=AJZQKVNGQR2ONX54URDBPODQXDG3FA5CNFSM4JVG63AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGAFQGA#issuecomment-562059288,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJZQKVKFAFFPFDF25HL77KLQXDG3FANCNFSM4JVG63AA
.


Wrong project name when it contains a dash

For example: boxmeup-ui showed ui

Not a bug, this was actually the name in package.json's name field


[0.4.1] - fix store updating between render and effect

A quick store change that occurs between the component's first render and the first useEffect does not update the component. An additional useEffect has been added for the solution. It will compare the actual value of the store and the value at first render. If values incomparable, component will be updated

i see, that i exceeded the limit of package, do i need to fix this line "limit": "973 B"?

Yes, you need to change limit to highlight the price of changes.

Thanks. The fix was released at 0.4.1.


[ENHANCEMENT] rudderstack_source_php

Is your feature request related to a problem? Please describe.
PHP sources are not available in the Terraform provider
Describe the solution you'd like
A new resource named rudderstack_source_php in order to create sources using the PHP SDK

yeah this would be nice


Win-sshfs freeze trying to remount drive after Windows standby.

Win-sshfs freeze trying to remount drive after Windows wake up from standby. Then, after killed and restarted the process, sometime drive information are erased forcing me to reinsert them.
 Currently we need to completey switch off any power saving stuff ... this decreases runtime of the tablets significantly :-(


chore: Added user agent as default headers in browser type

After the latest driver roll this should already work out of the box as we now share the same connect logic with nodejs.


Python's async comprehensions

Hey, I just found about https://www.python.org/dev/peps/pep-0530/ and wanted to share since it relates to the Python 3.6 async iterators feature which is something I've seen discussed here before.
I think it's an interesting idea, not very applicable to JS (.map/flatMap/filter etc on the prototype would be much nicer imo) but worth looking at.
Feel free to close, preferably after a few days.

Interesting idea. ES2015 ended up not including Array comprehensions largely because methods like map may be ergonomic enough now that we have arrow functions. To get the analogous thing for async generators, we may want something like @leebyron's proposal for more methods on IteratorPrototype.

@littledan @leebyron can I get a link to the proposal? I asked about this recently ( https://esdiscuss.org/topic/iterator-combinator-methods ) and didn't get much response.

I think this is the proposal https://github.com/leebyron/ecmascript-iterator-hof


Questions about batch_normalization

I use resnet_v1 to train the model, should I let batch_normalization's center=false? I don't know if morphnet has an impact on beta, cause I limit the gamma, but if my beta is very large, it seems not work, I think it's a problem.
Here is my bn parameter below.
tf.layers.batch_normalization(       inputs=inputs, axis=1 if data_format == 'channels_first' else 3,       momentum=_BATCH_NORM_DECAY, epsilon=_BATCH_NORM_EPSILON, **_center=True_,**       scale=True, training=training, fused=FLAGS.enbl_fused_batchnorm)

We have not encountered any problems with the beta... When you say they are "very large", could you be more specific? What is the mean and variance with or without MorphNet (possibly using more than one regularization  strength).
In our code we are using  tf.contrib version, it should behave the same. We never had problems using these settings (which I think are  the same as in the  paper:
'batch_norm_params': {
'decay': 0.9997,
'scale': True,
'center': True,
'epsilon': 1e-5,
'param_regularizers': {
'beta_decay': 0.0,
'gamma_decay': 5e-5
}
}
let me know if it helps.

Sorry, I didn't talk about my question clearly, the situation is one of the bn with morphnet, the morphnet limits the gamma to very small value (ex. 1e-8, 1e-7), but in the same channel the beta is like 0.86, 0.89(or larger), maybe it's still an important feature(or not), but morphnet cut that channel?
Or should I let my center = false to avoid this problem?
One of my bn beta mean and var with morphnet is -0.099896885 and 0.12298851.

I would consider this channel to be dead as the beta is not data dependent and can be absorbed in the bias of the next layer (the bias of a filter is not beta but beta * sum(weights_i).
Furthermore, the next layer also has BN so this bias is  actually automatically removed.
With that being said, I will be very interested in seeing what happens if you try experiments without beta. For example I have in mind these four experiments:
flop_regularizer = {on, off} x center = {true, false}.
Please do consider reporting back, I think it interesting to  see what happens even if the result is the same.


Multiple Hawk instances

First of all, great start to this library- I sense a real need for a solid encrypted key/value store in the Android ecosystem.
I'm working on a use case that requires a set of encrypted stores, where one is semi-secure (encrypted by a secret in the app binary) and another is encrypted using a value inputted from the user. Hawk has most of the features I need but I think its singleton nature is a limitation here.
Some ideas:

Add a public constructor to Hawk
All Hawk.java getter/setter methods become instance methods

Questions for you:

Do you still see the need for a singleton instance of Hawk? Is it good enough to let users create one with new Hawk() and manage that object themselves? Or maybe have 1 global instance (Hawk.getInstance()) as well as a public constructor?
Logger becomes an issue if Hawk is no longer a singleton, because the Logger instance must be passed down the object hierarchy.

I've already started some of this, but was interested in your feedback.

@bosgood First of all thank you for the feedback but I disagree with making hawk to enable having multiple instances for the following reasons.

I aim to have a simple but also a strong structure. I also like to follow Poka-Yoke Making Hawk to have multiple instances will may let the user to make mistakes.
It will be error-prone to differentiate instances for the user.
I also don't see any reason to why not use only one instance which is current. Differentiate comes with the key already.
Hawk.init is already a cost (generating key), creating multiple instances would cost us more.
Hawk should be initialized in one place and be used everywhere by not having worried about which instance or not.
As you mentioned as well, we also need to change the whole structure for this feature which I don't want to do that really.

For your example. I think there is no reason to not use the same instance for storing semi/full encrypted data. Having multiple instances won't make any difference I believe.

The focus on keeping the library simple is admirable. For the sake of completing the thought, here's the use case I had in mind:
// An instance of Hawk that the app creates with a key that's
// provided by the app using Hawk at compile time, or
// maybe a device-specific ID.
Hawk semiSecretStorage = new Hawk("constant-random-app-key");

// Get some value that's only sort of secret, but would be useful
// to display on an account page, etc.
String accountNumberLastFour = semiSecretStorage.get(KEY_ACCOUNT_ABBREVIATION);

// An instance of Hawk that stores info that's only retrievable
// with the user's explicit permission, like an account number
// or login credentials.
Hawk secretStorage = new Hawk("user-provided-key");

// Get some object info object that was encrypted using a secret
// the app has as well as a user-provided value
Credentials userAccount = secretStorage.get(KEY_ACCOUNT_CREDENTIALS);

This is very similar in design to the SharedPreferences API. Through [Context.getSharedPreferences(String, int)](https://developer.android.com/reference/android/content/Context.html#getSharedPreferences(java.lang.String, int)), the class allows consumers to access multiple references that access either the same or different data depending on which name is provided. Hawk takes advantage of this feature this feature via the two TAG and TAG_CRYPTO SharedPreferenceStorage instances, so the ability to distinguish between one storage instance and another is definitely useful in some cases.
I'm not going to ask you to change something you don't want to, but I thought it was worthwhile to present the entire idea here just in case :) Thanks!

我认为有必要提供多个对象，赞成bosgood 观点。
比如的一个App是账号登录的，Hawk可以帮助我们存储一些账户的配置信息。但是如果有多个用户切换登录，则需要为每个用户配置一个Hawk。
建议改成下面的形式
 Hawk.storage = new SharedPreferencesStorage(appContext, accountId + TAG);

详细代码：
public static void init(Context context, String password, LogLevel logLevel) {
        Context appContext = context.getApplicationContext();
        Hawk.logLevel = logLevel;
        Hawk.storage = new SharedPreferencesStorage(appContext, TAG);
        Hawk.encryption = new AesEncryption(new SharedPreferencesStorage(appContext, TAG_CRYPTO), password);
        Hawk.encoder = new HawkEncoder(encryption, new GsonParser(new Gson()));
    }

    public static Hawk newInstance(Context context,String name,String password, LogLevel logLevel) {
        Context appContext = context.getApplicationContext();

        Hawk hawk = new Hawk();

        hawk.logLevel = logLevel;
        hawk.storage = new SharedPreferencesStorage(appContext, name + TAG);
        hawk.encryption = new AesEncryption(new SharedPreferencesStorage(appContext, TAG_CRYPTO), password);
        hawk.encoder = new HawkEncoder(encryption, new GsonParser(new Gson()));

        return hawk;
    }

@LiushuiXiaoxia 谢谢你的意见！为了原作者的方便，我提供一下翻译：
Here's a translation for convenience:

I think there's need to provide mutiple instances, I support bosgood's viewpoint.

For example if an App is an account login, Hawk can help us store some account details. But if there are multiple accounts that can be switched between, we'd need for each account to have its own instance of Hawk.

I recommend changing the interface as such:
Hawk.storage = new SharedPreferencesStorage(appContext, accountId + TAG);

Detailed code:

public static void init(Context context, String password, LogLevel logLevel) {
    Context appContext = context.getApplicationContext();
    Hawk.logLevel = logLevel;
    Hawk.storage = new SharedPreferencesStorage(appContext, TAG);
    Hawk.encryption = new AesEncryption(new SharedPreferencesStorage(appContext, TAG_CRYPTO), password);
    Hawk.encoder = new HawkEncoder(encryption, new GsonParser(new Gson()));
}

public static Hawk newInstance(Context context,String name,String password, LogLevel logLevel) {
    Context appContext = context.getApplicationContext();

Hawk hawk = new Hawk();

hawk.logLevel = logLevel;
hawk.storage = new SharedPreferencesStorage(appContext, name + TAG);
hawk.encryption = new AesEncryption(new SharedPreferencesStorage(appContext, TAG_CRYPTO), password);
hawk.encoder = new HawkEncoder(encryption, new GsonParser(new Gson()));

return hawk;

}

If you need another password for encryption, you can initialize static hawk instance again. But you should remember which fields have been created with which password. Because in the current version of hawk it is written to just one file. Adding multiple instance would come more complicated cases, which would break simplicity of the hawk in my opinion.

It sounds like a lot of work to manage multiple "sub-stores" via init each time you access a different store. The app would have to remember which mode it was in, then init with the correct key before using get or put.

// Initialize a store to get some app-level information
Hawk.init(context, APP_PASSWORD);
String value = Hawk.get(KEY_SOME_VALUE);

// Later on, the user unlocks some part with a provided password...
Hawk.init(context, APP_PASSWORD + USER_PASSWORD);
String userValue = Hawk.get(KEY_SOME_OTHER_VALUE);

// By this point, we'd have to call `init` before getting something
// from the APP_PASSWORD store again.

What about thread safety? If there is a background thread accessing stored data, there is no guarantee that between init and get, the store is initialized to the correct password.

You are right for two points that you mentioned. We should find a solution for multiple init passwords. Thread safety is a complex point not easy to find a solution by the way. For now it is using SharedPreferences which is thread-safe, but the execution for encrypt, decrypt, serialization, deserialization library is not thread safe.

Hawk will not support multiple instances in order to keep the singleton structure. I'm closing this issue.

what is the benefit of singleton for this? in this case it's a paradigm not a useful pattern!


Check the type of the default

Hi,
I think the default option should match the type.  This is a problem I ran into while using Thor.  I had code like this:
method_option :foo, :aliases => '-f', :default => '50', :type => :numeric

I expect the default value '50' to be a numeric, but of course it was a string.
Hopefully, this pull request solves the problem. ;-)
Cheers,
Huw.

I believe this will be a breaking change to some project. While they can forward fix the mismatch in the type the current releases of those project will now start to raise errors when loading the generator. This was the case of rails https://github.com/rails/rails/pull/22789.
I agree this is a good change but I think we should release it in a non-backward compatible release. Maybe a warning instead of an exception for the current release?

@rafaelfranca comment above is spot on and is the cause of issue #533


bind cloud-config to existing deployment

I want to extract site specific information from existing bosh deployment and put it to cloud-config. I have moved sections of manifest to iaas.yml and run bosh update cloud-config iaas.yaml.
But it seems bosh deploy fails to bind new cloud-config to existing deployment. bosh deploy fails with error saying that networks section was not found.
What is the proper way of extracting cloud-config from existing deployment?

Can you include some stack trace? Which versions of CLI and the Director are you using?

I can't reproduce problem so let's assume it is gone.
Surprisingly bosh deploy started to rebuild vms after extracting config. I expected to just bind new config


Adding Ackee PHP

This adds the Ackee PHP class to "related". I wrote the class to allow server-side options when adding the Ackee tracker to a PHP page. Currently support is pretty basic but it does allow for an opt-out cookie to be set by the visitor and respects DNT header.

Pull Request Test Coverage Report for Build 367

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 59.911%

Totals

Change from base Build 297:
0.0%

Covered Lines:
366

Relevant Lines:
547

💛  - Coveralls

Thanks! 🔥


some features

Hi
i have used impress.js for a presentation and added some features. I like to contribute these to the official project, but i have not used github until now. I was able to add the features in my own fork.
The main features added are: Nested steps and Templates. See my readme for more details.
https://github.com/sokra/impress.js
Also see examle at: http://sokra.github.com/impress.js
I would be happy if i could contribute to this great project.

Wow.
Too many features at once :)
Interesting work with nested steps (there were some other guys asking about it in issue #9).
And for the others, I'm not really sure how useful they are:

The phi/r coordinates - who will possibly use it? :) I think the whole x,y,z plus rotations around all axis are complicated enough for normal human being :)
These 'templates' ... the effects are indeed quite interesting but the whole thing is way to complicated. Effects like these (but quite simpler) can be easily achieved with CSS transforms based on active class on current step.

Basically, the whole code got so complicated I can't understand most of it anymore :)
Thanks for your input. I want to keep impress.js as simple as possible. Your work is quite inspiring, so I may get back to it at some point and see if it fits to my vision of impress. But right now I'd like to focus on core functionality.
Thanks!


Improve use of juju-helpers snap in CI

Removes manual alias now that automatic aliasing is set up, and uses juju-kubectl helper instead of microk8s.kubectl directly.

Obsoleted by #74


Collect less frames in each episode

Hi, I am collecting data for the Implicit Affordance model. I noticed that in each episode, it usually collects thousands of frames. I wonder if there's a way to downsample the number of frames collected in each episode, like only collect about a hundred frames in each episode? Thank you!

Hi! I'm not sure the exactly demand of 'downsample' the number of frames. Simply you can use a small suite (i.e. 'TurnTown01') to collect data. The number of frame will be small because the length of route is short.
If you want to reduce the saved frames in collected data, generally there are two ways to do so. The simple one is to select less frame at equal intervals, for example:
data = collector.collect(n_episode)
data = data[::10]

The complicated way is to skip frames in collector. You may need to go to the main loop in collector's collect method and store the frames at specific frames, like this:
# record frame count for all envs
frame_count = {env_id: 0 for env_id in range(self._env_num)}

while True:
    obs = self._env_manager.ready_obs
    policy_output = self._policy.forward(obs, **policy_kwargs)
    actions = {env_id: output['action'] for env_id, output in policy_output.items()}
    actions = to_ndarray(actions)
    for env_id in actions:
        self._obs_cache[env_id] = obs[env_id]
        self._actions_cache[env_id] = actions[env_id]
    timesteps = self._env_manager.step(actions)
    for env_id, timestep in timesteps.items():
        if timestep.info.get('abnormal', False):
            ...
        #########
        # store frame only id count % 10 == 0
        frame_count[env_id] += 1
        if frame_count[env_id] % 10 == 0
            transition = self._policy.process_transition(
                self._obs_cache[env_id], self._actions_cache[env_id], timestep
            )
            self._traj_cache[env_id].append(transition)
        ##########

        if timestep.done:
           ...
    if self._env_manager.done:
        break

It's a really detailed explanation! Thank you!


install ZFS from ucore-kmods

This changes ucore image builds such that kmods (zfs) are no longer built in this repo's workflows... instead they are built in https://github.com/ublue-os/ucore-kmods/actions and installed from that repo's resulting image.

However, today I'll also be adding a fedora-coreos-zfs image which is stock Fedora CoreOS with one addition, the latest stable ZFS.

Great :) How would I go about using that?

Please take a look at  https://github.com/ublue-os/ucore
The new image which is stock CoreOS+ZFS is listed there, including available tags and how to install.

@bsherman I tried doing
sudo rpm-ostree --bypass-driver rebase ostree-unverified-registry:ghcr.io/ublue-os/fedora-coreos-zfs:stable

Did a reboot and tried modprobe zfs - But no zfs.

Not sure what I did wrong.

oh my! It seems you did it correctly, but I had a copy/paste error in the build workflow.
That has been corrected ( https://github.com/ublue-os/ucore/pull/63 ) and I have verified that ghcr.io/ublue-os/fedora-coreos-zfs:stable now contains the ZFS module.
Performing an rpm-ostree update on the system should resolve your issue.
Thank you for letting me know about the problem!

zfs installed now :) Do I need to do anything other than: sudo rpm-ostree --bypass-driver rebase ostree-unverified-registry:ghcr.io/ublue-os/fedora-coreos-zfs:stable with respect to zincati and otherwise in general?

@bsherman got zfs working :) Do I need to do anything other than: sudo rpm-ostree --bypass-driver rebase ostree-unverified-registry:ghcr.io/ublue-os/fedora-coreos-zfs:stable with respect to zincati and otherwise in general?

I've never used --bypass-driver so I'm not sure if that is required.

Zincati is known to not work with rpm-ostree OCI images... I have an issue tracking the upstream issues here #54

I do have this noticed in the repo README:

Disables Zincati auto upgrade/reboot service
NOTE: currently, zincati fails to start on systems with OCI based deployments (like uCore). Upstream efforts are active to correct this.

I've tried to keep all major information such as the zincati issue on the README... other than zincati, I'm not aware of any significant differences between rpm-ostree and rpm-ostree native containers.

I always disable the zincati service.

Interesting. When and how often do you update your CoreOS instances then?

I use the ucore image :-)   which (per the README) adds several "nice to have" features, but also:

Enables staging of automatic system updates via rpm-ostreed

This method is what Fedora Silverblue uses by default ... though our default configuration is to daily download and stage any updates.
It is less refined than zincati, certainly, but one can configure the rpm-ostreed-automatic.timer to run weekly and override the service to also reboot by adding an ExecStartPost=
Personally, I let my systems stage updates continually, and reboot them manually when desired... But I don't have a large fleet.


startup failed

start the binary but nothing output.
strace show :
stat("/home/xxx/.terminfo", 0x7fff74307710) = -1 ENOENT (No such file or directory)
stat("/etc/terminfo", 0x7fff74307710)   = -1 ENOENT (No such file or directory)
need any dependence？

export TERM=xterm-color
It will fix this bug.


Slow camera view within tabs

I came cross a problem. My app has 3 tabs, and the scanner view is inside one of the tabs. When swipe between the tabs, the camera tab (i.e. scanning tab) is slower than other two tabs to render.
After googling many places, finally find this one
http://stackoverflow.com/questions/28183017/viewpager-swiping-lags-when-fragment-contains-camera-preview
I went and checked the source code, ZXingSurfaceView class does inherits from "public class ZXingSurfaceView : SurfaceView". Is there way you can please change it to TextureView?
Thank you.
William

Work in progress. See pulll request #459

Thanks for reporting this issue!  Unforunately it took me way too long to respond 😭.  Sorry, I apologize!  Recently the source code for this project was completely refactored to modernize it.  Many PR's were included in this effort, and many bugs were hopefully fixed.  Please try out the latest 3.x series of NuGet packages (currently in prerelease).  To try and make the project more maintainable in my spare time going forward, I've decided to close all existing issues to start with a clean slate.  If you're still experiencing this issue on the newest version, please open a new issue with as much detail as possible.  Thank you for your patience and understanding!  Happy scanning!


ESCU - AWS Cloud Provisioning From Previously Unseen City - Rule - "[subsearch]: The lookup table 'previously_seen_provisioning_activity_src.csv' requires a .csv or KV store lookup definition."

@kkolli4 :Hey Durga, ESCU - AWS Cloud Provisioning From Previously Unseen City - Rule - this particular search name is not in the list of Beta searches listed here: https://docs.google.com/spreadsheets/d/1K8xMy3jX_PeF__QU-0sP-r7n2HwMMUQpnYfvHF_rEi4/edit#gid=1166574115
I think you want to look for and test  ESCU - Cloud Provisioning From Previously Unseen City - Rule .
Note: the updated search name for Mustang does not have AWS in the search title

also, Thank you @kkolli4 for pointing out naming inconsistency: I have updated the sheet with correct titles

The previous search AWS Cloud Provisioning From Previously Unseen City still shows an error but we intend to deprecate it since customers should use the latest Change Datamodel(yet to be released)


An error occurred while fetching the data

I finally got the Vectors to store on Pinecone, but when I try to run it locally, I got " An error occurred while fetching the data. Please try again." , when I send a message. Please help me.
error [ErrorWithoutStackTrace: PineconeClient: Error getting project name: SyntaxError: Unexpected token A in JSON at position 0]
error - utils\pinecone-client.ts (19:10) @ initPinecone
error - Error: Failed to initialize Pinecone Client
at initPinecone (webpack-internal:///(api)/./utils/pinecone-client.ts:23:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (webpack-internal:///(api)/./utils/pinecone-client.ts:26:18)
17 |   } catch (error) {
18 |     console.log('error', error);

19 |     throw new Error('Failed to initialize Pinecone Client');

Looks like your pinecone is not configured properly. Are your pinecone index and api keys set correctly in the env file?


How can I cancel or pause it when it running.

Unfortunately there is no way to pause so far. Giving 0s from io.Reader or stopping to call Write would solve this?

I open a mp3 file and  I have not find the way to stop 'Write'.I use p.Close but it is not work.Can u give me an example

How do you play the sound? If you use io.Copy, you can't stop until the music ends.

import (
"github.com/hajimehoshi/oto"
"github.com/tosone/minimp3"
)

	d, _ := ioutil.ReadFile("1.mp3")
	dec, data, err := minimp3.DecodeFull(d)
	if err != nil {
		fmt.Println(err)
		return
	}
	defer dec.Close()
	p, err := oto.NewPlayer(dec.SampleRate, dec.Channels, 2, 1024)
	if err != nil {
		fmt.Println("1", err)
		return
	}
	go func() {
		fmt.Println(p.Close())
	}()
	p.Write(data)

Thank you.


passwordmode + new implementation for show cursor causes a * to always show

Hi,
Thought i would create an issue regarding the comment i left. Easier to keep track this way.
Originally posted by @Sv-Th in https://github.com/rdkcentral/Lightning-ui/issues/3#issuecomment-966963641
One issue with the current implementation is that using the space on line 72 of inputfield (link) to have the cursor position correctly would cause the inputfield to always display a * in passwordmode when empty. My fix to this was this commit where the render was done on firstactive.
There could be other ways to solve this, of course.

Fixed in 1.2.0


MailAggregator don't remove deleted accounts from disk

I deleted email accounts when they are downloading emails via IMAP and the files in "/var/www/onlyoffice/Data/addons/mail/Data/aggregator/" have not been deleted.
On the other hand, is it possible to know the status of the complete implementation of IMAP?(sync, folders,...) We are going to stop using this wonderful software because we need it.
Best regards

Deletion of the files may take a long time, longer than 30 sec (api execution time)
We are currently working on the service for removal unnecessary  files.
We also have plans to add an advanced cleaning service for complete deletion of portal information


strictObjects and unions

Hey,
I'm trying to create a schema for an object that has a code property, a path property, or both.
But not none, and that no other key exists by combining 2 strict objects, and then doing a "and / or" mechanism as following:
import z from "zod";

const withCode = z.strictObject({code: z.string()});
const withPath = z.strictObject({path: z.string()});

const withCodeOrPath = withCode.or(withPath);
const withCodeAndPath = withCode.and(withPath);
const withCodeAndOrPath = withCodeAndPath.or(withCodeOrPath);

withCodeAndOrPath.parse({
  code: "bob",
  path: "bob"
});

But this doesn't work, parsing fails with:
Unrecognized key(s) in object: 'path'
The TS version of this does seem to work, here's a sandbox link - https://codesandbox.io/s/blissful-fog-xcdyh5?file=/src/pure-types.ts
PS: I fixed it by making both properties optional, and then using a custom refinement.
.refine((obj) => obj.code || obj.path)
Is this a bug? expected behavior?
Thanks in advance!

I fixed it by making both properties optional, and then using a custom refinement.

That's the recommended approach here. This is all behaving as intended. 👍

This approach feels better, to me:
const withCode = z.object({ code: z.string() }).strict();
const withPath = z.object({ path: z.string() }).strict();
const withCodeAndPath = withCode.merge(withPath).strict();
const withCodeAndOrPath = z.union([withCodeAndPath, withCode, withPath]);

type WithCodeAndOrPath = z.infer<typeof withCodeAndOrPath>;

withCodeAndOrPath.parse({ // success
  code: 'code',
  path: 'path',
});
withCodeAndOrPath.parse({ // success
  code: 'code'
});
withCodeAndOrPath.parse({ // success
  path: 'path'
});
withCodeAndOrPath.parse({}); // error
withCodeAndOrPath.parse({ extraneous: true }); // error

But I'm confused why the following would be a reasonable expectation:
const withCode = z.strictObject({ code: z.string() });
const withPath = z.strictObject({ path: z.string() });

const withCodeOrPath = withCode.or(withPath);
const withCodeAndPath = withCode.and(withPath);
const withCodeAndOrPath = withCodeAndPath.or(withCodeOrPath);

type InferredType = z.infer<typeof withCodeAndOrPath>;
const value: InferredType = {
  code: 'code',
  path: 'path',
};
withCodeAndOrPath.parse(value); // error (unable to parse an inferred type)

In what scenarios should I be expecting an inferred type to not be reliably parseable?

Another example that I'm looking for clarity on, using an example from the docs:
const nameAndAge = z
  .object({ name: z.string() })
  .and(z.object({ age: z.number() })); // { name: string } & { age: number }

// evaluates to { name?: string; } & { age?: number; }
// what is the rationale behind the properties being inferred as optional in this instance?
type InferredType = z.infer<typeof nameAndAge>;

const value: InferredType = {}; // i would not have expected for this assignment to be possible based on the zod declaration
nameAndAge.parse(value); // fails (name and age are required)


Application specific password seems wrong

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
I turned on 2fa auth for my apple id.
I tried running my fastlane script this evening and received this error:
Complete output when running fastlane, including the stack trace and command used
[19:36:37]: ▸ [19:36:37]: Ready to upload new build to TestFlight (App:<PHONE_NUMBER>)...
[19:36:37]: ▸ [19:36:37]: Going to upload updated app to iTunes Connect
[19:36:37]: ▸ [19:36:37]: This might take a few minutes. Please don't interrupt the script.
[19:36:41]: ▸
[19:36:42]: ▸ [19:36:42]: Transporter transfer failed.
[19:36:42]: ▸ [19:36:42]:
[19:36:42]: ▸
[19:36:42]: ▸ [19:36:42]: Application specific password seems wrong
[19:36:42]: ▸ [19:36:42]: Please make sure to follow the instructions
[19:36:42]: ▸ security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
[19:36:42]: ▸ [19:36:42]: Your account has 2 step verification enabled
[19:36:42]: ▸ [19:36:42]: Please go to https://appleid.apple.com/account/manage
[19:36:42]: ▸ [19:36:42]: and generate an application specific password for
[19:36:42]: ▸ [19:36:42]: the iTunes Transporter, which is used to upload builds
[19:36:42]: ▸ [19:36:42]: Going to upload updated app to iTunes Connect
[19:36:42]: ▸ [19:36:42]: This might take a few minutes. Please don't interrupt the script.
[19:36:46]: ▸
[19:36:46]: ▸ [19:36:46]: Transporter transfer failed.
[19:36:46]: ▸ [19:36:46]:
[19:36:46]: ▸
[19:36:46]: ▸ [19:36:46]: Application specific password seems wrong
[19:36:46]: ▸ [19:36:46]: Please make sure to follow the instructions
[19:36:46]: ▸ security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
[19:36:46]: ▸ [19:36:46]: Your account has 2 step verification enabled
[19:36:46]: ▸ [19:36:46]: Please go to https://appleid.apple.com/account/manage
[19:36:46]: ▸ [19:36:46]: and generate an application specific password for
[19:36:46]: ▸ [19:36:46]: the iTunes Transporter, which is used to upload builds
[19:36:46]: ▸ [19:36:46]: Going to upload updated app to iTunes Connect
[19:36:46]: ▸ [19:36:46]: This might take a few minutes. Please don't interrupt the script.

Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
🚫 fastlane environment 🚫
Stack

Key
Value

OS
10.12.1

Ruby
2.3.1

Bundler?
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.1

Git
git version 2.9.3 (Apple Git-75)

Installation Source
/Users/***/.rbenv/versions/2.3.1/bin/fastlane

Host
Mac OS X 10.12.1 (16B2555)

Ruby Lib Dir
/Users/***/.rbenv/versions/2.3.1/lib

OpenSSL Version
OpenSSL 1.0.2j  26 Sep 2016

fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

default_platform :ios

platform :ios do
  before_all do
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
    cocoapods
  end

  desc "Runs all the tests"
  lane :test do
    scan
  end

  def beta_client
    ipa = gym(scheme: "***", use_legacy_build_api: true)
    pilot(username: "***", skip_waiting_for_build_processing:true, ipa: ipa)
  end

  def beta_admin
    ipa = gym(scheme: "***", use_legacy_build_api: true)
    pilot(username: "***", skip_waiting_for_build_processing:true, ipa: ipa)
  end

  def beta_all
    ensure_git_branch
    sh "fastlane beta_client"
    sh "fastlane beta_admin"
    increment_build_number
    commit_version_bump
  end

  lane :beta do
    beta_all
  end

  lane :beta_client do
    beta_client
  end

  lane :beta_admin do
    beta_admin
  end

  lane :increment do
    increment_build_number
  end

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
  end
end

`./fastlane/Appfile`
app_identifier "***"

apple_id "***" # Your Apple email address

team_id "***"  # Developer Portal Team ID
itc_team_id "***"

for_platform :ios do
    for_lane :beta_admin do
        app_identifier "***"
    end
end

# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md

fastlane gems

Gem
Version
Update-Status

credentials_manager
0.16.2
✅ Up-To-Date

spaceship
0.36.2
✅ Up-To-Date

fastlane_core
0.53.0
✅ Up-To-Date

deliver
1.14.5
✅ Up-To-Date

snapshot
1.16.2
🚫 Update availaible

frameit
3.0.0
✅ Up-To-Date

pem
1.3.2
✅ Up-To-Date

cert
1.4.3
✅ Up-To-Date

sigh
1.11.2
✅ Up-To-Date

produce
1.2.1
✅ Up-To-Date

gym
1.11.3
✅ Up-To-Date

pilot
1.11.1
✅ Up-To-Date

scan
0.13.1
✅ Up-To-Date

supply
0.7.1
✅ Up-To-Date

match
0.10.0
✅ Up-To-Date

screengrab
0.5.5
✅ Up-To-Date

fastlane
1.106.2
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded*
Loaded gems

Gem
Version

did_you_mean
1.0.2

highline
1.7.8

commander
4.4.0

terminal-table
1.4.5

json
1.8.3

multipart-post
2.0.0

faraday
0.9.2

faraday_middleware
0.10.0

dotenv
2.1.1

net-ssh
3.2.0

net-sftp
2.1.2

plist
3.1.0

rubyzip
1.1.7

security
0.1.3

krausefx-shenzhen
0.14.10

slack-notifier
1.5.1

i18n
0.7.0

thread_safe
0.3.5

tzinfo
1.2.2

activesupport
<IP_ADDRESS>

colored
1.2

claide
1.0.1

xcodeproj
1.3.3

rouge
1.11.1

xcpretty
0.2.4

terminal-notifier
1.7.1

addressable
2.3.8

credentials_manager
0.16.2

multi_xml
0.5.5

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20160826

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
1.6.8

xcode-install
2.0.8

word_wrap
1.0.0

multi_json
1.12.1

babosa
1.0.2

excon
0.54.0

gh_inspector
1.0.2

fastlane_core
0.53.0

bundler
1.13.6

mini_magick
4.5.1

xcpretty-travis-formatter
0.0.4

uber
0.0.15

representable
2.3.0

retriable
2.1.0

mime-types-data
3.2016.0521

mime-types
3.1

hurley
0.2

little-plugger
1.1.4

logging
2.1.0

jwt
1.5.6

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
<IP_ADDRESS>

google-api-client
0.9.19

io-console
0.4.6

generated on: 2016-10-31

have you read the error message, telling you what todo for 2fa enabled accounts?
see here https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification for a detailed howto on using 2fa - even on CI

@hjanuschka yes, i did it before. After success auth and run fastlane i'we got an error
`[00:24:47]: Fixnum is not a String
+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | cocoapods        | 1           |
| 3    | gym              | 16          |
| 💥    | pilot            | 0           |
+------+------------------+-------------+
[00:24:47]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡  Match - 2FA - Fixnum is not a String
https://github.com/fastlane/fastlane/issues/6768 [open] 5 💬
a day ago
➡  --decimals flag type must be Fixnum not String
https://github.com/fastlane/fastlane/issues/4881 [closed] 1 💬
27 May 2016
➡  [slather action] Fix --decimals flag type
https://github.com/fastlane/fastlane/pull/4880 [closed] 3 💬
27 May 2016
and 1 more at: https://github.com/fastlane/fastlane/search?q=Fixnum is not a String&type=Issues&utf8=✓
/Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie.rb:373:in value=': [!] Fixnum is not a String (TypeError) 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie.rb:680:in block in yaml_initialize'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie.rb:674:in each' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie.rb:674:in yaml_initialize'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie.rb:667:in init_with' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:382:in init_with'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:374:in revive' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:208:in visit_Psych_Nodes_Mapping'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/visitor.rb:16:in visit' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/visitor.rb:6:in accept'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:32:in accept' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:330:in block in register_empty'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:330:in each' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:330:in register_empty'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:141:in visit_Psych_Nodes_Sequence' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/visitor.rb:16:in visit'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/visitor.rb:6:in accept' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:32:in accept'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:311:in visit_Psych_Nodes_Document' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/visitor.rb:16:in visit'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/visitor.rb:6:in accept' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/visitors/to_ruby.rb:32:in accept'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych/nodes/node.rb:38:in to_ruby' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/psych-2.1.1/lib/psych.rb:255:in load'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie_jar/yaml_saver.rb:24:in load' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:325:in block in load'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:324:in open' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:324:in load'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/two_step_client.rb:95:in load_session_from_env' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/client.rb:250:in send_shared_login_request'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/tunes/tunes_client.rb:160:in send_login_request' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/client.rb:411:in do_login'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/client.rb:230:in login' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/client.rb:90:in login'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/tunes/spaceship.rb:22:in login' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pilot-1.11.1/lib/pilot/manager.rb:15:in login'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pilot-1.11.1/lib/pilot/manager.rb:8:in start' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pilot-1.11.1/lib/pilot/build_manager.rb:4:in upload'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/actions/pilot.rb:18:in run' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:202:in block (2 levels) in execute_action'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/actions/actions_helper.rb:35:in execute_action' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:187:in block in execute_action'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:186:in chdir' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:186:in execute_action'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:112:in trigger_action_by_name' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/fast_file.rb:140:in method_missing'
from Fastfile:20:in beta_client' 	from Fastfile:41:in block (2 levels) in parsing_binding'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/lane.rb:33:in call' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:49:in block in execute'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:45:in chdir' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:45:in execute'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/lane_manager.rb:52:in cruise_lane' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/command_line_handler.rb:30:in handle'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/commands_generator.rb:52:in block (2 levels) in run' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:178:in call'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:153:in run' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in run_active_command'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane_core-0.53.0/lib/fastlane_core/ui/fastlane_runner.rb:38:in run!' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in run!'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/commands_generator.rb:246:in run' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/commands_generator.rb:23:in start'
from /Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/cli_tools_distributor.rb:58:in take_off' 	from /Users/***/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/bin/fastlane:5:in <top (required)>'
from /Users//.rbenv/versions/2.3.1/bin/fastlane:23:in load' 	from /Users/***/.rbenv/versions/2.3.1/bin/fastlane:23:in '`

I'm having trouble with a 2FA protected bitbucket account as well. Reading and writing to remote both via https and ssh works ok with the match repo when I do git clone, but fastlane can not authenticate. The interesting thing is I was able to authenticate a few hours ago.

Hi @suzhaev Check out https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification for steps of setting this up. Thanks!

@TKBurner already read it

hjanuschka commented 20 hours ago
have you read the error message, telling you what todo for 2fa enabled accounts?
see here https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification for a detailed howto on using 2fa - even on CI
@suzhaev
suzhaev commented 19 hours ago • edited
@hjanuschka yes, i did it before. After success auth and run fastlane i've got an error

@suzhaev Can you share your current full input and output? It looks like this is a different issue now that 2-factor is setup.

Hey everyone, fastlane now fully supports both two-factor and two-step verification 👋
Please make sure to update to the latest version of fastlane by running
fastlane update_fastlane

If you use a Gemfile, just run bundle update
On your computer 🚀
To use fastlane with two-factor, just run fastlane as you usually would. You'll be asked for the verification method, and a 4 or 6 digits pin. Everything will just work out of the box 📦
On your continuous integration system 💻
Check out the official two-factor docs for more information on how to setup two-step on CI system. You'll have to authenticate on your local machine to get a session cookie, which you then transfer to your CI.

If you have any issues setting this up, please submit a new issue so we can help you get up and running 👍


Hypre matrix reader fixes

This PR has some small fixes and changes to HypreParMatrix. In particular, it fixes an issue with HypreParMatrix::Read_IJMatrix not setting up the MemoryIJData properly.
Specific changes:

Use WrapHypreParCSRMatrix in HypreParMatrix::Read and HypreParMatrix::Read_IJMatrix (bug fix)
Clarify the documentation that files saved with HypreParMatrix::Print should be read with HypreParMatrix::Read_IJMatrix
More robust check for diagonal blocks in HypreParMatrix constructor
Use const std::string& instead of const char* in some Hypre APIs

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#4310
@pazner
@tzanio
@tzanio + @v-dobrev
5/16/24
⌛due 5/30/24
⌛due 6/6/24

PR Checklist

[ ] Code builds.
[ ] Code passes make style.
[ ] Update CHANGELOG:

[ ] Is this a new feature users need to be aware of? New or updated example or miniapp?
[ ] Does it make sense to create a new section in the CHANGELOG to group with other related features?

[ ] Update INSTALL:

[ ] Had a new optional library been added? If so, what range of versions of this library are required? (Make sure the external library is compatible with our BSD license, e.g. it is not licensed under GPL!)
[ ] Have the version ranges for any required or optional libraries changed?
[ ] Does make or cmake have a new target?
[ ] Did the requirements or the installation process change? (rare)

[ ] Update continuous integration server configurations if necessary (e.g. with new version requirements for each of MFEM's dependencies)

[ ] .github
[ ] .appveyor.yml

[ ] Update .gitignore:

[ ] Check if make distclean; git status shows any files that were generated from the source by the project (not an IDE) but we don't want to track in the repository.
[ ] Add new patterns (just for the new files above) and re-run the above test.

[ ] New examples:

[ ] All sample runs at the top of the example source file work.
[ ] Update examples/makefile:

[ ] Add the example code to the appropriate SEQ_EXAMPLES and PAR_EXAMPLES variables.
[ ] Add any files generated by it to the clean target.
[ ] Add the example binary and any files generated by it to the top-level .gitignore file.

[ ] Update examples/CMakeLists.txt:

[ ] Add the example code to the ALL_EXE_SRCS variable.
[ ] Make sure THIS_TEST_OPTIONS is set correctly for the new example.

[ ] List the new example in doc/CodeDocumentation.dox.
[ ] If new examples directory (e.g.examples/pumi), list it in doc/CodeDocumentation.conf.in
[ ] Companion pull request for documentation in mfem/web repo:

[ ] Update or add example-specific documentation, see e.g. the src/examples.md.
[ ] Add the description, labels and screenshots in src/examples.md and src/img.
[ ] In examples.md, list the example under the appropriate categories, add new categories if necessary.
[ ] Add a short description of the example in the "Extensive Examples" section of features.md.

[ ] New miniapps:

[ ] All sample runs at the top of the miniapp source file work.
[ ] Update top-level makefile and makefile in corresponding miniapp directory.
[ ] Add the miniapp binary and any files generated by it to the top-level .gitignore file.
[ ] Update CMake build system:

[ ] Update the CMakeLists.txt file in the miniapps directory, if the new miniapp is in a new directory.
[ ] Add/update the CMakeLists.txt file in the new miniapp directory.
[ ] Consider adding a new test for the new miniapp.

[ ] List the new miniapp in doc/CodeDocumentation.dox
[ ] If new miniapps directory (e.g.miniapps/nurbs), add it to MINIAPP_SUBDIRS in the makefile.
[ ] If new miniapps directory (e.g.miniapps/nurbs), list it in doc/CodeDocumentation.conf.in
[ ] Companion pull request for documentation in mfem/web repo:

[ ] Update or add miniapp-specific documentation, see e.g. the src/meshing.md and src/electromagnetics.md files.
[ ] Add the description, labels and screenshots in src/examples.md and src/img.
[ ] The miniapps go at the end of the page, and are usually listed only under a specific "Application (PDE)" category.
[ ] Add a short description of the miniapp in the "Extensive Examples" section of features.md.

[ ] New capability:

[ ] All new public, protected, and private classes, methods, data members, and functions have full Doxygen-style documentation in source comments. Documentation should include descriptions of member data, function arguments and return values, template parameters, and prerequisites for calling new functions.
[ ] Pointer arguments and return values must specify whether ownership is being transferred or lent with the call.
[ ] Any new functions should include descriptions of their intended use e.g. for internal use only, user-facing, etc., along with references to example code whenever possible/appropriate.
[ ] Consider adding new sample runs in existing examples to highlight the new capability.
[ ] Consider saving cool simulation pictures with the new capability in the Confluence gallery (LLNL only) or submitting them, via pull request, to the gallery section of the mfem/web repo.
[ ] If this is a major new feature, consider mentioning it in the short summary inside README (rare).
[ ] List major new classes in doc/CodeDocumentation.dox (rare).

[ ] Update this checklist, if the new pull request affects it.
[ ] Run make unittest to make sure all unit tests pass.
[ ] Run the tests in tests/scripts.
[ ] (LLNL only) After merging:

[ ] Update internal tests to include the new features.

The logic for only comparing the rows and cols partitionings as pointers is used in other places too, I think. It's probably best to factor out the full comparison algorithm and use it everywhere.

The logic for only comparing the rows and cols partitionings as pointers is used in other places too, I think. It's probably best to factor out the full comparison algorithm and use it everywhere.

I did this in 8da512d5c. The logic for computing the size of the partitioning arrays was also repeated in a couple places, there is now a helper function GetPartitioningArraySize to do this.

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Looks good to me. Thanks @pazner

Thanks, @liruipeng. BTW, is there any update on hypre-space/hypre#168? Is hypre_ParCSRMatrixReadIJ essentially deprecated?

Merged in next for testing...


[Bug Report]

Describe the bug
A clear and concise description of what the bug is.
Versions (please complete the following information):

Minecraft Server Version: [1.16.5 PaperSpigot]
Plugin Version: [1.10.1]

*Do NOT say Latest use /version crazycrates in the console.
Issue
Welcome to your plugin there is (I think) one untranslatable message I'm attaching a screenshot, I'd like to translate it, but I can't find it in all files
Screenshots

Line 24 - Obtaining-Keys


Bug: Cannot save tf.function decorated custom model

System information.

Have I written custom code (as opposed to using a stock example script provided in Keras): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOSX 10.15.7
TensorFlow installed from (source or binary): binary via pip
TensorFlow version (use command below): 2.7.0
Python version: 3.7.10
Bazel version (if compiling from source): N/A
GPU model and memory: N/A
Exact command to reproduce:

When saving a model decorated with @tf.function with an input signature, I got the following error:
Traceback (most recent call last):

  File "/var/folders/99/yfp904qj47z9_hn0td6z0dd40000gs/T/ipykernel_99573/2600402858.py", line 1, in <module>
    model.save("./tmp_bug_model")

  File "/Users/edwardcui/opt/anaconda3/envs/deepfm/lib/python3.7/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None

  File "/Users/edwardcui/opt/anaconda3/envs/deepfm/lib/python3.7/site-packages/tensorflow/python/framework/func_graph.py", line 1129, in autograph_handler
    raise e.ag_error_metadata.to_exception(e)

TypeError: in user code:

    File "/Users/edwardcui/opt/anaconda3/envs/deepfm/lib/python3.7/site-packages/keras/saving/saving_utils.py", line 125, in _wrapped_model  *
        outputs = model(*args, **kwargs)
    File "/Users/edwardcui/opt/anaconda3/envs/deepfm/lib/python3.7/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler  **
        raise e.with_traceback(filtered_tb) from None

    TypeError: call(inputs, training) got two values for 'training'.

Here is an example model class subclassing keras.Model

import tensorflow as tf
import keras

class ExampleBugClass(tf.keras.Model):
    def __init__(self):
        super(ExampleBugClass, self).__init__()

    @tf.function(input_signature=[
        {"x": tf.TensorSpec((None, None), dtype=tf.int32, name="x")},
         tf.TensorSpec(None, dtype=tf.bool, name="training")
         ])
    def call(self, inputs, training=False):
        return tf.reduce_sum(inputs["x"], axis=1, keepdims=True)

model = ExampleBugClass()

# Make example data
data = {"x": tf.constant([[1, 2, 5, 3], [2, 3, 6, 4], [3, 7, 2, 1], [9, 4, 2 ,0]])}

# Call the model, no error
output = model(data, training=False)

# Save the model, gives the error above
model.save("./tmp_bug_model")

According to the documentation, you can use a serving functions for our task. Custom code below
import tensorflow as tf
import tensorflow.keras as keras

class ExampleBugClass(tf.keras.Model):
    def __init__(self):
        super(ExampleBugClass, self).__init__()

    def call(self, inputs, training=False):
        return tf.reduce_sum(inputs["x"], axis=1, keepdims=True)

    @tf.function(input_signature=[
        {"x": tf.TensorSpec((None, None), dtype=tf.int32, name="x")}
         ])
    def serve(self, inputs):
        return self.call(inputs)

model = ExampleBugClass()

# Make example data
data = {"x": tf.constant([[1, 2, 5, 3], [2, 3, 6, 4], [3, 7, 2, 1], [9, 4, 2 ,0]])}

# Call the model, no error
output = model(data, training=False)
print(output)

# Save the model, gives the error above
model.save("./tmp_bug_model", signatures={"serving_default": model.serve})

new_model = tf.keras.models.load_model("./tmp_bug_model")
infer = new_model.signatures["serving_default"]

print(infer(x=data["x"]))

@EdwardCuiPeacock,
Can you please a take a look at this comment and let us know if it helps you? Thanks!

@chunduriv Thanks, this seems like a great workaround.


Consistent data

As a user
I want consistent information
So that I never get errors (bad link, required field missing, etc.)

Using js-schema for validation.  Each entity and datatype has a schema to verify against.  See #24 for more details.

Need to consider the case of a Parent entity being deleted.  What happens to children? are they just orphaned or do we do cascading delete?
Maybe physical deletes #32 are a bad idea. Logical deletes just sets a flag and searches do not return a "deleted entity".  But, GET does, so that when you have a link its information is always available.

Checking the data on input and output.


CreateTearsheetStep: Updating props.secondaryLabel causes CreateTearsheet to re-render completely

Package
Carbon for IBM Products
Description
When props.secondaryLabel of a CreateTearsheetStep is updated, the entire CreateTearsheet component re-renders and falls back to the first step.
Component(s) impacted
CreateTearsheet
Browser
Safari
@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version
2.47.0
Suggested Severity
Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround.
Product/offering
watsonx
CodeSandbox or Stackblitz example
https://stackblitz.com/edit/github-ggvwco-pz8dxm?file=src%2FExample%2FExample.jsx,package.json
Steps to reproduce the issue (if applicable)
In the stackblitz: click "next" to access the second step; then click "increment"
https://github.com/user-attachments/assets/5944ee44-482f-4d2a-aa58-68ae65878af4
The stackblitz seems to reload the page shortly after somehow causing the tearsheet to disappear and re-appear. This does not happen in my actual codebase. Only the re-render of the CreateTearsheet component and therefore loss of navigation.
Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[ ] I checked the current issues for duplicate issues

hey @janhassel wanted to follow back up with you here. i see behavior in your stackblitz, but i think this is just an issue with implementation. in your example you're using just a regular html button and the onClick causes the page to submit, so it re-renders.
if you update your handler to include preventDefault this behavior doesn't happen and the label updates without causing you to start back at the beginning.
onClick={(e) => {
  e.preventDefault();
  setCounter(counter + 1);
}}

let me know if this helps or not because i am not able to cause any resetting to happen when updating secondaryLabel so i may need your help if this behavior persists.

@davidmenendez Well that explains the page refresh happening on stackblitz vs. no refresh in my local setup.
However, changing the example to a checkbox demonstrates the issue:
https://stackblitz.com/edit/github-ggvwco-a7q5kx?file=src%2FExample%2FExample.jsx,package.json
https://github.com/user-attachments/assets/1ada9fe4-e14d-47e3-9cbd-7bca0305cb56

@janhassel thanks for the follow up. luckily for you we just issued a fix for this exact problem in our latest version. it's still a release candidate, but if you take your example and update to v2.49.0-rc.0 you'll see the problem is fixed.

@davidmenendez Yeah, it seems to be fixed with 2.49.0-rc.0. Thanks!


mention walkman90

Surprisingly noticed myself in Readme 😊
guess Awalkman90 was a typo initially.
I've change my username recently to kliushnichenko, so, if you still up to mention me, feel free to merge.
Thanks for mentioning for even such a tiny help

@kliushnichenko I really appretiate for any contributions :) thank you one more time


Enterprise data protection sample question

Hello,
Just looking for code sample about Enterprise data protection (Windows-universal-samples/Samples/EnterpriseDataProtection/), scenario 4:
"An app wants to roam its protected file to other devices.In order to do so, it must check if the file’s protection can be roamed.The app calls GetProtectionInfoAsync on the file to retrieve this information."
Have a question regarding to the Windows-universal-samples/Samples/EnterpriseDataProtection/cs/Scenario4_FilePMgr.xaml.cs,  row#81  private async void CreateFileAndProtect() method.
await FileProtectionManager.ProtectAsync(m_file, Scenario1.m_enterpriseId);
procInfo =  await FileProtectionManager.GetProtectionInfoAsync(m_file);

As a result I have procInfo as:
Identity = "onmicrosoft.com"
IsRoamable = false
Status = Protected

So, does it means that I can't roam protected file to other device? Why "IsRoamable = false"? How  can I protect my file and roam it to other devices (ProtectAsync method has no any additional parameters)?
Will be very appropriated for any help or answers.

This isn't a question about a sample, but rather a question about the underlying API. You can open a support case with our Developer Support team who can further help with the specific problem you are experiencing. Please use these steps below for further help:

Visit http://aka.ms/storesupport and sign-in with your Microsoft account
Under the “App Development” section choose "Windows 10 universal app development", then choose the appropriate problem type and category to get engaged through a formal support channel.


Feature/corpus form

Something that occurred to me: the corpus fields in the form are based on the CSV columns, but they're not displaying which field maps to which column. This will get especially confusing if you rename the fields.


Fix insufficient commentUrlParamsRegex

Fixes https://github.com/c-hive/fresh-bot/issues/34

Thanks for the fix! Could you enable the CI to run on your fork? Then if it's green I can merge it.

I've attempted to do so here https://github.com/GiovanH/actions/runs/8106103842?check_suite_focus=true but I'm not super familiar with github actions so it doesn't look like the new code has actually taken effect yet

On your fork repo, you need to enable github actions in the settings: https://github.com/GiovanH/fresh-bot


[ASTDumper] Improve colorization of parse and AST dumps

What's in this pull request? More colors in -dump-ast and -dump-parse.
When using swift -dump-ast, the ASTDumper currently produces the following:

As you can see, the output is nearly 100% white text. These commits add significantly more color, making it easy to see the distinct elements of the AST:

These same benefits apply to -dump-parse. Here's the before and after:

What's not in this pull request? 100% colorization and test coverage.
The screenshots above still contain some white text. These represent parts of ASTDumper that I haven't modified in this pull request. Why? Well, the pull request is already large, and I figured I should get some feedback before making it larger.
In addition, this pull request doesn't contain test coverage. I do intend on adding test coverage for -color-diagnostics, but that'd take some additional work. I'd prefer to get some feedback on the current color scheme, then add regression tests in a subsequent pull request.
Should this be merged as-is?
I think so. This is a big improvement to -dump-parse and -dump-ast. It could be an ever bigger improvement, it could use a more elegant abstraction than PrintWithColorRAII, it could have regression tests... but I think those can all come in a future pull request.

Nice!

Colorful! Nice! 👍

@swift-ci please smoke test.


Transition

Hi! Is possible to use different transitions between pages? Because i looked at the code and the pages transition is defined as an Activity annotation

Yes, you can implement transition for a specific page by overriding Page.onPushPageAnimation(), Page.onPopPageAnimation() and Page.getAnimationDuration().

Ok, thanks a lot. I would like to try this library to abandon fragments. I think it might be better if i could use Butterknife.


Does the "mne.stats.permutation_cluster_test" method work for within-subjects studies?

In the reference paper for the "mne.stats.permutation_cluster_test" method, some consideration is needed for multiple-subject studies. I'm asking for the within-subjects study where there is one subject-specific average for each condition. For eg, if we have R subjects and 2 conditions we will have R pairs of averaged samples. In this case, a pairwise randomization is needed instead of simple permutation and statistics should consider dependent samples.
I wonder if these considerations for the multiple-subject analysis have been implemented in this method or the similar cluster-based permutation methods? If so how should I specify that it is a multiple-subject or single subject analysis?
Either way, documentation is not much clear about this point and it is using the word "within-subject" which is confusing.

you are correct. This is currently no way to inform the function about
dependant samples.
this function
https://github.com/mne-tools/mne-python/blob/maint/0.15/mne/stats/cluster_level.py#L520
will just take as input the concatenated X along axis=0.
do you want to give it a try?
how woudl you write this in terms of API?
On Mon, Apr 2, 2018 at 5:19 AM, Maryam Honari<EMAIL_ADDRESS>wrote:

In the reference paper for the "mne.stats.permutation_cluster_test"
https://mne-tools.github.io/stable/generated/mne.stats.permutation_cluster_test.html#mne.stats.permutation_cluster_testmethod,
some consideration is needed for multiple-subject studies. I'm asking for
the within-subjects study where there is one subject-specific average for
each condition. For eg, if we have R subjects and 2 conditions we will have
R pairs of averaged samples. In this case, a pairwise randomization is
needed instead of simple permutation and statistics should consider
dependent samples.
I wonder if these considerations for the multiple-subject analysis have
been implemented in this method or the similar cluster-based permutation
methods? If so how should I specify that it is a multiple-subject or single
subject analysis?
Either way, documentation is not much clear about this point and it is
using the word "within-subject" which is confusing.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mne-tools/mne-python/issues/5074, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ1HFI_bFkptZC2A56e2UcyfeVNVDLxks5tkZilgaJpZM4TDGic
.


Regression w/ arc_select() returning data.frame not sf objects

Describe the bug
Using the latest version of arcgislayers, arc_select() is returning a data.frame instead of an sf object. I haven't dug into the details but I suspect it is related to this PR https://github.com/R-ArcGIS/arcgislayers/pull/197/
To Reproduce
library(arcgislayers)

bikeways_url <- "https://services.arcgis.com/njFNhDsUCentVYJW/arcgis/rest/services/Bikeways_Application_gdb/FeatureServer/0"

bikeways_data <- arc_read(bikeways_url)

class(bikeways_data)
#> [1] "data.frame"

bikeways_layer <- arc_open(bikeways_url)

class(arc_select(bikeways_layer))
#> [1] "data.frame"

Created on 2024-07-07 with reprex v2.1.0
Expected behavior
The url should return a sf object.
Additional context
The tests should be updated to make sure this type of regression would get caught in the future.

@elipousson in about an hour can you update {arcpbf} from https://r-arcgis.r-universe.dev/arcpbf? If that works for you ill push an update to CRAN.

@JosiahParry Tried it and got it working! I can double-check later if I needed to wait an hour exactly. Always good news when a bug report is a real bug and not just user error. Especially when the bug is a relatively quick fix.

Awesome! The one hour this is because r-universe rebuilds binaries on an hour schedule if there has been a change

Did you want me to add a test with expect_s3_class to check for an sf output? This is probably a one and done fix but would be good to get the expected class output into the text coverage.

Sure! That’s not a bad idea! The challenge is being able to test having different packages available

@elipousson new version of arcpbf hit CRAN this morning. Please let me know if it all goes well


minor fix for autostop env var usage in fixtures

#1289  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jlewitt1 and the rest of your teammates on  Graphite


Selected Stuck As Cyan

Insofar as trying to customise the layout via changing colours (I know, ricing a TUI, lol), I can't seem to get the currently selected option to be anything but the default Cyan colour.  The neighbours do change to the selected hexcodes in the toml but the selected does not.
Here's the relevant part of the toml which contains the "selected" section that should be different than cyan.
# Enables showing the neighbours
show_neighbours = true

# Neighbours' color and modifiers whilst the selector is unfocused
neighbour_color = "#5E6C64"
neighbour_modifiers = ""

# Neighbours' color and modifiers whilst the selector is focused
neighbour_color_focused = "#C0BFBC"
neighbour_modifiers_focused = ""

# Margin between neighbours and selected
neighbour_margin = 1

# Selected's color and modifiers whilst the selector is unfocused
selected_color = "#C0BFBC"
selected_modifiers = "underlined"

# Selected's color and modifiers whilst the selector is focused
selected_color_focused = "#F6F5F4"
selected_modifiers_focused = "bold"

This is the same issue as #194. Sadly, the tty is limited to a select few colors.

This is the same issue as #194. Sadly, the tty is limited to a select few colors.

I think there may be miscommunication as this is not the same issue. It's not that I want a completely custom colour, it's that one part of Lemurs is stuck as Cyan with the inability to make it for example Magenta or Blue, both of which are TTY colours.

I am able to reproduce this issue now. It is really rather strange, might have something to do with modifiers, not sure yet.


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.15.11 to before v5.15.11",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4b4e5bbf9386d4ec21d91c0cb0fd60b9bba778ec",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=11053a021937aa403c883d3e8ef78d8c5308f583"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "4b4e5bbf9386d4ec21d91c0cb0fd60b9bba778ec",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "11053a021937aa403c883d3e8ef78d8c5308f583",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "io-wq: drop wqe lock before creating new worker\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.15.11 by commit 11053a021937aa403c883d3e8ef78d8c5308f583, it was introduced in version v5.15.11 by commit 4b4e5bbf9386d4ec21d91c0cb0fd60b9bba778ec. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2021-1002761


Duration formatting

When using the Moment.duration({ days: 67 }).toIsoString() portion of this library, I am noticing that the ISOString that is formatted is P2M7D, but, what I need is P67D which is a more accurate representation of what I need.
Is there anyway, using Moment.js, to achieve this? Maybe through some kind of passed in option?

As toISOString uses the internal values of _data for the object, the format outputted by toISOString is determined on object creation. Very hacky example for modifying days:
var v = moment.duration(1,'days');v._data['days'] = 300;v.toISOString(); outputs P300D
Could you use moment.duration(200,'days').asDays(); and prepend P and append D to the string?

@Jervelund I wound up creating this mix-in https://gist.github.com/dennismonsewicz/4f6b4b94f14149b590ca for the project I was working on

Disclaimer first: I did not buy the ISO specification, so my knowledge about ISO8601 is from wikipedia and other implementations.
I assume that moment does not convert correctly according to ISO rules. For example the following two inputs result in the same output:
> moment.duration(24, 'hours').toString()
"P1D"
> moment.duration(1, 'days').toString()
"P1D"

However, I'd expect different outputs (expectation):
> moment.duration(24, 'hours').toString()
"PT24H"
> moment.duration(1, 'days').toString()
"P1D"

According to the german wikipedia both ISO representations differ at least in case of a clock change (DST), where P1D means: tommorrow, same time and PT24H means: in 24 hours, that might be one hour ealier or later on the clock.
The problem gets even more obvious when you take examples like this one:
> moment.duration(720, 'hours').toString()
"P1M"

720 hours is the duration of 30 days, which is the duration of a month. Add different libraries creating (moment) and parsing (third party) that ISO date and you come up with quite a lot of fun ;-)
For my case I will also have to verify what the parsing library does and if that is correct. But I am quite sure, that it is invalid (from an ISO 8601 standpoint) to simply convert 720 hours to one month.
I think the bubbling (see here) should stop at the level of hours.

One addition: I assume somebody working on moment already knew that this would be sensible:
moment.duration(24, 'hours')
Object { _milliseconds: 86400000, _days: 0, _months: 0, _data: Object, _locale: Object }
moment.duration(1, 'days')
Object { _milliseconds: 0, _days: 1, _months: 0, _data: Object, _locale: Object }

The difference between 24 hours and 1 day is present in the object, it just vanishes when it comes to ISO formatting...

Shouldn't duration formatting work similar to date formatting?
moment.duration(330).format('h:mm:ss')

There is already a library that does this (jsmreese/moment-duration-format), but it would make sense to include this in the base library.

So this was a long time ago and I don't really remember the details, but didn't PR #2357 fix this? In that case this issue could probably be closed :)

Closing, as this is partly fixed and partly a duplicate of #1048
Let me know if anyone has further thoughts.


GPI comparison

Goal -- take the set of all "GPI anchor genes" and compare the associated phenotypes with those of the "GPI anchored gene/proteins"
Use the Jaccard-similarioty metric between sets of ontology terms.
To get the HPO terms that are associated with genes, do not take the phenotypes from our biocurated patients, instead take them from this list
http://compbio.charite.de/jenkins/job/hpo.annotations.monthly/lastSuccessfulBuild/artifact/annotation/ALL_SOURCES_ALL_FREQUENCIES_genes_to_phenotype.txt
Use a simulation to determine whether the Jaccard similarity is significant
Get "random" protein-coding genes from the gene_info ftp://ftp.ncbi.nih.gov/gene/DATA/ and calculate the similarity between the GPI anchor genes and these sets N number of times...the p value is the number of times the similarity was as least as strong divided by N.

gene_info example
9606	646197	LOC646197	-	-	-	8	8q21.11	heat shock protein 90kDa alpha family class B member 1 pseudogene	pseudo	-	-	-	heat shock protein 90kDa alpha (cytosolic), class B member 1 pseudogene	20170408	-

9606=taxon id for human (first column)
646197=gene id
LOC646197=gene symbol
heat shock protein 90kDa alpha family class B member 1 pseudogene =long description
pseudo=gene type
Extract the genes we need:
$ zgrep ^9606 gene_info.gz  | grep protein-coding | cut -f1,2,3 > human_protein_coding_genes.tsv
robinp@ldg-jgm004:~/data/ncbi$ wc -l human_protein_coding_genes.tsv
20456 human_protein_coding_genes.tsv

Do we need  genes_to_phenotypes.txt OR phenotype_to_genes.txt
see: http://human-phenotype-ontology.github.io/faq.html

New function in phenol
public static Set<TermId> getAncestorTerms(
      Ontology<? extends Term, ? extends Relationship> ontology,
      Set<TermId> children,
      boolean includeOriginalTerm) {
    ImmutableSet.Builder<TermId> builder = new ImmutableSet.Builder<>();
    if (includeOriginalTerm) builder.addAll(children);
    Stack<TermId> stack = new Stack<>();
    Set<TermId> parents = getParentTerms(ontology, children, false);
    for (TermId t : parents) stack.push(t);
    while (!stack.empty()) {
      TermId tid = stack.pop();
      builder.add(tid);
      Set<TermId> prnts = getParentTerms(ontology, tid, false);
      for (TermId t : prnts) stack.push(t);
    }
    return builder.build();
  }

ftp://ftp.ncbi.nih.gov/gene/DATA/GENE_INFO/Mammalia/Homo_sapiens.gene_info.gz
has subset of gene_info for 9606, same format as gene_info.gz
choose set of genes at random but what size set? size of the (as yet to be determined) GPI anchored gene/proteins?
if I'm getting the list of associated HPO terms from ALL_SOURCES_ALL_FREQUENCIES_genes_to_phenotype.txt, I can then find all the ancestors of those phenotypes using the getAncestorTerms method of phenol. Or, get info from
ALL_SOURCES_ALL_FREQUENCIES_phenotype_to_genes.txt
instead, which already takes account of the ontology. Would have to parse the entire file, then select out the lines relating to the genes of interest and collect all the HPO terms from those lines.

PGAP5 does not appear in the NCBI list of human protein-coding genes because it is a synonym for MPPE1, id 65258.
https://www.ncbi.nlm.nih.gov/gene/?term=PGAP5%5Bsym%5D

Implemented in R notebook see folder gsppc


Add scrollEnabled example to RNTester

Summary
RNTester is missing a test for the scrollEnabled prop
Changelog

[General] [Added] - Added RNTester ScrollView scrollEnabled prop test
Test Plan
Tested in RNTester app

Can you run prettier using yarn lint --fix on your project and push again? Thank you!

Snapshot tests appear to be failing on iOS since I added the new example - can anyone explain how to update the snapshot images?

Open RNTester/RNTester.xcodeproj in Xcode, then open RNTesterSnapshotTests.m. Change L29 to _runner.recordMode = YES;. This will make it so that snapshots are re-recorded on the next run.
Select the iPhone 6S simulator from the list of devices in the Xcode toolbar (the simulator used here should match the IOS_DEVICE envvar in scripts/.tests.env).
You can then hit CMD+U (Menubar > Product > Test) to run tests.
Afterwards, switch recordMode back to NO.

You should end up with a new set of snapshots for the ScrollViewExample test.

Perfect, thanks update snapshots as well

We should look into that. We're only using the iOS12 snapshots on Circle CI, but I'm not sure if our internal test suite relies on the iOS 10 and iOS 11 snapshots for additional tests.
All looks good on this PR, merging!


Add UniqueAlphaNumericScrambler

Related to #324

Thanks for the feedback! I've update the PR with the requested changes


ci(docker): Build Docker images once, scan them for vulnerabilities during CI

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit to check linting
[x] I have added information to docs/ if required so people know about the feature!
[x] I have filled in the "Changes" section below?
[x] I have filled in the "How did you test this code" section below?
[x] I have used a Conventional Commit title for this Pull Request

Changes
This does a few things:

The PR workflow now builds a number of Docker images (unified, frontend only, backend only, frontend for E2E) once per a PR event. Previously, the E2E image was being built for every dockerised E2E invocation. This should decrease our Depot costs.
The Docker images are pushed to the GitHub registry for future reuse.
The merge to main workflow also builds and pushes an image, currently just for E2E.
E2E jobs are refactored to use the built API and E2E images.
E2E jobs are now parametrised. A great deal of duplicate code is gone. Better naming for "Unified" jobs (see below).
Unified, frontend only and backend only images are verified for vulnerabilites.

During the making of this PR, I've discovered a number of discussion points and action  listed below.
Things to consider / TODOs

Ideally we should build all the images we ship in the merge to main workflow, and then use those for all subsequent deployments. This work will include migrating the private-cloud build steps from GH actions to its own Dockerfile. This will also allow us to build private-cloud images for specific PRs, which should improve our integration testing and allow us to detect problems earlier.

My initial impression was we wanted to test separate API/frontend vs a combined image, i.e. the one we ship as flagsmith/flagsmith. However, what is now called "E2E Unified" actually runs separate API and frontend services still. Currently, the only difference between 'local' and 'unified' is whether frontend is being run in Docker. @matthewelwell @novakzaballa We need a decision on this.
I don't like that frontend/Dockerfile.e2e build mostly duplicates frontend/Dockerfile one. I'd like to try a multi-stage Docker build for E2E, i.e. add a FROM ghcr.io/flagsmith/flagsmith-frontend:${FRONTEND_VERSION} as frontend stage and pull whatever we need on top of the base E2E image. I couldn't tackle this on my own so tagging @kyle-ssg for advice on this.

How did you test this code?
This is a CI change.

 My initial impression was we wanted to test separate API/frontend vs a combined image, i.e. the one we ship as flagsmith/flagsmith. However, what is now called "E2E Unified" actually runs separate API and frontend services still. Currently, the only difference between 'local' and 'unified' is whether frontend is being run in Docker. @matthewelwell @novakzaballa We need a decision on this.

Yes, this doesn't make an awful lot of sense. I think we can just consolidate this to only test via docker since this is the product that we provide to our customers.


Use extended control API

I've needed to disable auto-exposure on a webcam and the control wasn't available because was part of the extended control (device specific ones). This little patch should work, i'll be testing it during the week.
Anyways, thanks for the bindings!

It builds with warnings
../capture.c: In function ‘camera_controls_menus’:
../capture.c:468:13: warning: passing argument 1 of ‘error’ discards ‘const’ qualifier from pointer target type
       error(camera, "VIDIOC_QUERYMENU");
             ^
../capture.c:28:13: note: expected ‘struct camera_t *’ but argument is of type ‘const struct camera_t *’
 static bool error(camera_t* camera, const char * msg)

Now it builds cleanly (the error and failure functions are const'ed)

@iglosiggio this patch removes two methods. This is an API break and, from what I can understand, unrelated to the fix at hand for the extended controls?

The patch also introduces a new dependency, v4-utils. Because it is not installed on Travis CI the build fails. Is this neccesary for using extended controls, or can it be done with the regular ioctl?
Btw, not the maintainer, just someone who needs the same functionality.

After i submitted the patch i kept working on the fork to fulfill my needs
(even removing deprecated code).
If you want an "only extended api patch" i will create that branch when i
arrive to my work ^^
El 2 dic. 2016 8:17 AM, "Jon Nordby"<EMAIL_ADDRESS>escribió:

@iglosiggio https://github.com/iglosiggio this patch removes two
methods. This is an API break and, from what I can understand, unrelated to
the fix at hand for the extended controls?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bellbind/node-v4l2camera/pull/25#issuecomment-264432284,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABGeeDe6_pnqUPXkNE1zztYJM52VV8rXks5rD_5CgaJpZM4KaMqP
.

libv4l adds automatic conversion to RGB (because of that i removed the toRGB and toYUV methods)

All the irrelevant changes are after https://github.com/iglosiggio/node-v4l2camera/commit/80563908236278fb78e5c4f2b8a77d92bae3c06f

@iglosiggio I think the chance of this getting merged will go up substantially if only the relevant changes are included, so a dedicated branch and updating the PR to point to that would be great.
I also tested the commits here locally, they seems to work fine.


Testing: Extract common test commands to a new package

Cypress tests distributed in different packages use largely the same commands. This logic can be refactored into a package or a common location.

Closing as not needed right now.


Support Fuse Auth policy

Codecov Report

Merging #13479 (0519426) into master (9797649) will decrease coverage by 26.36%.
The diff coverage is 20.00%.

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

@LuQQiu Thank you for the review with detailed suggestion, I push a new commit, PTAL.

@LuQQiu Please take another look, thanks.

alluxio-bot, merge this please


Issue when creating a task and start it in main function

Description:

Create a ballerina module called test. Define a ballerina task and attach a service to it.
Compile the module using ballerina build and install it to local repo using ballerina install.
Create another ballerina module and, in there write a ballerina program importing the above module.

import wso2/test;
public function main(string... args) {

    //create the task
   //call task.start()

}

Here you will see the main function exits even if the programmer expects the task would continue to run.
Affected Versions:
Ballerina 0.991.0
OS, DB, other environment details and versions:
Mac OS
Suggested Labels (optional):
Ballerina runtime

This should be fixed in the language side. If there is a listener attached to a service, it should not exit.

This is related to #18601 , hence closing