VCSlider: ignore fade in and fade out times

This way sliders in playback mode have the same behavior
as the sliders on a VCCueList.
Start a function with a slider -> manual fade in.
Stop a function with a slider -> manual fade out.
http://qlcplus.org/forum/viewtopic.php?f=12&t=9228

While this change is OK for me, my only concern is that it breaks the current behaviour.
There might be users with projects designed around the current behaviour and I guess they won't be happy about changing it.
Also, if a Scene attached to a slider in playback mode has a 2 minutes fade in, I might want to set the slider to 80% and wait for 2 minutes until the Scene gets to 80% intensity.
This might be a wanted behaviour.
In other words, I'm afraid this change should be a new option. On existing projects the behaviour should be the existing one (to preserve backward compatibility), while on newly created Sliders, the new behaviour should be the default.
As for the Cue List crossfaders behaviour, I don't remember who decided it (me ? you ?) but I suppose it should be consistent with the VCSlider default behaviour, thus "this change is OK for me" :)
What do you think ?

On a second thought...do we really need this change ?
I mean, if you attach a function with no fade in/out the VCSlider already takes full control of the function intensity.
Can we just resolve this by placing a big bold message in the documentation like
** Note: if you want this slider to take full control over the attached Function intensity, then provide a Function with no Fade In and Fade Out times, so you will be able to manually perform fade in and fade out with the desired speed**

The VCSlider + fadeout time issue has to be fixed anyway.
The current behavior for this is ugly. When you draw the slider down, the fadeout time is usually applied starting from a very low value.
I have no solution to correctly take fadeout time into account on a VCSlider, except ignoring it totally.
And since the fadeout time has to be ignored, the fadein time should be ignored too.
Bugs like "fade in works but fade out doesn't work" are sometimes reported, this would clear things out.
Of course, ignoring fadein time on VCSliders could be an opt-in option.
Ignoring fadeout time has to be done, because current behavior looks buggy.

I totally agree in fixing the fade out issue.
As for ignoring or not the fade in, well to be honest I remain of the opinion that it could be easily solved without touching the code, but just by providing a Function with or without fade in.
In general I believe QLC+ is starting to have too many options and it's starting to be difficult to understand each one of them and the learning curve becomes steeper and steeper.
If we can avoid adding more options, that would be great.
In QLC+ 5 I'm planning to have an "Advanced" section of parameters everywhere it is needed, to separate edgy features from the basic ones, that should be easily accessed even without reading the documentation (that people don't read anyway... :laughing: )

I totally agree in fixing the fade out issue.

At least we agree on one thing :)

As for ignoring or not the fade in, well to be honest I remain of the opinion that it could be easily solved without touching the code, but just by providing a Function with or without fade in.

This does not solve the fact that on a function with a fade in and a fade out time, controlling the function with a slider takes the fade in time into account, but not the fade out time.
It could also be solved by having the function controlled by a button, with a submaster on the side.

In general I believe QLC+ is starting to have too many options and it's starting to be difficult to understand each one of them and the learning curve becomes steeper and steeper.
If we can avoid adding more options, that would be great.

In QLC+ 5 I'm planning to have an "Advanced" section of parameters everywhere it is needed, to separate edgy features from the basic ones, that should be easily accessed even without reading the documentation (that people don't read anyway... :laughing: )

The current PR does not make this an option, I just said it could be made as an option :) IMO having fade in but no fade out is broken, I wouldn't even allow it. I don't know what others think, it would be nice to have some more feedback on the forum.

This does not solve the fact that on a function with a fade in and a fade out time, controlling the function > with a slider takes the fade in time into account, but not the fade out time.

Yes, and that's exactly what I meant:

fade out is always ignored
if the Function has fade in, then see the case "2 minutes fade in & 80% intensity"
if the function doesn't have fade in, then the slider will have full control of the intensity

I think it's just a matter of explaining it properly in the documentation

The current PR does not make this an option, I just said it could be made as an option :) IMO having
fade in but no fade out is broken, I wouldn't even allow it.

Not necessarily (see above)

I don't know what others think, it would be nice to have some more feedback on the forum.

Then we should post the proposal in the Issues & feedbacks forum, cause not everyone watch the development forum

I moved your proposal in issues and feedbacks

Let's merge this.
I'll update the documentation accordingly


[Deployment]Multiple master deployment and data backup

OpenPAI Environment:

OpenPAI version: v0.14.0
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release): ubuntu16.04
Kernel (e.g. uname -a):
Hardware (e.g. core number, memory size, storage size, GPU type etc.):
Others:

Hi, Are there any instructions or guide for the following two questions:

I backup data on master before deleting all the openpai service, but how to restore these data(jobs, users etc) when I start services next time?

Is it possible to deploy openpai with multiple masters? if yes, what should i do to customize the deployment.

thanks for any suggestion!

ref to: https://github.com/microsoft/pai/issues/4116


Tests: Fixed Price Purchase Contract

This isn't complete, but I wanted to put up what I had so far for visibility. Added 6 tests and fixed a vulnerability found via testing (be38f5f).
These are the tests I have remaining but am open to additional suggestions:

[ ] correctly calculate collection fees
[ ] correctly calculate protocol fees
[ ] correctly calculate both fees
[ ] change collection fee
[ ] change protocol fee
[ ] collection fee withdrawal
[ ] protocol fee withdrawal

@neilmtan Pushed the rest of the initial tests. This is ready for review, but I'm still going to do one additional pass for sanity + get other eyes. Let me know if you think of any edge cases. We should be specifically look at function calling permissions + edge cases


Grid Size and Voxel Size

Hi, thanks for this great work. I was working on some pre processing techniques plus my cuda gets OOM when I use grid size of 0.05 for Waymo dataset. But in another work I used voxel generator with Voxel size of [0.1, 0.1, 0.15]. I want to know if Voxel size in another implementation and Grid Sampling in you implementation, voxel size and grid size are same thing? and can I use 0.1 for grid sampling?

Hi, it is the same thing, and you can set it to 0.1. The Waymo dataset contains more points compared with another outdoor dataset.

Thanks.


[FULLY REMOTE] Sr. Node Developer at Jobsity

About Jobsity💡
We’ve been around for about 10 years. We are a NY based staffing company that works with lots of different clients in the US, Canada and Europe.
Most of our developers, data engineers, and Quality Assurance engineers are located in Latin America, although we have a presence in more than 15 countries.
We have connected more than 400 people with international employment. We focus more on quality and long-term partnerships, between Jobsity, our candidates (you), and our clients. In fact, we only work with the top 3% of talents in LATAM.
As a member of the Jobsity Recruitment team, we are going to work to find you the right position depending on what is important to you.
Requirements✔
🎸 Conversational English level.
🎸 Backend-centric engineer with some front-end experience.
🎸 Experience with these languages/tools:

NodeJS.
Google Cloud Firestore / Google Cloud Platform.
JavaScript.
React / React Native.
ElasticSearch.
Jest or other testing frameworks.

Modality
👨💻 Fully remote
PS: position available only for engineers located in LATAM 🗺
Perks that Jobsity offers!💎
🔹15 business days of paid vacation yearly.
🔹3 extra off days per year.
🔹Paid local holidays.
🔹Learning budget.
🔹Financing program for equipment and home office supplies.
🔹Betterfly app (wellness).
🔹Bonuses for referrals and more!
Type of contract📜
This is a full-time position as contractor🕘
....with USD payment 💰
....long-term relationship 🤝
...within an international team 👩💻 👨💻
...and working on international client projects! 🌎
How to apply🤔

Send an email to<EMAIL_ADDRESS>with your CV/LinkedIn attached - Send in the subject: Sr. Node Developer - GitHub📧

The search is paused!⛔ Thank you for your messages! 😉


[v2.0.6...2.0.7] @import path not found after upgrade

webpack build fails, saying that Failed to find 'path/name.css'
In one css file,
@import 'path/name.css'
it used to work fine, however, fails after the upgrade.
Here is my webpack config,
rules: [
      {
        test: /\.css$/,
        exclude: /\.modules\.css$/,
        use: [ 'style-loader', 'css-loader', 'postcss-loader' ]
      },

and postcss.config.js
module.exports = {
  plugins: {
    'postcss-import': {},
    'postcss-cssnext': {},
    'postcss-browser-reporter': {},
    'postcss-reporter': {}
  }
};

Does ./path/name.css or /path/name.css work? I need more info about your file structure, did you change anything else besides updating postcss-loader v2.0.6...2.0.7. From the history it's unlikely to be a regression between v2.0.6...v2.0.7. Did you try to revert to v2.0.6 ? Maybe
postcss.config.js
module.exports = ({ file }) => ({
   plugins: {
      'postcss-import': { root: file.dirname } // @import relative to the file currently processed by postcss-loader
   }
})

I didn't do anything else other than postcss-loader upgrade. And I've  tried to revert to v2.0.6, it turns out to be fine.
I think this path has been resolved by webpack as I also use it in other js files.
Why it works fine with blank postcss-import before with v2.0.6 ?

https://github.com/postcss/postcss-loader/compare/v2.0.6...v2.0.7 There doesn't seem to be a code change possibly related to your issue. As mentioned I need more info about your setup :)

Did you update the dependencies?
Following is my webpack config
const config = {
  entry: {
    polyfills:  './polyfills.js',
    ie: 'eventsource-polyfill',
    demo: [
      demo_src + '/imports/demo-layout'
    ]
  },

  output: {
    path: demo_src,
    filename: '[name].[chunkhash].js',
    publicPath: '/assets/'
  },

  resolve: {
    modules: [
      src,
      demo_src + '/imports',
      'node_modules'
    ]
  },

  devtool: false,

  plugins: [
    new CaseSensitivePathsPlugin(),
    new webpack.NoEmitOnErrorsPlugin(),
    new Dotenv({ path: ROOT + '/.env' }),
    new AssetsPlugin(),
    new webpack.DefinePlugin({
      'process.env':{
        'NODE_ENV': '"production"'
      }
    }),
    new webpack.optimize.UglifyJsPlugin()
  ],

  module: {
    rules: [
      {
        test: /\.css$/,
        exclude: /\.modules\.css$/,
        use: [ 'style-loader', 'css-loader', 'postcss-loader' ]
      },
      {
        test: /\.modules\.css$/,
        use: [
          'style-loader',
          'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]&camelCase=only',
          'postcss-loader'
        ]
      },
      {
        test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
        loader: 'url-loader?limit=200000&mimetype=application/font-woff'
      },
      {
        test: /\.md$/,
        use: 'raw-loader'
      }
};

as for 'path/name.css', `path` is a sub-folder in `src` which is resolved by webpack

webpack alias did never work with postcss-import, but may work without it and letting the css-loader revolve the @import's (better anyways). Could you try without postcss-import please?

I've tried it and still no work

Did you find a solution  e.g tried without postcss-import and changing the @import path to the correct URL ?

I don't quite understand what is the right url? relative url? and it's quite complex because we have many levels of folders.
I tried to config postcss-import in postcss.config.js, however, it doesn't work.
I'm confused with the mechanism behind postcss resolve.

$ROOT
|–src
||– styles
|||– a.css
||– file.css
||– file.js
|
|– postcss.config.js
|- package.json

postcss.config.js
module.exports = ({ file, options, env }) => ({
   plugins: {
     'postcss-import': { root: file.dirname }
   }
})

file.css
@import './styles/a.css';

file.js
import css from './file.css'

...

I surely did this and print the root, it shows the right path, however still failed to find the css file

Please provide a small repo for reproduction for debugging then, it maybe also related to
webpack.config.js
resolve: {
    modules: [
      src, // <=
      demo_src + '/imports',
      'node_modules'
    ]
  },

but I can't tell 💯

After some time with postcss-import, I find this works:
module.exports = {
  plugins: {
    'postcss-import': { addModulesDirectories: [ src ] },
    'postcss-cssnext': {},
    'postcss-browser-reporter': {},
    'postcss-reporter': {}
  }
};

hmm... 🙃  If that works for you but I personally would rely on it, both postcss-import (node-resolve) && webpack (enhanced-resolve)  use the same underlying resolve algo (node_modules resolving) I'm still wondering why you add the src directory to resolve.modules


3D CNNs and MViT

Hi,
Can I use this to generate attention maps for video action recognition done using models such as r3d18, i3d, r2plus1d18? Also, can it be used for transformer models like MViT?
Thank You!

I'm also very interested in this. Any updates? Thanks!

Any updates?


Stats file generated by ng build --stats-json cannot be parsed by analyzers

Versions
Angular CLI: 6.0.0-rc.9
Node: 9.5.0
OS: darwin x64
Angular: 6.0.0-rc.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.5.12
@angular-devkit/build-angular     0.5.12
@angular-devkit/build-optimizer   0.5.12
@angular-devkit/core              0.5.12
@angular-devkit/schematics        0.5.12
@angular/cli                      6.0.0-rc.9
@ngtools/webpack                  6.0.0-rc.10
@schematics/angular               0.5.12
@schematics/update                0.5.12
rxjs                              6.0.0
typescript                        2.7.2
webpack                           4.6.0

Repro steps

ng new test-app
cd test-app
ng build --stats-json
npx webpack-bundle-analyzer ./dist/test-app/stats.json

Observed behavior

Desired behavior
File should be parsed by the analyzer.
Mention any other details that might be useful (optional)
Another place where it's broken:

Upload the file dist/test-app/stats.json to https://webpack.github.io/analyse/

The file does not get parsed by https://webpack.github.io/analyse/

An error appears in the console:

Uncaught TypeError: Cannot read property 'sort' of undefined
    at r (web.js:1)
    at Object.e.load (web.js:1)
    at FileReader.e.onload (8.568a26e05565c8025a86.js:1)

Same in full release.

I confirm. Same problem. Webpack bundle analyzer not working in Angular 6

Not working, tried various combinations of --build-optimizer=false and named chunks, vendor bundles, nothing works, the result is always the same as above.

This is now working fine with Webpack Bundle Analyzer 2.11.2
https://www.npmjs.com/package/webpack-bundle-analyzer

Thanks @tmakin - confirmed it works:
npx webpack-bundle-analyzer@latest ./dist/test-app/stats.json

Or just install the latest version globally:
npm i -g webpack-bundle-analyzer@latest

Probably good to keep the issue open until webpack.github.io/analyse works too.

Looks like https://webpack.github.io/analyse is broken because of this issue...

--stats-json supplied to an Angular library build emits an unknown option message. Is this applicable only for an application build?

Will be fixed by: https://github.com/webpack/analyse/pull/37

The PR is still open, but I sucessfully tested this against angular 6.0.4. / @angular/cli 6.0.8
The issue might be obsolete?

Same here with 7.0.2, fresh new project.

@JohannesHoppe Are you using lazy-loaded modules? I don't think it's an issue otherwise, looking at the fix from @alan-agius4

Some hardcore workaround:
If you intent to use https://webpack.github.io/analyse:

add breakpoint before file parsing fails (use the devtools to navigate to error source)
save t or whatever that should contain .modules to global variables via devtools
paste

temp1.modules = [];
for(const chunk of temp1.chunks) {
    temp1.modules.push(... chunk.modules);
}

???
profit

You can even see reasons why something was included - which was the main reason i attempted to use that tool

Just works perfect with :
Angular CLI: 7.0.4
Node: 10.1.0
OS: darwin x64
Angular: 7.0.2

@alan-agius4 PR was submitted in July and has yet to be looked at let alone merged. The last commit to Webpack Analyser was 2 years ago. I'm thinking it's time to remove the reference to the abandonware in the help text:
  --stats-json
    Generates a 'stats.json' file which can be analyzed using tools such as: #webpack-bundle-analyzer' or https: //webpack.github.io/analyse

Hi, I'm sorry, but this issue is not caused by Angular CLI.
As @intellix correctly mentioned in his comment above https://github.com/angular/angular-cli/issues/10589#issuecomment-440979327 there are other alternatives that work such as source-map-explorer.
Unfortunately  https://github.com/webpack/analyse seems to be unmaintained, sometime ago I did create a PR to fix this however it was never looked at https://github.com/webpack/analyse/pull/37. Also, this same issue is being tracked in their issue tracker here: https://github.com/webpack/analyse/issues/30.

@juarezpaf, webpack-bundle-analyzer` seems to be working.


feat: add CRL support

Currently, octo-proxy lacks the capability to verify the peer certificate against the CRL. This PR introduces CRL validation during the TLS handshake.
This CRL validation will only occur if the user enables the crl configuration by defining the CRL path in the tls field.
This validation can be used in both server and client.
Issue: https://github.com/nothinux/octo-proxy/issues/19

Codecov Report

Merging #22 (5ca19aa) into main (0d2ae3b) will increase coverage by 0.11%.
The diff coverage is 90.81%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
+ Coverage   85.88%   86.00%   +0.11%
==========================================
  Files          11       11
  Lines         673      743      +70
==========================================
+ Hits          578      639      +61
- Misses         83       89       +6
- Partials       12       15       +3

Files Changed
Coverage Δ

pkg/config/config.go
95.16% <ø> (ø)

pkg/proxy/tlsconn.go
82.78% <83.33%> (-4.72%)
:arrow_down:

pkg/proxy/helper.go
100.00% <100.00%> (ø)


Sort by selected items ...

Is there any way to sort the list by the items selected? Here is what I am thinking ...
I have a list of 20 items to pick from, I pick 5 from various places in the list and close the select.
When I reopen the select, I would like to see the 5 items picked at the top of the list.
Is this possible?
Great plugin by the way!
Grady

I'd bet you could rig something up by listening to the events (either bootstrap-select's or the select's change event) and then sort the select and trigger bootstrap-select's refresh.
The actual implementation has nothing to do with this library, but the concept shouldn't be difficult to implement.

I am also interested in this. Did you finally find or do something that you can share? Thanks!

The best method would probably be to utilize bootstrap-select's hidden.bs.select method.
$('select').on('hidden.bs.select', function() {
    // sort select options
    // $(this).selectpicker('refresh');
});

Hi @caseyjhol
Thanks for the idea. I am trying to do it but I am failing. The problem seems to be that the option of the original list do not get updated with the selected css class at the time hidden.bs.select is fired.
I also tried to apply the sort in the ui elements (and check via hasClass('selected') but...I find no way to get to the bootstrap-select main div out of my select id. Is there a way to get this?
Thanks in advance,
$('#myList').on('hidden.bs.select', function() {
   var withClass = $('#myList').find('option').map(function() {
	    if ( $(this).attr('selected') === 'selected' ) {
	        return this;
	    };
	}).toArray();
	$(this).prepend(withClass);
	$(this).selectpicker('refresh');
});

mmm looks like this worked:
$(''#mySelect'').on(''change.bs.select'', function() {

	$(''#mySelect option:selected'').prependTo(''#mySelect'');
	$(this).selectpicker(''refresh'');

});

Hi @caseyjhol
The problem I am having now, that I don't know how to do is that when I use data-container="body" I have now way to get the HTML element being the ul of selectpicker associated to the select. I need this in order to make it sortable and a few other things.
Any idea?

OK, I ended up doing a hack a setting a CSS class in the select which is something like mySelectID_bootstrapSelect. And so... as select classes are indeed copied to the ul div..then I can do $('.mySelectID_bootstrapSelect'). Of course I would prefer to use that jQuery expression via ID rather than hacking on css class. But at least this workaround works.
@caseyjhol What I don't know is how to put back the item into the correct position once unclicked (deselected)...  Because right now, once unclicked it keeps quite "on top" on the list. Not as much "top" as the selected items (just below them), obviously, but not in it's original position either.
Any idea how can I do this?

@caseyjhol   Any tip on how could I implement the above? It gets complicated even more then I have group options....
Thanks!

Personally I think implementation questions should be asked on StackOverflow instead of in an issue.

Hi @jkrehm
Thanks for your suggestion. I moved it to SO and sorry for the noise.

it's my solution.
    var sort = [];
    var $Button, $Options;

    $('.selectpicker').selectpicker()
            .on('changed.bs.select', function (event, clickedIndex, newValue, oldValue ) {

      var title = '';

      //Clear result
      $Button.empty();
      for( var i =0; i < sort.length; i++ ){
        var value = sort[i];

        $Options.each( function(){
          var $span = $(this).find('span.label');
          if(value == $span.attr('value')*1){
            title = $span.text() + '  ' + title;
            $Button.prepend( $span.clone() );
            return;
          }
        });
      }

      $('.bootstrap-select button').attr('title', title );
    });

    $Button = $('.bootstrap-select button .filter-option');
    $Options = $('.bootstrap-select ul.dropdown-menu li[data-original-index]');

    //click on options
    $Options.on('click', function( e ){
      var value = $(this).find('span.label').attr('value')*1;
      var flag = false;
      for( var i =0; i < sort.length; i++ ){
        if( sort[i] != value )  continue;
        flag = true;
      }

      if( flag ){
        sort.splice( sort.indexOf(value),1 );
      } else {
        sort.push( value );
      }
    });

this works for me
  $('.selectpicker').on('changed.bs.select', function(e, clickedIndex, isSelected, previousValue) {
    var selectedOptions = $(this).find('option:selected');
    selectedOptions.detach();
    $(this).prepend(selectedOptions);
    $(this).selectpicker('refresh');
  });


Fix emacs-fasd error on opening file in new directory

See https://github.com/steckerhalter/emacs-fasd/issues/8.

Fixed upstream. Reverting the above commit.


Add spirv-opt convert-to-sampled-image pass

convert-to-sampled-image pass converts images and/or samplers with
given pairs of descriptor set and binding to sampled image.
If a pair of an image and a sampler have the same pair of descriptor
set and binding that is one of the given pairs, they will be
converted to a sampled image. In addition, if only an image has the
descriptor set and binding that is one of the given pairs, it will
be converted to a sampled image as well.
For example, when we have
  %a = OpLoad %type_2d_image %texture
  %b = OpLoad %type_sampler %sampler
  %combined = OpSampledImage %type_sampled_image %a %b
  %value = OpImageSampleExplicitLod %v4float %combined ...

If %texture and %sampler have the same descriptor set and binding

  %combine_texture_and_sampler = OpVaraible %ptr_type_sampled_image_Uniform
  ...
  %combined = OpLoad %type_sampled_image %combine_texture_and_sampler
  %value = OpImageSampleExplicitLod %v4float %combined ...

If %texture and %sampler have different pairs of descriptor set and binding

  %a = OpLoad %type_sampled_image %texture
  %extracted_image = OpImage %type_2d_image %a
  %b = OpLoad %type_sampler %sampler
  %combined = OpSampledImage %type_sampled_image %extracted_image %b
  %value = OpImageSampleExplicitLod %v4float %combined ...

Sorry this somehow fell off my radar.  I've submitted comments I had started a while back.  I'll need to go over everything again because I don't know what I reviewed, and what I did not.


Certificate validation on Core CLR

Is there a way of intercepting certificate validation when using the NEST Client (2.1.1) and .NET Core (dnxcore50) to query an ElasticSearch server using a self-signed certificate?
The documentation states that ServicePointManager cannot be used and asks for an issue to be raised if support is required:
https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/connecting.html
Thanks in advance
Mark.

Hey @yorkie-m, there's currently no way to do this for the core clr build; core clr uses System.Net.Http.HttpClient that doesn't by itself expose a way to accept invalid certificates but it is possible with an IHttpFilter from  Windows.Web.Http.
What's your use case?

Ok thanks. I've solved the immediate problem by using a valid certificate in our Dev environment. We want to target non Windows platforms so I guess that rules out IHttpFilter.  Thanks for coming back to me.

You could implement your own IConnection if the need arises, then pass that to the constructor of ConnectionSettings e.g.
public class MyConnection : IConnection
{
    Task<ElasticsearchResponse<TReturn>> RequestAsync<TReturn>(RequestData requestData)
			where TReturn : class
    {
        // implementation...
    }

    ElasticsearchResponse<TReturn> Request<TReturn>(RequestData requestData)
			where TReturn : class
    {
        // implementation...
    }
}

var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
var connectionSettings = new ConnectionSettings(pool, new MyConnection());
var client = new ElasticClient(connectionSettings);


Update to use new scripts

Hi @emanuelquintero, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;


Unexpected appearance of app-loading page when Display Settings set to Automatic

When the Display Settings in Zulip is set to Automatic: The web loading page looks like:

This is harming the visibility of the app-loading text significantly.

@zulipbot claim

@zulipbot claim

is it still open?


Github pages

Github pages is up: https://prob-ml.github.io/bliss/
New set up:
Use docsrc/ for sphinx development. Then run make github to move all necessary html files to docs/.

Great, I'm happy it's working now. Is a docstr directory the standard way of doing it?

I was following this link:
.
but I don't think docsrc is the only way, I'll open another PR to see if I can put this source folder inside docs.

Great, I'm happy it's working now. Is a docstr directory the standard way of doing it?

I was following this link:
.
but I don't think docsrc is the only way, I'll open another PR to see if I can put this source folder inside docs.


Bitwarden new "Create Send" command

Description
Added a new command to Bitwarden extension to create shareable secrets through Bitwarden's Send feature.
See issue #1942.
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hey, congrats for the great work.
I found a bug in the current code: when the user is not log in, the form is displayed but cannot but submitted:

We might need to abstract the authentication logic in order to be able to share it between the send and list commands.

Great work on your first contribution @gio8tisu 🎉

Looks great, good job 🚀

@pomdtr Is this ready for merge or are we still awaiting something?

Just wanted to make sure that I was correct, thanks 😄


run_daily报错http error 456

/data/stock/jobs/cron.daily/run_daily
Traceback (most recent call last):
File "/data/stock/libs/common.py", line 160, in run_with_args
run_fun(tmp_datetime_show)  # 使用当前时间
File "/data/stock/jobs/18h_daily_job.py", line 49, in stat_today_all
data = ts.get_today_all()
File "/usr/local/lib/python3.6/site-packages/tushare/stock/trading.py", line 327, in get_today_all
newdf = _parsing_dayprice_json('hs_a', i)
File "/usr/local/lib/python3.6/site-packages/tushare/stock/trading.py", line 120, in _parsing_dayprice_json
text = urlopen(request, timeout=10).read()
File "/usr/local/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 456:

Traceback (most recent call last):
File "/data/stock/libs/common.py", line 166, in run_with_args
run_fun(tmp_datetime_show)  # 使用当前时间
File "/data/stock/jobs/guess_indicators_daily_job.py", line 75, in stat_all_lite_sell
data = pd.read_sql(sql=sql_1, con=common.engine(), params=[datetime_int])
File "/usr/local/lib/python3.7/site-packages/pandas/io/sql.py", line 527, in read_sql
chunksize=chunksize,
File "/usr/local/lib/python3.7/site-packages/pandas/io/sql.py", line 1308, in read_query
result = self.execute(*args)
File "/usr/local/lib/python3.7/site-packages/pandas/io/sql.py", line 1176, in execute
return self.connectable.execution_options().execute(*args, **kwargs)
File "", line 2, in execute
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/deprecations.py", line 390, in warned
return fn(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 3108, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1252, in execute
future=False,
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1553, in _exec_driver_sql
distilled_parameters,
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1814, in execute_context
e, statement, parameters, cursor, context
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1995, in handle_dbapi_exception
sqlalchemy_exception, with_traceback=exc_info[2], from=e
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 207, in raise
raise exception
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1771, in _execute_context
cursor, statement, parameters, context
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
cursor.execute(statement, parameters)
File "/usr/local/lib/python3.7/site-packages/MySQLdb/cursors.py", line 206, in execute
res = self._query(query)
File "/usr/local/lib/python3.7/site-packages/MySQLdb/cursors.py", line 319, in _query
db.query(q)
File "/usr/local/lib/python3.7/site-packages/MySQLdb/connections.py", line 259, in query
_mysql.connection.query(self, query)
sqlalchemy.exc.ProgrammingError: (MySQLdb._exceptions.ProgrammingError) (1146, "Table 'stock_data.guess_indicators_daily' doesn't exist")
[SQL:
SELECT date, code, name, changepercent, trade, open, high, low,
settlement, volume, turnoverratio, amount, per, pb, mktcap,
nmc ,kdjj,rsi_6,cci
FROM stock_data.guess_indicators_daily WHERE date = %s
and kdjk <= 20 and kdjd <= 30 and kdjj <= 10  and rsi_6 <= 20  and cci <= -100
]
[parameters: ('20210728',)]
(Background on this error at: http://sqlalche.me/e/14/f405)
rm -f /data/cache/hist_data_cache/2021-07/


[QUESTION] Why PinoLogger instance don't show the error object

When I use a PinoLogger instance to display some error object like this.logger.error(Error('foo')) I get this:
{
  "level": 50,
  "time":<PHONE_NUMBER>076,
  "pid": 27787,
  "hostname": "--",
  "name": "app",
  "req": {
    "id": 1,
    "method": "GET",
    "url": "--",
    "headers": {
      "host": "localhost:3000",
      "user-agent": "insomnia/7.1.1",
      "accept": "*/*"
    },
    "remoteAddress": "<IP_ADDRESS>",
    "remotePort": 52126
  },
  "context": "ExceptionsHandler"
}

seems like the arg isn't serialized by pino.stdSerializers.err because
this.logger.error( pino.stdSerializers.err(Error('foo')) )

works as expected (with { type, message, stack }). This happen even when I explicity define the serializers. Is it the right behavior?
Great lib btw!

Hi, it's interesting, could you please provide minimal example repo on this?

While testing the minimal example I figured out that this issue appear when I define the context to the PinoLogger instance. Without calling logger.setContext or using the @InjectPinoLogger decorator, this.logger.error(Error('foo')) show the error object.
You can download the example here: https://codesandbox.io/s/nestjs-pino-issue-304-lgxwv

I just realize this is a bug :/
This happen due to the following code
https://github.com/iamolegga/nestjs-pino/blob/141a69bea58516d33d871ce4ea715ca108f4444b/src/PinoLogger.ts#L92
because in my case firstArg has non-enumerable props (stack and message) so they aren't copied to the new object created there.

Good catch, thanks. I'll try to see what can be done here

Pino expects Error object in err field and can correctly serialize it.
Example:
this.logger.error({ err: new Error('message') })

Added extra check if passing instance of Error, and if so transfering it to err field. Anyway that's more related to pino than to this lib. if you passing some custom error please check this out: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work. Also this issue might be useful too: https://github.com/pinojs/pino/issues/579
shipped in v1.3.0


Deploy a service entry with ALLOW_ANY policy set makes all other HTTPs requests fail

Bug description
As soon as I install a service entry for a specific application and with the policy set to defaults (ALLOW_ANY), all the pods in the cluster cannot connect anymore to external HTTPS services, returning curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol.
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Expected behavior
HTTPS connections should keep working as normal, i
Steps to reproduce the bug

I install Istio with the default ALLOW_ANY policy (default - nothing extra specified in the installation - look below)

I install some applications. They can successfully connect to external services making HTTPS connections (for example, I can do curl https://google.com)

I install the following service entry, needed for a very specific application only, to perform TLS origination from the egress gateway:

---

apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: special-service
spec:
  hosts:
  - my.external.host.com
  location: MESH_EXTERNAL
  ports:
  - number: 80
    name: http-port
    protocol: HTTP
  - number: 443
    name: http-port-for-gad-test-tls-orgination
    protocol: HTTP
  resolution: DNS

As soon as I install the service entry, https connections from any POD don't work anymore, returning the following error curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

As a side note, HTTP connections keep working normally.

As soon as I delete the service entry I can again connect to HTTPS services

Version (include the output of istioctl version --remote and kubectl version)
$ istioctl version
client version: 1.2.2
citadel version: 1.2.2
egressgateway version: 1.2.2
galley version: 1.2.2
ingressgateway version: 1.2.2
pilot version: 1.2.2
policy version: 1.2.2
sidecar-injector version: 1.2.2
telemetry version: 1.2.2

Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:23:09Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.5", GitCommit:"2166946f41b36dea2c4626f90a77706f426cdea2", GitTreeState:"clean", BuildDate:"2019-03-25T15:19:22Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}

How was Istio installed?
#!/usr/bin/env bash

# Istio installation - start

# Add locally the Istio helm repository and download repo index
helm repo add istio.io https://storage.googleapis.com/istio-release/releases/1.2.2/charts/
helm repo update

# Create Istio namespace
kubectl create namespace istio-system || true

# Install Istio CRDs
helm install istio.io/istio-init --name istio-init --namespace istio-system || true

# Wait until Istio CRDs are equal to 23.
while [ $(kubectl get crds | grep 'istio.io' | wc -l) -ne 23 ]
do
  echo Istio CRDs should be 23. Waiting for Istio CRDs to be created...
done
echo Istio CRDs successfully created. Moving on.

# Install Istio using the default profile (more options at https://istio.io/docs/setup/kubernetes/install/helm/)

helm install istio.io/istio \
  --name istio \
  --namespace istio-system \
  --set 'gateways.istio-ingressgateway.loadBalancerIP'='X.Y.W.Z' \
  --set 'gateways.istio-egressgateway.enabled'=true \
  || true

# Istio installation - end

Environment where bug was observed (cloud vendor, OS, etc)
Azure AKS

It is because you have an HTTP service on port 443., from
  - number: 443
    name: http-port-for-gad-test-tls-orgination
    protocol: HTTP

This is a common problem though... let me see if I can figure out a way to make this work

Thanks a lot!
Il giorno mer 21 ago 2019 alle 22:48 John Howard<EMAIL_ADDRESS>ha scritto:

It is because you have an HTTP service on port 443., from

number: 443
name: http-port-for-gad-test-tls-orgination
protocol: HTTP

This is a common problem though... let me see if I can figure out a way to
make this work
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/16450?email_source=notifications&email_token=AARY7UD6KDAESKEYZZAY45TQFWS2DA5CNFSM4IOLZXA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD43COUQ#issuecomment-523642706,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AARY7UDI6F6ZT2GK2I374I3QFWS2DANCNFSM4IOLZXAQ
.

Opened https://github.com/istio/istio/issues/16458 to track this and consildate a few issues. Thanks for the report!


Fix race condition between bot and user activity

Fixes #3431.

Changelog Entry
Fixed

Fixes #3431. Race condition between the first bot activity and first user activity, should not cause the first bot activity to be delayed, by @compulim in PR #3705

Description
A race condition between the first bot activity and first user activity will cause the bot activity to be delayed if the user activity shows up first.
Design
When the bot activity (or any activity with "replyToId") has arrived, we will check if its precedence is already in the transcript or not. If it is not, we will wait for up to 5 seconds. This is for resolving an accessibility issue due to protocol/SDK deficiency.
But since the first bot activity will have a "replyToId" pointing to a bogus activity (a.k.a. never exists), thus, the bot activity will always subject to delay.
To mitigate this issue, we will check the transcript to see if the bot activity is the very first (i.e. with a bogus activity). If it is the very first, then, we allow it to show up without delay.
The problem lies in our transcript check; we check for all kinds of activities, including activities from both bot and user. Due to the race condition, the user's activity is already in the transcript. Thus, the bot activity is not the "first"; we don't allow the first bot activity to show up immediately.
The check's primary object is to check if the "replyToId" is a bogus ID or not. The check should be true if the transcript does not have any bot activities, instead of any activities.
Specific Changes

Updated the transcript check in queueIncomingActivitySaga.js, we should only check for bot's activities, not every activity
Added tests to prevent regression

[x] I have added tests and executed them locally
[x] I have updated CHANGELOG.md
[x] ~I have updated documentation~

Review Checklist

This section is for contributors to review your work.

[x] Accessibility reviewed (tab order, content readability, alt text, color contrast)
[x] ~Browser and platform compatibilities reviewed~
[x] ~CSS styles reviewed (minimal rules, no z-index)~
[x] ~Documents reviewed (docs, samples, live demo)~
[x] ~Internationalization reviewed (strings, unit formatting)~
[x] ~package.json and package-lock.json reviewed~
[x] ~Security reviewed (no data URIs, check for nonce leak)~
[x] Tests reviewed (coverage, legitimacy)

Might want to change 'bogus' to 'non-existent' - I don't know if this is a polycheck violation or not.


[Feature] Enable SMTP Authentication in Tenant UI

Enable using authentication with SMTP
Nodemailer used in Tenant UI supports using authentication. This PR extends the code to allow setting secure, and providing user and password variables via the Helm values.
For additional information refer to the nodemailer documentation: https://nodemailer.com/smtp/#authentication
Thanks @loneil for your help!

To test this on the deployed PR we can temporarily set reservation.auto_approve in from plugin-config.yml in the config-map to false (or update it in values-pr to false and redeploy). Then reservation requests on the PR will send emails.
Can test out when deployment goes through but looking at code it seems ok. Probably good global setting to have though don't think we'll ever need this as we'd likely always be using the gov smtp server in OCP where it doesn't need auth?

Works. Tested with reservation.auto_approve set to false as per @loneil's comment.


Documentation: pip install doesn't work?

Checklist

[x] I've searched the project's issues.

❓ Question
In the README, the following instruction is given to install:
pip install git+https://github.com/process-intelligence-research/kgtool

However, it does not resolve, giving the following console output:
Collecting git+https://github.com/process-intelligence-research/kgtool
  Cloning https://github.com/process-intelligence-research/kgtool to c:\users\user\appdata\local\temp\pip-req-build-ethhx85g
  Running command git clone --filter=blob:none --quiet https://github.com/process-intelligence-research/kgtool 'C:\Users\User\AppData\Local\Temp\pip-req-build-ethhx85g'
  remote: Repository not found.
  fatal: repository 'https://github.com/process-intelligence-research/kgtool/' not found
  error: subprocess-exited-with-error

I believe the instruction should be changed to:
pip install git+https://github.com/process-intelligence-research/ChemEngKG_kgtool

Is it possible to do so?
📎 Additional context

Fixed with 0dc752f


ES7 might not be setup properly

Hi, I am setting a build matrix with ES5, ES6 and ES7. I noticed that our build setup works fine for ES5 and ES6, but not ES7. Have you ran into an issue with ES7?
https://github.com/cisco/mindmeld/runs/802073981

@minhtuev we haven't yet starting using ES7 so haven't tested this action with that... if you get a chance to dig into this we'd definitely appreciate a PR if it's necessary


Set Readthedocs

See pull request message in #82.
Can only be done by @pierrepo .

I have an error with RTD:
https://readthedocs.org/projects/pbxplore/builds/3395010/
It seems numpy is not installed with MDAnalysis?

Did you set the install of the requirements from doc_requirements.txt?

@pierrepo  look at the pull request description in #82 for all the options to set

@jbarnoud No!
Now yes, but:
https://readthedocs.org/projects/pbxplore/builds/3396374/

requirements must be installed from doc_requirements.txt
the system sipe-package must be accessible
PDF doc must be deactivated

http://pbxplore.readthedocs.org/en/latest/ ;-) Thanks @jbarnoud
I found the doc process a bit complicated. I that normal?

There were 3 important points to setup. But they were to setup only once. Now the doc should build automatically at each commit.


Animating transform as a spring, but opacity as ease?

This is probably a really basic question, but how do I use the <Transition /> component to animate a component (a modal) when it mounts, where the transform is springy but not opacity?
Currently since the opacity is springy, it fades in and out before finally coming to rest which seems weird. Once opacity reaches 1, it should stay there.
<Transition
  native
   items={state.isModalVisible}
   from={{ transform: 'translate3d(0,40px,0) scale(0.95)', opacity: 0 }}
   enter={{ transform: 'translate3d(0,0px,0) scale(1.001)', opacity: 1 }}
   leave={{ transform: 'translate3d(0,40px,0) scale(0.95)', opacity: 0 }}
   config={{
     duration: state.isModalVisible ? undefined : 125,
     tension: 150,
     friction: 10
   }}
>
  ...
</Transition>

You can give config a function:
config={name => name === 'opacity' ? config.default : config.wobbly }
}}


Drag a form without a border,

When I use no border, I can't use the same method to drag the form as winform! Is there the same implementation method?

No I have solved the border drag, refer to my blog address: https://blog.tokengo.top/blog? id=6f27751e-10ad-4370-8d4e-78a68363f30d, but I've got a new problem, solved but badly, how to drag the form to change its size! I think this is a very basic feature! Whether there is the same demand!

Technically, the best way to approach this would be to reserve some narrow invisible space along each edge with a rectangle that intercepts the drag events and calls the corresponding window move/resize function. (also minimize/maximize/close if you want)
That way all functionality would be handled by the client window, and wouldn't go through any web functionality.
However, this would need to be implemented for all three OS, if this were to be a default feature for Photino.
It seems like with some time this could be implemented fairly straightforward, so I have labeled this with "Help Wanted".
Alternatively, albeit possibly somewhat jerky, an HTML control overlay could intercept these calls, and pass them through to the window.

I did it, but it was too bad to use.
There will be delays or faults

These should be basic features for no border, is there a better solution!

My solution: https://github.com/Andersen27/Photino.Blazor.CustomWindow

Thank you for implementing this. We will take a look and potentially add this functionality to Photino's upcoming release  after review.

The best solution for this appears to be solving it within Photino.Native (C++ code). See https://github.com/tryphotino/photino.NET/issues/80. Closing this as a duplicate.


"マイクロソフトのチーム" needs to be replaced with "Microsoft Teams".

https://docs.microsoft.com/ja-jp/microsoftteams/resources-teams-edu

ドキュメントの詳細
⚠ このセクションを編集しないでください。 docs.microsoft.com で必須です ➟ GitHub の問題のリンク。

ID: 214c365c-3550-8fed-b6bf-e3543d504a2e
Version Independent ID: 9bdd0801-aace-a0a5-8b0a-ca48b3b3ee6d
Content: 教育管理者向けのマイクロソフトのチーム
Content Source: Teams/resources-teams-edu.md
Service: msteams
GitHub Login: @chuckedmonson
Microsoft Alias: chucked

@hyoshioka0128 Thank you for reporting this issue, at this time we will not fix the over-translation of Microsoft Teams. It is a known issue that some of our product names are being unnecessarily translated by the machine translation. We are looking into a solution to fix these issues.


Control Gripper using Python

Dear all,
I am learning and find it difficult from the doc to get real understanding to control the Franka using Python and ROS.
following terminal command close the gripper
rostopic pub /franka_gripper/move/goal franka_gripper/MoveActionGoal "header:
  seq: 0
  stamp:
    secs: 0
    nsecs: 0
  frame_id: ''
goal_id:
  stamp:
    secs: 0
    nsecs: 0
  id: ''
goal:
  width: 0.0
  speed: 1.0"

Now if I want to do similar thing using python. I have written following code in a package
import rospy
from std_msgs.msg import String
import franka_gripper.msg

def my_listener():
    pub = rospy.Publisher('/franka_gripper/move/goal', franka_gripper.msg.MoveActionGoal, queue_size=10)
    rospy.init_node('my_listener', anonymous=True)
    rate = rospy.Rate(10) # 10hz
    while not rospy.is_shutdown():
	goal = franka_gripper.msg.MoveGoal(width=0.5, speed=1.0)
        #hello_str = "hello world %s" % rospy.get_time()
        #rospy.loginfo('Publishing')
        pub.publish(goal)
        rate.sleep()

if __name__ == '__main__':
    try:
        my_listener()
    except rospy.ROSInterruptException:
        pass

but I get following error
 rosrun my_gripper my_listener.py
Traceback (most recent call last):
  File "/home/panda/ros_catkin/src/my_gripper/scripts/my_listener.py", line 56, in <module>
    my_listener()
  File "/home/panda/ros_catkin/src/my_gripper/scripts/my_listener.py", line 51, in my_listener
    pub.publish(goal)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 879, in publish
    data = args_kwds_to_message(self.data_class, args, kwds)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/msg.py", line 121, in args_kwds_to_message
    raise TypeError("expected [%s] but got [%s]"%(data_class._slot_types[0], arg._type))
TypeError: expected [std_msgs/Header] but got [franka_gripper/MoveGoal]

Dear marcbone,
Thank you. I changed the code as following by going through your starting point;
import franka_gripper.msg
import rospy
import sys

# Brings in the SimpleActionClient
import actionlib

# Brings in the messages used by the grasp action, including the
# goal message and the result message.

def move_gripper():
    # Creates the SimpleActionClient, passing the type of the action
    client = actionlib.SimpleActionClient('/franka_gripper/move/goal', franka_gripper.msg.MoveActionGoal)

    # Waits until the action server has started up and started
    # listening for goals.
    client.wait_for_server()

    # Creates a goal to send to the action server.
    goal = franka_gripper.msg.MoveActionGoal()
    goal.width = 0.022
    goal.speed = 1.0

    # Sends the goal to the action server.
    client.send_goal(goal)

    # Waits for the server to finish performing the action.
    client.wait_for_result()

    # Prints out the result of executing the action
    return client.get_result()  # A GraspResult

if __name__ == '__main__':
    try:
        # Initializes a rospy node so that the SimpleActionClient can
        # publish and subscribe over ROS.
        rospy.init_node('junaid_gripper')
        result = move_gripper()
        print("Success: ",result.success)
        print("Error message: ", result.error)
    except rospy.ROSInterruptException:
        print("program interrupted before completion", file=sys.stderr)

It still not working. Secondly, why my mouse cursor changes and i get control back of mouse only if kill the process. Kindly help.

I figured out my mistake. Thank you. Here is the solution for the community. You may close the issue.

import franka_gripper.msg
import rospy
import sys

# Brings in the SimpleActionClient
import actionlib

# Brings in the messages used by the action, including the
# goal message and the result message.

def move_gripper():

    # Creates the SimpleActionClient, passing the type of the action
    client = actionlib.SimpleActionClient('/franka_gripper/move', franka_gripper.msg.MoveAction)

    # Waits until the action server has started up and started
    # listening for goals.
    client.wait_for_server()

    # Creates a goal to send to the action server.
    goal = franka_gripper.msg.MoveGoal(width=0.001, speed=1.0)
    #goal.width = 0.022
    #goal.speed = 1.0

    # Sends the goal to the action server.
    client.send_goal(goal)

    # Waits for the server to finish performing the action.
    client.wait_for_result()

    # Prints out the result of executing the action
    return client.get_result()  # A move result

if __name__ == '__main__':
    try:
        # Initializes a rospy node so that the SimpleActionClient can
        # publish and subscribe over ROS.
        rospy.init_node('junaid_gripper')
        result = move_gripper()
        print("Success: ",result.success)
        print("Error message: ", result.error)
    except rospy.ROSInterruptException:
        print("program interrupted before completion")


How to generate the Binary ?

Hi,
in https://espressif.github.io/esp-launchpad/config/config.toml you write:
SINGLE_BIN_FOR_ESP32.bin
how to make this ?
currently we get a bootloader.bin, a storage.bin, a Application.bin and so on ?
Thanks,
Franz

This may help.
idf.py build
cd build
esptool.py --chip esp32 merge_bin -o SINGLE_BIN_FOR_ESP32.bin @flash_args


Mandatory APP segment

The APP numbers are supposed to be flexible.
EXIF typically uses APP1.  However, I've seen examples that put it in other APP segments.
"Adobe_CM" should use APP13, but I've seen examples that put it in APP0.
The JPEG parser is supposed to use the APP label to determine the type of data. The APP number is used to combine data when there it too much data for a single APP segment.
(The exception being Samsung preview images, that increment segments from APP2 to APP3 to APP4, etc. Why? Who knows. I guess they didn't read the JPEG standard.)
By convention, we typically see EXIF in APP1, XMP in APP1, ICC_PROFILE in APP2, etc. But this is not required.
Section 10.2.1 states that the JUMBF should be in APP11. What if it is not found in APP11? E.g., what if it is in some other APP segment? This is not defined in the draft.

The presence of JUMBF in APP11 is standardized in JPEG-XT (ISO/IEC 18477-3) as well as in the JUMBF spec itself, Annex D.

Closing as this is not an issue, but the 1.0 version of the specification does have an explicit reference to the JPEG-XT spec and APP11 marker usage to avoid future confusion.


browsh: 1.8.0 -> 1.8.2

Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 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.

Result of nixpkgs-review pr 240630 run on x86_64-linux 1

1 package built:

browsh

The submission as a whole is looking good to me.
I have build the package and successfully ran browsh.


Postinstall tsd

PR, issue #2
Updates:

Added post install step to automatically execute tsd install after npm install (package.json).
Updated readme.md (how to run the sample instructions, link to article, change log).

Thanks a lot for that!

You are more than welcome, thanks for you great project and post helped me a lot building the react + redux + typescript set of samplesproject I'm working on.


Persistent 400 Error when updating temperature for T10Pro

Describe The Bug:
Setting the heat or cool temperature using my iOS Homeapp is not reflected on my actual thermostat nor the Honeywell Home app.
To Reproduce:

Install Homebridge
Install Homebridge Honeywell Home plugin
Create Honeywell Home Developer account as per instructions
Input tokens/keys
Authorize Honeywell Consumer account
Change temperature in iOS Home App.

Expected behavior:
Temperature should be updated on thermostat.
Logs:
[19/08/2021, 10:39:14] [HB Supervisor] Starting Homebridge with extra flags: -I -D
[19/08/2021, 10:39:14] [HB Supervisor] Started Homebridge v1.3.4 with PID: 10099
Initializing HAP-NodeJS v0.9.4...
[19/08/2021, 10:39:17] Loaded config.json with 0 accessories and 3 platforms.
[19/08/2021, 10:39:17] Loaded 15 cached accessories from cachedAccessories.
[19/08/2021, 10:39:17] ---
[19/08/2021, 10:39:19] Loaded plugin<EMAIL_ADDRESS>[19/08/2021, 10:39:19] Registering platform 'homebridge-config-ui-x.config'
[19/08/2021, 10:39:19] ---
[19/08/2021, 10:39:20] Loaded plugin<EMAIL_ADDRESS>[19/08/2021, 10:39:20] Registering platform 'homebridge-honeywell-home.HoneywellHome'
[19/08/2021, 10:39:20] ---
[19/08/2021, 10:39:21] ---
[19/08/2021, 10:39:21] Loading 3 platforms...
[19/08/2021, 10:39:21] [Config] Initializing config platform...
[19/08/2021, 10:39:21] [Config] Running in Service Mode
[19/08/2021, 10:39:21] [HoneywellHome] Initializing HoneywellHome platform...
[19/08/2021, 10:39:21] [HoneywellHome] Finished initializing platform: HoneywellHome
[19/08/2021, 10:39:21] [HoneywellHome] Using Default Refresh Rate.
[19/08/2021, 10:39:21] [HoneywellHome] Using Default Push Rate.
[19/08/2021, 10:39:21] [HoneywellHome] Config OK
[19/08/2021, 10:39:21] [HoneywellHome] Loading accessory from cache: Living Room Thermostat
[19/08/2021, 10:39:21] [HoneywellHome] Loading accessory from cache: Master Bedroom IndoorAirSensor
[19/08/2021, 10:39:22] [HoneywellHome] Executed didFinishLaunching callback
Preparing Advertiser for 'Homebridge B9E3 9A30' using bonjour-hap backend!
Setup Payload:
X-HM://0000YYYYYYYYY
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 000-00-000 │
    └────────────┘

Starting to advertise 'Homebridge B9E3 9A30' using bonjour-hap backend!
[19/08/2021, 10:39:22] Homebridge v1.3.4 (Homebridge B9E3) is running on port 51077.
[19/08/2021, 10:39:22] [HoneywellHome] Got access token: muahahahahahaha
[19/08/2021, 10:39:22] [HoneywellHome] New refresh token: muahahahahahaha
[19/08/2021, 10:39:22] [HoneywellHome] Homebridge config.json has been updated with new refresh token.
[19/08/2021, 10:39:23] [HoneywellHome] Total Locations Found: 1
[19/08/2021, 10:39:23] [HoneywellHome] Total Devices Found at Home : 1
[19/08/2021, 10:39:23] [HoneywellHome] Restoring existing accessory from cache: Living Room Thermostat DeviceID: LCC-B82CA04BA009
[19/08/2021, 10:39:24] [HoneywellHome] Software Revision 0 0 0 Thermostat "<IP_ADDRESS>"
[19/08/2021, 10:39:24] [HoneywellHome] Thermostat Living Room Thermostat Heat - Device is Currently:  0
[19/08/2021, 10:39:24] [HoneywellHome] Thermostat Living Room Thermostat - Device is in "Heat" mode
[19/08/2021, 10:39:24] [HoneywellHome] Thermostat Living Room Thermostat - [ 'Heat', 'Off', 'Cool', 'Auto' ]
[19/08/2021, 10:39:24] [HoneywellHome] Thermostat Living Room Thermostat - Only Show These Modes: [2,1,0,3]
[19/08/2021, 10:39:24] [HoneywellHome] Adding service
[19/08/2021, 10:39:24] [HoneywellHome] Thermostat Living Room Thermostat - Available FAN settings {"allowedModes":["On","Auto","Circulate"],"changeableValues":{"mode":"On"}}
[19/08/2021, 10:39:24] [HoneywellHome] Adding service
[19/08/2021, 10:39:24] [HoneywellHome] Thermostat UDID: Living Room-LCC-B82CA04BA009-T9-T10
[19/08/2021, 10:39:24] [HoneywellHome] Restoring existing accessory from cache: Master Bedroom IndoorAirSensor DeviceID: 114352
[19/08/2021, 10:39:24] [HoneywellHome] Only Displaying Room Sensor(s).
[19/08/2021, 10:39:24] [HoneywellHome] getCurrentSensorData Cache Thermostat T9-T10 - Living Room
[19/08/2021, 10:39:24] [HoneywellHome] Room Sensor Master Bedroom IndoorAirSensor - 21.5°c, 46%
[19/08/2021, 10:39:24] [HoneywellHome] Adding service
[19/08/2021, 10:39:24] [HoneywellHome] Adding service
[19/08/2021, 10:39:24] [HoneywellHome] Adding service
[19/08/2021, 10:39:45] [HoneywellHome] Thermostat Living Room Thermostat - Set TargetHeatingCoolingState: 3
[19/08/2021, 10:39:48] [HoneywellHome] Thermostat Living Room Thermostat - Set HeatingThresholdTemperature: 20.5
[19/08/2021, 10:39:48] [HoneywellHome] Thermostat Living Room Thermostat - Set TargetTemperature: 22.5
[19/08/2021, 10:39:48] [HoneywellHome] Thermostat Living Room Thermostat - Set CoolingThresholdTemperature: 24.5
[19/08/2021, 10:39:48] [HoneywellHome] Sending request for Living Room Thermostat to Honeywell API. mode: Auto coolSetpoint: 24.5 heatSetpoint: 20.5 thermostatSetpointStatus: PermanentHold
[19/08/2021, 10:39:48] [HoneywellHome] Thermostat Living Room Thermostat pushChanges - {"mode":"Auto","thermostatSetpointStatus":"PermanentHold","autoChangeoverActive":true,"coolSetpoint":24.5,"heatSetpoint":20.5}
[19/08/2021, 10:39:49] [HoneywellHome] "Request failed with status code 400"
[19/08/2021, 10:39:49] [HoneywellHome] Thermostat Living Room Thermostat - {"message":"Request failed with status code 400","name":"Error","stack":"Error: Request failed with status code 400\n    at createError (/usr/lib/node_modules/homebridge-honeywell-home/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/usr/lib/node_modules/homebridge-honeywell-home/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/usr/lib/node_modules/homebridge-honeywell-home/node_modules/axios/lib/adapters/http.js:260:11)\n    at IncomingMessage.emit (events.js:412:35)\n    at endReadableNT (internal/streams/readable.js:1317:12)\n    at processTicksAndRejections (internal/process/task_queues.js:82:21)","config":{"url":"https://api.honeywell.com/v2/devices/thermostats/LCC-B82CA04BA009","method":"post","data":"{\"mode\":\"Auto\",\"thermostatSetpointStatus\":\"PermanentHold\",\"autoChangeoverActive\":true,\"coolSetpoint\":24.5,\"heatSetpoint\":20.5}","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","Authorization":"Bearer wQV4s2RYUlc9Ihps3wsbGSMbqjo2","User-Agent":"axios/0.21.1","Content-Length":126},"params":{"locationId":3005609,"apikey":"AujyuQoLmOas6ZHhkKs9repsrpkO2sku"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"responseType":"json","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1}}
(node:10099) UnhandledPromiseRejectionWarning: Error: HAP Status Error: -70408
    at new HapStatusError (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/hapStatusError.ts:15:5)
    at Thermostats.apiError (/usr/lib/node_modules/homebridge-honeywell-home/src/devices/thermostats.ts:634:11)
    at /usr/lib/node_modules/homebridge-honeywell-home/src/devices/thermostats.ts:261:16
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:10099) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:10099) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[19/08/2021, 10:39:50] [HoneywellHome] Got access token: muahahahahahaha
[19/08/2021, 10:39:50] [HoneywellHome] New refresh token: muahahahahahaha
[19/08/2021, 10:39:50] [HoneywellHome] Homebridge config.json has been updated with new refresh token.

Homebridge Config:
{
    "bridge": {
        "name": "Homebridge B9E3",
        "username": "EE:BB:AA:11:BB:EE",
        "port": 51077,
        "pin": "000-00-000"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "HoneywellHome",
            "credentials": {
                "consumerKey": "AujyuQoLmOa1111111111111epsrpkO2sku",
                "consumerSecret": "zkJGtg1BBBBBBBBBBBnU",
                "accessToken": "NzZNE2NcnOYjUUUUUUUUUUUU4Dh4Hs19",
                "refreshToken": "GZlAxasJJJJJJJJJJJJJGGmKkhgGmEZB"
            },
            "platform": "HoneywellHome"
        },
        {
            "platform": "PowerView",
            "name": "PowerView",
            "host": "<IP_ADDRESS>"
        }
    ]
}

Device & Model:
T10 Pro (THX321WFS2001W)
Environment:

Node.js Version: v14.17.5
NPM Version: 6.14.14
Homebridge Version: v1.3.4
Homebridge Honeywell Home Plugin Version: 9.6.0
Homebridge Config UI X Plugin Version: 4.41.2
Operating System: Raspbian

Thank you!

Can you try the latest beta?

@donavanbecker I didn't get around to trying the beta, but just updated to 10.0.0 and tried again:
[22/08/2021, 12:09:28] [HoneywellHome] Thermostat Living Room Thermostat - Set CoolingThresholdTemperature: 23.5
[22/08/2021, 12:09:28] [HoneywellHome] Thermostat Living Room Thermostat - Set TargetTemperature: 22.3
[22/08/2021, 12:09:28] [HoneywellHome] Thermostat Living Room Thermostat - Set HeatingThresholdTemperature: 21.1
[22/08/2021, 12:09:28] [HoneywellHome] Send thermostatSetpointStatus
[22/08/2021, 12:09:28] [HoneywellHome] T9-T10
[22/08/2021, 12:09:28] [HoneywellHome] set autoChangeoverActive
[22/08/2021, 12:09:28] [HoneywellHome] T9-T10
[22/08/2021, 12:09:28] [HoneywellHome] Sending request for Living Room Thermostat to Honeywell API. mode: Auto coolSetpoint: 23.5 heatSetpoint: 21.1 thermostatSetpointStatus: PermanentHold
[22/08/2021, 12:09:28] [HoneywellHome] Thermostat Living Room Thermostat pushChanges - {"mode":"Auto","thermostatSetpointStatus":"PermanentHold","autoChangeoverActive":true,"coolSetpoint":23.5,"heatSetpoint":21.1}
[22/08/2021, 12:09:29] [HoneywellHome] "Request failed with status code 400"
[22/08/2021, 12:09:29] [HoneywellHome] Thermostat Living Room Thermostat - {"message":"Request failed with status code 400","name":"Error","stack":"Error: Request failed with status code 400\n    at createError (/usr/lib/node_modules/homebridge-honeywell-home/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/usr/lib/node_modules/homebridge-honeywell-home/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/usr/lib/node_modules/homebridge-honeywell-home/node_modules/axios/lib/adapters/http.js:260:11)\n    at IncomingMessage.emit (events.js:412:35)\n    at endReadableNT (internal/streams/readable.js:1317:12)\n    at processTicksAndRejections (internal/process/task_queues.js:82:21)","config":{"url":"https://api.honeywell.com/v2/devices/thermostats/LCC-B82CA0400009","method":"post","data":"{\"mode\":\"Auto\",\"thermostatSetpointStatus\":\"PermanentHold\",\"autoChangeoverActive\":true,\"coolSetpoint\":23.5,\"heatSetpoint\":21.1}","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","Authorization":"Bearer jwjJDM9QmAAAAAAAAAAAAAAAAAAA","User-Agent":"axios/0.21.1","Content-Length":126},"params":{"locationId":3005609,"apikey":"AujyuQoLmOas6ZHHHHHHHHHHHHHH"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"responseType":"json","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1}}

can you try v10.1.0?

Works! Thank you @donavanbecker

awesome!


feat:pkg/util/gitHub/download enhancement

Pre-Checklist
Note: please complete ALL items in the following checklist.

[x] I have read through the CONTRIBUTING.md documentation.
[x] My code has the necessary comments and documentation (if needed).
[x] I have added relevant tests

Description
add ut for download
Related Issues
see https://github.com/devstream-io/devstream/issues/833 for the details
New Behavior (screenshots if needed)

@jxs1211  Many thanks for your test! Please fix the redundant commits~

@jxs1211 Many thanks for your test! Please fix the redundant commits~

done

I have checked the format of the test, could you please check the content of the test. Thanks! @hxcGit

@jxs1211 Please remember to resolve the conflicts. 🙌

@jxs1211 Please remember to resolve the conflicts. 🙌
resolved

@jxs1211  Nice test!


70-upgrade-upstream-module-versions

Description
Upgrade upstream module versions and supported configuration.\
Related Issue

#70

Checklist
Please ensure that the following steps are completed before submitting the pull request:

[x] Code follows the Terraform best practices and style guidelines.
[x] Changes are appropriately documented, including any necessary updates to README or other documentation files.

Type of change
Please delete options that are not relevant.

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

Versioning
#minor

@mayank0202 , can you please make sure I commented on the PR correctly to increment the minor version?

@mayank0202 , can you please make sure I commented on the PR correctly to increment the minor version?

You have to write minor while doing a git commit and it works first time only🥲


LoadError: Unable to locate CPLEX installation - windows 10

Hi,
I have installed cplex_studio127.win-x86-64 and julia-0.5.0-win64 on Windows 10. The Environment variables are set by CPLEX, but I still get the LoadError: Unable to locate CPLEX installation. Please let me know if you have any suggestions.
Thanks,

Looking at the build script, the relevant part is here.
Could you try to debug that part by running Pkg.build("CPLEX") and see what you get ?
For instance, what do you get if you run @show ENV ? Do you enter if haskey(ENV,env) ?

12.7 was never tested on windows, the build script may not be correct

Yesterday I revised the build script my self by adding "1270", but it did not work. After you changed it, I removed CPLEX and its folder and tried to build CPLEX again, but still got the same error. However, when I open the build script, it is not updated to the new one?
@show ENV
ENV = =C:=C:\WINDOWS\system32
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\mpars\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=DESKTOP-BNKBM42
ComSpec=C:\WINDOWS\system32\cmd.exe
CPLEX_STUDIO_BINARIES127=C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\bin\x64_win64;C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\bin\x64_win64;C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\oplide;C:\Program Files\IBM\ILOG\CPLEX_Studio127\cpoptimizer\bin\x64_win64;C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\oplide\plugins\ilog.odms.ide.opllang.win32.win32.x86_64_<IP_ADDRESS>
CPLEX_STUDIO_DIR127=C:\Program Files\IBM\ILOG\CPLEX_Studio127
GUROBI_HOME=C:\gurobi650\win64
HOMEDRIVE=C:
HOMEPATH=\Users\mpars
LOCALAPPDATA=C:\Users\mpars\AppData\Local
LOGONSERVER=\DESKTOP-BNKBM42
MOZ_PLUGIN_PATH=C:\Program Files (x86)\Foxit Software\Foxit Reader\plugins
NUMBER_OF_PROCESSORS=4
OneDrive=C:\Users\mpars\OneDrive
OPENBLAS_MAIN_FREE=1
OS=Windows_NT
Path=C:\julia\bin;C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\bin\x64_win64;C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\bin\x64_win64;C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\oplide;C:\Program Files\IBM\ILOG\CPLEX_Studio127\cpoptimizer\bin\x64_win64;C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\oplide\plugins\ilog.odms.ide.opllang.win32.win32.x86_64_<IP_ADDRESS>;C:\gurobi650\win64\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Skype\Phone;C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\bin\x64_win64;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Users\mpars\Anaconda3;C:\Users\mpars\Anaconda3\Scripts;C:\Users\mpars\Anaconda3\Library\bin;C:\julia\bin;C:\Users\mpars\AppData\Local\atom\bin;C:\Users\mpars\AppData\Local\Microsoft\WindowsApps;C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\bin\x64_win64
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=8e09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\mpars\AppData\Local\Temp
TMP=C:\Users\mpars\AppData\Local\Temp
USERDOMAIN=DESKTOP-BNKBM42
USERDOMAIN_ROAMINGPROFILE=DESKTOP-BNKBM42
USERNAME=mpars
USERPROFILE=C:\Users\mpars
windir=C:\WINDOWS
Base.EnvHash with 42 entries:
"=C:"                      => "C:\WINDOWS\system32"
"ALLUSERSPROFILE"          => "C:\ProgramData"
"APPDATA"                  => "C:\Users\mpars\AppData\Roaming"
"CommonProgramFiles"       => "C:\Program Files\Common Files"
"CommonProgramFiles(x86)"  => "C:\Program Files (x86)\Common Files"
"CommonProgramW6432"       => "C:\Program Files\Common Files"
"COMPUTERNAME"             => "DESKTOP-BNKBM42"
"ComSpec"                  => "C:\WINDOWS\system32\cmd.exe"
"CPLEX_STUDIO_BINARIES127" => "C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\bin\x64_win64;C:\Program Files…
"CPLEX_STUDIO_DIR127"      => "C:\Program Files\IBM\ILOG\CPLEX_Studio127"
"GUROBI_HOME"              => "C:\gurobi650\win64"
"HOMEDRIVE"                => "C:"
"HOMEPATH"                 => "\Users\mpars"
"LOCALAPPDATA"             => "C:\Users\mpars\AppData\Local"
"LOGONSERVER"              => "\\DESKTOP-BNKBM42"
"MOZ_PLUGIN_PATH"          => "C:\Program Files (x86)\Foxit Software\Foxit Reader\plugins\"
"NUMBER_OF_PROCESSORS"     => "4"
"OneDrive"                 => "C:\Users\mpars\OneDrive"
"OPENBLAS_MAIN_FREE"       => "1"
"OS"                       => "Windows_NT"
"Path"                     => "C:\julia\bin;C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\bin\x64_win64;C:…
"PATHEXT"                  => ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
"PROCESSOR_ARCHITECTURE"   => "AMD64"
"PROCESSOR_IDENTIFIER"     => "Intel64 Family 6 Model 142 Stepping 9, GenuineIntel"
"PROCESSOR_LEVEL"          => "6"
⋮                          => ⋮

convert
cplex
cplex1270.dll
cplex1270processtransport.dll
cplex1270processworker.dll
cplex1270remote.dll
cplex1270remotejni.dll
cplex1270tcpiptransport.dll
cplex1270tcpipworker.dll
cplexamp
ILOG.Concert.dll
ILOG.Concert
ILOG.CPLEX.dll
ILOG.CPLEX

I removed CPLEX from .julia\v0.5.cache and .julia\v0.5.metadata to reinstall it with new build.jl, but now I am getting the new error.
ERROR: unknown package CPLEX
in macro expansion at .\pkg\entry.jl:53 [inlined]
in (::Base.Pkg.Entry.##2#5{String,Base.Pkg.Types.VersionSet})() at .\task.jl:360
in sync_end() at .\task.jl:311
in macro expansion at .\task.jl:327 [inlined]
in add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at .\pkg\dir.jl:31
in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at .\file.jl:48
in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at .\pkg\dir.jl:31
in add(::String) at .\pkg\pkg.jl:100

To remove Pkg.rm("CPLEX")
To add Pkg.add("CPLEX")
To checkout my patch Pkg.checkout("CPLEX", "odow-patch-1")
To build Pkg.build("CPLEX")

Thanks @odow, but I cannot add "CPLEX" anymore. I used Pkg.rm("CPLEX") but it did not update the build.jl. So, I removed CPLEX folders everywhere (e.g. .julia\v0.5.cache and .julia\v0.5.metadata) to reinstall it with new build.jl and ended up with this error.
julia> Pkg.add("CPLEX")
ERROR: unknown package CPLEX
in macro expansion at .\pkg\entry.jl:53 [inlined]
in (::Base.Pkg.Entry.##2#5{String,Base.Pkg.Types.VersionSet})() at .\task.jl:360
in sync_end() at .\task.jl:311
in macro expansion at .\task.jl:327 [inlined]
in add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at .\pkg\dir.jl:31
in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at .\file.jl:48
in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at .\pkg\dir.jl:31
in add(::String) at .\pkg\pkg.jl:100

Run Pkg.update() first, then go through the four steps above.

Actually since Miles merged, you will just need to run
Pkg.update()
Pkg.rm("CPLEX")
Pkg.add("CPLEX")
Pkg.checkout("CPLEX")
Pkg.build("CPLEX")

Still it is not working and cannot add CPLEX. Maybe I need to reinstall cplex_studio?
julia> Pkg.add("CPLEX")
ERROR: unknown package CPLEX
...

Your julia package directory is corrupted. Best to delete/rename .julia\v0.5 completely.

You will have to reinstall all current packages.


new ATAN2 and minor whitespace changes, errata such as duplicate "see also" entries, convert license line from a header to italic text

Thanks sir @urbanjost .

#build_preview


Remove property assignment

remove() implemented for missing kind of object literal properties
npm run tslint working (on my system  : node 10.3.0, npm 6.1.0, arch linux)

will do that thanks for the detailed review - i'm still fighting with tslint :( some errors are now reported but other are not...

Try merging in the latest master. I made some updates to the tslint.json file earlier today.

not tslint is working fine, thanks!

done!. tslilnt working fine now. just using removeCommaSeparatedChild - not perfect output but acceptable for me - UI prefer to keep it simple versus perfect output

Coverage decreased (-0.2%) to 94.266% when pulling a3d83a1b1cd28e6e237d469cde717059b48371ae on cancerberoSgx:removePropertyAssignament into 15d60b4faf91bc32fa2e95a8bc93751bf1994c2b on dsherret:master.

coverage down cause I removed the whole new method I just created - i think....

@dsherret on it give me some time

done

Thanks @cancerberoSgx! Looks great! I'll do a release sometime this weekend.


LICENSE file is absent

Hi @fabrizio-turchi - can you please add a LICENSE file to this repository?

Thank you!


Data set

Where can I download the processed data about the MS-CMRSeg dataset?

@1040554371 the data can be downloaded from challenge official website here:
https://zmiclab.github.io/zxh/0/mscmrseg19/

Hi, I tried to download the data through the website but it seems like the download link failed. Could you please share the dataset? My Email<EMAIL_ADDRESS>


Include an MQTT broker option

Being able to point apps/devices directly to an MQTT broker managed by the Home Assistant server would go a long way towards making HA feel more "all in one".
It could also help with security concerns to have a broker running locally rather than having data pass through a third party.

I don't think that this happen because including a MQTT broker is out of scope for Home Assistant.
There are MQTT broker available ((Picking a broker)[https://home-assistant.io/components/mqtt/#picking-a-broker] lists two) for local installation. So there is no need to depend on a third party broker.

My thought here is that the vast majority of people who use HA are only ever going to use an MQTT broker to serve as a communications component for HA.
With that in mind, requiring a separate MQTT broker doesn't really make sense to an end user who isn't already invested in the nitty-gritty of how MQTT stuff works. "Why do I need a separate server when I'm already running HA? Can't I just point my apps at that?"
HA already includes a REST API, and in terms of what it would actually be practically used for with HA (rather than focusing on the specifics of implementation), including an MQTT broker fits the same role.

@i-c I personally think that this doesn't make sense. An MQTT broker is a piece of software that works on its own, like for example a database server (MySQL, ...).
Installing for example mosquitto takes one command, which I consider almost no effort at all. IoT networks at home nowadays consist of a lot of pieces and with respect to that, setting up mosquitto is the slightest issue. Also, you don't need to know pretty much anything about MQTT to get started. Of course it's gonna take you half an hour to tweak it to your specific needs and setup security, but that's a different story - you are ready to start with just one apt-get command and maybe setting the listen directive to local network.
Finally, I think that a lot of people use an MQTT broker for other things than just communicating with HA (myself included). A lot of people are using Node-RED for example. I think you're overthinking things. Sorry if this comment seems harsh.

But, see... if you're talking about a MySQL server as an analogy, I'd argue that HA is closer to a package like MAMP than it is to Apache.
For almost every HA component except MQTT, there's a single degree of separation - HA connects directly to a given device/service/whatever. For MQTT, though, it's two degrees - connect to an MQTT broker, which connects to devices.

integrating it in HA would require effort that would not bring any benefit

I see making it as simple as possible for new users as a considerable benefit. The fewer the degrees of separation between HA and another device, the easier it is to understand and use, even if all the option in HA really does behind the scenes is (for example) run a Mosquitto daemon with sane defaults.

Sorry if this comment seems harsh.

No worries. I understand this is kind of a philosophical debate more than anything.

If there is an mqtt server python package on pypi that we can include,  I don't see any objections against a component to run an mqtt server. This will make it optional and convenient for who needs it but with low to no maintenance for us

I think this is a reasonable option which could be run in the default configuration.yaml and automatically connected to, and skipped if the entry is removed. It would make it easier especially for people who are interested in getting up and running just to test it out before actually investing any serious amount of time.

I didn't know about hbmqtt. Well, with that piece around it I need to rephrase my first comment to: "MQTT broker functionality inside of HA is just another component away..." :-)


Assign ports to developers for running instances of the PCE and Server for development and testing.

We need a list of ports for use by developers on Flux.  This list will be posted in the MOTD on flux.
Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Version used:
Environment name and version (e.g. Chrome 39, node.js 5.4):
Operating System and version (desktop or mobile):
Link to your project:

Done.


Error when trying to run the command

https://github.com/reflex-dev/reflex/blob/d0fc965c7f0c9f7c90ca18b9978fddaedc5fa683/docker-example/Dockerfile#L46
it cannot find the executable 'rx', it should be 'reflex' instead

Ah nice catch, would you love to put up a PR for that?


Fix inheritance of generic types (PEP-560)

it seems like #3518 did not entirely fix this issue -- there will be an error if you try to inherit from the subscripted class.
For example, with the following in example.py, and building the same way as above:
from typing import Generic, TypeVar

T = TypeVar("T")

print(Generic[T])

class MyGeneric(Generic[T]):
  pass

will give:
>>> import example
typing.Generic[~T]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "example.py", line 7, in init example
    class MyGeneric(Generic[T]):
TypeError: __init__() takes 3 positional arguments but 4 were given

Originally posted by @nikhilmishra000 in https://github.com/cython/cython/issues/2753#issuecomment-616874842

What needs to be done:

copy tests from CPython
fix the implementation in ObjectHandling.c according to what CPython does here.

Hello, I have also this bug, is someone working on it ?

@GrosFap not that I know of. Help, investigations and PR(s) all welcome. See my comment just above.

I've started to investigate some weeks ago, and I found that this issue was cause by the lack of handling for __mro_entries__ (I would have won some time by better reading https://github.com/cython/cython/issues/2753#issuecomment-616928891)
In fact, in Cython, there is no equivalent of __build_class__, where __mro_entries__ is evaluated.
That's why i'm not sure @scoder that a modification of ObjectHandling.c would be enough to add this mecanism in class building.

@wyfo see the Py3ClassCreate utility code in ObjectHandling.c.

I can't remember if I'd already looked at this, but the signature is kind of similar to __build_class__, so I feel like I was kind of blind at that time … I'm looking at it right now, and indeed, if we insert an equivalent of CPython update_bases, it could do the job.
I will try to do it this weekend (but I don't promise anything, cause I find the quite hard to get into the code and I haven't find the documentation I need — for instance, looking for a simple way to copy a tuple, have to juggle between Cython and CPython code to come up with PyObject *orig_bases = __Pyx_PyTuple_FromArray(((PyTupleObject*)bases)->ob_item, PyTuple_GET_SIZE(bases)) — I'm very new to CPython/Cython)

@wyfo Don't do PyObject *orig_bases = __Pyx_PyTuple_FromArray(((PyTupleObject*)bases)->ob_item, PyTuple_GET_SIZE(bases)) - we try to use the C API functions and avoid accessing semi-private details such as ob_item. That kind of detail tends to break compatibility with things like PyPy.
Is there a good reason you have to copy it? Under most circumstances tuples should be immutable so there's no advantage to a separate copy. If you really do have to copy it then it might be better to do PyTuple_New then a loop where you set elements.

If anyone can give me guidance on where exactly to start with this, I'd be more than happy to try and piece a fix together for this, since per #3794, this is one of the main reasons my project which has around 30kloc cannot be Cythonized on the current master version of Cython.
I haven't ever worked on this codebase though so I am not entirely sure on where I need to be looking for this.

@nekokatt As said above, this is most likely a change to the "Py3ClassCreate" utility code: https://github.com/cython/cython/blob/aa8b0d9b89030c0b9ace5698ae5131c623acefa4/Cython/Utility/ObjectHandling.c#L1034 (I've linked to the broad section). This C code is largely just copied into each generated Cython file.
We currently don't handle __mro_entries__ according to PEP-560 so it's largely a case of working out what stage that should be called at and calling it.
The change will then need some tests, which are probably best done by copying the cpython tests as much as possible. We already have the equivalent file but the MRO tests were omitted since they weren't yet supported.

and I'm getting:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "try_generic.py", line 18, in init try_generic
    print(Generic[T])
TypeError: 'type' object is not subscriptable
>>>

I have the issue with the latest versions (2.* and 3.*)..


NuPoSe

Uploading NuPoSeCom.mp4…

NuPoSe
https://github.com/user-attachments/assets/8eaf6693-9d38-407a-b45b-ef4d43b5779e


Permission system in 2.6.0

Logic Operators in Permission Keys
2.6.0 comes with a LogicOperatorPermissionService, which lets you use AND, OR operators in permission keys, e.g. ReadPermission("Northwind:General|Something:Else").
This means user will be able to access resource, if he has either of Northwind:General and Something:Else permissions.
You may also use & operator if needed. It means user must have both permissions listed. & can also be mixed with |, but in that case, & will take precedence, so it will be calculated first, than OR.
This is designed for simple use cases, please don't misuse it by listing a hundred of permissions. It would be a very bad design. Instead, define a new permission key that will be shared by all those other permissions.
To be able to use this feature, you need to use LogicOperatorPermissionService in SiteInitialization.cs. Replace line below with:
registrar.RegisterInstance<IPermissionService>(new Administration.PermissionService());

This one:
registrar.RegisterInstance<IPermissionService>(new LogicOperatorPermissionService(
    new Administration.PermissionService()));

These combination permission keys shouldn't be listed in permission dialog, so we need to do a few changes in UserPermissionRepository:
Find ProcessAttributes method
private void ProcessAttributes<TAttr>(HashSet<string> hash,
	  MemberInfo member, Func<TAttr, string> getPermission)
	where TAttr : Attribute
{
	{
		var permission = getPermission(attr);
		if (!permission.IsEmptyOrNull())
			hash.Add(permission);
	}
}

and replace with this one:
private static readonly string[] emptyPermissions = new string[0];
private static readonly char[] splitChar = new char[] { '|', '&' };

private string[] SplitPermissions(string permission)
{
	if (string.IsNullOrEmpty(permission))
		return emptyPermissions;

	return permission.Split(splitChar, StringSplitOptions.RemoveEmptyEntries);
}

private void ProcessAttributes<TAttr>(HashSet<string> hash,
		MemberInfo member, Func<TAttr, string> getPermission)
	where TAttr : Attribute
{
	foreach (var attr in member.GetCustomAttributes<TAttr>())
	{
		var permission = getPermission(attr);
		hash.AddRange(SplitPermissions(permission));
	}
}

Also a few lines below, find:
result.Add(attr.Permission);

replace with:
result.AddRange(SplitPermissions(attr.Permission));

Field Level Permissions
Another new feature, which was requested a few times, is field level permissions.
This lets you control read / insert / update permissions on field level.
Let's say we want only users with SomeSpecialPermission should be able to see ContactName field in CustomerRow:
[DisplayName("Contact Name"), Size(30), QuickSearch]
[ReadPermission("SomeSpecialPermission")]
public String ContactName
{
	get { return Fields.ContactName[this]; }
	set { Fields.ContactName[this] = value; }
}

Just add ReadPermission attribute, and this will hide ContactName column from rows, and forms for users who doesn't have SomeSpecialPermission.
You can also use ModifyPermission, InsertPermission, UpdatePermission, similar to row permissions, which will make field read only in relevant mode.
You may need to make a few changes, for admin to not get affected by these limitations in some special cases.
Open ScriptUserDefinition.cs and add a IsAdmin attribute:
[ScriptInclude]
public class ScriptUserDefinition
{
	public String Username { get; set; }
	public String DisplayName { get; set; }
	public Boolean IsAdmin { get; set; }
	public Dictionary<string, bool> Permissions { get; set; }
	public List<SiteRow> GrantedSites { get; set; }
}

And set it in GetUserData() method of UserEndpoint.cs:
[NonAction, DataScript("UserData", CacheDuration = -1)]
public ScriptUserDefinition GetUserData()
{
	//...
	result.Username = user.Username;
	result.IsAdmin = user.Username == "admin";
	//...
 }

Hi, @volkanceylan .
This is a great new feature. :-) Thank you!
But It raised one issue for me...
On previous versions, The ReadOnly attribute on form didn't affect the fields that were sent to endpoint/repository for saving/creating entity purposes.  As  I'm dealing with insurance/customers/vehicles/tickets and a third part software data... which results in 20 tables to query from... I was using the readonly enabled to not let user directly modify data in a field, but to choose from a select in a grid, values to be used from.
My question is... is there an easy workaround to let this old behaviour from fields set to ReadOnly in form, be sent to Endpoint/Repository?  I can look for an alternative to set the readonly property... but I thought I could ask first...
Thanks for your patient!
Bye!

It should be fixed in 2.6.1. Yes readonly fields was still sent to server side, as you might be filling them by doing some calculation on other fields. It was a bug introduced in 2.6.0.

Thanks @volkanceylan . It is fixed.
Best Regards

What's the difference between ModifyPermission and UpdatePermision?

Basicly.. ModifyPermission includes Insert and UpdatePermission
There's a wiki if you want to separate that.
https://github.com/volkanceylan/Serenity/wiki/Frequently-Asked-Questions
Best Regards

This is a nice feature and save a lot of effort for field level permission which we were doing earlier.
But this did not add permission in User Permission Dialog. I have to do it manually to show.
Is it possible to add this permission in User Permission Dialog automatically as it happens for Row class permission?

Yep it's possible, probably missed that detail, will later.

I've updated comment for showing field level permissions.

Thanks! It working fine after following updated comment.

Great job @volkanceylan...once again thanks for all your time and support!

So just for clarification, we still need to add the PermissionKeys in a file like PermissionKeys.cs and then parse it over to the json file right? That part is still the same?

Yes it is same

Found a potential issue with this. When using this in my RegistryRow.cs, I'm attempting to set the permissions using the PermissionKeys.cs. I'm presented with the following error:

Is there a way around this?

Its string addition not boolean or

I realized that after the fact and changed it to PermissionsKeys.Access + "|" + PermissionsKeys.NewHireFlag and it's working perfect. Thanks again for the new addition.