About training config: unet_use_cross_frame_attention

I'm going to train the motion module myself.
After hard preparation and debugging work, my training can finally be executed successfully, but I can't confirm the results.
The output motion module cannot work well, the result images are almost the same. It's hard to recognize moving things.
Besides, I found that when I turn on unet_use_cross_frame_attention,  the module 'SparseCausalAttention2D' cannot be found.
Could you please help me with trainning config and missing 'SparseCausalAttention2D'  module?

Hi, can you tell me your learning rate and train dataset? I also tried to train the motion module on a small dataset. I set batch size =4 and lr=3e-5, but the train result didn't look good and the train loss didn't decrease.

@tacit0428 Hi, I used the dataset from https://github.com/m-bain/webvid. I just use 30 videos of results_2M_train.csv, which  contanins the keywords: smile, camera, look, (man | woman | girl |boy) .
I also confused with the configuration, the follow is my training config:

learning_rate: 8.0e-05
num_examples: 30
max_train_steps: 8000
I also cannot get good motion module yet. Besides, my trained model cannot be used for inference v2, therefore I think the training scripts util now are suitable for mm-14 rather than mm-15 and mm-15_v2.
I hope it helps.

It seems good. I can use inference v2 and mm-15_v2. But I can't turn on unet_use_cross_frame_attention either. I don't know if it's essential. Did you turn on this parameter in your training? Besides, I found that the training result is not good when I use stable diffusion without any lora.

My result gif is lack of animate motion, the movments are barely to be noticed.  I don't turn on the unet_use_cross_frame_attention. According to the paper, I guess it helps the consistency cross the frames. But SparseCausalAttention2D  cannot be found.
I don't konw whether lora is necessary, but I think the motion module is supposed to work well without other control components.
It seems that I need pay more  effort on the config or wait for more unopend details.

Yes, I agree. I think that the provided motion module looks the same like your results. I tried the author's model weights, the generated animate motion is also slight. I think that the motion module try to realize good consistency.  I will try to train it with different configs later.

hi, have you solved this problem yet? The missing "SparseCausalAttention2D" module?
I have just been reading the source code. And when I was reading the attention.py file, I found that "SparseCausalAttention2D" had not been defined or been imported. It's really weird.
self.attn1 = SparseCausalAttention2D(                 query_dim=dim,                 heads=num_attention_heads,                 dim_head=attention_head_dim,                 dropout=dropout,                 bias=attention_bias,                 cross_attention_dim=cross_attention_dim if only_cross_attention else None,                 upcast_attention=upcast_attention,             )
I'm not sure if it's because I'm so bad at reading code.
It looks like the class "SparseCausalAttention2D" is missed which should be defined in the attention.py.
I also don't understand the "CrossAttention" , the "AdaLayerNorm" and the "FeedForward" in the attention.py. I can't find their definition.
"AdaLayerNorm" and "FeedForward" are defined in the diffusers which can be found in this link
and this link
But attention.py doesn't import them.
As for "CrossAttention", I guess it is defined by guoyww. But it has not been written in the attention.py.
I don't know if I am right, can anyone help me?

@liuchangzong No, not yet. The implementation of this class is Unpublished

ok,thanks a lot

Same problem, motion results is poor.

SparseCausalAttention2D is Unpublished?

same issue


Ensure when create a VersionedMultiAsset that the assets are ordered properly.

For example: https://github.com/paritytech/polkadot/blob/0960b145eeff82cc46d21f4626e14ef39a53cfde/xcm/src/v3/multiasset.rs#L516
The following indicates we must have properly ordered assets.

Currently the mulitassets are just created based on the order that they are passed in. It would be wise to ensure there is some check, and will re sort them if necessary


How to refresh session cache?

In my application, the User module holds some data apart from email and password, and these columns can be updated outside of the user registration / edit flow. In my case, these are counters for actions made by the user that are updated by other modules in the background.
As the user is cached in the Session cache (Redis in my case), @current_user will not reflect updates on those fields.
What is the proper way to force an update on the cache? I've found that I need to log out and log in again to have this refreshed, but maybe there's a better way to ask Pow to reload the user info from the database so that its cache is refreshed.

There's several ways of doing this. I would recommend just resetting the session on each update action, if you have access to the conn.
1. Update user for action in controller
This creates a new session id on each action:
config = Pow.Plug.fetch_config(conn)

Pow.Plug.Session.do_create(conn, user, config)

2. Reload the user in a plug
This will reload on every single page request:
plug :reload_user

  defp reload_user(conn, _opts) do
    config = Pow.Plug.fetch_config(conn)
    user = Pow.Plug.current_user(conn, config)
    reloaded_user = Repo.get(MyApp.User, user.id)

    Pow.Plug.assign_current_user(conn, reloaded_user, config)
  end

3. Update user directly in CredentialsCache
Finally, you could refresh the struct in the CredentialsCache directly if you wish. However, I recommend against it as it's pretty involved. In short, you'll need to load the update the map for "#{Macro.underscore(struct)}_sessions_#{id}", updating the :user key. You can see the action here: https://github.com/danschultzer/pow/blob/master/lib/pow/store/credentials_cache.ex#L110-L116

I think this is maybe something that should be mentioned in a guide.

👍 Solution 2 was perfect in my case, thanks!

Great, I've added a note to the readme in #97 about potential out of sync user structs if affected by actions outside Pow.

Is this method (also description: https://hexdocs.pm/pow/sync_user.html) possible for non current user? In my example: if admin set role of other user to 'super' I would like to refresh the state of the other not the admin.

Is this method (also description: https://hexdocs.pm/pow/sync_user.html) possible for non current user? In my example: if admin set role of other user to 'super' I would like to refresh the state of the other not the admin.

@s-stepien you can do that, but it's not practical (since it creates a new session) neither advisable. For any authorization check it's better to load the user any request where you want to check permissions, so just add a plug that loads the user (or the permissions for the user) from the DB to ensure they have the right permission level.

@s-stepien you can do that, but it's not practical (since it creates a new session) neither advisable. For any authorization check it's better to load the user any request where you want to check permissions, so just add a plug that loads the user (or the permissions for the user) from the DB to ensure they have the right permission level.


installing requirements

I carefully followed the steps described in the readme but I'm getting errors when trying to install all the requirements using :
sudo -H pip3 install -r requirements.txt
(Option2 isn't working neither, modifications on pyjson5 didn't fix the issue)
Reported error :
gaetan@gaetan-VirtualBox:~/xray/prjxray$ sudo -H pip3 install -r requirements.txt
Obtaining file:///home/gaetan/xray/prjxray/third_party/fasm (from -r requirements.txt (line 1))
Obtaining file:///home/gaetan/xray/prjxray/third_party/python-sdf-timing (from -r requirements.txt (line 2))
Complete output from command python setup.py egg_info:
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
No local packages or download links found for pytest-runner
Traceback (most recent call last):
File "", line 1, in
File "/home/gaetan/xray/prjxray/third_party/python-sdf-timing/setup.py", line 37, in
'console_scripts': ['sdf_timing_parse=sdf_timing.sdfparse:main'],
File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 269, in init
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1092, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1104, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 657, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /home/gaetan/xray/prjxray/third_party/python-sdf-timing/

Problem was coming from the python3 version. I did not manage to put a version of python higher than 3.7 as default on this version of ubuntu (16.04). Problem fixed by changing ubuntu version to a more recent one.


Model Summary table is difficult to understand

Region availability is difficult to understand in the current documentation. I feel that the following expressions would be easier to understand.

model
East US
South Central US
West Europe

text-davinci-003
✓

text-davinci-002
✓
✓
✓

text-davinci-001

✓
✓

text-curie-001
✓
✓
✓

text-babbage-001
✓
✓
✓

text-ada-001
✓
✓
✓

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

ID: 25c15e01-3578-c4ae-afbc-32c7172173d0
Version Independent ID: 0d20fad8-0e13-2d85-64e5-31861fabdcdd
Content: Azure OpenAI models - Azure OpenAI
Content Source: articles/cognitive-services/openai/concepts/models.md
Service: cognitive-services
GitHub Login: @ChrisHMSFT
Microsoft Alias: chrhoder

@rsk800
Thanks for your feedback! We will investigate and update as appropriate.

Hi @rsk800
Thanks for your contribution. Please add your ideas in below link, so our production team can review it and update the same.
Ideas · Community (azure.com)

@rsk800
We are going to close this thread, if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Missing calculate_normal and verify_normal methods

The Triangle docs mention verify_normal and calculate_normal methods, but these do not appear to exist.

Thanks for submitting an issue for this.
This is somewhat of an error in the docs for the crate. These are methods that will be created, but haven't yet. I will make a change to the docs to be clearer about this, and will add support for those methods in version 0.4

I have updated the documentation and released a new version 0.3.1 for now.


Add support for Cloze deletions

E.g. {cloze deletions} can be formatted in notes {like this}.

It seems that anki may default to whatever the last created card type was left on, rather than updating the new card type given by the script. Looking at the anki source code I can't obviously see a reason for why this would be.


⚠ ClamAV has degraded performance

In dd1f950, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 691 ms

Resolved: ClamAV performance has improved in 9d14de1.


STEP_6

JRTB-5: added ability to subscribe on group
JRTB-6: added ability to see the list of the group subscription.
Added Java client for Javarush API for groups.
Types of changes

[x] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

@whiskels thanks for review.


Update About us

Coverage remained the same at 92.67% when pulling 61ecfcc1ff99c2b3d7a54964a6fe2de38f845e44 on Edit-about-us into 212e8032be38194f0b59e981b76e2c396b2bfd73 on master.

Coverage remained the same at 92.67% when pulling b1782b3de3187d6c5263269e42a3583c73d18cea on Edit-about-us into 212e8032be38194f0b59e981b76e2c396b2bfd73 on master.

Coverage remained the same at 92.67% when pulling 79eacf999904d23a3748e28a54b00ee9206e27fc on Edit-about-us into 212e8032be38194f0b59e981b76e2c396b2bfd73 on master.


watchman issue - xcode build fails

Here's my environment - started from scratch.
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.10.5
BuildVersion:	14F1021

$ nvm list
->       v4.2.2
         v5.0.0
default -> 4.2.2 (-> v4.2.2)
stable -> 4.2.2 (-> v4.2.2)
node -> stable (-> v4.2.2) (default)
iojs -> N/A (default)

$ node -v
v4.2.2

$ npm -v
2.14.7

$ brew info watchman
watchman: stable 4.1.0 (bottled), HEAD
Watch files and take action when they change
https://github.com/facebook/watchman
/usr/local/Cellar/watchman/HEAD (25 files, 368K) *
  Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/watchman.rb
==> Dependencies
Build: autoconf ✔, automake ✔
Required: pcre ✔

After I create a fresh project
$ npm install -g react-native-cli
$ react-native init ss
$ cd ss
$ open ios/ss.xcodeproject

xcode fails to build with the following error
 ┌────────────────────────────────────────────────────────────────────────────┐
 │  Running packager on port 8081.                                            │
 │                                                                            │
 │  Keep this packager running while developing on any JS projects. Feel      │
 │  free to close this tab and run your own packager instance if you          │
 │  prefer.                                                                   │
 │                                                                            │
 │  https://github.com/facebook/react-native                                  │
 │                                                                            │
 └────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
   /Users/amitava/Projects/react/ss

[10:18:49 AM] <START> Building Dependency Graph
[10:18:49 AM] <START> Crawling File System
[10:18:49 AM] <START> Loading bundles layout
[10:18:49 AM] <END>   Loading bundles layout (0ms)

React packager ready.

Error building DepdendencyGraph:
 Error: failed to parse query: must use ["allof", expr...]
    at BunserBuf.<anonymous> (/Users/amitava/Projects/react/ss/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:93:23)
    at emitOne (events.js:77:13)
    at BunserBuf.emit (events.js:169:7)
    at BunserBuf.process (/Users/amitava/Projects/react/ss/node_modules/react-native/node_modules/bser/index.js:289:10)
    at /Users/amitava/Projects/react/ss/node_modules/react-native/node_modules/bser/index.js:244:12
    at doNTCallback0 (node.js:419:9)
    at process._tickCallback (node.js:348:13)
Process terminated. Press <enter> to close the window

Seems related to https://github.com/facebook/watchman/issues/118

https://github.com/facebook/watchman/issues/118 - not a watchman issue. This seems to be a react-native issue. Any workarounds?

@ashee Were you able to find a solution?

cc @amasad @martinbigio - from discussion on https://github.com/facebook/watchman/issues/118 seems like the packager sends an invalid query to the watchman, could you please check if it's a packager or sane's problem?

@amasad could you point me to where the query is generated? couldn't find out (checked FileWatcher and fastfs) and I'm not very familiar with this part of the codebase.

@martinbigio the query is generated here: https://github.com/facebook/react-native/blob/master/packager/react-packager/src/DependencyResolver/crawlers/watchman.js#L40-L44

Closing this out due to inactivity. Feel free to reopen if the issue persists!

In case anyone is still seeing this issue. I was getting:
Failed to build DependencyGraph: Watchman error: failed to parse query: must use ["allof", expr...]. Make sure watchman
is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
Error: Watchman error: failed to parse query: must use ["allof", expr...]. Make sure watchman is running for this projec
t. See https://facebook.github.io/watchman/docs/troubleshooting.html.
    at c:\Users\dojiboy9\my-app\src\mobile\node_modules\react-native\node_modules\node-haste\lib\crawlers\watchman.js:63:11
    at process._tickCallback (node.js:377:9)

In my case it was indeed the invalid query (there is an empty ['anyof'] expression). I added a work-around in this gist

Just started happening with RN 0.33.0

For me, I had a package that did require('retry') when I had renamed the dependency to Retry.
So, while Watchman resolved watchedRoot into the correct casing, the roots array still contained the invalid, lowercase retry path.
This led to isDescendant(watchedRoot, roots[i]) never passing, resulting in dirExpr.length === 1 (which is not allowed in Watchman currently).


Edit namespace fields Cypress testing

Hi Zita!! :)
https://issues.redhat.com/browse/AAH-61
This pr checks the following fields:

name: not editable in the form
company name: must not exceed 64 characters

I will do more prs for the other fields, but I wanted to first make sure the organization of the test was to your liking. :) Please advise with any feedback.
In general, it is my preference to use data-cy selectors, as there are often  id's or classnames inherited from patternfly that apply to multiple elements on the browser. But I didn't use them this time because I know we don't use Travis anymore. The other pr 525 had this issue of duplicate selectors, so I'll have to wait for Martin's bugfix...

@ZitaNemeckova Very pleased to see that my test has passed :) There are a few more steps before this test is complete, but I thought I'd submit this for a code review. There are many functions ~ let me know if I can reorganize them better. Thank you! :)

@ShaiahWren In general for using variables it's good when you call it twice or more times.

The test should be complete :) Lmk any other edits you'd like me to make before I merge.

@himdel Thanks for the great advice! :)
I removed most of the one-liners from functions. I kept some functions that are uses multiple times in one test, or across tests. Let me know if you feel that the remaining ones are appropriate.

Thanks, this looks about right :) Added two more comments, but we're close :)

pr. merged :)


Support for Side Navigation Panels ?

Hi.,
How about the support for side navigation panels ?

yes, please :)


TSTRAT Syncing issue

I have sent some amount to another wallet. Sent is already confirmed:

But in the same time receive is not confirmed:

There is some Syncing issue:

Even both wallets have the same 4 connections.

My Strat Breeze alway Sync on status

Yes thanks, we are resolving the syncing issues.
An updated binary will be provided once the fix is deployed.

In my case (at one machine) it was still syncing (got stacked, payments still pending), but when I closed that app and re-started, then it was immediately ok, Synced 100% and payment Confirmed.

Hey @AgXCz
First of all thank you so much for the extensive testing.
Though resolved in your case, I'm just going to leave this issue open untill we have deployed a general fix.

(Sorry, it was closed by mistake, I am not experienced in Git and didn't know meaning of [Close and comment])

No problem!

I have the same problem as nhan8g, it's stuck at syncing.

I restarted it a few times but nothing happens. Also, one time appeared a problem that said that it was unable to connect with the api or something like that.

Fixed in v0.2.1 of the beta.


load config from pyproject.toml or setup.cfg

Simple implementation for the currently missing functionality to load configuration from certain files:

[x] pyproject.toml
[x] setup.cfg (closes #68)

to do:

[x] pytests

Coverage decreased (-3.7%) to 95.606% when pulling d76aecd687abaddc61caf2631d87c1107112436c on akeeman:patch-1 into d43d8a770c0f9ef2f68b368670ab882f6ca6ea03 on myint:master.

@hakancelik96 Please review again

Made the setup.cfg loader and possible other loaders simpler by parsing boolean values from string elsewhere and added correct syntax highlighting in README.rst.
@hakancelik96 Please review again

@hakancelik96 any thoughts?

@hakancelik96 any thoughts?

I am not the maintainer of this project, sorry. I just gave a little suggestion. I am developing a similar project named unimport

@hakancelik96 I see. Thanks for sharing! I'll have a look.
@myint Have you got any feedback/other thoughts? I think that not having the ability to load configuration from a file is a real showstopper nowadays.

@myint have you any feedback or time to merge?

I'm sorry to ping you like this @myint. I know how open source can be energy draining and I definitely understand if you don't have time to look into this PR.
However, is it possible to know if I should go ahead and publish the changes of this PR under a different name on PyPI so that I can use it?
Thanks a lot!

Is there just 1 person with merge permission for this repo? Maybe time to assign others? Seems like a waste of work not to get this in.

@sigmavirus24 Any thoughts on who should be added as additional maintainers? I think the other PyCQA owners would have appropriate privileges now that I've moved this and docformatter to this org.

Fwiw, the changes in this PR worked flawlessly for me.
pip install https://github.com/akeeman/autoflake/archive/patch-1.zip
autoflake **/*.py

Did nothing at first (as expected) but after adding the following to setup.cfg, it removed unused imports and variables.
# setup.cfg
[autoflake]
in_place = true
remove_unused_variables = true
remove_all_unused_imports = true
expand_star_imports = true
ignore_init_module_imports = true

The only thing I noticed (which I think is fine) is that only snake case is allowed. Some tools use param case in setup.cfg but trying
# setup.cfg
[autoflake]
in-place = true
remove-unused-variables = true
...

raised 'in-place' is not a valid configuration option.

Rebased

Let me fix https://github.com/PyCQA/autoflake/pull/79#issuecomment-1149640836 soon...

Doesn't anyone know some configuration (file) abstraction layer? Because it's insane to write this logic over and over again for different libraries...

@fsouza @akeeman I notice that the way this is implemented, values from config files take precedence over command line flags. That behaviour is surprising and at odds with the UNIX convention where the order of precedence is command line flags > environment variable > user config files > system config files. Was that a deliberate choice?

@fsouza @akeeman I notice that the way this is implemented, values from config files take precedence over command line flags. That behaviour is surprising and at odds with the UNIX convention where the order of precedence is command line flags > environment variable > user config files > system config files. Was that a deliberate choice?

No, that one slipped. Sorry about that, let me send a fix.

@kynan can you try #158?


using dynamic child components methods via ref

Version
2.5.3
Reproduction link
https://jsfiddle.net/50wL7mdz/76121/
Steps to reproduce

create dynamic components with template <component :is="comp" :ref="`record-${i.id}`" ></component>
add some function in dynamic child component. For example, hello() {console.log('hello')}
in parent component use this function via this.$refs[record-${i.id}][0].hello() (or this.$refs[record-${i.id}].hello() ) - idk why its displays in array sometimes

What is expected?
see hello in console
What is actually happening?
Uncaught TypeError: this.$refs[record-${i.id}][0].hello is not a function

when I tied with usual components - everything works fine
Thx for your attention

As explicitly stated in the issue requirements, please provide a runnable repro.

There does not appear to be any issue here.

Closing due to inactivity. Please open a new issue with a reference to this one if you can follow up with more information.

But this is right, if the component was not rendered before, the error will show up.


Check if Manifest can be access with credentials

There is an attribute to use in order for the browser to make a request to grab the Manifest using credentials (ie. cookies). I'm not entirely sure whether we should always warn about this but maybe we should point about this if we can't grab Manifest or as a general tip for developers?

To use credentials for a Manifest request, one has to do:
<link rel=manifest crossorigin='use-credentials' href=/manifest.json>


Support for @Consumes and @Produces annotations

These annotations are important for resource matching. It would be nice if headers Content-Type and Accept could use their values automatically.

I think I've done something that works quite well, adding the first produces/consumes value to headers when necessary.
However, before submitting a PR, I'd like to discuss a case. Indeed, now that gwt-jackson-rest detects content types expected or produced by a REST method, it might also be able to detect when it won't be able to work properly.
For example, in a resource, if someone adds two methods with same method/path, but different @Produces they might want to have only the one with application/json (or application/<anything_here>+json) to be picked up by gwt-jackson-rest.
This seems logical as there's only support for JSON in the library, but a server could have multiple representations for the same resource.
I think the method should be skipped, just like you did with isRestMethod that make the method skipped if there's no @GET etc.
What do you think?

Hi and thanks for the PR :)
For a start, we can just ignore the method not consuming/producing json.
But maybe we could go a bit further. If a method doesn't produce json, we could still generate the method but return the text directly without deserializing the response.
And same for the consume part. Just expect a string body if post/put and let the user serialize it.

I'll go for the ignoring part, not sure I'll be able to dig further. I'll tell you when done ;)

I think it's good. At least it works as expected ;)


chore: add edk based dbt entries

Note
This PR is temprorarily targeting https://github.com/meltano/hub/tree/chore/add-airflow-extension since it has additional changes required for this PR. (e.g. support for theext_repo key)

Staging edk based entries for all four existing dbt transformers:

dbt-postgres
dbt-snowflake
dbt-bigquery
dbt-redshift

These are based on the transformer versions with the following notable changes:

executable set to dbt_invoker
Additional pip url entry: git+https://github.com/meltano/dbt-ext.git@main
Important new setting named type that should be set to warehouse type e.g. postgres, snowflake, etc.
Important new command named initialize
Added keywords, ext_repo, and next_steps keys.
Removes the dependency on the files bundles since they're no longer required.

@tayloramurphy heads up I targeted the airflow PR and incorporated your changes here too.

theres been too many upstream changes, and i accidentally updated from main instead of chore/add-airflow-extension im gonna abandon this pr and start fresh - which shouldn't be a big deal - afaik no ones actually even looked at this.


Can I do xpath queries on the XML with library

I need to search an element. I did not see xpath queries in README
Can I do xpath queries on the XML with this  library or
Do I need to convert to JSON and then search the element in it?

You got the right conclusion: There is no XPath or CSS selector support in the library. You can couple it with some other solutions to get it, I suppose.

Ok thanks!


If jquery.cookie not included and useLocalStorage not set in Tour constructor, plugin fails silently

If the cookie plugin is not loaded or included then throw an error in the console or alert. Currently it fails silently when cookie not included AND  useLocalStorage is not set to true.

Uncaught TypeError: Tour is not a constructor what about this error @tankchintan

@jimmychoxiling Sorry, I haven't worked on this for past 5.5 years now, so I have the lost thread.


EXTRACT-reject_reason triggers when it shouldn't and collects erroneous results

The EXTRACT for reject_reason triggers when it shouldn't (when status!=reject) and collects erroneous results
My suggestion would be to remove EXTRACT-reject_reason and to extract the reject_reason within EXTRACT-status_reject - that way, reject_reason is only extracted when status==reject
Current:
EXTRACT-status_reject = postfix/smtpd\[\d+\]: (?:NOQUEUE|[A-Fa-f0-9]{6,20}): (?\<status\>reject):
EXTRACT-reject_reason = : (?<reject_reason>[^;:]+);

Proposed:
EXTRACT-status_reject = postfix/smtpd\[\d+\]: (?:NOQUEUE|[A-Fa-f0-9]{6,20}): (?\<status\>reject):\s(?<status_code_short>\d+)\s(?\<dsn\>(\d+\\.)+\d+)\s(.+?:\s)?(?<reject_reason>[^;]+);

I've also incorporated extractions for the status_code_short and dsn because they weren't being picked up in these reject events.
The proposed regex works for the data that I have access to but please test against your data.

@barrettnet, could you provide a few sample events that demonstrate this?   They can be sanitized to strip out any sensitive information, but I realize that we don't have any samples events locally, and those are helpful when checking for regressions in regular expressions over time.

My client's policy forbids me from supplying examples but I've found a couple of examples on the internet (https://www.howtoforge.com/community/attachments/mail-log-txt.4247/) which should help:
Jun  6 16:11:00 78comunicacao postfix/smtpd[15648]: NOQUEUE: reject: RCPT from localhost[<IP_ADDRESS>]: 550 5.1.1<EMAIL_ADDRESS>Recipient address rejected: User unknown in local recipient table<EMAIL_ADDRESS><EMAIL_ADDRESS>proto=ESMTP helo=<ec2-34-225-72-252.compute-1.amazonaws.com>
Jun  6 16:17:12 78comunicacao postfix/smtpd[2240]: NOQUEUE: reject: RCPT from pws3.mxtoolbox.com[<IP_ADDRESS>]: 454 4.7.1<EMAIL_ADDRESS>Relay access denied<EMAIL_ADDRESS><EMAIL_ADDRESS>proto=ESMTP helo=<PWS3.mxtoolbox.com>
Jun  6 16:19:04 78comunicacao postfix/smtpd[2295]: NOQUEUE: reject: RCPT from unknown[<IP_ADDRESS>]: 504 5.5.2 <FLY>: Helo command rejected: need fully-qualified hostname<EMAIL_ADDRESS><EMAIL_ADDRESS>proto=ESMTP helo=<FLY>
Jun  6 19:25:03 server1 postfix/submission/smtpd[2431]: NOQUEUE: reject: RCPT from 189-71-122-217.user.veloxzone.com.br[<IP_ADDRESS>]: 554 5.7.1 <189-71-122-217.user.veloxzone.com.br[<IP_ADDRESS>]>: Client host rejected: Access denied<EMAIL_ADDRESS><EMAIL_ADDRESS>proto=ESMTP helo=<UserPC>
Chris

Thanks again for taking the time to provide feedback and pull up some samples.  I really appreciate it!
Unfortunately, I think somethings happening to the regex formatting when they are posted in the github issue.  On the last one I could just edit your initial description text and get the original from there, but that doesn't seem to be working this time.   Could you try reposting your regex in triple backticks?
For example, you listed this as the current version:
EXTRACT-status_reject = postfix/smtpd\[\d+\]: (?:NOQUEUE|[A-Fa-f0-9]{6,20}): (?\<status\>reject):

But what I have in the repo as of b03478bb is following:
EXTRACT-status_reject = postfix/smtpd\[\d+\]: (?:NOQUEUE|[A-Fa-f0-9]{6,20}): (?<status>reject):

Maybe the only difference is the \ around the <>?, or possibly you have an older version installed?  I fiddled with it for a few mins and it wasn't matching the sample events you provided.  (Or at least the one I grabbed)
Alternately, you could provide the updated regexes as a pull request and avoid weird formatting issues.   You can do the whole process in the browser if you'd like. GitHub makes the whole thing pretty easy:  https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request

Yes, those extra slashes preceeding the < and > for the status and dsn extractions are likely the issue.  I was flipping between the Write and Preview tabs to try and get it formatted right but I may have messed up.  I'm at another client at the moment but I'll see if I can get something sorted when I'm back in with my main client tomorrow.


Display like value next to feature list

This was a feature we had previously in Crowdsource Reporter. I see this as a configurable option.

It will be a config option to choose which option to show next to the value:  like, dislike, or both with thumbs up and thumbs down design. Will get designs from team.

@sumitzarkar Updated designs are here https://www.figma.com/design/5LYgCbB11FUDS7rq7DkOvu/Crowdsource-Reporter-|-23.R3?node-id=2123-7961

@skrishn
Please confirm the configuration for this ticket:

Will user be able to configure only one like/dislike or both the values to be shown on feature list
Share sample config how we will get this in config json

@sumitzarkar It will only be the like's value that will get displayed next to feature list, and there is no configuration for it.

@skrishn

It will only be the like's value that will get displayed next to feature list, and there is no configuration for it.

It means when we have like field configured for any layer then we will show the likes count on feature list

@sumitzarkar Upon further discussion there will be config option, I'll keep you posted on it.

@skrishn
Also, please confirm which option from the below is selected

@sumitzarkar If like is enabled, we'd display the like value next to the feature list (no other config option for this). We are going with the option 3, the like value and icon iwould be grey in color and italicized, so users don't try to click on the icon.

@MikeTschudi @jmhauck

We are planning to show the likes count on the features list

When the count  is greater than thousnad or millions we are planning to show it like 1k, 1.4m etc.

We had implemenetd this in old reporter app as well.  however, we had done that using custom function https://github.com/Esri/crowdsource-reporter/blob/master/js/widgets/item-list/item-list.js#L297

Now we are planning to use the npm numeral.js https://www.npmjs.com/package/numeral

 this._likeCount = numeral(feature.attributes[likeFieldName]).format('0a');

Please let us know your thoughts on this and if you see any other option to implement this

@sumitzarkar In the designs the parenthesis is removed. Please refer to the designs before you implement

@sumitzarkar, Numeral-js is a nice find, and covers many of the languages that ArcGIS supports:

ArcGIS
Numeral-js

Arabic (ar)

Bosnian (bs)

Bulgarian (bg)
bg

Catalan (ca)

Simplified Chinese (zh-cn)
chs

Traditional Chinese (Hong Kong) (zh-hk)

Traditional Chinese (Taiwan) (zh-tw)

Croatian (hr)

Czech (cs)
cs

Danish (da)
da-dk

Dutch (nl)
nl-nl

English (en)
en-au, en-gb

Estonian (et)
et

Finnish (fi)
fi

French (fr)
fr

German (de)
de

Greek (el)

Hebrew (he)

Hungarian (hu)
hu

Indonesian (id)

Italian (it)
it

Japanese (ja)
ja

Korean (ko)

Latvian (lv)
lv

Lithuanian (lt)

Norwegian (nb)
no

Polish (pl)
pl

Portuguese (Brazil) (pt-br)
pt-br

Portuguese (Portugal) (pt-pt)
pt-pt

Romanian (ro)

Russian (ru)
ru

Serbian (sr)

Slovak (sk)
sk

Slovenian (sl)
sl

Spanish (es)
es

Swedish (sv)

Thai (th)
th

Turkish (tr)
tr

Ukrainian (uk)
uk-ua

Vietnamese (vi)
vi

(https://developers.arcgis.com/javascript/latest/localization/,
https://github.com/adamwdraper/Numeral-js/tree/master/locales)
Because special handling will be needed to map alternate locale codes and to handle missing locales, I think that it would be easier and better to adapt the excellent getItemVotes function to use string patterns, e.g.,
getItemVotes: function(item) {
  var needSpace = false, votes = item.attributes[this.votesField] || 0;

  if (votes > 999) {
    if (votes > 99999) {
        needSpace = true;
    }
    if (votes > 999999) {
        votes = this.i18n.millionsAbbreviation.replace("{{abbreviated_value}}", Math.floor(votes / 1000000).toFixed(1));
    } else {
        votes = this.i18n.thousandsAbbreviation.replace("{{abbreviated_value}}", Math.floor(votes / 1000).toFixed(1));
    }
  }
  return {
    "label": votes,
    "needSpace": needSpace
  };
},

where the English strings are
"thousandsAbbreviation": "{{abbreviated_value}}k",
"millionsAbbreviation": "{{abbreviated_value}}M",

so that we can support RTL and all of our languages.

LGTM

@sumitzarkar Please be aware that IA team has made the reporter panel fixed width to avoid an issue with pagination per user request. Will this impact the interactive buttons and values?
https://devtopia.esri.com/WebGIS/arcgis-portal-app-templates/issues/10535
"Description: Lock the panel size when the window changes size to prevent it from becoming too small. The panel size will lock and then switch to the mobile view.
This should help prevent pagination from being cut off.

"
Fixed:

@skrishn
Solution
Display like count on the feature list with icon and tooltip functionality
Approach details:

https://github.com/Esri/solutions-components/issues/666#issuecomment-2264610424
https://github.com/Esri/solutions-components/issues/666#issuecomment-2265876034

Dev Checklist

Items
Is required
Status
Comments

Required NLS changes?
Yes

Required Backward compatibility
No

Required 508
No

Need Sanitize?
No

Impact Analysis Report

Impacted Areas
Comments

Have Configuration changes?
No

Have Runtime changes?
Yes

Impact on RTL
Yes

Impact on Features list
If layer contains "like" field and it is enabled from configuration

The like count should be displayed with 'thumbs-up' icon with abbreviated format (e.g. 1k for 1,000 likes)

Full count should be shown in tooltip while hovering over the count container (e.g. 1,000 for 1k)


Datatables as a Service Implementation

Summary of problem or feature request
Good Day,
I find the "Datatables as a Service" option more useful in most of my cases. However, I am not too sure how to proceed when extending it to include, in this case, management options: e.g view/edit/delete columns.

I tried implementing/modifying this Example. By adding:
UsersDatable
public function ajax()
    {
        return $this->datatables
            ->eloquent($this->query())
            ->addColumn('action', function ($user) {
                return 'id.'" class="btn btn-xs btn-primary"> Edit';
            })
            ->make(true);
    }

UsersController
public function index(UsersDataTable $dataTable)
    {
        return $dataTable->render('users');
    }

    public function getAddEditRemoveColumn()
    {
        return view('user_management.edit-user');
    }

Users View
$('#users-table').DataTable({
        processing: true,
        serverSide: true,
        ajax: 'http://localhost/project/public/edit-user/',
        columns: [
            {data: 'action', name: 'action', orderable: false, searchable: false}
        ]
    });

However to no avail, no column appears. How would I go about getting this right?
System details

Operating System: OS X El Capitan 10.11.2
PHP Version: 5.6.10
Laravel Version: 5.1.33 (LTS)
Laravel-Datatables Version: 6.10.1

Regards,

Were you able to see this tutorial? Please try to follow it and see how it works. Thanks!

@yajra Yes, already implemented that in my project, for multiple entities. My issue is how to extend this implementation in include a new column containing e.g an edit/delete or view action/button

Lastly, how does one go about excluding certain columns from the printing option without using javascript?

Lastly how does one go about excluding certain columns from the print option and file output?

@Mylo-92 just like you are using orderable and searchable, you can also use exportable and printable with true/false flags

@vesper8 suggestion should fix your issue. Thanks!


Different behavior of [name] on Windows and Linux

Do you want to request a feature or report a bug?

Report a bug
What is the current behavior?
On Windows [name].[ext] results in app/index.html, while on Linux it results in index.html.
It ends up messing with the end result of the dist folder.
On Windows:
- bundle.js
- app
  \- index.html

While on Linux:
- bundle.js
- index.html

If the current behavior is a bug, please provide the steps to reproduce.

https://gist.github.com/evsasse/829c6303e41a3eae2ab57ba09ae42838
What is the expected behavior?
That [name] results in the same string on both platforms, I suppose it should be index.html, as is on Linux currently.
Folder end resullt would be, as in Linux:
- bundle.js
- index.html

Please mention other relevant information such as your webpack version, Node.js version and Operating System.
Tested using Windows 10(Node v7.4.0), and Linux Manjaro(Node v7.2.1).
Webpack and loaders version are included on the gist.

This feels like a bug in loader-utils. Could you reproduce against it and report there?

@evsasse Can your update to 2 or 3 webpack and confirm what bug still exists?

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Also seems problem was in loader-utils and already fixed. Thanks!


Add passthrough support

As originally proposed and discussed in flapjack/flapjack#553, this PR adds passthrough support to GLI.
Passthrough is a method to tell GLI to stop parsing arguments and just call the action as-is.
The motivation for this was twofold:

Calling the command with --help invoked the GLI help, not the native help provided by whatever command you're calling.
Elimination of double handling of arguments and options. Without this, the developer needs to replicate all the arguments and options of the command being called within the GLI command definition.

There is also a minor whitespace cleanup.

Closing due to inactivity.

Closing due to inactivity.


Integrated doctrine-migrations

Main PR: https://github.com/sulu-io/sulu/pull/1670

Problem with loading migration classes. Default RecursiveRegexFinder uses regex which finds a lot classes which are not migration versions.
we have to overide this finder with this regex:
    private function getPattern()
    {
        // TODO my change
        return sprintf('#^.+\\DoctrineMigrations\\%sVersion[^\\%s]{1,255}\\.php$#i', DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR);
    }
```


add the capability manage and display Polities

create a dialog for selecting the colors of polities
create entering in star display record for polity
refactor and create the ability to add a halo shell around a star to show polities

complete


[SPARK-32078][DOC] Add a redirect to sql-ref from sql-reference

What changes were proposed in this pull request?
This PR is to add a redirect to sql-ref.html.
Why are the changes needed?
Before Spark 3.0 release, we are using sql-reference.md, which was replaced by sql-ref.md instead. A number of Google searches I’ve done today have turned up https://spark.apache.org/docs/latest/sql-reference.html, which does not exist any more. Thus, we should add a redirect to sql-ref.html.
Does this PR introduce any user-facing change?
https://spark.apache.org/docs/latest/sql-reference.html will be redirected to https://spark.apache.org/docs/latest/sql-ref.html
How was this patch tested?
Build it in my local environment. It works well. The sql-reference.html file was generated. The contents are like:
<!DOCTYPE html>

  <meta charset="utf-8">
  <title>Redirecting…</title>
  <link rel="canonical" href="http://localhost:4000/sql-ref.html">

  <meta http-equiv="refresh" content="0; url=http://localhost:4000/sql-ref.html">
  <meta name="robots" content="noindex">

Redirecting…

  Click here if you are not redirected.

cc @srowen @huaxingao @dilipbiswal

Test build #124439 has started for PR 28914 at commit bdc4495.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29058/
Test PASSed.

Test build #124439 has finished for PR 28914 at commit bdc4495.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124439/
Test PASSed.

LGTM

Looks good. Will follow this approach if need to rename files in the future.


Happy Hacktoberfest

Happy Hacktoberfest 2018!
Added a neat subscribe and unsubscribe button that is somewhat similar to YouTube (idk why...) lol

Great work !
Thanks for contribution.


Gulp Build Chain - @apply cannot be used with... - Trying to Solve with postcss-import

First off... I ❤ Tailwind CSS. It's so freeing to not have to name stuff. SO freeing.
I seem to be having the same problem with my Gulp build as mentioned in this issue with Laravel Mix. A little background... I'm using Foundation alongside Tailwind to utilize Foundation's JS components (still too 😬 to roll my own) and have most of the Sass partials commented out. Hopefully I just need some tweaks to my Gulpfile as I think I'm not properly implementing PostCSS Import!
Full Error
[15:01:14] 'sass' errored after 920 ms
[15:01:14] CssSyntaxError in plugin "gulp-postcss"
Message:
    /Users/brianlarson/Sites/scg-craft/src/assets/scss/app.css:1479:3: `@apply` cannot be used with `.bg-blue` because `.bg-blue` either cannot be found, or it's actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that `.bg-blue` exists, make sure that any `@import` statements are being properly processed *before* Tailwind CSS sees your CSS, as `@apply` can only be used for classes in the same CSS tree.

  1477 |   */
  1478 | .btn-blue {
> 1479 |   @apply .bg-blue .text-white; }
       |   ^
  1480 |

[15:01:14] 'build' errored after 928 ms
[15:01:14] 'default' errored after 930 ms
[15:01:14] The following tasks did not complete: javascript, images
[15:01:14] Did you forget to signal async completion?

sass() Function in gulpfile.babel.js
function sass() {
  var tailwindcss = require('tailwindcss');
  var autoprefixer = require('autoprefixer');
  let atImport = require('postcss-import');
  var plugins = [
    tailwindcss('src/assets/js/tailwind.js'),
    autoprefixer({browsers: ['last 1 version']}),
    atImport(),
  ];
  return gulp.src(['src/assets/scss/app.scss'])
    .pipe($.sourcemaps.init())
    .pipe($.sass({
      includePaths: PATHS.sass
    })
    .on('error', $.sass.logError))
    .pipe($.postcss(plugins))
    .pipe($.if(!PRODUCTION, $.sourcemaps.write()))
    // Comment in the pipe below to run UnCSS in production
    // .pipe($.if(PRODUCTION, $.uncss(UNCSS_OPTIONS)))
    .pipe($.if(PRODUCTION, $.cleanCss({ compatibility: 'ie9' })))
    .pipe(gulp.dest(PATHS.dist + '/css'))
    .pipe(browser.reload({ stream: true }));
}
gulp.task('sass', sass);

config.yml
# Your project's server will run on localhost:xxxx at this port
PORT: 3000

# Browsersync config
BROWSER:
  proxy: "https://scg-craft.dev"
  key: "/Users/brianlarson/Sites/_ssl/localhost/localhost.key"
  cert: "/Users/brianlarson/Sites/_ssl/localhost/localhost.crt"

# Autoprefixer will make sure your CSS works with these browsers
COMPATIBILITY:
  - "last 2 versions"
  - "ie >= 9"
  - "ios >= 7"

# UnCSS will use these settings
UNCSS_OPTIONS:
  twig:
    - "templates/**/*.twig"
  ignore:
    - !!js/regexp .foundation-mq
    - !!js/regexp ^\.is-.*

# Gulp will reference these paths when it copies files
PATHS:
  # Path to dist folder
  dist: "web/assets/template"
  # Paths to static assets that aren't images, CSS, or JavaScript
  assets:
    - "src/assets/**/*"
    - "!src/assets/{img,js,scss}{,/**/*}"
  # Paths to Sass libraries, which can then be loaded with @import
  sass:
    - "node_modules/foundation-sites/scss"
    - "node_modules/motion-ui/src"
  # Paths to JavaScript entry points for webpack to bundle modules
  entries:
    - "src/assets/js/app.js"

package.json
{
  "name": "scg-craft",
  "version": "1.0.0",
  "description": "SCG Craft CMS starter template with Foundation and Tailwind CSS",
  "main": "gulpfile.babel.js",
  "scripts": {
    "start": "gulp",
    "build": "gulp build --production",
    "watch": "gulp watch"
  },
  "author": "SCG<EMAIL_ADDRESS>  "dependencies": {
    "babel-register": "^6.26.0",
    "foundation-sites": "~6.4.3",
    "jquery": ">=3.0.0",
    "motion-ui": "~1.2.2",
    "tailwindcss": "^0.5.1",
    "what-input": "^4.1.3"
  },
  "devDependencies": {
    "autoprefixer": "^8.2.0",
    "babel-core": "^6.24.1",
    "babel-loader": "^6.4.1",
    "babel-preset-es2015": "^6.3.13",
    "browser-sync": "^2.10.0",
    "gulp": "github:gulpjs/gulp#4.0",
    "gulp-babel": "^6.1.2",
    "gulp-clean-css": "^3.9.3",
    "gulp-cli": "^1.2.1",
    "gulp-concat": "^2.5.2",
    "gulp-extname": "^0.2.0",
    "gulp-if": "^2.0.0",
    "gulp-imagemin": "^2.2.1",
    "gulp-load-plugins": "^1.1.0",
    "gulp-postcss": "^7.0.1",
    "gulp-sass": "^2.1.0",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-uglify": "^1.2.0",
    "gulp-uncss": "^1.0.1",
    "js-yaml": "^3.4.6",
    "parallax.js": "^0.1.0",
    "postcss-import": "^11.1.0",
    "rimraf": "^2.4.3",
    "vinyl-named": "^1.1.0",
    "webpack": "^2.6.1",
    "webpack-stream": "^3.2.0",
    "yargs": "^3.8.0"
  },
  "repository": {
    "type": "git",
    "url": "https://bitbucket.org/scgpr/scg-craft"
  },
  "babel": {
    "presets": [
      "es2015"
    ]
  },
  "private": true,
  "optionalDependencies": {}
}

I think atImport(), needs to come before tailwindcss('src/assets/js/tailwind.js'),. Can you swap them and try again?

Thanks @taylorbryant! I had tried that originally but was also placing my Tailwind @apply goodness in all the wrong places. Needed to use something like @import "components/buttons"; which in my setup looks in scss/components for the partial before @tailwind utilities; in my tailwind.css file after reading this line:
...
* Or if using a preprocessor or `postcss-import`:
  *
  * @import "components/buttons";
  * @import "components/forms";
  */


contrast

Hi, I don't make changes in the vendors, because if I want to update them the changes are going to disappear. Also add more information about the change, this bootstrap is used in many place, admin panel and themes.


Dockerfile: no buildable Go source files in /root/gokahing/goofys

My docker was not happy.

I download said dockerfile and build.

What's the exact command that you used and which directory you executed it in? It needs to be run from the goofys source directory

Oh
I just used the dockerfile in a blank folder, let me try again.
<EMAIL_ADDRESS>On Tue, Apr 17, 2018, at 22:10, Ka-Hing Cheung wrote:

What's the exact command that you used and which directory you
executed> it in? It needs to be run from the goofys source directory
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/kahing/goofys/issues/309#issuecomment-382223563

It fails when run form folder.
I do git clone and go to bench folder and run docker build .
That is the error attached.
Honestly, I just want a working docker image that I can use to build on. The ones listed I can't tell what they are and what they have.

you need to run from the base directory:
goofys: docker build -f bench/Dockerfile .

That did build it. But on docker run it says:
RioFS password file ~/.passwd-riofs missing
I am not looking for RioFS.

OK. I just made a blank docker w/ goofys ( https://hub.docker.com/r/nbake/nbake/ )
THX!


v0.6.9

prepare a new patch release that includes PRs #190 and #192

r? @korken89
(rust_highfive has picked a reviewer for you, use r? to override)

@adamgreig updated the CHANGELOG

bors r+

https://crates.io/crates/cortex-m-rt/0.6.9 -- published and tagged


Problem with webpack + css

Hi, I have a problem when i run react with the css
node_modules/react-chat-window/lib/styles/emojiPicker.css:1
[2] (function (exports, require, module, __filename, __dirname) { .sc-emoji-picker {
[2]                                                               ^
[2]
[2] SyntaxError: Unexpected token .

Any clue why is this happening?
I am using Webpack v1.13.1

Hmm, are you using a css-loader ?

@dharness yes. Here is my conf:
        test: function(absPath) {
            return (absPath.search('.scss') !== -1);
        },
        use: [
            { loader: 'style-loader' },
            { loader: 'css-loader',
                options: {
                    minimize: true,
                    importLoaders: 1
                }
            },
            { loader: 'postcss-loader',
                options: {
                    ident: 'postcss',
                    plugins: function() {
                        return [
                            require('autoprefixer')({
                                browsers: [
                                    "> 5%",
                                    "last 2 versions"
                                ]
                            })
                        ]
                    }
                }
            },
            { loader: 'sass-loader' }
        ]

Does it fail in the exact same way in case 2?
If so, I'll have to look into this more thoroughly. My only other thoughts are to a) pare down the second config to the basics - removing the fallback (is that a 2.x feature) and using:
loaders: [
    { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") }
]

b) try upgrading webpack.
If you cannot get that to work, and you really feel it is a problem on my end you can generate a small repo that reproduces the error.

Sorry I forgot, the second example is with webpack last version (v3.x)


Init hackgpt

LGTM.
@ligi By the way, do you see any way to automate this?
I find it a bit unfortunate that our meetings are usually announced on Meetup many days before they appear on our very own website.

thought about a generator script - would be nice - many values are in there multiple times - but never ended up doing it - PRs welcome ..

Challenge accepted. Here you are: #355


feat: Support ratatui

solve #16
upgrade crossterm version to 0.26.0 and updated README

Thanks for the pr.


Add change log entries for v2.20 release

This is a bit painful and unfortunate that we've been missing the entries.
We should add entries for user facing changes for the next release.
See https://github.com/ansible/molecule/projects/2 for more.

How about using towncrier or reno for that?

I really like the look of towncrier! Any reasons to chose one over the other? I'm open!
Here's the user facing changes/fixes/etc. that I see from https://github.com/ansible/molecule/projects/2:

https://github.com/ansible/molecule/pull/1606/
https://github.com/ansible/molecule/pull/1545
https://github.com/ansible/molecule/pull/1538
https://github.com/ansible/molecule/pull/1536
https://github.com/ansible/molecule/pull/1720
https://github.com/ansible/molecule/pull/1593
https://github.com/ansible/molecule/pull/1683
https://github.com/ansible/molecule/pull/1555
https://github.com/ansible/molecule/pull/1640
https://github.com/ansible/molecule/pull/1635
https://github.com/ansible/molecule/pull/1685
https://github.com/ansible/molecule/pull/1684
https://github.com/ansible/molecule/pull/1674
https://github.com/ansible/molecule/pull/1728
https://github.com/ansible/molecule/pull/1717
https://github.com/ansible/molecule/pull/1703
https://github.com/ansible/molecule/pull/1458
https://github.com/ansible/molecule/issues/1747
https://github.com/ansible/molecule/pull/1771
https://github.com/ansible/molecule/pull/1765

I probably missed some and there have been looaaddsss more work done on internals of project maintenance! I probably won't have time to compile this today into the CHANGELOG.md but will later in the week. Hoping to see movement on a pre-release today if not this week! :+1:

@decentral1se you can do a pre-release v2.20a0 and then release a follow-up pre-release v2.20a0.post0 as soon as you're done with changelog. It should be that flexible.
P.S. See https://www.python.org/dev/peps/pep-0440/#post-releases for chaining sub-release versions details

Regarding automation.
I've got several projects using towncrier and it's very easy to use, yet it's got some limitations (I think it's one-lined markdown so it's usually one sentence, IIRC).
Ansible uses reno. It's way more complicated. Users have to add YAML files with proper keys instead of adding just files with extensions and text. It's also challenging to integrate, I was trying to do it for virtualenv or tox (I don't remember) a while back but failed, which feels discoraging. OTOH, Ansible has a wrapper script for running log generation.
It is an OpenStack project and seamlessly integrates with pbr and SphinX.
So I vote for towncrier as it's simpler. Unless anyone has other opinions, I'd like to avoid reno. Otherwise, somebody else will have to figure out the integration part.

TODO https://github.com/ansible/molecule/pull/1797#discussion_r261882101

RE: automation, see https://github.com/ansible/molecule/issues/1779#issuecomment-470255441.
We'll compile this manually for v2.20 :+1:
See latest WG logs.

Taken a stab at this in https://github.com/ansible/molecule/pull/1816!


[Bug]: Why cant i pass function as argument to $$eval ?

Bug expectation
I expected that i could use function inside $$eval but node js is telling me that function is undefined.
Its a little bit messy to have ton of code sitting inside map function so i tried to use/pass function to clean the code
Bug behavior

[ ] Flaky
[ ] PDF

Minimal, reproducible example
const foo = (e) => e;
  const details = await page.$$eval(
    "section div details",
    (details, f) =>
      details.map((el) => {
        // cant even map elements to numbers
        const mainDetails = f(10);
        return { mainDetails };
      }),
    foo
  );

Error string
Error: Evaluation failed: TypeError: f is not a function
Puppeteer configuration
No response
Puppeteer version
19.5.2
Node version
16.15.0
Package manager
npm
Package manager version
8.5.5
Operating system
Windows

Take a look at the guide here https://pptr.dev/guides/evaluate-javascript#passing-arguments-to-the-evaluate-function The arguments have to be primitive values (numbers, strings) or JSHandles.
Try the following:
import puppeteer from 'puppeteer';

const browser = await puppeteer.launch();
const page = await browser.newPage();

await page.setContent(`<div><div>`);

const foo = await page.evaluateHandle(() => {
    return (num) => num;
});

const details = await page.$$eval(
    "div",
    (divs, f) => {
        return f(1);
    },
    foo
);

console.log(details)

await browser.close()


<EMAIL_ADDRESS>Fix URL

Corrects autoupdate and download URL.
Verified that checkver follows the same structure as before.

Closes #6125

/verify


Git Hooks Warning

Describe the bug
I get a warning from git hooks when committing. See below:
.git/hooks/pre-commit: 5: [: task/JustinPrivitera/2022_03_03_add_implicit_points_topo_support_to_the_blueprint_plugin: unexpected operator
/home/justin/Documents/work/visit/scripts/git-hooks/check_cli_doc.sh: 14: [: data/blueprint_v0.8.2_braid_examples.7z: unexpected operator
/home/justin/Documents/work/visit/scripts/git-hooks/check_cli_doc.sh: 56: [: false: unexpected operator

I did setup my hooks as the docs recommended: https://visit-sphinx-github-user-manual.readthedocs.io/en/develop/dev_manual/GitHub.html#cloning-the-repository-and-setting-up-hooks
Is this bad?
Desktop

Ubuntu 20.04

I think @brugger1 changes to re-org the docs has caused this. I think you can fix by changing the line that sets where functions.rst is to use python_scripting)/functions.rst

That is, change this line in check_cli_doc.sh
str_functions_rst="src/doc/cli_manual/functions.rst"

to
str_functions_rst="src/doc/python_scripting/functions.rst"

If that works, can you push a PR for that change to src/scripts/git-hooks/check_cli_doc.sh

Hmmm no luck :(
justin@justin-IdeaPad-L340-17IRH-Gaming:~/Documents/work/visit$ touch fafa
justin@justin-IdeaPad-L340-17IRH-Gaming:~/Documents/work/visit$ git status
On branch test
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	build/
	fafa
	patch.txt
	src/test/py_src/

nothing added to commit but untracked files present (use "git add" to track)
justin@justin-IdeaPad-L340-17IRH-Gaming:~/Documents/work/visit$ git add fafa
justin@justin-IdeaPad-L340-17IRH-Gaming:~/Documents/work/visit$ git commit -m "asmasf"
.git/hooks/pre-commit: 5: [: test: unexpected operator
/home/justin/Documents/work/visit/scripts/git-hooks/check_cli_doc.sh: 14: [: fafa: unexpected operator
/home/justin/Documents/work/visit/scripts/git-hooks/check_cli_doc.sh: 56: [: false: unexpected operator
[test d40ccea5de] asmasf
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 fafa

What kind of an sh do you have there?
What is git diff --cached --name-only returning into $staged?

Is this what you were asking?
justin@justin-IdeaPad-L340-17IRH-Gaming:~/Documents/work/visit$ echo $0
bash
justin@justin-IdeaPad-L340-17IRH-Gaming:~/Documents/work/visit$ git diff --cached --name-only
justin@justin-IdeaPad-L340-17IRH-Gaming:~/Documents/work/visit$ echo $staged

justin@justin-IdeaPad-L340-17IRH-Gaming:~/Documents/work/visit$

I still have much to learn about git!

Ok, in that script, replace all instances where $staged is being used in if statements with "$staged". In other words, bracket it everywhere it is referenced in double quotes.

Again, no luck.

Ok, lets webex next week so we can debug.

Ok sounds good.

@markcmiller86 fixed this on develop and this now needs to be backported to the 3.2RC. The path to functions.rst needs to adjusted since the path was changed on develop.

Can this issue be closed?

Resolved with commits #17430 and #17417.


set correct duty-cycle(s) after join

From the RN2483 documentation:
"The default settings consider only the three default channels (0-2), and their default duty cycle is 0.33%. If a new channel is created either by the server or by the user, all the channels (including the default ones) must be updated by the user in terms of duty cycle to comply with the ETSI regulations."
In multiple ways this is not a good implementation, but we have to work with it.
After a join, the arduino-library should set the correct duty cycles.
First, count the number of active channels (#totalchan) using the "mac get ch status" command for channels 0-15.
The duty cycle value (dcycle) to be configured on a channel is defined as:  = (100/X) – 1
X is the intended duty cycle in percent. For EU we need to configure a band total duty cycle of 1%, so per channel a duty cycle of 1/#totalchan.
For each active channel, set the dcycle value to (100/(1/#totalchan)) – 1, using:
mac set ch dcycle
Simplified formula: (100*#totalchan)-1 for a band duty-cyle of 1%.

Apologies, my formula was wrong! Updated the initial comment.

closed by #63


Release: CLI v3.0.22

Description

Remove unused CSS classnames from HomeHeader component

Please feel free to add to this PR. We will merge it at the end of the week.


[B11] Mouseover on an item on tab recipes in the Thaumonomicon cause crash

I'm finding consistent ArrayIndexOutOfBoundsExceptions (with a 1 index) when mousing over some items in the tab recipes for researches in the Thaumonomicon. I thought I had seen a issue open for this in B10, but I can't seem to find it so I'm re-posting just to keep it here.
It seems to happen to the same items on the entire research page, and on any tab-page within it. For example for the Theorycrafting research, hovering over any ink sac will crash. It also seems to happen with all kinds of recipes, from normal crafting to crucible to arcane crafting (maybe more but I haven't gotten that far yet). I also found that I didn't crash for all the items of some researches, so it doesn't seem to happen all the time. I put a list below for the items I found for different researches that cause the crash, though it isn't exhaustive by any means. I also added the crash logs for each of the different types, though the only difference between any of them is which thaumcraft.client.gui.GuiResearchPage.draw<CRAFTING TYPE HERE>Page they come from.
Known research & items:

First Steps → nothing so far?
Theorycrafting → ink sac
Discovering Alchemy → glowstone
Discovering Infusion → string
Discovering Auromancy → nothing so far?
Warp → mirror
Basic Alchemy → glowstone and clay?
Alumentum → nothing so far?
Hedge Alchemy → string (again)

Note that for Hedge Alchemy the crash only happened for string when completing the gunpowder + slimeball part, and afterwards string was fine. And all the while glowstone, clay and ink sacs now worked, as compared to other researches having them broken.
Crash logs:
crash-2018-04-26_09.55.26-client.txt
crash-2018-04-26_09.56.03-client.txt
crash-2018-04-26_09.57.57-client.txt

Ok this is weird, after completing the Hedge Alchemy step, when I go back to almost any of those known issues, they all seem to work again? The only exception I found was that the Warp entry with the mirror still being broken.
From what I can see the only diff between the two steps was that the items causing issues before could be crafted/duplicated through Thaumcraft, but didn't have a tab made for them in the Thaumonomicon yet. Now that they do have a tab made though, they seem to work fine on mouseover anywhere. Since I haven't discovered the mirror research yet this would still explain the issue with Warp.

Seems like the same core issue with #514 although this one has more items that cause the crash.

got this too when looking at Enchanting Fabric recipe on the right tab https://pastebin.com/EN7DWZcN
b11 too, though I got it on b10 before

#474

@Azanor why would you mark it as solved, if it's still present in current release?


Is it possible to exchange voice stream between different clients?

For example, I use a browser as a client, another user uses a mobile app.
I'm starting to speak and I want to send my voice message to a mobile app for another user.
Is it possible?
Thanks!

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

ID: a02b4e7d-971a-670b-02eb-89c5456ec8f2
Version Independent ID: 5f2f089e-310d-83a1-9c56-9cb441b9914a
Content: Use streaming in ASP.NET Core SignalR
Content Source: aspnetcore/signalr/streaming.md
Product: aspnet-core
Technology: aspnetcore-signalr
GitHub Login: @bradygaster
Microsoft Alias: bradyg

Yes, you can stream anything. You'll need to figure out how to get the audio and how you want to encode it and decode it.

@BrennanConroy thanks for your quick response!
Do you have any examples?

No, I've never tried capturing audio in the browser before. You'll need to do some research.
We have a sample that does ASCII-video with streaming at https://github.com/SignalR/sample-StreamR.
And a live example of it at https://streamr.azurewebsites.net/


How  to enable Left and Right Camera of d455 at the same time on  Android platform（RK3588 with kernel version 5.10.66）

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
{ legacy / 2.. }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
<Describe your issue / question / feature request / etc..>

Hi @rivercream09  Unless your camera is being detected by the RealSense Android wrapper as being on a USB 3 connection and not 2.1 then you will not be able to access the right infrared stream, as the right-side IR is only available on a USB3 connection.
If you do have a USB 3 connection then the Android code below, which I have adapted for displaying both IR streams, might be helpful.
RsContext.init(getApplicationContext());
 mRsContext = new RsContext();
 mPipeline = new Pipeline();

 config.enableStream(StreamType.INFRARED, 1, 640, 480, StreamFormat.Y8, 30);
 config.enableStream(StreamType.INFRARED, 2, 640, 480, StreamFormat.Y8, 30);

 mPipeline.start(config)

The original source for this code which I adapted is at the link below.
https://support.intelrealsense.com/hc/en-us/community/posts/6640802023699-Record-streams-of-D435i-on-Android

Hi @rivercream09  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


Expose camunda:formHandlerClass attribute as a field on Blank Start Events and User Tasks

There is a formHandlerClass attribute: https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-attributes/#formhandlerclass
which we can see was added to moddle: https://github.com/camunda/camunda-bpmn-moddle/issues/19
But the field seems to have never been exposed in the Form tab on the Properties Panel.
Having this attribute exposed as a field provides the ability for customized form submission handling and replaces the need for working with legal Form Field Validations, etc.
Current workaround is having to edit the xml.  The engine already supports this attribute: https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java#L969
Thanks

Thanks for reporting. Happy to take a PR that implements this feature in our properties panel.


CI: pin GitHub Actions workflows

This PR updates GitHub Actions workflows to a specific version.
This ensures that the workflow will always run the same code, which makes your build stable.
It will also prevent a potential security issue where a tag could be replaced by a malicious commit without consumers being aware of it.
The PR updates each non-SHA based workflow reference with the SHA of the referenced version/tag, so the current behavior should not change.
See https://exercism.org/docs/building/github/gha-best-practices#h-pin-actions-to-shas for more information.

Ah, sorry been a bit swamped, I'll see if I can look into why this PR is failing in a bit!

@rlmark No need. It's because we now support formatting of the track's config.json file. https://github.com/exercism/unison/pull/104 fixes this.


Affected Page
Any challenge where the custom scroll bar appears on the right
Steps to Reproduce

Go to https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-2
Close preview pane
Open menu

It is more visible when you set the editor scrollbar width to be wider in your settings.
Expected behavior
The arrow icon should be hidden by the Menu dropdown
Screenshots
See above
System

Device: Laptop
OS: Windows 10
Browser: Chrome
Version: 120.0.6099.225 (Official Build) (64-bit)

Additional context
No response

This is because z-index of scroll-bar button and and arrow background is more than the nav-bar panel opening from menu button.


Issue: trying to call generate_queries() on a MultiQueryRetriever but where do I get a run_manager from?

Issue you'd like to raise.
I'm trying to use MultiQueryRetriever to generate variations on a question: it seems to work, but I can't use it inside a chain created with load_qa_with_sources_chain() because that generates a chain that expects a list of input_documents, rather than a retriever, and I don't want to use RetrievalQAWithSourcesChain instead of load_qa_with_sources_chain() because I want to continue implementing my own similarity search (eg. I'm supporting switches to select using index.similarity_search() vs. index.max_marginal_relevance_search() on my index, and to specify the number of matches (k)), so I figured I could just call generate_queries() on my MultiQueryRetriever instance and then manually run my (load_qa_with_sources_chain()) chain for each variation.  However, that method requires a run_manager, and I can't figure out how to create one.  I already have the load_qa_with_sources_chain() chain: can I get a run_manager from that?  Or more generally, what's the best way to use MultiQueryRetriever whilst maintaining one's own code for fetching matching text snippets?
Suggestion:
No response

I see that CallbackManagerForRetrieverRun() actually requires 3 arguments: run_id, handlers and inheritable_handlers, so I am still not able to run generate_queries() on my MultiQueryRetriever instance.  Does anyone know if I'm barking up the wrong tree here?

I'm wondering whether I need to define a subclass of MultiQueryRetriever, in which I override _get_relevant_documents() to incorporate my own similarity search code?

Nope, having the same issue, pls help me too


Cannot import

Having some issues and don't know why.
(scraper) ➜  Python-Projects /opt/anaconda3/envs/scraper/bin/python /Users/jeffery/Python-Projects/Draft/twikit.py  Traceback (most recent call last):   File "/Users/jeffery/Python-Projects/Draft/twikit.py", line 1, in <module>     import twikit   File "/Users/jeffery/Python-Projects/Draft/twikit.py", line 7, in <module>     client=twikit.Client(language='en-US') AttributeError: partially initialized module 'twikit' has no attribute 'Client' (most likely due to a circular import)

@juratjan123

@juratjan123 Change the name of your script twikit.py to something else

Ohhh, thanks!!


Fix errors in CharacterBody when floor is destroyed or removed

In all physics servers, body_get_direct_state() now silently returns null when the body has been already freed or is removed from space, so the client code can detect this state and invalidate the body rid.
In 2D, there is no change in behavior (just no more errors).
In 3D, the Bullet server returned a valid direct body state when the body was removed from the physics space, but in this case it didn't make sense to use the information from the body state.
Fixes #54666 on master.

Thanks!


[BUG] maybe in Php side

After showing ads, i got this error. I think there is no "google-rewarded-ad" function in Php. Please help. Thank you
[POST->Result] ?action=google-rewarded-ad&logintoken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MiwicHJvZmlsZU5hbWUiOiJoaCJ9.D6Ka9ZDCtiyX5YR07MlXfUfdM5c_n-EtA3XOrJAQFis

500 Internal Server Error

Internal Server Error
call_user_func() expects parameter 1 to be a valid callback, no array or string given
[turn/fatfree/lib/base.php:2342] Base->error()
[turn/index.php:374] Base->{closure}()

I'm Sorry. I've found this https://github.com/insthync/rpg-php-service-google-ads


Using master of kitchen-ec2 for travis integration tests

Because https://github.com/test-kitchen/kitchen-ec2/issues/148 has been fixed, travis should no longer break

Sure! :+1:

:+1:  Go for it!


PCI Address to NAD mapping

In cases with pods having more than one container that needs SRIOV/DPDK devices, there is no way currently to select which device on which container to assign the configurations on the NAD to.
sandbox-multicontainer.txt
The above POD has 4 NADs:
bgf-media-dpdk-net
bgf-media-dpdk-net-right
bgf-int-dpdk-net
bgf-int-dpdk-net-right
Also 2 containers dpdk1 and dpdk2, that has 1 device of resource type intel.com/intel_sriov_dpdk_left and 1 device of type intel.com/intel_sriov_dpdk_right each.
The requirement is:
on dpdk1:
bgf-media-dpdk-net   ----> intel.com/intel_sriov_dpdk_left
bgf-media-dpdk-net-right  -----> intel.com/intel_sriov_dpdk_right
on dpdk2:
bgf-int-dpdk-net   ----> intel.com/intel_sriov_dpdk_left
bgf-int-dpdk-net-right  -----> intel.com/intel_sriov_dpdk_right
But the order is not always ensured. The NAD with the right postfix could be applied to the  could be applied to intel.com/intel_sriov_dpdk_left device . Is there a way to map a particular NAD to a device PCI address.
We tried using the deviceID field in in the sriov-cni extended configurations:
https://github.com/k8snetworkplumbingwg/sriov-cni/blob/master/docs/configuration-reference.md
This field had no effect in choosing the device. What is the right wat to use the deviceID field?
Is there an existing way to map a NAD to a PCI device, or are there plans to integrate such behavior in the community?

IIUC, knowing network to device mapping would solve your problem.
are you familiar with device-info-spec ? [1] , see example of annotation exposed by multus [2]
[1] https://github.com/k8snetworkplumbingwg/device-info-spec/blob/main/SPEC.md
[2] https://github.com/k8snetworkplumbingwg/device-info-spec/blob/main/SPEC.md#612-example

closing this issue


Enable geometry optimizations with MRChem

Description
I've modified the MRChem harness to accept input for the calculation of molecular gradients, which allows to use it with geometry optimization procedures.
Changelog description

MRChem can be used as engine for geometry optimizations.

Status

[X] Code base linted
[X] Ready to go

Could you add a test that shows it works?

Thanks, this lgtm, though I agree a test would be nice. If you release https://github.com/MolSSI/QCEngine/blob/master/qcengine/tests/test_harness_canonical.py#L83, I think the MRChem lane should pass. And if you rebase (I got a branch merged last night), I think the other lanes should pass.
I'm planning to do a release today. But if this doesn't make it in, there'll probably be another before the month is out.

Sorry for the sloppy work! I've added tests for the evaluation of the gradient and running geometry optimizations.

I'm pretty sure the OpenMM failure is unrelated.

Modernizing the yaml loading fixes the OpenMM lane somehow, so I think this is ready to go. Any other comments or concerns, @WardLT ?

Looks great! Thanks @robertodr !


Error:All bounding box coordinates must be in [0.0, 1.0]: -0.00275482098

when i train my own datasets,it's occured that 'Error reported to Coordinator'
<class 'tensorflow.python.framework.errors_impl.InvalidArgumentError'>, All bounding box coordinates must be in [0.0, 1.0]: -0.00275482098
[[Node: ssd_preprocessing_train/distorted_bounding_box_crop/sample_distorted_bounding_box/SampleDistortedBoundingBoxV2 = SampleDistortedBoundingBoxV2[T=DT_INT32, area_range=[0.1, 1], aspect_ratio_range=[0.5, 2], max_attempts=200, seed=0, seed2=0, use_image_if_no_bounding_boxes=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](ssd_preprocessing_train/distorted_bounding_box_crop/Shape_1, ssd_preprocessing_train/distorted_bounding_box_crop/ExpandDims, ssd_preprocessing_train/distorted_bounding_box_crop/sample_distorted_bounding_box/SampleDistortedBoundingBoxV2/min_object_covered)]]
how to solve it?

I think it may be same with this issue


When system Python is upgraded, and the venv is broken, recreate the venv automatically

Running ./manage build-all gives the following error:
❯ ./manage build-all
✨ Built in 6.42s

dist/index.html                      1.57 KB    1.56s
dist/favicon.7dcc8543.ico           15.04 KB    4.15s
dist/favicon-32x32.4aeda8d9.png        550 B    1.09s
dist/favicon-16x16.0caf70ef.png        341 B    4.19s
dist/index.1eb443b0.css            100.06 KB    1.51s
dist/index.cd578e5b.js             547.25 KB    4.19s
Traceback (most recent call last):
  File "/home/lsi/Oss/prestige/venv/bin/pip", line 5, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

Workaround
Before launching the build, in the prestige folder, type the following command:
( source ./venv/bin/activate && python -m ensurepip )

After this, pip is installed in the virtual environment and future ./manage build-all commands will be able to succeed.

That's very odd. The manage script uses the venv module to create the virtual environment, in the ensure-venv command. This command should already run ensurepip unless the --without-pip argument is given, as per the docs at https://docs.python.org/3/library/venv.html. I also couldn't reproduce this. Can you confirm your platform and Python version where this is seen please?

I have found, the explanation. The venv was created by a build of a previous version of prestige. Dropping the venv folder and launching a new build solved the problem.

I see. Thanks for sharing that. I still find it a bit odd though, because I practically copy pasted the venv-creation code from the old makefile to the new manage script, so it isn't any different. What I've seen in the past is this happens when Python is updated. When Python is updated to a newer version, all virtualenv folders stop working and will need to be recreated. Can you see if this was the case for you?

Yes, in my environment, Python as been upgraded in the meantime.

Awesome, thanks for confirming that. Yeah, everytime Python is upgraded we have to deal with this. Perhaps we can make the manage script just detect this, and re-create the venv folder. 🤔
I'll keep this issue open to do just that then.

Closing this since the project no longer uses Python.


hifive1: Exception cause Load address misaligned

I am trying to get the samples/net/dhcpv4_client/ working on hifive1 board, using the branch provided by @palmer-dabbelt .
I use the following for the prj_hifive1.conf file (copied from arduino 101 disabled a few things for debugging):
CONFIG_NETWORKING=y
CONFIG_NET_IPV6=n
CONFIG_NET_IPV4=y
CONFIG_NET_ARP=y
CONFIG_NET_UDP=y
CONFIG_NET_DHCPV4=y
CONFIG_NET_BUF=y
CONFIG_NET_NBUF_RX_COUNT=4
CONFIG_NET_NBUF_TX_COUNT=4
CONFIG_NET_NBUF_RX_DATA_COUNT=5
CONFIG_NET_NBUF_TX_DATA_COUNT=5
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=1

CONFIG_NET_LOG=y
CONFIG_SYS_LOG=y
CONFIG_SYS_LOG_SHOW_COLOR=y
CONFIG_NET_DEBUG_CORE=y
CONFIG_NET_DEBUG_IF=y
CONFIG_NET_DEBUG_DHCPV4=y
CONFIG_NET_DEBUG_ARP=y
CONFIG_NET_DEBUG_L2_ETHERNET=y
CONFIG_NET_DEBUG_IPV4=y
CONFIG_NET_DEBUG_ICMPV4=y
CONFIG_NET_DEBUG_UDP=y
CONFIG_NET_RX_STACK_SIZE=2048

CONFIG_NET_L2_ETHERNET=y

CONFIG_SPI=y
CONFIG_SPI_CS_GPIO=y
CONFIG_SPI_1_CS_GPIO_PORT="GPIO_0"
CONFIG_SPI_1_CS_GPIO_PIN=0

CONFIG_SYS_LOG_ETHERNET_LEVEL=1
CONFIG_ETH_ENC28J60=n
CONFIG_ETH_ENC28J60_0=n
CONFIG_ETH_ENC28J60_0_SPI_PORT_NAME="SPI_1"
CONFIG_ETH_ENC28J60_0_SPI_BUS_FREQ=2
CONFIG_ETH_ENC28J60_0_MAC3=0x0a
CONFIG_ETH_ENC28J60_0_MAC4=0x0b
CONFIG_ETH_ENC28J60_0_MAC5=0x0c

CONFIG_NET_MGMT=y
CONFIG_NET_MGMT_EVENT=y

Compiling the code with the current zephyr SDK and uploading it onto the board
using the freedom-e-sdk works fine.
However, when opening ttyUSB1 with screen I get the following error:
***** BOOTING ZEPHYR OS v1.7.99 *****
[dhcpv4] [INF] main: In main
[dhcpv4] [INF] main_thread: Run dhcpv4 client
Exception cause Load address misaligned (4)
Current thread ID = 0x80003070
Faulting instruction address = 0x20404e18
  ra: 0x2040520c  gp: 0x67e09182  tp: 0x20400260  t0: 0x1800
  t1: 0x20400780  t2: 0x0  t3: 0x2547316e  t4: 0x20408468
  t5: 0x9d040577  t6: 0x177fe4b9  a0: 0x80000144  a1: 0x1
  a2: 0x0  a3: 0x80003414  a4: 0x0  a5: 0x3b9aca0d
  a6: 0x8120d47e  a7: 0x67e09182
Fatal fault in thread! Aborting.

Disassembling the code shows:
20404e0c <prepare_message>:
20404e0c:       00852783                lw      a5,8(a0)
20404e10:       fd010113                addi    sp,sp,-48
20404e14:       02112623                sw      ra,44(sp)
20404e18:       0087a783                lw      a5,8(a5)
20404e1c:       02812423                sw      s0,40(sp)
20404e20:       02912223                sw      s1,36(sp)
20404e24:       03212023                sw      s2,32(sp)
20404e28:       01312e23                sw      s3,28(sp)
20404e2c:       01412c23                sw      s4,24(sp)
20404e30:       01512a23                sw      s5,20(sp)
20404e34:       00058a93                mv      s5,a1
20404e38:       00000593                li      a1,0
20404e3c:       00060a13                mv      s4,a2
20404e40:       00050913                mv      s2,a0
20404e44:       000780e7                jalr    a5
20404e48:       fff00593                li      a1,-1
20404e4c:       bd9fd0ef                jal     20402a24 <net_nbuf_get_reserve_tx>

The function prepare_message is in subsys/net/ip/dhcpv4.c
I found an old and closed bug in JIRA, just linking it here for reference as it sounded similiar:
https://jira.zephyrproject.org/browse/ZEP-955
Not sure how to proceed at this point. Appreciate any hints / advice.

Are you passing the "-mstrict-align" option to GCC?  If not, then GCC is allowed to emit unaligned accesses (they're marked as slow, not illegal).  If your compiler is too old to understand that option then you should be safe, but you might want to update to the latest release as we've fixed a handful of bugs.

I am using the Zephyr 0.9.1 SDK. It contains gcc version 6.1.0
Tried to add the -mstrict-align option but the compiler does not seem to know the option.
For completeness, gcc -v output
> /opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/riscv32-zephyr-elf/riscv32-zephyr-elf-gcc -v
Using built-in specs.
COLLECT_GCC=/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/riscv32-zephyr-elf/riscv32-zephyr-elf-gcc
COLLECT_LTO_WRAPPER=/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/riscv32-zephyr-elf/../../libexec/riscv32-zephyr-elf/gcc/riscv32-zephyr-elf/6.1.0/lto-wrapper
Target: riscv32-zephyr-elf
Configured with: ../../../../../../work-shared/gcc-6.x.riscv32-r0/git/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=riscv32-zephyr-elf --prefix=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr --bindir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/bin/riscv32-zephyr-elf --sbindir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/bin/riscv32-zephyr-elf --libexecdir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/libexec/riscv32-zephyr-elf --datadir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/com --localstatedir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/var --libdir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/lib/riscv32-zephyr-elf --includedir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/opt/zephyr-sdk/2.2/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/workdir/poky/build-zephyr-riscv32/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=riscv32-zephyr-elf- --without-local-prefix --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-gxx-include-dir=/not/exist/usr/include/c++/6.1.0 --with-build-time-tools=/workdir/poky/build-zephyr-riscv32/tmp/sysroots/x86_64-linux/usr/riscv32-zephyr-elf/bin --without-long-double-128 --enable-poison-system-directories --with-mpfr=/workdir/poky/build-zephyr-riscv32/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-mpc=/workdir/poky/build-zephyr-riscv32/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --disable-static --enable-nls --enable-initfini-array --without-headers --without-headers --enable-plugin --enable-plugin
Thread model: posix
gcc version 6.1.0 (GCC)

@palmer-dabbelt  I have also tried now the latest gcc from riscv toolchain (version 7.1.0) but still get the memory misaligned issue, even using the -mstrict-align option.
Any suggestions?

/opt/riscv/bin/riscv32-unknown-elf-gcc -v
Using built-in specs.
COLLECT_GCC=/opt/riscv/bin/riscv32-unknown-elf-gcc
COLLECT_LTO_WRAPPER=/opt/riscv/libexec/gcc/riscv32-unknown-elf/7.1.1/lto-wrapper
Target: riscv32-unknown-elf
Configured with: /home/schroer/code/riscv-gnu-toolchain/riscv-gcc/configure --target=riscv32-unknown-elf --prefix=/opt/riscv --disable-shared --disable-threads --enable-languages=c,c++ --with-system-zlib --enable-tls --with-newlib --with-headers=/opt/riscv/riscv32-unknown-elf/include --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --enable-checking=yes --disable-multilib --with-abi=ilp32d --with-arch=rv32g 'CFLAGS_FOR_TARGET=-Os  -mcmodel=medlow'
Thread model: single
gcc version 7.1.1 20170509 (GCC)

Can you try compiling the app without optimization?
Updating the prj_hifive1.conf with CONFIG_DEBUG=y should do the trick.
I'm also observing some issues with crypto tests running on riscv32 platform, when compiling with default optimization options as set by the zephyr build system, the tests fail with wrong computation results. Without optimization the tests pass. On other platforms this issue is not observed. I've also updated to latest gcc and still same result.

The same issue with CONFIG_DEBUG=y

@jensschroer Can you try with latest commits from git@github.com:fractalclone/zephyr-riscv.git ?
There was a bug in context-restore upon exiting from ISR and this was causing execution errors from time to time. This was notably the origin of the issues I've observed while running crypto tests.
However, you will have to use latest zephyr 0.9.1 SDK since I have rebased zephyr-riscv repo from zephyr mainline repo

Alright, found finally out the root cause of this issue.
It is caused by two options in the .config:
CONFIG_NET_L2_ETHERNET=y
and
CONFIG_ETH_ENC28J60=n
The IP stack start up is trying to load a L2 interface, but since none is configured it tries access an invalid memory address, which results in above error.
@fractalclone thank you for the help.
I will close this issue.


LibRealSense vs Win-DCM-RealSense distortion model

We are using SR300.
The distortion parameters returned by librealsense's rs_get_stream_intrinsics() ("Inverse Brown Conrady" model) are different from the parameters returned by the Windows DCM driver. They are not the same, nor do the DCM parameters match the "Forward Brown Conrady" parameters.
I suppose this is intentional and they use different distortion models? This was implied by Wollimayer in Issue 46.
Is there a way to retrieve the parameters of the Windows DCM distortion model using librealsense? Or maybe there's a known function that translates between the models?
We want to substitute code that uses these parameters and that depends on the DCM with librealsense.
Note 1: To the best of our knowledge, the DCM distortion model is the same as the OpenCV distortion model, which is also the same as the Matlab Computer Vision Toolbox distortion model. Seems like someone might have dealt with these parameter translations before.
Note 2: We do get the same 3x3 projection matrix in both APIs.
Note 3: We tested with two SR300, one is an older development model and one is a commercial model from Creative.

Required Info

Camera Model
SR300

Firmware Version
<IP_ADDRESS>

Operating System & Version
Windows 10

Kernel Version (Linux Only)

Which DCM API are you using? Is it Intel::RealSense::Calibration SDK interface?

@oordan  Yes, Intel::RealSense::Calibration::QueryStreamProjectionParameters()

The intrinsic parameters are calculated the same for depth.
For color librealsense adjusts the focal length and principal point in case of 4:3 aspect ratio, which is not done in DCM, and the rest is the same.
The distortion parameters are the same for both libraries, only that librealsense provides them as:
float coeffs[5]
and DCM provides them as:
tangential distortion = {coeffs[2], coeffs[3]}
radial distortion = {coeffs[0], coeefs[1], coeffs[4]}
but the data is supposed to be the same.
If you don't use 4:3 aspect ratio, do you get different numbers?

@oordan We are comparing the same depth stream with the same ratio 4:3. We get different values for the distortion coefficients.
We don't use color in our application.
We prepared sample code here. Compile it on Windows 10.
The LibRealSenseOutput is:
{fx, fy} = { 475.983948, 475.983826 }
{ppx, ppy} = { 313.900299, 245.987778 }
tangential distortion = { 0.004026, 0.004422 }
radial distortion = { 0.163121, -0.040345, 0.227614 }

The DCM output is:
{fx,fy} = { 475.9839, 475.9838 }
{ppx,ppy} = { 313.9003, 245.9878 }
tangential distortion = { -0.002873175, -0.002943313 }
radial distortion = { -0.1494821, 0.01267229, -0.02257685 }

For best support, post issues in the RealSense Community.
Hello,
Do you still need help with this issue?
Best regards,
Jesus
Intel Customer Support

We do still need help with this issue. We wrote code demonstrating it and but the developers haven't confirmed that it is an issue.
I suppose librealsense devs can say it is not in their scope to deal with the Windows Realsense SDK compatibility?
We'll try the RealSense community but I think the persons in Intel who wrote the intrinsics code for RealSense SDK or for librealsense would have the best chance to answer our questions.

We wrote the code for the Windows SDK, and from the code perspective - the numbers should be the same. So we need to debug your code to understand the diff. I'm sorry for the delay in handling this debug.

@oordan  Thanks for looking into this. We want to transfer our system from the Windows SDK to librealsense and the parameters mismatch is an issue we need to solve.

@avivhu were you able to resolve this issue?

No but I'm no longer working on this project.
On Feb 3, 2018 20:13, "Ziv Shahaf"<EMAIL_ADDRESS>wrote:
@avivhu https://github.com/avivhu were you able to resolve this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/IntelRealSense/librealsense/issues/573#issuecomment-362841638,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM-BNrb8WTn1lsWz2J5WL1LiI4iR3vDbks5tRKHXgaJpZM4O8ZdC
.


Atom 1.0.5

Thank you for the contribution. It was merged directly as df9f2787d61dc2f8c705facfc8fbe1ec706c9691 to keep commit history cleaner. Your contribution is still credited to you.


Algorithms in Ramda?

I don't know if this fits in the philosophy of Ramda, but I'd like to ask the collaborators if there is a possibility to integrate certain CS Algorithms inside Ramda.
I believe users of functional JavaScript will also be needed things like R.quicksort(), R.DepthFirstSearch(), R.minDistance().
Is a definite use case in our case where we can drop in this great library and it takes care of "all the functions" for us (so to speak!)

i'd love to see it but don't think it belongs in the core lib.

The Cookbook might be a good place for these.  Others have suggested a Ramda-contrib library, but I don't think anything has happened.
As much as I'd like to see such useful functions in some location easily associated with Ramda, I don't really see how it would work.  Take quicksort.  What's it's input?  Does it operate only on lists? On arrays?  On array-like structures (and what would we mean by that here?)  Does it only work on mutually comparable elements?  Or do we use the language's coercion?  Or would one have to supply a comparator?  How about a sort-key-extractor?
If we want to include such a function in Ramda, we need to consider these questions quite carefully.  But if we want to include it as example code, with such API decisions simply documented, we can make whatever choices seem convenient.

@CrossEye  All points noted! Like Ramda functions are overloaded, I was thinking the same for these lagorithmic functions. Eg: User supplies comparator for quicksort, if not we use a default.
We may need to create Data Structures too for this, but I'm trying to avoid and researching whether Ramda lists, JS Arrays will work!
@buzzdecafe Great! like @CrossEye said, if not in the core library then where do you suggest? Maybe I can send a sample PR there?

@davidchambers I know this is an old PR. I was just waiiting for my organisation to adopt Ramda full time before submitting PRs and that time is near!
I want to send a sample PR based on the the points raised by @CrossEye! Should I do it here only?

Feel free to open pull requests at any stage, @gaurav21r. The important thing is to ensure that each pull request is concerned with exactly one issue. When proposing new functions via pull requests it's generally advisable to open one pull request per function.

@davidchambers When we are ready, I think first I'll open an issue so that you and the other core team members can give your sign off on a proposed API

Sounds good!

Issues or PRs are fine.  PRs are especially nice because they give us something more concrete to discuss.  If your thinking is close enough to code to offer a PR, I find those preferable.  If not, an issue is fine.


Add brew to goreleaser

What does this fix or implement?

Checklist

[ ] PR name added as appropriate (e.g. feat:/fix:/doc:/test:/refactor:)
[ ] Tests added or updated
[ ] Documentation updated
[ ] Sonar Cloud Scan
[ ] Changelog updated and version incremented (label: upcoming release)
[ ] Github Issue linked if any
[ ] Jira task updated

Closing in favor of #181


Enable Affinity for cruisecontrol through operator

I did not find Affinity in kafkacluster CRD for cruisecontrol. Do we have Affinity support? Is there a plan to add Affinity? I see that affinity is added for envoyConfig and broker but it is not there for cruisecontrol.

@karthiknagraj currently only spec.cruiseControlConfig.nodeSelector is supported for deploying CC pod to specific nodes.

Dear @karthiknagraj! Can you make a pull request for this change?

Sure, I can make a pull request. But I may need some help in testing it.

Dear @karthiknagraj! We will review the PR and we will also make tests. Thank you!

Sure, I can make a pull request. But I may need some help in testing it.

@karthiknagraj, in addition to what has been mentioned by @bartam1, you can reach out to us via our slack channel, where we can provide more detailed steps and feedback on testings

Hey @karthiknagraj - this has been implemented by @shubhamcoc and will be available in our next release. Stay tuned!


Warning: lager:status/0 calls undefined function lager_default_tracer:info/1 (Xref)

rt

I can't reproduce this locally.

Closing this for now. Please reopen if we missed something. Thanks.


Add script to remove Family app

Default Windows Family app

App has been added to default app removal list in 78d2332