Kusto equivalent of SQL NOT IN

I am trying to identify what records exist in table 1 that are not in table 2 (so essentially using NOT IN) let outliers = Table 2 | project UniqueEventGuid; Table 1 |where UniqueEventGuid !in (outliers) |project UniqueEventGuid but getting 0 records back even though I know there are orphans in table 1. Is the… Read More Kusto equivalent of SQL NOT IN

Find all files matching pattern in directory and copy subdirectories and files found

I have a directory structure of the following: $DIRECTORY/*.xml $DIRECTORY/*.others $DIRECTORY/subdir1/*.xml $DIRECTORY/subdir1/*.others $DIRECTORY/subdir2/*.xml $DIRECTORY/subdir2/*.others And wish to copy all xml files into $OUTPUT_DIRECTORY including the directory structure of $DIRECTORY so the result will be: $OUTPUT_DIRECTORY/*.xml $OUTPUT_DIRECTORY/subdir1/*.xml $OUTPUT_DIRECTORY/subdir2/*.xml I know find has both -exec and -execdir which will use the output of find as the arguments… Read More Find all files matching pattern in directory and copy subdirectories and files found

window.scrollTo not working inside useEffect – reactJS

I am trying to execute window.scrollTo on the first render using useEffect function. I am storing the position inside localStorage, but it is not working. Does not work on first page render: useEffect(() => { window.scrollTo(0, localStorage.getItem(‘position’)); }, []); It is worth noting that if I put the scroll function inside a function and call… Read More window.scrollTo not working inside useEffect – reactJS

Laravel Many To Many Get element that I dont have a relationship with

In laravel Many to Many relationship like the one in the Laravel Documentation example. https://laravel.com/docs/9.x/eloquent-relationships#many-to-many users id – integer name – string roles id – integer name – string role_user user_id – integer role_id – integer In the Users model I have public function roles() { return $this->belongsToMany(Role::class); } In the Roles model I have… Read More Laravel Many To Many Get element that I dont have a relationship with

Shuffle multiple arrays in the same way but with Lodash

I’ve got two arrays const mp3 = [‘sing.mp3′,’song.mp3′,’tune.mp3′,’jam.mp3’,etc]; const ogg = [‘sing.ogg’,’song.ogg’,’tune.ogg’,’jam.ogg’,etc]; I need to shuffle both arrays so that they come out the same way, ex: const mp3 = [‘tune.mp3′,’song.mp3′,’jam.mp3′,’sing.mp3’,etc]; const ogg = [‘tune.ogg’,’song.ogg’,’jam.ogg’,’sing.ogg’,etc]; There’s a few posts on stackoverflow that shuffle arrays in the way I described —this one is pretty great— but… Read More Shuffle multiple arrays in the same way but with Lodash