slickUnfilter removes all the slides on mobile

short description of the bug / issue, provide more detail below.
This is a Shopify store.
https://www.uberscuuter.com/products/the-uber-scuuter-lite-gt?preview_theme_id=83332563023

When you visit the product page from mobile devices, choose Color variants (Black and White) for a few times. (Switch between different ones). All the thumbnails are removed from the slider.
For your information, here is code snippet about what happens when color is selected.
      $('[name="color"]').change(function() {
        $('.product-single__thumbnails').slick('slickUnfilter');
        $('[data-color').parents('[data-slick-index]').removeClass('slick-filtered');
        var thisVal =  $(this).val().toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/-$/, '').replace(/^-/, '');;
        var index = $('[data-color="'+ thisVal +'"]').parents('[data-slick-index]').attr('data-slick-index');
        var $colorDatas = $('[data-color="'+ thisVal +'"]');
        $colorDatas.each(function(){
          $(this).parents('[data-slick-index]').addClass('slick-filtered');
        })
        $('.product-single__thumbnails').slick('slickFilter','.slick-filtered');
      });

====================================================================

https://www.uberscuuter.com/products/the-uber-scuuter-lite-gt?preview_theme_id=83332563023
====================================================================
Steps to reproduce the problem

Visit this page from mobile:
https://www.uberscuuter.com/products/the-uber-scuuter-lite-gt?preview_theme_id=83332563023

Click "White" from color options, click "Black" again. Click "White" again.
Then, the thumbnails are all gone.

====================================================================
What is the expected behaviour?
The thumbnail slider should remain there when choosing color variant.
...
====================================================================
What is observed behaviour?
When you switch between Black and White for a few times, it is removing all the thumbnails from slick slider.
...
====================================================================
More Details

Which browsers/versions does it happen on?
Most browsers. Tested on Chrome and Safari of iPhone 11.

Which jQuery/Slick version are you using?
jQuery: 2.2.3
Slick: 1.8.8

Did this work before?
Never worked.

I tried to revert Slick to 1.7.1, but no luck.

I am having a similar issue where on the responsive breakpoints all the slides disappear on unfilter.  I see this was an issue back in 2015 but @kenwheeler resolved it.  However, sounds like we are experiencing a similar same problem again.  Here is my code.  Working on an old site that is not es6 sorry ;(
`    var initPassSlick = function(selector) {
  selector.slick({
    infinite: false,
    dots: true,
    slidesToShow: 2.75,
    slidesToScroll: 1,
    responsive: [
      {
        breakpoint: 1920,
        settings: {
          slidesToShow: 2.5,
          slidesToScroll: 1,
        }
      },
      {
        breakpoint: 1441,
        settings: {
          slidesToShow: 2.25,
          slidesToScroll: 1,
        }
      },
      {
        breakpoint: 1200,
        settings: {
          slidesToShow: 1.5,
          slidesToScroll: 1
        }
      },
      {
        breakpoint: 920,
        settings: {
          slidesToShow: 1.25,
          slidesToScroll: 1
        }
      }
    ]
  })
  .on('setPosition', function (event, slick) {
    slick.$slides.css('height', slick.$slideTrack.height() + 'px');
  })
  selector.slick('slickFilter','[data-age-group="Adult"]');
};

initPassSlick($('#slick-init-1'));
initPassSlick($('#slick-init-2'));

var initAgeFilter = function(selectorBtn, selectorSlick) {
  selectorBtn.on('click', function(){
    $(this).siblings().find('.pass-filter-btn').removeClass('js-active');

    var $button = $(this).find('.pass-filter-btn'),
        ageGroup = $button.data('age-group');

    $button.addClass('js-active');
    selectorSlick.slick('slickUnfilter');
    selectorSlick.slick('slickFilter', '[data-age-group="+'ageGroup'+"]');

  });
};

initAgeFilter($('#pass-filter-jhole-passes > .js-pass-filter-btn'), $('#slick-init-1'));
initAgeFilter($('#pass-filter-multi-resort > .js-pass-filter-btn'), $('#slick-init-2'));`

I can confirm that the selectorSlick.slick('slickUnfilter'); removes all the slides on responsive.  This is currently happening on this page.  https://www.jacksonhole.com/season-pass.html.   However, I may have to refactor to use something else so it might not be there for too many more days.
Anyway @kenwheeler we love your work and have seen you speak a few times.  If you have time to helps me out that would be awesome.  Thanks.

I figured it out.  If I reset the slide index to 0 before triggering the unfilter and filter it seems to be working just fine.
selectorSlick.slick('slickGoTo', 0, false); -> then filter


Add support for AJP connections

Resolves #88

@timopick Can you please verify, whether this works as you expect?

This all looks good to me, however I don't really see the point of it, since it's not possible to cluster  OSIAM at the moment.

@wallner We're using AJP connectors in a current project- The cluster ability should however be restored at some point in the future.

@timopick I agree with you: OSIAM needs to be clusterable, however it never has been, but we have it on the road map.

Looks good! Thanks!

So you closed this PR, @timopick?

Lol, oops on my part :) I meant to close the feature request ;)

@timopick If this is the desired solution, please merge the PR. I've already assigned you to this.

Please rebase

rebased

Thank you!


CLI: Only include PLATFORM in stack default envs when env[PLATFORM] present

Fixes a bug introduced by #2677 and #2667 that made stacks require a PLATFORM in env.
Before:
$ bin/kontena stack validate redis.yml
 [error] RuntimeError : Variable validation failed: {"PLATFORM"=>{:presence=>"Required value missing"}}

After:
👍

Hmm.
    def set_env_variables(stack, grid)
      ENV['STACK'] = stack
      ENV['GRID'] = grid
      ENV['PLATFORM'] = grid
    end

It should always be set.

Yes, the idea was that PLATFORM is always set, just like GRID and STACK

Hmm, testing with master branch:
$ k stack install ~/code/stacks/redis-simple.yml
 [done] Creating stack simple-redis
 [done] Triggering deployment of stack simple-redis
 [done] Waiting for deployment to start
 [done] Deploying service redis

$ k stack validate ~/code/stacks/redis-simple.yml
 [error] RuntimeError : Variable validation failed: {"PLATFORM"=>{:presence=>"Required value missing"}}
         See /Users/jussi/.kontena/kontena.log or run the command again with environment DEBUG=true set to see the full exception

How come install can succeed if validation fails?

Fixed in #2707


XELK Transformer Restructure

Refactor XELK to use a flatter approach to ElkNode generation rather than recursive.
Avoid None to mark the XELK root node. Consider adding a Sentinel singleton in case None is a node in the incoming Networkx graph.
Investigate moving dynamic visibility functionality from XELK to more general ElkTransformer

Avoid None to mark the XELK root node. Consider adding a Sentinel singleton in case None is a node in the incoming Networkx graph.

A further refactor for testability would be to extract all of the "guts" of the transformer algorithm to not be aware of widgets or even traitlets. This would help the typeability (#25) / testability (#39) of the system. The output of this would be schema-valdiateable (#29).

Scratch pad for thoughts:

with #47, is it worth keeping css_classes  dictionary?

original intent was to have a mechanism for only updating css classes of some marks (probably better handled with additional commands to sprotty like the current fit and zoom commands in ElkDiagram.

standardizing generating elk ids - currently mapping networkx nodes to strings for predictable identifiers between updates. better ways to accomplish using internal maps?
ElkPort creation happens in two places - simplify

standardizing generating elk ids

i started mangling them, couldn't handle the > in them anymore. they are funny as all get out once emoji start showing up. what did you have in mind?

We can even uuid them if we keep a mapping of the original item to the new uuid. The problem i see is specifying the ports on an edge. I havent worked out how we would concisely specify port data on an edge, right now:
g.add_edge("a", "b", sourcePort="x", targetPort="y")
Programatically things work out nicely as well if "x" and "y" are hashable things we can still work out mappings but I dont know what it looks like yet for round tripping from networkx json. There might be something obvious but not clear yet in my brain.


Allow newer version of psr/log

PSR-3 has added strict typing in new versions.

thanks, need a rebase now

@dantleech done.

thanks!

@dantleech you bet!

@dantleech can we get a new 0.5 release of this package? I'd like to start using it for some class discovery in our project and this PR was a blocker.

Done


Quote MySQL field names for insert statement

Closes #14
Adds back ticks around MySQL field names, which will allow all names including MySQL reserved words to be used.

Thanks!


XML request templating

Do you have any option for SOAP XML request template and reusing example table
In the below example there are two place holders one for filling firstName and lastname
i will define EXAMPLE table with firstName and lastName alone but i dont define AGE in that case AGE tag should be get removed.
Sample
XML request format
<query>
<name>
<firstname>${firstName}</firstname>
<lastname>${lastName}</lastname>
</name>
<age>${age}</age>
</query>

Could you please provide solution for this scenario

That is a great question and for the time being I don't have a great solution for the conditional age tag other than using a JavaScript function, but I see a gap where manipulating XML inside JS may not be supported fully yet.
The way Karate is designed, you can certainly achieve this if you call some Java code. Take a look at Java interop. Meanwhile I will consider this as a feature request.
Hope you are aware that XML templating works exactly like JSON where any element (or attribute) values in the #() form will evaluate expressions within the brackets.

thanks for the prompt reply. i tried #(name) but stil its got failed with below log line. any clue?
00:10:26.991 [main] WARN  com.intuit.karate.Script - embedded xml-text script eval failed: script failed: (name)

Try something like this:
* def name = '<name>'
* def query = <SubjectName>#(name)</SubjectName>

@venkatesgopi not sure if you are watching this ticket, but can you try this example:
https://github.com/intuit/karate/blob/3450222b44dec17dacff46a8087db0a199d19547/karate-junit4/src/test/java/com/intuit/karate/junit4/demos/xml-and-xpath.feature
This should work in version 0.4.0-SNAPSHOT
I'd like to know if this works for you.

Thanks lot for the support. i will check and get back to you very soon.


Modified MSIDErrorCodeForOAuthError

Added a wrapper function to also take into consideration the subError code, while keeping the original functionality same
Proposed changes
Describe what this PR is trying to do.
Type of change

[ X] Feature work
[ ] Bug fix
[ ] Documentation
[ ] Engineering change
[ ] Test
[ ] Logging/Telemetry

Risk

[ ] High – Errors could cause MAJOR regression of many scenarios. (Example: new large features or high level infrastructure changes)
[ ] Medium – Errors could cause regression of 1 or more scenarios. (Example: somewhat complex bug fixes, small new features)
[ X] Small – No issues are expected. (Example: Very small bug fixes, string changes, or configuration settings changes)

Additional information

I couldn't figure out why the tests are failing, even after reverting all my changes,
I created a new pull request please have a look at this.
https://github.com/AzureAD/microsoft-authentication-library-common-for-objc/pull/1178


Autocomplete onSelect

🐛 Bug Report
When selecting an option I have to press twice to actually select something, the first press doesn't run the onSelect, it just removes the focus on the textinput and lowers the keyboard.
Im using the Autocomplete Accessories example in the docs
Although it works on the showcase, the copy pasted code doesn't work in my project
To Reproduce

type query
press on an option
*focus is textinput is removed, keyboard closes, but option is not selected.
press on an option
*option is selected and onSelect runs

Expected behavior
first press on an option should select it right away like the example in the docs
UI Kitten and Eva version

Package
Version

@eva-design/eva
v2.0.0

@ui-kitten/components
v5.0.0

I think its similar to this https://stackoverflow.com/questions/49284127/react-native-two-taps-required-for-onpress-to-work since the options is a scrollview
But I dont know where to put keyboardShouldPersistTaps="always" i tried in Autocomplete and AutocompleteItem but it doesnt work

same issue with #1122


Add setting to access app oauth settings

Open in Safari. There you can request other org perms.

This one is also implemented, it seems. :)


Implementing a confidence rate for rasa NLU intent detection

Description of Problem:

Overview of the Solution:
I implemented a "threshold" argument -> a float between 0.0 and 0.9999....
It parses the confidence score of the IntentClassifier and it takes into account the intent classification result if and only if the confidence score is above the threshold.
I also implemented a "forget" score -> total of user input that fall directly into "I don't know the intention" intent / total of user input. This way, you can have both the f1 score of the user input considered by the model and the proportion of input "intentionaly forgotten" by the model.
Describe, without going too low into technical details,
what changes need to happen during implementation of this feature. -->
inherit the threshold param and the fraction forgotten inputs /total inputs
Examples (if relevant):

os.system(f'rasa test nlu -u {tts}{ficdir}/test_data.md --config ../config_supervised.yml --threshold 0.7 --out ../results2/{ficdir} --model ../models/{ficdir}.tar.gz')
"micro avg": {
"precision": 0.972972972972973,
"recall": 0.972972972972973,
"f1-score": 0.972972972972973,
"support": 185
},
"macro avg": {
"precision": 0.9734318555008209,
"recall": 0.9731189960575267,
"f1-score": 0.9725201549663185,
"support": 185
},
"weighted avg": {
"precision": 0.974095238095238,
"recall": 0.972972972972973,
"f1-score": 0.9726984358152821,
"support": 185
},
"forgotten": 10
}
Blockers (if relevant):

Definition of Done:

Thanks for submitting this feature request 🚀 @amn41 will get back to you about it soon! ✨

hi @lpschaub - thanks for this feature request. My gut reaction is that this logic should not be inside of NLU. We have fallbacks in core that handle this. If you are only using NLU, I'd go for implementing this logic in your own code that calls the NLU server

Hello thanks for your answer.
I did implement it in my own fork.
Only for rasa nlu test though.
If anyone is interested I can share the code


Add number of participants to the report

Can I go ahead and merge this?
We should at some point hop on the train and use the refactored bits and pieces for the reports...

Yes. If we are keeping to the PR review workflow it would be great to have a little more info in PRs as it can be hard to know 1. What you want reviewing and 2. what is happening without some detail.


Fix llava vl template

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Please describe the motivation of this PR and the goal you want to achieve through this PR.
Modification
Please briefly describe what modification is made in this PR.
BC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist

Pre-commit or other linting tools are used to fix the potential lint issues.
The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
The documentation has been modified accordingly, like docstring or example tutorials.

构造 expected 的代码
# https://github.com/haotian-liu/LLaVA/blob/v1.2.2/llava/serve/cli.py
from llava.conversation import conv_templates
conv = conv_templates['llava_v1'].copy()
inp = '<IMAGE_TOKEN>' + '\n' + 'q1'
conv.append_message(conv.roles[0], inp)
conv.append_message(conv.roles[1], None)
prompt = conv.get_prompt()

conv.messages[-1][-1] = 'a1'
conv.append_message(conv.roles[0], 'q2')
conv.append_message(conv.roles[1], None)
prompt = conv.get_prompt()


uguid: Add Guid::with_random_bytes

Codecov Report

Merging #150 (d9d0d76) into main (9021c49) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
+ Coverage   94.18%   94.22%   +0.03%
==========================================
  Files          14       14
  Lines        1530     1540      +10
==========================================
+ Hits         1441     1451      +10
  Misses         89       89

Files
Coverage Δ

uguid/src/guid.rs
99.14% <100.00%> (+0.03%)
:arrow_up:


Can silly generate the bank card number?

Can silly generate the bank card number?

It used to be able to, but I had to turn it off because it kept generating
real bank card numbers and banks were getting angry at me.
For the sake of safety, I recommend always using "7" as your generated bank
card number.
On Tue, Nov 29, 2016 at 6:50 PM, 山野痞夫<EMAIL_ADDRESS>wrote:

Can silly generate the bank card number?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/classam/silly/issues/9, or mute the thread
https://github.com/notifications/unsubscribe-auth/AADIgJUIg6cMl5fRUdBH8b57zGDq2fAgks5rDOSTgaJpZM4K_vry
.

--
Curtis Lassam
http://curtis.lassam.net
Cel:<PHONE_NUMBER>


nginx proxy service gets stuck restarting

There are two issues that need to be addressed:

The nginx proxy service gets stuck in a restarting state making the website unavailable for users
There are no historical logs maintained by the app to determine the cause

The output of docker-compose is:

CONTAINER ID   IMAGE                          COMMAND                  CREATED       STATUS                          PORTS      NAMES
44e20621eba1   uavcan/nunaweb-proxy:latest    "/docker-entrypoint.…"   4 weeks ago   Restarting (1) 20 seconds ago              ubuntu_proxy_1
4749e46295cc   uavcan/nunaweb-server:latest   "gunicorn '-w 4' '-b…"   4 weeks ago   Up 2 hours (healthy)            8080/tcp   ubuntu_nunaserver_1
2f6ae1f37a59   minio/minio:latest             "/usr/bin/docker-ent…"   4 weeks ago   Up 2 hours (healthy)            9000/tcp   ubuntu_minio_1
e41f0f6e82a6   redis:latest                   "docker-entrypoint.s…"   4 weeks ago   Up 2 hours                      6379/tcp   ubuntu_redis_1
009d99955b63   uavcan/nunaweb-server:latest   "celery -A nunaserve…"   4 weeks ago   Up 2 hours                      8080/tcp   ubuntu_celery_1

How can I replicate this issue?

Closing for now; will re-open with more information later if the issue re-appears.


Uncaught Error: Unexpected usage

Hi I'm getting this below error , when I add language option. Kindly let us know how do I resolve it.
      errors.js:15 Uncaught Error: Unexpected usage
      Error: Unexpected usage
           at EditorSimpleWorker.loadForeignModule (editorSimpleWorker.js:673)
           at webWorker.js:76
           at errors.js:15

My method to initialize the code editor
 import * as monaco from 'monaco-editor';

 let monacoEd = monaco.editor.create(document.getElementById(containerId), {
    value: val,
    language: "javascript", //'text/html'
    lineNumbers: "on",
    roundedSelection: false,
    scrollBeyondLastLine: false,
    readOnly: false,
    theme: theme,
    wordWrap: 'wordWrapColumn',
    wordWrapColumn: 50,
    scrollbar: {
        horizontal: 'visible',
    },
    letterSpacing: 1,
    useTabStops: true
});

Thank You

@sdrebel This looks like an integration problem, your snippet looks OK. What is the HTML around that code snippet ?

@alexandrudima, HTML is surrounded by a modal popup. We are using grapesjs framework and our application is built on react.

I have tried with 'react-monaco-editor' also. This issue is only when I add language option. Else there is no issue at all.

@sdrebel Without a reproducible sample, I cannot really help. The only thing I can say for sure is that web workers are misconfigured. Do you define the worker paths correctly? Have you seen all the samples at https://github.com/microsoft/monaco-editor-samples ?

Have you seen https://github.com/microsoft/monaco-editor/issues/1385 ?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


FT_Transformer - Attention weights

Thanks for these models. The FT_transformer is working well. Is there a way to extract the attention weights from the model. I understand these can be used to get feature importance.

@peterlee18 glad to hear it is working well! hope it is not too late, but you can now return all the attention maps by passing in return_attn = True on forward as so

Thanks very much. Will give it try.
By the way, the FT_Transformer architecture is much more performant (than the Tab_Transformer)  when applied to insurance tubular data. Its makes NN competitive with GBMs and with different performance characteristics, it’s helpful in a simple weighted ensemble with GBMs.
From: Phil Wang @.>
Sent: Thursday, April 6, 2023 2:15 AM
To: lucidrains/tab-transformer-pytorch @.>
Cc: peterlee18 @.>; Mention @.>
Subject: Re: [lucidrains/tab-transformer-pytorch] FT_Transformer - Attention weights (Issue #17)
@peterlee18 https://github.com/peterlee18  glad to hear it is working well! hope it is not too late, but you can now return all the attention maps by passing in return_attn = True on forward as so https://github.com/lucidrains/tab-transformer-pytorch/commit/582ebc801797199e6f7d3ae491981335f251e451#diff-82fca44d3316e0c04a31bad04114cfff1a8d47b8eb12d9f7397ba7272358f72eR183
—
Reply to this email directly, view it on GitHub https://github.com/lucidrains/tab-transformer-pytorch/issues/17#issuecomment-1498363376 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AXTVV6TLXU726YGTVG3Z37DW7YKJ5ANCNFSM6AAAAAAVJHAUZU .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AXTVV6XDGXNU42X2UXLS2J3W7YKJ5A5CNFSM6AAAAAAVJHAUZWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSZJ427A.gif Message ID: @.*** @.***> >

@peterlee18 that is really interesting
if i find some more time, i'll improve on FT transformer with some of the latest findings, see if i can tip it over the edge

@peterlee18 how much data are you working with? (if you are allowed to say)

I’m experimenting with around 1m rows of data with around 30 features. Mixture of numerical and categorical. I have pre-converted the categorical features into embeddings other the number of dimensions gets too large. FT_Transformer is both memory and gpu intensive (that’s the down-side) so using quite small batch sizes (for insurance data use-case). Also in inference mode, I chunk up the data to get predictions out, otherwise we run out of memory.
From: Phil Wang @.>
Sent: Friday, April 7, 2023 5:19 PM
To: lucidrains/tab-transformer-pytorch @.>
Cc: peterlee18 @.>; Mention @.>
Subject: Re: [lucidrains/tab-transformer-pytorch] FT_Transformer - Attention weights (Issue #17)
@peterlee18 https://github.com/peterlee18  how much data are you working with? (if you are allowed to say)
—
Reply to this email directly, view it on GitHub https://github.com/lucidrains/tab-transformer-pytorch/issues/17#issuecomment-1500432214 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AXTVV6SRK6HVYX6WE2Y7323XAA5ALANCNFSM6AAAAAAVJHAUZU .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AXTVV6W62KXSEUISFNVJDB3XAA5ALA5CNFSM6AAAAAAVJHAUZWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSZN3DVM.gif Message ID: @.*** @.***> >

@peterlee18 that's really cool! at my last job i did a lot of work with GBMs (training and deploying xgboost models mainly) and they were really hard to beat
glad to hear you were able to get competitive performance using attention!


az vm create preemptible VM

az feedback auto-generates most of the information requested below, as of CLI version 2.0.79

Describe the bug
I cannot find 'az' option to create preemptible VM
pls. look here - https://cloud.google.com/preemptible-vms/
To Reproduce
Steps to reproduce the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Additional context
Add any other context about the problem here.

I opened a pull request for this issue.

The update will be available in next version of Azure CLI. Release: 03/31/2020

I should close this issue on 3/31/2020.


Sudo password prompt

Hi there,
I just tried out the latest version of bolt and really great to see the sudo support! Currently it only works if you supply the sudo password through the commandline interface. I prefer to also have a password prompt for the sudo password (the same as it is now for the ssh password). I guess it would only require a couple of extra lines of code.
Current lines of code for password
        opts.on('-p', '--password [PASSWORD]',
                'Password to authenticate with (Optional).',
                'Omit the value to prompt for the password.') do |password|
          if password.nil?
            STDOUT.print "Please enter your password: "
            results[:password] = STDIN.noecho(&:gets).chomp
            STDOUT.puts
          else
            results[:password] = password
          end
end

But this is not there at the sudo_password field:
        opts.on('--sudo-password [PASSWORD]',
                'Password for privilege escalation') do |password|
          options[:sudo_password] = password
end

This would really be great if this can also be implemented :)

That seems pretty straight-forward. I'll take a look at adding it.

And hit the wrong button.

Reproduced this, it just hangs if I pass --sudo-password without an argument and one is required.

It also seems to behave poorly if your user doesn't have sudoer access. Just hangs after the successful password. I'll see if I can do anything about that.

Awesome, thanks and confirmed it to be working :D

Sounds like this is fixed! Please reopen if I'm mistaken.


Can't load specific urls

Hello, i'm trying to load the following urls:

https://nevnov.ru/487640-v-peterburge-otkrylas-vystavka-illyustracii-k-romanu-evgeniya-vodolazkina-lavr
https://nevnov.ru/488016-v-noch-alyh-parusov-v-peterburge-budut-kursirovat-avtobusy

and some other articles from that site. But loading via headless chrome is freezing, but in normal mode everything alright.
Sample code is:
const CDP = require('chrome-remote-interface');

CDP((client) => {
    // extract domains
    const {Network, Page} = client;
    // setup handlers
    Network.requestWillBeSent((params) => {
        console.log(params.request.url);
    });
    Page.loadEventFired(() => {
        console.log('Page loaded...');
        client.close();
    });
    // enable events then start!
    Promise.all([
        Network.enable(),
        Page.enable()
    ]).then(() => {
        return Page.navigate({url: 'https://nevnov.ru/488016-v-noch-alyh-parusov-v-peterburge-budut-kursirovat-avtobusy'});
    }).catch((err) => {
        console.error(`ERROR: ${err.message}`);
        client.close();
    });
}).on('error', (err) => {
    console.error('Cannot connect to remote endpoint:', err);
});

As i understand, some resources can't be loaded. How can i fix it?
Hope on your response.

The freezing may happen if the Page.loadEventFired event is not fired, for example if some important resource never finishes loading, i.e., the server keeps the request pending, I'm not talking about errors. In this case a timeout is usually fired so the freezing should be temporary. In automated page loads it's a good idea though to explicitly set a custom timeout to avoid that a bougus site blocks the whole testbed, for example:
setTimeout(() => {
    client.close();
}, giveupSeconds * 1000);

Still it doesn't quite explain while it happens in headless mode only...
But I'm unable to reproduce your issue: I always get "Page loaded...". What version of Chrome are you using?

My chrome version 58.0.3029.110.
Sometimes it is working well, but most of the time it is not loading and i receive these errors:
[0628/165427.744930:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp2.globalsign.com
[0628/165427.744952:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl.globalsign.com
[0628/165427.760878:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: cert.int-x3.letsencrypt.org
[0628/165427.760973:ERROR:cert_verify_proc_nss.cc(918)] CERT_PKIXVerifyCert for ko6ka.ru failed err=-8179
Similar problems with these urls:
https://www.astrobl.ru/news/99343
http://www.fsvps.ru/fsvps/news/21741.html
Also, can i however forbid loading some types of resources, such as gifs?

https://www.astrobl.ru/news/99343
http://www.fsvps.ru/fsvps/news/21741.html

OK, using these two URLs I can reproduce your issue with Chrome 59. Using version 60 instead it works as expected, still getting those errors, so probably they don't matter in this case:
[0628/161942.308782:ERROR:nss_ocsp.cc(613)] No URLRequestContext for NSS HTTP handler. host: cert.int-x3.letsencrypt.org
[0628/161942.309674:ERROR:cert_verify_proc_nss.cc(912)] CERT_PKIXVerifyCert for gosmonitor.ru failed err=-8179

Give Chrome 60 a try.

Also, can i however forbid loading some types of resources, such as gifs?

See #80, especially this comment.

When i am trying to launch the code from those comment, i get the following error:
(node:9878) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: 'Network.setBlockedURLs' wasn't found
node v6.10.2
chrome version 58.0.3029.110.
Code:
'''
const CDP = require('chrome-remote-interface');
const fs = require('fs');
const blacklistURLs = [
'facebook',
'fullstory',
'getdrip',
'olark',
'optimizely.com',
'https://shift.com/images/*',
'segment.com',
// 'https://cdn.segment.com/analytics.js/v1/oD9PafeNRrJRbC3NL41R8DgV8SANLDZ9/analytics.min.js', - already skipped with wildcard 'segment.com',
];
CDP.Version(function (err, info) {
if (!err) {
console.log(info);
}
});
CDP(client => {
// extract domains
const { Network, Page } = client;
// setup handlers
Network.setBlockedURLs({ urls: blacklistURLs });
Network.requestWillBeSent(params => {
const url = params.request.url;
console.log(-> ${params.requestId} ${url.substring(0, 150)});
});
Network.loadingFailed(params => {
console.log('*** loadingFailed: ', params.requestId);
})
Network.loadingFinished(params => {
console.log('<-', params.requestId, params.encodedDataLength);
})
Page.loadEventFired(() => {
console.log('loadEventFired!');
Page.captureScreenshot().then(v => {
  let filename = `screenshot-${Date.now()}`;
  fs.writeFileSync(filename + '.png', v.data, 'base64');
  console.log(`Image saved as ${filename}.png`);
  client.close();
});

});
// enable events then start!
Promise.all([
Network.enable(),
Page.enable()
]).then(
() => {
return Page.navigate({ url: 'https://shift.com/cars/san-francisco' });
},
() => {
console.log('REJECT');
client.close();
}
);
}).on('error', (err) => {
console.error('Cannot connect to remote endpoint:', err);
});
'''
What can go wrong?

I think Chrome 58 still uses Network.addBlockedURL instead of Network.setBlockedURLs. If you can't upgrade your Chrome version (recommended) you can obtain the documentation for Network.addBlockedURL with:
$ chrome-remote-interface inspect -r
>>> Network.addBlockedURL
{ [Function: override]
  category: 'command',
  [...],
  experimental: true }

When i do console.log(Network) i receive the list of functions and there is only setBlockedUrls and no addBlockedUrl. When i make chrome-remote-interface inspect -r there is only addBlockedUrl. When i use addBlockedUrl in my code i receive following error:
Network.addBlockedURL({url: 'https://yandex.ru'});
            ^
TypeError: Network.addBlockedURL is not a function

Hope on your response.

That's because you either have to use the {remote: true} option or client.send (recommended) as described here.

Give Chrome 60 a try.

I have upgraded my Chrome to 60, but i am still have a lot of valid urls, that i can't load by headless mode. It's critical for my tasks. Is there any way to determine the reason of problem for specific url? For example, can i however watch the list of loading resources in the current moment? It will be usefull, when the program is closed by timeout.
Send you a short example list with problem urls:

http://rcc.ru/article/kitayskie-proizvoditeli-shin-stolknulis-so-snizheniem-prodazh-60265#astart
http://www.m24.ru/articles/147341
http://www.m24.ru/articles/147342
http://informing.ru/2017/07/25/samolet-an-24-ne-smog-vyletet-iz-yakutskogo-tiksi-iz-za-tehnicheskoy-nepoladki.html
http://informing.ru/2017/07/25/den-vmf-2017-sankt-peterburg-sevastopol-i-vladivostok-vozglavili-reyting-samyh-populyarnyh-gorodov-v-den-voenno-morskogo-flota.html
http://ru.delfi.lt/abroad/russia/memorial-soobschil-ob-ischeznuvshih-chechencah-kotoryh-predpolozhitelno-rasstrelyali.d?id=75307961&utm_source=rss&utm_medium=rss&utm_campaign=rss
http://www.russland.news/irak-wuenscht-staerkere-zusammenarbeit-mit-russland/

Hope on your responce!

Using HeadlessChrome/60.0.3112.78 I can load all of these URLs without problems. Are you running Chrome from a container?

For example, can i however watch the list of loading resources in the current moment?

You can listen for the following events:

Network.requestWillBeSent
Network.responseReceived
Network.loadingFinished
Network.loadingFailed

Using HeadlessChrome/60.0.3112.78 I can load all of these URLs without problems. Are you running > Chrome from a container?

Yes, i am using chrome inside lxc container. Is there any ways to improve/speed up the work of chrome?

Oh that'd explain then, see this FAQ entry.


[bazel] New: added support for bazel options

@ewokcami @ankurv3rma are we good with this PR ?

Looks good to me


Async c++ grpc lib: StartCall call never trigger its tag if channel has credential problem

grpc c++: v1.15.0:  sha d2c7d4dea492b9a86a53555aabdbfa90c2b01730
Linux: Debian 9
gcc 4.9
Async c++ grpc lib: StartCall call never trigger its tag if channel has credential problem
We are using completion_queue in c++ grpc lib.  Here is our code:
reader_writer_ = stub_->PrepareCall( &ctx_, method, c_queue);
reader_writer_->StartCall( my_tag );
We are using ssl secure channel.  In the error case, if channel has problem with following errors:
secure_channel_create.cc:121] Failed to create secure subchannel for secure name '<IP_ADDRESS>:9384'
secure_channel_create.cc:154] Failed to create subchannel arguments during subchannel creation.
Then, the my_tag is never triggered.
What did you expect to see?
What did you see instead?
Since my_tag is not triggered, the request hangs.

My suggestion is to fix the error message (creds problem) first.


[Scala Pipeline API] Add scala logisticRegression api for spark pipeline

I wrote a scala ml pipeline wrapper for LogisticRegression Model as a example for scala user.
I thought those api (java, python, scala) should be put to separated jar, but just follow what it is this time.
Regards.
Wenpei.

Can an Admin verify this patch?

thanks @Wenpei; @niketanpansare could you please take a look.

Hi Wenpei,
Thanks for your contribution. But, I believe your code does exactly the same thing as https://github.com/apache/incubator-systemml/blob/master/src/main/java/org/apache/sysml/api/ml/LogisticRegression.java. This class is fully compatible with Scala API and won't require separate jar. May be I am missing something. Is there any particular reason why you think we should create wrappers in Scala instead ?
Thanks,
Niketan.

@niketanpansare
Personally, I thought this wrapper( https://github.com/apache/incubator-systemml/blob/master/src/main/java/org/apache/sysml/api/ml/LogisticRegression.java ), more like a example but not a real api expose to end user.
So I propose a scala version example since some weakness for java version.

It's not naturally to extend scala class in java code. We need know function style after compile, like
@Override
public void org$apache$spark$ml$param$shared$HasElasticNetParam$setter$elasticNetParam_$eq(DoubleParam arg0) {
}
I assume it's set function, but do nothing here

Hard to follow ml parameter style, but define parameter like below
private IntParam icpt = new IntParam(this, "icpt", "Value of intercept");
private DoubleParam reg = new DoubleParam(this, "reg", "Value of regularization parameter");

Wenpei.

@Wenpei
Fair point, Java API is little cumbersome for developers of the API as one needs to understand how Java developers can use certain Scala features. However, it does not affect usability with respect to the end user. The main advantage of having Java API is "easy integration with current dev setup".
Btw, I am OK with having a Scala API into incubator-systemml if following conditions are met:

"mvn verify" creates a jar with the Scala APIs in it and also runs the unit tests that verifies the Scala API. This will ensure that the future commits do not break the Scala API.
Common dev setup (preferably eclipse or Scala IDE) for both the Scala API and the runtime. That is, scala files are compilation units inside the eclipse editor. This will encourage other committers to work contribute to the Scala API.

Thanks,
Niketan.

I would be in favor of replacing the existing Java APIs (LogisticRegression, MLContext, etc.) with Scala versions in order to alleviate the types of issues raised that are inherent with user-facing APIs.  We could simply place these Scala APIs in src/main/scala and keep the same package structure as before.
So, currently our LogisticRegression API is is part of the org.apache.sysml.api.ml package, and therefore the actual LogisticRegression.java file is located at src/main/java/org/apache/sysml/api/ml/LogisticRegression.java.  We could instead place the Scala file at src/main/scala/org/apache/sysml/api/ml/LogisticRegression.scala, and use the same org.apache.sysml.api.ml package identifier.
To alleviate build issues, we can just integrate Scala compilation into Maven.  A quick search shows that the scala-maven-plugin can do just this by simply adding a few lines to the pom.xml, as shown in 1.  Eclipse integration appears to also be easy by simply adding a few more lines to the pom.xml, as show at the bottom of 2.  Then, a simply mvn package or Eclipse (or IntelliJ) build work work as usual.  No additional JARs would be necessary in the final packaged SystemML.jar file either.
This route would also be great in preparation for SYSTEMML-451, which aims add DML as an embedded Scala DSL.

@dusenberrymw +1 on creating Scala API for LogisticRegression, but am not sure whether we need to convert MLContext to Scala.
scala-maven-plugin solutions looks good to resolve condition 1. The flag "cTestGoals" should ideally allow us to run junit tests 1.
Wrt condition 2, I had bad experience with Scala IDE during initial prototyping of Spark backend, especially for mixed scala/java projects (eg: code completion/refactoring/references). This was an year and half ago and may be it has got better. Before we make the switch, let's double check the IDE support on both windows/mac. Then @Wenpei can push this commit to src/main/scala.

@niketanpansare Great!  The goal for replacing MLContext as well would relate to the issue of default parameters.  There are currently 18 variations of registerInput(...), and 23 variations of execute(...)/executeScript(...) and it just keeps getting messier with each new parameter or parameter type.
Also, I can't speak for Eclipse, but IntelliJ works great for Spark (which is now a mixed Scala/Java project) as well as SystemML.

@niketanpansare @dusenberrymw
I work out a init pom.xml for scala support, which works for mvn clean package to produce a SystemML.jar.
But I face two issues here:

It's very large for SystemML.jar , about 30M in my compute.  Not very sure but my be reasonable.
I don't know how to change compile order to make compile java at first, which cause class not found issues in eclipse.

I am not very good at maven config / pom, so anyone can help to review this.
beside this, systemml has folder like "/systemml/src/test_suites/java", we may need change it to "/systemml/src/test/java", and add "systemml/src/test/scala" to follow plugin rule.
Regards.
Yu Wenpei.

@Wenpei Will look into this today.

@Wenpei Thanks for updating the POM file.

I think the issue with regards to size is due to the inclusion of the Scala library dependencies into to final JAR.  Since this specific log reg API will only ever be used from Spark, we can assume that those Scala libraries will be available at runtime, and thus we don't need to include them in the JAR.  Can you set the "scope" on all the Scala dependencies you added to "provided", indicating that they should not be included in the JAR?

@Wenpei Please do following things before making the switch:

Change all the scala dependency to provided. For example:

org.scala-lang
scala-compiler
${scala.version}
provided

org.scala-lang
scala-reflect
${scala.version}
provided
 ....
This should bring the jar down to 6M.

Please make sure the jar works on a cluster without Spark/Scala (as well as with Spark/Scala) on all the execution modes (i.e. standalone, hybrid, ....). I have done sanity test on our internal cluster which has both Spark/Scala (on the above 6M jar), but I would highly recommend using our performance test suite to ensure that there are no unintentional side-effects. Also please make sure you run the integration test suite  (i.e. mvn verify).

Please try the new setup on eclipse (and the IDE of your choice (IntelliJ)) on Mac/Windows and see if you are getting compilation errors.

Please provide instructions to switch to new setup (for example: download certain version of Scala, certain version of IDE, etc ...) to other committers.

Well, I don't have a strong opinion on the wrapper code. The only hard requirement is that it has to work nicely with eclipse - no matter what.

@Wenpei  I was not able to reproduce the second issue.

@niketanpansare I change pom.xml to provider, I can get 6M SystemML.jar now.
And second issues gone after recompiled.
I will work on instruction those days. And do some test to make sure SystemML.jar works fine.

Thanks @Wenpei, I really appreciate the effort :)

@niketanpansare I finish instruction, test suite.
But my compute report less memory error after run a hour for mvn verify, so it would be great if some one can launch a jenkins test for this. Or @bertholdreinwald can assign a account for me? :-)
For Instruction, I just leave it there. But may @deroneriksson want add it to http://apache.github.io/incubator-systemml/ as a part of instruction for contributor, can address this in another pr.
Regards.
Wenpei.

Jenkins test this.

test this please.

@Wenpei Please check https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/185/console and fix following errors:

"Multiple versions of scala libraries detected" warning can be eliminated by modifying the pom file.
"... error: not found" is most likely because the code might be behind git. For example: src/main/java/org/apache/sysml/parser errors could be related to changes introduced in https://github.com/apache/incubator-systemml/pull/61

I will rebase this pr will new.
For multi scala version, it caused by jar dependence ,  will take a look but may common issues?

Thanks :)

@niketanpansare I rebase pr with new. Please launch a test again.
For warning message, we didn't directly dependent to com.twitter. It should be caused by other jar(spark?).

@akchinSTC test this please.

test this please

test this please.

test this please.

@niketanpansare I found build failed in scala doc generate phase (build and test pass). I will do some search today that why automatic doc generated after add scala-maven-plugin:3.2.2 in pom.
But actually, there are some issues in old code when generate java/scala doc.
I will try to disable automatic doc generate.
https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/192/console

@akchinSTC I disable doc generated now, please test again.

test this please.

@niketanpansare https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/196/console
Build pass.
I think this is  ready to merge.

LGTM

@niketanpansare @mboehm7 @gweidner
Before merging, can someone verify that Scala is currently integrating smoothly in Eclipse with a Maven project? I experienced some issues with this (changes to classes not appearing in target/classes, standard debugging) when I tried last Friday, but it sounded like @gweidner was making some progress.

Thanks @gweidner for looking into it :)

I've been able to build the PR successfully within Eclipse when using Juno-based development environment.

Build failures within Luna-based environment under investigation.

I have add eclipse version to dev/instruction.md to specify Juna version.
I didn't test eclipse luna, and spark community prefer Juna also.
https://cwiki.apache.org/confluence/display/SPARK/Useful+Developer+Tools

Thank you @Wenpei for the information.  When using the latest scala ide sdk (4.3.0 downloaded from http://scala-ide.org/download/current.html), I've observed two sets of errors:

@gweidner I do some test today, for scala IDE and eclipse luna
scala IDE:

delete project from eclipse
run command mvn eclipse:clean
import mvn project from wizard
If face incompatation issues , change IDE scala version
project->propertiest->scala compiler -> scala installation
to Fixed scala Installation: 2.10.5
If face Not found type * issues.
Run command mvn package
And do project -> refresh

For eclipse luna:
Except scala IDE pulgin install, please make sure get update from "http://alchim31.free.fr/m2e-scala/update-site" if get maketplace not found issues

Thank you WenPei for your time and tips.  That did work except for Project-Clean... build.
The configuration that worked best for me was Luna + Scala IDE 4.0 plugin + maven scala connector.  That combination had no Eclipse build type issues shown in previous captures and full Project-Clean build was successful.   Note my testing was on Windows only.

@gweidner @deroneriksson @niketanpansare
I update my project import.md file. Please let me know if any concern for this pr.

@gweidner @deroneriksson Do you have any more concerns for this PR ?
@Wenpei Can you please send an email with the tips on dev mailing list with a link to this PR ?

Would it work with Luna too? It would not be a good idea to force people to switch their dev environment right now.

Yes - I'm preparing a documentation PR with specific Eclipse version
information and tips for cases where developers prefer not to include Scala
in their IDE.
From:	Matthias Boehm<EMAIL_ADDRESS>To:	apache/incubator-systemml
<EMAIL_ADDRESS>Cc:	Glenn Weidner/Silicon Valley/IBM@IBMUS
Date:	03/10/2016 12:57 PM
Subject:	Re: [incubator-systemml] [Scala Pipeline API] Add scala
logisticRegression api for spark pipeline (#70)
Would it work with Luna too? It would not be a good idea to force people to
switch their dev environment right now.
—
Reply to this email directly or view it on GitHub.

@niketanpansare I send a mail to dev mailing list with PR and tips link.

@Wenpei Awesome work here!  I left a couple of comments, the later of which would be particularly interesting to explore.  Past that, this should definitely be able to be merged.

Also, just to track, I just pulled this into IntelliJ, and there are no issues encountered thus far.

Jenkins, test this please.

Build passed https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/210/
This PR is ready for merge.

Great, LGTM.  I'll merge this today.

I've opened SYSTEMML-580 to reference this PR, and I've set the Reporter and Assignee to you, @Wenpei.

PR merged.  Thanks, @Wenpei!

Also, to anyone interested, there are several follow-up JIRA issues attached to SYSTEMML-580.


Two improvements of the latest i128 numbers change

Two improvements of #2719:

First, a typo/grammar fix
Second, a fix to avoid usage of the anti pattern of == inside an assert macro. Since a few releases, assert is usable inside const expressions, but for the purpose of ==, superior alternatives exist that also work at compile time but print the two values at a mismatch. assert_eq is not yet usable in const contexts due to formatting.

r? @Amanieu
(rust-highfive has picked a reviewer for you, use r? to override)

cc @Gankra

TIL! neat!

@bors r+

:pushpin: Commit e1d9927d539abb5f791ee2a8f374572018bec221 has been approved by Amanieu

:hourglass: Testing commit e1d9927d539abb5f791ee2a8f374572018bec221 with merge 115c769b9705de873a1359f14e7a0e78c7f993d5...

:broken_heart: Test failed - checks-cirrus-freebsd-13

looks like a CI error, retry seems appropriate

@bors retry

:hourglass: Testing commit e1d9927d539abb5f791ee2a8f374572018bec221 with merge 9d1d40a966ba79feabaf3418edb5089bee5e5d37...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: Amanieu
Pushing 9d1d40a966ba79feabaf3418edb5089bee5e5d37 to master...


[Screen Reader-Microsoft MakeCode-Arcade]: Empty heading level-1 is defined for the page

User impact:
Users who rely on Screen Reader will get impacted and user will be misguided if empty heading is defined on page.
Note:
User credentials should NOT be included in the bug.
Repro Steps:

Open the URL https://arcade.makecode.com/
Landing page will be appeared.
Turn on Accessibility Insight tool.
Verify whether heading is defined on the page.

Actual Result:
When navigate to the page, Empty heading is defined on the page.
Expected Result:
When navigate to the page, Empty heading should not be defined on the page.
WCAG Reference:
https://www.w3.org/WAI/WCAG21/quickref/?showtechniques=122&currentsidebar=%23col_overview&levels=aaa#headings-and-labels
Test Environment:
OS: Windows Version- 21H1 (OS Build 19043.1165)
Browser: Edge Version 92.0.902.84 (Official build) (64-bit)
URL:https://arcade.makecode.com/
Tool: Accessibility Insight.
Attachment:

A11ySev_Reviewed

This heading is no longer exists; fixed.


⚠ CIOOS Pacific ERDDAP dataset DFO_MEDS_BUOYS has degraded performance

In 082a653, CIOOS Pacific ERDDAP dataset DFO_MEDS_BUOYS (https://data.cioospacific.ca/erddap/tabledap/DFO_MEDS_BUOYS.htmlTable?STN_ID&time>=now-1week&distinct()) experienced degraded performance:

HTTP code: 503
Response time: 22778 ms

Resolved: CIOOS Pacific ERDDAP dataset DFO_MEDS_BUOYS performance has improved in f506361 after 10 minutes.


Add Windows & macOS Acceptance Tests

what

We broke atmos in #856 attempting to improve windows support, but instead we broke it

why

We don't currently run any tests on windows and macOS
Slight differences between OSes can cause big problems and are hard to catch
Most of our developer team is on macOS, but more and more Windows users are using atmos
To maintain stability, it's critical we test all mainstream platforms

references

Relates to #856 (broke atmos on windows)

@coderabbitai full review


Log the file name being sent

Will be added manually (There is a partial change of mail.py, take a look on that)

Thanks!


just grab a wake word

I have julius running.  I use the following to start julius:
#!/bin/bash
cd /home/bard/Code/model/ENVR-v5.4.Dnn.Bin
../../julius/julius/julius -C mic.jconf -dnnconf dnn.jconf -q
uiet 2>/dev/null
for output I'm getting he following:
pass1_best:  julius
sentence1:  julius
InternalError: CMN_realtime_update: param->samplenum != c->now.framenum
So I know julius works, and it is very good at recognizing the word "julius."
I want to replace r.recognize_google with julius:
command = r.recognize_google(audio).lower()
print('You said: ' + command + '\n')
I want something like:
command = julius(audio.wav).lower()
I can't find the syntax to do this.  Is it possible?  I want the result in sentence1.  I want to use julius as a wake word.
Moreover, I don't want julius to listen to my microphone.  I want it to transcribe one wave file at a time.
Thank you, and thank you for sharing your excellent program.

I'm using kaldi and vost instead.  They're more accurate STT packages.  Thank you.


Create update_priority action to change issue's priority

This PR is for the introduction of a new action, update_priority, as it could not be set using the update_field_value: Jira requires the priority to be an object rather than a string.
More information on this here:
https://github.com/StackStorm-Exchange/stackstorm-jira/issues/65

Hi, I left a comment in #65 . I think we have a problem in create_issue as well and we can probably resolve both issues with some pre-processing. Lets leave this open for now but I'd like to have a pass at resolving this issue another way first.


Replace Basecamp integration with a webhook (API key authentication is not supported anymore)

What's the issue?
The Zulip Basecamp integration relies on an API key provided by Basecamp for authenticating. With the new Basecamp 3 API,  authentication via API keys is no longer supported. An integration must now use OAuth 2.0.
What needs to be done?

The Zulip Basecamp integration needs to be refactored in order to support OAuth 2.0.
The Zulip Basecamp integration guide needs to be updated accordingly.

Helpful resources

Basecamp authentication guide
How to deploy a bot (for testing the integration)

Related

Several other integrations might be outdated due to similar reasons (e.g. #3948). If you find one, please submit an issue :)

We should just replace this with a webhook, that'll be easier than migrating to their new client, and I think the only reason we had a Python script for this was that they didn't have a webhook API a few years ago.  Updating the title.

@zulipbot claim

@zulipbot claim

@synicalsyntax -  I actually referenced one commit to the issue - are we somehow able to catch such event as well?

#4204

Definitely a zulipbot bug.


Pages: Home (update this to look better)

This should be a clean page.  Today we render the AboutComponent but that should be simplified and the details on the about component should redirect to this projects readme or the 11ty docs page about this.

This is done.


Playground: Change 'Report GitHub issue on Typescript' to 'Report Typescript issue on GitHub'.

I'm not too sure I agree, can you explain why?

Using 'Report GitHub issue on TypeScript' sounds like you are referring to TypeScript as a service and GitHub as the program that Microsoft is providing.
'If you are reporting a TypeScript issue, then please visit GitHub.' is the same as saying 'Report TypeScript issue on GitHub.'
If you are trying to report a GitHub issue then the current phrase used makes sense but since you are trying to report a TypeScript issue then the phrase I introduced makes much more sense to use.


Close X is not right aligned in modals

In the modals the close X is always at the end of the header text. It should be right aligned to look better and always be at the same place regardless of the text length.

This issue is fixed in the latest release v2.3.1. Please confirm and close this issue. @DHaussermann

Thanks @ayusht2810 confirmed fixed on 2.3.1.
Closing.


 What isn't working?

routing between containers on different host.
The output should include the IP of the .101 computer, no?

@haf it's hard to tell what you are trying to achieve here, and this doesn't look like a bug at all, just some misunderstanding. You might want to take a look at what I had been using for some of the CoreOS-based demos, instead of being a minimal guide, it's got everything in the box, which should help you get right down to deploying your application instead of launching Weave etc.

Is it? If you follow https://github.com/fintanr/weave-gs/tree/master/coreos-simple#installing-weave-on-coreos to the letter it doesn't work. It's very simple to understand that, isn't it? =)

The output should include the IP of the .101 computer, no?

The output of what? The last command in your log is a docker ps. Perhaps you meant to run weave status.

Can you tell us exactly where you are seeing the problem, which stage? We have just walked through the entire guide with no issues - output at https://gist.github.com/fintanr/b74ce546c3e5edeed8cf


Add dynamic batching to bulk writes

Change log

use get_default_batcher() inside bulk_write()
removes now-unused bulk_write_batch_size config setting
add optional ability to render progress bars on bulk write operations like set_values() and set_label_values()

Examples
set_values()
import fiftyone as fo

dataset = fo.Dataset()
_ = dataset.add_samples([fo.Sample(filepath=f"{i}.jpg") for i in range(10000)])

dataset.set_values("int", [1] * len(dataset))
dataset.set_values("int", [1] * len(dataset), progress=True)

set_label_values()
import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset("quickstart")
values = {_id: True for _id in dataset.values("predictions.detections.id", unwind=True)}

dataset.set_label_values("predictions.detections.bool", values)
dataset.set_label_values("predictions.detections.bool", values, progress=True)

I had started this but semi abandoned it since we decided to just require nginx content body size config be increased.
However it's good to have this ability in any case.
I'll take a look shortly.

I did some quick benchmarking last night and, as suspected, we're well into the "flat" part of the performance curve when deciding between batches of 1000 and 100k bulk writes. The "latency"-based batcher in OSS has served us well for add_samples() for a long time now, so I'm confident that it will serve us well for bulk_write() too.

Agree. It might be kind of annoying for bulk writes (docs are very likely to be smaller than those for add_samples, and I would argue has a stronger expectation of completing faster) that it starts at 1 and scales up rather than some more reasonable starting place.
Re: heuristic - yeah this is what I was mentioning to you the other day. In Teams we can get the real size because there is a single serialization point unlike with what we've seen in pymongo. str(op) would be an upper bound I think, except there are some extra default parameters that get thrown in there depending on the op. Should be OK on net

Oops I pushed here instead of to a new branch, oh well. If the content size limit is indeed something like 1MB, it's also important to limit the individual operation size otherwise even a single op in the batch will be too big.
Check it out - https://github.com/voxel51/fiftyone/pull/4015/commits/bee48c162d190e3b792f544cd603122704d642be

Another (maybe future) idea, we could "look ahead" to try to default the starting batch size to something more reasonable than 1 in the case that you have like 20k small updates and we can do them all in 2 batches of 10k instead of 7 (1, 8, 64, 512, 4_096, 10_000, 5_319).

Check it out - bee48c1

ah good call, how do you feel about this as an abstraction of that logic? https://github.com/voxel51/fiftyone/pull/4015/commits/9f5f3a4781fbaf1af45dff2f73a35a0e63402356
from bson import ObjectId
import fiftyone.core.utils as fou

fou.recommend_batch_size_for_value(ObjectId())  # 23592

Check it out - bee48c1

ah good call, how do you feel about this as an abstraction of that logic? 9f5f3a4
from bson import ObjectId
import fiftyone.core.utils as fou

fou.recommend_batch_size_for_value(ObjectId())  # 23592

sure

Another use case to consider (similar to edit sample/label tags) where there's a list of individually-large operations is setting an array such as embeddings. I determined the over-the-wire size (Teams) of a single sample update of n=512 embeddings vector is 6500 (unknown amount larger in OSS) - if the static batch size of 10k is used, it will easily be above 50MB, much too large.
(This PR should cover this use case, just documenting).

Another use case to consider (similar to edit sample/label tags) where there's a list of individually-large operations is setting an array such as embeddings. I determined the over-the-wire size (Teams) of a single sample update of n=512 embeddings vector is 6500 (unknown amount larger in OSS) - if the static batch size of 10k is used, it will easily be above 50MB, much too large. cc @allenleetc
(This PR should cover this use case, just documenting).

yep exactly, another reason that bulk writes really needed the full dynamic treatment. This should unlock yet more successful usages of set_values() 👍


Error on logout

The following error occurred during logout.
index.js:450 Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'jwtCredential')
    at index.js:450:22
    at Generator.next (<anonymous>)
    at index.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (index.js:4:12)
    at logout (index.js:445:16)
    at HTMLUnknownElement.callCallback2 (react-dom.development.js:4164:14)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:16)
    at invokeGuardedCallback (react-dom.development.js:4277:31)
    at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:4291:25)

Reproduction
https://github.com/develoQ/XummSDK-React-Demo/tree/logout-issue

That makes sense; if you call directly to xumm.logout in a React event, the this context does not exist: it's called as an anonymous function instead of as a member of the class.
If you change the button to this:
<button onClick={logout}>Sign Out</button>

... And you define the local logout method like this:
  const logout = () => {
    xumm.logout()
    setAccount('')
  }

... it works.


convertFromHTML document is not defined, server side rendering

Do you want to request a feature or report a bug?
bug
What is the current behavior?
I get a document is not defined error when attempting to convertFromHTML from the server. Specifically I have a universal app where a user is writing in a draft js editor. They may save their work if they are half done. That is saved in HTML on the server (because the end product is HTML). If they later come back to their page, the HTML is grabbed from the database, the HTML should be preloaded to the draft js editor. However to convertFromHTML first and then create the editor state requires using the document. Not sure why document is needed? How are we supposed to do server side rendering if the text was html?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.
Can't really display this in a jsfiddle because the jsfiddle has access to a document and this issue only occurs in server side rendered code
What is the expected behavior?
document should not be required to convert html to state.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Draft v 0.10.1

came across https://github.com/facebook/draft-js/issues/586 and see that convertFromHTML is not expected to be implemented for the server. I copied the information provided in that url to solve this for server side rendering.

add jsdom to your package.json. (It needs to be >= 10 for the code below to work, but you can easily adapt for jsdom <10 by following the jsdom api for < 10)
in webpack.client.js add the below to the plugins array: (plugins is for webpack >=2)
{
...
plugins: [
...some other plugins
new webpack.IgnorePlugin(/jsdom$/))
],
...
}

This is needed so that webpack doesn't bundle jsdom in your client config, where it doesn't have access to fs, net, tls etc packages. (Also theres no reason to have jsdom in the client bundle

finally create a file called stateFromHTML.js as per below:

import { convertFromHTML, ContentState } from 'draft-js'

function serverDOMBuilder (html) {
  const jsdom = require('jsdom')
  const { JSDOM } = jsdom

  const { document: jsdomDocument, HTMLElement, HTMLAnchorElement } = (new JSDOM(`<!DOCTYPE html>`)).window
  // HTMLElement and HTMLAnchorElement needed on global for convertFromHTML to work
  global.HTMLElement = HTMLElement
  global.HTMLAnchorElement = HTMLAnchorElement

  const doc = jsdomDocument.implementation.createHTMLDocument('foo')
  doc.documentElement.innerHTML = html
  const body = doc.getElementsByTagName('body')[0]
  return body
}

export default function stateFromHTML (html) {
  // if DOMBuilder is undefined convertFromHTML will use the browser dom,
  //  hence we set DOMBuilder to undefined when document exist
  let DOMBuilder = typeof document === 'undefined' ? serverDOMBuilder : undefined
  const blocksFromHTML = convertFromHTML(html, DOMBuilder)
  return ContentState.createFromBlockArray(
     blocksFromHTML.contentBlocks,
     blocksFromHTML.entityMap,
   )
}

use stateFromHTML anywhere you want to create a draft js ContentState

It appears that the latest version of Draft-JS also references the Node type, which is also available on the jsdom package... so it also needs to be imported from window and tacked onto global for this to still work server-side.

I am facing issue with span tags and also strong tags are also not working here is my code.
can any one help me for this
    const { JSDOM } = jsdom;
    const { window } = new JSDOM();
    const { document } = (new JSDOM(`<!DOCTYPE html>`)).window;
    global.document = document;
    global.navigator = window.navigator
    global.HTMLElement = window.HTMLElement
    const djs = require('draft-js')
    const html = '
Hey this editor rocks 😀
';
    const json=djs.convertToRaw(djs.ContentState.createFromBlockArray(djs.convertFromHTML(html)))
    console.log("Hello",json);
    var jQuery = require('jquery')(window);
    ```

It appears that the latest version of Draft-JS also references the Node type, which is also available on the jsdom package... so it also needs to be imported from window and tacked onto global for this to still work server-side.

Hi there - this is an older comment but I just thought I would check here. I followed @terencechow's recommendations for this, and now I am getting an "Error: Cannot find module 'jsdom' This error happened while generating the page. Any console logs will be displayed in the terminal window." after ignoring jsdom in my next.config.js file.  I'm wondering if I need to follow the steps @schneyer mentioned but I'm not sure how/where to do that.  Could anyone help with this?


Create an "Azure reference architecture" example

We agreed recently, when talking to a recent customer, to create an "Azure reference architecture" example.  This would simply provision the basic networking components and Kubernetes cluster -- ACS Engine-like -- and then deploy some services on top.
Eventually, we know we want a more first class ACS Engine component, but to get started we can probably just import it as an ARM template.  We also want to demonstrate deploying Helm charts, but until we have https://github.com/pulumi/pulumi-kubernetes/issues/54, we can simply deploy Kubernetes resources manually atop our provisioned cluster.
We agreed to get back to the customer in about two weeks' time, so this should go early in M16.

This issue was moved to pulumi/customer-azurespeech#1


Making Gaussian realisaions of foregrounds ?

For the validation, I'd like to make some different realisations of foregrounds assuming Gaussian variance. Are there any way to implement this in PySM?
I can realise using healpy for each output frequency map. However, foreground maps should be correlated among frequencies. I think I have to create different realisations before the colour corrections.

the components included in PySM are deterministic.
Maybe you can check this:
https://so-pysm-models.readthedocs.io/en/latest/models.html#gaussiansynchrotron

Thank you. The page looks very helpful for me.
As a tentative treatment, I made different realisations of a pivot frequency map following Gaussian fluctuations, and extrapolate them to each frequency as d1 or s1 models in PySM do.


[Enhancement Functionality/Styling] : Making navbar responsive (hamburger menu) and fix the bug hover effect on login

All the navbar links are getting disappeared when i open in smaller size.
Screenshots:

I will fix this.
Please assign me this issue under GSSOC'24.

@MitulSonagara want to work on this issue?

@itsmohit097 Sure I will be Grateful to work on this...

@MitulSonagara assigned to u. And also fix the hover effect on login, and make it properly visible.
[Important] :
Do not waste your precious time. Kindly do the fork and branch process properly (read contribution.md file)
If not followed properly PR will not be merged and the issue will be assigned to another contributor.

@MitulSonagara  i didn't assign this to other. Are u working on it or not?

@itsmohit097 Yes i am working on it... I'll make the PR by 11:00 tonight.

ok

hey @itsmohit097 please close this , this got merged


Using VSCode omnisharp server

Is there a way to set "let g:OmniSharp_server_path" the way it uses the omnisharp from vscode csharp extension and dont break when update the extension(because the path to extension contains the version number)?

No, there's no way to do this.

Ok i solved the problem thank you for your help.
let g:OmniSharp_server_path = fnamemodify(findfile('run',$HOME . '/.vscode/extensions/*/.omnisharp/*/'),':p')

Good solution. Out of curiosity, why do you prefer this to just letting OmniSharp-vim download its own copy? Just to save disk space?

Save disk space and to work with same version as it is in VSCode because i constantly switching between them.


Update promxy to v0.0.62

@JosephSalisbury we can now define timeouts https://github.com/jacksontj/promxy/pull/359 using both timeout and ignore_error so we can use this for the global promxy instead of a handcrafted version

Hurrah!


Get non-UI test coverage to 100%

Alternatively, if someone can get GTK working on Travis be my guest.


Add pricing and stripe checkout page to landing page

We will offer 2 options to users

Free: use their own api-key, does not touch our server except for a couple basic pings for metrics (fully open sourced). Open-sourced, Fully transparent
use our subscription, closed source to start, we can consider open sourcing this later. We offer this as the convenience for people who want it over transparency. and we outline exactly what we do with their data fully.

For the second, we should have a pricing page like:
Inspiration

with filler text for now,
that goes to a stripe checkout integration: https://stripe.com/payments/checkout

Our tech stack is similar so we can use this as inspiration. https://github.com/vercel/nextjs-subscription-payments


Fix: pin stow to version 2.3.1

Stow recently released version 2.4.0, which does not allow stowing absolute symbolic links. As a temporary workaround, this PR downgrades stow back to version 2.3.1.
Stow is being downloaded from a GNU mirror, and then verified using the official GNU keyring (see the bottom of https://ftp.gnu.org/README). We remove the GNU gpg related files once we're done with them.
Unfortunately, the binary of stow is not available for direct usage, so stow is built and then moved to /usr/bin/ so that it is available on $PATH to be used for the rest of the UBI & UDI builds (moving stow to /usr/local/bin/ didn't seem to put it on $PATH).
Fixes https://github.com/eclipse-che/che/issues/22957

@ibuziuk @SDawley any thoughts on this? My only nitpick with this PR is the addition of make to the ubi. If there are no complaints, I'll have this merged as it's required to fix the UDI builds, and is a blocker for https://github.com/devfile/developer-images/pull/171

@AObuchow So long as this is the upstream solution, looks good to me.
curl won't work downstream though.

@AObuchow So long as this is the upstream solution, looks good to me. curl won't work downstream though.

Sounds good :) Downstream, we are manually building stow from sources. Currently, it seems like the version of stow being git cloned downstream is old so this issue hasn't arisen downstream. However, we might have to manually pin the commit to use for stow downstream if that commit is being automatically updated.

Looks like I messed up when copying over the /usr/share/ files :sweat_smile: as stow is still looking for them in /tmp/.../build/share/

Will look into this further tomorrow.


corrscope: relax ruamel.yaml dependency; fix build

Description of changes
https://hydra.nixos.org/build/246422133
Checking runtime dependencies for corrscope-0.8.1-py3-none-any.whl
  - ruamel-yaml<0.18,>=0.17 not satisfied by version 0.18.5

pyproject.toml:"ruamel.yaml" = "^0.17"

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Unfortunately a rebase is needed to fix CI, sorry for that! I broke it with https://github.com/NixOS/nixpkgs/pull/281407, but it's now already fixed with https://github.com/NixOS/nixpkgs/pull/281412

ping @OPNA2608


SPSearchContentSource CrawlSetting not applied for ContentSourceType Website

Details of the scenario you try and problem that is occurring:
For Content Sources of type website the CrawlSetting is not configured to crawl only the fist level. Custom is selected instead without limitation.
The DSC configuration that is using the resource:
SPSearchContentSource "ContentSource_$($ContentSource.Name.Replace(' ', ''))" {
Name                 = $ContentSource.Name
ServiceAppName       = $SearchServiceApplicationName
Addresses            = $ContentSource.Addresses
ContentSourceType    = "Website"
CrawlSetting         = "CrawlFirstOnly"
IncrementalSchedule  = MSFT_SPSearchCrawlSchedule {
ScheduleType = "Weekly"
CrawlScheduleDaysOfWeek = @("Sunday")
StartHour = "09"
StartMinute = "0"
}
Priority             = "Normal"
Ensure               = "Present"
PsDscRunAsCredential = $SetupAccount
DependsOn            = "[SPSearchTopology]SearchTopology"
}
Version of the Operating System and PowerShell the DSC Target Node is running:
Windows Server 2012 R2, PowerShell 5.1
Version of the DSC module you're using:
1.7

@typozh Any chance you can share your verbose output on this one so we can see the code path it took based on the cmdlets it shows?

Hi Brian,
I included the verbose log for two content sources. Starmind is existing, SwissRePublicWebsite is a new source. The test for Starmind seems to fail.
VERBOSE: [APPServer1]: LCM:  [ Start  Resource ]  [[SPSearchContentSource]ContentSource_Starmind]
VERBOSE: [APPServer1]: LCM:  [ Start  Test     ]  [[SPSearchContentSource]ContentSource_Starmind]
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Testing Content Source Setting for 'Starmind'
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Getting Content Source Setting for 'Starmind'
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Executing as the local run as user Domain\setupuser
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Importing function 'Get-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Importing function 'Test-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving BeginProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving ProcessRecord Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving EndProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Importing function 'Get-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Importing function 'Test-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]: LCM:  [ End    Test     ]  [[SPSearchContentSource]ContentSource_Starmind]  in 0.8280 seconds.
VERBOSE: [APPServer1]: LCM:  [ Start  Set      ]  [[SPSearchContentSource]ContentSource_Starmind]
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Setting Content Source Setting for 'Starmind'
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Getting Content Source Setting for 'Starmind'
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Executing as the local run as user Domain\setupuser
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Importing function 'Get-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Importing function 'Test-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving BeginProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving ProcessRecord Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving EndProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Executing as the local run as user Domain\setupuser
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving BeginProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving ProcessRecord Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving EndProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving BeginProcessing Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving ProcessRecord Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving EndProcessing Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving BeginProcessing Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving ProcessRecord Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_Starmind] Leaving EndProcessing Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]: LCM:  [ End    Set      ]  [[SPSearchContentSource]ContentSource_Starmind]  in 1.7970 seconds.
VERBOSE: [APPServer1]: LCM:  [ End    Resource ]  [[SPSearchContentSource]ContentSource_Starmind]
VERBOSE: [APPServer1]: LCM:  [ Start  Resource ]  [[SPSearchContentSource]ContentSource_SwissRePublicWebsite]
VERBOSE: [APPServer1]: LCM:  [ Start  Test     ]  [[SPSearchContentSource]ContentSource_SwissRePublicWebsite]
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Testing Content Source Setting for 'Swiss Re Public Website'
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Getting Content Source Setting for 'Swiss Re Public Website'
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Executing as the local run as user Domain\setupuser
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Importing function 'Get-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Importing function 'Test-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving BeginProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving ProcessRecord Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving EndProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]: LCM:  [ End    Test     ]  [[SPSearchContentSource]ContentSource_SwissRePublicWebsite]  in 0.5320 seconds.
VERBOSE: [APPServer1]: LCM:  [ Start  Set      ]  [[SPSearchContentSource]ContentSource_SwissRePublicWebsite]
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Setting Content Source Setting for 'Swiss Re Public Website'
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Getting Content Source Setting for 'Swiss Re Public Website'
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Executing as the local run as user Domain\setupuser
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Importing function 'Get-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Importing function 'Test-SPDSCSearchCrawlSchedule'.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving BeginProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving ProcessRecord Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving EndProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Executing as the local run as user Domain\setupuser
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving BeginProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving ProcessRecord Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving EndProcessing Method of Get-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving BeginProcessing Method of New-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving ProcessRecord Method of New-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving EndProcessing Method of New-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving BeginProcessing Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving ProcessRecord Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving EndProcessing Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving BeginProcessing Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving ProcessRecord Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]:                            [[SPSearchContentSource]ContentSource_SwissRePublicWebsite] Leaving EndProcessing Method of Set-SPEnterpriseSearchCrawlContentSource.
VERBOSE: [APPServer1]: LCM:  [ End    Set      ]  [[SPSearchContentSource]ContentSource_SwissRePublicWebsite]  in 2.5780 seconds.
VERBOSE: [APPServer1]: LCM:  [ End    Resource ]  [[SPSearchContentSource]ContentSource_SwissRePublicWebsite]

I'm using this script to configure all website sources:
$SSA = Get-SPEnterpriseSearchServiceApplication
$ContentSources = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $SSA
foreach ($cs in $ContentSources) {
write-host ("-"*40)
write-host ("Content source name: " + $cs.name)
if($cs.Type -eq "Web") {
if($cs.MaxSiteEnumerationDepth -ne 0 -or $cs.MaxPageEnumerationDepth -ne<PHONE_NUMBER>) {
$cs.MaxSiteEnumerationDepth = 0
$cs.MaxPageEnumerationDepth =<PHONE_NUMBER>
$cs.Update()
}
}
}

Thanks @typozh - will investigate when time allows and see if we can find the fault. Appreciate the information!

Any update on this?


example - fixed MINGW build

Fix for #10. Tested with MinGW 6.2 x64, Windows 7 x64

Hi, I'm really sorry for taking this much time to accept such small PR. I should be handling these PRs faster.


Extensions loading

TODO:

[x] provide runtime module @lens/extensions based on src/extensions/extension-api.ts with public exposed apis

close #526

Any ideas why integration tests are failing?

Any ideas why integration tests are failing?

[compile:renderer] Error: No module factory available for dependency type: CssDependency
[compile:renderer]     at addDependency (/home/vsts/work/1/s/node_modules/webpack/lib/Compilation.js:800:12)
[compile:renderer]     at iterationOfArrayCallback (/home/vsts/work/1/s/node_modules/webpack/lib/Compilation.js:208:3)
[compile:renderer]     at addDependenciesBlock (/home/vsts/work/1/s/node_modules/webpack/lib/Compilation.js:816:5)
[compile:renderer]     at Compilation.processModuleDependencies (/home/vsts/work/1/s/node_modules/webpack/lib/Compilation.js:827:4)
[compile:renderer]     at afterBuild (/home/vsts/work/1/s/node_modules/webpack/lib/Compilation.js:954:15)
[compile:renderer]     at /home/vsts/work/1/s/node_modules/webpack/lib/Compilation.js:998:11
[compile:renderer]     at callback (/home/vsts/work/1/s/node_modules/webpack/lib/Compilation.js:734:5)
[compile:renderer]     at /home/vsts/work/1/s/node_modules/webpack/lib/Compilation.js:782:12
[compile:renderer]     at handleParseResult (/home/vsts/work/1/s/node_modules/webpack/lib/NormalModule.js:478:12)
[compile:renderer]     at /home/vsts/work/1/s/node_modules/webpack/lib/NormalModule.js:500:6
[compile:renderer]     at /home/vsts/work/1/s/node_modules/webpack/lib/NormalModule.js:358:12
[compile:renderer]     at /home/vsts/work/1/s/node_modules/loader-runner/lib/LoaderRunner.js:373:3
[compile:renderer]     at iterateNormalLoaders (/home/vsts/work/1/s/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
[compile:renderer]     at /home/vsts/work/1/s/node_modules/loader-runner/lib/LoaderRunner.js:186:6
[compile:renderer]     at context.callback (/home/vsts/work/1/s/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
[compile:renderer]     at /home/vsts/work/1/s/node_modules/mini-css-extract-plugin/dist/loader.js:199:12
[compile:renderer]     at /home/vsts/work/1/s/node_modules/webpack/lib/Compiler.js:343:11
[compile:renderer]     at /home/vsts/work/1/s/node_modules/webpack/lib/Compiler.js:681:15


Miscellaneous changes with rest request metrics tracking

Removed the "Total CPU time" metric. It is not very useful and requires an additional call to record and creates room for error and confusion.
Fixing the way request rates are tracked. If a more fine grained metrics object is injected after a coarse grained one had been injected before, both their rate metrics used to fire. This is fixed.
Accounted for some latencies that were untracked and flying under the radar in NettyResponseChannel.
Removed double logging in NettyMessageProcessor, fixed some try..finally blocks and removed some unnecessary code.

Built and formatted. Metrics verified via Jconsole.
Primary reviewers: @nsivabalan , @cgtz
Expected time to review: 20 mins
Unit test coverage

Class
Class, %
Method, %
Line, %

RestRequestMetricsTracker
100% (3/ 3)
100% (17/ 17)
98% (50/ 51)

NettyMessageProcessor
100% (1/ 1)
88.9% (8/ 9)
75.7% (81/ 107)

NettyResponseChannel
100% (8/ 8)
100% (38/ 38)
96.4% (325/ 337)

@vgkholla : done with one pass

@nsivabalan @cgtz Comments addressed.

LGTM except one comment

LGTM

LGTM merging.


[Feature] Can the src and alt props be reactive?

Feature Request
I'm currently trying to build a modal that contains a CldImage component, and that image updates based on the image the user selected on the main gallery page. In doing so, I noticed that the image displayed by CldImage does not update when props change.
I'm wondering if this was intentional or if some of the values in CldImage.svelte should be reactive instead of using const.
Is your feature request related to a problem? Please describe.
A minimal reproduction looks something like this in svelte-cloudinary/src/routes/+page.svelte:

when i click one of the three buttons, i expect both the "cloudinary image" and the "regular image" to update to what i've selected
"regular image" will update when i click a button, but "cloudinary image" will not

Note: I used the supplied sample images, and you'll want to replace CLOUDNAME in the img src if you want to replicate

Cloudinary Image

	<CldImage
		layout="fullWidth"
		height="180"
		objectFit="contain"
		src={`images/${mainImage}`}
		alt={mainImage}
		quality="80"
	/>

Regular Image

{mainImage}

	<img
		height={180}
		width="auto"
		src={`https://res.cloudinary.com/<CLOUDNAME>/image/upload/f_auto/q_80/v1/images/${mainImage}`}
		alt=""
	/>

buttons

	{#each images as image, i}
		<button on:click={() => handleSelectImage(i)}>
			<CldImage
				class="cursor-pointer"
				layout="fullWidth"
				height={150}
				objectFit="cover"
				src={`images/${image.fileName}`}
				alt={image.fileName}
				quality="80"
			/>
		</button>
	{/each}

Here I'd just clicked sneakers:

Describe the solution you'd like
imho, I think one should be able to dynamically update src and alt at the very least (but again, maybe there was a reason not to).
To at least prove this could work, I changed the deconstruction on L18 to be reactive:
- 	{ alt, src, width, height, config } = $$props as $$Props;
+ 	$: ({ alt, src, width, height, config } = $$props as $$Props);

Then I added the reactive src value instead of using the static imageProps one (more on imageProps in a second) to the transformer prop:
<Image
	{...imageProps}
	cdn="cloudinary"
	transformer={({ width }) => {
		const options = {
			...imageProps,
			...cldOptions,
+			src,
			// Without, get a "never" type error on options.width
			width: imageProps.width
		};
       ....

I did start to try to update imageProps defined on L30 since that's currently static, but I was getting an error of TypeError: Cannot set properties of undefined (setting 'layout') when I did, so instead of tinkering with it I figured I'd find out if making these changes even makes sense first.
Describe alternatives you've considered
Since my particular use case is a modal, I'd imagine I can probably use lifecycle methods or similar to destroy/recreate the CldImage on open/close. but I'd also like to have it be a slideshow with clickable thumbnails at the bottom, so it seems like things might get tricky there.
Also, since this is just for pictures of cool wildlife I've seen and basically only like 8 people are going to use this site, I might just use an img or even the underlying unpic Image instead. But I think to use svelte-cloudinary on a bigger app I'd want to know that this would work, or at least understand why I should do it a different way.
Additional context
I'm open to helping with this if needed!

@matiasfha any thoughts on this one?

The request makes total sense I’ll take a look asap.
Also thanks for the research and the tests made.
You’re right we can enable reactivity on props


signerToSessionKeyValidator not found

Currently following the docs for agent-created session keys: https://docs.zerodev.app/sdk/advanced/session-keys#agent-created
It mentions
	const sessionKeyValidator = await signerToSessionKeyValidator(
		publicClient,
		{
			signer: emptySessionKeySigner,
			validatorData: {
				// Set session key params
			},
		},
	);

however, I don't see signerToSessionKeyValidator exported anywhere by either the ZeroDev SDK or viem, so I'm a bit lost on where I get that method from.

Nevermind, it's exported by "@zerodev/session-key". Would love to see that in the docs


Memory leak in anonymous function

Serializable Closure Version: 1.1.1
Laravel Version: -
PHP Version: 7.4.3
Database Driver & Version: -

Description:
Memory leak in anonymous function when using SerializableClosure
Steps To Reproduce:
use Laravel\SerializableClosure\SerializableClosure;

$baseMemory = memory_get_usage();

for ($i = 0; $i < PHP_INT_MAX; $i++) {
    $s = serialize(new SerializableClosure(fn() => 'james'));
    $u = unserialize($s);

    echo sprintf('%8d: ', $i), memory_get_usage() - $baseMemory, PHP_EOL;
    unset($s, $u);
}

It also occurs with the opis/closure package.
Link to a repository with the tests: https://github.com/r4y7s/laravel-serializable-closure-memory-leak

This is a PHP engine scripting problem: https://bugs.php.net/bug.php?id=76982. That, at this time, affects all PHP versions supported by this package. Unfortunately, this issue can't be addressed in this repository.


Issue enabling/disabling motion detection on a per camera basis

Rookie here. I love the functionality this library gives, but I'm really struggling to get this to work. I've followed all of the documentation I can find with no luck.
I'm successfully able to arm & disarm the whole system, that works great. If you can advise anything here I'd be super grateful! Keep up the great work!
I figured showing you my code would work best. I'm defining the camera name elsewhere and passing it to the ArmCamera function. I'm also able to log in and pull camera data etc just fine. Like I said above, arming/disarming the sync module works great!
I have a function that is supposed to do the enabling/disabling:
def ArmCamera(camera_name):
camera = blink.cameras[camera_name]
camera.arm = True
Blink.refresh()
When printing the camera attributes, I can see that it has changed, but this doesn't seem to update the server. I may be doing something really wrong here, I don't think for a minute it's your library haha!
If you can help, that would be great! And sorry if this isn't the right place to ask, new to Github.
Cheers!
Niall

That's amazing thank you! I'll stick to the current version I have so not to run into additional bugs as I'd like this to be reliable haha! Is there anywhere that I can read the docs for this version?
I'm sending you a coffee for your troubles! Take care!

Ahhh thanks! I was having trouble with downloading videos 'since' as it just downloaded them all regardless, but I'll try again & If I have any questions I'll let you know.
Thanks again, top support!


Incomplete png generated from puml

Some of my longest .puml files (sequence diagrams) are not being fully exported to png. I've been having to reduce them in three different files in order to have them all in png.

So many file types!
Sent from my iPad by Dylan Marley Bono Taylor!

On 23 Nov 2019, at 6:54 am, Matheus Mendes Costa<EMAIL_ADDRESS>wrote:
Some of my longest .puml files (sequence diagrams) are not being fully exported to png. I've been having to reduce them in three different files in order to have them all in png.
PB-766_U01_envioNotificacaoAlteracaoStatus_v12_Completo.txt
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.