Passing an integer array as parameter to doctrine SQL filter failes

I tried to pass an array of integers to Doctrine\ORM\Query\Filter\SQLFilter::setParameter with the Doctrine\DBAL\Connection::PARAM_INT_ARRAY parameter type as I did with regular queries many times before to use the parameter in SQL IN() statements.
The documentation says Doctrine\ORM\Query\Filter\SQLFilter::getParameter takes care of parameter quoting:

The function is responsible for the right output escaping to use the value in a query.

but it looks like the parameter type is not handled correctly and an exception is thrown:

Warning: PDO::quote() expects parameter 1 to be string, array given

Is this a bug or why are array parameters not allowed?

Some code snippets of what I did: I have a filter class
use Doctrine\ORM\Query\Filter\SQLFilter;
use Doctrine\ORM\Mapping\ClassMetadata;

class UserGroupAwareFilter extends SQLFilter
{
    public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
    {
        $this->getParameter('ids')

        // ...
    }
}

and a configurator class to pass some parameters
class UserGroupAwareFilterConfigurator
{
    public function onKernelRequest()
    {
        $ids = // get ids ...

        $this->em->getFilters()->enable('UserGroupAware');
        $filter->setParameter(
            'ids',
            $ids,
            Connection::PARAM_INT_ARRAY
        );
    }
}

Any news on this issue? Also trying to use an array for an IN-statement.

Any news?
How this should be handled?

I have problems with this too, I implemented multiple indexed parameters for the use case but that is definitely not scalable. I don't see why a custom filter is not allowed to accept the raw parameter value..
$this->em->getFilters()->enable('CountryFilter');
$filter->setParameter('country0', 'nl');
$filter->setParameter('country1', 'uk');
// (up to 4 countries)

That's kind of weird, what version of the ORM are you using? The last stable version uses the ParameterTypeInferer to use the correct type, which behaves properly with arrays.
Could you please send us a failing test case that reproduces that behaviour? It would help us a lot to identify and fix the issue you're describing.
You can find examples on https://github.com/doctrine/doctrine2/tree/388afb46d0cb3ed0c51332e8df0de9e942c2690b/tests/Doctrine/Tests/ORM/Functional/Ticket

Hi I don't have too much time but I ran this short test code which illustrates the problem.
Best I could get in the filter was a quoted php serialized object..
The context is within Symfony 3.3 framework, library versions are:
doctrine/annotations                 v1.2.7             Docblock Annotations Parser
doctrine/cache                       v1.6.2             Caching library offering an object-oriented API for many cache backends
doctrine/collections                 v1.3.0             Collections Abstraction library
doctrine/common                      v2.6.2             Common Library for Doctrine projects
doctrine/dbal                        v2.5.13            Database Abstraction Layer
doctrine/doctrine-bundle             1.6.8              Symfony DoctrineBundle
doctrine/doctrine-cache-bundle       1.3.0              Symfony Bundle for Doctrine Cache
doctrine/inflector                   v1.1.0             Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator                1.0.5              A small, lightweight utility to instantiate objects in PHP without invoki...
doctrine/lexer                       v1.0.1             Base library for a lexer that can be used in Top-Down, Recursive Descent ...
doctrine/orm                         v2.5.10            Object-Relational-Mapper for PHP

Test code:
<?php
/**
 * Date: 09/10/2017
 */
namespace Doctrine\Tests\ORM\Functional\Ticket;

use Doctrine\DBAL\Connection;
use Doctrine\ORM\Query\Filter\SQLFilter;
use Doctrine\Tests\OrmFunctionalTestCase;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\Tests\Models\CMS\CmsArticle;

class _ArrayFilter5811 extends SQLFilter {

    public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
    {

        if ($this->hasParameter('myarray')) {
            $v = $this->getParameter('myarray');
            if (!is_array($v)) {
                throw new \LogicException('$v is expected to be some array or clause that can be used in an IN conditon.. got ' . $v);
            }
        }
        // return nothing as constraint for the test
        return '';
    }
}

class GithubIssue5811Test extends OrmFunctionalTestCase
{

    public function setUp()
    {
        $this->useModelSet('cms');
        parent::setUp();
    }

    /**
     * fails: PDO::quote() expects parameter 1 to be string, array given
     */
    public function testIssueVariant1()
    {
        $em = $this->_em;
        /* @var $em \Doctrine\ORM\EntityManagerInterface */
        $em->getConfiguration()->addFilter('arrayfilter', 'Doctrine\Tests\ORM\Functional\Ticket\_ArrayFilter5811');

        $filter = $em->getFilters()->enable("arrayfilter");

        // fails: PDO::quote() expects parameter 1 to be string, array given
        $filter->setParameter('myarray', ['value1', 'value2']);
        $em->getRepository(CmsArticle::class)->findAll();

    }

    /**
     * fails: PDO::quote() expects parameter 1 to be string, array given
     */
    public function testIssueVariant2()
    {
        $em = $this->_em;
        /* @var $em \Doctrine\ORM\EntityManagerInterface */
        $em->getConfiguration()->addFilter('arrayfilter', 'Doctrine\Tests\ORM\Functional\Ticket\_ArrayFilter5811');

        $filter = $em->getFilters()->enable("arrayfilter");

        // fails: PDO::quote() expects parameter 1 to be string, array given
        $filter->setParameter('myarray', ['value1', 'value2'], Connection::PARAM_STR_ARRAY);
        $em->getRepository(CmsArticle::class)->findAll();

    }

    /**
     * No exception but within the filter we end up with a quoted php serialized object
     */
    public function testIssueVariant3()
    {
        $em = $this->_em;
        /* @var $em \Doctrine\ORM\EntityManagerInterface */
        $em->getConfiguration()->addFilter('arrayfilter', 'Doctrine\Tests\ORM\Functional\Ticket\_ArrayFilter5811');

        $filter = $em->getFilters()->enable("arrayfilter");

        // the value passed in the filter is a serialized and quoted php array
        // we just want an array that can be used in an 'in' clause
        $filter->setParameter('myarray', ['value1', 'value2'], 'array');
        $em->getRepository(CmsArticle::class)->findAll();
    }

}

Any news on that? I can confirm this problem with doctrine/orm 2.6.1 and doctrine/dbal 2.7.0 in a Symfony 4 application. The code calls the PDO quote method, where the value of 101 (from Connection::PARAM_INT_ARRAY) is ignored, PDO has no param type for arrays, at least not as a const with that value.

I also have this problem

Send a test, then we can patch it, if applicable.

To figure this out, I have made an implode/explode of my array.

I hit the same issue today when implementing a custom filter. For my use case it looks like a weird PDO behavior, reported as bug here in 2009.
Doctrine\ORM\Query\Filter\SQLFilter::getParameter retrieves a \Doctrine\DBAL\Connection instance from EntityManager to quote parameter value through it.
Connection::quote only proxies the parent's interface ():
public function quote($input, $type = ParameterType::STRING)
{
    return parent::quote($input, $type); // parent is PDO here
}

So in my case, the PDO driver was failing, even doctrine properly passes value and type information to underlying layers.
Since MySQL is also happy when parsing such statement on status_id (int) column:
select * from comments where status_id = '2'

I stopped annoying from this.


How to determin which BT adapter to use?

Hello,
I used successful our great work on Raspbian. Thank you for that.
Now I chaged to dietpi and node v19 and    "rocket-nuimo": "^1.2.1",
With the built in BT adapter of Pi4 anything works fine.
This is my code working with the internal BT adapter of Pi4
'use strict';

const { DeviceDiscoveryManager} = require('rocket-nuimo');

// Device connection manager
const manager = DeviceDiscoveryManager.defaultManager;
start();

async function start() {

	const session = manager.startDiscoverySession()
	console.log('Waiting for device...')

	var device = await session.waitForFirstDevice()
	console.log('----- Appeared deviceId: ' + device.id);

	if (await device.connect()) {
		console.log('Connected to Nuimo Control');
	}
	else {
		console.log('No connection');
	}
}

After my script ran I can see in bluetoothctl:
[Nuimo]# list
Controller E4:5F:01:85:E7:2A rooExtend [default]

Now I added the USB BT antenna and did a reboot. The antenna works as I see.
# hciconfig
hci1:   Type: Primary  Bus: UART
        BD Address: E4:5F:01:85:E7:2A  ACL MTU: 1021:8  SCO MTU: 64:1
        DOWN
        RX bytes:7363 acl:95 sco:0 events:379 errors:0
        TX bytes:8595 acl:88 sco:0 commands:290 errors:0

hci0:   Type: Primary  Bus: USB
        BD Address: 00:E0:4C:7B:7B:03  ACL MTU: 1021:6  SCO MTU: 255:12
        UP RUNNING
        RX bytes:7438 acl:0 sco:0 events:510 errors:0
        TX bytes:22021 acl:0 sco:0 commands:440 errors:0

The external antenna is hci0. With bluetoothctl I set it to be the default adapter
[bluetooth]# select  00:E0:4C:7B:7B:03
Controller 00:E0:4C:7B:7B:03 rooExtend #1 [default]
[bluetooth]# list
Controller E4:5F:01:85:E7:2A rooExtend
Controller 00:E0:4C:7B:7B:03 rooExtend #1 [default]

To be sure I only have the hci0 up and running I blocked hci1 with rfkill:
# rfkill
ID TYPE      DEVICE      SOFT      HARD
 0 bluetooth hci0   unblocked unblocked
 1 wlan      phy0     blocked unblocked
 2 bluetooth hci1     blocked unblocked

Now if I start the scripts I see
----- Appeared deviceId: c810cec31489
But no connection will be made.
Funny enough: Same antenna, same dietpi running on a Nanopi Neo R2S Box (that has no internal BT controller) works like charm.
Help would be appreciated.
Thanks DrCWO

I did the next test running the antenna and pairing a Microsoft Surface Dial with the Pi.
Works like charm and with hciconfig I can see that the RX and TX bytes got transferred via hci0 which is the USB antenna.
This makes me believe that something in your software is no more compatible with the second BT controller.


Support to get all attributes returned from Accounts

Currently there aren't methods to get the following attributes returned from Accounts API:

[ ] login
[ ] accessToken
[ ] channelId
[ ] transparentAccount
[ ] email
[ ] identity Document
[ ] createdAt

You can find the official API documentation for Accounts here (PT-BR)!

Implementation Tips:
The methods should be similar to getId from Account.
Some of these attributes only are returned from API when an account is created with transparentAccount setted as true.
Don't forget to write good tests.

Can i take this issue? :)
About the "acessToken" attribute, is not coming from API result, where can i find this value?
And the "identityDocument" is equivalent to "taxDocument"? "identityDocument" attribute is not coming from API also.

Hi @kleytonbp! Thank you so much for being so actively contributing!! We really appreciate it!! But would you mind letting this one for someone else have a try at this one?  :smile:

Hey @caiogaspar, sure, no problem! :D

Bom dia, Caio!
Beleza?
Posso pegar essa issue?
Abraços,


unrarx formula with invalid sha256

General troubleshooting steps

[x] I have checked the instructions for reporting bugs (or making requests) before opening the issue.
[x] I ran brew update-reset && brew update and retried my command.
[x] I ran brew doctor, fixed as many issues as possible and retried my command.
[x] I understand that if I ignore these instructions, my issue may be closed without review.

Description of issue
I'm trying to install unrarx, but I'm not able to do it because the sha256 from the file downloaded does not match the expected sha256.
Output of your command with --verbose --debug
brew cask install --verbose --debug unrarx
==> Hbc::Installer#install
==> Printing caveats
==> Hbc::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading http://www.unrarx.com/files/UnRarX_2.2.zip
Already downloaded: /Users/diegoholiveira/Library/Caches/Homebrew/Cask/unrarx--2.2.zip
==> Downloaded to -> /Users/diegoholiveira/Library/Caches/Homebrew/Cask/unrarx--2.2.zip
==> Verifying download
==> Determining which verifications to run for Cask unrarx
==> Checking for verification class Hbc::Verify::Checksum
==> 1 verifications defined
Hbc::Verify::Checksum
==> Running verification of class Hbc::Verify::Checksum
==> Verifying checksum for Cask unrarx
==> Note: running "brew update" may fix sha256 checksum errors
Error: Checksum for Cask 'unrarx' does not match.

Expected: 616c5c536efb29a35fe45c8171874592cc28b269e5d7ed6947c19c8cbb686955
Actual:   17fa2f3324d45c27a318ed51dab739c7f09b573185b76889b955ad2c9ad1d7b8
File:     /Users/diegoholiveira/Library/Caches/Homebrew/Cask/unrarx--2.2.zip

To retry an incomplete download, remove the file above.
Error: Install incomplete.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:98:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:168:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:93:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:173:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:173:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:156:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:93:in `<main>'

Output of brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.2.4
caskroom/homebrew-cask (git revision b161; last commit 2017-07-11)
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads
~/Library/Caches/Homebrew/Cask (14 files, 849.9MB)
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask (3653 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin15
/Library/Ruby/Site/2.0.0/universal-darwin15
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15
==> Environment Variables
LANG="pt_BR.UTF-8"
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/bin/bash"

https://github.com/caskroom/homebrew-cask/issues/36350


[FLOC-2003] Command line introspection was wrong, resulting in unnecessary application restart

Fixes https://clusterhq.atlassian.net/browse/FLOC-2003

Thanks @itamarst
It makes sense.

calculate_changes is saying restart this existing container because the the discovered containers appear to have a different command line than the configured command line, right?

I wondered if it'd be worth adding a calculate changes test to demonstrate that an existing Application  with a command line doesn't get constantly restarted. But it'd be tedious to have to similar tests for all such cases...unless there are already such tests.

Answer or address the comments above and merge when you're satisfied with the build results.


Use LumX with Ionic

Has anybody tried to use LumX with Ionic ? I'm currently rewriting a web app with LumX and I was curious about if I could use it for my cross-platform app.

Sure you can. I have removed a lot of Ionic stuff with Lumx and it works  fine. A few css classes clashes but you can get along.

Yes you can, like @jensoleg said, you must remove some Ionic stuff, or add Ionic dependencies separately ;).

Thanks :) And are the performances okay ? This is one point I'm a little afraid of actually but as I haven't tried yet, I might worry for nothing.

Performances are correct. It's not perfect, and it can't be as well as a native app of course :).

Performance depends on ...a lot of things. I have replaced UIWebView with WKWbeview resulting in HUGE performance and ressource improvements. Checkout https://github.com/Telerik-Verified-Plugins/WKWebView. WKWebview is not available for Cordova now but this plugin does the job until it is ready - on IOS.

Thanks a lot for the feedback :) I'll try it this week.

Can anyone provide some guide to use lumx instead of ionic css?

i use lumx with ionic to get datepicker. but when i run it, following error appear on console browser
TypeError: undefined is not a function
at Scope.e.openPicker (http://localhost:8100/lib/lumx/dist/lumx.min.js:6:3250)
at $parseFunctionCall (http://localhost:8100/lib/ionic/js/ionic.bundle.js:20270:18)
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:52468:9
at Scope.$eval (http://localhost:8100/lib/ionic/js/ionic.bundle.js:22326:28)
at Scope.$apply (http://localhost:8100/lib/ionic/js/ionic.bundle.js:22425:23)
at HTMLDivElement. (http://localhost:8100/lib/ionic/js/ionic.bundle.js:52467:13)
at HTMLDivElement.eventHandler (http://localhost:8100/lib/ionic/js/ionic.bundle.js:10939:21)ionic.bundle.js:19532 (anonymous function)ionic.bundle.js:16482 (anonymous function)ionic.bundle.js:22427 Scope.$applyionic.bundle.js:52467 (anonymous function)ionic.bundle.js:10939 eventHandler
how can i fix this?

We'll try to add example of usage with Ionic in the new documentation. But we do not use it a lot. Only @Argetloum used it on a project I think.
And for @monkeymars, I'm not sure. Maybe jQuery is missing? If not, we'll need more context. If you still need help, please open a new issue.

Can you guys, give us some sample/demo?
Thanks..


Chrome in IOS device with DASH and widevine

Have you read the FAQ and checked for duplicate open issues?
yes
What version of Shaka Player are you using?
3.1.2
Can you reproduce the issue with our latest release version?
Last version got problem with safari and fairplay https://github.com/google/shaka-player/issues/3598
If custom app, can you reproduce the issue using our demo app?
yes
What did you do?
I am trying to play a video in chrome browser in IOS device with DASH and widevine and it doesn't work.
Is it expected? I get error 3016 category 4 - Unsupported source type
thanks!

Yes it is expected. On IOS shaka only supports hls natively not dash
https://github.com/google/shaka-player/issues/3509#issuecomment-875687681

Unfortunately, Apple doesn't give us the tools to play DASH on iOS generally.  The MediaSource standard needed to implement DASH is only available in Safari on iPad and desktop.


add test for geom opt convergence

there needs to be some testing for when the geometry optimisation does not converge in a specified number of steps and raises some error

I think the current behaviour is that it just stops after the number or steps or reaching the force threshold, without any error.
I assume we'd still want to return the Atoms object in Python and/or save the structure, so we don't necessarily want to throw a proper error. Maybe just raise a warning?
(As noted in #83, there's not currently much control over this in the CLI, but should hopefully be straightforward to add as additional kwargs dictionaries)

practically what we need is to read/caputure the log and check is the fmax is smaller than what is expected... we need to see if we can get this in an elegant way without parsing the log


Bump ostree-ext to 0.15.1 and use proper digests where possible

Signed-off-by: John Eckersberg<EMAIL_ADDRESS>

/me hopes to not break everything this time


Allow creating tags from tag management screen

I feel like this would not be too useful unless you knew exactly how to spell their name, and there is no Reddit username search we could tap into


Consider publishing a terragrunt container to dockerhub?

Would you consider hosting a Dockerfile and publishing a terragrunt container to dockerhub? I could probably do an initial PR for a Dockerfile, but someone from Gruntwork would need to setup the Dockerhub builds...
(There are lots of services for building and publishing containers, but the easiest I've found is just to use the Dockerhub automated builds, configured to trigger on branch updates to create a "latest" image and on tags to created tagged images.)

In the future, yes, definitely. But right now, we're too buried to do the work to set up the CI auth, publishing, etc.

I can open a PR for a Dockerfile at least. And I'll post a screenshot of how I setup Dockerhub builds. It was super easy, maybe 10 minutes of work.
I would suggest including only terragrunt, and let the user provide their own terraform (perhaps with a multi-stage build, for example). Otherwise, the image would have to tie a specific terraform version to the terragrunt container, or use a tool like tfenv to auto-install/select a specific version....

Here's the dockerhub build settings I've used for another project. It builds and publishes the latest image on any push to the master branch, and version-tagged images whenever a GitHub tag is created.


[REVIEW] ljn7

GitHub Profile Link
https://github.com/ljn7

Your github profile looks great, Here are few suggestions:

Consider removing the profile view badge since it doesn’t reflect actual views.

Consider adjusting the style of your languages and tools section to enhance clarity.

Aim to engage more in code reviews, issues, and pull requests for greater collaboration.


CMS Admin

file tree to browser content/modules
text editor
split view: editor on one side, live view on the other

dev start will open this view. An idea is to start dev view in an iframe, and add just a "phenomic toolbar" which allow you to show/hide the split view with the editor. Should not be a lot of work for v0.1 of this admin :)
This will be handy for "writers".

Recently i found Contentful, looks interesting https://www.contentful.com/blog/2016/06/07/contentful-ruby-static-sites/

I like the idea. Did you tried prose.io? It's simple markdown editing tool fot github.

Netlify CMS is being re-written in React. This is definitely my choice for a CMS Admin based on Github once it was merged to master branch.
Check it out https://github.com/netlify/netlify-cms/tree/react-pr
Also there is one thing you have to consider: There is no way to login to Github using Oauth 1 without a server. So you might need a server running somewhere or use Netlify hosting service for login to Github

I found prismic.io is pretty cool too. Will you guys write how to use prismic with phenomic too  like this one https://phenomic.io/docs/usage/cms/netlify/ ?

Good idea. I don't have time for this but any help to document existing solutions is appreciated.

@muhajirframe Prismic.io and Netlify CMS are different, Netlify CMS hooks up to Github Pages and provide the UI for interacting with content. Prismic.io, on the other hand, manages all content and provide them via the API so you need to pull it before building your static site

@MoOx I thought of developping a small admin software based on a wysiwyg editor like this : https://github.com/timurtu/markup . The idea is to browse and create new pages/blog posts locally and then push everything on some repository and use the git hooks to automatically deploy the changes :)
This way everyone could use phenomic everyday once it is setup ! What are your thoughts on this ? Would it be a good thing ?
I had this idea because I dislike administration interfaces in CMS, they are security problems and are not easy to use. Another perk with using an external software would be to be able to do "offline editing".

@farfeduc hi there, so it's markdown editor right? There are many open source editor avaiable (based on Electron). Why reinventing the wheel?

@thangngoc89 I agree with you but I don't plan to reinvent the wheel. My goal would be to build upon an existing markdown editor, add some features and make some adjustments :
The new features would be like :

simple deployement (automatic git push at the press of a button to publish a new version)
wysiwyg editor only as an option (not everyone is familiar with markdown)
file tree in the sidebar to edit/create pages, blog posts, custom elements...

In the future we could still add more things to optimise the user experience.
The idea behind the number 2 is to make phenomic a more popular solution. If anyone can use it to publish content, only the setup would need some developper skills and such.

User land thing.


Feature request: Un-align declarations

The Clean ABAP style guide suggests to not use chaining and not to align type declarations.
ABAP Cleaner provides the rule "Unchain into multiple statements", but any previous alignment is not removed. Could this be an option or another rule?
Example:
PARAMETERS:
  p_short  TYPE i,
  p_longer TYPE char20.

Result:
PARAMETERS p_short  TYPE i.
PARAMETERS p_longer TYPE char20.

Expected:
PARAMETERS p_short TYPE i.
PARAMETERS p_longer TYPE char20.

Can you check if it's not automatically aligned after unchaining by the align declarations rule? You can see which rules applied in the preview window. I was also a bit surprised alignment across multiple statements is a feature here (https://github.com/SAP/abap-cleaner/issues/14#issuecomment-1554209714).

I should have mentioned this: The rule "Align declarations" is inactive for these examples.

You got it right, Jörg-Michael. 👍

Hi ConjuringCoffee,
in the next release, the "Align declarations" rule will allow you to specify how much alignment you want:

You can select this independently for chains, non-chains, and structures (because Pretty Printer behaves differently for those, too). Everything that is not aligned can be condensed with the last option, thus removing spaces from any previous alignment.
So, with "align name, TYPE, LENGTH, VALUE etc." and activated "Condense …", you get:
    CONSTANTS: lc_any_price           TYPE ty_price           VALUE 1200,
               lc_other_price         TYPE ty_price           VALUE 1000,
               lc_num_contract_change TYPE ty_sequence_number VALUE 1,
               lc_start_date          TYPE ty_start_date      VALUE '20220312'.

    CONSTANTS lc_pi      TYPE p LENGTH 10 DECIMALS 10 VALUE '3.1415926536'.
    CONSTANTS lc_e       TYPE p LENGTH 8  DECIMALS 10 VALUE '2.718281828'.
    CONSTANTS lc_sqrt_2  TYPE p LENGTH 8  DECIMALS 4  VALUE '1.4142'.
    CONSTANTS lc_sqrt_32 TYPE p LENGTH 8  DECIMALS 10 VALUE '5.6568542495'.

With "align name and TYPE" and activated "Condense …":
    CONSTANTS: lc_any_price           TYPE ty_price VALUE 1200,
               lc_other_price         TYPE ty_price VALUE 1000,
               lc_num_contract_change TYPE ty_sequence_number VALUE 1,
               lc_start_date          TYPE ty_start_date VALUE '20220312'.

    CONSTANTS lc_pi      TYPE p LENGTH 10 DECIMALS 10 VALUE '3.1415926536'.
    CONSTANTS lc_e       TYPE p LENGTH 8 DECIMALS 10 VALUE '2.718281828'.
    CONSTANTS lc_sqrt_2  TYPE p LENGTH 8 DECIMALS 4 VALUE '1.4142'.
    CONSTANTS lc_sqrt_32 TYPE p LENGTH 8 DECIMALS 10 VALUE '5.6568542495'.

With "align name only" and activated "Condense …":
    CONSTANTS: lc_any_price TYPE ty_price VALUE 1200,
               lc_other_price TYPE ty_price VALUE 1000,
               lc_num_contract_change TYPE ty_sequence_number VALUE 1,
               lc_start_date TYPE ty_start_date VALUE '20220312'.

    CONSTANTS lc_pi TYPE p LENGTH 10 DECIMALS 10 VALUE '3.1415926536'.
    CONSTANTS lc_e TYPE p LENGTH 8 DECIMALS 10 VALUE '2.718281828'.
    CONSTANTS lc_sqrt_2 TYPE p LENGTH 8 DECIMALS 4 VALUE '1.4142'.
    CONSTANTS lc_sqrt_32 TYPE p LENGTH 8 DECIMALS 10 VALUE '5.6568542495'.

So the choice is now yours ;-)
Kind regards,
Jörg-Michael

Hi ConjuringCoffee and Fabian,
this is now available in release 1.4.0!
Kind regards,
Jörg-Michael


Configuring brew to use<EMAIL_ADDRESS>is not enough to rbenv install 2.2.10 - Ubuntu

I'm using Ubuntu 20.04.
Using rbenv for Ruby 3.0.0, working properly. I couldn't install 2.2.10 because of an openSSL problem, so I installed & configured brew.
Using:
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.0)" rbenv install 2.2.10
will return
make[2]: Leaving directory '/tmp/ruby-build.20210323110024.17998.sx5tX8/ruby-2.2.10/ext/openssl' make[1]: *** [exts.mk:205: ext/openssl/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/tmp/ruby-build.20210323110024.17998.sx5tX8/ruby-2.2.10/ext/date' linking shared-object pathname.so make[2]: Leaving directory '/tmp/ruby-build.20210323110024.17998.sx5tX8/ruby-2.2.10/ext/pathname' linking shared-object nkf.so make[2]: Leaving directory '/tmp/ruby-build.20210323110024.17998.sx5tX8/ruby-2.2.10/ext/nkf' make[1]: Leaving directory '/tmp/ruby-build.20210323110024.17998.sx5tX8/ruby-2.2.10' make: *** [uncommon.mk:189: build-ext] Error 2
full log attached
ruby-build.20210322181537.6359.log

This was the solution I found, and with a small tweak it worked.
Thanks to EliKazap
Edit /etc/apt/sources.list and add this at the end of the file: deb http://security.ubuntu.com/ubuntu bionic-security main
then
Run sudo apt-get update && apt-cache policy libssl1.0-dev

Run sudo apt-get install libssl1.0-dev

check if the version is correct with ./usr/local/ssl/bin/openssl version
and then
RUBY_CONFIGURE_OPTS="--with-openssl-dir='/usr/local/ssl/bin'" rbenv install 2.2.10

@cratag When doing the exact steps above, apt wants to replace the OpenSSL package with the 1.0 version for the whole system - when I try to install it, apt will remove all packages referring OpenSSL, like node. There are dozens of packages that will be uninstalled if I go that way.
There must be a method to install OpenSSL 1.0 alongside the current version just to


Allow user to add/remove custom drugs at run time

Sometimes I have had to make a single update of the package because of just 1 drug being not covered, which was needed in a single project, e.g. Mounjaro
there should be an optional method in the library to add your own custom drug or synonym. E.g. add_synonyms({"mounjaro": "tirzepatide"})
I would suggest three run time functions that you can call:

(1) add synonyms of existing drugs add_synonyms({"mounjaro": "tirzepatide", "xxxx":"yyy", "xxxx":"yyy" etc })
(2) completely new drugs add_drug("name", [synonyms], {data})
(3) exclusion - to modify the library at runtime. add_exclusion(surface form)

Because everyone will have their own custom requirements

Added in version 2.0.0


Generated resources should go in a dedicated folder

Currently, the top-level directory includes configuration files, resources and readmes but it also contains Turbo Fat.exe, Turbo Fat.pck and Turbo Fat.x86_64 files. These compiled artifacts should go in some kind of a generated bin, output, target or similar directory. If godot has a convention for this, we should follow it.
This directory's contents should also be in the gitignore. I've currently had some close calls almost adding huge 50 MB zip files to .git by mistake because we do not follow this practice.

Fixed in commit be43cf06240aea047042f3a0f62eccf6a0d7e197. Resources are now exported to the /export folder. The gitignore remains unmodified, but could possibly be changed to ignore /export/* or something like that.


Retry publishing uploaded artifacts if it times out

In a build with lots of artifacts (some of them quite big), we started experiencing errors like HTTP/1.1 408 Request Timeout [message:Request timeout for publishing /openzipkin/zipkin/zipkin/1.2.1-rc16] after enabling Maven Central sync. For an example, see https://travis-ci.org/openzipkin/zipkin/jobs/76288195
This PR enables a couple of retries to make that not an issue. One concern is that the number of retries is now hard-coded in the plugin; ideally that'd be configurable, but my hope is that this is good enough for an initial improvement.

Update: we've removed the artifacts bigger than a couple of megs, the publish request still times out, so it seems to be related more to the number of uploaded files as opposed to just their size.
If there's an established way to deal with this situation, then we'd be more than happy to adopt it of course. Feel free to RTFM me with a useful link :)

Thank you for this pull request.
We would like to change the plugin code, so that all publish requests to Bintray are asynchronous. Bintray can perform the publish asynchronously, and so the plugin should never get a time out for the publish request.
We will implement and release this soon.

That sounds great, thank you! Closing this PR then.

Is there anything I can do to help on this? If I understand correctly, https://github.com/bintray/gradle-bintray-plugin/blob/adb397a261b87e9baff9c264bd1347e61290a3fb/src/main/groovy/com/jfrog/bintray/gradle/BintrayUploadTask.groovy#L350 means the upload is still done synchronously.

Hey @abesto,
Thanks, but this change made to release 1.4 of the plugin (the "body = [publish_wait_for_secs: '-1']" line has been removed:
https://github.com/bintray/gradle-bintray-plugin/blob/master/src/main/groovy/com/jfrog/bintray/gradle/BintrayHttpClientFactory.groovy

Oh, so it is. Thanks.
What does this mean for the timeout? Will the backend now use its default timeout for the maven sync operation, or is it now done asynchronously from serving the request?

The publish request should now be completely asynchronous, meaning Bintray should send a response to the plugin immediately, while processing the publish process, which might take some time to finish.

Perfect, thank you so much!

Thanks so much. This is so helpful


Remove pnpm-only restriction on preinstall

Resolves #7 by removing restriction meant for local plugin development which unintentionally affects the end-user plugin usage in Node 14 + npm

Thanks for opening the initial PR on this @georgkrause 🙌 I went ahead and opened this one to get the fix in without you needing to go back to rewind your PR


"Nicolae Titulescu" is listed in the drop-down menu

Description:
When user writes "Nicolae Titulescu" the location appears in the drop-down menu next to the comune and the county witch is a part according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Nicolae Titulescu"
Expected results
The location appears in the drop-down menu as "Comuna Nicolae Titulescu, OLT"

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Nicolae Titulescu"

Expected results
The location appears in the drop-down menu as "Sat Nicolae Titulescu, ** OLT** (Nicolae Titulescu)".


Napari 0.4.10 not backwards compatible

🐛 Bug
Upgrading to napari 0.4.10 results in pytest failure, whereas a pytest run with 0.4.8 succeeds.
See elastix_napari CI for more info.
Pytest indicates that the test functions are missing required arguments, which were previously not necessary.
Unfortunately the suggested fix (setting the variables with a {'bind': None} dictionary in the decorator doesn't work)
Any suggestions on how to fix this in the plugin?
To Reproduce
Steps to reproduce the behavior:

Upgrade or install latest napari
clone elastix_napari plugin repo
run pytest

Expected behavior
Pytest should succeed like it did with napari 0.4.8
Environment
python > 3.7 (somehow python 3.7 still succeeds)

Any other relevant information:

The failure has something to do with arguments to the plugin tests that are now required, but setting them with the suggested dictionary ( {'bind': None} ) doesn't work.
Additional context

thanks for the report @ViktorvdValk and sorry about that.
looks like that's a regression that git bisect puts at #2662 ... will have a look today

fix in #2949 @ViktorvdValk ...
but, just so you have a better sense for what's causing this (and a workaround before the next update).  This is a bug caused by napari not calling the function that tells magicgui how to handle napari types (utils._magicgui.register_types_with_magicgui) before your program calls magicgui.
It should be the case that you simply annotating something as a napari.layers.Image triggers that call (and that's what is fixed in #2949).  I fixed a similar bug in #2891, but I apologize that I missed this one.
In the meantime, if you want to just make your tests work again, you could add import napari.types somewhere before your @magic_factory usage.

@tlambert03
Thanks a lot for the quick response.
And your workaround does the trick on the CI. 👍


[SUPPORT] Hudi with SqlQueryBasedTransformer fails->  spark error exit 134 or exit 143 in "isEmpty at DeltaSync.java:344" : Container from a bad node: container_yy on host: xxx Exit status: 134

Describe the problem you faced
We are running a spark-submit command with an SQL transformation. The data from the kafka topic is then temporarily registered in hive's default db, and applies a very simple sql to it. We see the job fail quite soon. Note:  without the sql transformation it succeeds for same parameters.
I wonder if maybe since now the data needs to go to hive for a bit, it needs a lot more resources than without sql transformation. So first attempts where to increase executor and driver memory.. but no difference: still errors out.
This is more related to spark settings probably than to hudi. But maybe someone has experience in the context with hudi?
To Reproduce
Steps to reproduce the behavior:
spark-submit command with sql transformation to take data from kafka topic, and write slighty modified to another table:

spark-submit --master yarn --deploy-mode cluster --driver-java-options "-Djava.security.auth.login.config=./client.jaas"
--conf "spark.executor.extraJavaOptions=-Djava.security.auth.login.config=./client.jaas"  --conf spark.app.name=myapp
--conf spark.yarn.maxAppAttempts=4  --conf spark.yarn.am.attemptFailuresValidityInterval=1h  --conf spark.yarn.executor.failuresValidityInterval=1h
--conf spark.task.maxFailures=8   --principal myprinc@myserver  --keytab mykeytab
--files client.jaas,mykeytab,kafka.client.truststore.jks   --class org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer
--jars /opt/cloudera/parcels/CDH-7.2.2-1.cdh7.2.2.p3.7839477/lib/hive/lib/hive-service-3.1.3<IP_ADDRESS>.3-1.jar,
/opt/cloudera/parcels/CDH-7.2.2-1.cdh7.2.2.p3.7839477/lib/hive/lib/hive-jdbc-3.1.3<IP_ADDRESS>.3-1.jar,/opt/cloudera/parcels/CDH/lib/hbase/hbase-client.jar  abfs://mystorage/hudi-utilities-bundle_2.11-0.6.0.jar

--props abfs://stora/myproperties
--target-base-path abfs://storagemytransfo/unmanaged/mytable
--table-type COPY_ON_WRITE
--source-class org.apache.hudi.utilities.sources.AvroKafkaSource
--target-table refactored_created_by_hue_smalltransfo
--schemaprovider-class org.apache.hudi.utilities.schema.FilebasedSchemaProvider
--source-limit 40000

--transformer-class org.apache.hudi.utilities.transform.SqlQueryBasedTransformer
--hoodie-conf hoodie.deltastreamer.transformer.sql='SELECT data[0].id as id FROM < SRC > '
--executor-memory 4G
--driver-memory 2G \
Expected behavior
No error during that stage, correct landing of transformed data in target table.
Environment Description
Hudi version : 0.6.0
Spark version :2.4.5
Hive version :Hive 3.1 on Tez
Hadoop version :3.1.1
Storage (HDFS/S3/GCS..) : abfs (azure blob storage)
Running on Docker? (yes/no) :no
Stacktrace
YARN: Driver stacktrace
org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 1.0 failed 8 times, most recent failure: Lost task ... ExecutorLostFailure ...Container from a bad node: container_e29_1632244056069_1301_01_000009 on host: xxx Exit status: 134. Diagnostics: 2 WARN consumer.ConsumerConfig: The configuration 'hoodie.deltastreamer.transformer.sql' was supplied but isn't a known config.
Note: running same job also exits with exit code 143 instead of 134. I also added one of the warnings, not sure if they matter.
SPARK UI:
isEmpty at DeltaSync.java:344``` + same error as from yarn ( Container from a bad node: container_yy on host: xxx Exit status: 134)

@JB-data

--hoodie-conf hoodie.deltastreamer.transformer.sql='SELECT data[0].id as id FROM '

Is this actually valid SQL?
The error you showed is not really the root cause. Can you track down to the application stacktrace and see which part of code threw exceptions?

@xushiyan
Thanks for reply. Indeed the sql should say FROM sometable... I will correct.
Where exactly should we check the application stacktrace? In both the the yarn application logs as the SPARK UI stacktrace I only find back the fact the container exited with code 134 or 143 (changes ), but not exactly why. The only place where I can infer where this happens is the stage in the spark ui that mentions:
isEmpty at DeltaSync.java:344
so I am assuming it comes from there?

The error comes from :
https://github.com/apache/hudi/blob/release-0.6.0/hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java line 344 : the check if avroRDDOptional.get().isEmpty() . I wonder if it could be due to a wrong schema provided, as avroRddOptional is initialized in line 311 and this requires the schema to be fetched.

Hi there,
I have an identical issue when enabling my customized transformer class in Hudi 7.0 on EMR.  the transformer class is performing mapPartitions operation.

yeah. probably schema issue. @JB-data : Can you confirm that the target schema you set in your configs matches the output from sql transformer?

@guanlisheng :  Are you facing the same issue as author or is it diff?
If its diff, then here is my response.
Transformer is an interface and I see you have mentioned you are using a custom transformer. So, I guess we might have to look into the custom transformer and see whats happening.
@PublicAPIMethod(maturity = ApiMaturityLevel.STABLE)
  Dataset<Row> apply(JavaSparkContext jsc, SparkSession sparkSession, Dataset<Row> rowDataset, TypedProperties properties);

Hudi just calls into this method for transformation.

hey @nsivabalan , thanks for the reply.
very similar and the only difference is the dataset operation vs a spark SQL.
additional clue is that the transformer works well with HoodieIncrSource and such incident happens with JsonKafkaSource.

@guanlisheng : Can you please file a new github issue with all details and CC me.

hey @nsivabalan
did not file one as I think it might be redundant with the one.  and we share the same stack trace

@JB-data : Do you have any updates for us. Can you confirm that target schema you set is aligned with the output from after transformation?

@guanlisheng : I see your issue is slightly different, as you claim that you could able to get it working w/ one source, but not w/ jsonKafkaSource. Can you please file a new github issue w/ all details. we can take a look.

@JB-data : Will close the ticket due to no activity. we can't do much w/o further logs from your end.
But feel free to re-open if you are still looking for assistance. would be happy to help.


try/except and try/finally in nopython mode

Any updates on this?

None so far.  You can raise an exception in nopython mode with static arguments and it will propagate out to the Python interpreter.

Basic support for try/except was implemented in https://github.com/numba/numba/pull/4902 for version 0.47.0

Not sure  when it was added, but the construct appears to work on current master:
from numba import njit

@njit
def foo():
    try:
        x = 1
        raise Exception
    except Exception:
        pass
    finally:
        x += 1
    return x

print(foo())

 💣 zsh» python issue2097.py                                                                                :(
2

Hence I am closing this issue as the functionality requested has been implemented.


Merge RNA-seq and TempOSeq snakefiles

Now that the temposeq workflow is mostly snakemake, there are minimal differences between the two workflows other than the quantification step, so we should merge those files back together.

Closed by #66


Update minified script to latest version.

I found $browser.msie in the minified script.
Just only minified this  using yuicompressor-2.4.7.jar.

thx


Add support for /away

Set localvar which is picked up by weechat and which should be picked
up by screen_away.py and similar tools.
Thanks to Tor Hveem (@torhve) for inspiration.
Fixes: #161
This should also make /away D

LGTM - thanks!


How to Show Overlay below the Dropdown

How can i show the overlay under/below the dropdown. If there's any option which can be set true/false to hide/show the dropdown button as well. please let me know.
This is what i want something like that.

looking for the same


Schema error, can you guide me?

Hello, I am having this error making I want to synchronize data from "tap-postgres" to "target-postgres", If I do it from "tap-postgres" to "csv" it works without problem, I don't understand what may be happening.

@INGCRENGIFO are you all set here? Don't want to leave you in limbo if you accidentally clicked close 😄

@AlexanderMann you are very kind, I managed to find the answer on stackoverflow :)

@INGCRENGIFO and @AlexanderMann - I'm facing a similar issue while trying to synchronize data from "tap-postgres" to "target-postgres". What is the solution to fix it?

@AkshayMAnvekar my guess here is that that tap-postgres doesn't produce a valid Schema instance, and I think you have to provide it with a schema of your own? @INGCRENGIFO might have some insight.

@AkshayMAnvekar my guess here is that that tap-postgres doesn't produce a valid Schema instance, and I think you have to provide it with a schema of your own? @INGCRENGIFO might have some insight.

@AkshayMAnvekar mi conjetura aquí es que eso tap-postgresno produce una instancia de esquema válida, y creo que debe proporcionarle un esquema propio. @INGCRENGIFO podría tener alguna idea.

My problem was that I had not selected the table to synchronize in the schema.

@AkshayMAnvekar mi conjetura aquí es que eso tap-postgresno produce una instancia de esquema válida, y creo que debe proporcionarle un esquema propio. @INGCRENGIFO podría tener alguna idea.

My problem was that I had not selected the table to synchronize in the schema.


Society Checking - 26654 - Volga Tatars

Match to xd558 and tata1255 both seem appropriate. Society lat-lon seems fine. Looking at liner notes revealed some slight metadata errors. Corrections below.

Lat-lon corrections

Song
Current lat
Current lon
Correct lat*
Correct lon*

9757
53.28
58.61
55.68
54.27

9758
55.55
50.93
55.13
54.05

9759
55.55
50.93
55.2
54.57

9760
55.55
50.93
55.12
53.77

9761
55.55
50.93
55.08
53.55

9762
55.55
50.93
55.23
54.53

9763
55.55
50.93
55.38
54.62

3691
60.27
59.16
55.26
48.11

3693
55.18
50.72
55.26
48.11

*based on map in liner notes and web research

Issues with song 3691

The following metadata corrections are needed: |   |
-- | -- | --
  | Society_location | Cheremshany, Kaibitskii District, Republic of Tatarstan, Russia
  | archivalsource_id | T1715.5
  | Genre | Cradle song
  | Performers | Kh. Gainutdinova
  | Instruments | Female solo
  | Vocalist_gender | Girls
Also, the audio is incorrect, and needs to be replaced with correct audio.

Everything done except audio correction

Audio corrected


[SPARK-33047][BUILD] Upgrade hive-storage-api to 2.7.2

What changes were proposed in this pull request?
This PR aims to upgrade Apache Hive hive-storage-api library from 2.7.1 to 2.7.2.
Why are the changes needed?
storage-api 2.7.2 has the following extension and can be used when users uses a provided orc dependency.
HIVE-22959 : Extend storage-api to expose FilterContext
HIVE-23215 : Make FilterContext and MutableFilterContext interfaces
Does this PR introduce any user-facing change?
Yes. This is a dependency change.
How was this patch tested?
Pass the existing tests.

Test build #129309 has started for PR 29923 at commit 9239285.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/33924/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/33924/

Merged build finished. Test PASSed.

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

Could you review this please, @srowen ?
This is a helpful and safe patch when we are going to use Apache ORC 1.6.x which requires additional FilterContext from hive-storage.

Seems fine as a minor dependency update.

Test build #129309 has finished for PR 29923 at commit 9239285.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Thank you, @srowen . The Jenkins failure is irrelevant to this and GitHub Action passed.
org.apache.spark.storage.BlockManagerDecommissionIntegrationSuite.verify that shuffle blocks are migrated

cc @holdenk for the decommission integration suite flakiness.

Merged to master for Apache Spark 3.1.0 on December 2020.

Thanks for the heads up @dongjoon-hyun cc @cloud-fan who committed the most recent change to this suite as well.

late LGTM


Can I contribute bubble sort visualization algo. ?

Please assign me!!

Yup , go ahead and make a pr , and dont forget to mention the title and techstacks that you have used . Also mention this issue in your pr by # your issue number .


Prepare list of mentors and mentees

We will need a formal list of who is mentoring who. We have quite a few more experienced members and then a large number of inexperienced ones. We currently know that @kelvinklufio is mentoring @CollinsLord . That is the only one I know of.
This task requires writing rather than technical skills. It would be suitable for a junior. @Prince-linux please label this as "Junior".

Oh, yeah, I am current mentee less. Anybody interested?

I am

@f1d0-1 ok I guess you came first, so ...


.Net Test Log output shows messy code for Chinese characters

Environment data
dotnet --info output:
.NET Core SDK（反映任何 global.json）:
 Version:   3.0.100
 Commit:    04339c3a26

运行时环境:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100\

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  3.0.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

VS Code version: 1.40.2
C# Extension version: 1.21.8
Steps to reproduce

Write a test and cilck run test/debug test
Look at .Net Test Log output

Expected  behavior
shows Chinese characters normally like OmniSharp Log output
Actual behavior

I have tried many workarounds but failed.

I believe the fix here would be in OmniSharp. It needs to either expect the console encoding from the output of the unit test runner, or set the console code path to UTF-8 before spawning the unit test runner process (P/Invoke SetConsoleOutputCP(CP_UTF8) on Windows) or maybe the runner has a way to specify the encoding.

wait for solution

this is the same issue as https://github.com/OmniSharp/omnisharp-roslyn/issues/1763
I think we should close this since it's internal Omnisharp server issue

Closed since the fix should be in omnisharp-roslyn.

Up, same issue.

Here is a workable solution to solve this issue if you are using windows. Please check the option "Use Unicode UTF-8 for worldwide language support"
You can see this option by going to Settings and then: All Settings -> Time & Language -> Language -> "Administrative Language Settings"
This is what it looks like:

Restart the system and then the output view will be fine.


Shell prints "invalid input" for certain valid inputs

Debug.Log("foo") prints  invalid input in the shell window, but also successfully logs "foo" to the Unity console.
var x = "hello" also prints invalid input, but then accessing x yields the value of x.
Submitting the empty string also prints invalid input. Arguably it should just redraw the command > prompt.

Thanks for going ahead and creating the PR for this! 👍


Kaizala vers 1.125.105091811 in IOS 12.2 (IPhone SE)

Hi,
Microsoft Kaizala mobile App  (vers 1.125.105091811) when register it crashes in IOS new version 12.2 (IPhone SE)
Cheers!
Renato Marques

@rsvmarques - Thank you for submitting feedback.
I think the best way forward is if you can open a service ticket in your tenant so this can get resolved ASAP. Based on outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:  https://docs.microsoft.com/office365/admin/contact-support-for-business-products
If you don't mind please keep us posted here on the resolution and I really want to get this information you are discovering back into the docs.

@officedocsbot assign @mypil

@officedocsbot close


Where I run 'python train.py [-h] [--config [CONFIG]]'

Hello, I'm using Mac Os and I wrote 'python train.py [-h] [--config [CONFIG]]' on terminal (mac).
But it occured error: unrecognized argument.
Do I have to use Window command? or something else?

hello, have you solved the problem since I have the same question @bongfury


Problem Install Cartoview

Hello,
I would like to install Cartoview on my computer (Geonode 2.5.15+ Django 1.8.17 + Python2.7) in Ubuntu 14.04
I try to install Geonode 2.5.15 with :
sudo add-apt-repository ppa:geonode/release
sudo apt-get update
sudo apt-get install geonode
But it's not working.
Could you help me please ?

Hello @izelvor
please install geonode with this command pip install geonode
and follow the steps here
or by using docker from here

Hello,
Thank you for your answer but I can not install cartoview.
Here are the commands I used to try to install geonode. Can you tell me what I did wrong and why I can not install the software, please?

Python 2.7:
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
cd /usr/src
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
tar xzf Python-2.7.13.tgz
cd Python-2.7.13
sudo ./configure
sudo make altinstall
pip-python
sudo apt-get update
sudo apt-get upgrade
apt-get -y install python-pip
Django 1.8.17
pip install django==1.8.17
geonode 2.5.15
pip install geonode

I have this error :
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/psycopg2
Storing debug log for failure in /home/izelvor/.pip/pip.log
What I have to do to finalize the installation without error ?

you need to install some libraries with this command
sudo apt-get install python-virtualenv python-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpq-dev libgdal-dev git default-jdk

Thank you very much, I was able to install geonode with your command line.
But I wanted to continue the installation of cartoview by following the instructions in this link.

pip install cartoview -> ok
django-admin.py startproject --template=https://github.com/cartologic/cartoview-project-template/archive/master.zip --name django.env,uwsgi.ini,.bowerrc cartoweb -> ok
cd cartoweb -> ok
python manage.py makemigrations app_manager
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 328, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/geonode/base/models.py", line 56, in
from geonode.utils import bbox_to_wkt
File "/usr/local/lib/python2.7/dist-packages/geonode/utils.py", line 30, in
from osgeo import ogr
ImportError: No module named osgeo

I would like to know if it's correct this error and if I can continue with the next command : python manage.py migrate people
Thank you in advance for your help

Hello,
I installed Geonode 2.5.15 on ubuntu 14.04.
Everything seemed to be okay, but, when I try to UPLOAD a GeoTIFF or a Shape File on the Geonode Website, I'm getting the following error message:
"[Errno 111] Connection refused". Has anyone ever got an "Errno 111" on Geonode?
Sincerely,

Configure Geoserver before uploading layers from here

What is the address to connect to geoserver? I tried with this address localhost:8080/geoserver, but the page does not exist and I can not connect. How do I know if geoserver has been installed? What is the python command to start geoserver?
Sincerly

(option 1): in geonode folder type : paver start_geoservre
(option 2):
install tomcat on ubuntu the download geoserver war file from here and rename downloaded file to geoserver.war and cp it to webapps folder in tomcat home

Thank you,
Which version of tomcat should I install on ubuntu 14.04?
How to install tomcat and java 8 for geoserver 2.9?
Do I have to install after PostGIS?
Sincerly

Use this guide
to install tomcat
And then follow step in my previous comment
The secend part of your question if you want to use cartoview you have to
install postgis if you are testing geonode only you don't need to install it
On Tue, May 9, 2017, 2:28 AM izelvor<EMAIL_ADDRESS>wrote:

Thank you,
Which version of tomcat should I install on ubuntu 14.04?
How to install tomcat and java 8 for geoserver 2.9?
Do I have to install after PostGIS?
Sincerly
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cartologic/cartoview/issues/16#issuecomment-300027737,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXQvfjvlOYJCSRggBgx2zGX8xcJRXOWIks5r37NGgaJpZM4NMEHN
.

Hello,
I have installed tomcat 8 with java 8. I must now test the application to see if everything is properly installed.
Which version of postgresql / postgis should I install for the next step?
Looking at this page, there are different packages to install? Do I have to install other packages from this list?
Thank you again for your help.

postgres 9.5 , postgis 2.2 required
for ubuntu 16.04 you can install these packages to compile required python libraries using this command
sudo apt-get install python-virtualenv python-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpq-dev libgdal-dev git default-jdk python-gdal -y

note : you can find required packages in our docker file(cartoview docker image based on ubuntu 16.04 so you can install the same packages) from here

Thank you for your reply.
I will try with Ubuntu 16.04
Sincerly

you can continue with ubuntu 14.04
for ubuntu 1404 you can install these packages to compile required python libraries using this command

sudo apt-get install python-virtualenv python-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpq-dev libgdal-dev git default-jdk  -y
pip install pygdal==1.10.1

I use virtualbox to run ubuntu. Do I have to install other software or libraries?

I tried to install geonode with docker but for the function make static_db, I had this error:
docker-compose exec cartoview bower install --allow-root
bower                            retry Request to https://bower.herokuapp.com/packages/angular-messages failed with ETIMEDOUT, retrying in 1.1s
bower                            retry Request to https://bower.herokuapp.com/packages/angular-material failed with ETIMEDOUT, retrying in 1.8s
bower                            retry Request to https://bower.herokuapp.com/packages/angular-resource failed with ETIMEDOUT, retrying in 1.4s
bower                            retry Request to https://bower.herokuapp.com/packages/angular-resource-tastypie failed with ETIMEDOUT, retrying in 1.0s
bower                            retry Request to https://bower.herokuapp.com/packages/normalize-css failed with ETIMEDOUT, retrying in 1.7s
bower                            retry Request to https://bower.herokuapp.com/packages/angular-bootstrap failed with ETIMEDOUT, retrying in 1.3s
bower                            retry Request to https://bower.herokuapp.com/packages/angular-drag-and-drop-lists failed with ETIMEDOUT, retrying in 1.9s
bower                            retry Request to https://bower.herokuapp.com/packages/ng-image-appear failed with ETIMEDOUT, retrying in 1.4s
bower                            retry Request to https://bower.herokuapp.com/packages/lf-ng-md-file-input failed with ETIMEDOUT, retrying in 1.9s
bower                            retry Request to https://bower.herokuapp.com/packages/angular-img-fallback failed with ETIMEDOUT, retrying in 1.6s
bower angular#1.5.9          EAI_AGAIN Request to https://bower.herokuapp.com/packages/angular failed: getaddrinfo EAI_AGAIN bower.herokuapp.com:443
Makefile:28 : la recette pour la cible « bower » a échouée
make: *** [bower] Erreur 1

What do I need to finalize the installation, please ?
Sincerly

Please can u help me with this error

please install latest version of cartoview using this command:
pip install cartoview -U --no-cache-dir

![screenshot from 2017-08-27 15-21-08](https://user-images.githubusercontent.com/20857536/29748815-59733b12-8b0d-11e7-9146-08be4e4582
Just tried it but doesnt seem to work

did you followed the steps in the docs ??

yes

yes

is this is your local machine or remote one?

local machine

ok please can you provide me with your local_settings.py

and python version??

please can u tell me where can i find local_settings.py file?

Python version is 3.5.2

okay we are using python 2.7

Installation Requirements¶
Install Python2.7
Install Django
please read the docs carefully
or use docker to avoid these errors

i also have already installed python 2.7.12

i also have already installed python 2.7.12

please be sure with version you are using with cartoview , from screenshot  you are not using virtualenv for cartoview setup as in docs please don't skip any step

ok thankyou. I just rechecked and i installed the virtualenv and stuff. Now the previous error which i got has vanished and ive got a more concise error

Can someone please help me?

please install geonode using this command:
pip install geonode

Thankou very much for the help you have given me so far hishamkaram.

you are welcome @NicholasDsouza1996

can u please solve this problem

install geonode package : it will solve the problem
pip install geonode

Thankyou very much Hishamkaram looks like after reinstalling geonode and cartoview my problem is solved.

I have a question i typed: python manage.py makemigrations app_manager
Output:
System check identified some issues:
WARNINGS:
base.ResourceBase.tkeywords: (fields.W340) null has no effect on ManyToManyField.
No changes detected in app 'app_manager'
What should i do?

ive completed it. Thanks a ton.


Provide underlying reason for a ChunkLoadError

Feature request

What is the expected behavior?
When a ChunkLoadError is thrown, you are able to catch it and determine the exact reason for it.
What is motivation or use case for adding/changing the behavior?
Knowing the underlying reason for that error, you will be able to make and appropriate action. For example, if the reason is 404 HTTP ERROR, that in our case mean, that application version is updated and current page needed to be refreshed in order to reload core chunks and obtain new urls for others.
How should this be implemented in your opinion?
I am not sure on that one, but any object that is provided along with error itself, containing reason would be sufficient.
Are you willing to work on this yourself?
Yes, yet I'd need some advice on where to start from

You find the type in a type property on the error object. There is also request to the url.

@sokra thanks for your response, we've just examined type and request properties:

I'd say they don't help much to determine the underlying reason. In that particular case, it was 404, but we couldn't get that information.
Is there a chance to get that info somehow?
Any suggestions much appreciated.

The 404 error is mean the 404 error :smile: The simplest scenario - you delete files before build/deploy and use [hash]/[contenthash]/other hashes, but one of your visitors already had an open page, so files became unavailable on server

@evilebottnawi how is this relevant to a described scenario? :)

@neemah yep, my mistake :smile: wrote the wrong place

So, after research, I've found that chunks being loaded via script tag and that does not give any chance to get http error.
So the only strategy here is to make HEAD request with provided url and then decide what to do.
Thanks, I guess that is common scenario, might be worth to note somewhere.

So, after research, I've found that chunks being loaded via script tag and that does not give any chance to get http error.

yep, we already pass along all information we have.

Thanks, I guess that is common scenario, might be worth to note somewhere.

Send a PR to the documentation

We has the same problems.
To get rid of it, we check the error to be sure it's a chunk failed error, then we search in the cache to know if the cache doesn't have the file or if the chunk is invalid ( To avoid reload on syntax error )
As we know now our chunk is not in the cache, we trigger an update of our service worker and reload the page.
We use Offline Plugin to manage our service worker.
See code below :
errorBoundary.js :
  static getDerivedStateFromError(error) {
    const chunkFailedMessage = /Loading chunk [\d]+ failed/;
    if (
      error.name === 'ChunkLoadError' &&
      chunkFailedMessage.test(error.message)
    ) {
      return { hasChunkError: true };
    }
    return { hasCriticalError: true };
  }

  componentDidCatch(error, errorInfo) {
    if (this.state.hasChunkError) {
      // This is a chunk error, check if this error is normal or critical
      if (caches) {
        // Browser support caches, we can check chunk existence
        caches.match(error.request).then(r => {
          if (r === undefined) {
            // chunk is not in cache => application enctounter 404
            const isOnline = require('is-online'); // eslint-disable-line global-require
            isOnline().then(connected => {
              if (connected) {
                // user is online so missing chunk come from new version
                // we should update the service worker to update app
                window.swForceUpdate = true;
                OfflinePluginRuntime.update();
              } else {
                // user is disconnected, missing chunk come from offline
                this.setState({ isOffline: true });
              }
            });
          } else {
            // if chunk is found, then chunk may be corrupted
            this.setState({ hasCriticalError: true });
          }
        });
      } else {
        // if caches is not defined (not supported browser), then error is critical but we do not need to log to sentry
        this.setState({ hasCriticalError: true });
      }
    }
   ...
}

App.js :
    OfflinePluginRuntime.install({
      ...
      onUpdated: () => {
        // eslint-disable-next-line no-console
        console.log('SW Event:', 'onUpdated');
        if (window.swForceUpdate) {
          // if swForceUpdate, it means that a chunk is missing, reload the page immediately
          window.location.reload();
        }
        // Render a pop up to advise user to reload
      },
      ....
    });


result.get_memory() command

We have many requests to have the random numbers streamed in memory.
The basic idea is to get something to run like
backend = IBMQ.get_backend('name')
backend.update_settings('memory'=True)
job = backend.run(qobj)
result = job.result()

then we go
outcomes = result.get_memory()

outcomes will be
['010', '100', '111' ...]

[ ] make sure the experiment can work with it @taalexander  is doing this
[ ] pass the api
[ ] qiskit function exists to get_memory

need to do #1052 first

But do we agree that the measurement-level that the backend returns is set via backend.update_settings()? The other option is to use qobj to ask the backend for a particular level.
I like the update_settings, because this is not part of the payload of the experiment.
But if we agree on this, then we should update the spec/schema so that we do the same for openpulse. Currently, openpulse qobj has a config field meas_level which can be 0, 1, 2.. and is a required field.

Sure we should update. I think this is how we have to update a configurable backend.

It gets a bit messy, because the discriminators are part of qobj. So it's not a simple post-processing like in the case "memory"/"counts".


Added RD Calculator

Fixes Issue🛠
Closes #1580
Description👨💻
Added RD Calculator.
Type of Change📄

[ ] Bug fix (non-breaking change which fixes a bug)
[X] New feature (non-breaking change which adds functionality)
[ ] Style (non-breaking change which improves website style or formatting)
[ ] Documentation (non-breaking change which updates or adds documentation)
[ ] Responsiveness (non-breaking change which improves UI/UX on different screen sizes)

Checklist✅

[X] I am an Open Source contributor
[X] I have performed a self-review of my code
[X] My code follows the style guidelines of this project
[X] I have commented on my code, particularly in hard-to-understand areas

Screenshots/GIF📷
https://github.com/user-attachments/assets/ad136cd5-b574-4ccb-a666-4208e44c23f4

@Rakesh9100 This PR is reviewed & can be merged.


existing device-id commandline params not removed

if I have --device-id in my commandline params for my primary webui-user.bat, when this copies it, it keeps that and adds a second device-id flag. this appears to result in vram of 1 being used while the processing is split between the 2. should have everything split between them instead.

Just pushed a fix for this. I actually wrote myself a comment in the code to handle this case when I originally did the auto1111 integration and then forgot about it. Thanks for the reminder!
DF will now ignore any existing user-defined --device-id and/or --port arguments in the auto1111 startup script.


Update generated reference for kubeadm

This PR updates the generated kubeadm reference so that we will put, for example, <comma-separated 'key=value' pairs> rather than mapStringString for flag types.

@kubernetes/sig-cluster-lifecycle – could you please take a look at this PR and provide an LGTM from a SIG/technical perspective?

kubernetes/sig-cluster-lifecycle – could you please take a look at this PR and provide an LGTM from a SIG/technical perspective?

hi, i added LGTM above. the change seems fine.

/close
Another PR has updated the reference.


Added filesize to example page

closes #235

Can you please update the docs? Unsure in which places we need to document this exactly, though.

Since people can use it, it should be documented, though. Maybe https://github.com/svg-sprite/svg-sprite/blob/main/docs/templating.md?

@XhmikosR Ok, I'll check


Broke the iOS app reporting ability

Home Assistant release (hass --version):
0.63.3
Python release (python3 --version):
3.6.3
Component/platform:
device_tracking
Description of problem:
I successfully setup mu HA and was able to report location using iOS app. I then added device_tracking for my router which added multiple devices, one of them being my iPhone. I decided to merge them, and added the MAC from the router device to the iOS device. I got a warning of similar MACs, so I removed the MAC of the device added by the router.
At this time I've lost the ability to update my device location with the app, and the reported source became router, instead of GPS. Reverting the changes did not helped fix this. So I tried removing the known_devices.yaml and regenerating it. This recreated the router devices, but I was unable to recreate my mobile by forcing report, even though I get success message and no errors in the log.
I removed the router tracking config, but this did not help either.
Expected:
To be able to report using my iOS app after reverting the changes.
Problem-relevant configuration.yaml entries and steps to reproduce:
device_tracker:
  - platform: mikrotik
    host: <IP_ADDRESS>
    username: hass
    password: !secret mikrotik
    interval_seconds: 10
    consider_home: 180
    track_new_devices: yes

Add MAC from a router to the entry for the iOS app
Wait for the router to report and update the mobile device
Revert changes and try updating using the app

currently I get:
source type - (just a dash)

Found my issue - the 'ios:' component was not loaded. It was loaded the first time only as per the docs which created the reports but after restarting it was not.


Prevent focus from leaving modal by clicking on overlay.

Fixes #186.
If the user don't allow close when clicking on the
overlay, we need to stop the event so the focus won't leave the modal
(where the key handler is defined).
Changes proposed:

Prevent the mouse event when shouldCloseOnOverlayClick when set to false.

Upgrade Path (for changed or removed APIs):

None

Acceptance Checklist:

[x] All commits have been squashed to one.
[x] The commit message follows the guidelines in CONTRIBUTING.md.
[x] Documentation (README.md) and examples have been updated as needed.
[x] If this is a code change, a spec testing the functionality has been added.
[x] If the commit message has [changed] or [removed], there is an upgrade path above.

@antonhalim The issue is a bit old, but now I've found time to fix it. The problem was when clicking on the overlay, it changes the document.activeElement to the <body />. The solution prevents this change so the activeElement won't leave the modal.

BTW, it still reproducible on v3+.

Coverage decreased (-0.2%) to 86.265% when pulling ec9ab0a57742f36ee587707da77877a539811efb on diasbruno:fix/prevent-focus-from-leaving-modal-by-clicking-on-overlay into cba31dd19184d6ecc4a3710aefdce1c678cbe7b0 on reactjs:master.


Attr string graphs

resolves #42

restructure Attributes into their own folder
Adds swimlanes as a setting in the metadata as well as having it's own endpoint for saving/updating
Swimlane editor is created with basic settings for now
Swimlane data is auto generated when the swimlane is enabled

TODO:

[x] Create rendering of the swimlanes

[x] Attribute has an outline of the color of the attribute

Need to figure out the Nodata sections of the swimlane graph.  Should be empty, till data is set, and then that value until the next data item is set.

Added in the basics for specifying attribute value colors if the attributes are strings.
This includes a basic menu option in attribute settings to setup the colors.
If they are boolean it auto defaults to red/green (true/false).
CSS and styling needs to be updated for the Attribute color specification, the swimlane key and the swimlane hover tooltip.

Need to align scrolling features between the swimlane and the key so if there are multiple values they align properly.


Add support for FreeRTOS task notification arrays (IDFGH-7819)

The ESP-IDF FreeRTOS configuration does not support direct to task notifications at notification index > 0. This seems to only be a limitation of the FreeRTOSConfig.h file, which sets #define configTASK_NOTIFICATION_ARRAY_ENTRIES 1.
A clear and concise description of what you want to happen.
I think the cleanest solution would be to add a menuconfig option for FREERTOS_TASK_NOTIFICATION_ARRAY_ENTRIES to configure this value at compile time.
I changed the value in ~/esp/esp-idf/components/freertos/include/esp_additions/freertos/FreeRTOSConfig.h from 1 to 32 with no apparent issues.

@andrewteta I agree, this could be made configurable.
Please keep in mind, though, that according to the documentation in task.h, each notification value is 32 bits long. This means that in your case, you'll add 31 * 4 bytes * number of tasks in your system. You will fill up 1KB of memory with  less than 10 FreeRTOS tasks, including the system tasks (esp_timer, esp_event, etc.).

Thanks for reminding me of that. I think depending on the application, though the low overhead of direct-to-task notifications could outweigh some of the other IPC mechanisms (queue, for example). With memory consumption in mind, for example, I could get away with only 3 or 4 notifications, so it should be configurable to any value (1-32). I would like to add the feature myself, but I don't really know where to start with the menuconfig build system. I've been digging into the workings of esp-idf for a long time now, though so with some guidance I could probably make a pull request. Thanks for getting back to me!

@andrewteta I think just making the option configurable should work like this: Instead of defining it to 1, you just set it to a Kconfig option, similar to the tick hook configuration in the same file you mentioned above:
#define configUSE_TICK_HOOK                             CONFIG_FREERTOS_USE_TICK_HOOK

Then you add the Kconfig option to the FreeRTOS Kconfig file, but without the CONFIG_ prefix.
The probably more difficult part is adding a unit test. If we support this option, we want to have a test that checks if increasing the size of the task notification array actually works at runtime. There might be some edge cases, too.
Anyways, a Pull Request will always be welcome. Once you submit it, just be prepared that we add additional unit tests if you haven't provided them yourself. This might take a while since it'll be holiday season soon, so fewer colleagues will be available to review and process PRs.

Has this been implemented? In my app I am using ESP-IDF 5.0.3 but I cannot see such an option in the config and I get a failed assertion assert failed: ulTaskGenericNotifyTake tasks.c:5533 (uxIndexToWait < 1) when trying to notify at index 1.

@TobiasUhmannVoss This feature is only available from IDF version v5.1. New features are usually not backported to older releases (see our Support Periods documentation for more information). Is it possible for you to update to that version?

@0xjakob Thanks for the info! Until recently, I couldn't use IDF 5.1 due to some compilation problem with the new gcc and my TensorFlow Lite component but I solved my problem using an event group instead of task notifications already.


Mythril weapons don't support certain enchantments

In the wiki it says that the Concuss enchantment can be put on the Mythril Scythe, but in the actual mod you can't put it on any sort of scythe
It also says thundering can be put on both mythril hammer and halberd but you can't put it on the hammer
There is also a mistake in the wiki, the determined enchantment wiki
it should say that "determined is a chestplate only enchantment" but it says panicked instead of determined (perhaps a leak??? :D)

Hi Willow (is that better than calling you Apo? I felt like that's a more appropriate name),
Thanks for the bug reports lately! I can fix those as soon as I get home, and considering both of the bugs you've put in are on the curseforge page, ill be putting a new version of 1.6 out with a quick fix later today. As for Thundering, it must be a mixin issue from when I moved the mod to Mojang Mappings. I'll also fix that later today. As for Panicked, it used to be the name for Determined, but then it changed so drastically, I changed it to Determined. Panicked may be used in the future however, since I have a few cool ideas for maybe a optional addon mod with Trinkets in the future.
Thanks again for these! I'll set this to resolved when it's done later today.


bug: gracefully fail if IntersectionObserver is not available

Bug Report
Ionic version:
[x] 5.1
Current behavior:
When using collapsible headers on iOS devices running iOS versions <12.2 without IntersectionObserver support an error is thrown:
ReferenceError: Can't find variable: IntersectionObserver
Which I also leads to another error while trying to animate the large title during page transition, which prevents the app from working correctly:
TypeError: null is not an object (evaluating 'clonedTitleEl.innerText = largeTitleEl.innerText')
Expected behavior:
As there is no reasonable polyfill available for the IntersectionObserver API the exception should at least be handled so it just fails silently and also the animation should make sure clonedTitleEl and largeTitleEl exist before accessing properties on them.
Steps to reproduce:
Run any app using collapsible headers on a device without IntersectionObserver support.
Related code:
https://github.com/ionic-team/ionic/blob/794c3d4e9608968d8d5ef8b77f9b024fa0131572/core/src/components/header/header.tsx#L117
https://github.com/ionic-team/ionic/blob/8a02b28efeca81c25176ff52508b4005441e8314/core/src/utils/transition/ios.transition.ts#L182

Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic/pull/21222, and a fix will be available in an upcoming release of Ionic Framework.

@liamdebeasi Hi Liam, unfortunately only one part of the problem was fixed: the ReferenceError does not happen anymore in 5.1.1 but the exception in the page transition is still happening.

Fixed via https://github.com/ionic-team/ionic/pull/21339


One-Click Deploy Support on Digital Ocean

As the title says, I'd like people to be able spin up a Tanzawa blog on Digital Ocean with a single click. This issues is more of a milestone ticket than a specific task.
Beyond the work integrating any image building into the DO ecosystem, there are a number of tasks that must be completed first.

Update the Docker image to run a uWSGI server.
Create a packer script that will setup a VM with:

[x] docker
[x] nginx
[x] lets encrypt
[x] tanzawa running in docker
[x] a cron job to automatically update the system ( daily )
[ ] a cron job to automatically pull the latest version of Tanzawa. (hourly? )
[ ] Proper host/container filesystem mappings for staticfiles, media (file uploads), and the database

Instructions for how I can make new releases of the docker image either automatically, or a github action to build a new image
The packer VM must accept variables somehow for setting up the domain name to configure the .env files and nginx's lets encrypt.

Once we have a VM that can build a production ready Tanzawa instance, then the work can start to massage that script for DO integration.

Three main tasks remaining on this.

Figuring out how to handle environment variables that works for both develop & docker-composed Tanzawa
When Tanzawa is running via uWSGI / docker-compose, we probably want to to pass the environment variables to Tanzawa via Docker-compose and not have it read directly from a .env file.
What changes (if any) will this require when running Tanzawa directly where we specify the ENV_FILE.

Figure out how to setup SSL and document it.
Tanzawa has CSRF_COOKIE_SECURE=True set by default. This means that CSRF cookies are only sent over https. Unless we can automate SSL setup (with the domain as well?) you cannot login to Tanzawa. Locally during development I set it CSRF_COOKIE_SECURE=False (which is the Django default).
Maybe we should just set this to CSRF_COOKIE_SECURE=False as is the default so people can still login before / without SSL enabled.

Document how to use the jamesvandyne/tanzawa uWSGI image and the base http server (for those that want a Tanzawa only Droplet/machine).

Deprecated in favor of using a fully managed service like Fly.io as in #262 / #263


Disable or change behavior of "copy DLL to bin folder" when the target is a UWP app.

I'm currently building a UWP app consuming some libraries built with vcpkg.
Dlls are deployed automatically to the output directory, which is useless on a uwp target, as they need to be deployed in the AppX folder.

This issue hasn’t been updated in a year; if it is still an issue, please reopen.


Training Error

Hi Sir,
I successfully run the demo.py file but while running train.py I am getting this error, could anyone will help here. Help is appreciated.
Attaching.txt file here for the error
train_terminal.txt
Also, I m getting this error while running eval.py
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally
No checkpoint file found
Wait 60s for new checkpoints to be saved ...
No checkpoint file found
Wait 60s for new checkpoints to be saved ...
No checkpoint file found
Wait 60s for new checkpoints to be saved ...

Hi if you were able to run demo.py can you please help me out with this error:
https://github.com/BichenWuUCB/SqueezeSeg/issues/50
Thanks


[bug] Unexpected errors and warnings

Link to minimal reproducible example
https://github.com/rajathongal/walletConnect_error_reproduce
Summary
Getting these weird warnings and errors while using web3modal
Just by installing and running web3modal as it is in the documentation.
Failed to parse source map from<EMAIL_ADDRESS>file: Error: ENOENT: no such file or directory, open<EMAIL_ADDRESS>
WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from<EMAIL_ADDRESS>file: Error: ENOENT: no such file or directory, open<EMAIL_ADDRESS>
WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from<EMAIL_ADDRESS>file: Error: ENOENT: no such file or directory, open<EMAIL_ADDRESS>
WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from<EMAIL_ADDRESS>file: Error: ENOENT: no such file or directory, open<EMAIL_ADDRESS>
WARNING in ./node_modules/safe-json-utils/dist/cjs/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/rajathhongal/Desktop/Koinx/temp/testfe/node_modules/safe-json-utils/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/rajathhongal/Desktop/Koinx/temp/testfe/node_modules/safe-json-utils/src/index.ts'

List of related npm package versions
dependencies
  "dependencies": {
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "@web3modal/ethereum": "^2.6.2",
    "@web3modal/react": "^2.6.2",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-scripts": "5.0.1",
    "viem": "^1.2.12",
    "wagmi": "^1.3.8",
    "web-vitals": "^2.1.4"
  },```

dev deps

"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
}

Looks like issue is coming from node_modules/source-map-loader, which I assume is used by your build tooling (react-native scripts probably?). If it is trying to find non-existant sourcemaps, my best recommendation is to configure it so it skips those libraries.

It seems this might still be an issue for web3modal.
It's pretty hard to skip the search just for one package, when the package is signaling that it does have the maps.
https://github.com/facebook/create-react-app/discussions/11767#discussioncomment-1969071


SFTS: Bens

requires weights table for benefit, but not listed in the questions (related to outdura2 and outmap2) circular loop. This could be a mirror of the function weights as excel calculator pulls the outmap refernces.

added the same weighting as per function to benefit and updated google sheets


fixes to PR

@takashimamorino, can you take a look and merge the change before the dwn-sdk-js further deviates from this? Thanks!

Gentle ping again.

@thehenrytsai
I'm so sorry for the late reply. I was overlooking.
Thank you.


Make client timeouts configurable

Hi,
first of all thank you for providing this great tool!
I am currently testing it in our environment and noticed that some health endpoints I like to monitor do not respond within 10 seconds as they check multiple system dependencies themselves. It would be great to be able to configure the timeout for HTTP (and TCP) requests.
Furthermore, I noticed that the user-agent is currently Go-http-client/2.0 which makes it hard to identify the requests as the ones coming from Gatus. Would be great if this became a config option as well or a string that contains the name of the software.

Great idea!
Something like
services:
  - name: example
    url: "https://example.org/"
    interval: 30s
    client:
      timeout: 30s
    conditions:
      - "[STATUS] == 200"

Would work for setting timeouts, but I have a feeling configuring the user-agent at the service level may be a bit too granular, although I could see a use for it if somebody wanted to test user-agent specific behaviors.
For now, a hardcoded custom user agent like Gatus/1.0 could do the trick to at least make Gatus requests identifiable.

I wasn't thinking of having these options on a service level in the first place. I'd be fine with a global config option. But you're right, it makes sense for the timeout and there might even be scenarios for the user-agent 👍

@GeorgFleig I've added the "User-Agent: Gatus/1.0" header to requests that don't specify a custom User-Agent header.
As for services that require a different User-Agent header, it can already be specified in the configuration:
services:
  - name: example
    url: "https://example.org/"
    headers:
      User-Agent: "Mozilla/5.0"
    conditions:
      - "[STATUS] == 200"

Released the default custom user agent in v1.11.0

Released the default custom user agent in v1.11.0

Timeout is now configurable through client configuration -- forgot to close this.


Modify user backend to include relations

Store relations between two users for a certain specified time (TTL)
uniqueCode is only valid for a certain time (TTL)

The user object is modified as follows:
type User = {
    id: string;
    name: string;
    lat: number;
    lon: number;
    code: {
        value: string;
        timeValid: string;
    };
    timeCreated: string;
    timeLastModified?: string;
};

timeValid is provided in the request, and is not handled by the API itself.
The user now has an ID, this changes the following:

name is now a search key
code.value is now a search key

Relations is a separate endpoint.
The type of a Relation looks as follows:
type Relation = {
	id: string;
	user1: string;
	user2: string;
	timeValid: string;
	timeCreated: string;
};

The route for Users is as follows: https://pinpoint-api-poc.syand.workers.dev/api/users
The route for User Relations is as follows: https://pinpoint-api-poc.syand.workers.dev/api/users/relations

Route
Method
Description

/api/users?name=query
GET
Gets all the stored users starting with the name query (limited to 100)

/api/users?code=query
GET
Gets all the stored users with the code query (limited to 100)

/api/users/relations
GET
Gets all the stored relations (limited to 100)

/api/users/relations
POST
Creates a new relation

/api/users/relations
DELETE
Removes all relations between two users

/api/users/relations/id
GET
Gets all the stored relations of a user (limited to 100)


Fix: Table column reordering + always render sort icons

Description
Table column reordering fires a click event, similar to https://github.com/adopted-ember-addons/ember-sortable/issues/405
Proposed Changes

attach click listener to ol
other cosmetics: always render Denali sort arrows to avoid possible column width change on hover

Screenshots

License
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

updated screenshot:


Feature request

Hi,
Could you please add some extra feature?
I use #inline mode, and there are some cases when other js lib or code handles all clicks which has href="#SOME_ID" and after that - return false;  which affects your plugin functionality... popup window just didn't work (not opened).
I'm already find the part of code which handles inline functionality and successfully changed to make it work.
Here is the code
target = opener.data('lity-target') || opener.attr('href') || opener.attr('src')
I change it to this, and get the target element from REL attribute, and got the functionality I want
target = opener.data('lity-target') || opener.attr('href') || opener.attr('src') || opener.attr('rel')
If you could put the opener.attr in options would be great.
Thank you for very lightweight plugin and your hard work!!
P.S.
Sorry for my bad English :)

This is easily done with the following code.
$(document).on('click', '[data-lity-with-rel]', function() {
    lity($(this).attr('rel'), {}, this)
});

Then use the custom data attribute data-lity-with-rel.
<button rel="img/sample.png" data-lity-with-rel></button>


[ACS] check existence before loading ssh_config_file

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

Command Guidelines

[x] Each command and parameter has a meaningful description.
[x] Each new command has a test.

(see Authoring Command Modules)

@grawcho, it was broken by PR #3948
Fix #4587 #4582

@derekbekoe  @troydai  feel free to merge, thx !

@troydai , see if you can merge for me:)

Do you know when this will actually be released? It's currently blocking all deployments.

Next milestone is https://github.com/Azure/azure-cli/milestone/27 on 10/20. In the meantime, you can use the latest build from edge feed:
pip install --upgrade --pre azure-cli --extra-index-url https://azurecliprod.blob.core.windows.net/edge --no-cache-dir

I'm getting the following error when trying to install the azure cli via pip with the given command.
HTTPError: 404 Client Error: The specified blob does not exist. for url: https://azurecliprod.blob.core.windows.net/edge/azure-mgmt-datalake-store/

azure-mgmt-datalake-store is supposed to be fetched from PyPI instead of our private feed. Does your PIP manage to talk to PyPI?

This worked after uninstalling the current version of the Azure CLI.

pip install --pre azure-cli --extra-index-url https://azurecliprod.blob.core.windows.net/edge --no-cache-dir

I am a new Azure user who is trying to use k8s. This defect, including https://github.com/Azure/azure-cli/issues/4587, is a bad one for someone coming in fresh. Now I need to upgrade my Mac OS to High Sierra in order to get the Python installer script working for the edge build, in hopes that I can move forward (I am getting known error about pyOpenSSL 0.13.1). A huge pain. You might want to consider putting out hotfixes for blocking issues for users of major CLI features. I cannot wait until October 20 as I am on a deadline for a PoC. Hopefully updating my operating system here tonight will allow me to move forward. This is not meant to be a complaint but rather feedback that some defects should be fixed more quickly for Azure CLI. Thank you.

@troydai when can we expect this to be released today?

@wpercy the builds will be available in all channels on next Tuesday (10/24/2017).

I'm receiving a similar error when trying to run az acs kubernetes get-credentials or az acs kubernetes browse:
proxy = paramiko.ProxyCommand(host_config['proxycommand']) KeyError: 'proxycommand'
I have a config file but it's empty. Removing it gives me the errors described above.
This is preventing me from connecting to my Kubernetes cluster.
I'm using https://azurecliprod.blob.core.windows.net/edge.

@bhickenbottom if it is not fixed in the latest build, this could be a different issue. Could you please open a new issue? @rjtsdl, whose team owns ACS, will pick it up.

well, cant connect to the cluster in anyway. kinda sucks not being able to use the product

I have tried upgrading to edge version of the cli, still cant connect, don't even know what the next step. Have a k8s cluster running that i cant connect to..

@rjtsdl

@troydai , thx for ping me about this.
Yes, it is a known issue. I will be all resolved with this PR.