Error With Temporary Directory

Hello, new SI/MS5 user here. I have succesfully installed SI and MS5 but cannot get the example code to run. The error is currently coming from the creation of Temporary Directories. I have included my code and the error below. Any advice as to how I can resolve this would be greatly appreciated! It seems like a small fix but I am not very experienced with Python. I checked the directory that the error claims is invalid, and it exists.
#CODE
from tempfile import TemporaryDirectory
from pathlib import Path
import numpy as np
import spikeinterface as si
import spikeinterface.preprocessing as spre
import mountainsort5 as ms5
from mountainsort5.util import create_cached_recording
file_path = Path(r"C:\Users\kelley.j\Desktop\SI_Tests_Folder\SI_BZAData.bin")
assert file_path.is_file(), f"Error: {file_path} is not a valid file. Please check the path."
sampling_frequency = 15000.0  # Adjust according to your MATLAB dataset
num_channels = 16  # Adjust according to your MATLAB dataset
dtype = "float64"  # MATLAB's double corresponds to Python's float64
recording = si.read_binary(file_paths=file_path, sampling_frequency=sampling_frequency,
num_channels=num_channels, dtype=dtype)
recording_filtered = spre.bandpass_filter(recording, freq_min=300, freq_max=6000, dtype=np.float32)
recording_preprocessed: si.BaseRecording = spre.whiten(recording_filtered)
base_dir = r'C:\Users\kelley.j\Desktop\SI_Tests_Folder'
with TemporaryDirectory() as tmpdir:
# cache the recording to a temporary directory for efficient reading
recording_cached = create_cached_recording(recording_preprocessed, folder=tmpdir)
sorting = ms5.sorting_scheme1(
    recording=recording_cached,
    sorting_parameters=ms5.Scheme1SortingParameters(...)
 )

#ERROR
Traceback (most recent call last)
Cell In[1], line 34
32 with TemporaryDirectory() as tmpdir:
33     # cache the recording to a temporary directory for efficient reading
---> 34     recording_cached = create_cached_recording(recording_preprocessed, folder=tmpdir)
36     # use scheme 1
File ~\anaconda3\envs\spikeinterface_env\lib\site-packages\mountainsort5\util\create_cached_recording.py:32, in create_cached_recording(recording, folder, n_jobs, chunk_duration)
25 ret = si.BinaryRecordingExtractor(
26     file_paths=[fname],
27     sampling_frequency=recording.get_sampling_frequency(),
(...)
30     dtype='float32'
31 )
---> 32 ret.set_channel_locations(recording.get_channel_locations())
33 return ret
File ~\Documents\GitHub\spikeinterface\src\spikeinterface\core\baserecordingsnippets.py:365, in BaseRecordingSnippets.get_channel_locations(self, channel_ids, axes)
364 if locations is None:
--> 365     raise Exception("There are no channel locations")
366 locations = np.asarray(locations)[channel_indices]
Exception: There are no channel locations
During handling of the above exception, another exception occurred:
PermissionError                           Traceback (most recent call last)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:618, in _rmtree_unsafe(path, onerror)
617 try:
--> 618     os.unlink(fullname)
619 except OSError:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\kelley.j\AppData\Local\Temp\tmpk6ntajbz\recording.dat'
During handling of the above exception, another exception occurred:
PermissionError                           Traceback (most recent call last)
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:852, in TemporaryDirectory._rmtree..onerror(func, path, exc_info)
851 try:
--> 852     _os.unlink(path)
853 # PermissionError is raised on FreeBSD for directories
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\kelley.j\AppData\Local\Temp\tmpk6ntajbz\recording.dat'
During handling of the above exception, another exception occurred:
NotADirectoryError                        Traceback (most recent call last)
Cell In[1], line 32
29 recording_preprocessed: si.BaseRecording = spre.whiten(recording_filtered)
31 base_dir = r'C:\Users\kelley.j\Desktop\SI_Tests_Folder'
---> 32 with TemporaryDirectory() as tmpdir:
33     # cache the recording to a temporary directory for efficient reading
34     recording_cached = create_cached_recording(recording_preprocessed, folder=tmpdir)
36     # use scheme 1
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:878, in TemporaryDirectory.exit(self, exc, value, tb)
877 def exit(self, exc, value, tb):
--> 878     self.cleanup()
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:882, in TemporaryDirectory.cleanup(self)
880 def cleanup(self):
881     if self._finalizer.detach() or _os.path.exists(self.name):
--> 882         self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors)
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:864, in TemporaryDirectory._rmtree(cls, name, ignore_errors)
861         if not ignore_errors:
862             raise
--> 864 _shutil.rmtree(name, onerror=onerror)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:750, in rmtree(path, ignore_errors, onerror)
748     # can't continue even if onerror hook returns
749     return
--> 750 return _rmtree_unsafe(path, onerror)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:620, in _rmtree_unsafe(path, onerror)
618             os.unlink(fullname)
619         except OSError:
--> 620             onerror(os.unlink, fullname, sys.exc_info())
621 try:
622     os.rmdir(path)
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:855, in TemporaryDirectory._rmtree..onerror(func, path, exc_info)
853     # PermissionError is raised on FreeBSD for directories
854     except (IsADirectoryError, PermissionError):
--> 855         cls._rmtree(path, ignore_errors=ignore_errors)
856 except FileNotFoundError:
857     pass
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:864, in TemporaryDirectory._rmtree(cls, name, ignore_errors)
861         if not ignore_errors:
862             raise
--> 864 _shutil.rmtree(name, onerror=onerror)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:750, in rmtree(path, ignore_errors, onerror)
748     # can't continue even if onerror hook returns
749     return
--> 750 return _rmtree_unsafe(path, onerror)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:601, in _rmtree_unsafe(path, onerror)
599         entries = list(scandir_it)
600 except OSError:
--> 601     onerror(os.scandir, path, sys.exc_info())
602     entries = []
603 for entry in entries:
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:598, in _rmtree_unsafe(path, onerror)
596 def _rmtree_unsafe(path, onerror):
597     try:
--> 598         with os.scandir(path) as scandir_it:
599             entries = list(scandir_it)
600     except OSError:
NotADirectoryError: [WinError 267] The directory name is invalid: 'C:\Users\kelley.j\AppData\Local\Temp\tmpk6ntajbz\recording.dat'

@alejoe91
What did we decide was the simplest solution to this windows temporary directory cleanup issue. Should we change SI wrapper to simply not use python's TemporaryDirectory()?

@magland this is fixed in the latest releases of spikeinterface (>=0.100.7)
The solution is to write to the output folder, with an option (true by default) to delete the cached recording when spike sorting finishes:
https://github.com/SpikeInterface/spikeinterface/blob/0.100.8/src/spikeinterface/sorters/external/mountainsort5.py#L187-L206

Thanks @alejoe91
@JacobKelley101 which version of SI are you using?
pip list | grep spikeinterface

In my Jupyter Notebook I run:
import spikeinterface.full as si
print(f"SpikeInterface version: {si.version}")
Resulting in a print of : "SpikeInterface version: 0.101.0rc0"

@JacobKelley101 try to refresh your notebook. The line triggering the error is not there in version 0.010.0rc0
https://github.com/SpikeInterface/spikeinterface/blob/0.101.0rc0/src/spikeinterface/sorters/external/mountainsort5.py#L189

@alejoe91 I hadn't found the solution proposed in the link you attached. I will add it in and see if it works better!

@JacobKelley101 my link was just to show that the released version that you have should not trigger the error you're seeing, since the line recording_cached = create_cached_recording(recording_preprocessed, folder=tmpdir) has been removed.
Can you try to make sure you're running your notebook with the 0.101.rc0 version?

@alejoe91 I ran the code again and printed my imported spikeinterface version before calling the temporary directory function. Mountainsort will run, but the temporary folder still can't be deleted. I attacthed the code below again.
### Code
from tempfile import TemporaryDirectory
from pathlib import Path
import numpy as np
import spikeinterface as si
import spikeinterface.preprocessing as spre
import mountainsort5 as ms5
from mountainsort5.util import create_cached_recording
print(f"SpikeInterface version: {si.version}")
Load recording object
file_path = Path(r"C:\Users\kelley.j\Desktop\SI_Tests_Folder\SI_BZAData.bin")
assert file_path.is_file(), f"Error: {file_path} is not a valid file. Please check the path."
sampling_frequency = 15000.0  # Adjust according to your MATLAB dataset
num_channels = 16  # Adjust according to your MATLAB dataset
dtype = "float64"  # MATLAB's double corresponds to Python's float64
Load data using SpikeInterface
recording = si.read_binary(file_paths=file_path, sampling_frequency=sampling_frequency,
num_channels=num_channels, dtype=dtype)
Set channel locations (example: evenly spaced along a line)
channel_locations = np.column_stack((np.arange(num_channels), np.zeros(num_channels)))
recording.set_channel_locations(channel_locations)
Preprocess the recording
recording_filtered = spre.bandpass_filter(recording, freq_min=300, freq_max=6000, dtype=np.float32)
recording_preprocessed = spre.whiten(recording_filtered)
Ensure the temporary directory is used correctly
base_dir = r'C:\Users\kelley.j\Desktop\SI_Tests_Folder'
with TemporaryDirectory(dir=base_dir) as tmpdir:
# Cache the recording to a temporary directory for efficient reading
recording_cached = create_cached_recording(recording_preprocessed, folder=tmpdir)
# Use scheme 1 (adjust sorting parameters as needed)
sorting_parameters = ms5.Scheme1SortingParameters()  # Use default or specify parameters
sorting = ms5.sorting_scheme1(recording=recording_cached, sorting_parameters=sorting_parameters)

# Other schemes can be used similarly
# sorting = ms5.sorting_scheme2(recording=recording_cached, sorting_parameters=ms5.Scheme2SortingParameters(...))
# sorting = ms5.sorting_scheme3(recording=recording_cached, sorting_parameters=ms5.Scheme3SortingParameters(...))

Error/Printout
SpikeInterface version: 0.101.0rc0
write_binary_recording: 100%
 601/601 [00:05<00:00, 122.72it/s]
Number of channels: 16
Number of timepoints: 9000900
Sampling frequency: 15000.0 Hz
Channel 0: [0. 0.]
Channel 1: [1. 0.]
Channel 2: [2. 0.]
Channel 3: [3. 0.]
Channel 4: [4. 0.]
Channel 5: [5. 0.]
Channel 6: [6. 0.]
Channel 7: [7. 0.]
Channel 8: [8. 0.]
Channel 9: [9. 0.]
Channel 10: [10.  0.]
Channel 11: [11.  0.]
Channel 12: [12.  0.]
Channel 13: [13.  0.]
Channel 14: [14.  0.]
Channel 15: [15.  0.]
Loading traces
*** MS5 Elapsed time for load_traces: 0.000 seconds ***
Detecting spikes
Adjacency for detect spikes with channel radius None
[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]]
m = 0 (nbhd size: 16)
m = 1 (nbhd size: 16)
m = 2 (nbhd size: 16)
m = 3 (nbhd size: 16)
m = 4 (nbhd size: 16)
m = 5 (nbhd size: 16)
m = 6 (nbhd size: 16)
m = 7 (nbhd size: 16)
m = 8 (nbhd size: 16)
m = 9 (nbhd size: 16)
m = 10 (nbhd size: 16)
m = 11 (nbhd size: 16)
m = 12 (nbhd size: 16)
m = 13 (nbhd size: 16)
m = 14 (nbhd size: 16)
m = 15 (nbhd size: 16)
Detected 179 spikes
*** MS5 Elapsed time for detect_spikes: 0.486 seconds ***
Removing duplicate times
*** MS5 Elapsed time for remove_duplicate_times: 0.000 seconds ***
Extracting 179 snippets
*** MS5 Elapsed time for extract_snippets: 0.004 seconds ***
Computing PCA features with npca=48
*** MS5 Elapsed time for compute_pca_features: 0.044 seconds ***
Isosplit6 clustering with npca_per_subdivision=10
Found 1 clusters
*** MS5 Elapsed time for isosplit6_subdivision_method: 0.002 seconds ***
Computing templates
*** MS5 Elapsed time for compute_templates: 0.003 seconds ***
Determining optimal alignment of templates
Template alignment converged.
Align templates offsets:  [0]
*** MS5 Elapsed time for align_templates: 0.001 seconds ***
Aligning snippets
*** MS5 Elapsed time for align_snippets: 0.000 seconds ***
Clustering aligned snippets
Computing PCA features with npca=48
*** MS5 Elapsed time for compute_pca_features: 0.005 seconds ***
Isosplit6 clustering with npca_per_subdivision=10
*** MS5 Elapsed time for isosplit6_subdivision_method: 0.004 seconds ***
Found 1 clusters after alignment
Computing templates
*** MS5 Elapsed time for compute_templates: 0.000 seconds ***
Offsetting times to peak
Offsets to peak: [0]
*** MS5 Elapsed time for determine_offsets_to_peak: 0.000 seconds ***
Sorting times
*** MS5 Elapsed time for sorting times: 0.000 seconds ***
Removing out of bounds times
*** MS5 Elapsed time for removing out of bounds times: 0.000 seconds ***
Reordering units
*** MS5 Elapsed time for reordering units: 0.000 seconds ***
Creating sorting object
*** MS5 Elapsed time for creating sorting object: 0.002 seconds ***

PermissionError                           Traceback (most recent call last)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:618, in _rmtree_unsafe(path, onerror)
617 try:
--> 618     os.unlink(fullname)
619 except OSError:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\kelley.j\Desktop\SI_Tests_Folder\tmp8jkh2gxo\recording.dat'
During handling of the above exception, another exception occurred:
PermissionError                           Traceback (most recent call last)
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:852, in TemporaryDirectory._rmtree..onerror(func, path, exc_info)
851 try:
--> 852     _os.unlink(path)
853 # PermissionError is raised on FreeBSD for directories
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\kelley.j\Desktop\SI_Tests_Folder\tmp8jkh2gxo\recording.dat'
During handling of the above exception, another exception occurred:
NotADirectoryError                        Traceback (most recent call last)
Cell In[1], line 30
28 # Ensure the temporary directory is used correctly
29 base_dir = r'C:\Users\kelley.j\Desktop\SI_Tests_Folder'
---> 30 with TemporaryDirectory(dir=base_dir) as tmpdir:
31     # Cache the recording to a temporary directory for efficient reading
32     recording_cached = create_cached_recording(recording_preprocessed, folder=tmpdir)
34     # Use scheme 1 (adjust sorting parameters as needed)
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:878, in TemporaryDirectory.exit(self, exc, value, tb)
877 def exit(self, exc, value, tb):
--> 878     self.cleanup()
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:882, in TemporaryDirectory.cleanup(self)
880 def cleanup(self):
881     if self._finalizer.detach() or _os.path.exists(self.name):
--> 882         self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors)
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:864, in TemporaryDirectory._rmtree(cls, name, ignore_errors)
861         if not ignore_errors:
862             raise
--> 864 _shutil.rmtree(name, onerror=onerror)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:750, in rmtree(path, ignore_errors, onerror)
748     # can't continue even if onerror hook returns
749     return
--> 750 return _rmtree_unsafe(path, onerror)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:620, in _rmtree_unsafe(path, onerror)
618             os.unlink(fullname)
619         except OSError:
--> 620             onerror(os.unlink, fullname, sys.exc_info())
621 try:
622     os.rmdir(path)
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:855, in TemporaryDirectory._rmtree..onerror(func, path, exc_info)
853     # PermissionError is raised on FreeBSD for directories
854     except (IsADirectoryError, PermissionError):
--> 855         cls._rmtree(path, ignore_errors=ignore_errors)
856 except FileNotFoundError:
857     pass
File ~\anaconda3\envs\spikeinterface_env\lib\tempfile.py:864, in TemporaryDirectory._rmtree(cls, name, ignore_errors)
861         if not ignore_errors:
862             raise
--> 864 _shutil.rmtree(name, onerror=onerror)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:750, in rmtree(path, ignore_errors, onerror)
748     # can't continue even if onerror hook returns
749     return
--> 750 return _rmtree_unsafe(path, onerror)
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:601, in _rmtree_unsafe(path, onerror)
599         entries = list(scandir_it)
600 except OSError:
--> 601     onerror(os.scandir, path, sys.exc_info())
602     entries = []
603 for entry in entries:
File ~\anaconda3\envs\spikeinterface_env\lib\shutil.py:598, in _rmtree_unsafe(path, onerror)
596 def _rmtree_unsafe(path, onerror):
597     try:
--> 598         with os.scandir(path) as scandir_it:
599             entries = list(scandir_it)
600     except OSError:
NotADirectoryError: [WinError 267] The directory name is invalid: 'C:\Users\kelley.j\Desktop\SI_Tests_Folder\tmp8jkh2gxo\recording.dat'

Ah I see! the error is not from SpikeInterface!
You should avoid using these lines:
with TemporaryDirectory(dir=base_dir) as tmpdir:
# Cache the recording to a temporary directory for efficient reading
recording_cached = create_cached_recording(recording_preprocessed, folder=tmpdir)

Is there a reason why you're not running the sorting directly through spikeinterface?

I was just trying to follow the example code provided on the MountainSort GitHub page.
https://github.com/flatironinstitute/mountainsort5/tree/main
I replaced the lines you suggested and it is running without errors now. May I ask why it is not recommended to use the Temporary Directory functions, despite being written in the MountainSort GitHub? Also, I thought I was running this through spikeinterface, but I could be wrong. Could you give an example of what that would look like? Apologies, this is all very new.

No worries! I think that the MS5 README is not up to date ;)
Using the TMP directory has proven quite problematic on windows...
To run directly in SpikeInterface is as simple as:
import spikeinterface.sorters as ss

sorting_ms5 = ss.run_sorter("mountainsort5", recording=recording_preprocessed, folder="some-output-folder")

Caching is handled automatically!
You can find a list of supported arguments with:
ss.get_default_sorter_params("mountainsort5")

Any of these can be passed as additional keyword argument to the function.

awesome, thank you very much @alejoe91 and @magland! I will close this issue. At this point, any further issues I have with SI or MS5 probably will not pertain to my original query.


Fix Epic Games Auth and Notification

Overview
Updated legendary-gl to 0.20.29 because Epic Games API was no longer logging in with sid.
Corrected code accordingly.
Change

Updated legendary-gl to 0.20.29
Set api_timeout in LegendaryCLI to 10.0 seconds
(If the timeout is not set, it will be compared to None internally and an exception will occur.)
Fix parsing of build_version

@tanakanira0118
Thanks for testing and keeping this updated!
I've added a commit to apply the same fixes to app_finder.py, but the fixes other than that works good on my side😃


Terminal-Plus load issue

When I first install terminal-plus in atom, and reload I get an incompatible error and when a rebuild the package and reload atom, and click on the + sign to load a terminal window, nothing is displayed.  The terminal window is blank with just a flashing cursor. I'm not sure if it's just me or if it's an actual issue.

I also have this issue.
It has never worked for me on Windows 10, even with the recommended fixes, but I just tried it on Linux (Mint 18, Atom version 1.10.2) and it also gets stuck on the flashing cursor. I haven't changed the default shell, and /bin/bash should be right.
I believe it worked on a different Linux machine, so I can check that when possible.


Is json key supported?

Hello
Can I use .json key instead of .p12?

Try something like this?
$obj_client = new \Google_Client();
$obj_client->setAssertionCredentials($obj_client->loadServiceAccountJson(
      '/path/to/file.json',
      [\Google_Service_Datastore::DATASTORE, \Google_Service_Datastore::USERINFO_EMAIL]
));

Obviously, you'll need to define the right scopes for your use case.

Yes! In the latest version this is now the default. See Authenticating with OAuth in the README:
$client = new Google_Client();
$client->setAuthConfig('/path/to/client_credentials.json');


Not working on Opera GX both browser and side bar

Hey there, I love this extension and it's been working wonders for the past few years but it stopped working as of recently, I'm using it in Opera GX and have been for several years but it just stopped working both in the instagram site or the sidebar instagram that opera has.
If you could take a look at it, I would be appreciate it, as the 100% volume in reels all the time kills my ears.. and no extension is currrently working either, maybe it is something to do with instagram updating ?

Hi @SleeptMooN,
This is the second report of Opera GX been broken. It is working fine in Firefox and Chrome so far.
I'll setup a virtual machine and investigate the case.

I couldn't reproduce it on a fresh Win 11 VM with Opera GX <IP_ADDRESS>.123. I tested posts and reals in the main window and the sidebar.
I noticed another issue: After the video loops the main area shows a still frame and overlays the video. This also happens on Chrome but not on Firefox.

The older post was re-opened. I'll close this one. Please continue the discussion in #46


Ability to track all families served over a specific period of time

Define a list of actions of families/family records that would constitute activity and then track the most recent activity.  Need to be able to query by date in Keystone.
Family Activities should include:
-New Account creation (could add to Fam Stages)
-Anything in change history?
-Event Registration
-Inquiry
-Match/Placement
-Internal Note
Needs to be searchable by town/region/LGBTQ status, relationship status, etc.
XL export: email, most recent date it happened on, gender

Review with Jeremy

[ ] update column values to link to the database record they represent
[ ] fix date sorting for any date-driven columns
[ ] add gender and race to search form
[ ] add last 3 fiscal year buttons to search form
[ ] if possible, capture latest bookmark for child and sibling group

Review Tasks from discussion with @jeremysMARE

[ ] replace state field with city/town field
[ ] update max results returned logic to display accurately based on pre-filtered result count
[ ] implement excel export
[ ] implement form reset
[ ] capture bookmark activity

Review Tasks from discussion with @jeremysMARE

[ ] combine gender selects into a single select
[ ] combine race selects into a single select
[ ] combine LGBTQ+ identity selects into a single select
[ ] add contact 1 & 2 race columns to Excel export
[ ] add contact 1 & 2 LGBTQ+ identity columns to Excel export
[ ] update name of report to "Families Served"
[ ] update registration date column to "Account Creation Date" on website table and Excel export
[ ] update "Total Active Families" label to read "Total Families Served"
[ ] move "Total Families Served" to display under "Results:" and increase font size to 24px
[ ]

[ ] Add region to excel export
[ ] Add town to excel export

@n-devr When filtering results by region, the report now seems to show no results no matter the combination of filters applied. The region does appear in the excel export for the same data, however.
For instance: Searching for families served the last fiscal year shows results and when exported to excel, the region is represented for all families. However, if you filter those results in the report by any region, it produces no results.


fix small status bar action sheet color bug

when the action sheet was presented the status bar didn't properly dim

Looks good now!


Devices reject ChMask in LinkADRAns

This is a bug report for the Australia TTN public cluster.
What do you want to do?
Get Netvox end devices working again

What went wrong or what is missing?

Since the deployment of V2.10.3 on the AU public instance we have been seeing issues with a particular brand of sensor, Netvox, on the AS923 band plan. In particular we have been testing with a Netvox R712 Temperature/Humidity sensor.

Do you have Screenshots? Here are the steps we used to observe this issue:

The device sends an OTAA join-request
The NS responds with a join-accept, which includes a 5 channel CFList
The NS sends a LinkADRreq MAC command. The LinkADRReq contains a DataRate, TXPower and ChMask. The CHMask is set to 0xFF00 - ie, enable the first 8 channels.
The device responds with a LinkADRAns. It sets the Status bits to 1 for DataRate and TXPower, however the ChMask bit is set to 0. This indicates (according to the LoRaWAN 1.0.2 spec) that “The channel mask sent enables a yet undefined channel or the channel mask required all channels to be disabled. The command was discarded and the enddevice state was not changed."

I suspect the reason for the failure is that this device has 7 active channels (2 join+5 via join-accept), but an 8 channel ChMask via LinkADRReq. I have no ability to test whether this is actually the issue, however It’s relevant to note that a number of these devices in the field have stopped working at the time 2.10.3 was deployed. These devices were working for many months/years beforehand.

What kind of OS/Browser/Gateway are you using? Which version?

Primarily Multitech Conduit gateways using LoRa Packet Forwarder, but public network so any gateway could be involved

What are the IDs and EUIs of your Device/Gateway? (if applicable)

All app/device info/keys keys added to TTS-1118.

What do your log files look like?

Physical payloads from gateway traffic page on console
Join accept: 2054C6826AE562A8DB43ADF54BAF8A06401396A994D93E22FFDAF6107DF79637B1
1st uplink: 40322A002680000006418BA2DD61144138431FBAF2FC06D2 (Device reports software/hardware version)
1st downlink: 60322A00268500000340FF00019D808003 (FOpts = 0340FF0001)
2nd uplink: 40322A0026800100003DA5EDA23FD5 (FRMPayload = 0306. ie NAck ChMask)
2nd downlink: 60322A00268501000340FF0001CAD1DBA5 (FOpts = 0340FF0001 again)
The cycle then repeats and the device never starts sending its regular payload (Temperature/Humidity)

What should happen?

The device should respond with FRMPayload = 0307, therefore not rejecting the ChMask. The device will then enter its normal mode of operation.

Can you fix this yourself and submit a pull request?

Unfortunately not.

We're not going to fix this in v2 anymore.


test: x86 ami import

Generated using ./test/data/images-ref/gen-image-def for test reference. In the future, these will be generated on-demand for testing as long as we need them.

We alreeady have the yaml in there in https://github.com/osbuild/otk/tree/main/test/data/images-ref/centos/9/x86_64/ami AFAICT, why do we re-import the json again? What am I missing?

I think something weird happened during the splitting out of the previous PRs and it got lost somewhere, this PR only re-adds it.


DMN Runner Tabular - Refactor Grid

On This PR

Refactor the Grid class to be a React hook.
Fix changing a Decision Node type breaking the table.
Disable the DMN Runner Table on bpmn and pmml files.
Remove unnecessary files.

@ljmotta may I ask you to link this PR with a jira?

@jomarko I´ve added the JIRAS in the description

@jomarko Hi Jozef, can you please take a look at this PR?

@jomarko Hi, thanks for taking your time reviwing this PR and making Cypress test for it.

@jomarko Thanks for your review. Those two new issues you found are not in the scope of this PR. Could you please create two separete JIRAs? I'll address it in another PR.

@ljmotta thank you for your comment.
I reported issues mentioned above https://github.com/kiegroup/kogito-tooling/pull/692#pullrequestreview-823699544 as:

https://issues.redhat.com/browse/KOGITO-6382
https://issues.redhat.com/browse/KOGITO-6383


Breakpoint not hit in imported file (using Typscript and node.js)

It seems the breakpoints in imported files are not hit when there 'parent' does not contain a breakpoint.

VSCode Version: 1.19.1
OS Version: Windows 10

Steps to Reproduce:

Setup new project with this setup (same results if source files are in root):

tsconfig.json

{
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "outDir": "bin",
        "sourceMap": true
    },
    "include": [
        "src/**/*.ts"
    ],
    "exclude": [
        "node_modules"
    ]
}

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceFolder}\\src\\index.ts",
            "preLaunchTask": "tsc: build - tsconfig.json",
            "outFiles": [
                "${workspaceFolder}/bin/**/*.js"
            ],
            "internalConsoleOptions":"openOnSessionStart"
        }
    ]
}

tasks.json

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "typescript",
            "tsconfig": "tsconfig.json",
            "problemMatcher": [
                "$tsc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

app.ts (break on console.log):

class App {
    public start() {
        console.log("Test App");
    }
}

export default new App()

index.ts:

import app from './App'

console.log("Test Index")
app.start()

If I place a breakpoint in the app.ts file it is not hit, if I also break in index.ts (doesn't matter where) and then debug the breakpoint in app.ts is hit. After then removing the breakpoint from index.ts (leaving the app.ts) and debugging again the breakpoint in app.ts is hit! Debugging again (no changes to breakpoints) and no breakpoint is hit.

Does this issue occur when all extensions are disabled?: Yes

Can you try this in 1.20? There was a bug fixed that is probably related.


Added migration guide

@maxtruxa Can you review?

@mjsalinger I'll review this tomorrow, won't really have time today.


Better way to upgrade/downgrade mdl components

Here I'm adding ref mdlComponent to components which render wrappers around mdl components (actually it's just Tooltip).
Another change here is wrapping methods instead of wrapping whole components. Aside from easier access to this.refs it now looks better in react-devtools.

It fixes #47

You are now modifying the component instead of creating a new one. I'm not sure we want to go in that direction...
I would prefer if we can find another solution to the issue.

Okay, so what about inheritance? Something like this:
class ProgressBar extends MDLComponent {
...
}

or another way around (new component inherits from ours, less changes in code, but looks not so good in devtools :-( ):
export default Component =>
class MDLComponent extends Component {
...
}

Not a big fan of inheritance when writing React code either.

Are there some reasons for that? It fits naturally in that case.

Inheritance in JavaScript is hard because there's no way to know when you override a function or not. That's why I usually try to not use it (except in some cases).
Before going with that route, I'll try to find another way of solving this.

What do you mean by "override a function or not"?

Inside a child class, you have no way to know without looking at the parent if a function you're writing is overriding the parent function. That's why I tend to avoid using inheritance in JS.

We can use super to call parent
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super

Let me provide a prototype to play with it.

It's time to check it out.
Sorry for delay.

Ping

Still thinking of a solution. I'd like to keep the High order component instead of the inheritance so I'm trying to find a way to fix the issue while keeping the HoC.

What if we will use MDLComponent inside components' render methods like this?
class Button extends React.Component {
    render() {
        var { accent, className, colored,
            primary, raised, ripple, ...otherProps } = this.props;

        var buttonClasses = classNames('mdl-button mdl-js-button', {
            'mdl-js-ripple-effect': ripple,
            'mdl-button--raised': raised,
            'mdl-button--colored': colored,
            'mdl-button--primary': primary,
            'mdl-button--accent': accent
        }, className);

        return (
            <MDLComponent>
              <button className={buttonClasses} {...otherProps}>
                  {this.props.children}
              </button>
            </MDLComponent>
        );
    }
}

MDLComponent should wrap exactly one children on which we should call upgradeElement.
It will provide good public API for users wishing to change real markup however they want.
For example:
        return (
            <MDLComponent>
              <input
                type="button"
                className="mdl-button mdl-js-button"
                value="Send the from"
              >
            </MDLComponent>
        );

What do you think of adding a get function inside the components who needs to manually specify the container to downgrade, and update the mdlUpgrade helper with this:
componentWillUnmount() {
    var { comp } = this.refs;
    var element = (comp.getMdlContainer && comp.getMdlContainer()) || this;
    componentHandler.downgradeElements(React.findDOMNode(element));
}

render() {
    return <Component ref="comp" {...this.props} />;
}

I think that we should not use refs for that. I really like the idea with HoC which wraps mdl components.
For example Tooltip's render would look something like that:
    render() {
        var { label, large, children, ...otherProps } = this.props;
        var id = Math.random().toString(36).substr(2);

        if(typeof label === 'string') {
            label = {label};
        }

        var element;
        if(typeof children === 'string') {
            element = {children};
        }
        else {
            element = React.Children.only(this.props.children);
        }

        return (

                {React.cloneElement(element, { id })}
                <MDLUpgrade>
                    {React.cloneElement(label, {
                        htmlFor: id,
                        className: classNames('mdl-tooltip', {
                            'mdl-tooltip--large': large
                        })
                    })}
                </MDLUpgrade>

        );
    }

Even better for devtools we can do that without even leaving the traces of HoC like in react-document-title
https://github.com/gaearon/react-document-title/blob/75ef9566a162a4c9bc697c0e23cf5c44ac5efb74/index.js#L22-L28

Wrong, it leaves the traces in devtools, but anyway I think it's a good solution.

Hmm.. Let's keep the old way of upgrading (the function mdlUpgrade), and add a new MDLUpgrade for this specific tooltip code.

If you do not want so much changes I can rewrite old mdlUpgrade which will use HoC and we can leave the code of most components as it was before.
Do you see any other problem?

I was more thinking of keeping the mdlUpgrade as it was before, and creating a new MDLUpgrade component that will use the mdlUpgrade function. That way we keep the logic only in one location.

I just thought the other way around.
In that case we can avoid workarounds like in ProgressBar component

What you think about exposing mdlUpgrade as a public function?
Also what you think about it's usage as a decorator instead of plain function call?

One or the other, it will give the same result. It's just that one needs less code changes :)
About the decorator, I prefer keeping a function for now, less code, easier to understand for everyone.

It's less code indeed.
class ProgressBar extends React.Component {
}

export default mdlUpgrade(ProgressBar);

vs
@mdlUpgrade
export default ProgressBar extends React.Component {
}

and no other changes needed.

I meant, less code change to keep the function as is and create a component.
Using a generator will produce more code in the end. We might switch to a generator later, but not now

Please note that changes in ProgressBar and explicit use of MDLUpgrade component is needed as a workaround instead of what was before.
It's just some small code share.

And if everything's alright I'll squash it again.

I had to rename MDLUpgrade to MDLComponent to avoid collisions with mdlUpgrade on case-insensitive filesystems.

make sense. :+1:

Finally I coded something. The reason why I don't want to reverse mdlUpgrade and MDLComponent is I don't want to lose this and use workarounds as was in ProgressBar.

I'll merge.. we'll see how it goes like that. Even if I'm not a big fan of the mdlUpgrade implementation, I currently don't have any better solution

Thanks


Made colshapeType an actual readonly

At this very moment, you can apply something to colshapeType.
Which causes an error:
[23:21:01][Error] [V8] Exception at core:file:///C:/alt%20V/Server/[Release]/resources/core/server.js:3328
[23:21:01][Error]           cp.colshapeType = 2 /* Circle */;
[23:21:01][Error]   TypeError: Cannot assign to read only property 'colshapeType' of object '#<ColshapeCircle>'

See wasn't that hard :P


[bug]: Invoke AI not work with Runpod (always disconnected)

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Linux
GPU
cuda
VRAM
No response
What version did you experience this issue on?
3.0.1post3
What happened?
Hi All,
For the first time, I tried to use Invoke. I use the runpod service as there is a docker updated with the last version of invoke.
After the installation (who take 10 minutes), I have access to the interface... BUT impossible to generate something as the button invoke is not active.
But more than that, Impossible to be connected. (Always disconnected).  I checkd the log, but sadly, there is nothing.
I don't know if it's only runpod or all cloud service...
And most important, no idea how to correct. What to change...
any idea ? thanks.
Screenshots
Manage
Help
Pods
Pod Name/ID Filter
Pod Name/ID Filter
GPU Type
GPU Type
Status
Savings
InvokeAI - A Stable Diffusion Toolkit
ID: 7niiskrji9w3mb
1 x A40
4 vCPU 50 GB RAM
ghcr.io/invoke-ai/invokeai:v3.0-latest-cuda
On-Demand - Secure Cloud
Running
10 GB Disk
20 GB Pod Volume
Volume Path: /workspace
HR
734 Mbps
725 Mbps
1870 MBps
Pod Uptime: 3h
12 seconds ago
Pod Utilization
CPU
0%
Mem
3%
Disk Utilization
Container
84%
Volume
37%
GPU Utilization
0
0%
GPU Memory Used
0
0%
$0.79/hr
Note: All pod prices are updated every Sunday at midnight to match standard prices on deploy page.
© RunPod 2023
My Pods
0 matches
2023-08-04T11:30:36.405560739Z Setting up openssh-server (1:8.9p1-3ubuntu0.3) ...
2023-08-04T11:30:36.489294783Z debconf: unable to initialize frontend: Dialog
2023-08-04T11:30:36.489326203Z debconf: (TERM is not set, so the dialog frontend is not usable.)
2023-08-04T11:30:36.489331423Z debconf: falling back to frontend: Readline
2023-08-04T11:30:36.599784210Z
2023-08-04T11:30:36.599816663Z Creating config file /etc/ssh/sshd_config with new version
2023-08-04T11:30:37.691670912Z Creating SSH2 RSA key; this may take some time ...
2023-08-04T11:30:37.700330621Z 3072 SHA256:CB/iEbkzq3qrDgsRNqbYvemq8e/auZ/Ow4BPifYT9iI root@bb63deaa983d (RSA)
2023-08-04T11:30:37.718009254Z Creating SSH2 ECDSA key; this may take some time ...
2023-08-04T11:30:37.726119404Z 256 SHA256:F9IcgkXTw26+9HH0aKcvfMFY1v1RhS0EQcG1kMXLiHY root@bb63deaa983d (ECDSA)
2023-08-04T11:30:37.745244931Z Creating SSH2 ED25519 key; this may take some time ...
2023-08-04T11:30:37.752977715Z 256 SHA256:h024PmQYsNxkY97Dq7EDAW7Rw9hPoTdOf7KXrYaF1/s root@bb63deaa983d (ED25519)
2023-08-04T11:30:37.858858183Z invoke-rc.d: could not determine current runlevel
2023-08-04T11:30:37.863221686Z invoke-rc.d: policy-rc.d denied execution of start.
2023-08-04T11:30:38.020403552Z Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
2023-08-04T11:30:38.020445063Z Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
2023-08-04T11:30:38.269643265Z Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
2023-08-04T11:30:38.525280511Z ~ /opt/invokeai
2023-08-04T11:30:38.529265060Z /opt/invokeai
2023-08-04T11:30:38.555350908Z  * Starting OpenBSD Secure Shell server sshd
2023-08-04T11:30:38.571423945Z    ...done.
2023-08-04T11:30:44.104486059Z [2023-08-04 11:30:44,104]::[InvokeAI]::INFO --> Patchmatch initialized
2023-08-04T11:30:44.203457343Z /opt/venv/invokeai/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be removed in 0.17. Please don't rely on it.
If you check the Developer tools for your browser you'll see errors about mixed content on "http://" endpoint (vs https://).
I solved this using SSH tunneling to the service.
Steps:

Using the invokeai template, replace the docker container command with bash -c 'sleep infinity', this will make sure your container doesn't stop and bypasses all the stuff defined in the invokeai container, also, expose port 22 over TCP
Connect through SSH (over TCP) using ssh -L 9090:localhost:9090<EMAIL_ADDRESS>
cd /opt
source venv/invokeai/bin/activate
export INVOKEAI_ROOT=/workspace
invokeai-configure
invokeai --web

Let me know if you're stuck.

I m sorry, but I m little stuck.
Here what I do.
first I use this image (docker):
InvokeAI - A Stable Diffusion Toolkit
ghcr.io/invoke-ai/invokeai
:v3.0-latest-cuda
there is a official image but impossible for me to build it.
after the server I change the docker command

I launch. In the log I have that (after the download of a lot of thing...):
2023-08-08T02:00:35.449932851-07:00 Setting up python3-distro (1.7.0-1) ...
2023-08-08T02:00:35.579824772-07:00 Setting up openssh-client (1:8.9p1-3ubuntu0.3) ...
2023-08-08T02:00:35.628852231-07:00 update-alternatives: using /usr/bin/ssh to provide /usr/bin/rsh (rsh) in auto mode
2023-08-08T02:00:35.628953382-07:00 update-alternatives: warning: skip creation of /usr/share/man/man1/rsh.1.gz because associated file /usr/share/man/man1/ssh.1.gz (of link group rsh) doesn't exist
2023-08-08T02:00:35.632136370-07:00 update-alternatives: using /usr/bin/slogin to provide /usr/bin/rlogin (rlogin) in auto mode
2023-08-08T02:00:35.632143450-07:00 update-alternatives: warning: skip creation of /usr/share/man/man1/rlogin.1.gz because associated file /usr/share/man/man1/slogin.1.gz (of link group rlogin) doesn't exist
2023-08-08T02:00:35.634984805-07:00 update-alternatives: using /usr/bin/scp to provide /usr/bin/rcp (rcp) in auto mode
2023-08-08T02:00:35.634991885-07:00 update-alternatives: warning: skip creation of /usr/share/man/man1/rcp.1.gz because associated file /usr/share/man/man1/scp.1.gz (of link group rcp) doesn't exist
2023-08-08T02:00:35.641987209-07:00 Setting up ssh-import-id (5.11-0ubuntu1) ...
2023-08-08T02:00:35.768591560-07:00 Setting up xauth (1:1.1-1build2) ...
2023-08-08T02:00:35.771675117-07:00 Setting up openssh-sftp-server (1:8.9p1-3ubuntu0.3) ...
2023-08-08T02:00:35.772960843-07:00 Setting up openssh-server (1:8.9p1-3ubuntu0.3) ...
2023-08-08T02:00:35.840695267-07:00 debconf: unable to initialize frontend: Dialog
2023-08-08T02:00:35.840714927-07:00 debconf: (TERM is not set, so the dialog frontend is not usable.)
2023-08-08T02:00:35.840718537-07:00 debconf: falling back to frontend: Readline
2023-08-08T02:00:35.932364378-07:00
2023-08-08T02:00:35.932385169-07:00 Creating config file /etc/ssh/sshd_config with new version
2023-08-08T02:00:36.135353948-07:00 Creating SSH2 RSA key; this may take some time ...
2023-08-08T02:00:36.140344148-07:00 3072 SHA256:YkGdtSXye9BSgg5/875rzjNg0j5tswsJ6P95c3Aw/i0 root@4e5801c3e4a6 (RSA)
2023-08-08T02:00:36.150582410-07:00 Creating SSH2 ECDSA key; this may take some time ...
2023-08-08T02:00:36.155663972-07:00 256 SHA256:EMM9D9C3KYi3YPMijaM0V1BaNEN1KPUeg/TKWcedQVE root@4e5801c3e4a6 (ECDSA)
2023-08-08T02:00:36.168145892-07:00 Creating SSH2 ED25519 key; this may take some time ...
2023-08-08T02:00:36.172706277-07:00 256 SHA256:NXHviuGO+YnDhsRh7Q96LyHcmLAf5Ta5/MSybwIzTYE root@4e5801c3e4a6 (ED25519)
2023-08-08T02:00:36.245667043-07:00 invoke-rc.d: could not determine current runlevel
2023-08-08T02:00:36.248584468-07:00 invoke-rc.d: policy-rc.d denied execution of start.
2023-08-08T02:00:36.354949076-07:00 Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
2023-08-08T02:00:36.354960366-07:00 Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
2023-08-08T02:00:36.427372247-07:00 Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
2023-08-08T02:00:36.462749382-07:00 ~ /opt/invokeai
2023-08-08T02:00:36.465253572-07:00 /opt/invokeai
2023-08-08T02:00:36.481111843-07:00  * Starting OpenBSD Secure Shell server sshd
2023-08-08T02:00:36.488175828-07:00    ...done.
2023-08-08T02:00:36.491797181-07:00 going to sleep

so it's good as you said. BUT after that...(I use the terminal of runpod eastead of SSH).

In the configuration, I have to delete the key of huffing (--------). If not ->x issue.
I start invoke with invoke --web --host <IP_ADDRESS>  (or simply invoke.py --web, I tried both)
I go to runpod click to run http 9090...
invokeAI is launched

but I still disconnected.
the funny thing is that. If I shutdown the web server

I can still connect to Invoke (but it's still disconnect). so it's seems that I still on the old image.  seems the sleep didn't work ?
I sill to digg but if you have an idea. thanks.

There is also an official runpod template. It's probably better to use that one. Haven't tried it yet so I don't know if this one does work instead of the one you're using.

I tried too. I have exactly the same issue. No connection.
I keep digging on both image.

Yes @e471wo, if you try to connect to the invokeAi Web interface through the link that Runpod provides, it will not work with the current version because of a mix of things. The connection with the invokeAI backend is somehow made over "http" instead of "https" which the browser won't serve. A SSH tunnel bypasses this.
Try doing the same again, but don't use the web console, use the SSH tunnel over TCP:
Here you need to add 22:

And start your pod. After that, on the terminal in your computer, run: ssh -L 9090:localhost:9090<EMAIL_ADDRESS>-p ... -i ~/.ssh/id_... with the correct parameters. Runpod will show you 2 ways to SSH, it's the bottom one.
Important: I recommend generating a separate public key following Runpod's guide and adding that in your profile settings on Runpod.
Then, in that terminal window, run the same commands and once that's done, open "http://localhost:9090" on your local computer browser. InvokeAi should launch and it will work.
I hope this helps. Good luck!

Hi, thanks for your help.
your solution work at home. Just wanted a solution from my job where I have no SSH acces :-D.
I took a month on Invoke.AI, I will see ... (sadly, I thing that 15 euro/month for 300 minuts is ...expensive).
thanks for you help.

Glad I could be of assistance. Those cases where the employer blocks SSH are quite tough indeed. 👀

I've contacted RunPod and they just let me know they're working on a fix.

From the latest release notes, this should have fixed it: https://github.com/invoke-ai/InvokeAI/pull/4116 Trying it out later tonight 🎉

Yeah, they told me the same. Thanks for you help.


Link images to apply page

Currently, explicit click of the apply button is needed to visit the application page. We want to link the images too, so that click there takes the user to the application page as well.

I can look into this

It's yours! ;-)

Hello @pranjal2394 as you have seen, only the white squares are linked and not the whole image. Would you like to try fix it?

@lustoykov This issue is fixed, isn't it?


typslides:1.2.3

I am submitting

[x] an update for a package

This new version of Typslides includes the following changes:

Added functions for colouring text with the different theme colours (i.e., bluey, reddy, greey, yelly, purply, dusky).

Added template/main.typ and thumbnail.png to the project.

Minor documentation changes.

bibliography-slide is now usable via API (see https://github.com/manjavacas/typslides/issues/2, https://github.com/typst/packages/pull/1381#issuecomment-2516876444).

Footnote references are now coloured.

[x] ensured that my package is licensed such that users can use and distribute the contents of its template directory without restriction, after modifying them through normal use.

If you want to properly fix the bibliography issue, you can take a bibliography(...) call instead of just the path to the file as an argument. The file path is resolved relatively to where the bibliography call is made, that's why it has to be done in the user's project and not in your package (from which you can only reference other package files).

If you want to properly fix the bibliography issue, you can take a bibliography(...) call instead of just the path to the file as an argument. The file path is resolved relatively to where the bibliography call is made, that's why it has to be done in the user's project and not in your package (from which you can only reference other package files).

Thank you for the feedback @elegaanz! 😃
So do you refer to something like this?
#let bib = bibliography("bibliography.bib")
#bibliography-slide(bib)

#let bibliography-slide(
  bib-call,
) = {
  set bibliography(title: text(size: 30pt)[References])
  bib-call
}

I have tested it locally and it seems to work. If you can confirm I will add it to this update 👍🏻

Yes, exactly, thank you!


no such table: main.object Object when preparing a DELETE statement

This is a bizarre one.
My application suddenly stopped working, throwing an SqliteError. Further inspection told me that the exception with no such table: main.object Object message get thrown when my code tries to prepare a DELETE statement.
The simplest code that can produce the error is this:
export function del(dbh: SqliteDbh, table: SqlTable<string, string>) {
    const qs = `DELETE FROM ${table.name}`;
    const stmt = dbh.conn.prepare(qs);
    stmt.run([]);
}

I did check that the name property of the table object is sensible and that the actual query looks like, say, DELETE FROM users
The last place I can get with node debugger before the SqliteError gets thrown in the prepare function from wrappers.js
exports.prepare = function prepare(sql) {
	return this[cppdb].prepare(sql, this, false);
};

AFAICT, everything looks perfectly reasonable when the internal prepare function gets called.
I am using similar code to execute SELECTs and INSERTs with no issues. I did rebuild better_sqlite3.node manually to make sure I was not seeing any odd incompatibility issues.

Node 21.6.1
better-sqlite3 9.4.1
@types/better-sqlite3 7.6.9
sqlite3 3.45.1 (from Arch Linux packages)

Any ideas?

There's a Discussions tab for these type of questions now.

Any ideas?

Provide a minimal repro that we can run.

I did check that the name property of the table object is sensible and that the actual query looks like, say, DELETE FROM users

I don't quite believe that, it looks like you are interpolating an object somewhere, producing DELETE FROM [object Object];
sqlite> DELETE FROM [object Object];
Parse error: no such table: object Object

I can't seem to repro this with a trivial case so providing an actual MWE will be tricky.

I did check that the name property of the table object is sensible and that the actual query looks like, say, DELETE FROM users

I don't quite believe that, it looks like you are interpolating an object somewhere, producing DELETE FROM [object Object];
sqlite> DELETE FROM [object Object];
Parse error: no such table: object Object

That is not the error message I'm getting. main.object Object is not the same thing as object Object. Furthermore, I get the same error even if I hardcode the name of the table into the statement.
In fact, if I execute DELETE FROM non_existent_table I get a correct error message. If I replace non_existent_table with a table that actually exists, I get main.object Object in the error string.
As far as I can tell, the source of the error is somewhere in the sqlite3Parser() function when sqlite3 reaches the null terminator of the query string. AFAICT, something odd happens in sqlite3GenerateRowDelete() function so it might actually be a sqlite3 issue.


add george mason

Thank you for contributing!Preview these changesLink expires: Fri Oct  5 14:27:05 UTC 2018Note: it may take a moment for the branch to deploy. Check all pending travis builds have completed

Thank you for contributing!Preview these changesLink expires: Sun Oct  7 07:13:38 UTC 2018Note: it may take a moment for the branch to deploy. Check all pending travis builds have completed

Thank you for contributing!Preview these changesLink expires: Mon Oct  8 14:31:20 UTC 2018Note: it may take a moment for the branch to deploy. Check all pending travis builds have completed


Add User-Agent header to HTTPRequest

Implement #111
Adds header like ZulipAndroid-0.8.9
And upgrade okHttp library dependency

Automated message from Dropbox CLA bot
@kunall17, it looks like you've already signed the Dropbox CLA. Thanks!

See comments about / vs -.
Otherwise lgtm

Thanks @kunall17 !


Adding check for layers with stroke style of no-fill and no-stroke. E…

…ssentially such layer has no visible content and should be considered as non-visible layer.
This fixes a bug where documents does not clip properly if such a kind of layer is present.

reviewing

reviewing


Upgrading to jwst==1.14.0 and Python>=3.10, and bug fixes

This gives us access to the EMI correction step for MIRI data in Stage 1 (introduced in jwst v1.13.4) but requires us to use Python>=3.10. After initial testing on my end, the change in Python version seems to have no consequences, but someone with an Apple Silicon computer should probably run a check. I've also added an extra testing suite: now the code will be tested with and without the PyMC3 optional install which is important as that option continues to fall behind because of that hard upper-limit on the jwst version caused by theano's deprecation and the resulting numpy upper limit.
I also added bug fixes in a couple places. Fixed an incorrect self-import style used in S1, fixed the chi-squared calculation in the case of no masked points (in which case ~lc.flux.mask just gives True which gets treated as a 1 which in turn gives a deeply negative reduced chi-squared value), and added the ability to continue an emcee chain with a subset of the parameters that had been used before.

@kevin218, just had to deal with a merge conflict, and now this is good to go again


Binding to 2 different pods with the same class and pvc+pv have different content for folders

data from pod1
/videos/13 # ls -la
total 1731068
drwxr-xr-x    2 root     root          4096 Sep 22 19:07 .
d---------    3 root     root          4096 Sep 22 18:50 ..
-r--------    1 root     root<PHONE_NUMBER> Sep 22 19:00 Glenelg1663891186515.webm
-r--------    1 root     root      23264043 Sep 22 19:07 how-to-cut1663891658916.webm

data from pod2
root@av-reader-d9b95fbc4-s88xk:/videos/13# ls -la
total 22728
drwxr-xr-x 2 root root     4096 Sep 21 23:34 .
drwxr-xr-x 4 root root     4096 Sep 21 23:34 ..
-r-------- 1 root root 23264043 Sep 21 23:34 how-to-cut1663803267024.webm
root@av-reader-d9b95fbc4-s88xk:/videos/13#

apiVersion: v1
kind: PersistentVolume
metadata:
  name: openebs-pv-video
spec:
  capacity:
    storage: 9Gi
  accessModes:
    # ReadWriteMany(RW from multi nodes), ReadWriteOnce(RW from a node), ReadOnlyMany(R from multi nodes)
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  volumeMode: Filesystem
  storageClassName: cstor-csi      #
  hostPath: #we can use this only ib debug mode
    path: "/videos"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  # any PVC name
  name: openebs-pvc-video
spec:
  accessModes:
    # ReadWriteMany(RW from multi nodes), ReadWriteOnce(RW from a node), ReadOnlyMany(R from multi nodes)
    - ReadWriteMany
  storageClassName: cstor-csi  #must match with pv storage class
  volumeMode: Filesystem
  resources:
    requests:
      storage: 9Gi

Description

Not sure what I am doing wrong, I used to have Ceph and don't see problems like that.
Later I made both pv and PVC the same ReadWriteMany and after scaling 'ag' I can see the same files...but from another deployment 'av' pods, still empty...After scaling other deployments 'av' up to 2 one pods can see files, other is still empty
Expected Behavior

Files systems must be synchronized. Please fix it asap. I need to start service on October 1
Current Behavior

Possible Solution

Steps to Reproduce

Screenshots

Your Environment

kubectl get nodes:

NAME         STATUS                     ROLES           AGE    VERSION
fromkos-01   Ready,SchedulingDisabled   control-plane   33d    v1.24.4
fromkos-02   Ready                                33d    v1.24.4
fromkos-04   Ready                                5d8h   v1.24.3
fromkos-05   Ready                                33d    v1.24.4
fromkos-06   Ready                                30d    v1.24.4
fromkos-07   Ready                                33d    v1.24.4

kubectl get pods --all-namespaces:

default         ag2-77d7f54fc7-nk5sf                                              1/1     Running            0                 52m
default         av-reader-d9b95fbc4-s88xk                                         1/1     Running            0                 13m
default         fromkos-lb-7b4f9888cf-8zr2z                                       1/1     Running            0                 22m
default         fromkos1-75f64974f4-zqrz6                                         1/1     Running            0                 2d1h
default         fromkos2-5b98cf8c65-qlfnh                                         1/1     Running            0                 2d2h
default         postgres-database-0                                               1/1     Running            0                 5d3h
default         rsyslog-8598b8df69-jhxkz                                          1/1     Running            11                5d9h
ingress-nginx   ingress-nginx-admission-create-f2pm6                              0/1     Completed          0                 33d
ingress-nginx   ingress-nginx-controller-6dc865cd86-8lz89                         1/1     Running            11                5d9h
kube-system     coredns-df887664c-m6tkq                                           1/1     Running            3                 35h
kube-system     coredns-df887664c-rx5kx                                           1/1     Running            0                 35h
kube-system     etcd-fromkos-01                                                   1/1     Running            14                33d
kube-system     kube-apiserver-fromkos-01                                         1/1     Running            93                33d
kube-system     kube-controller-manager-fromkos-01                                1/1     Running            3                 33d
kube-system     kube-proxy-89jbv                                                  1/1     Running            10                5d8h
kube-system     kube-proxy-8nshv                                                  1/1     Running            17                33d
kube-system     kube-proxy-dvf5r                                                  1/1     Running            8                 30d
kube-system     kube-proxy-swjqk                                                  1/1     Running            26                33d
kube-system     kube-proxy-v74lf                                                  1/1     Running            1                 33d
kube-system     kube-proxy-z2jvt                                                  1/1     Running            1                 33d
kube-system     kube-scheduler-fromkos-01                                         1/1     Running            3                 33d
kube-system     weave-net-6f42z                                                   2/2     Running            34                33d
kube-system     weave-net-bd99q                                                   2/2     Running            3 (25d ago)       33d
kube-system     weave-net-f9qkn                                                   2/2     Running            53                33d
kube-system     weave-net-rpjqm                                                   2/2     Running            19 (5d8h ago)     28d
kube-system     weave-net-wxkss                                                   2/2     Running            3                 33d
kube-system     weave-net-x8q76                                                   2/2     Running            21                5d8h
openebs         cspc-operator-9c5b677fd-fb9f9                                     1/1     Running            1                 32d
openebs         cstor-storage-mtbs-7d4775b475-5d8x6                               3/3     Running            0                 5d9h
openebs         cstor-storage-x8d7-d88dc9c6-gbfk9                                 3/3     Running            3                 64m
openebs         cvc-operator-79ff448f8-sd2bj                                      1/1     Running            1                 32d
openebs         openebs-cstor-admission-server-54d66cd75d-2z6rb                   1/1     Running            1                 32d
openebs         openebs-cstor-csi-controller-0                                    6/6     Running            7                 32d
openebs         openebs-cstor-csi-node-78z7l                                      2/2     Running            2                 33d
openebs         openebs-cstor-csi-node-8klvq                                      2/2     Running            34                33d
openebs         openebs-cstor-csi-node-p7fsx                                      2/2     Running            16                30d
openebs         openebs-cstor-csi-node-t5grp                                      2/2     Running            20                5d8h
openebs         openebs-cstor-csi-node-vhmrq                                      2/2     Running            52                33d
openebs         openebs-localpv-provisioner-dd977fdd5-zbm5w                       1/1     Running            50                32d
openebs         openebs-ndm-6mq68                                                 1/1     Running            19 (40m ago)      5d8h
openebs         openebs-ndm-cluster-exporter-768c998b94-bx5lq                     1/1     Running            11                5d9h
openebs         openebs-ndm-fr7tq                                                 1/1     Running            13 (5d8h ago)     30d
openebs         openebs-ndm-gqstb                                                 1/1     Running            8 (38m ago)       44h
openebs         openebs-ndm-jnnvs                                                 1/1     Running            2 (25d ago)       33d
openebs         openebs-ndm-node-exporter-2tbcn                                   1/1     Running            17                33d
openebs         openebs-ndm-node-exporter-6lpdp                                   0/1     CrashLoopBackOff   235 (2m23s ago)   43h
openebs         openebs-ndm-node-exporter-6snd2                                   1/1     Running            1                 33d
openebs         openebs-ndm-node-exporter-95dgc                                   1/1     Running            26                33d
openebs         openebs-ndm-node-exporter-k4djv                                   1/1     Running            8                 30d
openebs         openebs-ndm-operator-6b4dc87588-wwtk4                             1/1     Running            1                 27d
openebs         openebs-ndm-tbmdd                                                 1/1     Running            10 (40m ago)      41h
openebs         pvc-397b45d8-e2da-48cd-a108-962adb18cd7b-target-754cdd8dcbgrkll   3/3     Running            0                 5d
openebs         pvc-40184bf4-341d-4d64-82af-d99e0fa3e134-target-7bf7787f676pcvr   3/3     Running            0                 5d4h
openebs         pvc-495cc235-1107-45b0-bd33-0aec5bf4c14e-target-85699c8c4fk2fgk   3/3     Running            0                 5d
openebs         pvc-c11fa256-8bc4-48e2-bfba-e0574c756804-target-7cc5d9d97df5xgf   3/3     Running            0                 35h
openebs         pvc-f3824b12-e035-441d-9219-cebb8f5d8000-target-fff5bb6d-9gbmt    3/3     Running            0                 5d

kubectl get services:

NAME                    TYPE           CLUSTER-IP       EXTERNAL-IP    PORT(S)                      AGE
ag2-service             ClusterIP      <IP_ADDRESS>            8080/TCP                     35h
av-reader-service       ClusterIP      <IP_ADDRESS>            8000/TCP                     14m
fromkos-lb              LoadBalancer   <IP_ADDRESS>    <IP_ADDRESS>   443:31697/TCP,80:31311/TCP   27d
fromkos1                ClusterIP      <IP_ADDRESS>             80/TCP                       27d
fromkos2                ClusterIP      <IP_ADDRESS>            80/TCP                       27d
kubernetes              ClusterIP      <IP_ADDRESS>                 443/TCP                      33d
postgres-loadbalancer   ClusterIP      <IP_ADDRESS>            5432/TCP                     5d3h
rsyslog-service         ClusterIP      <IP_ADDRESS>            514/TCP,514/UDP              28d

kubectl get sc:

cstor-csi (default)   cstor.csi.openebs.io   Delete          Immediate              true                   33d
openebs-device        openebs.io/local       Delete          WaitForFirstConsumer   false                  33d
openebs-hostpath      openebs.io/local       Delete          WaitForFirstConsumer   false                  33d

kubectl get pv:

NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM                                  STORAGECLASS   REASON   AGE
openebs-pv-video                           9Gi        RWX            Retain           Available                                          cstor-csi               31m
pvc-40184bf4-341d-4d64-82af-d99e0fa3e134   1Gi        RWO            Delete           Bound       default/pvc-data-postgres-database-0   cstor-csi               5d4h
pvc-c11fa256-8bc4-48e2-bfba-e0574c756804   9Gi        RWO            Retain           Bound       default/openebs-pvc-video              cstor-csi               36h

kubectl get pvc:

NAME                           STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
openebs-pvc-video              Bound    pvc-c11fa256-8bc4-48e2-bfba-e0574c756804   9Gi        RWO            cstor-csi      36h
pvc-data-postgres-database-0   Bound    pvc-40184bf4-341d-4d64-82af-d99e0fa3e134   1Gi        RWO            cstor-csi      5d4h

OS (from /etc/os-release):

Kernel (from uname -a):

different pods have Linix or Ubuntu different versions

Install tools: kubeadm

Others: I am using 'crio'

@goodidea-kp readwrite many is not supported by cstor storage engine.

https://openebs.io/docs/concepts/rwm

@goodidea-kp you need to use dynamic nfs provsioner if you want to use readwritemany (see this https://github.com/openebs/dynamic-nfs-provisioner). Cstor does not support readwritemany.


Broken Yahoo API calls in 'by_coin' notebooks

Yahoo API calls using pandas_datareader.DataReader are broken.
These calls should be replaced with an import of from yahoo_fin.stock_info import get_data in the import section and an API call of base_df = get_data(f'{crypto_currency}-{against_currency}', start, end, index_as_date = True, interval = '1d') to load the data.

Congratulations! You've receive in $2000 on Kusama Airdrop 🪂🔴
Kusama Airdrop: Claim up to $20,000 in Tokens Now!
→ Earn rewards on connect you wallet
→ Claim Your $KSM Today
Connect your wallet, follow the instructions, and claim this exclusive airdrop from Kusama. For GitHub users only—share with friends to make it eligible. Redeem your reward first.

🚀 Claim Your Bonus Now! Check Eligibility
Access the Kusama platform and connect your wallet securely.


Integration tests: Version specified in engines.vscode (*) is not specific enough

I think these may be new, seeing them in our integration tests (remote) and local:
https://dev.azure.com/monacotools/Monaco/_build/results?buildId=167467&view=logs&j=672276a2-8d3a-5fab-615d-090c51352f92&t=6e7e74bd-a473-53b1-acea-ad5f8c1f1ec9&l=516
https://dev.azure.com/monacotools/Monaco/_build/results?buildId=167467&view=logs&j=672276a2-8d3a-5fab-615d-090c51352f92&t=6a86faf8-ed15-56db-877e-46756fb8e8fa&l=715
[9568:0420/172929.807:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/grunt]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.808:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/gulp]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.809:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/jake]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.827:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/vscode-colorize-tests]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.918:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/grunt]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.918:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/gulp]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.918:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/jake]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.929:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/vscode-colorize-tests]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.941:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/grunt]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.941:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/gulp]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.944:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/jake]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.951:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/vscode-colorize-tests]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.956:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/grunt]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.957:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/gulp]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.959:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/jake]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172929.974:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/vscode-colorize-tests]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.036:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/grunt]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.037:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/gulp]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.039:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/jake]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.047:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/vscode-colorize-tests]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.448:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/grunt]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.450:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/gulp]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.452:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/jake]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.472:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/vscode-colorize-tests]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.690:INFO:CONSOLE(29)] "%c INFO color: #33f Starting worker process with pid 6632 (type: fileWatcher, window: 1).", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.711:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/grunt]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.712:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/gulp]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.715:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/jake]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)
[9568:0420/172930.729:INFO:CONSOLE(29)] "%c  ERR color: #f33 [/D:/a/_work/1/s/extensions/vscode-colorize-tests]: Version specified in `engines.vscode` (*) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.", source: vscode-file://vscode-app/d:/a/_work/1/VSCode-win32-x64/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (29)

The way we are running these tests causes quite some problems. We are running tests for builtin extensions but we don't identify them as builtin extensions because they are on disk outside of the built vscode (which makes sense, because we don't want to ship tests with vscode). But we now need to do all kinds of workarounds, like allowing proposed API via the command line e.g. https://github.com/microsoft/vscode/issues/146172 , or now we would need to disable or suppress engine validations, which I don't think we really want to do.
@sandy081 Should we have a way to mark the extension currently being developed as builtin? Do you already have a low hanging mechanism for this?

@alexdima How about marking extension under development as builtin if the extension is located under builtin extensions location? I assume these extensions running tests are in the same folder as other builtin extensions?

I assume these extensions running tests are in the same folder as other builtin extensions?

No. That is the root problem. We build vscode to e.g. ~/src/VSCode-darwin and we launch the tests from the vscode checkout location e.g. ~/src/vscode. So we just see --extension-development pointing to a folder outside the builtin extensions. But maybe we could look if it overwrites a builtin extension, it should get the builtin flag set.

Interesting, we're already doing that -- https://github.com/microsoft/vscode/blob/3f557f2d39e4a94a0c6ba133e3058298cab2c2a0/src/vs/workbench/services/extensions/common/extensionsUtil.ts#L39-L40

Got it.

But maybe we could look if it overwrites a builtin extension, it should get the builtin flag set.

At present we are scanning builtin, user and extensions under development in parallel. This means we have to read builtin extensions first and pass them as input to reading extensions under development. I think this is ok as scanning extensions under development is not a common scenario.

This means we have to read builtin extensions first and pass them as input to reading extensions under development.

:+1: Nice idea! Would you want to do it? We could then also remove all these ugly arguments of --enable-proposed-api from here.

Sure, will do it.

Fixed. Under dev extensions will take existing extension type if exist. So built in extensions running integration tests in the build will have built-in extension type and therefore we do not need to set --enable-proposed-api flag in the integration test scripts. So, I also removed this flag from the scripts.
Here is the build https://dev.azure.com/monacotools/Monaco/_build/results?buildId=169064&view=results with these changes.

Fixed by https://github.com/microsoft/vscode/commit/05b9eddd4bdd3eacab8c4d5ee195ce11b05c5d0f


Understanding computer network services

Understanding computer network services
Proposed article introduction
Network service is an operand in the network provided by a server. The application runs at the network
application layer and above, and include; IP addressing, Domain Name System (DNS), Internet access,
security products (firewalls), primary domain service, web content filtering, VPN termination and
intrusion prevention systems (IPS), and the tools to support these services.
A server component for each service is usually run on one or more computers which is accessed via a network by client components running on other devices. Clients and servers often have a user interface
and sometimes other hardware associated with it.
In this context we are going to cover :

Basic Network Design Requirements
Scaling a network
Network services and their functions (DHCP, DNS, File Server Services, Printing, Authentication,
etc)
Automatic Network Services
Configuring Network Services.

Key takeaways
i. The reader should understand the basics in designing a computer network.
ii. The reader should be able to figure out factors to consider when scaling a network.
iii. The reader should be able to understand the different network services and their functions.
iv. The reader should be able to understand configuration of the network services

Article quality
This article will provide an in-depth tutorial on how a network can be developed from scratch and the services that will be provided by the network. Unlike other articles, this article will explain definitively the concepts surrounding network authentication, file server services and DHCP.  In addition, it will show illustratory diagrams clearly explaining the concept in question.
References
Please list links to any published content/research that you intend to use to support/guide this article.
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

I'm going to close this topic due to inactivity.
It can be reopened.


RuntimeError: asyncio.run() Conflict When Executing 'run_sync' Example in Jupyter Issue with Example Code Execution in Jupyter Lab: asyncio RuntimeError

from pydantic_ai import Agent, RunContext
from pydantic_ai.models.openai import OpenAIModel

model = OpenAIModel('gpt-4o', api_key=api_key)

roulette_agent = Agent(
    model=model,
    deps_type=int,
    result_type=bool,
    system_prompt=(
        'Use the `roulette_wheel` function to see if the '
        'customer has won based on the number they provide.'
    ),

)

@roulette_agent.tool
async def roulette_wheel(ctx: RunContext[int], square: int) -> str:
    """check if the square is a winner"""
    return 'winner' if square == ctx.deps else 'loser'

# Run the agent
success_number = 18
result = roulette_agent.run_sync('Put my money on square eighteen', deps=success_number)
print(result.data)
#> True

result = roulette_agent.run_sync('I bet five is the winner', deps=success_number)
print(result.data)
#> False

ye, if you're inside a running event loop, you'll need to use await agent.run().
maybe we could add an even more explicit error.

Thanks for the response,
from pydantic_ai import Agent
agent = Agent(model=model)
result_sync = agent.run_sync('What is the capital of Italy?')
print(result_sync.data)
#> Rome
async def main():
result = await agent.run('What is the capital of France?')

Every Example is working fine when we run as python file but not running while running in jupyter lab cells

It makes your code much easier to read if you format code as python.
If Jupyter runs code inside an async context, you'll need to use await agent.run(...), not agent.run_sync(...) everywhere.


Strange interaction between unification variables and lambdas

Gist demonstrating the issue: https://gist.github.com/plt-amy/a6d38244540ce1c4f5d928c164c6dcbc
Try applying the pi-elim rule; You'll see that the first goal we obtain is for a derivation of
p : (Π (? a A p) (x. T a))

rather than the
p : (Π (? a A p) (x. T (? a A p x)))

I would expect. I wish I could be more specific about the title.

Hi Amelia, thanks for trying Holbert.
The solver Holbert uses is based on pattern unification and the pi-elim rule you have there is not in pattern form in the conclusion. This means that Holbert is picking the wrong solution for the metavariable B, resulting in a different goal than what you want.
However, because this is a common pattern with elimination rules specifically, we have some special case logic for them. Rather than applying the elimination rule as an introduction rule, explicitly eliminate the assumption you want (assumption 0) by clicking on it in the side bar and then selecting the relevant rule. This completes the unification correctly.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target-new/pull/17 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target-new.git

Docs Build status updates of commit 4cbcea5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

archvieSourceFolder/TOC.yml
:white_check_mark:Succeeded

archvieSourceFolder/content/someContent.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Can we use this plugin to scan project source code (Java, .Net, Nodejs)

Is it possible to scan project source code with this plugin ? Let's say I have a project whose source code is written in Java, can I use this plugin to scan that source code ? Just like -
select
secret_type,
secret,
line,
col
from
code_secret
where
src = Directory of my code base
If this feature is not available, is there any possibility to add support for it ?

Hey @ravindrakmr
I don't think at the current time it supports passing a directory into the src input.
That said, it is a good suggestion to allow for passing a directory and scanning the files within.
In the meantime as potential workaround since you can pass the file contents into src (based on examples) you could always wrap a script around the CLI command to iterate each file and check them, or have this build a SQL query that unions the results together which you can then run.

Hey, @ravindrakmr, did the above workaround work for you? This item is still currently in our backlog. We're unsure exactly when the feature will be added to the plugin. Still, we'll leave the issue open in the meantime (we'd also appreciate any PRs if anyone wants to try developing the feature!).

Hello @ravindrakmr, we hope this message finds you well. We noticed that there hasn't been any recent activity on this issue, so we're planning to close it, for now, to help keep our records up to date. However, please don't hesitate to reopen it if you have any additional questions or if there's anything more we can assist you with. Thank you for your understanding.


Bump to 1.51.1

Bot didn't catch it

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Updated cost for service in intro paragraph

Updated description on cost for AVD service with link to AVD pricing

Learn Build status updates of commit dc7450f:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/scenarios/wvd/eslz-business-continuity-and-disaster-recovery.md
:warning:Warning

Details

docs/scenarios/wvd/eslz-business-continuity-and-disaster-recovery.md

Line 15, Column 198: [Warning: hard-coded-locale - See documentation] Link 'https://azure.microsoft.com/en-us/pricing/details/virtual-desktop/' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@igorpag

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

Note that the validation suggestion concerning the locale in the link, will need be fixed before this can be merged.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@Jak-MS sorry for the mistake, I can review this.
@moisesjgomez if you want to reopen, I would be more than happy to review and approve.
Thanks.


Your downloads section always enabled.

Environment
Docker
Version
v0.7.2
Describe the problem
Download Category is shown even if no download clients are found.
This section should be hidden if it is not used.
It only gets displayed if another category was created so it's probably a bug.
Additional info

Please tick the boxes

[X] You've read the docs
[X] You've checked for duplicate issues
[X] You've tried to debug yourself

Hello yes this is a bug it was fixed on dev and will be released with v0.7.3
I will probably release it when I get some more advancement on docker integration or in one or two bug fixes.
Sorry for the trouble !

Awesome! I switched from Heimdall to this because Heimdall was too bloated. Really enjoying it so far! Keep it up! And no need to apologize (:

Awesome! I switched from Heimdall to this because Heimdall was too bloated. Really enjoying it so far! Keep it up! And no need to apologize (:

Thank you very much ! If you have features suggestions or ideas you'd like to see you can send an issue


win-9 is dead.

Is there an existing issue for this?

[X] I have searched the existing infra issues

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
win-9 is dead.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Network adapter disabled by itself, rebooting machine to restart network service.


Store the required docker image in private registry when execute "sealer build"

Issue Description
Type: feature request
Describe what feature you want
we need to build the users required docker image into base image when execute "sealer build",then users should only pull images from private registry embedded in base image when they use sealer to create a cluster.
preliminary workflow : when execute "sealer build" ,use docker pull to pull required images from outside public registry,then push those images to our pirvate registry.

this feature is related to issue #859


Flutter plugins assume that there will be an Activity available at registration

If android_alarm_manager is being used, it will try to register all plugins at Application.onCreate, right?
If so, cloud_firestore, firebase_database and in_app_purchase will get a null reference to the activity, right?

duplicated https://github.com/FirebaseExtended/flutterfire/issues/19

Hello @kroikie
is this issue still meant to be open?

No looks like we can close this since it is a dup of #19


GUI/v2 - Map widget (Selection of devices / attributes and BLUE widget)

I'm submitting a ...

[X] bug report
[ ] feature request
[ ] support request

Do you want to request a feature or report a bug?
Report bug

What is the current behavior?
Widget map está ficando azul

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

1 ° GUI - v1 Create 2 device geo and publish data.
** mosquitto_pub -h localhost -p 1883 -t admin:d66ba3/attrs -m '{ "test": "-22.742123, -47.365935"}' -q 1 -u admin:d66ba3 **
** mosquitto_pub -h localhost -p 1883 -t admin:4740a3/attrs -m '{ "geov2": "-22.772738, -47.394614" }' -q 1 -u admin:4740a3
**

2 ° Create a map widget in GUI v2, select one of the created devices.

3°  Edit created widget, and select another device.

Uncheck the previous option ex: GEo and select the new device ex: geo2.

** ERROR ** When showing list, previous attribute is still found ex: GEo.

** Two coordinates are found on the map, but only one should appear.

4 ° GUI - V1: Remove device created earlier ex: GEo.

5º Go back to GUI - v2 and reload page, widget turns blue.

What is the expected behavior?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Version: 0.6.0
Environment: [docker-compose, Kubernetes]
Operating system: [Ubuntu 18.04]

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

The map is at coordinates 0,0. It's ok. Won't be fix.


[KeyVault] Make inherit better

API change check for Azure.ResourceManager.KeyVault
API changes have been detected in Azure.ResourceManager.KeyVault. You can review API changes here