Auth token is not relevant from storage session for multiple users

Category

[ ] Question
[ ] Typo
[x] Bug
[ ] Additional article idea

Expected or Desired Behavior
I expect an unique auth token for Microsoft graph when I changed user account.
Observed Behavior
If I logout from page (didn't close a browser tab) and login again as another user, auth token of first user will be used till it expires.
Steps to Reproduce

Add isolated web part to page. Web part should have some personal request to graph (like https://graph.microsoft.com/v1.0/me)
Open page by first user and look result of request to graph api.
Logout (don't close the browser  tab)
Login using another user at once.
If token is not expired, you we get results of first user.

Submission Guidelines

Token is stored in Session storage of web part isolated domain.
Token uses the generic access key.

Suggestions:

Store token by unique key for every user.
Store token with common key. Store the current user details in session. If user details are changed or don't exist then web part (client) requests new auth token.

Hi,
Any update on this one? We're experiencing the same auth token issue on our tenants.
Thanks

Sorry - working on old issues.  Does the issue persist if you close the browser (I believe log off says "you should close the browser").  The token cache is managed by the base authentication libraries (used to be ADAL, now is MSAL).


arm/stm32f401rc-rs485: Add support to LCD 16x2 with I2C Backpack

Summary
Add support to LCD 16x2 with I2C Backpack
Impact
Users will be able to use LCD 16x2 with I2C Backpack on SMT32F401RC-RS485 Board
Testing
Configure lcd1602
Build and Flash
Run slcd example:
nsh> slcd "Hello NuttX"
Opening /dev/slcd0 for read/write access
Attributes:
  rows: 2 columns: 16 nbars: 0
  max contrast: 0 max brightness: 1
Clear screen
WRITING:
0000: 1b5b46                                                            .[F
Set brightness to 1
Print [Hello NuttX]
WRITING:
0000: 1b5b471b5b30304c1b5b4548656c6c6f 204e75747458                     .[G.[00L.[EHello  NuttX
Test complete
nsh>

[Experimental Bot, please feedback here]
The PR as presented does not meet the NuttX requirements fully. Here's why:
Missing Information:

Summary:

Why is this change necessary?  Is it a new feature request? Are there existing issues with LCD support?
What functional part is changed?  Be specific - mention the driver(s) modified or added.
How does the change work? Explain the technical implementation (e.g., "Added an I2C driver for the LCD backpack and integrated it with the framebuffer driver").

Impact:

The current description is too vague.
Which architectures/boards are affected specifically?
Build impact? Are there new Kconfig options?
Documentation? Was any added/updated to reflect the new LCD support?

Testing:

Insufficient detail!
Build Hosts: List the specific OS, CPU architecture, and compiler versions used for testing.
Target(s): Provide the exact architecture (e.g., armv7-m), board name (e.g., stm32f4discovery), and the NuttX configuration used (e.g., stm32f4discovery_defconfig).
"Testing logs before change" are irrelevant.  There wouldn't have been LCD output before this feature.

Recommendations:

Expand the Summary: Provide a clear, technical overview of the changes made.
Be Specific about Impact: Clearly list all affected architectures, boards, drivers, Kconfig options, and documentation.
Detailed Testing Info:  Follow the template, providing complete information about your build and target environments.

Example Improvement:
## Summary

This PR adds support for 16x2 LCD displays with I2C backpacks to the STM32F401RC-RS485 board.
It achieves this by:

1. **Adding a new I2C driver** for the specific LCD backpack used (mention the chip/model).
2. **Integrating the LCD driver** with the NuttX framebuffer driver to enable text output.
3. **Adding a new board configuration option** (`CONFIG_VIDEO_LCD1602_I2C`) to enable this feature.

This change addresses [link to NuttX issue or feature request, if applicable].

## Impact

* **New feature:** Support for 16x2 LCDs with I2C backpacks.
* **Impact on user:** Users with the supported LCD and board can now use it for display output.
* **Impact on build:**
    * New Kconfig option: `CONFIG_VIDEO_LCD1602_I2C`
* **Impact on hardware:**
    * **Architectures:** ARM (specifically ARMv7-M)
    * **Boards:** STM32F401RC-RS485
* **Impact on documentation:**
    * Added a new section to the STM32F401RC-RS485 board documentation explaining how to configure and use the LCD.
* **Impact on security:** None
* **Impact on compatibility:** None

## Testing

I confirm that changes are verified and work as intended:

* **Build Host(s):**
    * OS: Ubuntu 20.04
    * CPU: Intel Core i7-10700K
    * Compiler: GCC 9.4.0
* **Target(s):**
    * Architecture: armv7-m
    * Board:  stm32f401rc-rs485
    * Configuration: `stm32f401rc_rs485_defconfig` with  `CONFIG_VIDEO_LCD1602_I2C=y`

**Testing logs after change:**

nsh> slcd "Hello NuttX"
Opening /dev/slcd0 for read/write access
Attributes:
rows: 2 columns: 16 nbars: 0
max contrast: 0 max brightness: 1
Clear screen
WRITING:
0000: 1b5b46                                                            .[F
Set brightness to 1
Print [Hello NuttX]
WRITING:
0000: 1b5b471b5b30304c1b5b4548656c6c6f 204e75747458                     .[G.[00L.[EHello  NuttX
Test complete
nsh>

By providing this level of detail, you make it much easier for the NuttX maintainers to understand, review, and ultimately merge your contribution.


[swedish] sv_welcome_run-d-program-locally

Swedish reviewer roulette: @nordlow would you be so kind to have a short look over this translation?

Done!

Done!

Updated!

Updated!

@nordlow does the updated version look good to you?

@vladdeSV  this is the only pending PR for Swedish, so at least new PRs should be made against the Swedish repository:
https://github.com/dlang-tour/swedish
I can make a "submodule" PR once this PR has been merged, but of course you can do this yourself too ;-)

@vladdeSV this is the only pending PR for Swedish, so at least new PRs should be made against the Swedish repository:

Okay I did the migration for you, so please resubmit this PR to
https://github.com/dlang-tour/swedish


Getting this error with vpp mainline

sudo -E /root/go/bin/vpptop
2019/06/24 11:14:51 Error occured while connecting: compatibility check failed: unknown message: "sw_interface_dump_63f5e3b7"
vpp# show interface
Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count
local0                            0     down          0/0/0/0

Please ensure you are running VPP 19.04.1. The VPP from master (19.08-rc0) is not yet supported.

2019/07/29 18:36:53 error occured while connecting: compatibility check failed: unknown message: "sw_interface_dump_052753c5"
vpp# sh version
vpp v19.04.1-release built by root on e02854f54bd1 at Fri May 31 15:14:15 UTC 2019

For VPP 19.04, use the vpp1904  branch: https://github.com/PantheonTechnologies/vpptop/tree/vpp1904

Thank you @rastislavszabo ! It worked.


Find clang-format config that matches Valve Source Engine code style

In regards to #473 and #772 the primary focus is to stay close to source engine code style. If we could adjust our clang-format settings to match that it would aid us in enforcing such a styling.

I personally looked around a bit but couldn't find anything on the quick

(deleted comment was from compromised account)


fix(495): always output markers

Description

Fixes #495  by always outputing the markers even when there are no inputs or no outputs

Could you please review the PR @jackton1 ?


Add back TextInput.State

9ea129517922d8a23a5c81128e4dcf97f04a5129 forgot to add back the static TextInput.State.
Test Plan:
Tested in an app that crashed because of this
Changelog:
[General] [Fixed] - Add back TextInput.State

Looks like @sahrens backed out the diff, you could also include this fix when relanding it.


Feature Request: Provide an api for summarizing the flutter sdk

See https://github.com/dart-lang/build/issues/733 for historical context.
Currently for the dart sdk we are using the SummaryBuilder.forSdk api to generate a summary of the sdk. However, when the user is using a flutter sdk we still end up only summarizing the dart sdk (under bin/cache/dart_sdk in the flutter sdk).
It would be really nice if we had a similar api which we could give the root of the flutter SDK and it could summarize it (including dart:ui). This would allow us to make codegen work much better in a flutter context.
There may be necessary work in the flutter repo for this to happen as well, I don't know if it ships all the necessary sources required to summarize it today.
Alternatively, some direction on how one might summarize the flutter sdk using existing apis would be very useful.
cc @bwilkerson @pq who I was told have some knowledge here.

The source code for the Flutter SDK libraries is available in flutter/bin/cache/pkg/sky_engine/lib/**.

@jakemac53 is there some work required on dart-build side in order to be able to generate code aware of dart:ui, taking into account that Flutter SDK libraries are already available?

@lesnitsky correct, we need to create our own summary of the sdk (local analyzer versions aren't necessarily compatible with the summaries that ship with the sdk).
This issue was created exactly because of that need. It isn't clear how one would create a summary of the flutter sdk using existing apis. So we need either an api explicitly for that which encapsulates the logic (like SummaryBuilder.forSdk) or some guidance on how to do it.
@jonahwilliams thanks that should be a good starting point, I will see if I can get anywhere with that.

Ok, I was able to summarize the flutter sdk by editing the flutter/bin/cache/pkg/sky_engine/lib/_embedder.yaml file to include all the required web libraries:
  # Public + internal apis required for summarizing the web stack
  "dart:_foreign_helper": "../../../dart-sdk/lib/_internal/js_runtime/lib/foreign_helper.dart"
  "dart:_js_embedded_names": "../../../dart-sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart"
  "dart:html_common": "../../../dart-sdk/lib/html/html_common/html_common.dart"
  "dart:_interceptors": "../../../dart-sdk/lib/_internal/js_runtime/lib/interceptors.dart"
  "dart:_js_helper": "../../../dart-sdk/lib/_internal/js_runtime/lib/js_helper.dart"
  "dart:_native_typed_data": "../../../dart-sdk/lib/_internal/js_dev_runtime/private/native_typed_data.dart"
  "dart:_js_names": "../../../dart-sdk/lib/_internal/js_runtime/lib/js_names.dart"
  "dart:_rti": "../../../dart-sdk/lib/_internal/js_runtime/lib/rti.dart"
  "dart:_recipe_syntax": "../../../dart-sdk/lib/_internal/js_runtime/lib/shared/recipe_syntax.dart"
  "dart:_js": "../../../dart-sdk/lib/js/_js.dart"
  "dart:mirrors": "../../../dart-sdk/lib/mirrors/mirrors.dart"
  "dart:web_gl": "../../../dart-sdk/lib/web_gl/dart2js/web_gl_dart2js.dart"
  "dart:_metadata": "../../../dart-sdk/lib/html/html_common/metadata.dart"
  "dart:indexed_db": "../../../dart-sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart"
  "dart:svg": "../../../dart-sdk/lib/svg/dart2js/svg_dart2js.dart"
  "dart:web_audio": "../../../dart-sdk/lib/web_audio/dart2js/web_audio_dart2js.dart"
  "dart:web_sql": "../../../dart-sdk/lib/web_sql/dart2js/web_sql_dart2js.dart"

Below is the corresponding dart code I used. I basically copied what SummaryBuilder.forSdk was doing but swapped the FolderBasedSdk for an EmbedderSdk.
// Copyright (c) 2018, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:collection';
import 'dart:io';

import 'package:analyzer/src/summary/summary_file_builder.dart';

import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer/src/dart/sdk/sdk.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer/src/generated/source.dart';

import 'package:path/path.dart' as p;

import 'package:yaml/yaml.dart' as yaml;

var sdkPath = p.normalize(
    p.absolute('../', 'flutter', 'bin', 'cache', 'pkg', 'sky_engine', 'lib'));

main() async {
  var summaryFile = File('flutter.sum');
  await summaryFile.writeAsBytes(sdkSummaryBytes());
}

List<int> sdkSummaryBytes() {
  // Prepare SDK.
  var resourceProvider = PhysicalResourceProvider.INSTANCE;
  var embedderYaml = yaml.loadYaml(resourceProvider
      .getFile(p.join(sdkPath, '_embedder.yaml'))
      .readAsStringSync());
  var sdk = new EmbedderSdk(
      resourceProvider, {resourceProvider.getFolder(sdkPath): embedderYaml});

  sdk.useSummary = false;
  sdk.analysisOptions = new AnalysisOptionsImpl();

  print(sdk.sdkLibraries.map((l) => l.shortName).toList());

  // Prepare 'dart:' URIs to serialize.
  Set<String> uriSet =
      sdk.sdkLibraries.map((SdkLibrary library) => library.shortName).toSet();

  Set<Source> librarySources = new HashSet<Source>();
  for (String uri in uriSet) {
    librarySources.add(sdk.mapDartUri(uri));
  }

  return new SummaryBuilder(librarySources, sdk.context).build();
}

@bwilkerson @pq Do I have to provide these libraries via the _embedder.yaml? There is a libraries.json file already at flutter/bin/cache/libraries.json which already specifies all these libraries but I don't know how to make the EmbedderSdk use it, or if its even possible to combine the _embedder.yaml and a libraries.json.
It feels weird/wrong to put these extra web only things under the engine _embedder.yaml.

drive-by comment
When we introduced libraries.json, our goal was to eventually move analyzer to use it too. We never got around to do it due to priorities, but it might be worth doing so to address this. In particular, I believe FolderBasedDartSdk still uses the libraries.dart file (the old format). I haven't looked, but I believe it should be feasible to switch to use the libraries.json directly without too much heavy lifting. Note that there is a generic parser for this file already here: https://github.com/dart-lang/sdk/tree/master/pkg/front_end/lib/src/base/libraries_specification.dart

I ran into a variety of issues here, but I think I have landed on something only mildly hacky. Basically, I can create a normal FolderBasedSdk - and then if I detect we are actually a flutter sdk I can create the EmbedderSdk and manually add all libraries from that to the FolderBasedSdk's libaryMap that didn't already exist.
This makes the EmbedderSdk effectively become just a layer on top of the normal sdk summary, and in practice it only adds dart:ui but should be general enough to add any more dart: libraries that are added in the future.
It is definitely not ideal - the two things don't fully agree on what files they are using for the different libraries - but we only care about the api of these libraries so it shouldn't cause any problems.
cc @sigmundch

See https://github.com/dart-lang/build/pull/2501, I haven't actually tested this out yet but it should work.

Ok, I have that now in a pretty reasonable place. I will go ahead and close this issue, although something more supported would be nice at some point (this is pretty fragile as I am relying on the layout of the sdk, and also that the flutter sdk is built enough that these libraries have been fetched).


Guide on converting to Webpack?

I have updated to:
1.0.0-beta.11-webpack.2
With regrets because now it seems I have to add a ton of modules everywhere I think and I cannot find good guides on how to do the conversion coming from an angular CLI perspective using the latest RC.
Currently getting this error:
Uncaught Can't resolve all parameters for FeedComponent: (?).
No line number. No component reference. Not really specific at all.
I had actually finished my project for work and just wanted to use core-js for better IE support. I feel like I am at the beginning again. All I know is SystemJS.

That was my first impression, too. But after a while it seems to be much cooler. It is much easier to include 3rd party libraries from node_modules folder. And it is way quicker than systemjs with broccoli. And you have angular2 RC5, as well.
Here are some instructions.

try to import service directly from the source file defining the service (not index.ts which export service from other files).

@zsfarkas thats the guide I followed, however it seems webpack works quite differently from systemjs. For example I would have to:
Include all the components in the bootstrap file?
Create feature modules?
Change change current imports to modules?
Typings seem to work differently?
Is it me or does the whole app not run if there is one error?

@cuiliang have you come across this error:
url_resolver.js:238 Uncaught TypeError: uri.match is not a function

I can't seem to set my app to use scss now either I get this:
ng set defaults.styleExt scss
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
Cannot read property 'serialize' of undefined
TypeError: Cannot read property 'serialize' of undefined
at /Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:235:87
at JsonSerializer.property (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/serializer.ts:100:9)
at _loop_1 (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:235:32)
at /Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:240:17
at JsonSerializer.object (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/serializer.ts:88:9)
at ObjectSchemaTreeNode.serialize (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:227:20)
at /Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:231:92
at JsonSerializer.property (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/serializer.ts:100:9)
at _loop_1 (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:231:36)
at /Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:240:17
at JsonSerializer.object (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/serializer.ts:88:9)
at ObjectSchemaTreeNode.serialize (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:227:20)
at /Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:293:33
at JsonSerializer.array (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/serializer.ts:107:9)
at ArraySchemaTreeNode.serialize (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:291:20)
at /Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:231:92
at JsonSerializer.property (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/serializer.ts:100:9)
at _loop_1 (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:231:36)
at /Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:240:17
at JsonSerializer.object (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/serializer.ts:88:9)
at RootSchemaTreeNode.ObjectSchemaTreeNode.serialize (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-tree.ts:227:20)
at GeneratedSchemaClass.SchemaClassBase.$$serialize (/Users/lorne/projects/hsi-magazine/node_modules/angular-cli/addon/ng2/models/json-schema/schema-class-factory.ts:141:25)

url_resolver.js:238 Uncaught TypeError: uri.match is not a function
Is the error you get when you have moduleID: module.id in your components. Remove this from all your components as its not needed in web pack and that will fix it.
Cannot read property 'serialize' of undefined
I see this type of error when my angular-cli.json file is missing fields. Check that you have all the fields for your version (i just ng init on a empty dir) and try to fix it. Also there was a update last night to webpack.8 which has support for the script and styles fields. You make want to upgrade to that.

@aBitNomadic The first error is gone but ng init shows my angular-cli.json is identical. I have tried and failed changing it manually ;)

Heya, we've added much more comprehensive instructions here for the latest release: https://github.com/angular/angular-cli#webpack-update


[Tensor] *_i make it more efficient

Current there is try catch inside tensor *_i operator.
We need to investigate if this causes any performance degrade compare to noexcept version, except but pass throw to top.

:octocat: cibot: Thank you for posting issue #887. The person in charge will reply soon.

:octocat: cibot: Thank you for posting issue #887. The person in charge will reply soon.


List Security

Updated to use the security component.

I did note use the "Everyone" group and instead used the OTB visitor's group.


missing #![no_std] in core leading to std

fixes #374

Oh wow!
I actually had to check the codebase locally to make sure that this is real.
Thanks for the fix!


Type error with pre-commit on mac at initialisation

Issue Type

Bug report

Ansible and Ansible Lint details
On macOS, python 3.5.3
ansible --version: not installed
ansible-lint --version 3.4.13

ansible installation method: None
ansible-lint installation method: pre-commit

Desired Behaviour
Work at initialisation
Actual Behaviour (Bug report only)
Pre-commit config
-   repo: git://github.com/pre-commit/pre-commit-hooks
    sha: v0.7.1
    hooks:
    -   id: trailing-whitespace
    -   id: check-yaml
    -   id: end-of-file-fixer
    -   id: check-added-large-files
-   repo: https://github.com/willthames/ansible-lint.git
    sha: v3.4.13
    hooks:
    - id: ansible-lint
      files: \.(yaml|yml)$

It may be related to Issue #204 . I'm looking to virtualenv version of pyenv. I will edit the issue if needed
What happened
~/repo ᐅ pre-commit run --all-files
[INFO] Initializing environment for https://github.com/willthames/ansible-lint.git.
[INFO] Installing environment for https://github.com/willthames/ansible-lint.git.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Trim Trailing Whitespace.................................................Passed
Check Yaml...............................................................Passed
Fix End of Files.........................................................Passed
Check for added large files..............................................Passed
Ansible-lint.............................................................Failed
hookid: ansible-lint

Traceback (most recent call last):
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/bin/ansible-lint", line 11, in <module>
    load_entry_point('ansible-lint==3.4.13', 'console_scripts', 'ansible-lint')()
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/site-packages/ansiblelint/main/__init__.py", line 122, in main
    matches.extend(runner.run())
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/site-packages/ansiblelint/__init__.py", line 229, in run
    for child in ansiblelint.utils.find_children(arg, self.playbook_dir):
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/site-packages/ansiblelint/utils.py", line 158, in find_children
    for child in play_children(basedir, item, playbook[1], playbook_dir):
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/site-packages/ansiblelint/utils.py", line 207, in play_children
    return delegate_map[k](basedir, k, v, parent_type)
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/site-packages/ansiblelint/utils.py", line 253, in _roles_children
    role.get('role', role.get('name'))))
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/site-packages/ansiblelint/utils.py", line 301, in _look_for_role_files
    role_path = _rolepath(basedir, role)
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/site-packages/ansiblelint/utils.py", line 272, in _rolepath
    path_dwim(basedir, os.path.join('roles', role)),
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/posixpath.py", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/Users/admin/.pre-commit/repoi3jdki9d/py_env-default/lib/python3.5/genericpath.py", line 143, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'list'

~/repo ᐅ ansible-lint ./**
Traceback (most recent call last):
  File "/Users/admin/.pyenv/versions/destygo_env/bin/ansible-lint", line 11, in <module>
    sys.exit(main())
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/site-packages/ansiblelint/main/__init__.py", line 122, in main
    matches.extend(runner.run())
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/site-packages/ansiblelint/__init__.py", line 229, in run
    for child in ansiblelint.utils.find_children(arg, self.playbook_dir):
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/site-packages/ansiblelint/utils.py", line 158, in find_children
    for child in play_children(basedir, item, playbook[1], playbook_dir):
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/site-packages/ansiblelint/utils.py", line 207, in play_children
    return delegate_map[k](basedir, k, v, parent_type)
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/site-packages/ansiblelint/utils.py", line 253, in _roles_children
    role.get('role', role.get('name'))))
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/site-packages/ansiblelint/utils.py", line 301, in _look_for_role_files
    role_path = _rolepath(basedir, role)
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/site-packages/ansiblelint/utils.py", line 272, in _rolepath
    path_dwim(basedir, os.path.join('roles', role)),
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/posixpath.py", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/Users/admin/.pyenv/versions/3.5.3/envs/destygo_env/lib/python3.5/genericpath.py", line 143, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'list'

Just checked: it's not related to virtualenv as pyenv-virtualenv use venv, the successor of virtualenv that is included by default in python now

I tried the playbook live, and it seems some base syntax errors were there (var instead of vars for instance). The hook worked after fixed these errors. Not a big issue then, but it was ansible that report the specific error and the linter just failed. It should be the linter first I suppose.
Closing the issue.


The module is asking for access to personal info during sign in on Play Games.

When doing a play_games_services.signIn() (even with request_email disabled and request_profile disabled and save game disabled), the user is asked to give permission to the app to access his Google account info. This is an odd behavior.
Anyway to disable access to user Google account info? or any hint where I can turn it off in the code?

Would be great if this issue can be resolved.


Expected usage for ClassifierF

Hello! Happy http4s users here.
We're using datadog4s-http4s which transforms the output of the classifier into a List of metric tags.
If we wanted to generate multiple tags from a request (say, including something based on a header value), am I right that we'd have to find some way of encoding those multiple values in the single string, or is there some other means of piping multiple pieces of information into the metrics ops?

Ah, I see this example here:
https://github.com/ovotech/http4s-micrometer-metrics/blob/master/src/main/scala/org/http4s/metrics/micrometer/Micrometer.scala#L57
So, it looks like the expected method is to in fact "hide" the information in some semantically-meaningful string.

Closing in favor of https://github.com/http4s/http4s/pull/6206


Feature request: Fuse linear and Batch Norm layers

Neural Networks become more and more popular with tabular data.
Similar to https://pytorch.org/docs/stable/_modules/torch/quantization/fuse_modules.html#fuse_modules
It would be great if you added the way to merge Linear and BatchNorm1d layers.

Any updates on this?


cl-ledger was removed from Quicklisp (july 2018) (but it should be back)

Hello,
Given http://blog.quicklisp.org/2018/07/july-2018-quicklisp-dist-update-now.html, cl-ledger is "no longer available for download that I could find".
I see you opened an issue: https://github.com/quicklisp/quicklisp-projects/issues/1532
So let's just wait.

cl-ledger is back on Quicklisp.
http://blog.quicklisp.org/2018/08/new-projects-cari3s-generator-for-i3.html


current_user is nil, request headers are all upcased and prefixed with HTML_

Despite sending my headers in the required format, request.headers is showing them formatted like this:
"HTTP_ACCESS_TOKEN"=>"QnN7p6TZT3Mli9Dqmm5Vbw"
Am I doing something terribly wrong?
I offer my infinite gratitude 🌟

Completely unrelated problem X_X
I was using JSON API resources, and therefore not inheriting from my Application Controller. Doh.


Unknown prop margin on  tag.

I'm getting an error in the browser when using this package along with react v15.4.2:
Unknown prop `margin` on <div> tag.  Remove this prop from the element.

Full error:
Warning: Unknown prop `margin` on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in div (created by WeatherChart)
    in svg (created by Sparklines)
    in Sparklines (created by WeatherChart)
    in WeatherChart (created by WeatherList)
    in td (created by WeatherList)
    in tr (created by WeatherList)
    in tbody (created by WeatherList)
    in table (created by WeatherList)
    in WeatherList (created by Connect(WeatherList))
    in Connect(WeatherList) (created by App)
    in main (created by App)
    in div (created by App)
    in App
    in Provider


feat: databricks volumes dest added

let's add a test, even if it doesn't run in CI just yet.

can you add a pr description?


Cop to ensure the same style is used for indenting heredocs on a project

Is your feature request related to a problem? Please describe.
Rubocop can currently enforce nicely indented heredocs through the Layout/IndentHeredoc cop. It cannot, however, ensure that the same indentation style (squiggly, unindent, strip_heredoc, or strip_indent) is used for all heredocs on a project.
Describe the solution you'd like
I'm not sure whether this should be a different cop from Layout/IndentHeredoc. I tend to think it should be a different cop, although it would have the same enforced styles as Layout/IndentHeredoc.

Maybe I misunderstand the issue, but don’t Layout/IndentHeredoc’s EnforcedStyle options “squiggly”, “active_support”, “powerpack”, and “unindent” solve exactly this problem?

Yeah, I had the same expectations, but it turns out this is not what Layout/IndentHeredoc tries to achieve. Layout/IndentHeredoc ensures that heredocs don't break the indentation flow of a source file. Its enforced styles are used for offense advices and auto-correction, but if a heredoc already has the proper indentation, even if it uses a style inconsistent with the rest of the project to achieve that, it won't trigger an offense.

Ahh, I see. So with the configuration
Layout/IndentHeredoc:
  EnforcedStyle: squiggly

this bit of Ruby should cause an offense
puts <<RUBY.strip_heredoc
  2 + 2
RUBY

which it currently doesn’t.

Yeah, either that, or have a different cop to enforce the consistency.


Fix distrho-ports rpath, simplify dependencies

Motivation for this change
#118928 was merged while #116608 was open. This new PR introduces the rpath fix addressed in  #116608. It also removes some dependencies introduced in #118928 that seem unnecessary.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Pinging the main participants of these PRs: @magnetophon @kanashimia @SuperSandro2000


Ssl additional options

If the server is having a self-signed certificate then SSL certificate/host check fails. With these configuration options the checks can be turned off. This problem could happen if somebody created a server but doesn't want to spend money for a signed certificate (verisign or stuff like that).

There are free and easy to install certificates available (for example, Let’s Encrypt), so I don't see any reason for self-signed certificates.

The Let's Encrypt certificate authority will not issue certificates for a bare IP address.

IP address is static in this case. Spending money for dyndns things also not cheap.

Domain name from a good provider cost less than $10 a year. If you do some search, you can find places where you can get a domain name for free.

OK, I'll take a look at it...


Run linguist on text

Hello!
Is it possible to run linguist or some part of it on text instead of files? I am trying to solve following problem: detect, is there any piece of code in user message or not.
Thank you!

No. Linguist heavily relies on the file extension to detect languages. Without the file extension, results are going to be poor, if not arbitrary.

I think at least two methods (heuristic-based and bayes-classifier based) can be runned on a text. But thank you - I think it can be closed.

Yes, but as I said, results will be poor. The Bayesian classifier has very poor accuracy and that's why we run it last. With all languages as candidates, it'd be even worse. The heuristic rules are built to distinguish between a specific set of languages; a heuristic rule for .h files might give incorrect results if you add Python files to the mix.


create stub file not working

install pip install zope.event
enable in setting.json

"python.analysis.diagnosticSeverityOverrides": {
        "reportMissingTypeStubs": "information"
    },

create python file and add import zope.event
place cursor on event
open create type stub code action and run

Expected: type stub created
Actual: Nothing happens.
looks like something around pyright command controller not being called anymore.

PylanceAsyncServer.executeCodeAction returns (amongst other things) pyright.createtypestub. But BaseCommandController.getCommand only supports python.createtypestub. Looks like there's history of us supporting both command names, but it's not clear to me why. This support was broken by https://github.com/microsoft/pyrx/pull/3633.
Reassigning to @rchiodo who should have more context.

This issue has been fixed in prerelease version 2024.5.100, which we've just released. You can find the changelog here: CHANGELOG.md


Make big_tree_sapling available in survival mode

Since the big tree is composed of default leaf and trunk nodes, any special sapling cannot be dropped from them. Currently, the big_tree_sapling can only be accessed in creative mode, which isn't good news to survival players. I propose to introduce a recipe to combine regular saplings into a big tree sapling, like so:
minetest.register_craft({
        recipe = {{"default:sapling", "default:sapling",  "default:sapling"}},
        output = "ethereal:big_tree_sapling"
})

Or, alternatively, such saplings can be dropped from regular leaves, but with some lower chance:
minetest.override_item("default:leaves", {
	drawtype = leaftype,
	visual_scale = 1.4,
	inventory_image = "default_leaves.png",
	wield_image = "default_leaves.png",
	walkable = ethereal.leafwalk,
	drop = {
		max_items = 1,
		items = {
			{
				-- player will get a big tree sapling with 1/50 chance
				items = {'ethereal:big_tree_sapling'},
				rarity = 50,
			},
			{
				-- player will get regular sapling with 1/20 chance
				items = {'default:sapling'},
				rarity = 20,
			},
			{
				-- player will get leaves only if he get no saplings,
				-- this is because max_items is 1
				items = {'default:leaves'},
			}
		}
	},
})

Craftrecipe added for sapling :)


Pretrained Model Missing

For the training process the file models\supervised_phase\en_supervised\bst_model.h5 is missing. The file should either be provided or the documentation should state that the fields "pretrained_model_directory" and  "pretrained_model_basename" need to be set to "None".

thanks anne. we'll document it better (the models can be downloaded from http://spinningbytes.com/resources/suppmaterialpub/

Hey @martinjaggi,
I also wanted to try out your pre-trained model, but the link you provided is dead. Is there a new resource we can download the models from?
Thanks in advance!


feat(task-processor) add Task Processor inputs as env vars

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

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

Changes
Adds the inputs to the Task Processor as environment variables in the run-docker.sh script. Resolves https://github.com/Flagsmith/flagsmith/issues/3317.
How did you test this code?
Ran the task processor locally using this script, setting each of the variables.
This command
LOG_LEVEL=DEBUG TASK_PROCESSOR_SLEEP_INTERVAL=10000 TASK_PROCESSOR_QUEUE_POP_SIZE=20 TASK_PROCESSOR_GRACE_PERIOD_MS=100000 TASK_PROCESSOR_NUM_THREADS=1 ./scripts/run-docker.sh run-task-processor

Resulted in the following log message in the console:
task_processor.management.commands.runprocessor DEBUG    Running task processor with args: verbosity=1,settings=None,pythonpath=None,traceback=False,no_color=False,force_color=False,skip_checks=False,numthreads=1,sleepintervalms=10000,graceperiodms=100000,queuepopsize=20

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (31af594) 95.94% compared to head (414c3ca) 18.00%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3355       +/-   ##
===========================================
- Coverage   95.94%   18.00%   -77.94%
===========================================
  Files        1067      990       -77
  Lines       32621    28560     -4061
===========================================
- Hits        31298     5143    -26155
- Misses       1323    23417    +22094

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Copy task not working in  windows running forever

var grunt = require('grunt');
grunt.initConfig({
	copy : {
		main : {
                        expand: true,
			src : 'test/**',
			dest : 'hola/'
		},
	}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('copy','copy');

this is grunt.js file. What I am doing is just copying few test files from one directory to another. when I run grunt copy in commandline, I get this output
$ grunt copy --verbose
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Initializing config...OK

Registering "grunt-contrib-copy" local Npm module tasks.
Reading D:\workcode\node_modules\grunt-contrib-copy\package.json...OK
Parsing D:\workcode\node_modules\grunt-contrib-copy\package.json...OK
Loading "copy.js" tasks...OK
+ copy
Loading "Gruntfile.js" tasks...OK
+ copy

Running tasks: copy

Running "copy" task

Running "copy" task

Running "copy" task

Running "copy" task

Running "copy" task

Running "copy" task

Running "copy" task

Running "copy" task

Running "copy" task

Running "copy" task

and then grunt Running "copy" task run forever but no files or folder being copied.
I am using windows and cygwin console. I have tried some of other examples from readme file but none of these are working.

I'm experiencing the exact same issue running grunt via PowerShell or cmd.

Can anybody help us, about this issue?

Having this same problem on OSX El Capitan using latest version

@SOHOIT @tamimibrahim17
SOOOO ... i feel like a complete idiot, but this is actually our own fault ... we should not be defining a task as copy since that's the task already created by the module.
So remove this:
grunt.registerTask('copy','copy');
or change it to something like:
grunt.registerTask('docopy','copy');
And you will see it starts to work again ... derpppp


How to display failure

Hey,
I want to display the AuthenticationError that is thrown in the login function on the sign in page. Any suggestions on how I could do that or is this even possible?
Thanks

All the strategies catch the errors your throw and wrap it in a Response.
If you defined a failureRedirect, the response would be a redirect and the error will be in the session.
If you didn't defined a failureRedirect, the response will be a 401 with the error as part of the body. This one could be accessed in a CatchBoundary component.
And you can wrap the authenticator.authenticate call in a try/catch and manually check the response and handle the error.

All the strategies catch the errors your throw and wrap it in a Response.
If you defined a failureRedirect, the response would be a redirect and the error will be in the session.
If you didn't defined a failureRedirect, the response will be a 401 with the error as part of the body. This one could be accessed in a CatchBoundary component.
And you can wrap the authenticator.authenticate call in a try/catch and manually check the response and handle the error.

I don't get why but when I try using a try/catch block theres always an error thrown even when the credentials are correct. But when I remove the block it works how it is supposed to. Here's the action function I currently have:
export const action: ActionFunction = async ({ request }) => {
    try {
        await authenticator.authenticate('local', request, {
            successRedirect: '/'
        })
    } catch (e) {
        if (e instanceof Response) {
            const data = await e.json()
            return { error: data.message }
        }
        throw e
    }

    return {}
}

This works when the credentials are incorrect, but when they are correct, it throws:
FetchError: invalid json response body at  reason: Unexpected end of JSON input

That’s because the library made use of Remix ability to throw responses including redirects

Sound's interesting, do you have any suggestion on how I could fix it?
Thanks

Sound's interesting, do you have any suggestion on how I could fix it? Thanks

Okay, I got it working like this:
export const action: ActionFunction = async ({ request }) => {
	try {
		await authenticator.authenticate('local', request, {
			successRedirect: '/'
		})
	} catch (e) {
		console.log(e)
		if (e instanceof Response && e.status === 401) {
			const data = await e.json()

			return {
				error: data.message || 'Unauthorized'
			}
		}
		throw e
	}

	return {}
}


Remove nameTemplate

Does anyone actually use this? It's a little weird, and may conflict with future json templating stuff. Can't say I'll ever use it. I believe we added it for someone who had a legacy application, but in general I'd like to not code around anything legacy.

It is currently the only option to allow deploying a function with multiple environments into the same account "{{ .Project.Name }}{{ .Project.Environment }}{{ .Function.Name }}", but if it could be replaced with an option "add_environment_name" or something, that would work for me

Specific settings like that are probably best I think, but until then nameTemplate definitely works. We were going to eventually have more variable support in the JSON files so the current Go-specific interpolation might end up changing

I am playing around with Apex on pre-existing infrastructure, and this seems to be the only way to override the lambda method name right now (and only once per project).  I realize it's a hack, but I wouldn't drop it until you give functions.json a few more hooks for people with different infrastructure setups. Ideally, a property to specify the function's name in AWS overriding an inferred name from the project + function name.

We used to allow an explicit name, but having that differ from the dirname is pretty ugly IMO. I'd prefer to keep apex aimed at fresh projects instead of legacy infra. Happy to leave this for now until we have an alternative

As an aside to my own use case, I refactored the project to create a specific Lambda function name using a prefix from a CloudFormation parameter, that way I could support multiple functions in the same project. That removed my use case for overriding of the nameTemplate property at least.


Consider adding highlight/unhighlight events

I would love to replace our jQuery ASP.NET validation with this, but I can't because it's lacking the highlight and unhighlight events that we rely upon.
They're part of jQuery Validation rather than Microsoft's jQuery Unobtrusive Validation, and they let you run extra code at the time a field becomes valid or invalid.
Our use case for this is that we need error messages to be replicated in an Error summary similar to ASP.NET validation summary as well as next to the field, and we need to prepend "Error: " to the page title when there is an error. These changes make error messages more accessible to assistive technology users.
Would you consider adding support for them?

I’d accept a PR for them!

Hi!
I was looking for the same thing as we have wrapping divs where we want to set a class when the field is invalid.
@haacked still up for a PR?
Not sure when I can find the time but if I do in the near future, what kind of event would we want? CustomEvent on the form like the validation event or more of a "global" event?
In our use case I think that the best option is a "global" event where we pass the validated field (element) as a argument and it's validation state.
{
valid : true/false,
element : reference to element
}

Any feedback would be appreciated before I get my hands dirty =D
Cheers!

Suggest adding public highlight/unhighlight methods to ValidationService, aligned with jQuery Validation (receiving element, errorClass, validClass), extracted from here:
https://github.com/haacked/aspnet-client-validation/blob/ab9ef9cb640b3f36e9b2a814e6e84c6b409bdc0f/src/index.ts#L1052-L1054
and here:
https://github.com/haacked/aspnet-client-validation/blob/ab9ef9cb640b3f36e9b2a814e6e84c6b409bdc0f/src/index.ts#L1087-L1089
Bonus points for also extracting equivalent (un)highlightMessage and (un)highlightSummary the other places we use this.swapClasses().
Usage would be:
const service = new aspnetValidation.ValidationService(console);
service.highlight = function (input, errorClass, validClass) { ... };
service.unhighlight = function (input, errorClass, validClass) { ... };
service.highlightMessage = function (span, errorClass, validClass) { ... };
service.unhighlightMessage = function (span, errorClass, validClass) { ... };
service.highlightSummary = function (el, errorClass, validClass) { ... };
service.unhighlightSummary = function (el, errorClass, validClass) { ... };
service.bootstrap(console.log);

Hi @haacked
I have tried to implement this feature in PR https://github.com/haacked/aspnet-client-validation/pull/122.


When selecting a month with more weeks than the current month, the time picker gains unexpected whitespace.

Expected behavior
I expect the time picker to fill in space when the height of the container grows.
Actual behavior
The time picker maintains empty whitespace until I scroll the area.
Steps to reproduce

Go to https://reactdatepicker.com
Open the Select Time demo to February 2019.
Use the next arrow to navigate to March 2019.
See the whitespace

In my case, this also happens when using the portal version.

I'm not doing any special customisation to the height of the time container.

I'm not sure but #1297 could have something to do with this issue.

Issue fixed in #1717.


Admin branch

Enhanced JWT token to include 'role'
Added admin authentication check in queries
Added placeholder for admin-only history view
Implemented appointment lookup query
Streamlined authentication state handling
Added admin key in user creation
Updated createUser mutation for admin user creation
Added dotenv dependency for admin key storage
Modified authContext for null JWT token handling
Duplicated Signup form for admin signup options
Added role definition for user type
Added routing for AdminSignup
Reverted user creation, added admin user creation
Updated console logging for appointments
Updated data mapping for user association
Implemented basic card styling for appointments
Added sorting dropdown for appointments
Landing page now shows welcome message for non-admin users
Added spacing for signup links

Will add a dashboard for user on sign in so they can see their upcoming appointment & history
Would also like to add some styling, maybe some animation for displaying information.

Added some framework for the user display of appointment details. Its commented out so comment it back in if you're going to try to do it.


Find Doctor/Clinic FE

Authorized user must be able to

find divisions by searching parameters (list and details page)
find doctors by searching parameters (list and details page)
find division on map (map and details page)

This issue was moved to edenlabllc/ehealth.web#7


dodgeable attack

What is your question?
im making a mod where i want to have bf dodge the opponents attack by hitting a dodge note but idk how to do that can someone plz help me

I've done it before, although I'm not at my windows right now, so I can't give you the code, but try looking it up, something like "Caution notes psych engine lua" may help

What is your question?
im making a mod where i want to have bf dodge the opponents attack by hitting a dodge note but idk how to do that can someone plz help me
dodge event.zip
here ya go, now go make your amazing mod

thx so much

Close this

wait what do you do with the zip

Extract it and put it into custom_events folder

i already have dodge notes downloaded i just want the opponent to do a animation so bf can dodge and if he miss he dies

sorta like in vs Accelerant Hank


[Question] Incorrect package identification or dependency based?

I've just configured DependencyChecker 2.1.0 on our system and integrated it with SonarQube using the available plugin and was surprised by the number of vulnerabilities detected and did some further debugging.  Apologies if this has been asked or clarified elsewhere previously or is simply a misunderstanding of mine.
We have a project using Microsoft.AspNet.Identity.Core.2.2.1 via NuGet:
<dependency>
<fileName>Microsoft.AspNet.Identity.Core.2.2.1.nupkg: Microsoft.AspNet.Identity.Core.nuspec</fileName>
<filePath>C:\TfsAgents\AgentA\_work\3\s\eRegister\packages\Microsoft.AspNet.Identity.Core.2.2.1\Microsoft.AspNet.Identity.Core.2.2.1.nupkg\Microsoft.AspNet.Identity.Core.nuspec</filePath><md5>639d6a87679eb69bf2af51247b43a0a4</md5>
...
</dependency>

After the  is an  section that contains:
<identifiers>
<identifier confidence="LOW" type="cpe">
<name>(cpe:/a:microsoft:asp.net:2.2.1)</name>
<url>https://web.nvd.nist.gov/view/vuln/search-results?adv_search=true&cves=on&cpe_version=cpe%3A%2Fa%3Amicrosoft%3Aasp.net</url>
</identifier>
</identifiers>

Now I'm new to this, but it seems to have identified Microsoft.AspNet.Identity as Microsoft.Asp.Net?
It then goes on to list vulnerabilities such as CVE-2004-0847 which were in an ancient version of ASP.NET and have since been patched?
Is this because it's under cpe:2.3:a:microsoft:asp.net:-:*:*:*:*:*:*:* which includes all versions?

Yes, for .NET we still see a large number of false positives (partly because I have not setup a .net environment to try to resolve many of these - it is on my long list of things to get to).
I would highly recommend reading the following articles:

How dependency-check works
Reading the report
Suppressing False Positives

Thanks for the response Jeremy.
So essentially the recommendation is to create a suppression file?
I'll look at the HTML version of the report I produced (instead of XML) to see if that clarifies things for me.  I may then suggest / modify the SonarQube plugin to attempt to report these differently (currently they are Critical rated but could be Major instead).
How do you think you would go about resolving .NET issues through the analyzer itself?  This could be something for us to contribute back on given this is a business concern of ours.

One way to contribute back is that I have a feeling there are a number of base suppression rules that can be added to remove a lot of the FP. As I said, I have not had the time to setup an environment and create these.


Initial implementation of Transformer.

A first iteration of the Transformer class, it enables users to traverse the tree built with isly.

Update Readme?


Unable to install mmcv version 1.3.2 or higher

mmdet init file has a requirement of mmcv version higher than 1.3.2. But I'm unable to install that version of mmcv. The latest available version is 1.3.1

How and what method did you try to install? What errors did you get?
How about using lower version of mmdet?

I tried installing with the following commands:
!pip install mmcv-full
!git clone https://github.com/open-mmlab/mmdetection.git
%cd mmdetection
!pip install -e .

However, currently, I'm not facing any problem as mmcv-full version 1.3.3 is getting installed with this command. So this issue can be closed


Using Cloudinary for responsive images

It would be great to be able to use Cloudinary for responsive images.
For content images inside Markdown (or other formats), it could use presets and a Liquid syntax as in the Jekyll-Cloudinary plugin.
It would be even better if it could use native Markdown syntax and some "filters" in templates.
I already use Cloudinary, so I can help define the features, maybe even provide some code… ;-)

I, for one, (am completely biased but) think this is a great idea! And would of course love to help make it a reality.
I had some simmilar thoughts when seeing this: https://twitter.com/zachleat/status/943502658295476225 ...
@zachleat how exactly do you envision static asset handling things “layering on top?”

I think this is going to be closely tied to what gets formulated for #13.

Now that we have shortcodes - here's a (very basic) start: https://github.com/eeeps/eleventy-respimg

I've made huge progress towards my aim to use standard Markdown syntax for images and yet generate responsive images. I'm using Eleventy transforms for that, enhancing the standard images HTML  to  and even embedding it in a
 if/when it makes sense.
I'll try to release it soon as a plugin that would support Cloudinary at first (I'm using it), but potentially other image CDNs, or even home made solutions.
Sorry for the teasing, but I wanted to let you know it will come soon, at last. 😁

Teasing is over, here's my plugin for simple responsive images in Eleventy:
https://github.com/nhoizey/eleventy-plugin-images-responsiver/
eleventy-plugin-images-responsiver is "just" a thin layer between Eleventy plugin and transformations system and images-responsiver, a generic HTML transformation Node.js module for simple responsive images.
Eleventy uses Markdown-it to transform Markdown into HTML, and then runs the transform added by eleventy-plugin-images-responsiver, which calls images-responsiver to actually transform the HTML.
Neither eleventy-plugin-images-responsiver nor images-responsiver transform (resize) the image files, there are multiple ways to do so: https://nhoizey.github.io/images-responsiver/tutorial-05-images-urls.html


Provider removing kustomize-controller patch

Thanks for the prior help.
Implementing SOPS/AAD pod identity, I'm not sure the best way to patch the kustomize-controller so have put it in clusters/staging/flux-system/kustomization.yaml.  This did match the approach in the docs https://fluxcd.io/flux/installation/#customize-flux-manifests
Having done that I've found that rerunning the terraform provider 1.0.0-rc3 is reverting kustomization.yaml and wiping out my patch
Note: the lines matching ^*** are removals:
  # flux_bootstrap_git.this will be updated in-place
  ~ resource "flux_bootstrap_git" "this" {
        id                   = "flux-system"
      ~ repository_files     = {
          ~ "clusters/staging/flux-system/kustomization.yaml"   = <<-EOT
                apiVersion: kustomize.config.k8s.io/v1beta1
                kind: Kustomization
                resources:
                - gotk-components.yaml
                - gotk-sync.yaml
***                - patches:
***                - - path: kustomize-controller-patch.yaml
            EOT
            # (2 unchanged elements hidden)
        }
        # (11 unchanged attributes hidden)
    }

fyi...
 $ find clusters/staging/

clusters/staging/flux-system
clusters/staging/flux-system/kustomization.yaml
clusters/staging/flux-system/kustomize-controller-patch.yaml
clusters/staging/flux-system/gotk-sync.yaml
clusters/staging/flux-system/gotk-components.yaml
clusters/staging/infrastructure.yaml
clusters/staging/apps.yaml

kustomization.yaml:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml
patches:
- path: kustomize-controller-patch.yaml

kustomize-controller-patch.yaml:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: kustomize-controller
  namespace: flux-system
spec:
  selector:
    matchLabels:
      app: kustomize-controller
  template:
    metadata:
      labels:
        ## For aad-pod-identity
        # aadpodidbinding: ${IDENTITY_NAME} match the AzureIdentity name
        aadpodidbinding: sops-decryptor
    spec:
      containers:
      - name: manager
        ## For aad-pod-identity
        env:
        - name: AZURE_AUTH_METHOD
          value: msi

Please see how to customise Flux from Terraform https://registry.terraform.io/providers/fluxcd/flux/latest/docs/resources/bootstrap_git#customizing-flux

If your using Terraform this is the only way

For future reference...
resource "flux_bootstrap_git" "this" {
depends_on = [github_repository_deploy_key.this]
path = var.flux_cluster_dir
kustomization_override = local.kustomization_override
}
locals {
kustomization_override = <<KUST_EOF
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:

gotk-components.yaml
gotk-sync.yaml
patches:
path: kustomize-controller-patch.yaml

KUST_EOF
}


[Suggestion] Auto-update

Start using versions
Save current version of script as variable
Create a txt/blank file X in repo with latest version written in it
When script is running periodically query github url to raw file X
When version is higher than current running script, start updating and restart

No
No
No
No
No

Use search.


[Linux] VSCode does not follow system regulated font rendering settings

OS: OpenSUSE Tumbleweed, updated 02 Okt, 2020
VSCode: 1.49.2
Suddenly with the last update of VSCode, I noticed that VSCode does not follow my system font rendering settings. Specifically speaking, somehow VSCode decides to disable font hinting (hint none) rather than using the system-wide regulated slight hinting. I capture the image from Konsole and VSCode to compare; if one zoom in, one can see that VSCode produce "blurrer font" than Konsole, which follows the system settings.
System font settings:
Antialiasing: true
Autohinting: false
Hinting: hintslight
RGB mode: rgb
LCD: lcddefault

VS Code is built with Electron, which is built with Chromium. All font rendering in the editor area is delegated to Chromium. I believe this is an upstream issue with Chromium, can you please test how this font renders in Chromium?

That is right. Chromium does not follow system font settings. It uses the system default font, but forces no hinting on rendering.

Please create an issue or find an existing one at the Chromium project and link to it here -- https://bugs.chromium.org/p/chromium/issues/list

I dont have other operating system here to test (to be sure it is not due to Suse's build system). Can someone with Ubuntu or Debian confirm this error?

I dont have other operating system here to test (to be sure it is not due to Suse's build system). Can someone with Ubuntu or Debian confirm this error?

Can someone with Ubuntu or Debian confirm this error?
Yes, it looks very bad, developers, please return as it was in 1.48.2

VSCode 1.48.2

VSCode 1.49.3

Can you check if the issue happens with our exploration builds
Snap
Deb
Rpm
Unsigned Archive

Can you check if the issue happens with our exploration builds

I tried to install the deb package, unfortunately the problem persists.
Maybe this will help you - I changed the environment variable in /etc/environment
FREETYPE_PROPERTIES="truetype:interpreter-version=35"

thanks for testing, can also confirm if this is an issue with chromium browser on your setup by loading https://vscode-web-test-playground.azurewebsites.net/?enter=true

Tested on Ubuntu 20.04 with following editor setting, unable to repro
{
    "editor.fontFamily": "'Arial', 'monospace'"
}

can also confirm if this is an issue with chromium browser on your setup by loading

I don't use the chromium browser, but I installed it temporarily, it looks like the problem is really in chromium
chromium

firefox

can also confirm if this is an issue with chromium browser on your setup by loading

I don't use the chromium browser, but I installed it temporarily, it looks like the problem is really in chromium
chromium

firefox

Tested on Ubuntu 20.04 with following editor setting, unable to repro

Compared to my VSCode 1.48.2 screenshot this is not the same

Can you file a bug in chromium https://bugs.chromium.org/p/chromium/issues/list and attach the bug link here. Thanks!

As it turned out, this chromium bug is related to the scale factor of the device. I added the command line option --force-device-scale-factor=1 and now everything is fine.

Nice find, merging this to https://github.com/microsoft/vscode/issues/108123


Offers button

Issue on font-size when button is disabled

Offers button isn't visible on mobile/table

👋


Node "rpi-gpio out" doesn't do the expected in GPIO 18 (Pin 12)

What you do:
You configure a node "rpi-gpio out" to GPIO 18 (Pin 12), and click Done.
What you get:

GPIO 27 (Pin13) works instead of the configured one.
If you open the configuration tab again, you see the GPIO 27 (Pin 13) selected.
Pin 13 never shows up in:   Pins in Use: 7,11,12,15,16,18,22,29,31,33,35

Behavior shows up since node-red 0.17.0 on Raspberry-Pi, node-js v6.11.0
I guess, it's caused by node-red/nodes/core/hardware/36-rpi-gpio.html
where lines 84 and 335 show:

GPIO27 - 13 <input type="radio" name="pins" value="12" style="width:auto;">

Here the selected GPIO27 (Pin 13) is connected with Pin 12 in some way.

Node-RED 0.17.2 was released earlier today to address this. Please upgrade and let us know if it's working again.

make sure to use the bash upgrade script on the docs page

Wow, quick answer!
I had 0.17.2 installed just today.
I've run update-nodejs-and-nodered again,
The strange behavior (only at Pins 12 and 13) is still there.
The incorrect lines as described above are still there.
The fix today at node-red/nodes/core/hardware/36-rpi-gpio.html didn't address the special problem with Pins 12 and 13.
I checked twice.
Sorry, something is still there.

hmm - let me check

Temporary fix - locally you can run
sudo perl -pi -e 's/GPIO27 - 13 <input type="radio" name="pins" value="12"/GPIO27 - 13 <input type="radio" name="pins" value="13"/g' /usr/lib/node_modules/node-red/nodes/core/hardware/36-rpi-gpio.html

Temporary fix works for me in every respect. Thanks!

Fixed by #1314 - will be available in 0.17.3

Node-RED 0.17.3 now available with this fix.


Support "has" operator

support for the "has" Operator (<IP_ADDRESS>.10)
Usage:
Enum flag = FlagEnum.Bit5;
await client.For<SAProduct>()
            .Filter(x => x.Usage.HasFlag(flag))
            .FindEntriesAsync();

Thank you for the PR. That's very useful addition!

Actually this code doesn't work because it requires changes in LINQ expression processing. I will take care of this but for the future please verify the changes with tests before submitting PRs. Cheers!


Is ansible-nas compatible with Ubuntu MATE?

As title.

Probably. As long as it's version 18.04. Ansible NAS is developed on Ubuntu Server, which has no window manager installed out of the box.
That said, a NAS / homeserver is not typically a box you'd log into when sat it front of it, so using Ubuntu MATE is completely pointless as the "MATE" derivative refers to the window manager, nothing more.


Allow setting percentage for maxUnavailable in falcon-sensor Damonset

Currently the falcon-sensor Helm Chart requires maxUnavailable to be an int: https://github.com/CrowdStrike/falcon-helm/blob/main/helm-charts/falcon-sensor/templates/daemonset.yaml#L35
This causes the following error when trying to set maxUnavailable as a percentage:
node.daemonset.maxUnavailable: Invalid type. Expected: integer, given: string

Fixed in https://github.com/CrowdStrike/falcon-helm/pull/189

Closing as this has been fixed.


Rename repo and module to "firefish"

Simply search and replace all instances of "m3cfd" or "cusfsim" with "firefish".
Closes #21.

:+1:


Provide a corpus of core dump samples

A working sample set of core dump files would be extremely helpful when validating tools, and trouble shooting errors that occur unexpectedly. Thanks in advance.

Hi @Mootix1313 , unfortunately we don't have a lot of equipment to generate the samples with right now, but if you're aware of a place to get them, or have some samples yourself, we'd be glad to have them.
The samples we have right now are from production, and are not sanitized for public use. We'll see what we can find and provide some. Did you have a specific product in mind?

Hi @Mootix1313 , unfortunately we don't have a lot of equipment to generate the samples with right now, but if you're aware of a place to get them, or have some samples yourself, we'd be glad to have them.
The samples we have right now are from production, and are not sanitized for public use. We'll see what we can find and provide some. Did you have a specific product in mind?

No worries, that's understandable! I'm interested in a variety of samples. I've run into core dumps that parse well with NAFT (e.g. Cisco 2911), and others that don't play nicely (e.g. ASA 5520, Catalyst 3750). I know these that I've mentioned are older models that have surpassed their EOS/EOL, but it's still helpful for practice and tracking differences across the different versions of cisco software.


Check for redundant if statements

Issue a warning for redundant checks in if statements, for example:
if (beforeTokens.length >= 2)
{
    if (beforeTokens.length >= 2 && some_condition)

@Hackerpilot I think this can be closed ?

I still want to add this feature, but I need to figure out how to implement it without generating false positives.


different port (or {address}:{port}) between frontend and backend (API)

I notice they have the same domain/address.
what if I want the frontend on {domain}:3456 and the backend on {domain}:8085?

version: '3'
services:
  client:
    image: wongsaang/chatgpt-ui-client:latest
    environment:
      - SERVER_DOMAIN=http://backend-web-server
      - NUXT_PUBLIC_APP_NAME='ChatGPT UI'
      - NUXT_PUBLIC_TYPEWRITER=true
      - NUXT_PUBLIC_TYPEWRITER_DELAY=100
    depends_on:
      - backend-web-server
    ports:
      - '3456:80'
    networks:
      - chatgpt_ui_network
    restart: always
  backend-wsgi-server:
    image: wongsaang/chatgpt-ui-wsgi-server:latest
    environment:
      - APP_DOMAIN={domain}:8085
      #      - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed.
      - DJANGO_SUPERUSER_USERNAME=admin # default superuser name
      - DJANGO_SUPERUSER_PASSWORD=password # default superuser password
      -<EMAIL_ADDRESS># default superuser email
      - ACCOUNT_EMAIL_VERIFICATION=${ACCOUNT_EMAIL_VERIFICATION:-none} # Determines the e-mail verification method during signup – choose one of "none", "optional", or "mandatory". Default is "optional". If you don't need to verify the email, you can set it to "none".
      # If you want to use the email verification function, you need to configure the following parameters
#      - EMAIL_HOST=SMTP server address
#      - EMAIL_PORT=SMTP server port
#      - EMAIL_HOST_USER=
#      - EMAIL_HOST_PASSWORD=
#      - EMAIL_USE_TLS=True
    ports:
      - '${WSGI_PORT:-8000}:8000'
    networks:
      - chatgpt_ui_network
    restart: always
  backend-web-server:
    image: wongsaang/chatgpt-ui-web-server:latest
    environment:
      - BACKEND_URL=http://backend-wsgi-server:8000
    ports:
      - '8085:80'
    depends_on:
      - backend-wsgi-server
    networks:
      - chatgpt_ui_network
    restart: always

networks:
  chatgpt_ui_network:
    driver: bridge


This looks like an interesting start?

Are there some instructions on how to make it work?

Is this complete or is it a work in progress? I'd like to help, but I'm still learning tensorflow :)

I'm the same way. Happy to help!
Thanks,
Rich
Nothing in the world can take the place of persistence... The slogan "press on" has solved and will always solve the problems of the human race. Locomotive Engineers Monthly. November 1914.
http://tongfamily.com | @richtong | http://fb.me/richtong1 | +1-206-963-9029
Sent from my iPhone

On Feb 17, 2016, at 00:34, Manuel Aráoz<EMAIL_ADDRESS>wrote:
Is this complete or is it a work in progress? I'd like to help, but I'm still learning tensorflow :)
—
Reply to this email directly or view it on GitHub.

happy to help, new to TF.

updated with instructions


[ISSUE #1850] Correct implementation of commitLog recovery

Motivation
when duplication ebaled, no filter should work, just should work when duplication disabled
Changes
turn logic impl
Closes #1850

Coverage decreased (-0.05%) to 50.882% when pulling c24a53f5fcef2d90ec269b6d3f2acc41a4e7bb11 on xujianhai666:fix-dupenable into 73bb4b402a5da02faf9feded8f4d79dd1ba88348 on apache:master.

Curious how duplicationEnabled would affect the ReputMessageService

Curious how duplicationEnabled would affect the ReputMessageService, I noticed
 private void doReput() {
            if (this.reputFromOffset < DefaultMessageStore.this.commitLog.getMinOffset()) {
                this.reputFromOffset = DefaultMessageStore.this.commitLog.getMinOffset();
            }
            for (boolean doNext = true; this.isCommitLogAvailable() && doNext; ) {

                if (DefaultMessageStore.this.getMessageStoreConfig().isDuplicationEnable()
                    && this.reputFromOffset >= DefaultMessageStore.this.getConfirmOffset()) {
                    break;
                }
...

I'm not quite sure what the confirmOffset means (seems like minimum checkpoint timestamp ), but with my understanding about the correct impl of commit log recovery, it seems we need to change doReput() as well.
maybe something like
                if (!DefaultMessageStore.this.getMessageStoreConfig().isDuplicationEnable()
                    && this.reputFromOffset < DefaultMessageStore.this.getConfirmOffset()) {
                    increase reputFromOffset and continue;
                }

reference: http://zjykzk.github.io/post/cs/rocketmq/store/  消息后续逻辑

Could you pls move this PR to the develop branch?


Errors when deleting uploads are not displayed to the user

If you modify the delete_message_image function to throw an exception (or otherwise throw an error, I imagine), there's no user-facing feedback about the error when a use tries to delete a file in the web UI (in settings -> Your uploaded files), which is confusing.  We should be able to fix this using our standard ui_report.error system.

@hackerkid you should probably fix this while you're working on that page.


VARS Integration Issue with Sharktopoda 2 - VARS echos back select, preventing a localization from being resized

This is a VARS issue, not with Sharktopoda.
When a localization is selected in Sharktopoda, it sends the select localizations command. VARS selects it in it's own UI but responds back with its own select localizations command. This resets the state of the localization preventing it from being resized.
I think I just need to track the state of the last selected localizations from Sharktopoda. When VARS goes to select something, only send the select command if they are different than the last selected one from Sharktopoda.

This is the log of events that occurs when a localiation is selected in Sharktopoda:
2022-12-27 20:40:16 [Thread-12                       ] DEBUG org.mbari.vcr4j.remote.player.PlayerIO              ANICCA.shore.mbari.org:5000 - Received command <<< {"command":"select localizations","localizations":["164d4e15-12ed-408e-b9b3-a9d4d696aee1"],"uuid":"f96c7275-7f75-48e2-8240-c8c9846b665f"}
2022-12-27 20:40:16 [Thread-12                       ] DEBUG org.mbari.vcr4j.remote.control.RVideoIO             f96c7275-7f75-48e2-8240-c8c9846b665f@localhost:8800 - Sending command >>> {
  "localizations": [
    "164d4e15-12ed-408e-b9b3-a9d4d696aee1"
  ],
  "command": "select localizations",
  "uuid": "f96c7275-7f75-48e2-8240-c8c9846b665f"
}
2022-12-27 20:40:16 [Thread-12                       ] DEBUG org.mbari.vcr4j.remote.control.RVideoIO             f96c7275-7f75-48e2-8240-c8c9846b665f@localhost:8800 - Received response <<< {"response":"select localizations","status":"ok"}
2022-12-27 20:40:16 [Thread-12                       ] DEBUG org.mbari.vcr4j.remote.control.RVideoIO             f96c7275-7f75-48e2-8240-c8c9846b665f@localhost:8800 - Sending command >>> {
  "localizations": [
    "164d4e15-12ed-408e-b9b3-a9d4d696aee1"
  ],
  "command": "select localizations",
  "uuid": "f96c7275-7f75-48e2-8240-c8c9846b665f"
}
2022-12-27 20:40:16 [Thread-12                       ] DEBUG org.mbari.vcr4j.remote.control.RVideoIO             f96c7275-7f75-48e2-8240-c8c9846b665f@localhost:8800 - Received response <<< {"response":"select localizations","status":"ok"}
2022-12-27 20:40:16 [Thread-12                       ] DEBUG org.mbari.vcr4j.remote.control.RVideoIO             f96c7275-7f75-48e2-8240-c8c9846b665f@localhost:8800 - Sending command >>> {
  "localizations": [
    "164d4e15-12ed-408e-b9b3-a9d4d696aee1"
  ],
  "command": "select localizations",
  "uuid": "f96c7275-7f75-48e2-8240-c8c9846b665f"
}
2022-12-27 20:40:16 [Thread-12                       ] DEBUG org.mbari.vcr4j.remote.control.RVideoIO             f96c7275-7f75-48e2-8240-c8c9846b665f@localhost:8800 - Received response <<< {"response":"select localizations","status":"ok"}
2022-12-27 20:40:16 [Thread-12                       ] DEBUG org.mbari.vcr4j.remote.player.PlayerIO              ANICCA.shore.mbari.org:5000 - Responding >>> {
  "response": "select localizations",
  "status": "ok"
}

Resolved.


Eliminate swift lint errors

Description

Motivation and Context
Fix build breakage
How Has This Been Tested?

Checklist:

[ ] I have submitted a CLA form
[ ] If applicable, I have updated the documentation accordingly.
[ ] If applicable, I have added tests to cover my changes.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1101   +/-   ##
=======================================
  Coverage   89.96%   89.96%
=======================================
  Files          35       35
  Lines        1714     1714
=======================================
  Hits         1542     1542
  Misses        172      172

Flag
Coverage Δ

#Kitura
89.96% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Factorize Native Staking helpers and mappers common logic

Summary
This PR factorizes some common logic in KilnNativeStakingHelper and NativeStakingMapper. The checks for the Deployment properties were done in multiple places, so as it was moved to StakingRepository in https://github.com/safe-global/safe-client-gateway/pull/1894, there's no need to perform the checks in other places.
Changes

Factorizes common logic in KilnNativeStakingHelper and NativeStakingMapper via private functions.
Reuses NativeStakingMapper.getPublicKeysFromDataDecoded on NativeStakingMapper.getValueFromDataDecoded.
Adds tests to StakingRepository verifying the Deployment is checked.
Removes redundant tests checking the Deployment properties.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

0 of 12 (0.0%)  changed or added relevant lines in 2 files are covered.
5 unchanged lines in 4 files lost coverage.
Overall coverage increased (+0.3%) to 46.199%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/routes/transactions/helpers/kiln-native-staking.helper.ts
0
5
0.0%

src/routes/transactions/mappers/common/native-staking.mapper.ts
0
7
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/datasources/transaction-api/transaction-api.manager.ts
1
90.32%

src/routes/transactions/mappers/common/native-staking.mapper.ts
1
11.19%

src/datasources/balances-api/balances-api.manager.ts
1
72.22%

src/routes/transactions/helpers/kiln-native-staking.helper.ts
2
32.14%

Totals

Change from base Build<PHONE_NUMBER>4:
0.3%

Covered Lines:
4837

Relevant Lines:
8431

💛  - Coveralls


3926 hocon include

This is a new PR over @tomas-langer 's original for #3926

Original PR from Tomas - #3978

/tigger


partial

Your code does not currently pass any of the tests in the file. Once your code is passing tests, please resubmit


headers['X-REAL-IP']

We need to change the remote_ip which is dynamic to the X-REAL-IP header which is static over a session.
Should this be HTTP_X_REAL_IP?
This will need in app testing, via a review app?

Hi Amar, I spoke with Colin Saliceti prior to starting the ip ticket, the X-REAL-IP is an Azure specific ip, so should be present in all services as long as we are on Azure, if we change platforms we could change to the first element of X-Forwarded-For header list as that is agnostic. Colin favoured the X-REAL-IP.


can't get location in China

🔙 Regression

Hi, i am in China, but i can use google service and google map normally with vpn.
I want to get and print location from this pcakage, but nothing.
Code
@override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            if (_currentPosition != null)
            Text(
                "LAT: ${_currentPosition.latitude}, LNG: ${_currentPosition.longitude}"),
            RaisedButton(
              onPressed: () {
                //Get the current location
                getLocation();
              },
              child: Text('Get Location'),
            ),
          ],
        ),
      ),
    );
  }

  void getLocation() async {
    print('start');
    final Geolocator geolocator = Geolocator()..forceAndroidLocationManager;

    geolocator
        .getCurrentPosition(desiredAccuracy: LocationAccuracy.lowest)
        .then((Position position) {
          print(position);
      setState(() {
        _currentPosition = position;
      });
    }).catchError((e) {
      print(e);
    });
  }
}

Configuration
D:\workspace\Clima-Flutter>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.18363.836], locale zh-CN)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 3.6)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] Connected device (1 available)

! Doctor found issues in 1 category.

physical device
name: XiaoMi RedMi K20
android version: 10
MIUI: 11.0.6
Version: ^5.3.1
Platform:**

[ ] :iphone: iOS
[x] :robot: Android

This issue should be solved with version 6.0.0 (you can try version 6.0.0-rc.4 if you would like to verify)

How to Get Device Lat Long in Flutter


[Propasal] Description placeholder

[Status quo]
Right now there is not a declaration for this extension.

[Propasal]
For bitcoin switch based devices only
You can set various time windows for your project and display custom output when closed.
Payments available during specified time window.
Timeout after each payment.
Allow a maximum number of payments per 24 hours.
When making a payment is not allowed, an alternative image is displayed instead of a QR code.
--> The LNURL payment flow also returns an error when trying to make a payment outside opening hours.
Get in touch with us at: https://t.me/lnbitsgermany
Created by, Ben Arc, BC, Vlad Stan, dni
Forked by, pieterjm & business-bitcoin.de

This is done.
PR https://github.com/pieterjm/DeviceTimer/pull/3
-closed-


Question: Reloading zshrc

Curious about something.. How long does it take you to reload! (. ~/.zshrc)?

Little less than a second. Not instant, but not troubling, either.

@holman perfect, thanks.


Improve camerad startup time

camerad takes noticeably longer to startup on C3 vs C2

@deanlee interested in looking into this one?

It seems that most of the time is spent on vipc_server->create_buffers. but we can't execute it in multiple threads, maybe there will be some improvement after removing rgb buffer

This does indeed seem to be pretty good without the RGB buffers.


Changing from System.Data.SqlClient to Microsoft.Data.SqlClient - .NET Framework Connection Strings providerName Attribute

Hello,
Currently when using System.Data.SqlClient, any connection strings I have look like the following:

After changing to Microsoft.Data.SqlClient, does the providerName attribute change?  If so, what should it change to?
Thanks.

Sorry, the sample connection string was lost.  Here it is:
<add name="name" connectionString="connection string" providerName="**System.Data.SqlClient**"/>

It looks like you are trying to use microsoft.data.sqlclient with Entity Framework "classic" - this is not supported.

If you own and want to update app.config configurations, then Yes, the provider attribute would need to be changed to "Microsoft.Data.SqlClient" and it shall work.
It's tested for both .NET Core and .NET Framework, also discussed in https://github.com/dotnet/SqlClient/issues/239

Hi Cheena,
I made the change.  When testing it out, I got the following error:
System.ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.
I presume that means that I also need to add the following to the config file?
<system.data>
  <DbProviderFactories>
    <add name="SqlClient Data Provider"
     invariant="Microsoft.Data.SqlClient"
     description=".Net Framework Data Provider for SqlServer"
     type="Microsoft.Data.SqlClient.SqlClientFactory, Microsoft.Data.SqlClient,
     Version=1.0.19269.1, Culture=neutral, PublicKeyToken=****"
    />
  </DbProviderFactories>
</system.data>

Note:  I am using .NET Framework

Yes that entry is needed.
The correct solution is here: https://github.com/dotnet/SqlClient/issues/239#issuecomment-537770942

Hi @schmidlkofer
I hope your query is resolved? Feel free to close issue when you get it working.

Closing as inactive.


lit-html.com handover

Hello,
I'd like to handover the lit-html.com domain to the project.
Who should I get in touch with?

That's awesome, thanks! @jbingham

@justinfagnani contacted via the public email, feel free to close the issue!

Closing, thanks!


Rf prflow

Might(Not sure) require some cleanups later, but it is pretty basic, cleaned up as much as I could.

There is intense code duplication. We'll need to discuss this.

Manually merged into #41: Thanks.


Hi,when i have trained the model ,it has an error in the end

......................
Training: loss: 0.010 | Acc: 99.678
Testing: loss: 0.490 | Acc: 90.170
Traceback (most recent call last):
File "KeyNet-main/KeyNet-main/CIFAR10/Experiments.py", line 53, in
keynet.train_original_task(resume = True)
File "wln/KeyNet-main/KeyNet-main/CIFAR10/keynet.py", line 208, in train_original_task
self.model.load_state_dict(checkpoint['state_dict'])
KeyError: 'state_dict'

Hello, did you solve it?


Custom animation like Picasso style

Hello,
 example call:
 listingImage.af_setImageWithURL(imageUrl, placeholderImage: nil, imageTransition: .CrossDissolve(NSTimeInterval(1.0)))

 Im currently using the CrossDissolve animation and if the initial background of the is not colored (not white), it does not look good.

Im planning to use the custom animation one but I cant see any example how to use this. Im planning to make it look like the simple Picasso animation.
Anyone can help?

Hi @iad24,
These types of questions are best suited for Stack Overflow. We use our GitHub project for bug reports and feature requests.
Best of luck! 🍻

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.

@cnoon you are right. my bad


run autodock failed

Traceback (most recent call last):
File "MolKit\hydrogenBuilder.py", line 65, in addHydrogens
File "MolKit\molecule.py", line 102, in getattr
File "MolKit\tree.py", line 496, in getattr
File "MolKit\listSet.py", line 170, in getattr
File "MolKit\molecule.py", line 366, in getattr
AttributeError: member babel_type not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "process.py", line 318, in run
File "process.py", line 481, in do
File "process.py", line 279, in prepare_receptor
File "prepare.py", line 204, in prepare_autodock_receptor
File "AutoDockTools\MoleculePreparation.py", line 570, in init
File "AutoDockTools\MoleculePreparation.py", line 140, in init
File "AutoDockTools\MoleculePreparation.py", line 190, in repairMol
File "AutoDockTools\MoleculePreparation.py", line 203, in addHydrogens
File "MolKit\hydrogenBuilder.py", line 69, in addHydrogens
File "PyBabel\atomTypes.py", line 141, in assignHybridization
File "PyBabel\atomTypes.py", line 294, in valence_two
File "PyBabel\util.py", line 55, in bond_angle
ZeroDivisionError: ('Input used:', [15.352, 38.929, 203.579], [15.352, 38.929, 203.579], [15.352, 38.929, 203.579])
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "process.py", line 322, in run
File "process.py", line 250, in update_error
File "process.py", line 232, in send_message
File "multiprocessing\connection.py", line 206, in send
File "multiprocessing\connection.py", line 280, in _send_bytes
BrokenPipeError: [WinError 232] 管道正在被关闭。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "multiprocessing\process.py", line 314, in _bootstrap
File "process.py", line 329, in run
File "process.py", line 247, in update_finished
File "process.py", line 232, in send_message
File "multiprocessing\connection.py", line 206, in send
File "multiprocessing\connection.py", line 280, in _send_bytes
BrokenPipeError: [WinError 232] 管道正在被关闭。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 27, in
File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py", line 52, in _freeze_support
File "multiprocessing\spawn.py", line 116, in spawn_main
File "multiprocessing\spawn.py", line 129, in _main
File "multiprocessing\process.py", line 329, in _bootstrap
AttributeError: 'NoneType' object has no attribute 'write'

Fixed it in version 0.10.0.


Addressed issue with instruction.py which prohibited inheritance of Q…

Summary
Addressed an issue whereby inheriting from QuantumRegister or ClassicalRegister would cause a QiskitError in instruction.py.
Details and comments
Checking type-equality is brittle and should be avoided unless it is desired that only the given type be accepted. Since these classes are made available to the public, it is expected that they may eventually be inherited from.

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

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


Authentication Password, Model and Table in config.php

Hi! I have installed the CAS in my laravel 4.2. In the configuration file see commented notes referring to (array key's) password authentication, Model and Table but these "key's array" are not present in the configuration file. You can send me the text of these "keys array" ..... something like "cas_password" , "cas_model" or "cas_table"  .....

Sorry, I'll try to explain in more detail. CAS package configuration file (config.php) There commented lines explaining each key of the array.
For example, at the beginning of the config file have "PHPCas Hostname" refers to the key 'cas_hostname' => 'cas.domain.fr',
but comments
Authentication PasswordAuthentication ModelAuthentication Table
They are not referring to any key in config file......
For Example:
Authentication Password to "cas_password"=>'mypassword'
What are the keys to model, table and password? Where the specific model, table and passoword?
Thanks
Date: Wed, 7 Jan 2015 05:05:55 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [Cas] Authentication Password, Model and Table in config.php (#10)
I don't really understand your request. What exactly do you wont to do ? Are you talking about the CAS package configuration file ? I don't understand what array keys you are talking about.
Xavier
—
Reply to this email directly or view it on GitHub.
	 	   		  =

Sorry mate,
In fact, those comments are rubbish. Sorry. They're actually just remaining elements from the config file that I've been using as a starting point when I developed the package. They must go.
Xavier