Conversion through to_pandas output numpy arrays for lists instead of python objects

In a related question, the conversion through to_pandas output numpy arrays for the lists instead of python objects.
Here is an example:
>>> dataset._data.slice(key, 1).to_pandas().to_dict("list")
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [array([  101,  7277,  2180,  5303,  4806,  1117,  1711,   117,  2292,
        1119,  1270,   107,  1103,  7737,   107,   117,  1104,  9938,
        4267, 12223, 21811,  1117,  2554,   119,   102])], 'token_type_ids': [array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
       0, 0, 0])], 'attention_mask': [array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
       1, 1, 1])]}
>>> type(dataset._data.slice(key, 1).to_pandas().to_dict("list")['input_ids'][0])
<class 'numpy.ndarray'>
>>> dataset._data.slice(key, 1).to_pydict()
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [[101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102]], 'token_type_ids': [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], 'attention_mask': [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]}

To convert from arrow type we have three options: to_numpy, to_pandas and to_pydict/to_pylist.

to_numpy and to_pandas return numpy arrays instead of lists but are very fast.
to_pydict/to_pylist can be 100x slower and become the bottleneck for reading data, but at least they return lists.

Maybe we can have to_pydict/to_pylist as the default and use to_numpy or to_pandas when the format (set by set_format) is 'numpy' or 'pandas'


error message

Noticed in the chrome extension manager tab. Curious what the error below is.
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
Context
src/html/options.html
Stack Trace
src/html/options.html:0 (anonymous function)

This was caused during theme switching when script was trying to update the theme dynamically. I removed that code so the error message should disappear. Thanks for pointing this out.


Mutect2 cfDNA baseline evaluation

We have cfDNA bams and corresponding solid tumor bams.
The evaluation is to calculate concordance of cfDNA calls against solid tumor calls, the idea being that low allele-fraction cfDNA is much harder, therefore tumor calls are relative "truth."

This issue and the FFPE one should be separate instances of the same wdl workflow.

Put into issue #903.


False negative on ko-fi.com

The ko-fi.com urls (e.g. https://ko-fi.com/undergroundwires) is marked as dead URL that is alive

This is an issue with ko-fi.com and not link-check. Specifically, ko-fi.com is behind a proxy service (cloudflare). cloudflare does some analysis on incoming request and decides how it is going to handle the request. In this case, it is responding with 403 Forbidden. There is nothing I can do to fix this. The proxy service needs to be configured to not forbid the request link-check makes.

@tcort I see. Thank you for your time and explaining it.


New Crowdin updates

@SchrodingersGat May I ask, why there are so much commits fixing crowdin translations and sometimes there are two pull requests, some get closed without being merged, ...?

Every time a commit is pushed to master, it gets updated on the crowdin service. If the location of translation strings change, or the text changes, or there is new translation data, crowdin makes a commit and pushes it back here.
There's a lot of "noise" in these commits which is why we keep them on a separate branch, and then squash-merge them back in periodically.
The reason for closing some is that crowdin is very "aggressive" in how quickly the commits get pushed back downstream, and sometimes will push down a second "copy" before I have merged in the first PR.

oh ok, thank you for clarification.


how to make synced carousels (clickable thumb-navigation) with OwlCarousel2?

There are already some issues from the last year (#80, #278) dealing with the same topic but I think there is now real solution. So – what I want to achieve is just the same as in this demo in Owl version 1: http://owlgraphic.com/owlcarousel/demos/sync.html
I have done it so far:
http://jsfiddle.net/19v6ybug/
You can click in the navigation in a thumb to navigate to the correct slide (but when you go back to slide number one… something is wrong).
But what I also want to have included is that when I click on the last navigation-thumb the navigation-carousel should move one forward to show the next nav-thumb (like in the demo of owl carousel 1).
And for now the slide-carousel is not really synced with the navigation-carousel.
I found this snippet but it does not work:
sync1 = $("#slider");
sync2 = $("#navigation");
sync1.on('changed.owl.carousel', function(event) {
sync2.trigger('to.owl.carousel', [event.item.index,300,true]);

Would be awsome if you can help to make a working snippet everyone can use.

+1

I used this script seen below, which seems to work fine ... but now I'm having trouble adding a single 'active' class to a thumbnail to highlight which bigger image is being shown above. My search continues ...
jQuery(document).ready(function ($) {
var $sync1 = $(".big-images"),
	$sync2 = $(".thumbs"),
	flag = false,
	duration = 300;

$sync1
	.owlCarousel({
		items: 1,
		margin: 10,
		nav: true,
		dots: true,
  		animateOut: 'fadeOut'
	})
	.on('changed.owl.carousel', function (e) {
		if (!flag) {
			flag = true;
			$sync2.trigger('to.owl.carousel', [e.item.index, duration, true]);
			flag = false;
		}
	});

$sync2
	.owlCarousel({
		margin: 20,
		items: 3,
		nav: true,
		center: false,
		dots: false,
  		navRewind: false
	})
	.on('click', '.owl-item', function () {
		$sync1.trigger('to.owl.carousel', [$(this).index(), duration, true]);

	})
	.on('changed.owl.carousel', function (e) {
		if (!flag) {
			flag = true;
			$sync1.trigger('to.owl.carousel', [e.item.index, duration, true]);
			flag = false;
		}

	});

});

JS

sync2.on('click', '.owl-item', function(e) {
e.preventDefault();
$('.some-class').removeClass('active');
console.log($(this));
$(this).find('.some-class:first').addClass('active');
})

css:

.acttive {
position: absolute;
width: 94.5%;
height: 83%;
top: 5px;
left: -1px;
background: rgba(104,171,29,0.4);
font-size: 16px;
/* padding: 0px; */
border-top: 11px solid #68ab1d;
border-bottom: 9px solid #68ab1d;
border-left: 5px solid #68ab1d;
border-right: 5px solid #68ab1d;
}

Try something like above. There is empty div with "some-class" inside carousel item, and when you click on this element class "active" is added ;)
Works fine for me ;)

This works, thanks. But when I click the navigation buttons ('next' and 'prev') the top carousel moves to the next picture but won't update the bottom thumbnails as they weren't actually clicked at any point ...
So you end up with an active class on a thumbnail that isn't the top photograph ... Not sure how to remedy that.

What can I say? Yeah, it won't.
Maybe:

sync1.on(changed.owl.carousel', function(e) {
e.preventDefault();
sync2.find('.some-class').removeClass('active');
sync2.find('.some-class:first').addClass('active'); })

But it's just a "blind guess"

Yeah, that doesn't seem to work. Many thanks though!
I had the idea of disabling the navigation and disabling the drag feature, so basically it works by clicking just the thumbnails. But unfortunately when you get to the end of the thumbnail area you can't then drag it back or use the navigation to go back to the first image, so not very useable.
I somehow need to disable the next/prev buttons so that they don't effect the first carousel and only effect the thumbnail area where it scrolls along (also the case for dragging with the mouse).
Oh well, I will keep looking for a remedy ...

About highlighting active class.
I think you should try something with changed.owl.carousel event.
When you'll figure it out, please post it here, because it would be nice to have this feature in my slider ;P

Will do ...
I can see it functioning in Owl 1 on the Synced Owls page - http://owlgraphic.com/owlcarousel/demos/sync.html
So I assume it should work on Owl 2 as well ...

I figured out some trick, but i dont know how to do it.
You can add to slider options: "center: true". Then the active element will get "center" class. My problem is to add class active to div with "some-class" when it is inside "center" element.
Any solution?

Ok. As I said, in thumbnails options I used "center: true". Below are my two css classes for my project. Basicaly it gives the effect that we were talking about, so the change of big slide changes also active element in thumbnails.

.center {
    background: rgba(104,171,29,1);
    height: 160px;
    outline: 10px solid rgba(104,171,29,1);
    z-index: 100;
}
.center img {
opacity: 0.4;
}

active element is centered but it is fine for me.

Yeah, I tried this as well and it adds a center class. But unfortunately my gallery can't be centered (I need it left aligned) and there doesn't look like there's an option to override the center styling.

:(
Maybe try to persuade your boss/client to make it centered ;)
Worked for me :p

Ha yeah, I wish that was an option for me :-1:
I tried to use the center: true, then override the translate3d using !important in the css, but it won't work as each time the thumbnails need to be moved along to view more the pictures the translate3d is set to '0' so the carousel won't function at all.
Oh well, back to square one ...

@robmar19
Can you add responsive option for your slider, and chceck one thing for me?
I have infinite loop turned on, and my thumbnails contains 6 elements, but when I add responsive option, (for example 500{items: 3}) all my synchronization goes somwhere (i don't know where ;)) and my slider performs like dumb f...k.
Can you chceck how your slider will perform?

yeah, it does the same thing as soon as I add loop:true on mine ...

Hmm, Im thinking about another sync method.
Firsto of all in my slider title for a big slide and correspondent thumbnail is received from the same database. So I figured out, that when I know these strings I can take index of elements containing these strings, and and by that way synchronize them.
But..
I don't know how to receive item index from element with specific content inside :)
Can you help?
Yes, Im new to jquery (also js) ;)

I was looking for an answer to this too. I don't know if anyone solved this yet, so thought I would post my solution if it helps anyone.
Add the following to the $sync1 changed.owl.carousel event like this:
$sync2.find('.item').removeClass('synced');
$sync2.find(".owl-item").eq(current).find('div.item').addClass('synced');
where .item is a div inside an .owl-item div and the 'highlight' class is called .synced.
Hope that helps someone.

Hey dcafc,
I'm still looking for a solution to this, so good to hear from someone saying they found an answer to the highlight issue I replied to on this thread. Would it be possible to show the whole code you're using for this?
Would really appreciate it as I'm a bit stuck ...
Many thanks

I found a CodePen and it solves almost everything. Except for some setts I cannot use, so I made some adjust and after a few minutes, was done, so:
`$(document).ready(function() {
var sync1 = $("#slider");
var sync2 = $("#navigation");
var syncedSecondary = true;

sync1.owlCarousel({
    items:1,
    loop:true,
    margin:10,
    autoplay:true,
    autoplayTimeout:6000,
    autoplayHoverPause:false,
    nav: false,
    dots: true
}).on('changed.owl.carousel', syncPosition);

sync2
.on('initialized.owl.carousel', function () {
    sync2.find(".owl-item .projectitem").eq(0).addClass("active");
})
.owlCarousel({
    items:6,
    margin:10,
    autoplay:false,
    nav: false,
    dots: false
}).on('changed.owl.carousel', syncPosition2);

function syncPosition(el) {
    //if you set loop to false, you have to restore this next line
    //var current = el.item.index;

    //if you disable loop you have to comment this block
    var count = el.item.count-1;
    var current = Math.round(el.item.index - (el.item.count/2) - .5);
    if(current < 0) {
        current = count;
    }
    if(current > count) {
        current = 0;
    }
    //end block

    sync2
    .find(".projectitem")
    .removeClass("active")
    .eq(current)
    .addClass("active");
}

function syncPosition2(el) {
    if(syncedSecondary) {
        var number = el.item.index;
        sync1.data('owl.carousel').to(number, 100, true);
    }
}

sync2.on("click", ".projectitem", function(e){
    e.preventDefault();
    sync1.trigger('to.owl.carousel', [$(e.target).parents('.owl-item').index(), 300, true]);
});

});`
"projectitem" is the name I gave to original "item" div in carousel demo. And "active" is my class. As you can see, I made mi "projectitem" active, and not my "owl-item" cause "loop:true" was giving me so many issues. Hope to be not too late.

Check out this issue: issues/1378 - Linked OwlCarousel instances

You can play with events
check this link http://silicon.ma/owlcarousel2/demos/sync.html

You can play with events
check this link http://silicon.ma/owlcarousel2/demos/sync.html

Thank you! This is what I was looking for... the ability to auto-move thumbnail pagination when the last slide (or next to last) is clicked so that you don't have to use the "next/prev" buttons. But there's only one problem with it for me, once it gets to the end shouldn't it go in reverse? IE, click the first image and it will paginate backwards for you?
Anyone have a solution for this? Sorry I am a total JS newbie.
Much appreciated,
Tony

I found a CodePen and it solves almost everything. Except for some setts I cannot use, so I made some adjust and after a few minutes, was done, so:
`$(document).ready(function() {
var sync1 = $("#slider");
var sync2 = $("#navigation");
var syncedSecondary = true;

sync1.owlCarousel({
    items:1,
    loop:true,
    margin:10,
    autoplay:true,
    autoplayTimeout:6000,
    autoplayHoverPause:false,
    nav: false,
    dots: true
}).on('changed.owl.carousel', syncPosition);

sync2
.on('initialized.owl.carousel', function () {
    sync2.find(".owl-item .projectitem").eq(0).addClass("active");
})
.owlCarousel({
    items:6,
    margin:10,
    autoplay:false,
    nav: false,
    dots: false
}).on('changed.owl.carousel', syncPosition2);

function syncPosition(el) {
    //if you set loop to false, you have to restore this next line
    //var current = el.item.index;

    //if you disable loop you have to comment this block
    var count = el.item.count-1;
    var current = Math.round(el.item.index - (el.item.count/2) - .5);
    if(current < 0) {
        current = count;
    }
    if(current > count) {
        current = 0;
    }
    //end block

    sync2
    .find(".projectitem")
    .removeClass("active")
    .eq(current)
    .addClass("active");
}

function syncPosition2(el) {
    if(syncedSecondary) {
        var number = el.item.index;
        sync1.data('owl.carousel').to(number, 100, true);
    }
}

sync2.on("click", ".projectitem", function(e){
    e.preventDefault();
    sync1.trigger('to.owl.carousel', [$(e.target).parents('.owl-item').index(), 300, true]);
});

});`
"projectitem" is the name I gave to original "item" div in carousel demo. And "active" is my class. As you can see, I made mi "projectitem" active, and not my "owl-item" cause "loop:true" was giving me so many issues. Hope to be not too late.
Original CodePen and all thanks to "Washaweb": http://codepen.io/washaweb/pen/KVRxRW

What If I have 5 images or item only it will not working on that condition.


Move track to the upper scope

Changes Unknown when pulling 784a6df575b9538c7f274d54ff1f99730b0520cc on alex3165:master into ** on philpl:master**.

Changes Unknown when pulling 91ef1234331d3846680680d29534ca78cb781161 on alex3165:master into ** on philpl:master**.


@conda-forge-admin, please add user @pikacic

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added user @pikacic in conda-forge/lb-nightly-db-feedstock#4.


completions for locals should have higher "sortOrder" than completions for globals

From https://github.com/Microsoft/vscode/issues/34049
TypeScript Version:  2.5.2
Code
const WorkerActions = 1

WA|

Trigger completions at the | after WA
Expected behavior:
The local WorkerActions suggestion has higher weight than suggestions from the global scope.
Actual behavior:
TSServer returns global and local suggestions with the same sortText
[Trace  - 3:27:09 PM] Sending request: completions (353). Response expected: yes. Current queue length: 0
Arguments: {
    "file": "/Users/matb/projects/san/d.js",
    "line": 3,
    "offset": 3
}
[Trace  - 3:27:09 PM] Response received: completions (353). Request took 19 ms. Success: true
Result: [
   ....
       {
        "name": "WaveShaperNode",
        "kind": "interface",
        "kindModifiers": "declare",
        "sortText": "0"
    },
    {
        "name": "WorkerActions",
        "kind": "const",
        "kindModifiers": "",
        "sortText": "0"
    },
 ...
]

Seems like a duplicate of https://github.com/Microsoft/TypeScript/issues/15024

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.


postcss-define-function

Define complex operations on values that can be re-used throughout your stylesheet. Super powerful for many things like typography, layout etc. etc.

https://sass-lang.com/documentation/at-rules/function
https://github.com/titancat/postcss-define-function

@derezed I'm going to re-assign this to you!
@dennisgaebel was suggesting this as an additional plugin for PostCSS in Pura. I'm open to it, but I also want to make sure it's adding useful functionality that can be easily understood by others and doesn't create a significant amount of overhead (in performance and maintenance). I'll let you and @asuh evaluate this!

Same scenario as the @each issue. If we don't wanna add it to Pura directly it could be used on a per-project basis 👍

Hmm.
I'm not sure my feelings on this one yet. I feel like it would add some complexity to Pura that some devs (mainly those new, future devs) may miss.
I'm also struggling to see some good use cases for it, so I'd hate to add it, and it not get used.
@asuh do you have any thoughts here?
I can be swayed, though!

functions allows for complex or even simple calculations much like calc() does, but with more power. Here's a bunch of examples where functions can be used https://github.com/dennisgaebel/droidpress/tree/master/scss/functions and here's some further info as well via Sass docs https://sass-lang.com/documentation/at-rules/function
That said, it can always be used on a per-project basis if warranted 👍

I have never needed to use Sass functions and have looked for use cases where I could justify using them. I, too, would probably forget that this is a thing even if it's available.
I'm not necessarily against them but I feel like adding complexity for what is likely small number of use cases would increase complexity with little return in value. I believe this should be up to the dev who wants to use it rather than universally included.

Yeah, I think we should leave this to a per-project basis, and if a dev wants to use it, they can add it in!
@aaronbushnell Doesn't look like I have proper permissions to close this (or merge). Is that something you can give me access to?


Click 8.1.0 removed deprecated function get_os_args used by sphinx-versions

From https://github.com/zhmcclient/zhmc-ansible-modules/runs/5803700243?check_suite_focus=true#step:11:1:
sphinx-versioning -l docs/source/conf.py build docs/source docs_build
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.10/x64/bin/sphinx-versioning", line 33, in <module>
    sys.exit(load_entry_point('sphinx-versions===1.1.3.post-am1', 'console_scripts', 'sphinx-versioning')())
  File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/sphinxcontrib/versioning/__main__.py", line 72, in main
    argv = kwargs.pop('args', click.get_os_args())
AttributeError: module 'click' has no attribute 'get_os_args'

Environment:

Python 3.9.10
Click 8.1.2
sphinx-versions from my fork

Click 8.1.0 removed the deprecated function get_os_args(): https://github.com/pallets/click/pull/2130
sphinx-versions needs to be updated to change the use of get_os_args() to use sys.args.

Thanks much!
We have so far pinned Click to <8 in our projects that use sphinx-versions as a workaround. That was only partly due to this issue here - there are additional issues with Click 8. We need to work through these other issues as well, before we can unpin Click<8. So please keep on releasing your fix, we'll pick it up eventually.


HTTP error when using Mistral models

When using Mistral Models a HTTP error (422) occured:

Langsmith:
https://smith.langchain.com/public/24530dd0-34bd-412e-a797-b8dcc5469c5a/r

https://github.com/FlowiseAI/Flowise/pull/2281
There was a bug in the older version, updated with the above PR. Will push a new release shortly

should be resolved now, if you try pulling the latest


FULLTEXT with sub-properties is not working

my environment running ArangoDB
I'm using the latest ArangoDB of the respective release series:

[ ] 2.8
[x ] 3.0
[ ] self-compiled devel branch

On this operating system:

[ ] DCOS on

[ ] AWS
[ ] Azure
[ ] own infrastructure

[ ] Linux

[ ] Debian .deb
[ ] Ubuntu .deb
[ ] SUSE   .rpm
[ ] RedHat .rpm
[ ] Fedora .rpm
[ ] Gentoo
[ ] docker - official docker library
[ ] other:

[ ] Windows, version:
[x ] MacOS, version: 10.11.6

this is an AQL-related issue:
[ x] I'm using graph features
I'm issuing AQL via:

[x ] web interface with this browser:     running on this OS:
[ ] arangosh
[ x] this Driver: arangojs

I'm migrating from arangodb 2.8 to 3.1 and the FULLTEXT search with sub-properties doesn't work: "no suitable fulltext index found for fulltext query".
This is my document:
{
   "_key": "434844465410935",
   "_id": "test/434844465410935",
   "_rev": "_UJwRl4u---",
   "content": {
     "title": "This is a title"
   },
   "header": "This is a header"
 }

This is the index definition:
db.test.ensureIndex({ type: "fulltext", fields: [ "content.title"], minLength: 2 });

and this query is not working:
FOR n IN FULLTEXT(test, 'content.title', 'prefix:this')
return n

got an error: "no suitable fulltext index found for fulltext query".
I also tried to create the index through the web ui and got the same error.

fulltext index on content.title
with
return  FULLTEXT(test, "content.bumba", 'abc') + v8(rand())

I get
Query: in function 'FULLTEXT()':
no suitable fulltext index found for fulltext query on 'test'
stacktrace of offending AQL function:
ArangoError: in function 'FULLTEXT()': no suitable fulltext index found for fulltext query on 'test' at
THROW (/Users/manuel/arangodb/js/server/modules/@arangodb/aql.js:411:13) at
Object.AQL_FULLTEXT
(/Users/manuel/arangodb/js/server/modules/@arangodb/aql.js:4274:5) at
Function. (--script--:1:183) (while executing)

thats at

https://github.com/arangodb/arangodb/blob/v3.1.1/js/server/modules/%40arangodb/aql.js#L4274
with

return  FULLTEXT(test, "content.title", 'abc') + v8(rand())

I get
Query: no suitable fulltext index found for fulltext query on 'test' (while executing)
stacktrace of offending AQL function:
ArangoError: no suitable fulltext index found for fulltext query on 'test' (while executing) at
Error (native) at Object.AQL_FULLTEXT
(/Users/manuel/arangodb/js/server/modules/@arangodb/aql.js:4284:45) at Function.
(--script--:1:183) (while executing)

thats at
https://github.com/arangodb/arangodb/blob/v3.1.1/js/server/modules/%40arangodb/aql.js#L4284

I can confirm the problem, but by looking at the (JavaScript) code nothing leaps to the eye.
@jsteemann?

3.1.4 has been released. Closing as fixed.


auto-checked Projects

The Field Slip α-Test  Porject is always selected when I create a new Obs.
I don't notice that because it's too far down on the form; I'd have to scroll down to notice it.
See screen shot below.
The result is that my new Observations unexpectedly are added to that Project (unless I remember to deselect it).
Is my expectation is wrong?
I expect no Project (or Species List) to be selected (unless I selected it in the last 60 minutes).

It's auto-checking every current, open Project of which I'm a member).
@mo-nathan: Maybe this should be user option?
In Observations#create
  def init_project_vars
    @projects = User.current.projects_member(order: :title,
                                             include: :user_group)
    @project_checks = {}
  end

  def init_project_vars_for_create
    init_project_vars
    @projects.each do |proj|
      @project_checks[proj.id] = (proj.open_membership &&
                                  proj.current?)
    end
  end

In the form
      <% @projects.each do |project| %>
        <%= check_box_with_label(form: f_p, field: :"id_#{project.id}",
                                 checked: @project_checks[project.id],
                                 disabled: !project.user_can_add_observation?(@observation, @user),
                                 label: project.title) %>

Interesting question.  It is working as I intended it, but I can see some reason to debate it.  My thinking was for most users they will only be a member of small number of projects and it's reasonable to assume that if the project fits, the observation should get added.  For example, I would like to have "North Falmouth Fungi" to be selected any time I create an observation that is in North Falmouth.  Similarly, if I'm at the NAMA foray, I want all observations I make while I'm there to be automatically included in the NAMA foray project.  I'm pretty sure iNat does that during an event.  I guess the question comes down to what do we expect most users using the system to expect.

Thanks. That rings a bell; you probably mentioned this earlier.
I will:

solve my personal problem by removing myself from the alpha Field Test
Project
close this issue.

On Fri, Apr 19, 2024 at 3:06 PM Nathan Wilson @.***>
wrote:

Interesting question. It is working as I intended it, but I can see some
reason to debate it. My thinking was for most users they will only be a
member of small number of projects and it's reasonable to assume that if
the project fits, the observation should get added. For example, I would
like to have "North Falmouth Fungi" to be selected any time I create an
observation that is in North Falmouth. Similarly, if I'm at the NAMA foray,
I want all observations I make while I'm there to be automatically included
in the NAMA foray project. I'm pretty sure iNat does that during an event.
I guess the question comes down to what do we expect most users using the
system to expect.
—
Reply to this email directly, view it on GitHub
https://github.com/MushroomObserver/mushroom-observer/issues/2106#issuecomment-2067337700,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAALDFB4PNFQVN7UJQSEIETY6GINJAVCNFSM6AAAAABGPZT7NWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGMZTONZQGA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Alternative to helper mixin "anti-pattern"

Feature request
One of the things I first set up in using View Component on a project was to bring in common helpers I'd been using in traditional view templates. So for example I have this line in my component superclass to get the logged-in user record as well as the relevant Pundit policy:
delegate :current_user, :policy, to: :helpers

But I'm kind of feeling like that's an anti-pattern at this point, and I'd prefer some other mechanism where I define a data flow from the top level (a controller probably, but maybe another component) and have that get passed along down the component chain automatically. I suppose that's somewhat similar to React's Context API which I'm a bit familiar with. And then the component's template would just need to be smart to check for the presence of that inherited data and not crash if it's missing.
Motivation
I was never religiously anti-helper but I'm somewhat in favor of doing away with them entirely in the new View Component era and look for a new pattern for "global" data/tooling.
If anyone think this would be good to investigate, I could try to prototype an approach or two for the API and see what the consensus is. Or if you already have something like this in the works for View Component, I'm all ears. 😃

Sorry to comment on my own issue 🤣, but I just realized because the component's view template can access all the accessors from the component .rb, I think it becomes even more important to roll with the assumption that any local variables/methods in the template come solely from the component and aren't a bunch of helpers from afar (other than perhaps common Rails conventions like forms, links, etc.).

@jaredcwhite we just worked on a first attempt at providing current_user to our components.
In our ApplicationComponent, we have:
def current_user
  helpers.current_user
end

And then in our app-specific component test helpers, we have:
def as(user)
  controller.send(:current_user=, user)
end

Which allows us to write tests like:
as(@user)
render_inline(MyComponent.new)

assert_text @user.name

However, we're not sure if this is the best approach- it's just our first attempt.
I'm generally wary of making global state too easy to use, as it kind of defeats some of the advantages of components in the first place. For one, it makes testing trickier, as you now have to set that global state indirectly to test the component behavior, as with the as helper above.

@joelhawksley Curious why you aren't passing current_user as a parameter to the component?
Why isn't it
render_inline(MyComponent.new(user: @user)

assert_text @user.name

@jaredcwhite I'm kind of anti helper too. ViewComponents using url of form helpers makes sense - they're essentially static methods. However, the helpers that rely on or derive state (like current_user) should be passed explicitly. It's analogous to the difference between explicitly passing locals to a partial vs declaring instance variables.

@jonspalmer we had some cases where components were passing current_user down three or four levels of nesting. It wasn't pretty. That being said, there's a reason that code ☝ isn't in the README- we're not sure if it's a good idea or not.
Generally, we too are hoping to avoid the use of stateful helpers.

I think I'll pursue some kind of passing a simple "context" object down the chain…at least then the method signatures don't need to be updated everywhere to go from current_user to something else or support multiple state values. At some point further down the road I'll report back and see if I liked it. 😄

@joelhawksley makes sense. I haven't hit that problem yet. I suspect we should be mindful of the advice the React folks give on other ways to avoid needing this kind of context: https://reactjs.org/docs/context.html#before-you-use-context
I would imagine that a Context API inspired by React Context would make sense. I don't immediately see how we'd implement it. Could we implement some special wrapping ViewComponentContext component that you surround other things with?

@jaredcwhite how about the CurrentAttributes api? I have been trying to avoid this so far, but wonder whether this would not make things easier (I need to pass around quite some information about current state).
Perhaps better solution than helpers, which mix (in @joelhawksley’s example) both static methods and current state. I would prefer to save Rails helpers for static methods (such as tag and url helpers) only. Using the CurrentAttributes api would at least differentiate between the two and I guess would do similar job as the React-inspired context @jonspalmer suggests.
?

@tomasc Good suggestion! In fact, I ended up going with that approach. Since I ended up adding in a little trick regarding the Pundit permissions, I'll include code samples from my app.
Here's my Current class:
class Current < ActiveSupport::CurrentAttributes
  attribute :user, :policy_method
end

Then in my ApplicationController, I added a before_action callback:
def initialize_component_context
  Current.user = current_user
  Current.policy_method = method(:policy)
end

The reason I'm saving a policy method as a proc, rather than running the method right here, is because policy accepts an argument with the object for which you need a policy, so that needs to be run later with the object in question. So I use that in my component like so:
def policy_update
<EMAIL_ADDRESS>end

The other cool part about this is I can set up a policy as part of a component preview. In fact, that's what triggered this solution in the first place—my Pundit policy helper was missing in the controller preview context. So here's the preview:
class CommentComponentPreview < ViewComponent::Preview
  def example_signed_in
    comment = previewable_comment
    render Bank::CommentComponent.new(
      bank: comment.commentable,
      comment: comment
    )
  end

  def example_signed_out
    comment = previewable_comment(author_policy: false)
    render Bank::CommentComponent.new(
      bank: comment.commentable,
      comment: comment
    )
  end

  private

  def previewable_comment(author_policy: true)
    Comment.where(commentable_type: "Bank").first.tap do |comment|
      Current.policy_method = proc do
        CommentPolicy.new(author_policy ? comment.user : nil, comment)
      end
    end
  end
end

Notice that last part where I create a proc inline to instantiate a Pundit policy for the comment, and I can control which user I load the policy for in order to preview both signed in and signed out examples.
If you have any further feedback or suggestions, I'm all ears!

I'm just getting started understanding view_component.
But the general problem of "passing [eg] current_user down three or four levels of nesting" is something the React community has run into too; makes sense, since similar pattern.  I am not super experienced with React either, but looking around they sometimes refer to this problematic pattern as "prop drilling" (https://kentcdodds.com/blog/prop-drilling), and recent React has some kind of "context" I don't fully understand to try to deal with this: https://reactjs.org/docs/context.html
It might be useful to understand what they're doing there, to learn from that in trying to do something similar in Rails, perhaps using the Rails CurrentAttributes.


Explain how to apply the theme in Slack

We have to make it clear what the next step is after you've created your beautiful slack theme.
We need a way to explain that you have to copy-paste it in your settings or directly in a Slack message box.

We are already saying Copy and paste your custom theme into Slack! which is probably enough.


Bootstrapper and quoting of cakeArguments

The cake arguments like target do not include quotes currently.
For example it looks like;
if ($Target) { $cakeArguments += "-target=$Target" }

In (very) old versions, it did quote the variables like:
-target=`"$Target`"

Which allowed the target to contain for example spaces. Is there any reason that the quotes were removed?

Any news on that issue? I think that simple fix enables more options for cake target names (like DotNet: Build).


Prevent offensive abilities from being used within 5 levels of a rain…

…ing round.
This should help prevent wormhole levels from being skipped over.

Thanks for the change. Merging.

Oh, sorry, I was just in the middle of fixing a bug! Wrong variable sorry, just 1 second.

#206


ko.plus - fixed .fail method signature on command type

.Fail method takes a callback. The parameters can be upto three values, not just a single string.

thanks mate!


License

Hi Matthias!
I really appreciate your work. Super interesting approach!
I was wondering what License the code is under, since the package.json states MIT but there is no clear LICENSE file. Clarifying this (whatever type of licence you choose) would make it easier for companies and individuals to know whether they can use it, redistribute it or contribute.

hey @eykrehbein, thank you for addressing this. This project is now MIT-licensed as stated in the package.json with an corresponding LICENSE file.


Rack::Attack RSpec Whitelist & Blacklist

Given that I have the following class for example
#config/initializers/rack-attack.rb
class Rack::Attack

  whitelist('allowed list') do |req|
    '<IP_ADDRESS>' == req.ip
  end
end

I am running a series of commands in my rails console to determine if the "ip" in question is whitelisted?. So these are the steps I've taken:
#rails console
black = ActionDispatch::TestRequest.new(env: Rails.env)
black.remote_addr = '<IP_ADDRESS>'
black_request = Rack::Attack::Request.new(black)
=> #<Rack::Attack::Request:0x007fc62b01ff38
 @env=
 #<ActionDispatch::TestRequest:0x007fc62b4351b8
   .....
      ....
    ....
  .....
  :env=>"development",
     "HTTP_HOST"=>"test.host",
     "REMOTE_ADDR"=>"<IP_ADDRESS>",
     "HTTP_USER_AGENT"=>"Rails Testing",
     "action_dispatch.request.content_type"=>nil,
     "action_dispatch.request.request_parameters"=>{},
     "rack.request.query_string"=>"",
     "rack.request.query_hash"=>{},
     "action_dispatch.request.query_parameters"=>{},
     "action_dispatch.request.path_parameters"=>{},
     "action_dispatch.request.parameters"=>
      {"rack.attack.matched"=>"allowed list", "rack.attack.match_type"=>:whitelist}}>>

Rack::Attack.whitelisted?(black_request)
=> true

Surely this should return false. Because I haven't defined  '<IP_ADDRESS>' inside the whitelist block.

Is the problem that your whitelist uses the 'ip' method, and your test request sets the 'remote_addr' property? Make sure 'black_request.ip' is what you expect.

ah yes I see so I noticed that when  I do:
[12] pry(main)> black.remote_addr
=> "<IP_ADDRESS>"
[13] pry(main)> black.ip
=> "<IP_ADDRESS>"
[14] pry(main)> black_request = Rack::Attack::Request.new(black)
=> returns back request.....
[15] pry(main)> black_request.ip
=> nil

and #ip is a getter. Strange that it returns nil upon initializing Rack::Attack::Request


Requesting for Code Review

Explain about your code base ?
@ChidiebereIbiam
@heenakhan4 Review based on his answer .

Explanation for the Codebase
Overview: This library serves as LivingLabScales python package. It aids in NPS Scale APIs for data retrieval.
High-Level Architecture: The library follows a client-server architecture where the library acts as the client, making HTTP requests to the API server. It utilizes the requests library to handle the HTTP communication.
Key Design Decisions:

The library follows the principles of object-oriented programming.
It leverages the requests library due to its simplicity, extensive functionality, and popularity in the Python ecosystem.

Important Classes/Functions:

Settings: The main entry point of the Setting module.
retrieve: Returns All the setting data in the NPS Scale.
create: Create a scale with a specific setting
update: Update Scale through Settings
template: Fetch the settings data for a particular scale using the template/ scale name
Response: The main entry point of the Response (Scale Reports) module
create_report: Provide a response to a particular scale instance using the corresponding scale details
response: Fetch the response data for a single scale from the database
all_response: Fetch the response data for all NPS scales
generate_dynamic_instances: Dynamically generate instances

Code Organization: The codebase is organized into two separate modules based on their responsibilities. The first module is the Settings and the second module is Response.
Dependencies and Libraries:

requests: A widely-used HTTP library for Python, used for sending HTTP requests and handling responses.

Known Issues and Limitations:

Most of the API endpoints were not functional and the documentation was still under review as of the time I submitted the project. So the library does not contain all the endpoints provided in the documentation, it only contains the functional ones.

Please @heenakhan4 review the codebase


Events and subplots

I was looking at shortening controls.add_default_event_handlers(renderer, canvas, camera) because the renderer already has a ref to the canvas, when I realized the following:
When you have a use case that displays two subplots (two scenes, side by side) that each have a camera and a controller, than this goes wrong entirely:

The controller uses the canvas size to convert to/from ndc, but this is wrong (same applies to e.g. gizmo).
Both controllers always get all events, but they should only get events when the mouse is over the subplot area, or when the mouse is captured.

I think for this to work well, we may need an abstraction for a subplot/view (whatever we call it) - something that defines what rectangle on the canvas is rendered to, so the rendering and events are handled correctly. I also think that with some tweaks it could very well be the renderer itself. So instead of always rendering to the full canvas, it could restrict to a subregion, and also use smaller internal textures specific to that region.
I'm working on a POC.

An attempt to make this more graphical ...
Option 1, #267, the renderer has a viewport property.

Option 2, #268 the camera remembers the viewport.

Option 3, a new View class that represents a region on screen. Maybe wraps scene and camera. Looks more like e.g. vispy and our previous viz lib in Arbiter. This can easily be built on top of nr 2 btw.

Maybe option 4: the camera gets a viewport prop.

I think you're over-thinking this.
If I'm not mistaken, you can already render subplots with the renderer as it is. So only camera controls are not playing along here, right?

I think you're over-thinking this.

Perhaps, but I think just adding a viewport prop to the controls would be an over-simplification ;)
The thing is that the problem is not just for controller, but for any object that you want to react to events for. The Gizmo is one example, but anything interactive that a user creates would have the same issue. We need a place to store the viewport, where controllers et al. can access it. The big question is where :)


Change download CRL link to https

Currently the lib attempts to download the CRL via http (Linux/Amazon-linux) which causes error below to applications that disable outbound port 80 for security reasons
[653589]: 129627ms SPX_TRACE_ERROR: AZ_LOG_ERROR:  tlsio_openssl.c:1014 Error loading CRL from http://www.microsoft.com/pkiops/crl/Microsoft%20Azure%20TLS%20Issuing%20CA%2001.crl
Same CRL is already available at https://www.microsoft.com/pkiops/crl/Microsoft%20Azure%20TLS%20Issuing%20CA%2001.crl.
Please change the lib to use the https download url (or provide a way to override it via a SpeechConfig property)
To Reproduce
Any recognizer code which is deployed from Amazon Linux. Get an error early on during connection above and no recognition is made. Have export SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt configured and alsa-lib installed (no other config from https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-configure-rhel-centos-7)
Expected behavior
The CRL is available via https/443 so should be downloaded using it, however, currently this is done via http/80.
(When we temporarily opened outbound port 80 just to test, recognition works)
Version of the Cognitive Services Speech SDK
Java 1.16.0 SDK
Platform, Operating System, and Programming Language
Linux 4.14.231-173.361.amzn2.x86_64 #1 SMP Mon Apr 26 20:57:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Java 11

@kokovoj The CRL location or download protocol is not determind by Speech SDK. It’s embedded in the certificate. There is no vulerablity in using HTTP to download the CLR (see more info here for example). If your environment won’t allow connections to the CRL download points, please see the section titled Certificate Revocation Checks. Thank you @rhurey for providing this info.
Darren

Thanks for the link!

Disabling CRL check altogether worked speechConfig.setProperty("OPENSSL_DISABLE_CRL_CHECK", "true")
Soft failing the CRL check and continuing speechConfig.setProperty("OPENSSL_CONTINUE_ON_CRL_DOWNLOAD_FAILURE", "true") doesn't work and still fails to open the ws connection (if port 80 outbound is closed)


A Bug in Reloading JS Bundle since<EMAIL_ADDRESS>

A very nice improvement of React Native since version 0.29 is using
jsCodeLocation = [[RCTBundleURLProvider sharedSettings]<EMAIL_ADDRESS>fallbackResource:nil];
to switch using packager server with DEBUG mode or pre-bundle with RELEASE mode in an actual device.
However it does not work when the packager server is already running when building the IOS product.
I guess the reason is caused by that the program decides to still use the pre-bundle when it fails to start a packager server since the 8081 port is already taken by another running packager server.
A workaround is to stopping the running packager server before building. But the bug still needs to be fixed since it causes a lot confusion.

I use v0.32 and I only have these 4 options on the Developer Menu:
Reload
Debug JS Remotely
Show Inspector
Show Perf Monitor
Why can't I see the "Hot reload" and "Live Reload" options?

The same issue happened to me with RN 0.33 (and 0.32) and only on iOS device. On android and ios simulator it works.
The reload action doesn't work on an iOS device. It doesn't even make the request to the packager, it only gets the pre-bundle like @richarddlu explained. I even tried to kill the packager before running like @richarddlu suggested, but the problem persisted.
And the "Hot reload" and "Live Reload" options disappeared like @af7 said.
A similar issue was closed but without a solution for this case: https://github.com/facebook/react-native/issues/8461
I finally found the problem in my case and a workaround:
The script that runs on "Bundle React native code and images" build phase is:
./node_modules/react-native/packager/react-native-xcode.sh
It gets the ip of the machine with (en0 is ethernet):
IP=$(ipconfig getifaddr en0)

But i'm using wifi in mac and in my case like is explained in: http://apple.stackexchange.com/questions/20547/how-do-i-find-my-ip-address-from-the-command-line
Only this command returns the IP address (en1 is wireless):
IP=$(ipconfig getifaddr en1)

So i created a separate file react-native-fix-ip-xcode.sh with the following code:
set -x
DEST=$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH

if [[ "$CONFIGURATION" = "Debug" && "$PLATFORM_NAME" != "iphonesimulator" ]]; then
  PLISTBUDDY='/usr/libexec/PlistBuddy'
  PLIST=$TARGET_BUILD_DIR/$INFOPLIST_PATH
  IP=$(ipconfig getifaddr en0)
  if [ -z "$IP" ]; then
    IP=$(ipconfig getifaddr en1)
  fi
  $PLISTBUDDY -c "Add NSAppTransportSecurity:NSExceptionDomains:localhost:NSTemporaryExceptionAllowsInsecureHTTPLoads bool true" "$PLIST"
  $PLISTBUDDY -c "Add NSAppTransportSecurity:NSExceptionDomains:$IP.xip.io:NSTemporaryExceptionAllowsInsecureHTTPLoads bool true" "$PLIST"
  echo "$IP.xip.io" > "$DEST/ip.txt"
fi

And added ../react-native-fix-ip-xcode.sh after ../node_modules/react-native/packager/react-native-xcode.sh on the same Build Phase.
And it worked! :)
@satya164 Do you think the above code in "react-native-fix-ip-xcode.sh" is a valid pull request to "react-native-xcode.sh". So it also find the IP on en1 (wireless)?

I'll let someone with more experience with Code answer that.
cc @Kureev

Hey everybody!
First of all, let's try to summarize a bunch of problems you experience:

Pre-bundling doesn't work if there is an existing instance of packager running
Pre-bundled version doesn't have a hot module replacement / live reload options
IP detection is incorrect (sometimes)

Now, let's try to address these issues:

Pre-bundling doesn't work if there is an existing instance of packager running. I can understand why it happens, but what would be a desired behavior then? Should we kill an existing packager instance or should we spawn an another one on a different port?

Pre-bundled version doesn't have a hot module replacement / live reload options. It does make sense to me. If your packager doesn't server your JS files (that happens now when you deploy your application to device "by default". See https://github.com/facebook/react-native/pull/6352 discussion about packager/react-native-xcode.sh and https://github.com/facebook/react-native/commit/8c29a52c54392ce52148e7d3aa9f835537453aa4 that actually changes this behavior).

IP detection is incorrect (sometimes). I'll take a look into packager and IP detection code to find a way how we can make it work for you (i.e. expose an option to hook your ethN from the ENV for instance)

--
Please, let me know if this feedback makes any sense to you or you know the way to improve it ❤

Thanks @Kureev your feedback definitely helped! :D
This issue didn't happen to me: Pre-bundling doesn't work if there is an existing instance of packager running. It never worked even when i killed the existing instance of packager.
Maybe by fixing the IP address detection this issue won't occur anymore with @richarddlu, as it worked for me.
I agree with you that if it uses a pre-bundled version, it shouldn't have a hot module replacement / live reload options.
In case of the IP detection i believe this PR will fix the issue: https://github.com/facebook/react-native/pull/9964
Because the IP address should be in either en0 or en1 depending on how you access the internet.
I don't know if a option to hook the ethN on ENV makes sense, maybe a option to pass your IP address via ENV could be even better, if the script doesn't already find it.

@Kureev @vjeux Hi Guys, can you take a look at this issue and the PR I mentioned (https://github.com/facebook/react-native/pull/9964) to see if it makes sense to be part of RN 0.34?

When this will be pushed to a stable release?
Is not in v0.35.0-rc.0
https://github.com/facebook/react-native/blob/v0.35.0-rc.0/packager/react-native-xcode.sh#L77


The Giant Dwarf dialogue with Reldo and librarian bug

I'm on the step of the quest where you must talk to the librarian about the Imcando Dwarves. There is no option to do that and so I went to Reldo in Varrock and there is also no option for this dialogue. I have tried re-logging and opening the quest diary multiple times. Please help.

Duplicate of #223


File input dialog slow to appear after Chome update

I've been using cropit with great success for the last month or so, but today I noticed a 5-10 second delay that occurs consistently every time I click the image selector file input button. This delay seems to be due to Chrome firing off a "safe browsing" http request to Google.
I can bypass this issue on my own machine by going into the Privacy section of Chrome's settings and unchecking "Protect you and your device from dangerous sites." However, this will obviously not fix the issue for my users.
Is this Chrome's fault or is the plugin doing something unnecessary that is flagging Chrome's safe browsing safety feature?

meh chrome's people seem to be on it

How did you find that out about Chrome's people are on it? Just curious so I can keep track of this on my own. Thanks!

Well... my issue was that the file input click was being intercepted by Chrome, which was then sending a request to https://sb-ssl.google.com/safebrowsing. This request was returning a 502 status after a few seconds, and during those seconds, the file input dialog simply wasn't showing up. Shortly after I diagnosed the issue, it went away. Then it came back. Then it went away again. So I assumed someone working for Chrome was responsible, maybe changing the way they respond to safe browsing requests? Now that you're making me reflect on it, a network issue seems more likely. Haven't seen the problem since, at any rate.

Interesting. I am having sporadic issues with it being slow in Chrome. Sometimes it opens quick sometimes takes 3 seconds...

i fixed this defect and send the merge request


Move the MetricSourceOptions message out of the filter and encapsulate it

What's needed?

MetricSourceOptions in StreamFilter should be part of the request message instead of the filter message.
The list should be encapsulated in a message, so that the following use cases are covered:

message is None => All metric sources are returned
message exists, list is empty => No metric sources are returned
message exists, list has elements => specified metric sources are returned

Proposed solution
Example of the new request structure:
{
  "microgrid_components": [
    {
      "microgrid_id": 1,
      "component_ids": [1001, 1002]
    }
  ],
  "metrics": [
    {
      "metric": "VOLTAGE",
      "connections": ["dc_string_1"]
    },
    {
      "metric": "POWER"
      // No connections specified; data from all connections will be streamed
    }
  ],
  "filter": {
    "resampling_options": {
      "resolution": 60
    },
    "include_options": {
      "bounds": "FILTER_OPTION_INCLUDE",
      "states": "FILTER_OPTION_EXCLUDE"
    }
  }
}

Here is a proposal for the protobuf changes:
     // Request message for receiving stream of metrics, such as electrical
     // measurements, and other information for individual microgrid components.
     //
     // !!! note
     //     In addition to the raw metrics, the API can also return additional information
     //     like errors or operational states of the components during the specified time period.
     //
     message ReceiveMicrogridComponentsDataStreamRequest {
       // General filter criteria for querying microgrid components data.
       //
       // !!! note
       //     The filter criteria defined here are applied universally across all
       //     specified microgrids and their respective components.
       message StreamFilter {
         // Optional resampling options like resolution for the data, represented in seconds.
         // If omitted, data will be returned in its original representation.
         ResamplingOptions resampling_options = 1;

         // Include options specifying additional fields to be included in the response.
         IncludeOptions include_options = 2;

         // Optional time-based filter criteria.
         // If omitted, data will start streaming from the timestamp that the request was received.
         TimeFilter time_filter = 3;

-        // List of metric source filters
-        // For the metrics present in this list, the data from only the specified
-        // sources will be returned. If no sources are provided for a metric in this
-        // list, then no data will be returned for the said metric.
-        // For the metrics not present in this list, data from all of their sources will
-        // be returned.
-        repeated MetricSourceOptions metric_sources = 4;
       }

       // Encapsulates the microgrid ID and the component IDs within that microgrid for which
       // the data should be retrieved.
       //
       // !!! note
       //     Each entry in this repeated field associates a microgrid ID with its respective
       //     component IDs. At least one such association must be provided for a valid request.
       repeated frequenz.api.common.v1.microgrid.MicrogridComponentIDs microgrid_components = 1;

-      // List of metrics to receive data for, each possibly with connection filters.
-      //
-      // !!! note
-      //     At least one metric must be specified. Failure to do so will result in an empty response.
-      repeated frequenz.api.common.v1.metrics.Metric metrics = 2;
+      // List of metrics to receive data for, each possibly with connection filters.
+      //
+      // !!! note
+      //     At least one metric must be specified. Each metric can have an optional list of connections.
+      //     If connections are provided for a metric, only data from those connections will be returned.
+      //     If no connections are provided for a metric, data from all connections will be returned for that metric.
+      //
+      // !!! example
+      //     To receive `VOLTAGE` data only from the battery connection and `CURRENT` data from all connections:
+      //
+      //     ```
+      //     {
+      //       "metrics": [
+      //         {
+      //           "metric": "VOLTAGE",
+      //           "connections": ["dc_battery_1"]
+      //         },
+      //         {
+      //           "metric": "CURRENT"
+      //           // No connections specified; data from all connections will be returned for CURRENT
+      //         }
+      //       ]
+      //     }
+      //     ```
+      repeated Metrics metrics = 2;

       // General filter that applies to the data retrieval for all specified microgrids and components.
       //
       // !!! note
       //     The filter can specify resampling options, bounds, operational
       //     state, or errors to be returned.
       StreamFilter filter = 3;
     }

Use cases
No response
Alternatives and workarounds
No response
Additional context
No response

This is related with the issue improving the documentation for the metrics sources. I'll adjust this one to align with the changes in here.

I also renamed "sources" to "connections".


What is alternative to old vendor.browser.ts ?

I'm submitting a ...
[ ] bug report
[ ] feature request
[x] question about the decisions made in the repository

Hi. I using angular-starter repository as boilerplate very much time and prevoiusly here are was vendor.browser.ts file(in one folder with main.browser.ts) for importing old JS libraries for jquery/momentjs(with needed locale)/fullcelendar/something else. Current repository has no vendor.browser.ts and i'm not sure where i should put these js libraries.
Formally i can put these imports everywhere but i want to find best way to do it.

so when you say old JS libraries are you talking about importing libraries that have globals? if so then import them at the top of main.browser


event_handler for multiple services

And again ... nameko is great! :)
Is it possible to register an event_handler for more than just one service? something like:
@event_handler(["service_a", "service_b"], "event")
def bla(self, payload):
    pass

I have a proof of concept:
class MultiServiceEventHandler(EventHandler):
    @classmethod
    def decorator(cls, *args, **kwargs):

        def registering_decorator(fn, args, kwargs):
            if isinstance(args[0], list):
                args = list(args)
                services = args.pop(0)
                for service in services:
                    instance = cls(service, *args, **kwargs)
                    register_entrypoint(fn, instance)
            else:
                instance = cls(*args, **kwargs)
                register_entrypoint(fn, instance)
            return fn

        if len(args) == 1 and isinstance(args[0], types.FunctionType):
            # usage without arguments to the decorator:
            # @foobar
            # def spam():
            #     pass
            return registering_decorator(args[0], args=(), kwargs={})
        else:
            # usage with arguments to the decorator:
            # @foobar('shrub', ...)
            # def spam():
            #     pass
            return partial(registering_decorator, args=args, kwargs=kwargs)

event_handler = MultiServiceEventHandler.decorator

Do you plan something like this or should I stick with my own EventHandler?
cheers,
chris

Hi (and thanks)
in nameko, each service "owns" its own events, so in that sense it doesn't quite make sense to talk about "the same" event from different services. However, if the apis (event data) are compatible, you can stack the entrypoint (any method can be exposed as multiple entyrpoints), e.g.
@event_handler("service_a", "event")
@event_handler("service_b", "event")
def bla(self, payload):
    pass

would that do?

hi,
yes that's also a solution. I will use my own EventHandler to avoid code duplications.
thx,
chris

sure. one of our design goals is to keep things composable enough that you can replace parts to suit your exact use-case
note that the decorator implementation you are overriding is designed to work for any entrypoint. since you have a concrete use-case, you can simplify it (e.g. cutting out the second half since an event-handler decorator always takes arguments)

@chassing feel free to tell me to mind my own business but I would recommend against having a custom subclass like this, for a number of reasons:

Entrypoints were designed to stack for exactly this use-case.
By overloading Entrypoint.decorator you've made your application brittle to changes in this "internal" nameko code.
(Subjective but) I don't consider multiple @event_handler decorators to be duplications. Each one is an explicit declaration, and having them separate will make for easier refactoring in the future. If you're listening to the same event from more than a couple of services you should consider whether your service architecture is correct.
Adding ~25 lines of complex decorator code is a lot less maintainable than "duplicating" these simple event handler declarations.

Just my 2¢. Can you write about what your specific use-case is?


DO API Failure

The DO API currently fails with "you must specify a valid range for ports" as "ports": "all" must be defined as "ports": "0"
https://docs.digitalocean.com/reference/api/api-reference/#operation/update_firewall
Also the rule management is changed to:

create inbound rule if not port and protocol matching
add IP to first inbound rule with matching port and protocol
remove IP from all inbound rules with matching port and protocol

thanks @bmoers , I'm going to release a new version!


adds param update modes

Use this branch with the fxlens companion branch: https://github.com/fxhash/fxlens/pull/19

This PR adds fx(params) update modes.
fx(params) update modes
Live params can be enabled on a per param basis. To mark a parameter as live parameter you must specify the update mode of the param by setting the update flag on the parameter definition. The default update mode is "page-reload" which describes the already known behaviour of updating the artwork by performing a full page-load.
{
  id: "number_id",
  name: "A number/float64",
  type: "number",
  update: "sync", // <-- new update property
},

Parameters with update mode "sync" will be updated through the controllers without refreshing the artwork (iframe src). If your artwork is already running in some kind of draw loop (e.g. via requestAnimationFrame), you will already receive the live updates, because the updates are received in the background and the parameters are automatically updated on all places. If you want to only re-render you artwork when the update event was received and/or introduce some custom event handling you can use the new event listeners described in the next section.
Advanced configuration via event listeners
An event system was implemented. Artists can now subscribe to specific events in the pipeline, to trigger effects and override default behaviours by using the $fx.on() function.
$fx.on()
$fx.on(
  // the id of the event to subscribe to
  eventId: string,
  // the callback return true to opt out of default behaviour
  handler: (...params) => boolean | Promise<boolean>,
  // callback when event is done (e.g. after default behaviour)
  onDone: () => void
)

To subscribe to the parameter updates event you have to add a listener to the updateParams event. The following code snippet subscribes to the updateParams event and prevents the parameters to be updated when the updated parameter is number_id and the value is 5. Finally we call the main function that re-renders the artwork. This will prevent the value of the number_id live param param to ever be set to 5 through the controllers.
function main() {
  // render artwork
}

$fx.on(
  "updateParams",
  (newRawValues: Record<string, any>) => {
    if  (newRawValues.number_id === 5) return true;
    return false;
  },
  () => main(),
)

loving the activity/movement on this @maerzhase @ciphrd
just a quick question about how likely/timeframe this is to be reviewed/merged/deployed live given a :heavy_check_mark: review on the wonderful changes?
I am realizing that my piece is truely suffering from page reloads where the live/postmessage updates really change the whole game for me with a more reactive and pleasing UX for clients.
I fear having to work with page-reloads will just make potential clients click away.

@maerzhase @ciphrd
Hey guys, loving it... just a small comment...

$fx.on()
$fx.on(
...
  // the callback return true to opt out of default behaviour
  handler: (...params) => boolean | Promise<boolean>,
...
)

The callback returning true to opt out of default behavior is a bit backwards/confusing to me at least.
maybe because i'm used to event handlers in JS being falsey to stop propagation/immediately return/no bubble. i would assume that a false would indicate a no go/opt-out condition rather than true.

$fx.on(
"updateParams",
(newRawValues: Record<string, any>) => {
// this is a no-go condition
if  (newRawValues.number_id === 5) return false;
// everything cool here
return true;
},
() => main(),
)

Just my two cents?


Use Search not refreshing with the latest values

Go to the user search page, click the load more button, type zebra in the search inbox, notice that a bunch of results not related to zebra are still displayed in the UI

Can you assign this issue to me

@codyseibert  Can you assign this issue to me?

@jayshah-07 i assigned you !

@MidouWebDev  I'm not able to commit my changes.
$ git push -u origin search-list-refresh
remote: Permission to divanov11/Mumble.git denied to jayshah-07.
fatal: unable to access 'https://github.com/divanov11/Mumble.git/': The requested URL returned error: 403

@jayshah-07 i see that you cloned the main repo ? did you fork the repo ?

@MidouWebDev I've added my changes but it failed to deploy while creating a pull request. Moreover, I can't see details of the fail.
https://vercel.com/divanov11/mumble/C3bYTB7Vy9PZHb1gX9zByVtD4c8e [Preview link for error] => through 404
Is there something I'm doing wrong with the pull request?


[Feature] Add option in multipart form data to upload file or text

Description
To allow using file meta data, the server supports an object representation for file types. The API pane needs to allow users to choose the file type to be able to use this object. The property for each key-value pair would then look like:
{
  "key": "keyName",
  "value": "valueField",
  "type": "FILE" (or "TEXT")
}

The designs for this are available on: https://www.figma.com/file/ko05rfZRuc8HzqBZRpg1fY/API-Pane-Updates?node-id=119%3A2
Ref: #4907

@nidhi-nair @hetunandu can we not read the content type from the file automatically? I don't think we should ask the user to set this

@nidhi-nair @hetunandu can we not read the content type from the file automatically? I don't think we should ask the user to set this

@Nikhil-Nandagopal
We will try to prefill this the best we can, but the field will be present for the user to update it

@hetunandu I think the file is expected to have this data. I think a field is error prone and possibly a bad idea. Postman does not have a field so I don't see why we should. It just confuses the UI

@Nikhil-Nandagopal Adding more context:
The reason Postman works without exposing the field is that they only accept inputs for multipart data from the file explorer. Since the file metadata is available to them from this route, they are guaranteed to calculate the correct mime type.
In our case, one source is the file picker, for which the above format is to be included via #5503. For other sources, the ability to include file data should be supported by the API pane is why the design includes the field.

@nidhi-nair In that case should this be another field or should we include a complex file object field that has all the info. Is it possible we might need additional information like total file size as well? Maybe this field should expect a file object always


Creation full image docker.

Description de la proposition
I think the application has a well-designed user interface, but it might be even better to integrate it directly into a Docker image. This would simplify deployment, dependency management, and application portability, while providing a more robust and scalable solution.
URL de la page
No response
Contexte supplémentaire
No response

Thank you for your feedback @xorgxx .
The application itself is in a Docker container (Node.js), and a volume is created to map the source code into the container.
As it is an experimental project, I find it more flexible to do it this way


Release 0.12.1

Description
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Merge requirements
Please take into account the following non-code changes that you may need to make with your PR:

[ ] CHANGELOG entry for user-facing changes
[ ] Updated the relevant documentation

Thanks @paulfantom already change the target


centerMode is showing cropped slides in the left and the right sides

Hello,
As I understand this isn't a bug, but mostly functionality issue.
I want to show just 3 items in carousel, but when centerMode is set to true, in the left and the right sides there are shown half cropped slides.
How to hide them?

slidesToShow: 3,
centerPadding: 0

OR

var slideWidth = $('.slide').outerWidth()

slidesToShow: 1,
centerPadding: slideWidth

The slideWidth variable is pseudo-code. $('.slide') is not the real class name and, even if it was, it would be an array of all slides which would return the first (or is it last?) width of all the slides, which is only useful if your slides are all the same width

Thank you so much it worked.
One last question - is it possible to achieve some 3D slide animations like in this page (http://cu3ox.com)?

Not as is, but the code base is pretty straight forward, if you make a cool transition option you should submit it your code to get the ball rollin.

Perfect

Thank you nominalaeon It worked for me


Param combine in server/cluster.go

Description
Param combine in server/cluster.go
Type of change

Refactor (refactoring code, removing useless files)

Testing steps
N/A
Checklist

[ ] make before_commit passes
[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

Codecov Report

Merging #602 (6e4fd2e) into master (74e36aa) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #602   +/-   ##
=======================================
  Coverage   79.33%   79.33%
=======================================
  Files          15       15
  Lines        1674     1674
=======================================
  Hits         1328     1328
  Misses        244      244
  Partials      102      102

Impacted Files
Coverage Δ

server/cluster.go
88.88% <100.00%> (ø)

Continue to review full report at Codecov.

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


TextField build failed using Material 2.3.4

When I tried to build TextField Sample using Materail 2.3.4, it failed and Xcode 8 report that there had an error in Material+UIImage.swift at line 309. The information as follows:
"Material+UIImage.swift:309:30: Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions"

There is a fix being released for this very shortly. Please follow this issue: https://github.com/CosmicMind/Material/issues/591


Requirements for new languages

What are the requirements for it to work in another language? How many hours of audio do I need?

there are some discussions and pioneers in #57

Same to https://github.com/SWivid/F5-TTS/issues/87

Thanks! ❤ But how many hours of audio do I need on average? About 500 hours?

Thanks! ❤ But how many hours of audio do I need on average? About 500 hours?

Not sure, I think you can finetune another language model by using 500 hours data and give us an answer. I will close this issue, if you have other questions, you can reopen this issue. Feel free to ask question : )


Roll Engine from ef9d407fedfe to fa29cf45b360 (5 revisions)

https://github.com/flutter/engine/compare/ef9d407fedfe...fa29cf45b360
2022-02-22<EMAIL_ADDRESS>Roll Skia from 0861eaf30234 to debfdffe082c (3 revisions) (flutter/engine#31617)
2022-02-22<EMAIL_ADDRESS>Fix gn problem impacting fuchsia builds. (flutter/engine#31615)
2022-02-22<EMAIL_ADDRESS>Roll Dart SDK from<PHONE_NUMBER>ec to 70fd1c210ce0 (1 revision) (flutter/engine#31614)
2022-02-22<EMAIL_ADDRESS>Roll Skia from da1de8fa8b31 to 0861eaf30234 (2 revisions) (flutter/engine#31613)
2022-02-22<EMAIL_ADDRESS>Roll Skia from 4f7b6560123d to da1de8fa8b31 (1 revision) (flutter/engine#31612)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


[CIRCLE-7183] Wait for Docker to start before advancing

Tested script locally in Vagrant without issue.

LGTM


New version: Plex.PlexMediaServer version <IP_ADDRESS>27

Pull request has been created with komac v2.2.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

@josemikkola please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree


ASP NET MVC

Does Anyone know how to implement angular/cli with ASP NET MVC, i tried a lot of things and nothing happends, only errors. If Anyone knows please help! and thanks for your time

These kind of questions are more suitable for stackoverflow.com
It's not clear what exact "only errors" you have.
You can create restful web api server and access it from your angular app. I personally keep these two projects separate.

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

Closing as above.


Cleanup fields for projects

Remove confusing/unnecessary fields.
Ensure required fields cannot be left empty.

First bullet is done. Second is a duplicate of #60. Closing


NEBULA-913 React Wrapper on Apollo Explorer

This PR

straightens out the example files. We had an example pointing to the cdn and one pointing to the local files. We now have cdn examples and a single local example for local dev.
splits the umd build and the cjs / esm build into 2 steps so we can continue to expose EmbeddedExplorer on window while exporting named variables.
updates the readme for the new react & vanilla js examples
adds a react component that embeds a given config's graph as well as adding a small react app as a local dev test
update circle config to run the umd build & upload it to the cdn
address this issue by exposing a dispose function on EmbeddedExplorer class. We need this to clean up listeners when a react component is unmounted.
lint

Overall, this PR exports named vars ApolloExplorer which is the EmbeddedExplorer class, as well as ApolloExplorerReact which is a react component you can use to embed your graph.

Requesting Jason, because I don't know if Chang has time to review this


Private cloud2 9 0

Updated some old images, release notes for new release of Mendix for Private cloud portal
For 10 March 2022
Anchors dependent on #4270

Release approved over Slack.


How to Send KakaoLink?

node-kakao Have custom-attachment.js.
this is KakaoLink attachment.
How to Send KakaoLink?

const custom = new CustomAttachment(Info: CustomInfo, Content?: CustomContent, LinkInfo?: KakaoLinkInfo);
const attachment = new AttachmentTemplate(custom);
await chat.replyAttachment(attachment);

const custom = new CustomAttachment(Info: CustomInfo, Content?: CustomContent, LinkInfo?: KakaoLinkInfo);
const attachment = new AttachmentTemplate(custom);
await chat.replyAttachment(attachment);

I don't know how to use it.

const custom = new CustomAttachment(Info: CustomInfo, Content?: CustomContent, LinkInfo?: KakaoLinkInfo);
const attachment = new AttachmentTemplate(custom);
await chat.replyAttachment(attachment);

I don't know how to use it.

i'm stupid

Please stop asking code question on issue tracker


docker-compose v2 with network only displays welcome page nginx

Hello,
I first define a new network:
sudo docker network create --driver bridge proxy-tier
I then use docker-compose to setup the nginx reverse proxy as follows:
version: '2'
services:
  nginx:
    image: nginx
    ports:
     - "80:80"
     - "443:443"
    volumes:
     - /etc/nginx/conf.d
     - /etc/nginx/vhost.d
     - /usr/share/nginx/html
     - cert-store:/etc/nginx/certs:ro
    networks:
     proxy-tier:
  gen:
    image: jwilder/docker-gen
    depends_on:
     - nginx
    volumes_from:
     - nginx
    volumes:
     - /var/run/docker.sock:/tmp/docker.sock:ro
     - ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
    command: [
        -notify-sighup,
        nginx-proxy,
        -watch,
        #-only-exposed,
        -wait,
        "5s:30s",
        /etc/docker-gen/templates/nginx.tmpl,
        /etc/nginx/conf.d/default.conf
      ]
    networks:
     proxy-tier:
  letsencrypt:
    image: jrcs/letsencrypt-nginx-proxy-companion
    depends_on:
     - gen
    volumes_from:
     - nginx
    volumes:
     - cert-store:/etc/nginx/certs:rw
     - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
     - NGINX_DOCKER_GEN_CONTAINER=proxy_gen_1
volumes:
  cert-store:
networks:
  proxy-tier:
    external: true

My sample app looks as follows:
version: '2'
services:
  app:
    build: .
    ports:
     - "8081:80"
    environment:
     - VIRTUAL_HOST=www.xxx.com
     - VIRTUAL_NETWORK=proxy-tier
   networks:
     - proxy-tier
networks:
  proxy-tier:
    external: true

In order for the nginx config to display the ip addresses of the found container i would have to:
1/ comment out -only-exposed
2/ add the docker-gen to the network (proxy-tier)
3/ add VIRTUAL_NETWORK to the app env
The config of nginx now correctly points to the container. However, the nginx default welcome page is still displayed.
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
# scheme used to connect to this server
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
  default $http_x_forwarded_proto;
  ''      $scheme;
}
# If we receive Upgrade, set Connection to "upgrade"; otherwise, delete any
# Connection header that may have been passed to this server
map $http_upgrade $proxy_connection {
  default upgrade;
  '' close;
}
gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
log_format vhost '$host $remote_addr - $remote_user [$time_local] '
                 '"$request" $status $body_bytes_sent '
                 '"$http_referer" "$http_user_agent"';
access_log off;
# HTTP 1.1 support
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
# Mitigate httpoxy attack (see README for details)
proxy_set_header Proxy "";
server {
	server_name _; # This is just an invalid value which will never trigger on a real hostname.
	listen 80;
	access_log /var/log/nginx/access.log vhost;
	return 503;
}
upstream www.natvingerwerk.be {
				## Can be connect with "proxy-tier" network
			# nvw_app_1
			server <IP_ADDRESS>:80;
}
server {
	server_name www.natvingerwerk.be;
	listen 80 ;
	access_log /var/log/nginx/access.log vhost;
	location / {
		proxy_pass http://www.natvingerwerk.be;
	}
}
upstream www.natvingerwerk.com {
				## Can be connect with "proxy-tier" network
			# nvw_app_1
			server <IP_ADDRESS>:80;
}
server {
	server_name www.natvingerwerk.com;
	listen 80 ;
	access_log /var/log/nginx/access.log vhost;
	location / {
		proxy_pass http://www.natvingerwerk.com;
	}
}

From the proxy container it is not possible to ping to the app container. I have only one relevant firewall rule opening port 80. I disabled dockers functionality to configure the firewall.
I desperately looking for a solution. If someone knows anything more...
(Docker version 1.12.0, build 8eab29e & docker-compose version 1.8.0, build 94f7016)

Try this for your app config:
version: '2'
services:
app:
build: .
networks:
- default
- nginx-proxy
ports:
- "8081:80"
environment:
- VIRTUAL_HOST=www.xxx.com
networks:
nginx-proxy:
external:
name: proxy-tier

Something went wrong during the copy/paste. Indeed this network is defined for the app config.
Nginx config looks fine. It just doesn’t proxy but instead displays the default welcome page.
I reckon if the container is not reachable by the proxy it would display an error instead of displaying the default page.

So you see welcome page when you request http://www.natvingerwerk.be or http://www.natvingerwerk.com? generated config looks ok. Can it be that it is the proxied container that returns the welcome page for some reason?

I got this also today, as I forgot a semicolon (config syntax was wrong)
You could check the output of
docker exec -it nginx nginx -t -c /etc/nginx/conf.d/default.conf
Offtopic
@jwilder I executed this command and got
2016/08/05 08:34:09 [emerg] 31#31: "map" directive is not allowed here in /etc/nginx/conf.d/default.conf:3
nginx: [emerg] "map" directive is not allowed here in /etc/nginx/conf.d/default.conf:3
nginx: configuration file /etc/nginx/conf.d/default.conf test failed

The first 6 lines look like this:
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
# scheme used to connect to this server
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
  default $http_x_forwarded_proto;
  ''      $scheme;
}

But it's working, so no need to check this immediately.

@wader I am positive that this is the proxy's welcome page and not the app container.
@RafaelKr What semicolon did you forget?
The output is the same as yours. Could this be the error why it isn't working?

@RafaelKr default.conf is config ment to be included inside http { ... }, run with -c /etc/nginx/nginx.conf instead

@freskimo could the problem be that -notify-sighup is wrong, there is no "nginx" container? try to add container_name: nginx for the nginx service. That would explain the welcome page, default nginx config (with welcome page) is copied to the volume when container is created, docker-gen runs to produce the correct config but then fails to reload nginx.

I am currently experiencing a very weird and similar issue but every two request.
First request is well proxied to the destination container, I can see the logs of the proxied container and nginx-proxy to update. Second request update only nginx-proxy and displays the nginx home page.
running
Crazy ? Any hints on what to watch, and which useful informations to provide ?
Running docker exec -it propject_nginx_1 nginx -t -c /etc/nginx/nginx.conf returns:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

@wader You were right i feel dumb now :). Indeed, the command expects the name of the container. I should have read the doc better.
Thank you all for the help. This can be closed.

@freskimo no problem, i've been there too... stopid misconfigs 😄

I'm learning docker and would like to know what      "- VIRTUAL_HOST=www.xxx.com" environment variable is for? Where or how is this variable used? I don't see it used anywhere.

@biax Hi, it's used in the docker-gen template here https://github.com/jwilder/nginx-proxy/blob/0670a13d922a7c85d01d4ccb1c629bf3edc36dfe/nginx.tmpl#L79
It's a environment used in containers to tell nginx-proxy which hostnames to route to them.


datasets/real_doubled/0awj4JW0sUyQJWW1k0yPRg_farend_singletalk_with_movement_mic.wav and  datasets/real_doubled/0awj4JW0sUyQJWW1k0yPRg_farend_singletalk_mic.wav  are all empty data

Hi
I opened these two files with audio tools, and they were all empty data without any voice. why？
thanks！

you need use git lfs。
brew install git-lfs
git lfs install
git clone https://github.com/microsoft/AEC-Challenge AEC-Challenge


”Medieșu Aurit”, ”Băbășești”, ”Iojib”, ”Medieș-Râturi” are listed in the drop-down menu

Description:
When user writes ”Medieșu Aurit”, ”Băbășești”, ”Iojib”, ”Medieș-Râturi” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Medieșu Aurit"

Expected results
The location appears in the drop-down menu as "Sat Medieșu Aurit, SATU MARE (Medieșu Aurit)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Băbășești"

Expected results
The location appears in the drop-down menu as "Sat Băbășești, SATU MARE (Medieșu Aurit)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Iojib"

Expected results
The location appears in the drop-down menu as "Sat Iojib, SATU MARE (Medieșu Aurit)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Medieș-Râturi"

Expected results
The location appears in the drop-down menu as "Sat Medieș-Râturi, SATU MARE (Medieșu Aurit)".


fix typo

I found a meaningless if condition which always become false, because not operator(!) is evaluated before the instanceof operator.

This is actually a compile error, not a type.
Also fixed in https://github.com/mcavage/node-asn1/pull/21

@peecky were you able to resolve this based on @StefH's comment?

@peecky : Any update?

I have seen there is little progress on this project over the past few years.  My project, the net-snmp project, depends on this project, so I have cloned it and migrated (i.e. copied) all the outstanding issues and pull requests.
I will be releasing a new version of my version of this project under the asn1-ber namespace on npmjs.org by the end of the week which should address this particular item (I've already pushed the current code to this namespace to reserve it).
I am now tracking all changes under my own copy at asn1-ber.  Note that this is not a "fork" but a clone and fresh commit to a new repository.  I have of course retained all copyrights and attributed back the original author.
There are quite a few projects dependant on this project, and I want to make sure there is momentum on the issues and feature requests reported.

This issue has been addressed in my version of this project which has now been published to npm:
https://www.npmjs.com/package/asn1-ber


n will NOT work correctly

Quoting the docs:

IMPORTANT: Please note that currently only single keystrokes and special keys can be mapped. This means that a mapping like n will NOT work correctly. For a list of special keys that are supported, see help :key-notation`.

This is an issue for me, since I use the leader key to access most plugins, as well as many other users do (hence already being noted in the docs). I've found some bugs describing the issue, but all where closed. Opening this issue to try to get the discussion back on going.

Duplicate, see #226 for more info.


Licensing Issues

A brief description
The Linux kernel is under the GPL. All of the GNU tools are under the GPL/similar licenses. Ubuntu, of which this is based, is also open source. And this is not. I am disappointed in you. You have not followed ANY of the licenses.
Expected results
Microsoft follows rules
Actual results (with terminal output if applicable)
Microsoft doesn't follow rules
Your Windows build number
I am on Android 7.0, but I have Windows 10 Anniversary Update.
Steps / All commands required to reproduce the error from a brand new installation
Follow the licenses and add code to the repository. GitHub is a code repository, not a place to submit issues. Use your bug reporting services instead.
trace of the failing command
Error: License issues
Required packages and commands to install
sudo apt-get upgrade

Oh yeah, and I use an iMac with no Microsoft products as my main PC now. At least apple releases the necessary source code for macOS's kernel.
https://opensource.apple.com/release/macos-10124.html - macOS 10.12.4 open source programs/kernel
https://opensource.apple.com/release/developer-tools-821.html - Xcode developer tools 8.2.1 source code
https://opensource.apple.com/release/ios-1021.html - iOS 10.2.1 open source tools/libraries

The maintainers can give you a definitive answer on that, but the afaik the WSL doesn't use any part of the linux kernel - it is an independent implementation of the API/ABI provided by it.
Ubuntu and all the tools running on it come directly from canonical / the ubuntu repositories and I'm pretty sure you can get the soure code for all of them.
So there is no copyright / license violation going on.
That aside - wasn't there talk about eventually open sourcing the WSL code at least partially?

+1 -- the WSL kernel is a reimplementation from scratch.  It is not using any Linux source code; therefore it does not need to license Linux; therefore it is not constrained by that license.  (Fair warning: I am not a lawyer.)
There's a long history, both in enterprise and within the open-source community itself, of reimplementing software from scratch in order to avoid some clause in the old implementation's license.  Clang, the compiler used by Xcode, and its companion libc and libc++, are classic examples:  gcc, the most-commonly-used compiler on Linux, is licensed under the GPL, and its standard libraries are licensed under the LGPL.  It would be in violation of those licenses to use those libraries in closed-source applications.  (Dynamic linking under the LGPL is probably ok but is a grey area; the consensus seems to be that static linking simply isn't allowed; debugging tools built based on gcc would have to be fully open-source.)  Much of Apple's own software is closed-source, and Apple works extensively with companies that develop closed-source software, so this was unacceptable.  Early versions of Xcode did use gcc.  As a result, Apple arguably should have (but never did) released all of Xcode's source code.  Instead, they poured a pile of resources into developing clang into a viable alternative compiler, and releasing it under a much-more permissive license.  As a result, as you can see, they don't actually release most of Xcode's source code.  (Look more carefully at the link above; far from open-sourcing all of Xcode, Apple is only releasing a few tools that are themselves already open-sourced.)
It's true that clang itself is open-source.  But it uses a license (BSD) that is mutually incompatible with the GPL -- it would be in violation of gcc's license for clang to use gcc's source code precisely because clang's license allows building clang and its standard libraries into closed-source tools and gcc's does not.  Basically, clang isn't itself closed-source but it supports closed-source in a way that gcc very specifically disallows.  Regardless, the law doesn't care about intent, nor about the new license:  It's a reimplementation; Apple can do whatever they want.  Similarly, WSL is a reimplementation; Microsoft can do whatever it wants.
(Also, don't get me started about Apple's kernel sources.  Mac OS X's kernel is not based on Linux at all; it's a hybrid of NeXT and I think FreeBSD?  So it's not bound by the GPL, and It's not immediately clear to me whether they need to release its source at all.  And sometimes they don't bother, at least not promptly.)
The WSL userspace, on the other hand, is absolutely covered by a multitude of different open-source licenses.  But the whole point of WSL is that these programs are not only the same source code but the exact same binaries and binary packages as are used by Ubuntu Linux.  (If I recall correctly, they are simply using Ubuntu's public cloud image?)  As such, you can download the source code here:  http://archive.ubuntu.com/ubuntu/
Regarding submitting issues:  Because many of WSL's userspace applications are, as you say, open-source, it's convenient for developers of those apps to be able to cross-reference tickets in the application's repository and tickets in the WSL team's repository.  In that sense, I for one really appreciate that the WSL team has put their bugtracker on github; it makes this much easier.
@MajickTek -- while your request is not clearly based in common US licensing law, it seems to me that what you're saying is that you want WSL to be open-source, and that it feels wrong to you that it's closed-source.  That, I would agree with.  And so do other people -- that part of your request is a dupe; it's literally ticket #1 in this bugtracker.

@MikeGitb If  the lxss kernel-mode driver API is ever made public, it will probably be added to the WKMDF and therefore have some of its code open sourced.  As for the main pico driver code, I don't think so.
I mean, given MS's ownership and the closed source nature of most of the Windows libraries, I do wonder if it would ever make sense for MS to opensource the entire NT Kernel including WSL (Alex Ionescu maintains that the best documentation for the NT Kernel around today is still the ReactOS project, despite being based on a much older version of the kernel).

@MikeGitb you said most of Apple's programs are closed source. This is most definitely not true.
opensource.apple.com

@MajickTek: You seem to confuse me with someone else.

@MikeGitb I meant to say @aseering. Sorry ;)

Ah, hi -- @MajickTek -- One example:  If XCode is open-source, then I can download all of those files, run some series of commands, and get my own XCode.app.  You seem very confident that it is open-source.  So:  What are the commands that I run to get my own XCode.app?

@aseering I didn't mean Xcode.app, I meant it's tools. That is:
cctools
clang
the developer commands (developer_cmds)
gnumake/gcc_select/gperf/gm4
ld
subversion
etc

@MajickTek -- so you're agreeing that Apple does keep a lot of its own software (for example, XCode) as closed-source?  Apple makes a lot of software (iTunes, Pages, Final Cut Pro, Safari, iOS, and so on; it's a long list) and most of it is in fact closed-source.
As for the list above, some of those are Apple's code, and I applaud them for releasing that code.  There are some really substantial open-source releases under the OS (kernel) section, which is great.  Though, Apple has been rather slow to publish updates to some of that code lately, which has been frustrating to me personally.  Also, most of the apps listed above aren't even Apple's apps at all.  Subversion is managed by the Apache foundation.  gnumake et al are GNU projects.  clang did receive a lot of support from Apple a while back, but it's owned and hosted by UIUC.  In those cases, Apple isn't really releasing their own code; they're just re-releasing someone else's code :-)
So Apple does release a few things.  So does Microsoft:  https://opensource.microsoft.com/  There's some legit software there:  For example, you can get the source code for their .NET runtime and core libraries, which opens the door to turning a lot of Windows applications into cross-platform applications.  Or you can get Microsoft Edge's JavaScript engine.  Visual Studio, alas, remains firmly closed-source; though Visual Studio Code's source and bugtracker are both available.  They do publish code for a handful of third-party apps as well; for example, git and OpenSSH.
Of course, like Apple, Microsoft develops a large body of closed-source software as well.  Bot have their strengths and their weaknesses.

This is becoming a flame-war now. It was an interesting one, but now I will close the discussion. Problem solved ;)