Sending data between device and a module running in EFLOW

A windows IOT enterprise (1809) device needs to have data processed by a module before upload to the cloud.  What are the options for getting that data to the module.

I have a Windows 10 IOT enterprise device (medical device).  We are looking to start managing these devices via IOT Hub and are coming up to speed and trying to uncover best practices.  We would like to be able to create modules for performing various activities.  One such activity is to collect certain data from the main os. (e.g. log files of different types)  In looking at EFLOW it seems that this is the future for IOT Edge running on a Windows 10 device.
I would like to understand how I pass these logfiles from teh Windows 10 OS where my software runs to control hardware etc to a module that will pre-process them before sending them up to the cloud
My initial going in was:
If I could collocate my log data on the Windows OS in a particular directory maybe I could mount this particular folder into my module's container and the module could periodically process and upload.  However with EFLOW, it looks like I would have to first mount the folder from windows into the EFLOW VM before it could then be bound or mounted to a module container.  In looking around I'm not sure this is supported?  (I can think of good reasons why it wouldn't be but I just want to be sure)
So this leads me to "module->device adn device->module" messaging, I'd either have to send from the device (and write some code that uses the DeviceClient SDK) and define messages (as I found in teh Windows-iot-samples) to ask for (or send) the log data periodically, for requirement based reasons I don't have to do this constantly so the data becomes "batchy" and fairly large.    but is this really the best/only approach?
We do have SQL Server installed in the Windows 10 os.  Are modules in EFLOW allowed to talk to that?
Thanks for helping me learn.. this stuff is all very cool

ok.. I've been reading more (and noticed issue #3 is a similar question that I have).   If I wanted to share modules and was willing to setup the internal networking properly on my Hyper-V to the EFLOW vm, what do you think of using something like IIS to serve files to modules.  I Don't think it makes sense to support WebDAV adn davfs2 in teh EFLOW vm... but I could build an HTTP client into my module to pull/push data to the host os.  It doesn't feel to elegant to me tbh.  But it's a thought.  (I'm getting some push back from team members on creating anykind of device agent to interop with modules).
Thanks!

Jay (@hooligan495),
I've been a little slow getting back to you due to a forthcoming change that we have coming in the Azure EFLOW implementation that will remove the ability to use Hyper-V Manager to configure the VM.  This architectural change will lay some groundwork for us to provide support for GPU inside the VM enabling AI/ML scenarios.

Would you be interested if we could provide the ability to share a folder on the Windows host with the Linux VM that you could access your log files directly from your module?
In addition to using the leaf device approach as explained by our samples on http://aka.ms/winiotsamples (soon to be moved over to this repository), it is also possible to use socket communication, but you would also need an agent to act as the sender and your module implemented as a listener.
IIS does sound like an alternative.
Have you thought about using the SQL Edge module with Azure EFLOW?

Terry Warwick
Microsoft

Hi Terry (@TerryWarwick),
Thanks for taking the time to respond!  I'd be interested in learning more about the GPU support you mention (Is there anywhere you talk about it? ).  Our Win 10 IOT Enterprise device has a very expensive graphics card in it.
I think we would be interested in the Share a folder approach for a couple of reasons.  Our device acquires some pretty dense medical imagery (sometimes 100s of GB) and being able to make these files avaialble to modules supports some of our longer term road map plans.    Of course the next question is, what is your timeline for the share a folder?  Days? Months? Quarters?  (I don't need an exact date more a general one)
I will look into SQL Edge to see how it works (I haven't yet).  Would it replace the SQL install we already have?  that'd be interesting.
THanks for responding!
All my best!
Jay


Physical Notes for Finals

Just want to clarify, just like the PAs, are we allowed to bring in our own physical notes for tomorrow's finals? As well as writing paper in case we need to pen down our thoughts or plan out our answers.

Hmm seems like it, at least according to this announcement

Yep it's allowed but just use them within the zoom frame i guess so it won't be sus

Ahhh ok thanks guys!!


App icon won't change

I have replaced the star icon with one of our own with properties of 32x32 pixels and .jpg. The icon in the app remains the star. I even removed it from the CMP Logo library, deleted the browser history, cleared all cache but it still shows the star. What am I doing wrong?

Update. Now one star icon is missing but the other is not and my logo is not in either spot. What I need, at the least, is that the logo right above the Welcome banner is updated to ours.

Hi @LisaJo48 ,
Can you please rename the image to AppLogo.jpg in the CMP Logo library? Please refer the specifications in the document -
https://github.com/OfficeDev/microsoft-teams-apps-champion-management/wiki/Solution-Overview#manage-app-logo
After renaming the image, please clear the cache and try again. Thanks!

NEVER caught that as I read the instructions over and over. Never crossed my mind to change the original's name and reuse it for the new one. So Sorry. Thanks!
So, is it correct that only one start icon has changed but not the others?

Hi @LisaJo48,
The Icon you pointed is coming from Teams App Store. So it cannot be changed from within the app. You will have to perform additional steps to change the icon in Teams store too:

Delete the app from "Manage Apps" section in "Teams Admin center". Note that this step will not make any changes to your Share Point site.
Download the below 3 files from the Teams Folder in GitHub Repo.

Replace the 2 image files with your own icons as per guidelines specified here.
Create a new ZIP file with the name "Champion Management Platform" with 3 files including 2 icons and manifest file. Note that the final zip package should contain only these 3 files without any nested folders.
Upload the publish the zip file from "Manage Apps" section in "Teams Admin Center"
Close browsers and reopen new browser after 5-10 mins to clear out cache.

Please let us know if you need more information.
Thanks.

Thank you but, before engaging on the next change, I have an interesting observation. In the TEAMS via browser (Edge), my newest icon is showing (a yellow logo with a black bar underneath it) where I would expect it to show but, the Star icon is not showing in the other two locations mentioned above. However, in TEAMS on desktop, it shows the previous icon I'd tested, instead of the newest one, and the Start icon does show in the other two locations.

I have cleared the browser cache (images and files), refreshed several times, closed/reopened, and rebooted my computer.

So far, no change.
However, doing the same steps in the Chrome browser, works as expected:

Firefox is also correct showing the Star icon in the two expected locations. I cannot test for Safari.
FYI: the Star icon was also in the Edge browser, as expected, until about 3am Wednesday. After that, it has looked like this. I made no changes other than upload a new image file and rename it, per instructions, to AppLogo.jpg

Hi @LisaJo48,
Most of the times it's due to cache issues. Teams client would usually take some time to sync in changes. Please let me know if you still the issue.
Thanks.

Thanks @v-saikirang. I'll keep an eye on it and re-open this if it reoccurs or doesn't refresh/fix on its own.


What's the difference between θcf and θ reg?

Hi,thank you for your contribution!I read your article recently.What's the difference between correlation filter θcf and bounding box regression filter θreg ?

Hi,"where (σx; σy) = (w/c; h/c)......."What does C mean here?No corresponding explanation can be found in the article...


TA Meeting - Add Hunter to the repo

Hi there,
Productive meeting the other day, can you please add me as a collaborator on the repo?
Thanks!
-Hunter

Requested you as a collaborator, lmk if further action is necessary. Closing issue for the interim.


Files 'disappearing'?

This is a question, and may not be an issue. I looked in the current issues and didn't see anything that stood out as the same/similar to what I'm asking.
I'm using Meteor-Files to download some zip files from a web site and then store them for processing in my application. Here is my Meteor.Files configuration:
this.Uploads = new Meteor.Files({
  debug: true,
  collectionName: 'Uploads',
  allowClientCode: false, // Disallow remove files from Client
  public: true,
  downloadRoute: 'public/surveys/wireless/zips/',
  storagePath: 'assets/app/zips/',
  onBeforeUpload: function (file) {
    // control file size and allowed file formats here
    if (file.size <= 1024*1024*20 && /zip|png|jpg|jpeg|mp3|mp4|mpeg/i.test(file.extension)) {
      return true;
    } else {
      return 'Please limit upload size to 20MB';
    }
  }
});

My app is working great. I have a separate collection that tells me where the zip files are located, by URI, so I use the load() method to grab the files and store them locally and all seems to be awesome. However, after I shutdown my app and come back to it the files that I downloaded disappear. I look in the storagePath when the app is running and everything looks great. After I shutdown/restart meteor they're all gone. Am I missing something? Do I need to do something differently to persist the files that I'm downloading/storing?

Same thing.

Where files is stored by default?: by default if config.storagePath isn't passed into Constructor it's equals to assets/app/uploads and relative to running script:

On development stage: yourDevAppDir/.meteor/local/build/programs/server, note: all files will be removed as soon as your application will rebuild or you run meteor reset. To keep you storage persistent use absolute path outside of your project folder, we recommend to use /data directory
On production: yourProdAppDir/programs/server

Sure, that's what I do!
const Collection = new FilesCollection({
    collectionName: 'Images',
    storagePath: 'data/images',
    parentDirPermissions: 0774,
    permissions: 0774,
    allowClientCode: false,
    debug: Meteor.isServer && process.env.NODE_ENV === 'development',
});

Except that, even if I specify data, the files are still written in ./.meteor/local/build/programs/server/data/images/ and are deleted when the app restarts (i.e. is rebuilt).
I have tried setting ./data/images/ but the behavior is unchanged.

@elewis33 and @yanickrochon
Exactly as it said in docs: all files will be removed as soon as your application will rebuild!.
Too avoid this behaviour use absolute path to your FileSystem. And outside of the Meteor  project directory
To do so - start your path in storagePath  with / (slash)
Do not forget to set proper permissions

Love the Walter meme! Thanks for answering. Do you want me to do a PR to fix the documentation here: https://github.com/VeliovGroup/Meteor-Files/wiki/Constructor? config.storagePath says nothing about this rule on that page.

Also, if you're going to remove the files as stated in the FAQ don't you think it would be a good idea to truncate the Mongo collection too, so things stay in sync? The fact that db.Uploads.find().count() was returning something (not zero) and the files were gone was a little perplexing.

Love the Walter meme! ... documentation and it says nothing about this.

:) This was reaction to path difference with and without leading /

Never actually saw that comment. ... Do you want me to do a PR

Yes, PRs is always welcome

if you're going to remove the files as stated in the FAQ..

Actually,  not I am nor MF-lib removing the files. The Meteor removes them upon rebuilding

.. truncate the Mongo collection too, so things stay in sync?

Can't do it as Meteor may change this behaviour (the way it rebuilds), then more thing may go wrong

@elewis33 glad you have solved it. Waiting for PR - to make docs better.
Please, support this project by:

Star on GitHub
Star on Atmosphere
Share on Facebook and Twitter

@dr-dimitru the fact that Meteor treats a leading slash as "the root of the project" and not the root of the FS makes it absurd for you to call "rules" when what you define is either improperly documented and inconsistent with Meteor's behavior.
 Especially since /data is not necessarily a good choice to store data in the file system; for example, /var/data would've been a better suggestion.

@yanickrochon
I'm saying what speaking of file system leading slash always means root of your machine's file system, in any programming language on any platform.
Yes, Meteor has it's own root for so-called Assets, that's it. In all other cases it's node.js and JavaScript, where FS root is your machine's file system root.
/data is given as example with leading slash, you're free to use any directory you're comfortable with.
About docs - it may be not perfect, if you're not satisfied with it - send PR, make it better.

I am trying to use Meter Files. I want to store my files on S3 bucket.
Problem which I am facing is : I am able to store video on directory, later it seams that it is uploading the file on S3 (which is not working) as it is not getting any error it is unlinking the video. So it deletes the video from the directory. This way I am loosing the data. Following is my code:
Server/videoupload.js
import { Meteor } from 'meteor/meteor';
import { _ } from 'meteor/underscore';
import { Random } from 'meteor/random';
import { FilesCollection } from 'meteor/ostrio:files';
import stream from 'stream';
import S3 from 'aws-sdk/clients/s3'; // http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html
// See fs-extra and graceful-fs NPM packages
// For better i/o performance
import fs from 'fs';
process.env.S3='{"s3":{"key": "xxx", "secret": "xxx", "bucket": "xxx", "region": "xxx""}}'
if (process.env.S3) {
Meteor.settings.s3 = JSON.parse(process.env.S3).s3;
}
// console.log(Meteor.settings.s3);
const s3Conf = Meteor.settings.s3 || {};
const bound = Meteor.bindEnvironment((callback) => {
return callback();
});
// Check settings existence in Meteor.settings
// This is the best practice for app security
if (s3Conf && s3Conf.key && s3Conf.secret && s3Conf.bucket && s3Conf.region) {
// Create a new S3 object
//s3Conf.secret,
//s3Conf.key,
//s3Conf.region,
const s3 = new S3({
secretAccessKey     : s3Conf.secret,
accessKeyId         : s3Conf.key,
region              : s3Conf.region,
// sslEnabled: true, // optional
httpOptions: {
timeout : 60000,
agent   : false
}
});
// console.log('s3: ', s3);
// Declare the Meteor file collection on the Server
export const BizVideo = new FilesCollection({
    debug: true, // Change to `true` for debugging
    storagePath: 'bizVideos',
    collectionName: 'bussVideo',
    // Disallow Client to execute remove, use the Meteor.method
    allowClientCode: false,
    chunkSize: 1024 * 1024,

    // Start moving files to AWS:S3
    // after fully received by the Meteor server
    onAfterUpload(fileRef) {
        // Run through each of the uploaded file
        // console.log("fileRef2: ", fileRef);
        _.each(fileRef.versions, (vRef, version) => {
            // We use Random.id() instead of real file's _id
            // to secure files from reverse engineering on the AWS client
            const filePath = 'files/' + (Random.id()) + '-' + version + '.' + fileRef.extension;
            console.log("filePath: ", filePath);

            // Create the AWS:S3 object.
            // Feel free to change the storage class from, see the documentation,
            // `STANDARD_IA` is the best deal for low access files.
            // Key is the file name we are creating on AWS:S3, so it will be like files/XXXXXXXXXXXXXXXXX-original.XXXX
            // Body is the file stream we are sending to AWS
            s3.putObject({
                // ServerSideEncryption: 'AES256', // Optional
                StorageClass : 'STANDARD_IA',
                Bucket       : s3Conf.bucket,         //s3Conf.bucket,
                Key          : filePath,
                Body         : fs.createReadStream(vRef.path),
                ContentType  : vRef.type,
            }, (error) => {
                // console.log("error: ", error);
                bound(() => {
                    if (error) {
                        console.error(error);
                    } else {
                        // Update FilesCollection with link to the file at AWS
                        const upd = { $set: {} };
                        upd['$set']['versions.' + version + '.meta.pipePath'] = filePath;
                        console.log("upd: ", upd);

                        this.collection.update({
                            _id: fileRef._id
                        }, upd, (updError) => {
                            if (updError) {
                                // console.log("updError: ", updError);
                                console.error(updError);
                            } else {
                                // Unlink original files from FS after successful upload to AWS:S3
                                console.log("unlink: ", fileRef._id);
                                this.unlink(this.collection.findOne(fileRef._id), version);
                            }
                        });
                    }
                });
            });
        });
    },

    // Intercept access to the file
    // And redirect request to AWS:S3
    interceptDownload(http, fileRef, version) {
        console.log('interceptDownload');
        let path;

        if (fileRef && fileRef.versions && fileRef.versions[version] && fileRef.versions[version].meta && fileRef.versions[version].meta.pipePath) {
            path = fileRef.versions[version].meta.pipePath;
        }

        if (path) {
            console.log('path ',path);
            // If file is successfully moved to AWS:S3
            // We will pipe request to AWS:S3
            // So, original link will stay always secure

            // To force ?play and ?download parameters
            // and to keep original file name, content-type,
            // content-disposition, chunked "streaming" and cache-control
            // we're using low-level .serve() method
            const opts = {
                Bucket: s3Conf.bucket,
                Key: path
            };

            if (http.request.headers.range) {
                const vRef  = fileRef.versions[version];
                let range   = _.clone(http.request.headers.range);
                const array = range.split(/bytes=([0-9]*)-([0-9]*)/);
                const start = parseInt(array[1]);
                let end = parseInt(array[2]);
                if (isNaN(end)) {
                    // Request data from AWS:S3 by small chunks
                    end = (start + this.chunkSize) - 1;
                    if (end >= vRef.size) {
                        end = vRef.size - 1;
                    }
                }
                opts.Range = `bytes=${start}-${end}`;
                http.request.headers.range = `bytes=${start}-${end}`;
            }

            const fileColl = this;
            s3.getObject(opts, function(error) {
                if (error) {
                    console.error(error);
                    if (!http.response.finished) {
                        http.response.end();
                    }
                } else {
                    console.log(getObject);
                    if (http.request.headers.range && this.httpResponse.headers['content-range']) {
                        // Set proper range header in according to what is returned from AWS:S3
                        http.request.headers.range = this.httpResponse.headers['content-range'].split('/')[0].replace('bytes ', 'bytes=');
                    }

                    const dataStream = new stream.PassThrough();
                    fileColl.serve(http, fileRef, fileRef.versions[version], version, dataStream);
                    dataStream.end(this.data.Body);
                }
            });

            return true;
        }
        // While file is not yet uploaded to AWS:S3
        // It will be served file from FS
        return false;
    }
});

// Intercept FilesCollection's remove method to remove file from AWS:S3
const _origRemove = BizVideo.remove;
BizVideo.remove = function(search) {
    const cursor = this.collection.find(search);
    cursor.forEach((fileRef) => {
        _.each(fileRef.versions, (vRef) => {
            if (vRef && vRef.meta && vRef.meta.pipePath) {
                // Remove the object from AWS:S3 first, then we will call the original FilesCollection remove
                s3.deleteObject({
                    Bucket: s3Conf.bucket,
                    Key: vRef.meta.pipePath,
                }, (error) => {
                    bound(() => {
                        if (error) {
                            console.error(error);
                        }
                    });
                });
            }
        });
    });

    //remove original file from database
    _origRemove.call(this, search);
};

} else {
throw new Meteor.Error(401, 'Missing Meteor file settings');
}
client/videoupload.js
import { Meteor } from 'meteor/meteor';
import { FilesCollection } from 'meteor/ostrio:files';
export const BizVideo = new FilesCollection({
collectionName: 'bussVideo',
allowClientCode: false,
chunkSize: 1024 * 1024
});
file where I have implemented it:
import { ReactiveVar } from 'meteor/reactive-var';
import { Bert } from 'meteor/themeteorchef:bert';
import { BizVideo } from '/imports/videoUploadClient/videoUpload.js';
var uploader = new ReactiveVar();
Template.vendorImagesVideos.onCreated(function() {
this.currentUpload = new ReactiveVar(false);
this.subscribe('getBizVideo');
});
Template.vendorImagesVideos.helpers({
currentUpload: function() {
return Template.instance().currentUpload.get();
},
files: function() {
	var businessLink = FlowRouter.getParam('businessLink');
	var bussData = Business.findOne({"businessLink":businessLink});
	if(bussData){
        var data = BizVideo.find({"_id":bussData.businessVideo}).fetch();
        return data;
    }
},

}
Template.vendorImagesVideos.events({
'change #fileInput'(e, template) {
if (e.currentTarget.files && e.currentTarget.files[0]) {
var businessLink = FlowRouter.getParam('businessLink');
var bussData = Business.findOne({"businessLink":businessLink});
if(bussData.businessVideo){
Bert.alert('Only One can be upload','danger','growl-top-right');
}else{
	      // We upload only one file, in case
	      // multiple files were selected
	      const upload = BizVideo.insert({
	        file: e.currentTarget.files[0],
	        streams: 'dynamic',
	        chunkSize: 'dynamic'
	      }, false);

	      upload.on('start', function () {
	        template.currentUpload.set(this);
	      });

	      upload.on('end', function (error, fileObj) {
	        if (error) {
	          alert('Error during upload: ' + error);
	        } else {
	          alert('File "' + fileObj._id + '" successfully uploaded');
	          	Meteor.call("updateVendorBulkVideo", businessLink,fileObj._id,
		          function(error, result) {
		              if(error) {
		                  console.log ('Error Message: ' +error );
		              }else{
							  // process.exit();
		              }
		        });
	        }
	        template.currentUpload.set(false);
	      });

	      upload.start();
	    }
    }
},

}
Server/main.js
import { BizVideo } from '/imports/videoUploadserver/videoUpload.js';
Meteor.publish('getBizVideo', function() {
return BizVideo.find().cursor;
});
I am able to see the video till the time it is in director.
Please let me know where I am going wrong. Thanks in advance.


Add slim player model rendering

Renders slim player models correctly
Renders slim skins as 14x32 instead of 16x32
Adds X-Crafthead-Skin-Model header, contains value "slim" or "default"
Refactors some variables and functions in service.ts for clarity

I did end up rendering slim skins as 14x32 as opposed to both slim and default as 16x32 because I think it looks better. If you want to give people options I guess you could add a query tag for padding the sides but I don't think it's necessary.


:lady_beetle: Providers and Mappings have different spacing for top update button

The "update" button in hooks, mappings and credentials have slightly different design
Issue:
hooks is missing help text
plan is "as designed"
credentials have double spacing under the help text
Fix:
Add help text to the hooks
Fix the spacing in credentials
plan hooks:

plan mappings:

provider credentials:

addressed by #1020


add support for k8s v1.12.0-rc.1

What this PR does / why we need it:
See https://github.com/kubernetes/kubernetes/releases/tag/v1.12.0-rc.1
TODO:

[ ] upload Windows binary

If applicable:

[ ] documentation
[ ] unit tests
[ ] tested backward compatibility (ie. deploy with previous version, upgrade with this branch)

Release note:
add support for Kubernetes 1.12.0-rc.1

/lgtm


should be able to move autogenerated default view

hass 0.51.1
Right now, you get two options: 1) have the autogenerated default view as the first view when you open the web UI; or 2) get rid of it entirely with your own default view.
I'd like a third option: keep autogenerated default view, but choose where I put it.  It's very useful having everything accessible -- it's just not useful as the first view someone sees.  Right now I have to choose between one or the other.  Either moving it, or having a way in the UI to always show the autogenerated view would be helpful.

Another way of achieving the same thing would be the ability to add entities to groups via glob -- I could just make an "all entities" view using entities: * and do whatever I'd like with it. (More complex, as it would require dynamic updates as entities come into existance/disappear, but still..)

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum


Can't style/format links of bibliography

E.g.
#show link: set text(fill: blue, font: "Iosevka")
#bibliography("something.bib")

This won't change the style of entries' URL links.

Fixed.


Navigate between different testcases

Hi Team,
Please tell me how can i  navigate or go between the testcase, from Cases 1 to Cases 2 and to Cases 3 of the testcase Result.
Please help me with it
Attached a screenshot of it

Thanks,

Press their corresponding number between parentheses. For example to open test case Case(2) just press 2 on your keyboard.


NUI-506 display custom worker urls

Description
Display custom worker urls in the UI if in the context of an aio app.
Fixes # https://jira.corp.adobe.com/browse/NUI-506
(added a few unit tests in /server. There is a ticket in the next sprint to add unit tests to both client and server)
If it is not an aio formatted custom worker (or it is not a custom worker), we will not display the worker url. To check this, I just run the command:
aio app get-url -j

but this is a bit slow. Maybe I can just check if there is a manifest.yml? Any ideas?
Types of changes

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

@jdelbick

We can technically run the aio app get-url -j "inline" in the cli plugin. Here is how it's done for building the zip: https://github.com/adobe/aio-cli-plugin-asset-compute/blob/master/src/base-command.js#L81
Note it might need some work to get the stdout output back (the urls)...

However it has to be done in the devtool command implementation over in the cli plugin, and then passed through via api into the devtool library here.
Also we need to be aware that if we switch to a devDependency instead of a cli plugin this will actually have to call aio as child process.

Another option might be to depend on the @adobe/aio-app-scripts library implementing the url logic: https://github.com/adobe/aio-app-scripts/blob/master/scripts/get.url.js
But this can get out of date (say it changes in a newer aio version, and the user updates to that aio version, but our plugin is not updated with that new version). Also, I heard that aio wants to refactor the adobe/aio-app-scripts part sometime soon, so not the best part to depend on (we should confirm though).

Last but not least we could build the url ourselves, the pattern should be fairly stable at some point... but similar concerns like in 2 in case that pattern does change (for newer actions at least).

@alexkli
The reason I put the call inside the devtool is because we are still actively discussing the aio plugin being a devDependency vs  a cli plugin. I wanted to find a way to implement this without relying/waiting on decisions about the plugin.
I think 2 and 3 are unstable options since they change in the future. Btw, here is the code where they create the URL
However, I think it still makes the most sense long term to do the command inside the cli plugin devtool command (1).
IIUC, the implementation would look like this:

run command inside devtool command in aio cli plugin asset compute
pass result to backend server of the devtool on start up(same way we pass devtooltoken to the server)
pass result to client via api call on componentDidMount immediately after page render (same as current implementation)

WDYT?

@alexkli the other option is to wait to do (1) until we have the plugin figured out/stable, and merge these changes as is. wdyt?

@jdelbick I think the easiest option for now is actually 3. does not involve extra work like passing around through APIs across different modules and you just need this line: https://github.com/adobe/aio-app-scripts/blob/master/lib/utils.js#L354 (the other urls formats don't apply, one is for debugging, the other for Firefly UI stuff). could be put right into the UI code for now.
We can ask aio what they would suggest and change that in a future update.
Just to minimize work left for the release...


Geo

Current dependencies on/for this PR:

master

PR #36   👈

This comment was auto-generated by Graphite.


Removed tick arrow within spinner slider + rounded handle

Fixes #5358
REVIEWER: @javierarce

friendly ping @javierarce :D

:+1: :+1: :+1:


Log spammed with "this may be the BTC payment"

I always thought the log entries regarding potential BTC payments are a bit spammy:
parseTransaction(block=254514, 2013-08-27 16:41:22 idx= 125); txid: c9c4350fbafa9b2e971c136a852c42adec9dd3ef0c997227d6996327c0607761
Exodus Fundraiser tx detected, tx c9c4350fbafa9b2e971c136a852c42adec9dd3ef0c997227d6996327c0607761 generated<PHONE_NUMBER>4
update_tally_map(1KZmDQGzGJWYmPP9X3b7TA9dY91KBXgaG4, 1=0x1, +21224580094, ttype=0): before=0, after=21224580094
update_tally_map(1KZmDQGzGJWYmPP9X3b7TA9dY91KBXgaG4, 2=0x2, +21224580094, ttype=0): before=0, after=21224580094
!! sender: 1KZmDQGzGJWYmPP9X3b7TA9dY91KBXgaG4 , receiver:
!! this may be the BTC payment for an offer !!

Or:
parseTransaction(block=254538, 2013-08-27 19:32:33 idx= 133); txid: f66fb3cd3d95ecaebcb071382644232b62cf6ed2fb448b2313635a690901e937
Exodus Fundraiser tx detected, tx f66fb3cd3d95ecaebcb071382644232b62cf6ed2fb448b2313635a690901e937 generated 27.55469940
update_tally_map(12cBdcNSBHwhJy4oLWzWne2qGu74PsbhTT, 1=0x1, +2755469940, ttype=0): before=0, after=2755469940
update_tally_map(12cBdcNSBHwhJy4oLWzWne2qGu74PsbhTT, 2=0x2, +2755469940, ttype=0): before=0, after=2755469940
!! sender: 12cBdcNSBHwhJy4oLWzWne2qGu74PsbhTT , receiver:
!! this may be the BTC payment for an offer !!
payment #0 12RN9bjsvj5YpVY2beG2J2zMtQxjQC19wr  0.03890000
DEx_payment(12RN9bjsvj5YpVY2beG2J2zMtQxjQC19wr, 12cBdcNSBHwhJy4oLWzWne2qGu74PsbhTT)
DEx_getAccept(12RN9bjsvj5YpVY2beG2J2zMtQxjQC19wr, 1, 12cBdcNSBHwhJy4oLWzWne2qGu74PsbhTT)
DEx_getAccept(12RN9bjsvj5YpVY2beG2J2zMtQxjQC19wr, 2, 12cBdcNSBHwhJy4oLWzWne2qGu74PsbhTT)

This path appears to be primarily taken in case of Exodus purchases, but also for non-Omni transactions with marker (rare though).
On a related note: when starting Omni Core on mainnet, and when restoring the data from persistence, over 9000 (!) log entries are written, due to the tally updates etc. For the latter I have no straight forward solution in mind (I dislike temporarily flipping the log categories..).
I don't consider this as target for 0.0.10, and there are probably a few other places where we should refine the logs, so let's not delay the release for it.

Just a quick note regarding startup and the tally updates when loading - I faced this too with the API connector & ended up putting in a bool bypassUpdateDB which is set to true when loading a state from persistence to avoid spamming POSTs to the connected API when restarting the daemon of reorging the chain.
I'm not convinced this is the best approach (but it was quick and easy hehe)

Hmm.. a similar approach like bypassUpdateDB could be to temporarily disable fPrintToConsole/fPrintToDebugLog, or alternatively add a new global flag to indicate the data retrieval from persistence, and then include the new flag in the places not to log.


Updata DataSourceMapper.java for missing "="

Should use "=" to combine the propertiy "security.mapping" and its value

Good catch!


[Not ready for review] Inject reachability checks for assertions

Description of changes:
Inject a reachability check for every assertion so that unreachable checks are reported as "UNREACHABLE" as opposed to "SUCCESS". The reachability checks are currently enabled by a new option, --assertion-reach-checks that is default off.
Resolved issues:
Resolves #637
Call-outs:

Testing:

How is this change tested?

Is this a refactor change?

Checklist

[ ] Each commit message has a non-empty body, explaining why the change was made
[ ] Methods or procedures are documented
[ ] Regression or unit tests are included, or existing tests cover the modified code
[ ] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Closing obsolete PR.


Robustness against various unexpected data formats

With these changes, it gets through the entire staging dump, which is where the most strange data probably is.

Solid - LGTM


Textnets not available for R version 3.6.1

Hi Chris,
You're textnets tutorial was very clear and, fortunately, exactly what I needed to explore my own dataset. However, I'm encountering a problem. When I try to install textnets, I get the follow message:
package ‘cbail/textnets’ is not available (for R version 3.6.1)
This has been true one one computer running different versions of R (inc. 3.4), and also true on two other computers that were all version 3.6. I've downloaded textnets and tried to install it from a local directory rather than a grab.
I'm afraid I'm not particularly savvy in this regard, but is there a version textnets is available for? Has something happened at the github end?
Thanks in advance,

rohan

Hi Rohan:
The package is not on CRAN, so you have to install it you using the install_github() command within the devtools package (this is described in our documentation). All the best!

Thank you very much for your prompt response. Somehow I simply wasn't following your instructions correctly, my bad!
Great package, very useful!

Hi Rohan, just chiming in here quickly. As Chris mentioned, unfortunately, textnets is not on CRAN yet and compatibility with different versions of R is limited. However, I just tried installing from github on my machine and did not encounter any issues. I am running R version 3.5.3 If you can can install that version of R on your machine, this code should allow you to install textnets:
install.packages("devtools")
library("devtools")
install_github("cbail/textnets")


Question: one rdpgw to many users

I may be missing something but is it possible to have a single rdpgw instance with multiple clients connecting, each to a specific RDP destination?
For example,
user1 -> <IP_ADDRESS>
user2 -> <IP_ADDRESS>
user3 -> <IP_ADDRESS>
...
In addition, the users and destination IPs will be dynamically added when virtual machines become available.
So there would be a requirement to effectively add/remove these mappings dynamically.
I have gotten this to work with a single rdpgw and single ubuntu instance but i'm having a hard time understanding if this use case is addressed and how to get started.
Great project btw!
Thanks!

The gateway can serve many clients and is bounded by CPU and network on the host. What you would like to accomplish is possible by specifying the "host" parameter (e.g. https://rdpgw/connect?host=<IP_ADDRESS>) when downloading the RDP file. The specified host then needs to be in the list of allowed hosts to connect to, which is static. This does not yet tie a session of a certain user to a particular host.
To accomplish that, per your example, you could list all possible hosts to connect to in the config file and jwt encrypt the host parameter per querytokensigningkey  and same issuer. This last bit requires some work on your side by creating a web page or something that creates the link with the encrypted host query parameter.

Thanks for the info! I'll give it a try; this should work for me.

I have a similar feature request, how do I set the querytokensigningkey parameter (when I put it in the rdpgw.yml file, I get an error and can't start the container ). Is there a successful example of this?


For joining openAOD organization

name: @Ash-KODES
I am very interested in this organization.
Thanks.

Welcome to openAOD, sorry for the delay in replying! I have sent an invite to join our organization. We also recommend joining our Discord server : https://discord.gg/wZ83xSJSsN. If you have any questions regarding contributing or anything else feel free to write here or ping me on Discord. Cheers. Have a great day ahead of you!


remove JSON parsing as graylog now supports it fully

remove json parsing from SystemdJournal2Gelf - let users configure this themselves as a pipeline. Steps to recreate this as a custom pipeline:

Go to /system/pipelines in your graylog install and create a new pipeline

Edit the new pipeline and add a stage:

In the first stage, add a rule to interpret the message as json:

rule "interpret message as JSON"
when
    has_field("message") && starts_with(to_string($message.message), "{\"")
then
    let json = parse_json(to_string($message.message));
    let map = to_map(json);
    set_fields(map);

    rename_field("Message", "message");
    rename_field("FullMessage", "full_message");
end

you can prefix additional stages to cleanup your message eg. when receiving messages from php-fpm:

rule "strip fpm pool prefix"
when
  has_field("message") && starts_with(to_string($message.message), "pool ")
then
  set_field("message", regex_replace("^pool [a-zA-Z_\\[\\d\\]]+: ", to_string($message.message), ""));
end

attach the pipeline to the appropriate stream(s). Make sure the Pipeline Processor is configured after Message Filter Chain in system/configurations

Hi @SjonHortensius just found this by accident.
I think the README.md requires updating, so people don't expect this JSON parsing to happen automatically.

@hmmmsausages you're right - I've updated the README.MD


Feat/add abilities

Closes #21

:tada: This PR is included in version 1.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Safari is weird with animations that have a slider....

It seems there are some weird things that happen to the animations with the slider. I don't know if it's due to the slider or just having a control at all (as I only have used slider). All the other animations in the module are fine, the cylinders, the arrows, etc, without any controls.
Safari Version 9.1.2 (11601.7.7)
Here are some examples:
Cylinder extend color glitchy (cylinder streaking)

Flow arrow streaks

Slider streaks

Update: The issues change with the browser width, and as a smaller width fixed those animations, it caused streaks on a pump in a looping schematic animation. Different widths seem to cause different problems...

This is due to Safari not properly clearing its buffers. Pretty much all graphical systems (Mac OS, Safari, Chrome, video games, Windows, Android, CSS, etc) will have this happen from time to time. Nothing we can do.


[feature request] full url output plus final structure report

Hey there,
thanks for maintaining this awesome tool.
I've switched from other tools to this one a while ago and every update it gets better and better.
I'd like to add a feature request if I may.
For me it's a common thing to run ffuf recursive for hours in order to find interesting things. Task that proven to be very helpful.
By the end of the task, a plain text log with full url paths:
http://url/sub/dir/here/views/something.js
http://url/something.js
http://url/sub2/here/something.js
This is very useful.
Would that be possible?
Thanks

I've just forked the project and I'll build it on my one.
This and the other feature I've requested (https://github.com/ffuf/ffuf/issues/458)
Thanks


Test Mac0 against other/external examples and test cases

The Mac0 implementation only has tests against itself -- that it can validate what it computes. This is a convenient and necessary test, but there should be others against the output from other implementations of collections of know good examples (COSE_Sign1 is tested like this).
Some are available here: https://github.com/cose-wg/Examples/tree/master/mac0-tests

I put together a new Mac0 test case based on your recommendation and the cwt test in sign_verify.c, but it still has some issues.
It's WIP.

I've updated the PR:

Fixing Mac0 implementation
New test case to verify the implementation against a know good example (CWT was abandoned - alg. not supported currently)


Update stateless_apps.md

@CathPag I've tried to simplify the the definition of stateless application, kindly review it. :)

@JatinNarang1, as mentioned in the issue, we want to mirror the stateful definition . Have a look at horizontal and vertical scaling. See how they work well together? The reasoning is that people will likely read both together and they should work as a "couple." Does that make sense?

@JatinNarang1, since we haven't heard from you, I'll close this PR and open it up for other people to work on it


No RPC Url available for chainId: 42161 using walletconnect

Using walletconnect on arbitrum causing errors: No RPC Url available for chainId: 42161.
Context (in discord help channel): https://discord.com/channels/925416137225830450/925428183707287602/1013506343828725780

I will work on this one

Closed with #395


Units of measurements

Hi,
I would like to ask you what units of measurement are used in these environments as I haven't found anything in the documentation;
in particular, I would like to know the unit of measurement used for Young's modulus.
Thanks
Francesco

Hi @PiccioFra,
that depends on the environment. Most environments are in mm/kg/s.
But for example the tissue retraction environment is in m/kg/s.
https://github.com/ScheiklP/sofa_env/blob/main/sofa_env/scenes/tissue_retraction/scene_description.py#L235
Cheers,
Paul


error when starting match

getting this error when starting a match
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".layout-board.board"}

has the match already started when you ran the script?
Thanks

Upon further investigation, it would appear that this error only occurs during live matches. This bot is not designed for live matches and only serves as a proof of concept for matches against the computer strictly. Hence, issue closed.

Upon further investigation, it would appear that this error only occurs during live matches. This bot is not designed for live matches and only serves as a proof of concept for matches against the computer strictly. Hence, issue closed.


Embedding twitter conversations

So when I try to paste the embed code I get from twitter, haxcms sanitize the code and it is not stylized as a twitter embed, it reverts to basic blockquote styling.

can you paste the embed code here in ``` so that we can look at it. This is a common issue (services that ask you to load JS on your site in order to work) but one we can't do a ton about (from a security perspective) unless we make components that handle it.
There aint no way <script> tags are touching the DOM without heavy vetting or other methods of trying to account for it explored first.

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Looking for the talk Mark mentioned in Think Like a Hacker episode 48? Here it is! Stephen Rees-Carter shows you how hackers get into vulnerable WordPress websites. You can find episode 48 on your favorite podcast app; search for "Think Like a Hacker."<a href="https://t.co/USD9pzhyPD">https://t.co/USD9pzhyPD</a></p>— Wordfence (@wordfence) <a href="https://twitter.com/wordfence/status/1179544336633094144?ref_src=twsrc%5Etfw">October 2, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

I think this will work if we make something that includes the twitter reference directly in another area of the document but I'm not positive. We could also make a VERY specific whitelist for this but that'd be brittle

<blockquote class="twitter-tweet" data-lang="en" data-theme="dark" data-link-color="#981CEB"><p lang="en" dir="ltr">You rock Tom. Go forth and build. Stay spicy :P</p>— heyMP (@hey__MP) <a href="https://twitter.com/hey__MP/status/1009385642290270210?ref_src=twsrc%5Etfw">June 20, 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
This was the tweet I wanted to embed. it basically stripped everything out aside from some text.

can you paste the embed code here in ``` so that we can look at it. This is a common issue (services that ask you to load JS on your site in order to work) but one we can't do a ton about (from a security perspective) unless we make components that handle it.
There aint no way
This was the tweet I wanted to embed. it basically stripped everything out aside from some text.

Looking for the talk Mark mentioned in Think Like a Hacker episode 48? Here it is! Stephen Rees-Carter shows you how hackers get into vulnerable WordPress websites. You can find episode 48 on your favorite podcast app; search for "Think Like a Hacker."https://t.co/USD9pzhyPD

— Wordfence (@wordfence) October 2, 2019

This is what the test embed code from above looked like


Could not find module

I get this error message:
ERROR Error: Could not find module 'tns-core-modules/ui/core/properties'. Computed path '/Users/franlaz/Library/Developer/CoreSimulator/Devices/08887377-2ACB-4849-8A10-32408FDA49BC/data/Containers/Bundle/Application/94249FAC-5A35-43CB-BE26-8B230726DF6F/Utile.app/app/tns_modules/tns-core-modules/ui/core/properties'.
Jul  4 14:37:54 MacBook-Air-de-Marco com.apple.CoreSimulator.SimDevice.08887377-2ACB-4849-8A10-32408FDA49BC.launchd_sim[10865] (UIKitApplication:com.rsk.Utile[0x3af5][14283]): Service exited due to signal: Segmentation fault: 11

Then Nativescript is not properly installed - 'tns-core-modules/ui/core/properties is part of their package.  Maybe try removing your node_modules and platform folders, and reinstalling.


Update .gitignore

Hey, good catch. I'm more than a little annoyed that I didn't get notified about this pull requests.
Fell free to bug me in the future. I'm VERY open to all feedback.


Tbox 73 cloud transfer

↪ Pull Request

✔ PR Todo

[ ] Add documentation
[ ] Add examples
[ ] Ensure you are following the practices in the contributor guide and coding_standards

Use consistent and descriptive name conventions
Uses google-style docstrings
Uses versioned API/client methods only
Avoid global variables
Avoid giant try/catch
Don't use mutable default variables
Use a main() function in your scripts

[ ] Added/updated testing for this change (ensure you are testing any changes/new code!)
[ ] Update title to link to TBOX issue (i.e. start pull request title with TBOX-xx)
[ ] Approval from first code-reviewer
[ ] Approval from second code-reviewer (only required if a second reviewer has left comments)
[ ] Pass all checks

Hi we had a docs bug that was blocking the tests from passing, can you merge in develop to your PR. It will allow the tests to pass. Thanks!

@jun-dao What would you recommend for testing google & AWS uploading/downloading? Thank you.

For now, I'm just looking into the boto3 and botocore libraries. Im not sure whether to try and use moto for mocking because it is not a tamr dependency.

@ycharm  Im getting an issue with asserting that a temp file is a tarfile. Any recommendations for getting around this?
Is there anything else I should add to the test?

@ycharm I'm realizing that the test would not work through trying to unit test mock it. The mock does not return anything so asserting is impossible on an empty temp file.
I've still been unable to find any alternative default credentials or mocking for GCP, but have an idea for testing.
testing tarring could be done by adding an optional return to the cloud_upload function (returns file about to be uploaded).
Is this a viable option for testing?

@DIvkov575 I don't see anything in our guidelines that suggests we shouldn't have the optional return. Especially if you need it for testing. @clint-richardson check out the question please.

Hi It looks like the tarring is causing tests to fail. I'll see if I can find a non-local/mock-api test for it and also will try to test your functions out.

@ycharm  sorry bout the slow reply. I'm trying out a mock I made for the untarring of the test right now. It seems to be working for the most part.

Since this functionality is about moving file between a local filesystem and cloud storage, and not for data movement into and out of Tamr, it would be more appropriate for the cloud module to be under the top-level filesystem module, rather than data_io (which is specifically for ingesting/exporting Tamr data).

@skalish are there any other changes that I should make?

After you resolve the one accidental import removal, this is good to go. I also asked a question about the need for the google package. If you can follow-up on that it would be nice to confirm whether it is necessary, but that isn't absolutely needed. I'll approve as soon as I can once these last changes are made.

I think that the google import / install is necessary because inorder to use the google-cloud-storage client you need to import it with from google.cloud import storage and without google installed it wont be able to find where to import from

We shouldn't spend more time digging in on the google package question. It will be very easy to remove if needed in the future.  This all looks good to me!  Thanks for all of the work you've put it on this.
Let me know if you'd like me to click to merge this in for you when you're ready.

@skalish yes, could you merge this. I don't have a merge button.


adding nutanix upgrade rollout strategy

Issue #, if available:
https://github.com/aws/eks-anywhere/issues/6719
Description of changes:
Adding UpgradeRolloutStrategy knobs for workers and control plane to nutanix provider
Testing (if applicable):
Updated unit tests.
Documentation added/planned (if applicable):
Planning on adding docs on knobs for other providers following the Tinkerbell upgrade strategy format.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


Add Resharper Thanks

Need to add the resharper/jetbrains logo to the readme and thank them for the license for the next release.

Closing stale issues to focus on ones with end-user activity.


shouldFocusAfterRender doesn't function with custom modal CSS classes

Summary:
When using custom CSS classes for the modal, the shouldFocusAfterRender property boolean has no discernible effect on the modal: it is always focused on render.
Steps to reproduce:

Open custom CSS example: https://codepen.io/claydiffrient/pen/KNjVrG
Add property to ReactModal component: shouldFocusAfterRender={false}
Click "Trigger Modal" button

Expected behavior:
I expect the modal to be unfocused on render when the shouldFocusAfterRender property is set to false.
Link to example of issue:
Example following the steps to reproduce above: https://codepen.io/SeanMcP/pen/pLNYeR
Additional notes:
After further investigation, the problem seems to apply to any use of shouldFocusAfterRender and not just instances where custom CSS classes are used. I am happy to update this issue to reflect that, but I am primarily concerned with custom styles.

Hey, @SeanMcP. Looks like you're examples are using a fairly old version of ReactModal (v1.6.2). The shouldFocusAfterRender prop was not added to this library until v2.3.1. Is it possible for you to upgrade your app's version of this library?

That was indeed the case. Our project is using "^3.3.2" and shouldFocusAfterRender worked as expected.
Might I suggest updating the packages in your CodePen examples to reflect latest features?


Add tuner app

Project URL

https://github.com/billthefarmer/ctuner
Category

Audio
Description

I have added an entry for my Tuner app. Note there are five versions of this app, four in this repository – windows, linux, old macOS using C, new macOS using Swift. The README for the Swift version is in https://github.com/billthefarmer/ctuner/tree/master/swift. And an android version https://github.com/billthefarmer/tuner.
Why it should be included to Awesome macOS open source applications  (optional)
You don't appear to have a macOS tuner app. I also have macOS signal generator and oscilloscope apps which I will add.
Checklist

[ x ] Edit applications.json instead of README.md.
 NB: Don't edit JSON files by hand.

@billthefarmer Thank you! 👍


ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.

I wrote the code provided by the author to a file  and  named 'annotate_meself.py' with meself :
from groundingdino.util.inference import load_model, load_image, predict, annotate
import cv2
model = load_model("GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py", "./groundingdino_swint_ogc.pth")
IMAGE_PATH = "assets/demo1.jpg"
TEXT_PROMPT = "bear."
BOX_TRESHOLD = 0.35
TEXT_TRESHOLD = 0.25
image_source, image = load_image(IMAGE_PATH)
boxes, logits, phrases = predict(
model=model,
image=image,
caption=TEXT_PROMPT,
box_threshold=BOX_TRESHOLD,
text_threshold=TEXT_TRESHOLD
)
annotated_frame = annotate(image_source=image_source, boxes=boxes, logits=logits, phrases=phrases)
cv2.imwrite("annotated_image.jpg", annotated_frame)
When I run the code,I encountered the following error：
/home/zhaozihao/anaconda3/envs/Grounded-SAM/lib/python3.8/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at  ../aten/src/ATen/native/TensorShape.cpp:2895.)
return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
final text_encoder_type: bert-base-uncased
Traceback (most recent call last):
File "annotate_meself.py", line 4, in
model = load_model("/home/zhaozihao/FF003/Grounded-SAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py", "/home/zhaozihao/FF003/Grounded-SAM/Grounded-Segment-Anything/groundingdino_swint_ogc.pth")
File "/home/zhaozihao/FF003/Grounded-SAM/Grounded-Segment-Anything-main/GroundingDINO/groundingdino/util/inference.py", line 31, in load_model
model = build_model(args)
File "/home/zhaozihao/FF003/Grounded-SAM/Grounded-Segment-Anything-main/GroundingDINO/groundingdino/models/init.py", line 17, in build_model
model = build_func(args)
File "/home/zhaozihao/FF003/Grounded-SAM/Grounded-Segment-Anything-main/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 372, in build_groundingdino
model = GroundingDINO(
File "/home/zhaozihao/FF003/Grounded-SAM/Grounded-Segment-Anything-main/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 107, in init
self.tokenizer = get_tokenlizer.get_tokenlizer(text_encoder_type)
File "/home/zhaozihao/FF003/Grounded-SAM/Grounded-Segment-Anything-main/GroundingDINO/groundingdino/util/get_tokenlizer.py", line 17, in get_tokenlizer
tokenizer = AutoTokenizer.from_pretrained(text_encoder_type)
File "/home/zhaozihao/anaconda3/envs/Grounded-SAM/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 470, in from_pretrained
config = AutoConfig.from_pretrained(
File "/home/zhaozihao/anaconda3/envs/Grounded-SAM/lib/python3.8/site-packages/transformers/models/auto/configuration_auto.py", line 612, in from_pretrained
config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/home/zhaozihao/anaconda3/envs/Grounded-SAM/lib/python3.8/site-packages/transformers/configuration_utils.py", line 537, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/home/zhaozihao/anaconda3/envs/Grounded-SAM/lib/python3.8/site-packages/transformers/configuration_utils.py", line 585, in _get_config_dict
resolved_config_file = cached_path(
File "/home/zhaozihao/anaconda3/envs/Grounded-SAM/lib/python3.8/site-packages/transformers/file_utils.py", line 1846, in cached_path
output_path = get_from_cache(
File "/home/zhaozihao/anaconda3/envs/Grounded-SAM/lib/python3.8/site-packages/transformers/file_utils.py", line 2102, in get_from_cache
raise ValueError(
ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.
Who can tell me the reson why?  And how to resolve it?  Thanks

ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.

It seems like there're some errors when connecting to huggingface transformers, maybe you can try it later or try to run the model locally, here're some tips: https://github.com/IDEA-Research/Grounded-Segment-Anything/issues/286#issuecomment-1569531029

ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.

It seems like there're some errors when connecting to huggingface transformers, maybe you can try it later or try to run the model locally, here're some tips: #286 (comment)

Good job !  Thanks.
I successfully ran the demo and was amazed at the project.


Add EnzymeCore

The idea is to have a place where we can put the type declaration such that people
can define their own rules without depending fully on Enzyme.

Codecov Report
Base: 74.86% // Head: 71.04% // Decreases project coverage by -3.81% :warning:

Coverage data is based on head (b8d735e) compared to base (76c7b08).
Patch has no changes to coverable lines.

:exclamation: Current head b8d735e differs from pull request most recent head 0573240. Consider uploading reports for the commit 0573240 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #498      +/-   ##
==========================================
- Coverage   74.86%   71.04%   -3.82%
==========================================
  Files          17       17
  Lines        5390     5318      -72
==========================================
- Hits         4035     3778     -257
- Misses       1355     1540     +185

Impacted Files
Coverage Δ

src/Enzyme.jl
87.16% <ø> (+1.85%)
:arrow_up:

src/compiler/orcv1.jl
0.00% <0.00%> (-80.77%)
:arrow_down:

src/compiler/utils.jl
56.16% <0.00%> (-39.73%)
:arrow_down:

src/compiler/interpreter.jl
58.33% <0.00%> (-33.34%)
:arrow_down:

src/compiler/optimize.jl
68.42% <0.00%> (-11.41%)
:arrow_down:

src/compiler/orcv2.jl
66.32% <0.00%> (-6.06%)
:arrow_down:

src/compiler/validation.jl
56.11% <0.00%> (-5.96%)
:arrow_down:

src/api.jl
56.02% <0.00%> (-3.67%)
:arrow_down:

src/compiler.jl
72.29% <0.00%> (-1.63%)
:arrow_down:

src/typetree.jl
87.30% <0.00%> (-1.59%)
:arrow_down:

... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


change title font styling

Change weight to 300, size to 3.6rem
Anything below H1 doesn't need a line

This should be altered as requested now.


Add -fno-delete-null-pointer-checks

I didn't have the dates when GCC and clang added this, so I left that information blank. If anyone has that information that'd be great.
Another flag we should probably add is -fno-strict-overflow; see Wang, Xi, et al., Undefined Behavior: What Happened to My Code?, APSys ‘12, 2012, ACM, https://pdos.csail.mit.edu/papers/ub:apsys12.pdf. But I think that's better handled as a separate pull request, and it would be similar to this one, so let's work on this first & once it's resolved do something similar.

@ran-dall @gkunz - thoughts about adding this?

I didn't have the dates when GCC and clang added this, so I left that information blank. If anyone has that information that'd be great.

I did a bit of digging:
It seems to have lived in gcc since https://github.com/gcc-mirror/gcc/commit/b6d24183dfb4a8194e3b0357ce44723735ad0da1 (code) under the name delete-null-pointer-checks
Before that flag existed it was (briefly) turned on by optimize
The deletion itself was added here https://github.com/gcc-mirror/gcc/commit/dfdb644f4ff71f04c78e307035d81c3fac0a18b6
I think it's safe to say it was in gcc 3.0
λ cd ./gcc-3.0
λ rg "delete_null_pointer_checks"
gcc/ChangeLog
3255:	* gcse.c (delete_null_pointer_checks_1): Add delete_list argument,
3257:	(delete_null_pointer_checks): Delete insns from delete_list after
3258:	all delete_null_pointer_checks_1 passes are done.

gcc/ChangeLog.3
2461:	* gcse.c (delete_null_pointer_checks): Likewise.
4459:	* gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
7067:	(delete_null_pointer_checks): Mark arg F as unused.
7692:	(delete_null_pointer_checks): Likewise.
9067:	(delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
14451:	(delete_null_pointer_checks): Likewise.
16056:	* gcse.c (delete_null_pointer_checks_1): Cope when

gcc/ChangeLog.1
7568:	get_condition() which is used in delete_null_pointer_checks().

gcc/ChangeLog.4
12168:	(delete_null_pointer_checks_1): Likewise.

gcc/ChangeLog.2
2595:	* gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
2597:	(delete_null_pointer_checks_1): No longer need to compute the
2732:	(delete_null_pointer_checks_1): Use compute_available.
3212:	(delete_null_pointer_checks_1): New function.
3213:	(delete_null_pointer_checks): Use it.
3978:	* gcse.c (delete_null_pointer_checks): Fix typo in previous change.
4028:	* gcse.c (delete_null_pointer_checks): Only record non-null info
4086:	(delete_null_pointer_checks): Likewise.
5558:	* gcse.c (delete_null_pointer_checks): Returns void.
5688:	(delete_null_pointer_checks): Likewise.
6633:	* toplev.c (flag_delete_null_pointer_checks): New.
6636:	elimination on flag_delete_null_pointer_checks.
7038:	(delete_null_pointer_checks): Likewise.
7039:	* rtl.h (delete_null_pointer_checks): Declare.
7040:	* toplev.c (rest_of_compilation): Call delete_null_pointer_checks.

gcc/gcse.c
631:static void delete_null_pointer_checks_1 PARAMS ((varray_type *, unsigned int *,
4984:delete_null_pointer_checks_1 (delete_list, block_reg, nonnull_avin,
5155:delete_null_pointer_checks (f)
5234:      delete_null_pointer_checks_1 (&delete_list, block_reg, nonnull_avin,

gcc/rtl.h
1873:extern void delete_null_pointer_checks	PARAMS ((rtx));

gcc/toplev.c
660:static int flag_delete_null_pointer_checks;
1043:  {"delete-null-pointer-checks", &flag_delete_null_pointer_checks, 1,
2996:      /* ??? Run if-conversion before delete_null_pointer_checks,
3005:      if (flag_delete_null_pointer_checks)
3006:	delete_null_pointer_checks (insns);
3059:      if (flag_delete_null_pointer_checks)
3066:	  delete_null_pointer_checks (insns);
4774:      flag_delete_null_pointer_checks = 1;

I found a reference to it in gcc 2.95.1 but only in the changelog
λ cd gcc-2.95.1
λ rg "delete_null_pointer_checks"
gcc/ChangeLog
8726:	get_condition() which is used in delete_null_pointer_checks().

Based on the implementation commit being marked 1999-09-20 and gcc 2.95.1 being released 1999-08-19 I'm guessing there was some patch that made it in earlier than the other
λ git branch
* (HEAD detached at 3cdbd1f8ac)
  master
λ rg "delete_null_pointer_checks"
gcc/ChangeLog
4:	get_condition() which is used in delete_null_pointer_checks().

https://github.com/gcc-mirror/gcc/commit/3cdbd1f8ac98649ab5eaba2d9d065653e8a4820d

06kellyjac thanks, I added "GCC 3.0" per your research. I don't have clang information, but I think we can add this as-is and add that added information later.

For clang it looks like it was added in 7.0.0
https://github.com/llvm/llvm-project/commit/da08f6ac16b6a53ab25ecb56e1be800c5f0095d9
This commit also has a nice link to a Linus Torvalds email we might want to reference https://lkml.org/lkml/2018/4/4/601

... we had buggy code that accessed a pointer
before the NULL pointer check, but the bug was "benign" as long as the
compiler didn't actually remove the check.
...
Removing the NULL pointer check turned a benign bug into a trivially
exploitable one by just mapping user space data at NULL ...

https://github.com/llvm/llvm-project/blob/llvmorg-7.0.0/clang/include/clang/Driver/Options.td#L1086-L1088
before that it has delete-null-pointer-checks which you might be able to force off but that digging will take a lot more effort
https://github.com/llvm/llvm-project/blob/llvmorg-6.0.1/clang/include/clang/Driver/Options.td#L2650-L2651

Lots of discussions today about this. It might be useful to create a third table for "options that reduce the impact of a vulnerability, but also hide problems, it'd be better to fix the problem" or something like that. Sadly, in many cases there are no options to detect the problem, & it's better to reduce the impact of a problem than just let the problem fester.

I think we should add -fno-delete-null-pointer-checks.
This option is currently used when compiling the Linux kernel. This was added after this example: https://isc.sans.edu/diary/A+new+fascinating+Linux+kernel+vulnerability/6820. There was a vulnerability that led to total bypass, including a bypass of SELinux, because null pointer checks were silently removed. This is an unfortunately easy and common problem.
The argument against this option and similar options is that "it reduces the impact of a vulnerability, but also hides problems". When you're running production code, hiding problems is not a problem, that is a benefit. I think those protesting are missing that the current document is focused on creating production code. I agree that you want to run tests without this and similar flags, to maximize bug-catching. But production use  is not the appropriate time to increase the likelihood of serious vulnerabilities.
In a later version of this document we should expand the scope to providing option flags for builds that maximize error detection during tests. In those cases we should append additional flags that turn on sanitizers and disable some last-minute mechanisms, e.g., use -delete-null-pointer-checks. In short, testing should involve tests of two different kinds of builds: (1) builds for maximizing detection of problems and (2) the "real" build that you intend to use in production. But let's make sure we reduce the likelihood of vulnerabilities in the production system.

I think we've removed a blocker. We've modified the document to clearly distinguish between production code and instrumented test code.  The comments earlier that "these options would quietly hide defects" are true, but you want to remove defects from production code. The (legitimate) concern is that you want to reveal these problems when running instrumented test code. So let's add a new table entry "production code" and add these issues. I'll revise the text to match.

This has become messy due to merge conflicts. I'll create another PR so we have a clean change.

I've rewritten the pull request and added a lot, based on the various comment here.
The new proposal is here:
https://github.com/ossf/wg-best-practices-os-developers/pull/323


missing a few training data ?

Thanks for sharing.
From the preprocessed data, I realized the counts of examples (from my script) are not the same as reported in the paper.
For example, the training data of SemEval 2014 is like this:
lt Counter({'positive': 987, 'negative': 866, 'neutral': 460})
res Counter({'positive': 2164, 'negative': 805, 'neutral': 633})
Did I make any mistake?

Thanks for your explaination.


build: fix CLA, COC and Snyk

Copied the configuration that is working in https://github.com/splunk/addonfactory-ucc-generator
Coverage is failing because of the bug on their side: https://github.com/codecov/codecov-action/issues/437

:tada: This PR is included in version 3.0.3 :tada:
The release is available on:

v3.0.3
GitHub release

Your semantic-release bot :package::rocket:


Update "Enable D3D8to9" setting for SADX

As of version 610, the SADX Mod Loader has an option to load d3d8to9 directly from the extlib folder so placing d3d8.dll in the game folder is no longer necessary. This makes it easier to use the Mod Loader on Linux/Steam because the WINE DLL override is no longer required in Steam launch options.
The update introduced the Render Backend option to the loader JSON file (RenderBackend in Graphics) which can have the following values as of now:
0 - DirectX 8.1 (default)
1 - DirectX 9 via d3d8to9
For a quick implementation, the "Enable D3D8to9" checkbox in Graphics options in the Mod Manager could be adjusted as follows:

When the checkbox is checked, set RenderBackend to 1, do not copy d3d8.dll.
When the checkbox is unchecked, set RenderBackend to 0 and remove d3d8.dll if it exists.
The presence of d3d8.dll in the game folder should probably be checked on startup to determine the checkbox state for users coming from previous versions.

If more backends are implemented in the future, the checkbox could be replaced with a "Graphics Backend" combo box that would let the user select different backends.

After testing this myself on Bazzite, I suggest removing d3d8.dll from the game folder either way, even when "Use Direct3D 9" is enabled. The presence of d3d8.dll in the game folder makes the WINE override necessary when the option is turned on. If the file is deleted, the loader's check doesn't trigger and it loads the custom DLL just fine.


pip install cm4mlops failing in docker

The install command fails in docker with sudo not installed:
Collecting cm4mlops
  Downloading cm4mlops-0.3.24.tar.gz (8.2 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from cm4mlops) (0.34.2)
Collecting giturlparse
  Using cached giturlparse-0.12.0-py2.py3-none-any.whl (15 kB)
Collecting setuptools>=60
  Using cached setuptools-75.3.0-py3-none-any.whl (1.3 MB)
Processing /root/.cache/pip/wheels/32/8d/61/9e6381610aee1e09f91b79c8a6ade385337f7471db00d1c2ce/cmind-3.3.4-py3-none-any.whl
Collecting pyyaml
  Using cached PyYAML-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (746 kB)
Collecting requests
  Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.10-py3-none-any.whl (70 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (143 kB)
Collecting urllib3<3,>=1.21.1
  Using cached urllib3-2.2.3-py3-none-any.whl (126 kB)
Building wheels for collected packages: cm4mlops
  Building wheel for cm4mlops (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmpmob88fx9 build_wheel /tmp/tmp3gbys6zn
       cwd: /tmp/pip-install-dgzb8leh/cm4mlops
  Complete output (5 lines):
  running bdist_wheel
  running build
  installing to build/bdist.linux-x86_64/wheel
  running install
  error: [Errno 2] No such file or directory: 'sudo'
  ----------------------------------------
  ERROR: Failed building wheel for cm4mlops
Failed to build cm4mlops
ERROR: Could not build wheels for cm4mlops which use PEP 517 and cannot be installed directly

container used was ubuntu20.04

I think we should just print the required packages to be installed by the user here.

Closing the issue as PR was merged with required changes.


[Event Request] T39 "Purchase Line" - procedure OnBeforeCheckPrepmtAmounts()

------- ADD PARAMETER : xRec ---------
IsHandled := false;
OnBeforeCheckPrepmtAmounts(Rec, PurchHeader, CurrFieldNo, IsHandled, xRec);
if IsHandled then
    exit;

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckPrepmtAmounts(var PurchaseLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean; var xPurchaseLine : Record "Purchase Line")
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


When will AUTH support be added?

Hi, what is the timeline for adding AUTH support for relays?

The library only returns a very basic RelayReponseAuth (https://github.com/nostrver-se/nostr-php/blob/main/src/RelayResponse/RelayResponseAuth.php) when you connect to a relay which requires authentication.
You handle all the authentication steps in your application offcourse, but I noted down in the README to work this out in a NIP-42 helper class/function as well so these steps will be taken care within the library. I'm not even fully sure if this should be taken care within the library as the return challenge string should be saved by the client.
Depending on your needs, when do you need it @SilberWitch?
It's not planned yet, as I'm working on doing asynchronous concurrent relay requests with the library.

I just saw the Reponse Object, yesterday, and that's actually enough info for me. That's really good, because now I can get rid of some of the NAK shell calls, I was using, and stick more to the helper.

You might want to add an example of that response to your ReadMe, tho. I just saw it because I kept getting errors, as the script was returning something odd, so I spit it out, to look at it.

Did you find a way to handle auth responses? I worked out an example, but haven't cleaned it up yet to include it in the docs.

Not, yet. Maybe by this afternoon, tho. I'm working on the Jenkins pipeline, first. It's still fidgety.

I retired the old Sybil repo. Here's the new one:
https://github.com/SilberWitch/Sybil

Couldn't figure out how to handle it. Just skipping over those relays, now. :see_no_evil:

Which relay(s) are you using to try it out?

nostr.wine

On requesting and/or writing events to those relays?

@SilberWitch merged in the master branch: https://github.com/nostrver-se/nostr-php/pull/67.
The client to relay authentication is taken care within the library.
I will create a new release later this week.

Thank you, very much, for taking pity on me. :saluting_face:

See https://github.com/nostrver-se/nostr-php/releases/tag/1.5.0


Compare RoleId value to existing roles and only accepts known roles

Presently, redfish users can be created with any string given as their RoleId. This change ensures that users can only be made with known role values taken from getRoleByName()

*** BUILD on-http #2935 ***

test this please

👍

@RackHD/corecommitters
Small commit here. Looking for a single +1 or feedback.


Error: Cannot read property 'flatMap' of undefined

I just added this extension to our github CI actions and this is what happened:

Oh dear - this would never happen if it were written in Elm! It looks like the structure of errors isn't as expected. Thanks for the bug report, I'll try to fix this later.

Thank you, no problem! Yes, I also really miss Elm when I am coding in other environments 🤣

I'm mostly there with a fix for this but have run out of time this evening to tidy it up for a release. It's working for me now over at https://github.com/sparksp/elm-review-action/pull/28 - you might be able to target the branch 'fix-26' if you wanted to give it a test.

Still broken but now the error message is different 😅

That's great news! That means my fix is working, what you've got there is an error straight from elm-review. What's the layout of your project? Is your elm.json in the root folder? Or is it nested somewhere deeper? Can you get a - run: elm-review step to work temporarily, instead of - uses: sparksp/elm-review-action? That should help you know what options you'll need to get the action to work (since the action just runs elm-review for you).

Actually is kinda weird because what I had before was just elm-review and with the extension it does not work 😟
jobs:
  build:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    defaults:
      run:
        working-directory: dashboard
    steps:

Maybe it is ignoring the working-directory of GH Actions? 🤔

It looks like the working-directory in your defaults only applies to run steps, rather than uses steps. I use a working-directory in the action's test workflow which seems to work just fine: .github/workflows/test.yml
    - name: Run elm-review
      uses: ./ # this action
      with:
        elm_review: npx --no-install elm-review
        # elm_json: elm.json
        elm_files: src/Good.elm
        working-directory: ${{ github.workspace }}/__tests__/elm
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Thanks! it works now! 🎉  Is there away to add elm-review warnings as comments to the PR? 🤔  (I know this is another feature haha)

Is there a way to add elm-review warnings as comments to the PR? 🤔 (I know this is another feature haha)

Probably. Could you open another issue for that with some thoughts on what you'd like to see, then I can take a look at what's possible? Then I can get this issue fixed and shipped too 😄

You should be able to switch back to v1 now that you don't have any cli errors too.

Awesome, thanks!


Alignment fixed

Issue no. #622
Before:

After:

@mdazfar2 @Kavita1928
I've fixed the alignment issue, kindly review once.

@mdazfar2 @Kavita1928
kindly review once

@mdazfar2 @Kavita1928 kindly review once

Is there any change suggested?


Keep unfolded areas unfolded after file reload on save?

Not sure if this is even possible but some tools reload files after they are saved (for example, prettier), and when that occurs all the area suddenly fold again which is a disturbing DX. Any ways to improve it or workaround it?

Hello,
Thanks for the report.
I created a new release that should improve inline folds when used with formatters.
Can you check if your issue is still there?
If it is still there, can you just do a quick recording so I can see exactly what you mean?

Thank you!
I uninstalled and re-installed inlineFold to be sure to be using the latest version and tried again, but no luck unfortunately.
Here is a screen record
https://github.com/predragnikolic/InlineFold/assets/3294841/218d42a9-5079-44db-a365-71215c103ee0
__

Hello,
Thanks for the video, it helps
What Sublime Text prettier plugin are you using?
Or you just invoke the prettier command via the terminal?

@predragnikolic prettier doesn't work in my use case so I haven't tested with it. I use rustywind, its for formatting tailwindcss classes. I trigger it aftear each save.

I will try to setup rustwind as soon as I find some time.
I do not know how to set up rustywind to run on save,
Could you tell me how you manged to set it up to run on save?
Do you just invoke the command from the terminal with rustywind .?

Running rustywind --write <path_to_folder>/ on command line would produce the effect I showed you. All I do is run that command after every save.


Autolayout issues on iOS7

If you run app on iOS7 simulator, you will get this one:
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
    "<NSLayoutConstraint:0x7fa87179cf90 H:|-(16)-[UILabel:0x7fa87179b200]   (Names: '|':UITableViewCellContentView:0x7fa87179b120 )>",
    "<NSLayoutConstraint:0x7fa87179d080 H:[UIImageView:0x7fa87179cb80]-(>=16)-|   (Names: '|':UITableViewCellContentView:0x7fa87179b120 )>",
    "<NSLayoutConstraint:0x7fa87179d120 UIImageView:0x7fa87179cb80.leading == UILabel:0x7fa87179b200.leading>",
    "<NSAutoresizingMaskLayoutConstraint:0x7fa87179e530 h=--& v=--& H:[UITableViewCellContentView:0x7fa87179b120(0)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fa87179d120 UIImageView:0x7fa87179cb80.leading == UILabel:0x7fa87179b200.leading>```

It is not FDTemplateLayoutCell issue though. I have the same in my project and it's related to iOS7 falining to set proper autoresizingMasks to it's contentView

Thanks, and a easier way:
- (void)awakeFromNib
{
    [super awakeFromNib];

    // Fix the bug in iOS7 - initial constraints warning
    self.contentView.bounds = [UIScreen mainScreen].bounds;
}

Cell's content view in iOS7 has an initial frame {0, 0, 0, 0}, which causes a warning of breaking layout constraints. Just give it a frame large enough, here a screen bounds, meaning nothing but to avoid a magic number.

I use this way to solve the problem:
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.contentView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
    }
    return self;
}


Create lts-19.15 Snapshot

This PR was created automatically because a new LTS was available.
See here for more details.
For a list of changed packages, see here.

I'm gonna see this one over the line, since I'm looking for the freckle-app updates.


[Docs] All parent nav pages should have content

On the docs nav we have parent pages (e.g. Use Cases) which when clicked on to expand load a page that's basically empty except for a list of child pages.
e.g.:

For each page that's a parent we should make sure that there is a full page's worth of content. In some cases we should reallocate a child page as the parent (e.g. Overview child page of Hooks should just be the Hooks parent page itself)

TODO:

[ ] https://docs.lakefs.io/reference/


Trying to import a project with allowSyntheticDefaultImports into one without causes errors

When trying to import dependencies that were compiled with allowSyntheticDefaultImports into a project without the setting, TS generates errors inside the imported project. This means it's impossible to use libs generated with different import settings, and makes synthetic imports contagious. Also things get extra difficult when trying to use 2 dependencies with mismatching setting - one of them will always error. Noticed this issue when upgrading to TS3.0 - it was working in TS2.8.

TypeScript Version<EMAIL_ADDRESS>
Search Terms: allowSyntheticDefaultImports, Module has no default export
Code
// in project foo with allowSyntheticDefaultImports: true
import React from "react";

export class Foo extends React.Component {
  render() {
    return
Foo
;
  }
}

// in project bar without allowSyntheticDefaultImports
import * as React from "react";
import { Foo } from "foo";

export class Bar extends React.Component {
  render() {
    return <Foo />;
  }
}

Expected behavior:
Both projects should build without errors. The consumer project should not need to know about the settings used to compile the dependency, and should not be expected to use allowSyntheticDefaultImports.
Actual behavior:
Second project generates error in first project: ../foo/dist/index.d.ts:1:8 - error TS1192: Module '"/Users/nyu/Code/tstest/bar/node_modules/@types/react/index"' has no default export.
Playground Link: because needing multiple projects, cant very well replicate in playground. Instead clone this: https://github.com/zsgalusz/tssynthetictest
Related Issues: nothing promising looking

This means it's impossible to use libs generated with different import settings, and makes synthetic imports contagious.

This is true though. If you're using a piece of code that depends on a loader providing synthetic defaults, then you can't run it in an environment where synthetic defaults aren't present.
allowSyntheticDefaultImports isn't really an either/or proposition; if it's off and you turn it on, nothing bad will happen.

allowSyntheticDefaultImports isn't really an either/or proposition; if it's off and you turn it on, nothing bad will happen.

That's not entirely true. For example, in our projects we have a lot of old namespace imports like import * as classnames from 'classnames'. Turning on allowSyntheticDefaultImports unsurprisingly causes all these to error at runtime with eg. TypeError: classnames is not a function.


Feat: Adding logo for the app

Describe the feature
It'll  serves as a symbolic representation of your app's identity and can convey its purpose or personality at a glance.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

i would like to contribute to this issue... kindly assign me

Any Updates? @Vanshikaxxa

yus sir i have created the logo
On Wed, May 15, 2024 at 1:38 PM Prashant Andoriya @.***>
wrote:

Any Updates? @Vanshikaxxa https://github.com/Vanshikaxxa
—
Reply to this email directly, view it on GitHub
https://github.com/andoriyaprashant/OpSo/issues/42#issuecomment-2111848142,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A73D4SMLNLTF7F5PKG7WPSTZCMJWLAVCNFSM6AAAAABHSV34TCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJRHA2DQMJUGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

@Vanshikaxxa  If the logo is complete, open a pull request, and I'll review it and merge it.


Add passes_utils for common functions to avoid duplicate definitions

back-porting to gh

Add the back porting pr to the description
https://github.com/openxla/xla/commit/5a07f58bb626dec8ad17c6a7998d5410401d6d93


clutsre upgrade version check error

Describe the Bug

Versions Used
Kubernetes: v1.18.20, v1.19.16
Kubeclipper: v1.3.1
Environment
How many nodes and their hardware configuration:
For example: CentOS 7.5 / 3 masters: 8cpu/8g; 3 nodes: 8cpu/16g
(and other info are welcomed to help us debugging)
How To Reproduce
Steps to reproduce the behavior:

create a cluster
do upgrade operation
see error

Expected behavior
A clear and concise description of what you expected to happen.

https://github.com/kubeclipper/console/pull/314


webpack native require doesn't work in windows

I want to natively require modules without using webpack requiring mechanism, i.e keeping require(..) as it without touch.
to achieve my goal I created a file called native-require.js with this content
module.exports = require;

and in webpack.config.js
module: {
    noParse: /\/native-require.js$/,
}

now, in my script file I do:
let filePath = resolve(__dirname, `../config/file.js`);
let content = nativeRequire(filePath);

console.log(content)

it works fine in Linux but in windows I got the error Cannot find module 'D:\Downloads\config\file.js'
I also tried to remove the file extension from filePath
I don't want to lock my project to webpack-only using, I need my project to be able to run without webpact (for example using ts-node)
so I don't want to use webpack-specific variables such as __webpack_require__

Please use https://webpack.js.org/api/module-variables/#non_webpack_require-webpack-specific

I don't want to lock my project to webpack-only using, I need my project to be able to run without webpact (for example using ts-node)

please use webpack magic comments require(/* webpackIgnore: true */"blabla");

please use webpack magic comments require(/* webpackIgnore: true */"blabla"); instead of nativeRequire

this is an awesome solution, but it seems that it doesn't work with require(), also it reported here

@eng-dibo Please enable them https://webpack.js.org/configuration/module/#moduleparserjavascriptcommonjsmagiccomments, it was disable by default due perf reasons

I enabled commonjsMagicComments and also tried import(/* webpackIgnore: true */ './module'), in both cases I got the error module not found
I tried resolving to the full path resolve(__dirname, './module') and also suffixing the extension module.js with no luck
I confirmed that the module is existing by fs.existsSync(modulePath) it outputs true

@eng-dibo please create small reproducible repo. I'll take a look

I created a minimum repo
it seems that it fails when building the server via angular builder
steps:
1- npm install
2- run npm run start:webpack, you should see OK in your console
3- now run npm start you will see an error
note that I only build src/index.ts with angular, this file doesn't include any angular-specific modules. just importing ./file.js.
both commands do the same thing, building src/index.ts, the first one uses webpack directly, but the second one uses webpack through Angular

@eng-dibo
let filePath = resolve(__dirname, "file") + ".js";
import(/* webpackIgnore: true */ filePath)

is not statically analizable, also resolve is not good idea to use here, because import(...) should have URL, not path

I tried to modify my code to follow your recommendation but I need your help @alexander-akait

is not statically analizable

first, do you mean that I cannot import files dynamically?

import(...) should have URL, not path

I tried this:
let filePath = resolve(__dirname, "file") + ".js";
let fileUrl = new URL(filePath)

// import(/* webpackIgnore: true */ fileUrl) //<-- got error here: import(/* webpackIgnore: true */ fileUrl)

import(/* webpackIgnore: true */ fileUrl.toString())
  .then(result => console.log(result.default))
  .catch(error => console.error({ error }));

but I got the same error

I want to ask you what do you expected? Do you want to keep import(...) as is and allow to async loading or do you want to bundle files which will be resolved in new URL()?

what I aim to achive is that I need to make an HTTP request from the browser to my server to bring a file's content dynamically.
this file shouldn't be bundled via wbpack, instead the server file (express.ts) should imports it dynamically and returns it's content
in browser:
httpClient.get<any>('/api/config/file.js').then( ... )

in server:
let filePath = resolve(__dirname, req.params[0])
import(filePath).then(m=> res.json(m.default))

note: I modified the previous reply (corrected the error message)

// import(/* webpackIgnore: true */ fileUrl) //<-- got error here: Dynamic import's specifier must be of type 'string', but here has type 'URL'.ts(7036)

@eng-dibo The files which will be used in import(...) should be copied as assets or they copied by other task(s)/tool(s)?

@eng-dibo The files which will be used in import(...) should be copied as assets or they copied by other task(s)/tool(s)?

it already copied and exists in the dist folder in the exact relative paths as source files

@eng-dibo when you write:
let fileUrl = new URL("file.js",import.meta.url)

You create asset module (i.e. webpack copy this file). But as you written above you already have files, so you need to disable it:

You can use

let filePath = "file.js";
let fileUrl = new URL(filePath,import.meta.url)

So it will be not statically analizable, but note - import.meta.url will be convert to file:// (look at generated webpack.js, for better debug just disable devtool: false)

(optional) Also if want to use ESM modules, you need to enable it for webpack and disable bundling import.meta.url using configuration - https://webpack.js.org/configuration/module/#moduleparserjavascriptimportmeta, you can special it only for some files using test, but looks angular-cli register own loader for typescript files so you need to look at docs how change options for it

i.e.
module: {
    parser: {
      javascript: {
        importMeta: false,
      },
    },
  },

For import(...) you have valid solution, i.e.:
import(/* webpackIgnore: true */ fileUrl.toString())

webpack keeps import(...) as is (looks like you want it)
Dynamic import's specifier must be of type 'string', but here has type 'URL'.ts(7036)

This error from typescript (not webpack), very strange that ts doesn't support new URL(...) as argument, but using .toString() is good solution here
I tried your reproducible test repo and all works fine:
akait@akait-notebook:~/IdeaProjects/dibo$ npm run start:webpack

><EMAIL_ADDRESS>start:webpack
> webpack && node dist/webpack && shx cp src/file.js dist/file.js

asset webpack.js 3.82 KiB [compared for emit] (name: webpack)
runtime modules 937 bytes 4 modules
built modules 334 bytes [built]
  ./src/index.ts 292 bytes [built] [code generated]
  external "node:path" 42 bytes [built] [code generated]
webpack 5.73.0 compiled successfully in 94 ms
file:///home/akait/IdeaProjects/dibo/src/file.js
=====>OK

My code:
import { resolve } from "node:path";

let filePath = "file.js";
let fileUrl = new URL(filePath, import.meta.url)

console.log(fileUrl.toString())

import(/* webpackIgnore: true */ fileUrl.toString())
  .then(result => console.log(result.default))
  .catch(error => console.error({ error }));

I tried your reproducible test repo and all works fine:

you probably tested it on Linux not windows

akait@akait-notebook:~/IdeaProjects/dibo$ npm run start:webpack

you run npm run start:webpack, try running npm start
the difference between them is mentioned here

both commands do the same thing, building src/index.ts, the first one uses webpack directly, but the second one uses webpack through Angular
anyway, Webpack should be able to find the file without any problem

@eng-dibo So you have the problem only on windows? Can you say what it an error?

it looks like this code will not work on windows correctly
let filePath = resolve(__dirname, req.params[0])

request params has / instead of \

I don't see any module.rules for ts file

angular already adds ts-loader to module.rules

I asked Angular and they confirmed that webpack magic comments doesn't work in Angular
https://github.com/angular/angular-cli/issues/23862#issuecomment-1238863958
now I look forward for an alternative solution to natively import a module

@eng-dibo Do you have access or ability ro modify webpack configuration?

yes, I use custom webpack

In theory you can move import to own file and try to set noParse https://webpack.js.org/configuration/module/#modulenoparse, so webpack keep them as is, but in this case you need to build ESM (or you can replace import.meta.url on something from global scope or get url from currentScript)

The original issue was using noParse (see the issue description)

and in webpack.config.js
module: {
    noParse: /\/native-require.js$/,
}

but as per @vankop 's comment:

please use webpack magic comments require(/* webpackIgnore: true */"blabla"); instead of nativeRequire

If webpack comments don't work I think the only solution is noParse, does it work for you?

If webpack comments don't work I think the only solution is noParse, does it work for you?

it doesn't work in windows

What is the error on windows? Sounds like the problem with can you try: noParse: /[\/\\]native-require.js$/,?

noParse: /[/\]native-require.js$/,

great idea because it takes OS-specific path into consideration. I think this will solve the first issue (i.e using native-require),
but is there a workaround to use dynamic import with webpack magic comments in Angular projects?
I will try your recommendation
thank you @alexander-akait so much for your great help

Feel free to feedback


Fix race condition in rabbitmq transporter_test.go

GetConnection() will be called at least 3 times.  Once for the initial setup,
once for the failure, and once again after the mock server is available again.
But if there's a slowdown, the third call might be repeated until the server is
actually available.

@nehalrp Does this fix issue #33 for you?

@taybin Yes, seems like this is the right fix and I haven't ran into the race condition after running the test in isolation ~30 times. Thanks!


Archive this repo

As of HA 0.107 most of the functionality of this CC will be in the official integration. The only difference being that this CC provides the sighthound.file_saved events (can be reproduced using the folder_watcher integration), and supports face detection. Update the official integration docs and archive this repo

undone


How to determine the write is tentative(uncommitted) or committed write in multi-region write

When the database is configured with multi-region write:

How to determine the write is tentative(uncommitted) or committed write?
Is it doable to make the request to be committed write only and tentative write only? I see this doc mentions header, but it don't find the place to configure it: https://learn.microsoft.com/en-us/azure/cosmos-db/global-dist-under-the-hood#:~:text=Clients can request either tentative or committed writes by passing a request header.
I see the conflict resolution policy can only be configure at the container creation time, but the database account can change to multi-region write, then what is the conflict resolution policy here? Is it by default one that using "_ts"?

Looking forward to hearing from you. Thanks!

ComsosDB SDK returns only after the writes are committed.
Documentation needs refresh/update removing tentative writes