Bug: M-d shortcut of the multiple-cursors module

What did you expect to happen?

I've enabled multiple-cursors
If the cursor is a single word and I use the shortcut 'M-d' repeatedly, all existing words should be selected one after the other.

What actually happened?

No word is selected.
I kept the message: I-search backward: [No previous search string]

Additional details:

When I map the command evil-multiedit-match-symbol-and-next to the shortcut :leader "d" the function works as expected.

System information:

((emacs
  (version . "26.3")
  (features . "JPEG RSVG IMAGEMAGICK GLIB NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS LCMS2")
  (build . "Jun 24, 2020")
  (buildopts "--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp<EMAIL_ADDRESS><EMAIL_ADDRESS>--with-xml2 --with-gnutls --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained")
  (windowsys . batch)
  (daemonp . server-running))
 (doom
  (version . "2.0.9")
  (build . "HEAD -> develop, origin/develop, origin/HEAD 99eea1d3e 2020-06-21 13:53:58 -0400")
  (dir . "~/.doom.d/"))
 (system
  (type . darwin)
  (config . "x86_64-apple-darwin19.5.0")
  (shell . "/usr/local/bin/fish")
  (uname . "Darwin 19.5.0 Darwin Kernel Version 19.5.0: Thu Apr 30 18:25:59 PDT 2020; root:xnu-6153.121.1~7/RELEASE_X86_64 x86_64")
  (path "~/.asdf/shims" "/usr/local/opt/asdf/shims" "/usr/local/opt/asdf/bin" "~/.emacs.d/bin/" "~/git/helpscripts/" "~/.nix-profile/bin" "/usr/local/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "/opt/X11/bin" "/Library/Apple/usr/bin" "/Library/TeX/texbin" "/usr/local/Cellar/emacs-plus@26/26.3/libexec/emacs/26.3/x86_64-apple-darwin19.5.0"))
 (config
  (envfile . envvar-file)
  (elc-files . 0)
  (modules :completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline ophints (popup +defaults) vc-gutter vi-tilde-fringe workspaces :editor (evil +everywhere) file-templates fold multiple-cursors snippets :emacs dired electric undo vc :checkers syntax :tools (eval +overlay) lookup magit :lang emacs-lisp markdown org sh :config (default +bindings +smartparens))
  (packages "n/a")
  (unpin "n/a")
  (elpa "n/a")))

Remapping it to anything else worked for me.
If it can help anyone else, here is what I added in my config.el
(map! :nv
      "C-d" #'evil-multiedit-match-symbol-and-next
      "C-D" #'evil-multiedit-match-symbol-and-prev)

remapping it to Ctrl-d

I kept the message: I-search backward: [No previous search string]

I can't reproduce this in vanilla Doom. Can you check SPC h k M-d to see what is bound to it and where?

If it can help anyone else, here is what I added in my config.el

@happysalada Your snippet is incorrect. :nv only applies to the first keybind that follows it. C-D is being bound on the global keymap.
(map! :nv "C-d" #'evil-multiedit-match-symbol-and-next
      :nv "C-D" #'evil-multiedit-match-symbol-and-prev)

Thanks for the correction!
Here is what I get running your command
isearch-repeat-backward is an interactive and compiled function
defined in isearch.el.gz.

Signature
(isearch-repeat-backward &optional ARG)

I guess it's just a matter of unmapping it then, right?

working now without problems.
(doom   (dir . "~/.doom.d/")   (version . "2.0.9")   (build . "HEAD -> develop 1456108d5 2020-09-10 18:03:32 -0400")   (elc-files . 0)

here is my setup and the shortcut doesn't work for me
SYSTEM  type       darwin
        config     x86_64-apple-darwin19.5.0
        shell      /bin/zsh
        uname      Darwin 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64
        path       (/usr/local/Cellar/go/1.15.5/libexec ~/go ~/.emacs.d/bin/ ~/sandbox/v/ ~/.aliases.d/shims /usr/local/opt/llvm/bin ~/.local/bin ~/.local/bin ~/.cargo/bin ~/Library/Python/3.8/bin ~/.bin ~/go/bin ~/Downloads/google-cloud-sdk/bin ~/.cargo/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Library/TeX/texbin /usr/local/go/bin /usr/local/MacGPG2/bin /opt/X11/bin /Library/Apple/usr/bin /Applications/Wireshark.app/Contents/MacOS ~/go/src/github.com/lytics/lio/bin ~/go/bin<EMAIL_ADDRESS>EMACS   dir        ~/.emacs.d/
        version    27.1
        build      Aug 27, 2020
        buildopts  --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp<EMAIL_ADDRESS><EMAIL_ADDRESS>--with-xml2 --with-gnutls --without-dbus --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained
        features   RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 GMP
        traits     (gui server-running envvar-file)
DOOM    dir        ~/.doom.d/
        version    2.0.9
        font       #<font-spec nil nil JetBrains Mono nil nil nil nil nil 16 nil nil nil nil>
        theme      doom-snazzy
        build      grafted, HEAD -> develop, origin/develop, origin/HEAD a50db62 2020-11-29 23:25:38 -0500
        elc-files  0
        modules    (:completion (company +childframe) (ivy +fuzzy) :ui doom-dashboard hl-todo modeline nav-flash (popup +all +defaults) ophints workspaces :editor (evil +everywhere) file-templates fold (format +onsave) multiple-cursors word-wrap :emacs (dired +icons) (undo +tree) vc :term vterm :os macos tty :checkers syntax spell grammar :tools docker (eval +overlay) lookup lsp magit terraform tmux upload :lang cc data (emacs-lisp +lsp) (go +lsp) markdown :config (default +bindings +smartparens))
        packages   ((ag) (diminish) (doom-modeline) (gruvbox-theme) (jsonnet-mode) (lsp-mode) (lsp-ui) (protobuf-mode) (rainbow-identifiers) (rust-mode) (solaire-mode :disable t) (yaml-mode) (yasnippet) (fountain-mode) (almost-mono-themes) (git-link))
        unpin      (doom-themes)
        elpa       (n/a)

On macOS Alt-d is bound to kill word and Command-d to isearch-repeat-backwards after enabling the Lisp support I think.


New reference type to support batch scenarios

As mentioned by @bhs in https://github.com/opentracing/specification/issues/51#issuecomment-284185602, it would be useful to have a new reference type to identify when multiple Spans (generally in their own traces), are handled as a group (e.g. consumed as a batch from Kafka).
I would like to propose using GROUPED_BY as the reference type, rather than the batch focused names mentioned, so it is more general.
If accepted, then the 'message bus' scenario in the use cases doc https://github.com/opentracing/opentracing.io/pull/189 could be updated to include a section on this, with example:
groupSpan = tracer.start_span(operation_name="Batch")
for message in batch:
    extracted_context = tracer.extract(
        format=opentracing.TEXT_MAP_FORMAT,
        carrier=message.headers
    )
    span = tracer.start_span(operation_name=operation, follows_from=extracted_context,
                             grouped_by=groupSpan.context)
    span.set_tag('message_bus.destination', message.destination)
    ....
    span.finish()

groupSpan.finish()

In Tracers that don't support multiple references, the GROUPED_BY reference could result in the group span id being stored in a tag/annotation.

That looks interesting, but I think it only captures the "join" indirectly, because it makes assumption that all the inner spans actually make sense as independent processing tasks, as in the example of reading a batch from the queue and then processing each message. It wouldn't make sense in a scenario when items are appended to a buffer and the buffer is then flushed as a single operation.
An example of handling a join with "joinedFrom" reference:

span_refs = [ tracer.extract(.., carrier=msg.headers) for msg in messages ]
joined_span = tracer.start(
    operation_name="flush",
    refereces=[ opentracing.joined_from(s) for s in span_refs ]
)

with joined_span:
   process_buffer(messages)

If processing all messages is logically a single operation, nothing else would be done with spans. If processing still requires measurable/traceable independent work, then the above grouped_by ref can be used in addition, replacing groupSpan with joined_span.
Neither of these address the problem of modeling queueing delays (e.g. blocked on a mutex), because that scenario does not involve batching per se, it involves causality between independent traces as they happen to be serialized by an event queue (e.g. in Node.js)

It wasn't intended to represent a join - just to group the actual spans that represent the processing of the individual messages. I thought a join would be represented by a single Span having multiple FollowsFrom references (one for each extracted context from the messages).
The queuing delays could be determined based on the analysis of the groupSpans?


[issue-47] Drop element from resource tree

This commit adds a "drop_element" function to the Resource class. As the dataclass is frozen we need to return a new instance of Resource without the specified path. If the specified element has children or if it doesn't exist in the Resource a ValueError is thrown.
fixes #47

Concerning the failing CI, I think this is just an issue with the installation of poetry for mac-os. I ran all jobs for ubuntu manually and they pass, so I think this can be merged.


Email or Phone

Registration asks for either Email or Phone. Login should do the same.
Currently on hold based on outcome of https://trello.com/c/P2Bvj6C9

Spec has changed, we'll require email and collect mobile as optional.  New issue is #102


Title of project is "Automatically exported from code.google.com/p/pydot"

Hi, on github the title of this project is "Automatically exported from code.google.com/p/pydot".
This looks like this project is dead, since nobody updated this string.
What is the state of this project?
Is it still alive?

thank you.


Support Lumen 5+

Hi there
I'm trying the package in a lumen application, and it is failing because there's no Illuminate\Foundation\Application.
Does it work with Lumen?
update:

Does it work with Lumen?

After a few tweaks it does.
But to be able to use in my project I added to fork and change that return, are there any plans to support or not Lumen?

I would also like to know.
The error is triggered in ElasticquentSupport.php line 13:
public static function isLaravel5()
    {
        return version_compare(Application::VERSION, '5', '>');
    }

I replaced the line with "return true;" but am now getting another error:
FatalErrorException in ElasticquentServiceProvider.php line 18:
Call to undefined function Elasticquent\config_path()

@tobias42 that's not a problem of Elasticquent.
Lumen doesn't come with a lot of things, the helpers are one of those.
You can try to add an helper file into your project, with something like this:
if (! function_exists('config_path')) {
    /**
     * Get the configuration path.
     *
     * @param  string $path
     *
     * @return string
     */
    function config_path($path = '')
    {
        return app()->basePath().'/config'.($path ? '/'.$path : $path);
    }
}

(This was made based on the laravel framework it self)

@MLoureiro thanks, but no idea where to add that. I'm pretty new to Lumen/Laravel.
Were you able to make any progress with Lumen/Elasticquent on your end?

Yes, I'm using it in our search service.
It uses a different approach than what I am used to, but it seems to work.
I still want to dive more into the querying part, at this moment I'm using the client and making the queries with a couple of classes that we already had from the previous version

@tobias42 Did you ever manage to solve this issue?
I am facing the exact same one right now.

@RickNas I've added this file:
app/helpers.php
<?php

if (! function_exists('config_path')) {
    /**
     * Get the configuration path.
     *
     * @param  string $path
     *
     * @return string
     */
    function config_path($path = '')
    {
        return app()->basePath().'/config'.($path ? '/'.$path : $path);
    }
}

if (! function_exists('bcrypt')) {
    /**
     * Hash the given value.
     *
     * @param  string  $value
     * @param  array   $options
     *
     * @return string
     */
    function bcrypt($value, $options = [])
    {
        return app('hash')->make($value, $options);
    }
}

if (! function_exists('isProductionEnv')) {
    /**
     * Check if we are in a production environment.
     *
     * @return string
     */
    function isProductionEnv()
    {
        return app()->environment('production');
    }
}

if (! function_exists('is_json')) {
    /**
     * Check if a string is a valid JSON
     *
     * NOTE: if decoding fails because JSON_ERROR_DEPTH it will still be considered a valid JSON string
     *
     * @param mixed $string
     *
     * @return bool
     */
    function is_json($string)
    {
        if (!is_string($string)) {
            return false;
        }

        json_decode($string);

        return in_array(json_last_error(), [
            JSON_ERROR_NONE,
            JSON_ERROR_DEPTH,
        ]);
    }
}

(these methods were copied from the laravel framework it self)
and I've added "files": ["app/helpers.php"] to the autoload of composer.
The errors should be gone after this.

Thanks @MLoureiro I will give it a try.


Performing GET request to registry.ollama.ai/v2/ returns 404 page not found

What is the issue?
Background:
Kubernetes 1.31 introduced a new feature: Read-Only Volumes Based on OCI Artifacts. I believe this feature could be very useful for deploying a dedicated model alongside Ollama in Kubernetes.
The currently supported container runtime is CRI-O, which relies on containers/image for all image-related operations. It uses a GET request to the following URL to determine the appropriate schema: e.g. https://registry.ollama.ai/v2/.
I hardcoded the schema to HTTPS and used the Ollama image registry.ollama.ai/library/tinyllama:latest as the OCI image volume. After making some modifications to the modules consumed by CRI-O, I was able to get the pod and container running without any issues.
Please see the following logs:
❯ sudo crictl --timeout=200s --runtime-endpoint unix:///run/crio/crio.sock run ./container.json ./sandbox_config.json
INFO[0005] Pulling container image: registry.docker.com/ollama/ollama:latest
INFO[0005] Pulling image registry.ollama.ai/library/tinyllama:latest to be mounted to container path: /volume
7e437894449f6429799cc5ef236c4a4570a69e3769bf324bbf700045e383cae8
❯ sudo crictl --timeout=200s --runtime-endpoint unix:///run/crio/crio.sock ps
CONTAINER           IMAGE                                        CREATED             STATE               NAME                ATTEMPT             POD ID              POD
7e437894449f6       registry.docker.com/ollama/ollama:latest     8 seconds ago       Running             podsandbox-sleep    0                   4d1766fdf286b       unknown
❯ sudo crictl --timeout=200s --runtime-endpoint unix:///run/crio/crio.sock exec -it 7e437894449f6 bash
root@crictl_host:/# cd volume/
root@crictl_host:/volume# ls -l
total 622772
-rw-r--r-- 1 root root 637699456 Aug 26 08:32 model
-rw-r--r-- 1 root root        98 Aug 26 08:32 params
-rw-r--r-- 1 root root        31 Aug 26 08:32 system
-rw-r--r-- 1 root root        70 Aug 26 08:32 template
root@crictl_host:/volume#

I'm wondering if the Ollama model registry could be slightly updated to handle requests to registry.ollama.ai/v2/. This would allow certain container runtimes to seamlessly integrate Ollama's OCI models without any issues.
OS
Linux
GPU
Nvidia
CPU
Intel
Ollama version
0.3.6

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."

By the way, I also tried pushing the image to Harbor and Nexus, and they both handle the %s://%s/v2/ format correctly.


Dynamic params callback doc doesn't match code

The doc linked in the 1.0.0-alpha1 release notes give the wrong name for the callback. Your code uses uiOnParamsChanged but the doc gives uiOnParamsUpdated as the name.

thanks; I will fix the docs


WP filters return object

Issue
Under some configuration, adding a filter like the one below:
add_filter( 'timber/twig', function( \Twig_Environment $twig ) {
    $twig->addFilter( new Twig_SimpleFilter( 'bar', function ( $value ) { return "foo"; } ) );
} );

Fails with Call to a member function addFunction() on null
Solution
WordPress filters return an object otherwise NULL is assumed what would replace the $twig object.
Impact
Fix documentation and respect WP best practices.

Coverage remained the same at 94.184% when pulling b1b8d86867bbbbe553df6c681d60fb1366c329d9 on drzraf:patch-1 into 8d298aaa88cbab56b44f14968c5da781172f8e84 on timber:master.

Coverage remained the same at 94.184% when pulling b1b8d86867bbbbe553df6c681d60fb1366c329d9 on drzraf:patch-1 into 8d298aaa88cbab56b44f14968c5da781172f8e84 on timber:master.

Indeed, thank you @drzraf !


Is the code outaded ?

Hi!!!!
I tried to learn how to go from JS to TypeScript using your tutorial on Dev.to, but it seems this bot is not registering commands anymore. Or I'm doing something wrong, but I can't figure out what, as I literally tried the code from this repo.

NEVERMIND IM SORRY IVE JUST LEARNED ABOUT THE GUILDCREATE EVENT IM TRULY SORRY
And if anyone comes across this and is wondering, the guildCreate event is triggered when the bot joins a server............ (sorry again im so sad i cant even delete the issue by myself 🥲

Don't be sorry. Relax man, it's all good. Maybe I should create a better documentation for this project. But right now I'm focused on another project. What do you think about creating a new issue to create new documentation focused on helping people who have never created a Discord bot before?


[Bug Report] Slack link is expired

Describe the bug
the slack link is expired in this streamlit deployment https://arena-ch1-transformers.streamlit.app/[1.1]_Transformer_from_Scratch

I think the same as the  Slack link in the README says "This link is no longer active."

Seems to work now?


refactor/remove-org.reflections.reflections-dependency

Utilized JPA's Metamodel API to retrieve all managed entity classes.
Prefixed instance variables and methods with this. to enhance code clarity.

If the primary goal of that class is to roll back the database after each test, you can use the io.quarkus.test.TestTransaction annotation instead [1].
Ideally, this annotation should be applied to tests that modify the database. However, I applied it to entire classes, leaving the method-level annotation as a future optimization, since most of the methods change the database anyway.
The issue I'm facing now is that some tests share a state instead of being able to run independently (see "TODO" in the updated code).

[1] https://quarkus.io/guides/getting-started-testing#tests-and-transactions


Dufault protocol for reference

As we export multiple protocol for one service.
if we do not config protocol for reference, Is it a good choice to refer the service which use default protocol rather than refer all ?
what do you guys think about it ?

You can give us a XML config file, It will  be clear.


Add in Roles for Partners

Summary
We currently don't have any way for a bank to differentiate the role of their partner users. We need an admin role like banks currently have so we can differentiate between admin and user.  Additionally, we would like to have the ability to set a partner user as deactivated.
On the bank side we manage this with some boolean fields on the user such as organization_admin rather than using pundit or similar roles gem as we don't foresee a need for further roles. This is probably the pattern we'd prefer to continue but we're open to a discussion on this.
Things to Consider
This will unblock #2474
Criteria for Completion

[ ] Two roles now exist on partner users admin, and user.
[ ] Partner users can be deactivated
[ ] Newly created partner users from the bank side are admins
[ ] Newly created partner users from the partner side are users

@seanmarcia is this the same as https://github.com/rubyforgood/human-essentials/issues/2475?

This definitely is. I'll close it now -- looks like #2475  wasn't added to the project board. Will add it there and also look through the other issues and make sure they are all on the project board so duplicate issues aren't added!


Windows 8 and 10 (color pointers) cursors are drawn inverted (black) in wfreerdp

Windows 8, Windows 10 and custom pointers are not drawn correctly in wfreerdp. These cursors have the transparent background correct, but the pointer color is drawn black.
The problem is 32bpp color cursors are not rendered correctly in wf_Pointer_New. The most obvious issue is the _aligned_malloc of the xor data uses GetBitsPerPixel() instead of GetBytesPerPixel() to calculate scanline length which allocates a buffer 8x too big, so the flip of the scanlines in freerdp_image_copy_from_pointer_data() creates an xor-image that does not align with the monochrome and-mask data.
Also, not using PIXEL_FORMAT_BGRX32 for 32bpp in freerdp_image_copy_from_pointer_data() may cause problems with the xorPixel checks later for transparent or inverted pixels.

It looks like the other problem is CreateBitmap isn't creating bitmaps for the cursor that are compatible with the display. CreateDIBSection does work

@perkerk Is this fixed with #4552?

@akallabeth Yes that was the fix. I'll go ahead and close this. Is there any protocol for closing issues (other than just closing them)?

Just reference the issue in the commit message or pull request description


Drawer Lock Mode - Cannot disable Drawer

I have tried every example and cannot get this to work - pulling my hair out with this.
This is my latest setup
import { createAppContainer, createDrawerNavigator } from 'react-navigation';
import App from '../components/App';
import HomeView from '../components/HomeView';
import CheckIn from '../components/CheckIn';
import LoginView from '../components/LoginView';
import LrmDocs from '../components/LrmDocs';
import Rota from '../components/Rota';
import SideMenu from '../components/util/SideMenu';
const AuthStack = createDrawerNavigator({
AppContainer: App,
LoginViewContainer:LoginView,
});
const RootStack = createDrawerNavigator({
Login:AuthStack,
HomeViewContainer: HomeView,
RotaContainer: Rota,
CheckInContainer:CheckIn,
LrmDocsContainer: LrmDocs,
},
{
drawerPosition: 'right',
contentComponent: SideMenu,
cardStyle: { backgroundColor: '#FFFFFF'},
}
);
AuthStack.navigationOptions = () => {
return { drawerLockMode: 'locked-closed' };
};
export default createAppContainer(createDrawerNavigator(
{
Root: RootStack,
}));
// export default Navigation;
but the simulator still drags out the menu in the loginview
(the logincontainer is nested within the app container)

delete

Have also just tried below - still no luck...
import { createAppContainer, createDrawerNavigator, createStackNavigator } from 'react-navigation';
import App from '../components/App';
import HomeView from '../components/HomeView';
import CheckIn from '../components/CheckIn';
import LoginView from '../components/LoginView';
import LrmDocs from '../components/LrmDocs';
import Rota from '../components/Rota';
import SideMenu from '../components/util/SideMenu';
const AuthStack = createStackNavigator({
AppContainer: App,
LoginViewContainer:LoginView,
});
const RootStack = createDrawerNavigator({
Login:AuthStack,
HomeViewContainer: HomeView,
RotaContainer: Rota,
CheckInContainer:CheckIn,
LrmDocsContainer: LrmDocs,
},
{
drawerPosition: 'right',
contentComponent: SideMenu,
cardStyle: { backgroundColor: '#FFFFFF'},
}
);
AuthStack.navigationOptions = ({ navigation }) => {
let drawerLockMode = 'unlocked';
if (navigation.state.index > 0) {
drawerLockMode = 'locked-closed';
}
return {
drawerLockMode,
};
};
export default createAppContainer(createDrawerNavigator({Root: RootStack, Auth:AuthStack}));
// export default Navigation;
I am using latest version of react native, latst xcode and latest React Nav as of today.
Please help - driving me insane - been trying to get it to work in various guises for a day now.

dependecies as follows:

Was this solved? Because I'm having the same issue

Any update on this?


Some questions about the input observation

Hi, I have a question, why do VIMA need both frontal and top-down views for the observation space，Can't just only give the top?

Hi there. For certain tasks only supplying top-down view might be suboptimal, such as Follow Order where one object is stacked on another. Additionally, due to legacy reason, we used to have tasks where frontal view is necessary to provide enough information for reasoning.


edb.test: Make it possible to specify the output format explicitly

The new --output-format option allows choosing from the following:

'auto' -- auto-detect the output format (current behavior, default)
'simple' -- simple terse output
'stacked' -- group output by the test suite
'verbose' -- echo each test result on a separate line.

We already have the -v flag that clashes (or just the same?) with the proposed --output-format=verbose.

You will have extra verbosity around test collection and bootstrap, test progress will use the MultilineRenderer.

But MultilineRenderer can break with extra verbosity, it relies on tests being run quiet.

Just raise an error if verbose mode is on and MultilineRenderer is selected.

Alright, I added a check.


foxy-customer-portal: Show prompt to update password if authenticating with temporary password

If you log in to the customer portal using a temporary password, we should prompt the user to update their password straight away. The temporary passwords are designed for single-use access, so once they use it to log in, their next step should be to set a new password.
This may also necessitate an update to the API to identify in the login response for whether a password reset prompt should be required. The foxy-sign-in-form is built to handle a forced new password if a login response of { "code": "new_password_required" } is returned.

A successful log in response will now also include a force_password_reset variable, which if true means that the customer should be forced to set a new password for their account (usually because they've used a temporary password to log in).
If we detect force_password_reset=true in the response details, we should push the customer directly to their profile section to set a new password, or alternatively show a new UI that is just for entering a new password, before they can do anything else.


Basic Project Setup

TEAL Blackbox in Graviton
This PR takes over from the now defunct PySDK PR #298
TLDR; Dry Run a Sequence of Inputs on Apps/LogicSigs, View Stats, and make Assertions on Behavior
Please refer to the TEAL Blackbox HowTo / README for full details
Testing
make integration-test

Simulating Github Actions Locally (on a Mac)
make mac-gh-simulate

Migrate Sandbox Code from PySDK and Run All Tests
Testing is cribbing off of PyTeal's "Run blackbox tests in CI" PR

First successful docker build

TIME: 35 minutes
Compare with 35 minutes for PyTeal's first uncached build

First cached docker build

TIME: 4 minutes
Compare with 5 minutes for a cached build on PyTeal

Continuation of the most important thread from the defunct PySDK PR
@jasonpaulos  made 4 important comments, and this is how I previously responded. Below, I am updating my responses.

@tzaffi Thanks for tying together a number of threads to bring graviton to life. ☕
For review completeness: I'm on-board to try the proposed versioning scheme though I have lingering concerns. Since we can more freely make changes here, let's try it out and assess over time.
Rationale:

It's possible unicode characters interact poorly with other systems (e.g. build systems) and/or are difficult to parse when not presented as emojis (e.g. git tag --list vs git --no-pager tag --list).
The convention does not support signaling when a breaking change is made.  The lack of signaling makes it harder to know when it's safe to upgrade.

We should keep the new versioning scheme at least through April 1, 2022


Bluetooth: l2cap_br: Support Multi-Command Packet

Improve L2CAP BR to handle more than one signalling command in one receiving L2CAP packet.

Even if the spec allows this, have you actually seen any devices using it in practice?

Even if the spec allows this, have you actually seen any devices using it in practice?

There is a ICS item L2CAP 2/1 for this feautre.

Even if the spec allows this, have you actually seen any devices using it in practice?

There is a ICS item L2CAP 2/1 for this feautre.

Is it mandatory or optional?

Btw, I'm not necessarily opposed to this, but I think you can do it cleaner (more readable) by factoring out the handling of one command to a dedicated function and then do the fetching of one command from the buffer in a separate function that calls the other one.

Even if the spec allows this, have you actually seen any devices using it in practice?

There is a ICS item L2CAP 2/1 for this feautre.

Is it mandatory or optional?

L2CAP 2/1: Mandatory IF L2CAP 0/1 "BR/EDR" OR L2CAP 0/3 "BR/EDR/LE", otherwise Excluded.


chore: Check typescript compiles in CI

Adds our build script to our EVG's run-checks task.

✅  https://spruce.mongodb.com/version/5f22da0b2fbabe6d7b8af2f2/tasks ✅
It passes I swear 🤞


docs: point to sample in custom metadata guide

docs: point to sample in custom metadata guide
chore: update todo

Current dependencies on/for this PR:

main

PR #335   👈

This stack of pull requests is managed by Graphite.


[ASK] Can not get Notifications after Add SHA1

I am migrating cordova project to Flutter project. The package name for those two project is identical, There is already firebase project used by old (cordova) project and it is working fine. I try to add new sha1 from new project (Flutter) to existing firebase project and update  the google-service.json in my Flutter project, but i can not get notifications.
Am i doing wrong here?

i have solved this, it because we have to use flutter clean to refresh the google-service.json file


import png from './image.png';  png is object,is not a url(string)

file-loader version:1.0.0
//webpack.config.js
{
                test:/\.(png|jpg|gif)$/,
                use:[{loader:"file-loader"}]
            },

//index.js
import resultPng from './image.png';
the resultPng is a object =>{"default":"ec7912772accb93cf96e84407a5459d4.jpg"}.is not a url string.

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template and reopen, or open a new issue.
Update your deps to latest


python3Packages.gcovr: 4.1 -> 4.2

Motivation for this change
noticed it was out of date in @r-ryantm logs
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)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] 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.

Notify maintainers
cc @
[2 built, 3 copied (6.0 MiB), 1.5 MiB DL]
https://github.com/NixOS/nixpkgs/pull/75092
3 package were built:
gcovr python27Packages.gcovr python38Packages.gcovr

@GrahamcOfBorg build gcovr python27Packages.gcovr python38Packages.gcovr


Invalid accelerator token: insert

Seeing these on Windows 8, can this key be supported?

Hi there, I see another similar warning since v0.25.3:
[7800:0528/154024:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command

Is this somehow related? @zcbenz


Feature/fix from polytope

Fixed from polytope functions in bounding box and frame. Added to_xarray for frame and boudning box.
Added initial version of path.

Welcome to Codecov :tada:
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


[Sample Onboard Request] meetings-live-code-interview

Owner:
Name - Prithvi / GitHub user name - Prithvi-MSFT
ID:
meetings-live-code-interview
Title:
meetings-live-code-interview
Description:
This sample demos live coding in a teams meeting stage using live share SDK. The tab is loaded as side panel which contains various coding questions.
Tags:
"JS", "Live Share SDK"
Time:
5 mins to run
Configuration:
Ready
Thumbnail:
https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/meetings-live-code-interview/nodejs/assets/thumbnail.png
(Optional) Demo GIF:
https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/meetings-live-code-interview/nodejs/assets/sampleDemo.gif
(Source code in this Repo) Source Code PR:
Code in another PR
(Source code NOT in this Repo) Sample URL:
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/meetings-live-code-interview/nodejs
(Optional) Minimum Teams Toolkit Version:
Teams Toolkit version requirement to run the sample - minimum version
(Optional) Maximum Teams Toolkit Version:
Teams Toolkit version requirement to run the sample - maximum version

Hi @Prithvi-MSFT, after a quick test, the sample doesn't work in my local machine.
Repro step, download the app, using Teams ToolKit, press F5, in the pop-up browser, click 'install the app'.
Screen shot, in the meeting, cannot add the app, the config page is failed

@JerryYangKai  - Thanks for reporting the issue. Will check on the sample issue

Hi @JerryYangKai  - The issue is fixed and we have pushed the changes. Could you please verify once
https://github.com/OfficeDev/Microsoft-Teams-Samples/pull/1109

Hi @Prithvi-MSFT, thanks for your quick reply.
I afraid I cannot run it in my local environment, I pull the latest changes then when I press F5, the frontend and backend terminal won't work, it will auto close after a few second. The screenshot is in the following:

@summzhan Sample test passed, please help review the doc part,

README looks good to me.

Onboarding PR: https://github.com/OfficeDev/TeamsFx-Samples/pull/1128

@tecton  - By when will it be available in samples list ?

@tecton - By when will it be available in samples list ?

Hi @Prithvi-MSFT, the sample is available in daily build version now. And it's expected to be released in next TTK prerelease version (next month).

Hello @Prithvi-MSFT !
The preview version of teams toolkit has been released, after testing part of sample readme cannot render in VS Code, I created an issue and you can check it.
https://github.com/OfficeDev/Microsoft-Teams-Samples/issues/1202

@JerryYangKai  @Prithvi-MSFT , What's the status of this sample? it's seems stucked by weeks.

@JerryYangKai  - Could you please guide me on the repro steps so I can create and test the issue ?

@JerryYangKai - Could you please guide me on the repro steps so I can create and test the issue?

You can check the issue I created above, it is about the readme rendering, not the code running issue.

@JerryYangKai - In issue its mentioned its in internal preview. Could you please guide how can I test this ? As the readme seem to look correct in repository

@JerryYangKai - In issue its mentioned its in internal preview. Could you please guide how can I test this ? As the readme seem to look correct in repository

Now this version is released as preview version and can be repro.
Step 1    switch teams toolkit to pre release 5.7.0

Step 2   find the sample in sample gallery

Step 3   click the sample to see the readme, and the issue will come out

Hi @JerryYangKai ,
I followed the steps mentioned and installed the latest pre-released version of teams toolkit and the images were loading correctly for me.


about permute

Hi,
thanks for your excellent work.
in file https://github.com/weify627/4D-Rotor-Gaussians/blob/main/nerfstudio/models/splatfacto.py line:1231
out = {"rgb": self.render['render'].permute(0,3,2,1), 'depth':self.render["depth"].permute(0,3,2,1), "accumulation": self.render['alpha'].permute(0,3,2,1), "background": background}
when i use my own data that ascpect ratio is not 1:1, for example 480*270. after permute, shape(3,3,270,480) converts to shape(3,480,270,3), which is different to grount truth and make coredump in get_loss().

hello, I find that this problem stems from the code in "nerfstudio/data/datasets/bas_dataset.py: def get_numpy_image()
line: 85
"
numpy will read image and store the image in the sort [HWC], but the renderer will render the image and store it in sort [WHC]. So, when width does not equal to height, errors would occur.
You can solve this problem bu doing this change in line: 85:
image = np.array(pil_image, dtype="uint.8").transpose([1, 0, 2]


Negative g-function values

Hi,
I have the issue that, under some circumstances, the g-function values are getting negative. Is this a model-based issue which should be captured, or is this issue solvable?
Here an example:
import numpy as np
from pygfunction.boreholes import rectangle_field
from pygfunction.gfunction import gFunction
from pygfunction.load_aggregation import ClaessonJaved
def main():
    field = rectangle_field(10,7,2,2,150,2,0.2)
    time = ClaessonJaved(3600, 3600*8760*20).get_times_for_simulation()
    g_func = gFunction(field, 1/5000/1000, time).gFunc
    assert np.all(g_func > 0)
# Main function
if __name__ == '__main__':
    main()

Kind regards

This seems to stem from a numerical issue related to your "large" radius r_b=0.2. In #231, we introduced a threshold time for the evaluation of g-functions to avoid numerical errors (linear_threshold = r_b_max**2 / (25 * alpha)). This is not sufficient in your case.
I was able to evaluate your g-function by increasing the threshold:
import numpy as np
from pygfunction.boreholes import rectangle_field
from pygfunction.gfunction import gFunction
from pygfunction.load_aggregation import ClaessonJaved
def main():
    field = rectangle_field(10,7,2,2,150,2,0.2)
    time = ClaessonJaved(3600, 3600*8760*20).get_times_for_simulation()
    options = {'linear_threshold': 24 * 3600.}
    g_func = gFunction(field, 1/5000/1000, time, options=options).gFunc
    assert np.all(g_func > 0)
# Main function
if __name__ == '__main__':
    main()

This issue could be resolved by increasing the default threshold. There is also the possibilty that #44 (which is overdue) fixes the issue for all cases.

Thanks, that works perfectly.

Hi @MassimoCimmino
When implementing the fix above in GHEtool, I have a question.
As far as I understood it correctly, when it was implemented in #231, the linear threshold does interpolate all the gfunction values for times below it, leaving the other gfunction values untouched.
Now, when I run the code below, I see that all gfunctions are different, also the ones above the threshold. Is this correct behaviour?
from pygfunction.boreholes import rectangle_field
from pygfunction.gfunction import gFunction
from pygfunction.load_aggregation import ClaessonJaved
import matplotlib.pyplot as plt

def main():
    field = rectangle_field(10,7,2,2,150,2,0.2)
    time = ClaessonJaved(3600, 3600*8760*20).get_times_for_simulation()
    g_func_without_linear_threshold = gFunction(field, 1/5000/1000, time).gFunc
    options = {'linear_threshold': 24 * 3600.}
    g_func_with_linear_threshold = gFunction(field, 1 / 5000 / 1000, time, options=options).gFunc

    plt.plot(time, g_func_with_linear_threshold - g_func_without_linear_threshold, label="Difference")
    plt.xlabel('Time in seconds')
    plt.ylabel('Gfunction')
    plt.legend()
    plt.show()
# Main function
if __name__ == '__main__':
    main()

In you example above, the g-function without the threshold returns negative values, which causes the differences (e.g. r_b=0.75 shows negligible difference above the threshold). pygfunction is not presently well suited for "geothermal pile" geometries that have a large borehole radius. To remedy the issue, we need to implement the cylindrical correction in #44.

Even with the cylindrical correction (if I take the code from #44), there still appears to be negative values.
Was there something wrong with the implementation below?
Note: in contrast with #44, I changed the "y0(p * 2)" to "y0(p * u)" for I think this was a typo.
from scipy.special import j0, j1, y0, y1, erf, exp1
from scipy.integrate import quad
import numpy as np
from numpy import pi
def _shortTermCorrection(time, gFunc, r_b, alpha):

    def _CHS(u, Fo, p):
        CHS_integrand = 1. / (u ** 2 * pi ** 2) * (np.exp(-u ** 2 * Fo) - 1.0) / (j1(u) ** 2 + y1(u) ** 2) * (
                j0(p * u) * y1(u) - j1(u) * y0(p * u))
        return CHS_integrand

    def _ILS(t, alpha, dis):
        ILS = exp1(dis ** 2 / (4 * alpha * t))
        return ILS

    for i in range(len(time)):
        ILS = _ILS(time[i], alpha, r_b)
        CHS, err = quad(_CHS, 1e-12, 100., args=(alpha * time[i] / r_b ** 2, 1.))

        gFunc[i] = gFunc[i] + 2 * pi * CHS - 0.5 * ILS

    return gFunc

from pygfunction.boreholes import rectangle_field
from pygfunction.gfunction import gFunction
from pygfunction.load_aggregation import ClaessonJaved
import matplotlib.pyplot as plt

def main():
    field = rectangle_field(10,7,2,2,150,2,0.2)
    time = ClaessonJaved(3600, 3600*8760*20).get_times_for_simulation()
    gFunc = gFunction(field, 1/5000/1000, time).gFunc
    gFunc = _shortTermCorrection(time, gFunc, field[0].r_b, 1/5000/1000)
    plt.plot(time, gFunc, label="gFunc")
    plt.xlabel('Time in seconds')
    plt.ylabel('Gfunction')
    plt.legend()
    plt.show()
# Main function
if __name__ == '__main__':
    main()

I am sorry. I should have provided a more in depth explanation.
The cause of the negative values is the badly conditioned system of equations due to the near-zero segment-to-segment thermal response factors. When time is small enough or r_b is large enough, heat does not have time to travel from the line source (at the borehole axis) to the borehole wall, and the finite line source solution is close to zero (it may also actually be negative due to numerical error).
For the purpose of solving the bug, the correction cannot be applied after the calculation of the g-function. The diagonal terms of the thermal response factor matrix (the impact of the segments on themselves) need to be corrected before solving the system.
I remember this is why I had postponed issue #44 to be addressed after v2.0 and the refactored g-function interface, since it has non-trivial implications on the gFunction class.
I quickly implemented a fix for the 'equivalent' solver on the branch issue44b_shortTermCorrection (notice the 'b' in the branch name). You can test it out with the following code (adapted from yours):
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt

import pygfunction as gt

def main():
    # -------------------------------------------------------------------------
    # Simulation parameters
    # -------------------------------------------------------------------------

    # Borehole dimensions
    D = 2.0             # Borehole buried depth (m)
    H = 150.0           # Borehole length (m)
    r_b = 0.2           # Borehole radius (m)
    B = 2.0             # Borehole spacing (m)

    # Field of 10x7 (n=70) boreholes
    N_1 = 10
    N_2 = 7
    field = gt.boreholes.rectangle_field(N_1, N_2, B, B, H, D, r_b)

    # Thermal properties
    alpha = 2e-7        # Ground thermal diffusivity (m2/s)

    options_noCorrection = {
        'cylindrical_correction': False,
        'linear_threshold': 24 * 3600.}
    options_withCorrection = {
        'cylindrical_correction': True,
        'linear_threshold': 0.}

    # Geometrically expanding time vector.
    ts = H**2/(9.*alpha)        # Bore field characteristic time
    # dt = 3600.                  # Time step
    # tmax = ts * np.exp(5)       # Maximum time
    # Nt = 50                     # Number of time steps
    # time = gt.utilities.time_geometric(dt, tmax, Nt)
    time = gt.load_aggregation.ClaessonJaved(3600, 3600*8760*20).get_times_for_simulation()
    lntts = np.log(time/ts)

    # -------------------------------------------------------------------------
    # Evaluate g-functions
    # -------------------------------------------------------------------------
    gfunc_noCorrection = gt.gfunction.gFunction(
        field, alpha, time=time, options=options_noCorrection,
        method='equivalent')
    gfunc_withCorrection = gt.gfunction.gFunction(
        field, alpha, time=time, options=options_withCorrection,
        method='equivalent')

    # Draw g-function
    ax = gfunc_noCorrection.visualize_g_function().axes[0]
    ax.plot(lntts, gfunc_withCorrection.gFunc)
    ax.legend(['Linear threshold',
               'Cylindrical correction',])
    ax.set_title(f'Field of {len(field)} boreholes')
    plt.tight_layout()

    # Draw difference

    # Configure figure and axes
    fig = gt.utilities._initialize_figure()
    ax = fig.add_subplot(111)
    # Axis labels
    ax.set_xlabel(r'ln(t/t_s)')
    ax.set_ylabel(r'difference')
    gt.utilities._format_axes(ax)
    # Plot difference
    ax.plot(lntts, gfunc_withCorrection.gFunc - gfunc_noCorrection.gFunc)
    ax.set_title('Difference between g-functions')
    # Adjust to plot window
    plt.tight_layout()

# Main function
if __name__ == '__main__':
    main()


Follow account password policy on make password

Use account password policy on #mkpasswd.
Guard errors on create account in the password policy attached account.

Changes Unknown when pulling 1963309d0319f92201f43b07f543858fbd5b049c on rosylilly:follow-password-policy into ** on winebarrel:v0.2.4**.

Thanks!


Update dependencies to go-github v40

@Parker77 - could you please review this when you have a moment?


feat(chats): Allow image copy

What this PR does 📖

Allows copying image in chats when right clicking on it

Which issue(s) this PR fixes 🔨

Resolve #590

Special notes for reviewers 🗒
Browsers (or at least safari) dont seem to allow writing to the clipboard and there is no permission request for that afaik. Because of this copying anything other than text seems to not be possible.

seems it only supports png writes to clipboard. so i changed it to always write as png

same here


feat(dev): deploy operator to single namespace

Add make target (un)deploy-operator-local to bind the operator to a single namespace.
OPERATOR_NAMESPACE=bookinfo make deploy-operator-local
Related #214

This generally works, but a few problems:

only 'local' Operators can be installed on a single cluster, not combined with a Custer wide
the deploy/undeploy install/uninstall the CRD as well so technically 1 can mess up for the others...

Did you try to use it with ike install-operator -n local_ns?

Nope, not yet. Was thinking of maybe adding a --local flag to the install-operator ?

Should we think about having a e2e test for it (issue here is that we have global operator installed beforehand)?

I was thinking more we change the e2e to use this on PR runs

Why is your build failing?

Because you've hardcoded the whole Deployment in a test ;)

Why is your build failing?

Because you've hardcoded the whole Deployment in a test ;)

It's a GOLDEN DEPLOYMENT


Fix: Handle mixed-type values in compileInsert

This pull request addresses a potential issue that could arise when using Model::query()->create() and the first element in the attributes list is an array (representing a JSON column) while subsequent elements are not arrays.
The original code might have encountered type hinting issues due to this structure.
This change ensures that the compileInsert method in Grammar.php correctly handles such scenarios. Additionally, new unit tests in DatabaseQueryGrammarTest.php verify this behavior for various insert conditions.
Benefits:

Improves robustness of data insertion with mixed value structures
Enhances code maintainability with clearer handling of edge cases

Notes:
Leverages array_is_list function (available in PHP 8.1+) for improved type checking
Please review and provide feedback. Thanks!

I will take a look at unsuccessful checks!

Sorry, can you provide very simple recreation steps for how to trigger the error?

I have added the reproduction steps in the description of the pull request, i included four examples.
Let me know if it is clear! Thanks!


Make wpilog and live data have the same prefix

Currently, if you setup a template to use WpiLib log data, keys are prefixed with a "NT:" ("NT:/FMSInfo/MatchNumber").  But if you connect to the robot via IP or a virtual robot with simulation using NetworkTables, the keys are root based ("/FMSInfo/MatchNumber").
Is there a way you can make this universal so that we can share a dashboard between looking at live robot data and logs and not have to change all the key names?

I'd rather add the NT prefix to the live view.

I put together a potential fix for this along the lines of @TheTripleV's suggestion. When in the default "NetworkTables 4" mode, the "NT:" prefix is added to all of the fields. I also set up the sidebar to identify when only one table is available in the data, then use it as the root (so it appears the same as before). This approach should mean that the user never needs to think about this and it will "just work."
@scarmain @TheTripleV @17acres Does this seem like a good solution to the problem? You can download the CI artifacts here if you want to try it out (once the builds finish).

This seems like a better solution, works for me.


Uncaught TypeError: Cannot read property '0' of undefined

[Enter steps to reproduce below:]

Open "Edit Projects"
Rename project and its title

Atom Version: 1.0.11
System: Mac OS X 10.10.5
Thrown From: project-manager package, v2.5.0
Stack Trace
Uncaught TypeError: Cannot read property '0' of undefined
At /Users/cyrilp/.atom/packages/project-manager/lib/project.coffee:59

TypeError: Cannot read property '0' of undefined
  at Project.module.exports.Project.isCurrent (/Users/cyrilp/.atom/packages/project-manager/lib/project.coffee:59:32)
  at Project.isCurrent (/Users/cyrilp/.atom/packages/project-manager/lib/project.coffee:1:1)
  at /Users/cyrilp/.atom/packages/project-manager/lib/project.coffee:54:15
  at /Users/cyrilp/.atom/packages/project-manager/lib/db.coffee:43:7
  at /Users/cyrilp/.atom/packages/project-manager/lib/db.coffee:123:9
  at FSReqWrap.cb [as oncomplete] (fs.js:209:19)

Commands
 15x -0:43.8.0 core:move-up (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:41.3.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:21.5.0 project-manager:edit-projects (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  2x -0:07.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:06.7.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:06.3.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
  2x -0:05.9.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -0:05.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:02.3.0 core:save (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "themes": [
      "one-dark-ui",
      "solarized-dark-syntax"
    ],
    "projectHome": "/Users/cyrilp/dev",
    "disabledPackages": [
      "racer",
      "build-tools"
    ]
  },
  "project-manager": {}
}

Installed Packages
# User
atomatigit, v1.5.4
autocomplete-python, v0.5.3
build, v0.45.0
language-diff, v0.3.1
language-rust, v0.4.4
linter, v1.5.1
linter-clang, v3.2.1
linter-rust, v0.2.9
minimap, v4.13.3
project-manager, v2.5.0
remote-edit, v1.8.18

# Dev
No dev packages

Have you manually edited the projects.cson and in that case what did you edit? Was it the current project?

Yes I edited projects.cson manually. I was reordering some of the project paths, possibly the project was open. I tried doing the same now with another project, but couldn't trigger the error.

Ok, then some happened during the edit, but good that it works now.

Probably a good idea to wrap the code that's causing the error in a check to make sure the index in the array is valid though?

Happened again just now. What I did was split one project which had several project folders into individual projects, and then I moved one project up to another position in the file. Saving projects.cson then caused the error. Subsequent saves also triggered the error.
I did not have any of the projects that I modified open at the time.

I would like to add that this error also occurs every time I restore my settings (using https://github.com/Hackafe/atom-sync-settings). That package also overwrite the projects.cson, so I assume it's related.
The error occurs independent of what project is open, and didn't use to happen until a few releases ago.

I also get this every time that I edit the projects.cson


How to solve Authentication process canceled error?

Now I try to setup python-social-app
In facebook login after the username/password redirect to error page I don't know why this happen...
In my setting I have 'social.backends.facebook.FacebookOAuth2' and I correctly set SOCIAL_AUTH_FACEBOOK_KEY and Secret so Really where to look the error.?
The thing is i didn't cancel anything ...!
Request Method: GET
Request URL: http://website.com:8000/complete/facebook/?redirect_state=IuQDEiyX2bbS8Uhk7MR3hpRFLNZlW2Y5&code=AQDH5kqBibfy9bi21M9tTieujRAqvJVYdAb2UPFvfH6DVXoCWrrtamRA99Ze5-6cC6qHPiNq-a3XbGh2Gg4pbdFfM4OTpCEpWkPID6SZrHfAoEan8Q68cV17LDgsryX_M45QoXd0knpbE0x-QwAPwdoFmKQGHLw7xomCHeN5pCtrWhtoYQIrsFE1UQZZaxt4qtLzAmfmCRjDO7Et_S75fngLiomM0PfevTChLbHJHMYaqy6DBkgGZqZK-bXrqLaNFnBEoZ3M956DwCg4ZtTnvxulR4sXH9ZV3IoxVhL0JxMVsGnT2H_0wdKujIDPKcdPKZc&state=IuQDEiyX2bbS8Uhk7MR3hpRFLNZlW2Y5

Django Version: 1.8.3
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'frontend',
 'social.apps.django_app.default')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware')

Traceback:
File "/Users/simon/Freelancer/env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/simon/Freelancer/env/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  57.         response = view_func(request, *args, **kwargs)
File "/Users/simon/Freelancer/env/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
  58.         return view_func(*args, **kwargs)
File "/Users/simon/Freelancer/env/lib/python2.7/site-packages/social/apps/django_app/utils.py" in wrapper
  51.             return func(request, backend, *args, **kwargs)
File "/Users/simon/Freelancer/env/lib/python2.7/site-packages/social/apps/django_app/views.py" in complete
  28.                        redirect_name=REDIRECT_FIELD_NAME, *args, **kwargs)
File "/Users/simon/Freelancer/env/lib/python2.7/site-packages/social/actions.py" in do_complete
  43.         user = backend.complete(user=user, *args, **kwargs)
File "/Users/simon/Freelancer/env/lib/python2.7/site-packages/social/backends/base.py" in complete
  41.         return self.auth_complete(*args, **kwargs)
File "/Users/simon/Freelancer/env/lib/python2.7/site-packages/social/utils.py" in wrapper
  232.                 raise AuthCanceled(args[0])

Exception Type: AuthCanceled at /complete/facebook/
Exception Value: Authentication process canceled

Asked similer question in StackOverFlow too How to solve Authentication process canceled error?

AuthCancelled can also occur when one of pipelines raises an exception.
Paste your full python-social-auth configuration from settings.py (without api keys of course).

@rajasimon  did you solve this? i am having the same issue

Well. i saw this stackoverflowquestion and it worked for me too strange i had the right ip of the server but for some reason it did not work when i leave the server ip white list empty it works great

Has this issue been solved? I am having the same issue

I finally just solved this. I am not 100% sure what I did to fix but these were some of the things I did.

I deleted the faebook app and created a new one.
When I was putting the new SOCIAL_AUTH_FACEBOOK_SECRET in settings. I noticed the old one had a the string "reset" at the end of the string. This is what the old secret looked like: 'd9e316e4c67d5a45198cf58ecb0efc10Reset'
The new one just has the String. I am thinking that there may be an issue with the facebook website the way it was copied in the first place? I obviously never added the Reset string there.
For the redirect URLs I added /complete/facebook/ since that's the URL that the framework redirects you to before the user then gets redirected to SOCIAL_AUTH_LOGIN_REDIRECT_URL

I am guessing it was either 2 or 3 that fixed. Probably the 3rd one.

Yep changing the redirect URL solved it for me too.

I think it would be safe to close the issue now.

Awesome, good to get to the bottom of it. It took me about too long to figure out!

I get this error in totally valid case when a user decides to cancel authentication process.
/complete/vk-oauth2/?redirect_state=xxx&error=access_denied&error_reason=user_denied&error_description=User+denied+your+request&state=xxx

I'm getting this error on Facebook when user cancel the authentication process:
/oauth/complete/facebook/?redirect_state=xxxxxx&error=access_denied&error_code=200&error_description=Permissions+error&error_reason=user_denied&state=xxxxxxx

When the user cancels the auth, the project needs to properly deal with the exception and render/return/etc a proper notification since PSA only deals with the flow, doesn't do rendering or integrates with the project styles, when using Django, there's a middleware to ease the process.
It's quite common for the APIs to drop errors when not configured properly, on many cases the errors are treated as AuthCanceled, on some cases probably wrongly.

The link @omab posted does not work anymore. I think this is where it should point to:
Exceptions middleware

Detected in 2015, This bug still exists in version available on April, 2018. v 0.3.6

/oauth/complete/facebook/?redirect_state=xxxxxx&error=access_denied&error_code=200&error_description=Permissions+error&error_reason=user_denied&state=xxxxxxx
Is there any solution to fix it, thanks!!

Did you set the LOGIN_ERROR_URL?

Hi guys, I've been digging for so long on this problem with authentication process cancelled, maybe some of you might help.
I have another issue with fb login app that I try to implement on my Django project.
Facebook login is working properly on localhost, but (i dont know why) authentication process is being cancelled on live web application. After clicking on 'Login in facebook' user is being redirected to FB page and is asked to give access to application. User is clicking 'Continue as 'user'' and then it redirects user back to the domain with the displayed message 'Authentication process canceled'. And again those same steps are working on localhost but not on my domain.
With a debug=True I can see more detailed error message which looks like this:
/***
Environment:
Request Method: GET
Request URL: http://www.sellspot.pl/oauth/complete/facebook/?granted_scopes=email%2Cpublic_profile&denied_scopes&code=SOME_CODE
Django Version: 2.2.17
Python Version: 3.7.4
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'crispy_forms',
'django.contrib.humanize',
'bootstrap_pagination',
'storages',
'social_django',
'auctions',
'users',
'data',
'contact_us',
'report']
Installed Middleware:
('whitenoise.middleware.WhiteNoiseMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'social_django.middleware.SocialAuthExceptionMiddleware')
Traceback:
File "/app/.heroku/python/lib/python3.7/site-packages/social_core/utils.py" in wrapper
248.             return func(*args, **kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/social_core/backends/facebook.py" in auth_complete
101.             'code': self.data['code']
File "/app/.heroku/python/lib/python3.7/site-packages/social_core/backends/base.py" in request
237.         response.raise_for_status()
File "/app/.heroku/python/lib/python3.7/site-packages/requests/models.py" in raise_for_status
940.             raise HTTPError(http_error_msg, response=self)
During handling of the above exception (400 Client Error: Bad Request for url: https://graph.facebook.com/v2.10/oauth/access_token?client_id=MYAPP_ID&redirect_uri=http%3A%2F%2Fwww.sellspot.pl%2Foauth%2Fcomplete%2Ffacebook%2F&client_secret=MYAPP_SECRET&code=SOME_CODE), another exception occurred:
File "/app/.heroku/python/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
34.             response = get_response(request)
File "/app/.heroku/python/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
115.                 response = self.process_exception_by_middleware(e, request)
File "/app/.heroku/python/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
44.         response = view_func(request, *args, **kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
54.         return view_func(*args, **kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/social_django/utils.py" in wrapper
49.             return func(request, backend, *args, **kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/social_django/views.py" in complete
33.                        *args, **kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/social_core/actions.py" in do_complete
45.         user = backend.complete(user=user, *args, **kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/social_core/backends/base.py" in complete
40.         return self.auth_complete(*args, **kwargs)
File "/app/.heroku/python/lib/python3.7/site-packages/social_core/utils.py" in wrapper
251.                 raise AuthCanceled(args[0], response=err.response)
Exception Type: AuthCanceled at /oauth/complete/facebook/
Exception Value: Authentication process canceled
***/

I have the same problem as @Jony-softdeveloper and @klimuntowskirafal  if anyone has found a workaround...
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.github.com/user?access_token=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
it's missing the access token in the header of the request it seems?

how do i solve this in django
AuthCanceled
social_core.exceptions.AuthCanceled: Authentication process canceled: Permissions error
when every a user cancel the login using is social media account

i have tried all possible methods
none works


Add Contains() function

This function shortcuts the normal process of finding strings, exiting early on the first string match. This can give a practical speed-up in cases where only existence of any string matters.
This is the same as the earlier PR #5 but rebased to resolve conflicts.

@allenluce i don't think this library is maintained and it's not very efficient anyway. You might want to use https://github.com/petar-dambovaliev/aho-corasick

I've merged this. Thanks for writing it.
@petar-dambovaliev We do use this library in production at Cloudflare.


React 16 support

This project doesn't support React 16+ correct?

when using this package with react 16, npm instal throw an error
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^15.0.0-0 but none was installed.
you only need to add "react": "^0.14.0 || ^15.0.0-0 || ^16.0.0"
in peerDependencies section of package.json
Thank you

Hi, do you have any updates regarding this issue? I have a similar problem. Adding react and react-dom as peerDependency didn't resolve it. Do you have any thoughts how to fix it?

this is now fixed in the pr #47 which has been merged @Raathigesh what do we need to do to get it published to npm.

I'll do it tonight!

Published master as 1.4.0. I mistakenly bumped the version to 1.4.0 instead of 1.3.0 but that should be fine.


chore: update dependencies

<EMAIL_ADDRESS>and<EMAIL_ADDRESS>tagged


Please add an about page

Title

Currently the application is still in development. About page is not planned, instead the info needed will be on other pages like
Home page in logged out state will have info of what this application is.


Disable pdf links

Pull Request Checklist

[x] I have run yarn build to ensure that the project builds successfully.
[x] I have updated CHANGELOG.md with the necessary changes made in this pull request.

Description
Disables PDF links by disabling rendering of the PDF annotation layer. This was (roughly) the recommendation from PDFjs itself (https://github.com/mozilla/pdf.js/issues/10664). All relevant pattern data should be in the content layer, however, if we are having issues with disabling the annotation layer, we can always try a custom css option (if we have a way to implement custom css)
Related Issues

TODO

Ooo, lovely to see your PR @hluedeke!
I had turned off the annotation layer when we were having size issues in the first week or two after the release. Then a couple of months ago someone was complained that they couldn't see their annotations in PP--they put many notes in their patterns--so I turned it back on.
Now I feel conflicted! What do you think?

Hi! I know! Feels good to be back! 😄
If the annotation layer is important, than we can try the custom css route. I just need a way to define custom css in the project (aka create our own css classes). Do we have a place to do this?

If the annotation layer is important, than we can try the custom css route. I just need a way to define custom css in the project (aka create our own css classes). Do we have a place to do this?

There's app/[locale]/globals.css that you can throw custom css classes in: how to from tailwind!

Perfect, thank you @hluedeke!


feat(Progress): Touch up Progress component

Key changes

Change Typography and spacing for progress items
Dynamically style progress item task lines based on task status
Switch expand Button for Button.Icon on smaller screens to give more room for progress item title
Restructure ProgressItem component layout to accomodate for more space available in task container
Add dog example progress to ProgressScreen in Chronicles

Other changes

Remove margin in settings button in Chronicles

closes #543

Before

After


[Workspace] Improve with public workspace and creation

Needed API improvement

[ ] Separate public workspace
[ ]  Edit workspace ? Remove Workspace ?

On the API side, you can already set the workspace as public or not.
For editing, you can imagine we allow user to do it through the "setting" page when you're on a workspace. (endpoint is already there too)
For removal, we have to discuss it...
I think we need to implement it, but I don't know if deleting the dedicated workspace schema would be enough.

The endpoint exists but is not functional. I cannot confirm the developments realized work. So it is on standby.

On the API side, you can already set the workspace as public or not.

Yes, but we cannot differentiate between a public workspace created by others and a public workspace created by oneself. We have already decided to wait because we have no visibility on how the api will be "structured".


Created NodesNavigator, Created swiper plugin, Optimized UI

Proposed changes

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[ ] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Closing issues

Further comments

Created NodesNavigator to navigate between the nodes
Created Images Swiper
Moved the Side toolbar to Appbar
Moved Plugin controls to the right side
Optimized UI

@hussam-001 this looks really cool!
In order to review and merge this though, we need to split it into clean commits and remove unwanted changes.

putting the bottom bar on the right side will be a breaking change for most users as it might overlap content. Make this optional and hide behind a option, if any. This should definitly be its own Pull request
NodeNavigator should be toggleable somehow. Not sure if we should introduce or repurpose a button on the right.
there are commented out functionality, that should be readded
there are other unwanted changes, i suggest to go over the MR to spot them

thank you for your contribution!


How to access (basic auth) authorization header?

Hi
How can I get the basic auth authorization header?
Thanks a lot

Header management in Pistcahe is annoying.  One of the original design goals (Oktal's) was that all headers should be strongly typed.  This helps ensure that code using the headers is less error-prone, but makes it difficult to use headers that are not coded for.  There is an interface to use non-defined headers (raw headers), and to define custom headers.  But once a header is formally defined, it disappears from the "raw headers" list (src/common/http.cc, HeadersStep::apply()).
Anyway, I was able to access the Authorization header using the raw headers interface (details below).
If you were to author a pull request that implements the "authorization" header formally (don't forget to add unit tests), I would happily merge it.  Look in include/pistcahe/http_header.h for details.
$ curl -X POST -d "hello world\n"H "Authorization: Basic SDFHKDHFKDJFK"  \
   http://localhost:9080/v1/system/echo

Server ready: http://localhost:9080/
Authorization Basic SDFHKDHFKDJFK
2019-02-07 11:16:42 200 postEchoTest 380

void SystemService::postEchoTest(
  const Rest::Request& request,
  Http::ResponseWriter response
) {
  Http::Mime::MediaType mime;
  const auto mime_ptr = request.headers().tryGet<Http::Header::ContentType>();
  if (mime_ptr) {
    mime = mime_ptr->mime();
  }

  response.send(Http::Code::Ok, request.body(), mime);

  for (const auto &hdr: request.headers().rawList()) {
    std::cerr << hdr.first << " " << hdr.second.value() << "\n";
  }
}

Ok, done! The 'raw' does it.
(Now the question is answered here but I thing that would be very useful an authorization header (at least BASIC) sample or chunk of code in the web page :-)
Thanks a lot
Pistache seems great!!

It should be fairly easy to formally add an Authorization header class (with handy methods to parse the base64 payload), and document it via a few unite tests.  Please let this issue open to serve as a reminder and someone will implement it sooner or later.  :)  note that once Authorization is a formally supported header, that it will disappear from the "raw" array.  imho, "raw" should include all headers, even those with a real class + parser.  Maybe we'll make that change too.


Get "Activating extension .test" failed error upon running the Hello World extension example

I get the following error when I run (F5) the extension. I am following the steps in this tutorial
'C:\Program Files (x86)\Microsoft VS Code\Code.exe' --debugBrkPluginHost=9677 --extensionDevelopmentPath=d:\Playground\vsCodeExt\test
Loading development extension at d:/Playground/vsCodeExt/test
Activating extension `.test` failed: Cannot find module 'd:/Playground/vsCodeExt/test/out/src/extension'.
Activating extension `.test` failed:  Cannot find module 'd:/Playground/vsCodeExt/test/out/src/extension'
Here is the error stack:  Error: Cannot find module 'd:/Playground/vsCodeExt/test/out/src/extension'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Function.n._load (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\pluginHostProcess.js:18:17333)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Function.t [as __$__nodeRequire] (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\loader.js:5:1298)
    at u (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\pluginHostProcess.js:12:20550)
    at t._loadPluginModule (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\pluginHostProcess.js:12:24382)
    at t.e._actualActivatePlugin (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\pluginHostProcess.js:11:29061)
    at t._actualActivatePlugin (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\pluginHostProcess.js:12:24874)

What am I missing. There hardly any steps to follow in the tutorial. Is the yeoman generator outdated?
Thanks.

Make sure you have the latest generator (npm install -g generator-code).

Was this change to the generator made after I submitted the issue? Because I downloaded the generator for the very first time just before I opened this issue.

Can you see if you have a extension.js file inside d:/Playground/vsCodeExt/test/out/src folder? If not, can you run Ctrl+Shift+B (the build) and then run the test?

I do not see the extension.js file in the src folder - only see the .ts file. I do get the following error when I Ctrl+Shift+B though:
'npm' is not recognized as an internal or external command,
operable program or batch file.

Node and NPM are both in my path. I primarily work on node so am not sure if VS Code needs to know something about Node and maybe I did not configure that.

It seems vscode is not able to run npm, so I am not sure if npm is really on the path. Can you run npm from a windows command prompt?

npm was missing from my path. I use powershell primarily so did not realize that it was missing from the path and my profile had the node path set up. Adding npm to the path still did not fix the issue though. I still do not see an out  folder with the transpiled files.

Can you run "npm run compile" from the root of the workspace in a command prompt.

:+1: That did it. Any reason why it would not automatically run when I hit F5?

@mithun-daa it should, what happens when you run Ctrl+Shift+B? Check the output window (from View menu).

I have no idea what changed but after npm run compile my Ctrl+Shift+B command seems to be working too. I deleted my out folder and I see that it gets created when I build it.

Nice.


Clarification around End of Support for v3

In this documentation, the end date shows December 3rd, 2022 as the end date for v3 and it says because of .NET Core 3.1 end of support.  The end of support for .NET Core 3.1 isn't until December 13th, 2022 per the policy https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core.  Seems like those 2 dates should match.

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

ID: 1df5e2bd-489d-19b2-87d3-d993ebb82021
Version Independent ID: 9e9d9ded-8f40-22be-4654-48c87f2c59e8
Content: Azure Functions runtime versions overview
Content Source: articles/azure-functions/functions-versions.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

@cloudmelon can you help address this question from @adamholthaus50? It seems like these dates could better align.


UnicodeDecodeError when issuing molecule init

Issue Type

Bug report

Molecule and Ansible details
Ubuntu 16.04 LTS 64 bits
Ansible <IP_ADDRESS>
  config file = /mnt/extra/decrypt/david-develop/ansible-roles/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
Molecule, version 1.23.0

Molecule installation method: pip
Ansible installation method: pip

Desired Behavior
git clone https://github.com/davidfischer-ch/ansible-roles.git
cd ansible-roles/
molecule --debug init
--> Initializing molecule in current directory...
... (all OK)

Current Behavior
Traceback (most recent call last):
  File "/usr/local/bin/molecule", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/molecule/cli.py", line 41, in main
    cli(obj={})
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/molecule/command/init.py", line 141, in init
    util.sysexit(i.execute()[0])
  File "/usr/local/lib/python2.7/dist-packages/molecule/command/init.py", line 53, in execute
    self._init_existing_role(role, role_path, driver, verifier)
  File "/usr/local/lib/python2.7/dist-packages/molecule/command/init.py", line 75, in _init_existing_role
    util.process_templates(template, extra_context, role_path)
  File "/usr/local/lib/python2.7/dist-packages/molecule/util.py", line 115, in process_templates
    no_input=True, )
  File "/usr/local/lib/python2.7/dist-packages/cookiecutter/main.py", line 144, in cookiecutter
    output_dir=output_dir
  File "/usr/local/lib/python2.7/dist-packages/cookiecutter/generate.py", line 350, in generate_files
    generate_file(project_dir, infile, context, env)
  File "/usr/local/lib/python2.7/dist-packages/cookiecutter/generate.py", line 168, in generate_file
    tmpl = env.get_template(infile_fwd_slashes)
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 812, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 774, in _load_template
    cache_key = self.loader.get_source(self, name)[1]
  File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 175, in get_source
    contents = f.read().decode(self.encoding)
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 1: invalid continuation byte

You should use molecule init in the directory of a role (e.g. https://github.com/davidfischer-ch/ansible-roles/tree/master/roles/fail2ban), not in a directory containing roles.

OK. Do you think its possible and what is the best practice to write "integration" testing multiples roles together with?
Thanks.

@davidfischer-ch can you provide more details as to where you are running molecule init from?  I cannot reproduce this issue.  What is your shells LANG environment variable?

Unable to duplicate.  Need more info.  Closing.  Please reopen if still an issue. Molecule v2 uses logger, which hopefully doesn't suffer from this same fate.


CLI Gas Allowance Function

I am trying to send some erc 20 tokens (USDC in this case) out of an Optimism safe. I have loaded the safe and the owners but when I use the "send erc-20" function I get a gas related error:
blockchain > 0xffb17DbBa1C2cc4A1D678750D307a07b7990F6d6 > send_erc20 0x7F5c764cBc14f9669B88837ca1490cCa17c31607 0x1dab4Bc 1
Result: True
Do you want to execute tx SafeTx - safe=0xffb17DbBa1C2cc4A1D678750D307a07b7990F6d6 - to=0x1dab4Bc - value=0 - data=0xa9059cbb0000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c316070000000000000000000000000000000000000000000000000000000000000001 - operation=0 - safe-tx-gas=0 - base-gas=0 - gas-price=0 - gas-token=0x0000000000000000000000000000000000000000 - refund-receiver=0x0000000000000000000000000000000000000000 - signers = ['0x6D12D01f9218a736B45d5eF61Bf7616a3B00F621'] [y/N]: y
Traceback (most recent call last):
File "/usr/local/bin/safe-cli", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/safe_cli/main.py", line 150, in main
safe_cli.loop()
File "/usr/local/lib/python3.10/site-packages/safe_cli/main.py", line 135, in loop
self.prompt_parser.process_command(command)
File "/usr/local/lib/python3.10/site-packages/safe_cli/prompt_parser.py", line 173, in process_command
return args.func(args)
File "/usr/local/lib/python3.10/site-packages/safe_cli/prompt_parser.py", line 79, in wrapper
return function(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/safe_cli/prompt_parser.py", line 245, in send_erc20
safe_operator.send_erc20(
File "/usr/local/lib/python3.10/site-packages/safe_cli/operators/safe_operator.py", line 461, in send_erc20
return self.send_custom(
File "/usr/local/lib/python3.10/site-packages/safe_cli/operators/safe_operator.py", line 448, in send_custom
return self.prepare_and_execute_safe_transaction(
File "/usr/local/lib/python3.10/site-packages/safe_cli/operators/safe_operator.py", line 731, in prepare_and_execute_safe_transaction
return self.execute_safe_transaction(safe_tx)
File "/usr/local/lib/python3.10/site-packages/safe_cli/operators/safe_operator.py", line 174, in decorated
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/safe_cli/operators/safe_operator.py", line 739, in execute_safe_transaction
tx_hash, tx = safe_tx.execute(
File "/usr/local/lib/python3.10/site-packages/gnosis/safe/safe_tx.py", line 380, in execute
self.tx = self.w3_tx.build_transaction(tx_parameters)
File "/usr/local/lib/python3.10/site-packages/web3/contract.py", line 1099, in build_transaction
return build_transaction_for_function(
File "/usr/local/lib/python3.10/site-packages/web3/contract.py", line 1711, in build_transaction_for_function
prepared_transaction = fill_transaction_defaults(web3, prepared_transaction)
File "cytoolz/functoolz.pyx", line 249, in cytoolz.functoolz.curry.call
File "/usr/local/lib/python3.10/site-packages/web3/_utils/transactions.py", line 114, in fill_transaction_defaults
default_val = default_getter(web3, transaction)
File "/usr/local/lib/python3.10/site-packages/web3/_utils/transactions.py", line 60, in
'gas': lambda web3, tx: web3.eth.estimate_gas(tx),
File "/usr/local/lib/python3.10/site-packages/web3/eth.py", line 868, in estimate_gas
return self._estimate_gas(transaction, block_identifier)
File "/usr/local/lib/python3.10/site-packages/web3/module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "/usr/local/lib/python3.10/site-packages/web3/manager.py", line 198, in request_blocking
return self.formatted_response(response,
File "/usr/local/lib/python3.10/site-packages/web3/manager.py", line 171, in formatted_response
raise ValueError(response["error"])
ValueError: {'code': -32000, 'message': 'gas required exceeds allowance (550000000)'}
So I tried to modify the by adding these functions to the command: "--gas 600000 --gasPrice 20" but it still doesn't work. It give the "unrecognized argument" error.
blockchain > 0xffb17DbBa1C2cc4A1D678750D307a07b7990F6d6 > send_erc20 0x7F5c764cBc14f9669B88837ca1490cCa17c31607 0x1d****ab4Bc 1 --gas 600000 --gasPrice 20
usage:  [-h] {show_cli_owners,load_cli_owners_from_words,load_cli_owners,unload_cli_owners,change_threshold,approve_hash,add_owner,remove_owner,change_fallback_handler,change_guard,change_master_copy,update,send_custom,send_ether,send_erc20,send_erc721,drain,get_threshold,get_nonce,get_owners,enable_module,disable_module,info,refresh,balances,history,sign-tx,batch-txs,execute-tx,get_delegates,add_delegate,remove_delegate}
...
: error: unrecognized arguments: --gas 600000 --gasPrice 20
Clearly, there is a problem with the command. How can I fix it? Any help would be much appreciated!

Omco chodzi dlaczefo zmiany ?

@Uxio0 I've answered this issue here https://ethereum.stackexchange.com/questions/149426/gnosis-safe-cli-gas-allowance-function therefore we can close the issue


Add UUID

Add UUID field type

Codecov Report

Merging #14 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #14   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           40        41    +1
  Lines         2799      2834   +35
=========================================
+ Hits          2799      2834   +35

Impacted Files
Coverage Δ

ormar/__init__.py
100.00% <ø> (ø)

ormar/fields/__init__.py
100.00% <ø> (ø)

ormar/queryset/queryset.py
100.00% <ø> (ø)

ormar/fields/model_fields.py
100.00% <100.00%> (ø)

ormar/fields/sqlalchemy_uuid.py
100.00% <100.00%> (ø)

tests/test_models.py
100.00% <100.00%> (ø)


How to set the initial size of the pdf of the page？

How do you change the page size to A3

doc_options =
	size: 'A3'

doc = new PDFDocument doc_options
doc.pipe fs.createWriteStream('output.pdf')

@greyskymedia Is it possible to change the DPI/ Density?
I'm assuming the document default size is 8.5"x11" but I have not seen anything about changing the DPI of the document (this becomes very important with images for printing)

The DPI of the image in the PDF document depends on the original pixel dimensions of the image, you will have to resize it before giving it to the PDFKit image() function. On the browser the resizing can be done with the canvas


Update slf4j-api, slf4j-simple to 2.0.12

About this PR
📦 Updates

org.slf4j:slf4j-api
org.slf4j:slf4j-simple

from 1.7.36 to 2.0.12 ⚠
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.slf4j" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.slf4j" }
}]

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

Superseded by #559.


firebase_dynamic_links,onDeepLinkResult  open twice

- (BOOL)application:(UIApplication *)application
    continueUserActivity:(NSUserActivity *)userActivity
      restorationHandler:(nonnull void (^)(NSArray *_Nullable))restorationHandler {
  __block BOOL retried = NO;
  void (^completionBlock)(FIRDynamicLink *_Nullable dynamicLink, NSError *_Nullable error);
  void (^__block __weak weakCompletionBlock)(FIRDynamicLink *_Nullable dynamicLink,
                                             NSError *_Nullable error);
  weakCompletionBlock = completionBlock = ^(FIRDynamicLink *_Nullable dynamicLink,
                                            NSError *_Nullable error) {
    if (!error && dynamicLink && dynamicLink.url) {
      [self onDeepLinkResult:dynamicLink error:nil];
    }

    // Per Apple Tech Support, a network failure could occur when returning from background on
    // iOS 12. https://github.com/AFNetworking/AFNetworking/issues/4279#issuecomment-447108981 So
    // we'll retry the request once
    if (error && !retried && [NSPOSIXErrorDomain isEqualToString:error.domain] &&
        error.code == 53) {
      retried = YES;
      [[FIRDynamicLinks dynamicLinks] handleUniversalLink:userActivity.webpageURL
                                               completion:weakCompletionBlock];
    }
    // We could send this to Dart and maybe have a onDynamicLinkError stream but there's also
    // a good chance the `userActivity.webpageURL` might not be for a Firebase dynamic link,
    // which needs consideration - so we'll log this for now, logging will get picked up by
    // Crashlytics automatically if its integrated.
    if (error)
      NSLog(
          @"FLTFirebaseDynamicLinks: Unknown error occurred when attempting to handle a universal "
          @"link: %@",
          error);
  };

   [[FIRDynamicLinks dynamicLinks] handleUniversalLink:userActivity.webpageURL
                                           completion:completionBlock];

  // Results of this are ORed and NO doesn't affect other delegate interceptors' result.
    return NO;
}
}

because return NO,onDeepLinkResult execute twice,once  is click the in app message card,and execute followURLViaIOS open safari,then from safari jump into my app,execute onDeepLinkResult again。I don't know why  return No directly from 2.0.2！
FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM240007", @"Following action url %@", actionURL);

if ([self.class isHttpOrHttpsScheme:actionURL]) {
  FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM240001", @"Try to treat it as a universal link.");
  if ([self followURLWithContinueUserActivity:actionURL]) {
    completion(YES);
    return;  // following the url has been fully handled by App Delegate's
             // continueUserActivity method
  }
} else if ([self isCustomSchemeForCurrentApp:actionURL]) {
  FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM240002", @"Custom URL scheme matches.");
  if ([self followURLWithAppDelegateOpenURLActivity:actionURL]) {
    completion(YES);
    return;  // following the url has been fully handled by App Delegate's openURL method
  }
}

FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM240003", @"Open the url via iOS.");
[self followURLViaIOS:actionURL withCompletionBlock:completion];
}

@LatCui
Please use new issue template and fill out requested details so that we'll have enough details to work with.
Please provide flutter doctor -v, plugin version, platform you are seeing this behavior on along with complete minimal reproducible code sample.
Thanks.

we have sovled it in ourself AppDelegate.swift
 override func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {

   let handle =  DynamicLinks.dynamicLinks().handleUniversalLink(userActivity.webpageURL!) {dynamicLink,  error in

     }

     if(handle){
         super.application(application, continue: userActivity, restorationHandler: restorationHandler)
         return handle
     }
     return super.application(application, continue: userActivity, restorationHandler: restorationHandler)

 }

Thanks for the update. Closing this as resolved.


chore: tweak embedded database settings

Set the embedded_pg to more 'modern' settings:
From trustify we set

db max conns = 300
db min conns = 75

and in pg config

max_connections=500

which lets the database 'breath' a bit.
Additionally set random_page_cost to 1.1 because we all have SSD these days and the default setting of 4 is for spinning rust. There are a lot of pg configs that have dramatically conservative defaults which we can revisit but wanted to establish a baseline for the embedded_pg.

I don't love the map of strings for config, but I reckon that's outside of our control?

it is ... we could put a facade over this to make it easier to share/load pg configs eg. /etc/pg could contain sets of pg configs which we can dynamically load ... for this project I am guessing we want to be 'generic' but be able to easily test some other configs (for example to mirror our own stage/prod).


Can you contact me for business cooperation

email<EMAIL_ADDRESS>please contact me for business cooperation. Paid cooperation

I'm not available for business cooperation atm


Error: Cannot find module './lib/js-yaml.js'

I just installed "js-yaml" with "npm install js-yaml". It doesn't work because the file "./lib/js-yaml.js" isn't there. I had to take it from the git repo and paste it into my dir "node_modules/js-yaml/lib" to make it work. Great job for the native port though!

I just installed the latest version of npm. I have node 6.6. I npm-installed js-yaml again and "lib/js-yaml.js" is still not there.
May I suggest that you change your "index.js" at the root of the module by the missing file "lib/js-yaml.js" file renamed "index.js" and with "require('./lib/js-yaml/loader')" instead of "require('./js-yaml/loader')"? It may work better for Windows user & Ubuntu 10.04 users like me...

Just install the package and you will be ready to go! here is the link https://www.npmjs.com/package/js-yaml

I had to manually copy the files as mentioned above and detailed here
https://github.com/mosamy/MyBlog/blob/master/BowerInstallError


Can't connect to AP

Hi,
I have not been able to get past the "connect device to AP" step. I have tried setting up on two machines: an Asus laptop on Ubuntu 18.04 and a single board computer on Lubuntu 18.04. I tried connecting using a Chromebook, a phone running LineageOS, and a phone running Ubuntu Touch. Unfortunately, my attempts to connect were in vain. The Chromebook mentioned a DHCP configuration issue on the AP, while both phones endlessly attempted to connect.
Is there something else I should look at?
Thanks for your time.

Is this on master branch or development? Try the other one

Thank you, that helped. I switched from master to development and everything worked.

On a side note, since the flash worked, I will try to add to the wiki (AUKEY Wi-Fi Smart Plug) but I don't know whether I am filling in correctly, and I definitely don't know about some columns.

Awesome, glad to hear it worked for you. Don't worry about filling in all the columns, just add the info you have and leave the rest blank.


Dragging issues?

This seems really good. But - there might be an issue with dragging. If I'm dragging a paragraph (or anything), it seems to disappear after dropping it.
https://gutentap.letsdance.agency/

+1

+1

Drag and drop code is a custom bit of ProseMirror code here: https://github.com/johnpuddephatt/gutentap/blob/a3624b6102251a7a093f8d3163f52a34c226dd00/src/utils/pm-utils.js#L104
Needs investigation as behaviour is inconsistent at the minute. I have had a look but couldn't identify a quick fix.

This should now be fixed in v0.1.86.


Add content about BLAS/LAPACK demuxing and Pkg.jl being SIMD-aware

@giordano maybe you're interested to look this over?

As the term [de]muxing is not obvious, I suggest to add it to the glossary, e.g.
diff --git a/docs/glossary.md b/docs/glossary.md
index 0200e0d..173c222 100644
--- a/docs/glossary.md
+++ b/docs/glossary.md
@@ -76,6 +76,7 @@
 | Conda-forge | Community-led packaging effort for (predominantly) Python packages | See [here](https://conda-forge.org/) |
 | Cross-compilation | Compiling _on_ a given platform _for_  another platform | See [here](./background/compilation_concepts.md#cross-compilation) |
 | (64 bit) Data Models | Choice of bit-widths for `int`/`long` integer types | ILP32, ILP64, LP64; see [here](https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models) |
+| Demux / Demuxing | Colloquial name for demultiplexing, which can be considered a single-input, multiple-output switch | Opposite of muxing, see [here](https://en.wikipedia.org/wiki/Multiplexer) |
 | Distribution | An entity distributing (consistent) binary artefacts, often forming its own ecosystem | Incl. OS: Debian, Fedora, Ubuntu, RHEL...</br>OS-less: Conda, Spack, Homebrew, ... |
 | `distutils` | Python standard library module for building and installing packages; added in 1.6, to be removed in 3.12 | See [here](https://docs.python.org/3/library/distutils.html) |
 | `easy_install` | Deprecated method for installing Python packages, superseded by `pip install` | See [here](https://setuptools.pypa.io/en/latest/deprecated/easy_install.html) |
@@ -84,6 +85,7 @@
 | Linker | A tool to correctly find the required third-party symbols for a given project | GNU's gold, LLVM's lld, [mold](https://github.com/rui314/mold) |
 | Mamba | Alternative implementation of the `conda` CLI tool with a faster solver | See [here](https://mamba.readthedocs.io/) |
 | Manylinux | Baseline tooling to allow distributing wheels across various Linux distributions | See [PEP 600](https://peps.python.org/pep-0600/) and the PEPs it replaces |
+| Mux / Muxing | Colloquial name for multiplexing, which can be considered a multiple-input, single-output switch | Opposite of demuxing, see [here](https://en.wikipedia.org/wiki/Multiplexer) |
 | `numpy.distutils` | Extension to `distutils`, adding i.a. support for BLAS/LAPACK, Fortran, SIMD etc. | See [here](https://numpy.org/doc/stable/reference/distutils.html) |
 | Platform | Colloquially used as interchangeable with the OS, though really only fully specified by the target triple | |
 | `pyproject.toml` | Standard metadata file for Python packages | See [PEP 517](https://peps.python.org/pep-0517) & [518](https://peps.python.org/pep-0518) |

It's not immediately obvious why "demuxing" in the context of BLAS would be more accurate than "muxing", but that really just depends on which way we consider the information to flow. If we consider the different BLAS flavours as inputs, then flexiblas would be muxing them into a single signal (which IMO makes sense from the POV of view of a library interacting with a unified interface). However if we take the POV that information flows (e.g. along with the arguments for the functions being called) into the BLAS side, then we'd be demuxing that signal to the various different BLAS flavours.
I think the latter interpretation is reasonable, and given that it's already used by libblastrampoline, I don't think it's worth changing that, but given that I had to wrap my head around how the definitions actually apply to the situation at hand, I thought I'd mention it.