CLI commands of MaterialX viewer cause dock icon to appear on macOS

Using the CLI of the MaterialX viewer show the dock icon for a few seconds.

Especially async batch scripts cause the dock to look like this:

Example usage to bake a texture:
$ bin/MaterialXView --material test.mtlx --bakeFilename ~foo.mtlx

@seb-mtl Thanks for reporting this, and it sounds like our command-line handling of the MaterialX viewer could be cleaned up.  In our own production usage, we instead focus on Python scripts for MaterialX texture baking, and that's another option that you might consider:
https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/python/Scripts/baketextures.py
This approach gives you more control over the texture baking options, and it removes all of the overhead associated with launching an application and then shutting it down again.

Interestingly this also happens with baketextures.py, but now the Dock Icon of Python.app(see full path below) shows up. I execute the script through the Terminal (left icon, and while the texture is baked the right icon appears).
I probably have some time next week to dig into it.

<EMAIL_ADDRESS>

Here is a quick update. The dock icon is created by the following function call in the Python script:
https://github.com/AcademySoftwareFoundation/MaterialX/blob/41c5834fbc9de99c5c312262365f37056e4c65f1/python/Scripts/baketextures.py#L55
This eventually results in executing NSApplicationLoad(); which creates the additional icon.
https://github.com/AcademySoftwareFoundation/MaterialX/blob/41c5834fbc9de99c5c312262365f37056e4c65f1/source/MaterialXRenderHw/WindowCocoaWrappers.m#L19-L25
Callstack
#0	WindowCocoaWrappers.m:28
#1	MaterialX_v1_38_4::SimpleWindow::initialize
#2	MaterialX_v1_38_4::GlslRenderer::initialize
#3	MaterialX_v1_38_4::TextureBaker::TextureBaker
#4	MaterialX_v1_38_4::TextureBaker::TextureBaker
#5	MaterialX_v1_38_4::TextureBaker::create
#6	baketextures.py:55

@bernardkwok You added NSApplicationLoad(), is this also needed when executed through the Python API?

Hi @seb-mtl,
Thanks for tracing this through.
This was written a long time ago for command line testing (and wasn't ever wrapped through a Python wrapper) so would need to take a look.
( BTW, is this your post? https://developer.apple.com/forums/thread/703527 ?)
Believe generalized non-OpenGL based baking is something on queue, or at least the bake API should be generalized @jstone-lucasfilm (As mentioned at the last TSC ?) but that's a bit orthogonal as if another command line render is called this same symptom may also show up.

@kwokcb Great catch :-) .. and thanks for the background info! I am trying to reproduce the issue with a minimal CLI example to understand what's happening. I haven't used the Cocoa API yet in a pure CLI app so my expertise is limited in this regard and figured the guys in the Apple forum could shed some light on the issue.

@sebastianrath I'll mark this issue as resolved now that #1132 has been merged to main, but let us know if you run into similar issues in the future.


feat(tagsInput): Add onTagClicked callback

Add an option for the user to set a callback in case a tag was clicked.
This feature is important because it allows the user to implement a filtering mechanism
of a list of tagged items by a specific tag when a tag is clicked.
No open issue.

Any update on this? Would be amazing to have this!

My 2c, we're using it and it's working just fine. We value this one over #183 if that's worth anything.

There is also this non-PR solution that utilizes a new tag template and directive on the ng-tags-input http://stackoverflow.com/questions/29851027/ng-tags-input-on-tag-click-handler-is-there-a-better-way/29851028#29851028

@jusopi - That's exactly the solution I was trying to avoid with this PR.
@mbenford - Check this out :-)

@kerkero I much prefer your solution but waiting on the PR actually being pulled.
I didn't realize what I have always called 'paralyzed by indecision' actually has an official name/definition.

@kerkero Thanks for the link. While that certainly happens to me (and I guess to everyone) from time to time, it's hardly the case here. Truth is my free time is very limited and I try my best to keep this project going. Sometimes I can address people's requests in a timely fashion, sometimes I can't. It happens.
I'll try to review this and other open pull requests next weekend.

Have a look at this PR https://github.com/mbenford/ngTagsInput/pull/445, it works exactly as the $removeTag feature, so It shouldn't have much to think about the implementation


Dolly Dupe from ender utilities

https://github.com/maruohon/enderutilities/issues/101

https://github.com/maruohon/enderutilities/issues/45

Hey, can you test the fix for me?
mod inside.zip

Yes this resolved the issue thanks.


Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length."

I can open this webpage normally, and can copy photos to display, but when inserting photos, it prompts "Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length."

workaround: downgrade numpy to 1.26.0.
pending fix

After I made an error in the environment configuration, I modified the environment configuration to work properly like this:
aiohappyeyeballs   2.3.4       Happy Eyeballs for asyncio
aiohttp            3.10.0      Async http client/server framework (asyncio)
aiosignal          1.3.1       aiosignal: a list of registered asynchronous callbacks
asttokens          2.4.1       Annotate AST trees with source code positions
attrs              23.2.0      Classes Without Boilerplate
blinker            1.8.2       Fast, simple object-to-object and broadcast signaling
certifi            2024.7.4    Python package for providing Mozilla's CA Bundle.
charset-normalizer 3.3.2       The Real First Universal Charset Detector. Open, modern and actively maintained alterna...
click              8.1.7       Composable command line interface toolkit
colorama           0.4.6       Cross-platform colored terminal text.
comm               0.2.2       Jupyter Python Comm implementation, for usage in ipykernel, xeus-python etc.
datasets           2.14.4      HuggingFace community-driven open-source library of datasets
debugpy            1.8.2       An implementation of the Debug Adapter Protocol for Python
decorator          5.1.1       Decorators for Humans
dill               0.3.7       serialize all of Python
evaluate           0.4.2       HuggingFace community-driven open-source library of evaluation
executing          2.0.1       Get the currently executing AST node of a frame, and other information
filelock           3.15.4      A platform independent file lock.
flask              3.0.3       A simple framework for building complex web applications.
flask-cors         4.0.1       A Flask extension adding a decorator for CORS support
frozenlist         1.4.1       A list-like structure which implements collections.abc.MutableSequence
fsspec             2024.6.1    File-system specification
huggingface-hub    0.24.5      Client library to download and publish models, datasets and other repos on the huggingf...
idna               3.7         Internationalized Domain Names in Applications (IDNA)
ipykernel          6.29.5      IPython Kernel for Jupyter
ipython            8.26.0      IPython: Productive Interactive Computing
itsdangerous       2.2.0       Safely pass data to untrusted environments and back.
jedi               0.19.1      An autocompletion tool for Python that can be used for text editors.
jinja2             3.1.4       A very fast and expressive template engine.
jiwer              3.0.4       Evaluate your speech-to-text system with similarity measures such as word error rate (WER)
jupyter-client     8.6.2       Jupyter protocol implementation and client libraries
jupyter-core       5.7.2       Jupyter core package. A base package on which Jupyter projects rely.
markupsafe         2.1.5       Safely add untrusted strings to HTML/XML markup.
matplotlib-inline  0.1.7       Inline Matplotlib backend for Jupyter
mpmath             1.3.0       Python library for arbitrary-precision floating-point arithmetic
multidict          6.0.5       multidict implementation
multiprocess       0.70.15     better multiprocessing and multithreading in Python
nest-asyncio       1.6.0       Patch asyncio to allow nested event loops
networkx           3.3         Python package for creating and manipulating graphs and networks
numpy              1.26.0      Fundamental package for array computing in Python
opencv-python      <IP_ADDRESS>   Wrapper package for OpenCV python bindings.
packaging          24.1        Core utilities for Python packages
pandas             2.2.2       Powerful data structures for data analysis, time series, and statistics
parso              0.8.4       A Python Parser
pillow             10.4.0      Python Imaging Library (Fork)
platformdirs       4.2.2       A small Python package for determining appropriate platform-specific dirs, e.g. a `user...
prompt-toolkit     3.0.47      Library for building powerful interactive command lines in Python
psutil             6.0.0       Cross-platform lib for process and system monitoring in Python.
pure-eval          0.2.3       Safely evaluate AST nodes without side effects
pyarrow            17.0.0      Python library for Apache Arrow
pygments           2.18.0      Pygments is a syntax highlighting package written in Python.
python-dateutil    2.9.0.post0 Extensions to the standard Python datetime module
python-dotenv      1.0.1       Read key-value pairs from a .env file and set them as environment variables
pytz               2024.1      World timezone definitions, modern and historical
pywin32            306         Python for Window Extensions
pyyaml             6.0.1       YAML parser and emitter for Python
pyzmq              26.0.3      Python bindings for 0MQ
rapidfuzz          3.9.5       rapid fuzzy string matching
regex              2024.7.24   Alternative regular expression module, to replace re.
requests           2.32.3      Python HTTP for Humans.
safetensors        0.4.3
six                1.16.0      Python 2 and 3 compatibility utilities
stack-data         0.6.3       Extract data from python stack frames and tracebacks for informative displays
sympy              1.13.1      Computer algebra system (CAS) in Python
tokenizers         0.19.1
torch              2.4.0       Tensors and Dynamic neural networks in Python with strong GPU acceleration
tornado            6.4.1       Tornado is a Python web framework and asynchronous networking library, originally devel...
tqdm               4.66.4      Fast, Extensible Progress Meter
traitlets          5.14.3      Traitlets Python configuration system
transformers       4.43.3      State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow
typing-extensions  4.12.2      Backported and Experimental Type Hints for Python 3.8+
typst              0.11.1      Python binding to typst
tzdata             2024.1      Provider of IANA time zone data
urllib3            2.2.2       HTTP library with thread-safe connection pooling, file post, and more.
wcwidth            0.2.13      Measures the displayed width of unicode strings in a terminal
werkzeug           3.0.3       The comprehensive WSGI web application library.
xxhash             3.4.1       Python binding for xxHash
yarl               1.9.4       Yet another URL library

Complete by #3c38183


Inactive users repo: automate as much as possible

There is currently a large amount of manual steps involved with the current inactive users process.
Task
Automate as much as possible in this process. Specifically see if there is a GH API to get the dormant users from GitHub, utilise Notify to send out emails from code, check each user in the ignore list to see if they are still present on the GH Org and if not raise a slack message so we can do the leavers process on that user, check each user in the ignore list has been active on the GH Org, if a user is true for the last two checks then create a PR to update the list on the repository, the automation should create a list of users to email via Notify and store this in a file locally, the automation should wait three weeks and then get a new dormant user list from GH, check if any new user names are reported and ignore these users in this part of the process, the code should load the saved file and compare the list of users to see which users are still inactive and remove them. Once the user has been removed use Notify again to email the user to say we have removed them and to contact the team ideally on slack with their gh username within 90 days to get their previous settings back.
During the first and second run of the automation users who get in contact with the team could ask to be added to the ignore list, this would be a manual step to add the user, this ensures the user is not removed.
Users that are on any type of leave will need to be added to the ignore list as well.
These are the manual steps:

Ask Tony for the dormant users export file from GH
Locally check out the repo
Rename the file from Tony as dormant.csv
Go though process to get the file onto the main branch via PR
In the repo GH action: https://github.com/ministryofjustice/inactive-users/actions/workflows/delete-dormant-users.yml run the workflow manually with false
After the action is finished open the CI logs, go to the section with a paragraph of email addresses
If any emails look like bot accounts, add these to the allow list in the python file
Copy and paste the email addresses into a new email as blind CC (bcc)
Apply the email template for MoJ Org or AS Org depending on which org working on, set a date for 2 or 3 weeks from now to log in, send out the email
See if any emails bounce. If so remove those users and do a leavers process check on them
Expect emails over the next 2 or 3 weeks, and reply to these users. If any email report the user is on any type of leave add these users to the allow list. If a user asks to be put on the allow list, add these users to the allow list in the python file: https://github.com/ministryofjustice/inactive-users/blob/main/scripts/python/delete-dormant-users.py
Wait the 2 or 3 weeks.
Repeat steps 1 to 6.
Look at the list of usernames in the GH action CI log. Compare this list manually with the list of users in step 6.
If there are new usernames in step 13, create a branch and add these users into the allow list
Repeat step 5 but this time select your new branch and set the value to true. This will remove the users who GH think is dormant.
The branch can now be deleted
Expect emails from the users that have been removed over the next few weeks / months, asking to be added back into the MoJ, they will state they logged in, missed the email, etc. The user needs to provide their GH login to get the same previous access settings. If add them back using the email address GH treats it as a new user all over again.

New using Notify from step 8 to 10:

From step 8 get the list into a vertical .csv file. Edit the .csv and add on elements
A1: email address
B1: login_date
Log into Notify and pick the relevant 'GitHub Access' template for the GH Org.
Click the 'Get ready to send' button, pick the 'operations-engineering' email, select 'Upload a list of email addresses', select the .csv file.
Check the emails and date template looks good and send out the emails.
See which emails bounce.

Need to email the users twice: once at the start of the process and a few days before the expiry date to log into GH

Still no API or automated way to get the Dormant .csv file from GH enterprise settings

Can use this command to get a file from another repo:
curl -o  report.csv
-H 'Authorization: token TOKEN’
-H  'Accept: application/vnd.github.v3.raw' -L
https://api.github.com/repos/ministryofjustice/inactive-users/contents/filename.type

The plan is to move the code in this repository into the operations-engineering repository. The GH Actions to remove dormant users and remove auth0 users will be run from the operations-engineering repository. The dormant.csv file will be moved to AWS S3, added either manually or via the Terminal / AWS. The inactive-users repository will be deleted. Notify will be integrated with the code to send out automatic emails. The code on the operations-engineering repository will retrieve the dormant.csv file from AWS S3 when the GH Action is executed. New GH Actions will be used on the operations engineering repository. The first GH Action will print the dormant user usernames to check if any bot accounts need to be added to the allow list. The second GH Action will use Notify to email the dormant users to log in. Notify can be used to see if any emails bounce. Auto reply emails will be seen in the operations-engineering group inbox, this is for users on leave that need to be added to the allow list. The users that were emailed will be stored within the file on AWS S3. This file will contain usernames and email addresses of the users that are dormant and being monitored. The third GH Action will send the reminder email to the users within the S3 file which should be done a few days before removing users. The allow list would need to be updated before the next step if any one requests to be added. A new dormant file will be need to be added to S3. The fourth GH Action will remove the users that are still dormant, then delete the temporary file from S3 and send out an email to each user to tell them they have been removed by us for being dormant.
Tasks to be done:

Remove the inactive_users Script
Rename python files
Update the Readme
New function that checks the users in allow list still exist and prints a message if they no longer exist, so that they can be removed from the allow list.
Move the code to the operations-engineering repository
Add a print usernames GH action option: so can look for bot accounts, and ensure ignore list is working
Create a send 1st email GH action: send a template email via Notify to dormant users via CI rather than manually.
Store a list of usernames and email addresses of which users have contacted into a S3 file.
Create a send 2nd email GH action: get the S3 file, read it, email the reminder email template via CI rather than manually.
Create a remove dormant users GH Action: get the S3 file, read it, if user is still dormant then remove those users, then delete the file from the S3 bucket and send an email to each user to tell them they have been removed by us for being dormant.
Add unit tests
When finished the repo should just contain the dormant.csv file only.


Change font for buttons in header

Change the font for the "Download" and "Documentation" links in the header to "Syne"

Hi! Can I take this issue?

Yes @hbach24 go ahead!

Hey, is this issue still open?


Allow validation in a separate process

Since validation accuracy/loss are simply additions to the metadata file and weights are saved after every epoch, validation could be done in parallel and not slow down training.
Note: careful about concurrently modifying metadata.json

No longer seems to be a bottleneck


when using controller the button starts as disabled

Hello
Thank you for making this awsome widget. I tried using it with the code below, but when I start the sceen the button starts disabled and the timer starts.
OtpTimerButton(
                  controller: _forgotPassController.otpTimerButtonController,
                  onPressed: _forgotPassController.sendOTP,
                  text: Text('send_otp'.tr),
                  duration: 60)
            ],

how can I start with the button enabled ?

Hi, you're welcome
you can enable button in initState:
@override
  void initState() {
    super.initState();

    WidgetsBinding.instance.addPostFrameCallback((_) =>
            _forgotPassController.otpTimerButtonController.enableButton());
  }


replace the old import path

replace the old import path (github.com/multi-tenancy -> github.com/kubernetes-sgis/multi-tenancy)
make all will fail, since import paths in the vn-agent and the syncer have not been replaced yet. To build manager, use the following commands.
make build WHAT=cmd/manager
make vcctl-osx

/approve
/lgtm


How to get the collection name of one item?

zoteroRoam.data.collections doesn't have the name of collections.

Hey!
zoteroRoam.data.collections contains the raw data for each collection, as returned by the Zotero API.  For each collection, the name should be under data then under name.
See the information here : https://alix-lahuec.gitbook.io/zotero-roam/customization/formatting/code-snippets#getting-an-items-collections
Specifically :
// To obtain an Array with the collections' names :
zoteroRoam.formatting.getItemCollections(item).map(collection => collection.data.name);
// Returns :
// ['Collection name', 'Other collection name']

Hi, I noticed this snippets, but it doesn't work.
the data doesn't contain name of collections but only collections' id.
I tried to get collections' name using dataURI: "users/xxxxxxx/collections", but it seems that zoteroRoam can only make one data request.

You can make several data requests. But the extension retrieves collections information automatically, and keeps them separate under zoteroRoam.data.collections. Which is an Array with the full data for the collections.
The item itself, under data.collections, will indeed have only the IDs - that's what the function is for, to use the collection IDs to get the names.
Do try it out, and if it doesn't get you what you're looking for, please post the code you're using 🙂
For import, you can add the notes separately now - rather than having to remove/reimport all the metadata.

I tried this code metadata.push(zoteroRoam.data.collections) but it returns Array(0).
I use this uri users/your_user_id/items to make datarequest.

It should be something like metadata.push(zoteroRoam.formatting.getItemCollections(item).map(c => c.data.name).join(", ")).
It will add a block to your metadata array which contains the comma-separated list of the collection names the item belongs to.
(you can customize this of course, to have an attribute, a different separating character, surround with brackets, etc.)
What's important when adding elements to the metadata array is that they're of the right format (either a string of text, or an object with a string property and optionally a children property). Passing an Array of objects, like zoteroRoam.data.collections, will not work.
Does that make sense ?

Thank you very much for you patience. I'm not familiar with JS so hacking the template is a little painful.
Previously I'm debuging using Observable Notebook, however it's different with RR concerning datarequests.
Now everything is working as I expected, thanks again.

Thank you very much for you patience. I'm not familiar with JS so hacking the template is a little painful.
Previously I'm debuging using Observable Notebook, however it's different with RR concerning datarequests.
Now everything is working as I expected, thanks again.


fix: Add more content to website page

Signed-off-by: ErikQQY<EMAIL_ADDRESS>

@hsluoyz Plz review

@hsluoyz Plz review again

lgtm


RFC Sampler type

We currently use spl.info which is a dictionary and we would like to remove it.
There are a few ways:

Define specific Sampler types like HMCSampler, PGSampler, or
Define HMCInfo, PGInfo, etc types and set them as spl.info

This is also related to https://github.com/TuringLang/AdvancedHMC.jl/issues/59. We may be able to reuse the type if this issue is solved in AHMC.jl

Related issues: https://github.com/TuringLang/Turing.jl/issues/602

Not exactly related to your specific question of sampler vs info specialization, but I wrote the following to summarize my thoughts on separating the compiler and inference parts of Turing in general, #634 is relevant. FWIW, I think sampler specialization is probably more neat but info specialization is less hectic because currently we dispatch on Sampler in a lot of places to basically refer to any AbstractSampler that is not SampleFromPrior() or SampleFromUniform(). I haven't read the AHMC PR yet so I may have further thoughts after reading it.
On the separation of compiler and inference, currently we have the following components on Turing's inference side:

InferenceAlgorithm: a minimal and immutable representation of the inference algorithm and its hyperparameters, no implementation-specific fields here.
Sampler: an extended representation of the inference algorithm that has all the information and variables needed during the sampling process, i.e. to "implement" the inference algorithm. These additional implementation-specific information are currently selector and info. So InferenceAlgorithms are part of the exported API but Sampler stuff are implementation details. Since we are putting most of the implementation-specific temporaries inside Sampler, shouldn't VarInfo(s) and model also be part of it? Does it make sense to export Sampler so it can be used as a way to pre-allocate memory by the user? Then we can call sample(spl) to sample from it.
sample: a function that given a model instance and an InferenceAlgorithm, creates the temps Sampler and VarInfo(s), then a significant part of the inference algorithm is actually implemented here. Other parts of the inference algorithm are spread across assume and observe which dispatch on the sampler type. One observation here is that in sample, observe and assume there are common Turing-specific functionality to do with Sampler, VarInfo, model and Sample bookkeeping, and there are other algorithmic implementation details/semantics, both of which are mixed together in the 3 different places (sample, assume and observe). Separating the inference and bookkeeping requires a careful consideration of what each algorithm requires from Turing side. For example, HMC may require the flattening of the parameters and a way to calculate the log joint probability of some parameters but no special requirements for assume and observe. It is unclear to me how things like MH and particle samplers may be separated out though since they rely on custom assume and observe so the algorithm is not fully implemented without tampering with these somewhat internal functions that use a fair bit of compiler-jargon like VarName and VarInfo. Perhaps one way to separate the compiler-jargon from the inference algorithm semantics is to merge all the compiler-jargon together and only expose documented functions that make sense to the inference algorithm writer. These can then make it easier to write simple and readable custom sample, observe and assume methods for the algorithm in hand. So we can merge vi::VarInfo with spl::Sampler and model together with the currently considered/active vn::VarName, then the "algorithm writer" can say something like push!(spl::MergedSampler, dist, r) when they want to register a new value and distribution for the active vn in vi. Behind the scenes, we can then take care of things like checking if vn already exists in vi and if it does then checking if it is flagged "del", etc.

I think an important question we need to answer here is where should each struct and function live, Turing or external packages? Let's take the most complicated case, where we need a sample, observe and assume for the new sampler. If we are to overload a Turing function or subtype Turing.AbstractSampler in external packages, we need these packages to depend on Turing. But then we also need to have using Turing make all these algorithms from external packages available. So I think this is a case where having something like TuringBase can be useful. TuringBase will have the abstract types that should be subtyped, e.g. InferenceAlgorithm, and the functions that can be overloaded by algorithm writers, e.g. sample, assume and observe. Turing can then depend on the external packages which implement specific algorithms. So Turing becomes this metapackage that has multiple packages under its umbrella. If we decide to have all the algorithms implemented inside of Turing but in different submodules or files, then Turing.Core can play the role of TuringBase.
So given the above, I think one thing that can be helpful in order to have a more modular Turing is to combine all the compiler-jargon into a single variable, and define functions for common operations performed in sample, observe and assume of all the algorithms. This makes it easier to write, debug and document new and existing inference algorithms. It also creates a clear barrier between Turing.Core and algorithm semantics. Let's say an algorithm writer wants to do xyz on spl. He/she can ask, "Is there a function that does xyz on spl?" If not, someone on the core team can define, document and export this function. The algorithm writer can then happily use this function in their implementation.
The above is probably in line with the thinking in #634 with the main difference being that rand is proposed to be used in place of sample IIUC.

I had some similar thoughts [here](https://github.com/TuringLang/Turing.jl/issues/746#issuecomment-485222516 as well.

@mohamed82008 There are many good points here. I have been thinking about some similar ideas. I think we need to carefully re-design some core APIs to make the boundary between Turing and its external world (e.g. AdvancedHMC, RandomMeasures, GaussianProcesses) more clear. This will take a few weeks time I think, in particular, the following 3 PRs will pave the way for next step improvements:

Standardising API between compiler and inference https://github.com/TuringLang/Turing.jl/pull/750
Replace HMC related codes using AHMC #739
Type stable VarInfo https://github.com/TuringLang/Turing.jl/pull/742

At the moment, these PRs still needs some effort for separating, simplifying and documenting APIs and internal functions.
As a side note, we might need a more thorough code reviewing process and a few more team hackathons. Fortunately, the Turing code base is relatively small.  So with time, we can turn Turing into a swiss knife style library for probabilistic machine learning.

@mohamed82008 Most of what you wrote is pretty much in the lines of what I'm currently trying. Once we have the PRs ready and merged we will probably need a few more rounds but I feel we are going in the right direction.
@yebai Swiss knife style library for probabilistic machine learning sounds awesome. This would be a great selling point for Turing. I think the documentation & tutorials of Turing already highlight that we are headed in this direction. Maybe we can put even more efforts in the tutorials once in a while and showcase the wide application of Turing to various domains and task.

Duplicate of https://github.com/TuringLang/Turing.jl/issues/746#issuecomment-489387186


Plex Not connecting

I have tried to connect posterr to plex and it does not connect. I gave it the token and ip address of my local server and it does not connect. Is there any kind of a guide to get it working with plex.

Did you enter 32500 for port?
Also, try turning off the secure option if you set thus.

I have the 32400 port in there and I have the https turned off

I tried with and without the http:// and I removed my ip address from the screen shot

Just the ip goes in. Is your plex server set to prefer secure or always secure? Set to prefer

There is also z discord server if that's easier.
https://discord.gg/S6QxSwy5

Here's mine

Mine is set to preferred and I could not see your screen shot. It seems like it was not uploaded.

@Goku532  what shows in the posterr container logs?

Start playing some plex media
in posterr settings there is a debug section. Go there and run the now showing test

go to the logs for the posterr container and see what the test results say.

Where would I find the logs after hitting the Now Playing Test?

Ok that is working which I didn't know how it did. Does it display posters from movies you have in your collection or just what is playing?

Where would I find the logs after hitting the Now Playing Test?

This is the container. You can do the command docker logs posterr or if you have portainer installed, you can view logs there.

Ok that is working which I didn't know how it did. Does it display posters from movies you have in your collection or just what is playing?

Yes, that's the on-demand section. I'm glad that's working now. I'll close this issue. Further general questions are probably easier to ask in discord.
Enjoy.


Should requesting an unsupported version of Python be an error

With a repository like https://github.com/betatim/sdfg/tree/2cc8b8784862bdff252adbca785bb16c9fd291cd the user might expect to get Python 3.4 installed. However that version isn't supported by repo2docker.
On the following line we emit a warning in the logs
https://github.com/jupyter/repo2docker/blob/abe256d25a60179addff3a87aa5a0148e94a1aca/repo2docker/buildpacks/conda/__init__.py#L119
however it is easy to miss it as it comes before all the docker commands. Maybe we should make it an error to request a version of Python that is older than the oldest version we support. Having a fall through/default for other cases makes sense, I think.

It makes sense to me that we error if you explicitly requested a python version and we can't support that.
Also, I'm surprised that conda can't support 3.4!


⚠ Secret Website 3 has degraded performance

In 4271a1f, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2347 ms

Resolved: Secret Website 3 performance has improved in bfc3dba.


ILoggerFactory startup exception

When trying a a startup via VS2019 there is multiple instances of the exception describe below
PluginManager.cs:332
System.InvalidOperationException: 'Unable to resolve service for type 'Microsoft.Extensions.Logging.ILoggerFactory' while attempting to activate 'MUnique.OpenMU.PlugIns.StrategyPlugInProvider`2[System.String,MUnique.OpenMU.GameLogic.PlugIns.ChatCommands.IChatCommandPlugIn]'.'
It seems to related to dotnet 3 update https://github.com/dotnet/extensions/issues/1096 but I do not understand the codebase sufficiently to confirm it right now.

Thanks for the bug report, I fixed it :)


Target destination for sync

Just found this project, thank you for developing it!
I have a request that a small feature that would make it a permanent part of my tooling
This would be a kind of follow up for #19
Similar to srcSubdirectory, is it possible to add a target destination for the sync command?
ie. Copy the srcSubdirectory folder to /flash/lib/ on the board
Thank you for considering this feature request
Kind regards,
Danilo

I think this is something that could be added without much trouble. I'm assuming you're using a microcontroller that has the flash filesystem mounted on /flash instead of on /. I recall reading about that in the MicroPython docs, but I don't recall the details. Let me do some searching and see what I can figure out.

There is already a feature for Change remote working directory (chdir) that allows you to choose a path on the microcontroller flash and always prepend the path to any upload operations. However... it does not currently affect sync operations.
I think adding a configuration checkbox option for something like "Use remote working directory for sync" might do the trick.
I hesitate to add an extension option like "Prepend path", because that would affect all attached devices. And, in the rare instance you had two microcontrollers attached, one using /flash and one not, you would have problems with a global setting like that.
So, with my proposed solution, you would:

Select the "Use remote working dir for sync" checkbox option in the extension settings.
Right-click your microcontroller in the Serial Explorer area and select Change remote working directory (chdir) selecting the /flash subdir.
Upload everything with Sync and watch your files go into /flash.
Profit!

Any comments are welcome.

I think those are good precautions. The flow makes sense 🙂

This should be good to go in version 1.21.11 and beyond.

Select the "Use Remote Working Dir For Sync" checkbox option in the extension settings.
Right-click your microcontroller in the Serial Explorer area and select Change remote working directory (chdir) selecting the subdir you want to use as the root (e.g. /flash).
Upload everything with Sync and watch your files go into the remote working directory.

Unchecking the configuration option or not setting a remote working directory will upload everything into / as has been the behavior in the past.

I've updated the extension and checked the box, but step 2. is not giving me any input field or output on the terminal to enter the path

The path is selected per microcontroller using the Change Remote Working Directory (chdir) command. You'll find it by right-clicking the serial port for your microcontroller. In the screenshot below, I'm setting the remote working directory for the device on COM3.

Yes, was doing the same for my device /dev/ttyACM0

Look up at the top of your VS Code window for the dropdown showing directories you can choose from.

Try creating a directory with mkdir (like /tmp or anything). Maybe it's not recognizing the /flash mountpoint as a directory???

>>> from os import stat
>>> stat("boot.py")
(32768, 0, 0, 0, 0, 0, 454, 768660232, 768660232, 768660232)
>>> stat("/flash")
(16384, 0, 0, 0, 0, 0, 0, 0, 0, 0)
>>> stat("/flash/lib")
(16384, 0, 0, 0, 0, 0, 0, 768667474, 768667474, 768667474)

That seems correct. boot.py is 32768, so it's interpreted as a regular file. /flash is 16384, so it's interpreted as a directory. I'm surprised you are not seeing it in the dropdown. Even if I've already changed to a directory, I still see the dropdown with .. as a selection.

Though one time I forgot to exit the REPL prompt before trying Change Remote Working Directory and then I got similar behavior to what you're seeing. Maybe that's it??? If it is, try exiting REPL with CTRL-X first and see if it works.

Tried detaching and then attaching, I've tried some of the commands and none are able to list anything from the device 😢
This is from mkdir
╰─❯ mpremote connect /dev/ttyACM0 fs mkdir '/test'
mkdir :/test
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
OSError: [Errno 19] ENODEV

It could be that it's the fault of my board/setup somehow, I appreciate time you've invested into helping me already

Absolutely, I will do some trial and error and report if I manage to make it work on my board.
For reference, I'm working on an STM based board - Arduino Portenta H7


Stripping garbage from track names

Some internet services provide tracks with many garbage in the tags. This garbage seems to be at most common between services(for instance youtube and soundcloud connectors share (mostly) same function for stripping that garbage). I think it'd be better to implement one global anti-garbage function and put it to the core.
Further discussion topics

Can such function be incompatible to some services?
If artist and title are in the same string(what a pain), is it better to remove such garbage before or after separating artist from title?
Should we provide ability to add more garabge-detecting regexes for users?

https://github.com/alexesprit/web-scrobbler/tree/metafilter

@alexesprit I think what you're doing is a good start. Perhaps opening up a PR on this topic to perhaps get some input from others... What do you think?

@inverse I think we should get rid of v1 connectors first.

Closing this because relevant PR merged

Should we provide ability to add more garabge-detecting regexes for users?

It's supported already:

Connector developers can add new rules (regexes) to Metadata.YoutubeTrackFilters object to update MetadataFilter.youtube behaviour.
They also can write custom filter functions with usage of regexes.


[FormRecognizer] CopyModelWithLabelsAndModelName failing in nightly runs

FormRecognizer nightly test runs are failing with:

Error message
Azure.RequestFailedException : Could not retrieve authorization metadata. If this issue persists use a different target model to copy into.
Status: 200 (OK)
ErrorCode: 2024
Additional Information:
error-0: 2024: Could not retrieve authorization metadata. If this issue persists use a different target model to copy into.
Content:
Headers:
ms-azure-ai-errorcode: REDACTED
x-envoy-upstream-service-time: 22
apim-request-id: 1a027a10-963d-425b-817f-ca27afb89ddc
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
Content-Length: 399
Content-Type: application/json; charset=utf-8
Date: Fri, 14 Oct 2022 04:35:29 GMT
Data:
error-0: 2024: Could not retrieve authorization metadata. If this issue persists use a different target model to copy into.
Stack trace
at Azure.Core.OperationInternal1.GetResponseFromState(OperationState1 state) in D:\a_work\1\s\sdk\core\Azure.Core\src\Shared\OperationInternalOfT.cs:line 290
at Azure.Core.OperationInternal1.<UpdateStatusAsync>d__20.MoveNext() in D:\a\_work\1\s\sdk\core\Azure.Core\src\Shared\OperationInternalOfT.cs:line 278 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Threading.Tasks.ValueTask1.get_Result()
at Azure.Core.OperationInternalBase.d__13.MoveNext() in D:\a_work\1\s\sdk\core\Azure.Core\src\Shared\OperationInternalBase.cs:line 87
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.ValueTask1.get_Result()    at Azure.Core.OperationPoller.<WaitForCompletionAsync>d__11.MoveNext() in D:\a\_work\1\s\sdk\core\Azure.Core\src\Shared\OperationPoller.cs:line 79 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Threading.Tasks.ValueTask1.get_Result()
at Azure.Core.OperationInternalBase.d__19.MoveNext() in D:\a_work\1\s\sdk\core\Azure.Core\src\Shared\OperationInternalBase.cs:line 212
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.ValueTask1.get_Result()    at Azure.Core.OperationInternal1.d__19.MoveNext() in D:\a_work\1\s\sdk\core\Azure.Core\src\Shared\OperationInternalOfT.cs:line 242
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.ValueTask1.get_Result()    at Azure.Core.OperationInternal1.d__15.MoveNext() in D:\a_work\1\s\sdk\core\Azure.Core\src\Shared\OperationInternalOfT.cs:line 177
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.ValueTask1.get_Result()    at Azure.AI.FormRecognizer.Training.CopyModelOperation.<WaitForCompletionAsync>d__19.MoveNext() in D:\a\_work\1\s\sdk\formrecognizer\Azure.AI.FormRecognizer\src\FormTrainingClient\CopyModelOperation.cs:line 144 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Threading.Tasks.ValueTask1.get_Result()
at Azure.AI.FormRecognizer.Tests.FormTrainingClientLiveTests.d__16.MoveNext() in D:\a_work\1\s\sdk\formrecognizer\Azure.AI.FormRecognizer\tests\FormTrainingClient\FormTrainingClientLiveTests.cs:line 448
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Azure.AI.FormRecognizer.Tests.FormTrainingClientLiveTests.d__16.MoveNext() in D:\a_work\1\s\sdk\f

For more details check here:

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1919042&view=results

@jsquire for notification.

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Azure.Core:0.47320858,Cognitive - Form Recognizer:0.31605914,Azure.Identity:0.051346075'

One week later, we haven't seen this failure again, which makes me think it was a transient issue. Closing this until we see it again.


Display "Empty" for empty notes in the note list #17

The following code prints empty on the textarea when it is empty
Things I attempted before taking this path towards the solution:

I tried changing value in list only however that wasn't possible as whenever I changes value in list the change would show up in text area
I tried setting changing it into file but whenever I did that the change would again still appear in the text area as well

Warning: This method of solving this problem can cause multiple recursions:

1: When the file opens it directly shows "Empty" as default text

2: if the user goes on to clear the text one-by-one then the user will again get empty printed on his textarea

3: The only way to modify the content is to select the text and then directly start typing

Do review the file and tell if any more changes are needed, THANK YOU!!

I think you should add a computed property and use it in the note list.

Oh I'll try doing that then,

Hey @AsaiToshiya I guess I found a way, was quite difficult for me as I don't know muck about vue but I guess i did it
It doesn't use any new computed property though. Ill make the pull request soon

It works something like this, is this fine

Hey @AsaiToshiya I updated this pull request, hope you can see it and verify it.
Do review it and tell me if anything more needs to be changed

The changes I made:

I added a new variable noteName to the newNote object which updates when the text updates
when text is null it switches to Empty (also treats Space and Enter as null) and when text has something in it, it switches to the text in the text variable
Also changed the variable which is shown as the name of the note, it now shows the note name as noteName variable whose functionality is as explained above

Example of how it works


DuckDB 0.10.0 Doesn't Have the Option Named "experimental_parallel_csv"

The newest and default version of duckdb downloaded by  pip install is  0.10.0.There is no setting named "experimental_parallel_csv".It was available at 0.6.0 by my test.
File "/home/mabj/ldbc_graphalytics_platforms_graphblas/graphalytics-1.10.0-graphblas-0.1.0-SNAPSHOT/bin/py/relabel.py", line 26
con.execute(f"SET experimental_parallel_csv=true")
^
IndentationError: unindent does not match any outer indentation level
18:54 [ERROR] Failed to load graph ""graph500-22:graph500-22"".
However even when I downgraded the version to 0.6.0,I still had difficulty in correcty importing the datasets.But I didn't know why.
17:38 [ERROR] [Runner r568788] => 17:38 [ERROR] Algorithm "Breadth first search" on graph "graph500-22 failed to complete:
17:38 [ERROR] A benchmark failure (EXE) is caught by the runner.
17:39 [ERROR] [Runner r754132] => 17:39 [ERROR] Vertex count is incorrect, expected: 2396657, actual: 0
17:39 [ERROR] A benchmark failure (VAL) is caught by the runner.
So in the end,I commented out the line containing "experimental_parrallel_csv" in relabel.py and everything went well.
19:04 [INFO ] In total, [15 / 15] benchmark(s) succeed.
Hope my experience will be helpful to the greenhands like me.

Thanks! I fixed this this now via c0bcb6873fe35ad8268d3e25d67b54f523bf0a4e


Add code for river-ridgelines

I apologize that all of this code is in a single PR -- my workflow was pretty uncertain until the last day, when I settled on an approach, so I didn't have any intermediate PRs.
This pipeline (see README.md for run instructions) generates a line map of U.S. rivers:

P.S. This is not a perfect pipeline (I think it could be more efficient/adaptable), but it gets the job done for now!


This plugin is not hosted at the community repo at jenkins-ci.org

Is there a reason that you are not hosting this plugin in the community plugin repository?  https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins

See:
https://github.com/JoelJ/ez-templates/issues/41
https://groups.google.com/forum/#!topic/jenkinsci-dev/NVLHCFegfYw

Duplicate of #41


checkout with discount coupon

checkout with discount coupon *

I notice that during the process of checkout,  it is not processing the payment and causing stopping because of coupon usage without it no issue in completing the process. It needs to be fixed

Thank you  @mazenalaghbari
Discussion is opened here #50 ,
please can you provide a way to replicate the  coupon so we can start and investigate this issue on our end.

it seems that the coupon sent with a minus value it could the reason for causing the error.

@mazenalaghbari  please see the recorded video ( BTW sorry for the dropping rate in the frames)
https://github.com/PhazeRoOman/thawani-for-woocommerce/discussions/50#discussioncomment-1049068
And in order to replicate the issue we need to make the same setup and tackle the bug.

it seems that the coupon sent with a minus value it could the reason for causing the error.

with quick setup for the coupon my my end it seems it's working fine

I reviewed the setting, the issue was because of the shipping setting.


CompileType::IsAssignableTo does not work properly for closure/function types

Test:
typedef FunObjObj = Object Function<T>(Object, {Object y});

Object funTypObj<T>(T x, {Object y}) => y;

main() {
  // Uncomment for compile-time error: not assignable
  // final FunObjObj x = funTypObj;

  // At run time, after compiled with optimizing compiler it becomes assignable!
  for (int i = 0; i < 10; i++) {
    try {
      dynamic y = funTypObj;
      final FunObjObj x2 = y;
      print ("Error: ${y.runtimeType} is assignable to ${FunObjObj}!");
    } catch(e) {
      print ("OK, got $e");
    }
  }
}

Run in the Dart 2.0 mode with low optimization_counter_threshold to trigger optimizing compilation faster:
pkg/vm/tool/dart2 --optimization_counter_threshold=5 test_assignability.dart

Output:
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
Error: <T>(T, {Object y}) => Object is assignable to <T>(Object, {Object y}) => Object!
Error: <T>(T, {Object y}) => Object is assignable to <T>(Object, {Object y}) => Object!
Error: <T>(T, {Object y}) => Object is assignable to <T>(Object, {Object y}) => Object!
Error: <T>(T, {Object y}) => Object is assignable to <T>(Object, {Object y}) => Object!
Error: <T>(T, {Object y}) => Object is assignable to <T>(Object, {Object y}) => Object!
Error: <T>(T, {Object y}) => Object is assignable to <T>(Object, {Object y}) => Object!
Error: <T>(T, {Object y}) => Object is assignable to <T>(Object, {Object y}) => Object!

In the non-optimized code assignability check is performed by AssertAssignableInstr which is eliminated in optimizing mode. 2 optimizations are able to eliminate it independently: constant propagation (in ConstantPropagator::VisitAssertAssignable) and canonicalization (in AssertAssignableInstr::Canonicalize).
It works fine if both optimizations are disabled:
pkg/vm/tool/dart2 --optimization_counter_threshold=5 --no-constant-propagation --no-eliminate-type-checks test_assignability.dart

OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'
OK, got type '<T>(T, {Object y}) => Object' is not a subtype of type '<T>(Object, {Object y}) => Object'

Both optimizations call CompileType::IsAssignableTo to check assignability at compile time.
/cc @crelier @mraleph

Thanks for the detailed report and good catch.
The optimizer uses the "is more specific than" relation to eliminate type tests. In strong mode, the "is more specific than" relation is supposed to be identical to the "is subtype of" relation. However, it is not quite true, and this is the cause of this bug. In non-strong mode (Dart 1), the "is more specific than" relation uses covariance for both result type and parameter types of functions. In strong mode, we need covariance of result type and contravariance of parameter types.
A cl is on its way.


wordclouds

[x] adjust horizontal scaling
[x] show wordclouds in separate tabs (i.e. at same position) on top of each other
[ ] display metadta of items in wordcloud (not 1st release)

I split the last point of in a new issue, i.e it is #5


Alert for two different values in the same field at different time

Hi,
Let's say I have this log:
time: 12.00, room_id:1, action:open
time: 12.10, room_id:2, action:open
time: 12.20, room_id:3, action:open
time: 12.30, room_id:1, action:close
time: 12.40, room_id:4, action:open

And my frequency rule is like this:
name: freq rule
type: frequency
index: rooms-*
num_events: 1
timeframe:
  hours: 2
filter:
- term:
    action: "open"
- term:
    action: "close"
query_key:
 - room
alert:
- "slack"
slack:
slack_webhook_url: "https://hooks.slack.com/services/blahaaaaaaaa"

I want to have one alert, not five.
What I want is "if there is an action 'open' and 'close' for a room in less than 2 hours, alert"
Is that possible? Because I've thinking on this a lot without success.
Help!

Yelp/elastalert is no longer maintained. Please use jertel/elastalert2.
https://github.com/jertel/elastalert2


test-regex: hangs indefinitely

Seems like there's a bottleneck somewhere in aursearch.

Looks like I was trying to make a single name-desc request for every available package... a grand total of 44k requests. https://github.com/AladW/aurutils-test/commit/1435f2f7a4be9e23f40848e05fe9efc2252ced79


Includ workflow id and current node id in the exception message

Description
Currently some error message during register agent step is not clear enough for customer to debug further. Therefore, this pr adds workflow id and current node id into the exception message.
Issues Resolved
https://github.com/opensearch-project/flow-framework/issues/244
https://github.com/opensearch-project/flow-framework/pull/242#discussion_r1412900274
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jackiehanyang #244 is a common issue for all the workflow steps. Currently, we don't log workflow id or node id for any workflow steps for success or failure cases and not just specific to register agent step.


Failed to pull image "gcr.io/istio-release/pilot:1.17.0"

Background
I was trying to install istio 1.17.0 via helmCharts below via ArgoCD but got error which says "Failed to pull image", details below.
helmCharts:
- name: istiod
  repo: https://istio-release.storage.googleapis.com/charts
  version: v1.17.0
  releaseName: istiod
  namespace: istio-system
  valuesFile: values.yaml

Failed to pull image "gcr.io/istio-release/pilot:1.17.0": rpc error: code = Unknown desc = Error response from daemon: manifest for gcr.io/istio-release/pilot:1.17.0 not found: manifest unknown: Failed to fetch "1.17.0" from request "/v2/istio-release/pilot/manifests/1.17.0".

Initial Checks
As per https://console.cloud.google.com/gcr/images/istio-release, looks like the pilot image of 1.17.1〜1.17.3 were there but couldn't find 1.17.0, any special reason or I was referencing the wrong place?

On the other hand, when I checked istiod 1.17.0 separately, I found the tag as below, do I have to specify the image tag explicitly via  kustomize patch or something else?
https://console.cloud.google.com/gcr/images/istio-release/global/charts/istiod

1.17.0 was actually never uploaded to GCR; 1.17.1 is available and actually has some important fixes so I'd recommend just skipping to it

@keithmattix
Thanks a lot for your prompt comment.

1.17.0 was actually never uploaded to GCR

Wow, couldn't realize that earlier, was it mentioned in release note or somewhere? Just out of curious ...

1.17.1 is available and actually has some important fixes so I'd recommend just skipping to it

Well noted, thanks a lot for your recommendation, will do that.

I don't think we documented it anywhere unfortunately but there have been a couple of issues and threads on Slack

@keithmattix
Thanks a lot for your help!


Keithxun/error

Use of specified toast messages in the event of network errors. Detailed messages can be found in console should there be a need to debug. Have also removed modal styles and converted them to tailwind format.

Is there a need to add in _error.js to handle client side errors?


Add NSMI v2 codes to CuratedExperiences table(s)

Add NSMI version 2 codes to the CuratedExperience tables, associated with each level: Parent and Child 1

@grawdon Please review for next sprint development.


add operations modules

Targets #2783

Description

Checklist:

[x] I have performed a self-review of my own code.

@Harshvardhan80 The CI checks are failing. Please check if all the checks are passed before assigning PR for review


Unknown location; please try …

Your plugin worked fine and suddenly I get a "Unknown location; please try" messages instead. It is odd since a curl provides me with the right answer. See screenshot.

Now, my server could have updated something in the mean time but I could not see any evidence it had done anything that could have changed that. Of course, I might be wrong…
Any idea?

Okay, some time later and I have the weather just fine. Odd… I am not sure how I can help debug that.

Just stumbled upon this. This happens when they are running out of queries.
Try curl wttr.in/YourCity and it will give you a proper message back whats going on.

I had the same issue, but it guess its from the default 15 minute wait time between the queries.
I set set-option -g @tmux-weather-interval 1 and now my location displays correctly
change it back to 15, or remove the line once it is correct so you dont query wttr.in too often :)

Hum, this really should be closed…


What does the yellow lightning icon stand for on the Rasbian-HMI/MagicMirror?

Power-Icon?

https://www.raspberrypi.org/documentation/configuration/warning-icons.md
Undervoltage warning
If the power supply to the Raspberry Pi drops below 4.63V (+/-5%), the following icon is displayed.
Under Voltage

/close


No map on zoom

Hi,
When I zoom on the terrain- or the watercolor map, the map disapears (turns grey).

Working on your site:

Terrain not working on your site:

For the terrain I get this error on my site: (folder 14 - 18)

This error has something to do with the "14" folder, but the problem continues all the way to folder "18"
Watercolor not working on your site:

Watercolor errors on my site: (folder 15 - 18)

Hope you guys can fix the problem!
If you dont understand what I mean, let me know.
Have a great day!
Best regards Maja

Hi, I'm facing the same problem - though this issue seems like a dupe of #107

I have the same issue at the closest zoom level (17). I'm trying to look at this map

There is hope! see my comment here


No possibility of grabbing full image ?

Sorry, might not be an issue at all, but I see no FAQ's section here ;)
There is no way to grab an full image without actually recording one ?
Does the RASPI process no grab a full frame image, only HD resolution one (cropped). ?
Also, as a sidenote, since I am making a shitty ticket here: AWESOME program! ;)

The software can capture videos at full 1920 HD resolution and still images up to max camera resolution (2592 X 1944). Time lapse capture at still image resolution as well.

Hi, and thanks for your promt answer. Yes I know, all the capturing is working all and well. However, I am lacking any possibility of full frame preview. Is there none ?

OK. It was grabbing in the title that confused me.
You can control the width of the preview image using the preview width control under camera settings.
For example you could put in 2560 as the width. This will up the bandwidth needed to display the preview and you will need a monitor capable of displaying it unless you want to scroll.

Changing the preview size only enlarges the already cropped picture actually, into a huge size as you said :)
However, the image base is stilled heavily cropped. See attached files of grabbed image and preview image. What bothers me is that instead of resizing the image, the preview crops it extremely.

The preview is currently based on the video format that is selected so that it represents the framing that will apply when a video capture is applied. So if you have a video format that is widescreen e.g 16:9 then that will determine the preview aspect ratio and associated cropping which is done by the camera system.
You can set the image aspect ratio and the video aspect ratio independently. So you can have a 1920 x 1080 video (16:9) and a 2592 x 1944 still (4:3) but the preview will be showing the video view. I actually use a 4:3 video view most of the time so that I get maximum coverage from the sensor.
Today you could set the video to be a 4:3 format and then it would accurately represent the 4:3 still image format and you could still control the size with the preview width control.
In principle, it would be possible to provide a user selectable feature to make the preview aspect ratio represent the video or image format. I can look into that. Up till now most people have been interested in seeing the video view.

Thank you!  That makes sense, and also allows me to modify it to my use as I do not use the video feature currently. Thanks for explaining the workings of it!  Have a wonderful day! :)


ValueError: IntervalTree

Hi,
I ran into the following error:
Thu Oct 17 16:25:47 2019 --- Misassembly correction has been turned on. This automatically inactivates chimeric contig correction.
Thu Oct 17 16:25:47 2019 --- Running : minimap2 -k19 -w19 -t8 ../NbV1ChF.fasta ../Contigs.txt > contigs_against_ref.paf 2> contigs_against_ref.paf.log
Thu Oct 17 16:29:25 2019 --- Reading alignments
Thu Oct 17 16:34:00 2019 --- Getting gff features
Thu Oct 17 16:34:17 2019 --- Aligning raw reads to contigs
Thu Oct 17 16:34:17 2019 --- Running : minimap2 -x sr -t8 ../../Contigs.txt ../../1740D-43-05_S0_L001_R1.fastq > reads_against_ctg.paf 2> reads_against_ctg.paf.log
Thu Oct 17 21:27:31 2019 --- Computing contig coverage
Traceback (most recent call last):
  File "/work/waterhouse_team/miniconda2/envs/ragoo/bin/ragoo.py", line 4, in <module>
    __import__('pkg_resources').run_script('RaGOO==1.1', 'ragoo.py')
  File "/work/waterhouse_team/miniconda2/envs/ragoo/lib/python3.7/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/work/waterhouse_team/miniconda2/envs/ragoo/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1469, in run_script
    exec(script_code, namespace, namespace)
  File "/work/waterhouse_team/miniconda2/envs/ragoo/lib/python3.7/site-packages/RaGOO-1.1-py3.7.egg/EGG-INFO/scripts/ragoo.py", line 714, in <module>
  File "/work/waterhouse_team/miniconda2/envs/ragoo/lib/python3.7/site-packages/RaGOO-1.1-py3.7.egg/EGG-INFO/scripts/ragoo.py", line 36, in update_misasm_features
  File "/work/waterhouse_team/miniconda2/envs/ragoo/lib/python3.7/site-packages/intervaltree/intervaltree.py", line 1060, in __setitem__
    self.addi(index.start, index.stop, value)
  File "/work/waterhouse_team/miniconda2/envs/ragoo/lib/python3.7/site-packages/intervaltree/intervaltree.py", line 343, in addi
    return self.add(Interval(begin, end, data))
  File "/work/waterhouse_team/miniconda2/envs/ragoo/lib/python3.7/site-packages/intervaltree/intervaltree.py", line 326, in add
    " {0}".format(interval)
ValueError: IntervalTree: Null Interval objects not allowed in IntervalTree: Interval(0, 0, (0, 0))

What possible could have caused the error?
Thank you in advance,
Michal

I'll take a look and get back to you. Sorry about that!

Hi there,
The problem seems to be that the misassembly correction algorithm is recommended a break at position 0 of a contig. It should only be recomending breakpoints that are at least 25kbp away from the start of end of the contig. I am looking into why this may be happening.
By chance, would you be willing to share your data with me to help the debugging?

I am going to close this issue, though please feel free to reopen it if anything comes up.
I would also encourage you to use RagTag for any future analysis:
https://github.com/malonge/RagTag
RagTag is the successor of RaGOO and it is much improved.
Thanks,
Mike


gen-guest-c: cabi_realloc doesn't tollerate realloc(..., 0) == NULL

realloc(3p)
...
RETURN VALUE
... If size is 0, either:

A null pointer ...
A pointer to the allocated space shall be returned ...

While dlmalloc does the latter (returning a unique pointer), some other allocators - including wasi-libc's alternative emmalloc - do the former (returning NULL).
gen-guest-c currently generates this wrapper:
void *cabi_realloc(void *ptr, size_t orig_size, size_t org_align, size_t new_size) {
    void *ret = realloc(ptr, new_size);
    if (!ret) abort();
    return ret;
}

This will always trap for these other allocators on new_size = 0.

I think this can be fixed as easily as updating the generated cabi_realloc with e.g.
if (!ret && new_size != 0) abort();

I have not yet checked to see if any other guest generators have similar issues.

See also https://github.com/tinygo-org/tinygo/pull/3410; Tinygo's allocator has been updated to the "return NULL on size = 0" behavior.

I think this is something to fix in the cabi_realloc function. The Rust support already handles this and I forgot to translate it to C, but if orig_size is zero and new_size is zero then orig_align should be returned

Is there a contract for cabi_realloc documented anywhere?

This has some more info, notably:

Lastly, independently of Python, the Canonical ABI defined below assumes that out-of-memory conditions (such as memory.grow returning -1 from within realloc) will trap (via unreachable). This significantly simplifies the Canonical ABI by avoiding the need to support the complicated protocols necessary to support recovery in the middle of nested allocations.

If you aren't working on this I'm happy to take a crack at it. Looks like I can translate from the rust guest's cabi_realloc pretty easily.

Nah feel free!

if orig_size is zero and new_size is zero then orig_align should be returned

Is it expected to return orig_align specifically or any aligned non-zero pointer? I just talked to @dicej about this and the teavm runtime returns some aligned constant but not orig_align.

Oh any aligned pointer is fine, the orig_align value is just a "cute hack" of some pointer that is that-aligned.


Support ServiceAccoint Labels and Annotations

Similar to #9, please add support for adding annotations and labels to the generated ServiceAccount.
We are in the process of adopting Azure Workload Identity. In particular we are using it to leverage managed identity access to the Seq metastore. A requirement for this feature is a set of annotations and labels on the ServiceAccount.
For the moment we are using Helm's Kustomize post-processor to add the needed annotations and labels to the ServiceAccount, however it's a bit clunky. First class support would be appreciated and likely useful for other scenarios.

Thank you for all the feedback/suggestions, this is great to know. We're planning to circle back around to the Helm chart once 2023.1 is out of beta and will take a close look at these then 👍


Error after pulling the image

When I pull the image and test whether terraform is installed correctly using terraform --version. The response is an error message. Do I need to run a configuration script to use the container?
Error message:
cat: /home/linuxbrew/.linuxbrew/Cellar/tfenv/2.0.0/version: No such file or directory
Version could not be resolved (set by /home/linuxbrew/.linuxbrew/Cellar/tfenv/2.0.0/version or tfenv use )

Hey @torstenboe. Apologies, I am rather busy with some personal projects and I don't have any bandwidth to allocate for this right now 😞
I have a feeling GitPod changed some things. Or tfenv did. Or the image settings changed. I am unsure what would be at fault.
I hope I'll get to look at this by the end of the year, but no promises.

Hey @torstenboe, this was fixed in https://github.com/Vlaaaaaaad/gitpod-terraform/pull/10 which came with a big cleanup of the image!
Sorry it took so long.


Update portuguese locale

Hello everyone
Overview
TL;DR
Update locale/pt.json English sentences to Portuguese.
Fixed some typos.
Review
This PR solves  #762 . I've translated all English sentences to Portuguese, fixed some typos and changed some sentences in order to make the translation more uniform.

@andremedeiros WDYT?

I'll merge and change 'servidor wen' to servidor web'


Updated Example Code

Updated example

@NegiAkash890 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Switch gardenlet to logr (7)

How to categorize this PR?

/area logging dev-productivity
/kind enhancement
What this PR does / why we need it:
Migrate gardenlet's Seed controller to logr.
Which issue(s) this PR fixes:
Part of #4251
Release note:

NONE

/retest


Build Fails: alias to react-dom/server not found.

The next build command fails with the error:
Can't resolve 'react-dom/server'

This occurs when a reference to the slate.js NPM module is added.

Next.js Version 2.4.4
Example repo recreating the issue: https://github.com/philcockfield/next-slate-issue

Further details in the README of the example repo.
This seems to be another version of the issue detailed here: https://github.com/zeit/next.js/issues/1877
The fix in that issue, when applied to this repo, does not fix the problem:
// next.config.js

module.exports = {
  webpack: function (c) {
    if (c.resolve.alias) {
      delete c.resolve.alias['react']
      delete c.resolve.alias['react-dom']
    }
    return c
  }
}

cc @arunoda

Reverting the version of Next to 2.1.1 does allow the project to build.

I can see what's going on here. Let's see what we can do about this.

Thanks @arunoda

Hey, I couldn't try your project due to there's no tsc command. May be you can update your repo.
I created a normal .js file with this content and it works pretty well:
import React from 'react'
import { Editor, Raw } from 'slate'

const initialState = Raw.deserialize({
  nodes: [
    {
      kind: 'block',
      type: 'paragraph',
      nodes: [
        {
          kind: 'text',
          text: 'A line of text in a paragraph.',
        },
      ],
    },
  ],
}, { terse: true });

export default class Index extends React.Component {
  state = {}

  render () {
    return (

        <Editor
          state={initialState}
        />

    )
  }
}

The reason why next.config.js hack doesn't work is simple. Since your app root is lib the config file needs to be there. I assume, putting that inside src directory works.

Re-open this issue when you updated the repo. I'd like to do a core fix for this specific issue.

Fixed @arunoda.  Changed package.json to reference tsc within node_modules.
https://github.com/philcockfield/next-slate-issue/commit/066fb8ac3eabd1b5ec70d8a97ed787893ba004d8
Thanks.

Creating a file called next.config.js inside the src directory with the following content will fix the issue as a hotfix:
module.exports = {
  webpack: function (c: any) {
    if (c.resolve.alias) {
      delete c.resolve.alias['react']
      delete c.resolve.alias['react-dom']
    }
    return c
  }
}

Unfortunately, this is the only solution we can go for now.
This all seems like, we need to revert https://github.com/zeit/next.js/pull/1855

Thanks @arunoda

We've revert #1855 with https://github.com/zeit/next.js/pull/2422 and hope we don't need this anymore.

I'm using next@beta Looks like this is a similar issue.

❯ next build ./dist
The module 'react' was not found. Next.js requires that you include it in 'dependencies' of your 'package.json'. To add it, run 'npm install --save react'
The module 'react-dom' was not found. Next.js requires that you include it in 'dependencies' of your 'package.json'. To add it, run 'npm install --save react-dom'
Using external babel configuration
location: "pathproject/dist/.babelrc"
Using "webpack" config function defined in next.config.js.
^C

I'm using TypeScript too.
Adding

delete config.resolve.alias['react'];
delete config.resolve.alias['react-dom'];

Doesn't work, at all.
It just happen if I build my app, but when I start normally using node ./dist/server.js everything is ok.

Having the same issue trying to migrate to next5.. @arunoda hotfix solves the issue.. There is any drawback or thing I should be aware after doing that?

I also ran into this while trying to use react-quill. Here's a repro: https://github.com/zenoamaro/react-quill
package.json
  "dependencies": {
    "next": "^5.0.0",
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "react-quill": "^1.2.6"
  }

pages/index.js
import ReactQuill from 'react-quill'
export default () =>
hello

Error when going to http://localhost:3000
 ERROR  Failed to compile with 1 errors

This dependency was not found:

* react-dom/server in ./node_modules/react-quill/lib/toolbar.js

To install it, you can run: npm install --save react-dom/server

Oh, looks like @arunoda's fix above might work, but then I need to not try rendering react-quill on the server-side, which is a separate problem: https://github.com/zenoamaro/react-quill/issues/185

@adrian-gallardo-wizeline with next 5.1 you can remove the hotfix 👍


Feature Request: Ability to add custom labels/annotations to resources created by the policyserver

Is your feature request related to a problem?
Sort of. I wanted to discover all pods concerning policy servers and for that I wanted to inject 1 label on all pods. I was unable to do it because everytime I patched the pods or the deployment created by the policy server, the label was removed.
Solution you'd like
Ability to add custom labels and possibly annotations to the deployments and pods generated by the policyserver.
Alternatives you've considered
I had to change my discovery process to target labels with wildcards, which is not ideal
Anything else?
No response

The Pods that belong to a Policy Server have the label kubewarden/policy-server set with the name of the PolicyServer object they are related with.
If you want to find all the KW Pods that are about PolicyServer (hence exclude the ones of the controller and the audit-scanner), you could do something like that:
kubectl get pods -l "kubewarden/policy-server" -n kubewarden
NAME                                     READY   STATUS    RESTARTS   AGE
policy-server-default-6746b5bc9b-n769r   1/1     Running   0          5m23s
policy-server-default-6746b5bc9b-vds7b   1/1     Running   0          97s
policy-server-testing-df999f7d8-wbwsd    1/1     Running   0          104s

Would that work?


call to gotype ignores packages named "*_test"

Gometalinter calls gotype in a way that results in files in the "_test" () package are ignored. This affects the workflow of devs who like to test packages in a "black box" style, with no access to private members.
GIven a package in $GOPATH/src/something:
something.go:
package something

// no code here, no linting errors by definition

something_test.go:
package something_test

// There is no function called Foo(), this is a compiler error
var _ = Foo()

Running gotype as gometalinter does: gotype -a . exits with 0 and prints nothing to stdout / stderr. Gotype is ignoring files in the "something_test" package and therefore does not spot the compiler error.
Running gotype with file rather than directory arguments: gotype something_test.go exits with 2 and prints something_test.go:3:9: undeclared name: Foo to stderr.
Unfortunately, when run each file as an argument, making use of a shell glob (gotype *) it complains about the 2 files having a different package.
I haven't really got any suggestions on how to fix this except calling gotype once per file present under the directory gometalinter is being called from, but I'm not sure if this would be too slow.
@joefitzgerald this may be of interest to you, as the latest version of go-plus relies on gometalinter to spot compiler errors (unless I'm mistaken).

Have you tried the --test flag?

Those gotype examples above are representative of running gometafilter with
"--tests".
On 19 Mar 2016 3:30 p.m., "Joe Fitzgerald"<EMAIL_ADDRESS>wrote:

Have you tried the --test flag?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/alecthomas/gometalinter/issues/104#issuecomment-198724167

gotype itself doesn't support this, so there's not much gometalinter can do. I think it's out of scope for gometalinter to work around issues with individual linters.
Also, just FYI, gotype is not executed with * it is executed with gotype -e -a .. You can see this by enabling --debug on gometalinter.

BTW, calling with individual files won't work either, as gotype only considers symbols directly in the files being analysed. So if a file uses symbols from another file it will result in an error.

Yeah, seems fair enough that it's out of scope for gometalinter. Would it
be worth mentioning the lack of gotype for "_test" packages in the readme?
The varargs example was just another example of how gotype can be called,
and the tradeoffs of that approach.
On 19 March 2016 at 22:44, Alec Thomas<EMAIL_ADDRESS>wrote:

BTW, calling with individual files won't work either, as gotype only
considers symbols directly in the files being analysed. So if a file uses
symbols from another file it will result in an error.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/alecthomas/gometalinter/issues/104#issuecomment-198802231


ORC-184: Refactor ColumnStatistics classes for writer

Added setters for ColumnStatisticsImpl;
Added merge, update, increase, reset, etc. to ColumnStatisticsImpl;
Supported comparision for Decimal types;
Added UTs for Decimal and ColumnStatistics.

@omalley I have created a new PR here for ORC-184 based on the current master branch. Please review it, thanks!

@majetideepak how does this PR look to you?

@wgtmac I will take a look at it in some time tonight. Thanks.

@wgtmac  looks like you have to resolve a merge conflict.

@majetideepak Resolved. Can you retry? Thanks!

@prasanthj  can you make a pass and merge this too? Thanks.

I am seeing some merged conflicts with this PR. @wgtmac could you please rebase the patch after the recent commits?

@prasanthj  I've rebased it just now. Please retry. Thanks!

Merged with master. Thanks @wgtmac for the rebase and the contribution! Thanks @majetideepak for the reviews!


[DSPDC-1622] Fix invalid import

Why
Relevant ticket
The validator script does not run due to an invalid import.
This PR

Fixes the import

This is no longer an issue in @raaidbroad 's in flight PR #72


Cant associate websocket profiles directly to a virtual server

Environment

Application Services Version: 3.44.0
BIG-IP Version: 15.1.x

Summary
In AS3 schema, you cannot attach a websocket profile directly to a virtual server. Instead, you must attach the websocket profile to the HTTP profile.
Steps To Reproduce
Steps to reproduce the behavior:

Websocket profile can be authored in AS3 schema with this class:
https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/schema-reference.html#websocket-profile

Virtual server class service_HTTPS cannot reference the authored websocket profile:
https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/schema-reference.html#service-https

Expected Behavior
The ability to reference a websocket profile from a virtual server class service_HTTPS. This is how TMOS refers to websocket profiles. We requested this behavior in issue #638 but for some reason the websocket reference was added to HTTP profile instead.
Actual Behavior
Websocket profile is referenced by HTTP profile which then gets attached to a virtual server.
Doing it this way, the customer would need to create duplicate HTTP profiles pointing to multiple different websocket profiles in order to assign different websocket profiles to different virtual servers.

We already have a similar request and will be prioritizing it in upcoming sprints. Here is the internal product backlog jira id AUTOTOOL-3753

This has been resolved in AS3 3.45.


[FEATURE REQ] [Forms Recognizer] Make RecognizedForm and child class serializable

Library or service name.
Azure.AI.FormRecognizer.Models
Is your feature request related to a problem? Please describe.
I would like to be able to deserialize RecognizedForm .  You can serialize it, and to JSON that looks ok, but you can't deserialize due to missing parameterless constructors.  We process forms as a 2 stage process

Process the forms and extract key fields used for matching against entities.
Later, when an entity is "matched", process the whole form

Currently both steps involve a call to StartRecognizeCustomFormsAsync but if the result could be stored from step 1 (e.g. in a database), then we can make step 2 more efficient.

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Thank you for your feedback, @yowl.
Currently we do not offer JSON (de)serialization since we can't guarantee serialized data compatibility across SDK versions. This would be a major feature that needs careful consideration. We've had similar feedback in the past, so we're aware this is a frequently requested feature: [QUERY] FormRecognizer - Serialization for RecognizedFormCollection
Unfortunately, for now the only way of deserializing JSON data into our models is by writing the deserialization code yourself. You can use our FormRecognizerModelFactory to instantiate our models.
Let me know if you have further questions.

Thanks, doesn't have to be JSON, XML would do fine, but I think the same restrictions exist and I understand the suggestion of  FormRecognizerModelFactory would work for me. I'll close this as I don't see it adds anything over the linked issue.


Print warning when disabling SIO_UDP_CONNRESET fails.

It's tagged as "IMPORTANT" in the comment, so perhaps add a message when it fails? I don't think this particular setting failing to be set warrants destroying the socket, though, so I opted not to do that.

Updated level to error and will now the destroy socket on failure.

There's no need to add "error: " to the message -- when you use error log level, it prepends it to your text automatically

Sorry, I'm getting netcode mixed up with my newer projects (network next etc...) that do the prefixing. Apologies.


BUG: fitpack pardeu derivative evaluation limits

Describe your issue.
@ev-br
It feels like the partial derivative should be allowed up to the degree of the bspline.
Currently there is a limit to the degree - 1.
But, for example, the derivative of order 1 of a bspline of degree 1 exists, it is a bspline of degree 0.
It is defined everywhere except at the nodes, but it remains useful to be able to evaluate it everywhere else (for example to compute integrals, or for visualization). Also, it can be extended by continuity at the nodes using semi-open intervals.
Why this limit ?

When one tries to call a with nu = deg, one gets the following error msg:

Reproducing Code Example
call a scipy.interpolate.BivariateSpline(x, y, dx=1, dy=0, grid=False) where the degree of the bspline itself is 1.

Error message
ValueError: Error code returned by pardeu: 10

SciPy/NumPy/Python version and system information
python 3.9.12
numpy 1.21.5
scipy 1.7.3

on a windows laptop, with an Anaconda distribution, in Spyder

This line has been there forever (tm):
$ git blame -M -C -C scipy/interpolate/fitpack/pardeu.f
<snip>
eda24252c92 Lib/interpolate/fitpack/parder.f   (Travis Oliphant 2001-06-20 06:23:55 +0000  82)       if(nux.lt.0 .or. nux.ge.kx) go to 400

1D splines also require k >= 1: https://github.com/scipy/scipy/blob/main/scipy/interpolate/fitpack/curfit.f#L226
So it looks like FITPACK just does not support 0D splines, in any dimension.
Adding this is an enhancement. I wouldn't be surprised if the assumption that k >= 1 is baked rather deep into FITPACK: it works by minimizing the k-th derivative jumps at knots, then what is it for piecewise-constant functions, the jumps themselves?
A way around this limitation depends on what you are really after:

if you want k=0 spline (why would you, but OK), make_interp_spline accepts k=0 in 1D
splder can happily compute derivatives of the order k, again in 1D:

In [14]: from scipy.interpolate import splder, splrep

In [15]: x = np.linspace(1, 4, 11)

In [16]: y = x**3 + 1/(1+x)

In [17]: tck = splrep(x, y, k=3)

In [18]: splder(tck, 3)
Out[18]:
(array([1. , 1.6, 1.9, 2.2, 2.5, 2.8, 3.1, 3.4, 4. ]),
 array([5.81191949, 5.90245998, 5.92952647, 5.9531363 , 5.96625086,
        5.97555179, 5.98149946, 5.98671657, 0.        ]),
 0)

I guess what splder is doing can be generalized to 2D. This needs a champion though :-).
If what you want is to compute derivatives of a tensor product spline interpolant, take a look at RegularGridInterpolator (you want version 1.13dev)


Crypto Tracker

Prerequisites

[X] I am a GSSoC-22 Participant
[X] I checked to make sure that this issue has not already been filed

Description
I saw there is a cryptocurrency price tracker already in React file but my crypto Tracker App has different UI and different features including top 10 news headlines and many more.
Please assign me this issue,
so that others can have the code and visuals of both the Apps and can make their own implementing something new.
Tech Stack
React

@abhijeet007rocks8 , can i work under this issue??
Please assign me


[ci] Use the same upgrade script on Mac

Description
This also fetches master that will populate FETCH_HEAD
Related Issues
See https://github.com/flutter/plugins/pull/1864
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

I wonder why incremental_build.sh wasn't failing the build. 🤔

Thanks for the fix!

I wonder why incremental_build.sh wasn't failing the build. 🤔

I opened  #1870 to address the issue ofincremental_build.sh not failing the build. I'll merge this change once I've convinced myself that it's working.


demo & API deployment

Hi Llia,
First a huge thanks for this work and your extra-pedagogical tone and positive attitude !
I practiced a bit of ML, trained a couple of models and now I would like others to use them, e.g. ship a demo.
I can plug this logic in a Flutter app, which is great but too tedious,
I can also build a Dart binary / a console app, but it won't pass security,
In most use cases "users/clients/bosses" would need to request this model from the browser (e.g. hugging-face space)
or at least through a web API.
I would consider dart_frog for the API and then globe to ship it painlessly, and.. finally they could test it using postman !
Would you recommend another approach ?

I believe that you could save the model as a json file using the model.toJson("<file-path>.json") function if you would like a model that you have trained to run on device without the need to connect to the internet.
Correct me if I am wrong, I am new to this project

Well the device would need a dart / Flutter app to run it, making demo complicated...

From: Jensen Holm @.>
Sent: Tuesday, August 6, 2024 5:21:13 PM
To: gyrdym/ml_algo @.>
Cc: Pierre Gancel @.>; Author @.>
Subject: Re: [gyrdym/ml_algo] demo & API deployment (Issue #255)
I believe that you could save the model as a json file using the model.toJson(".json") function if you would like a model that you have trained to run on device without the need to connect to the internet.
Correct me if I am wrong, I am new to this project
—
Reply to this email directly, view it on GitHubhttps://github.com/gyrdym/ml_algo/issues/255#issuecomment-2271554930, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADMBPBR2TPKMCRUWESOFZHDZQDSWTAVCNFSM6AAAAABMBCYKGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZRGU2TIOJTGA.
You are receiving this because you authored the thread.Message ID: @.***>

Hi everyone,
Thank you for your interest in ml_algo!
To be honest, I have no idea, what is the best option for deployment for demo purposes :)
I need to think it over, I'll take a look at globe, it looks promising.

Thank you for your reply,
On second thought...
After messing a bit with dart frog, I prefer a more manual approach, too many things occur beyond the hood and the files/route management bugs me.
In addition I fear that globe's freemium will not last long.
It is a common marketing approach to lower the barrier and then move to a pay as you go plan for all. This is what fly.io did.
So I would favor top-shelf 👨🍳
It brings simplicity to shelf and provides out of the box authent and sqlite demo.
There is a Dockerfile in the example to deploy it on any cloud provider.
Google Cloud provides 2M requests / month for free on Cloud Run, and I believe this one will last.
Reverting to the repo's topic if you deem it useful. I would be happy to document this deployment process in the context of a simple ML service

@flutter-painter I' ll take a look at the tools you proposed this weekend.

@flutter-painter
I have reviewed both shelf and top_shelf.
To confirm that we're on the same page: are you proposing to create a web application using a tool like top_shelf where users (e.g., clients or managers) can test ml_algo in real-time? Specifically, they would be able to select datasets, adjust model hyperparameters, and initiate model training directly in the browser.
If that’s the case, I believe it could be quite useful. You mentioned that you'd be happy to document the deployment process—this sounds excellent. I'd be very interested in learning more about how to deploy a simple ML service. Is there any assistance you need from my side?

Hi Llia,
I really like your idea but this sounds like a hugging-face clone and I'm not up for it 😅
What I had in mind was "just" to demo a live model :
Let's picture a web page with two TextFields to type the dimensions of the Iris flower, press infer button and see the page display the Iris' species.
I think seeing a web demo and knowing how to deploy it could spark ideas

Hello @gyrdym,
On third thought, for such use case no need for an API !
We can use Dart Web Assembly (wasm) support to bring ml logic into a simple html/js website.
I built such demo with the iris decision tree example in https://github.com/gyrdym/ml_algo/pull/257
As you can see in the screenshot below once user typed iris dimensions and click the button, the result is displayed.
It is possible to use ready-made models as long as they are not imported using dart:io but as a const String.
This demo is stark, but if you are comfortable with html/css/js you could build further to allow user to select datasets, adjust params, and train models.
Instead of locking one in Flutter-web, this approach makes it possible to use other light ml models besides Dart, provided they are wasm compatible.

@flutter-painter
Hello,
Looks awesome! I'm glad to hear that the demo is getting simpler with wasm.
I'll review your PR on Thursday. Thanks a lot for your contribution!


O2 Thread: Index Out Of Bounds Exception

http://pastebin.com/09SDNYUx

I know I said I wouldn't help but...
It Seems the thread is constantly crashing on the SC server with the same index out of bounds exception. Luckily it's not taking out the server due to it being a thread, however, it is spamming the console.

Re-opening as I don't think the patch I made will correct the issue. Still have not tested it on the server experiencing the problem. Going to implement a try-catch in the O2 thread to spit out data with the error. This way I can see what is exactly going wrong when the out of bound exception happens. As well the try-catch should prevent the thread from crashing and not finishing its bubble creation.

https://github.com/zmaster587/AdvancedRocketry/commit/adf69726b1adf54230bf865b6b6d98f074101c3b


#142746961 Add search functionality to endpoints

What Does This PR Do?
This PR adds a functionality to search for users or documents
Description of Task to be Completed
The task enables searching of users and document through an endpoint
/api/v1/search/users/q?={username} and /api/v1/search/documents/q?={title}. By hitting these endpoint, one can search for user by using a username as the query and for documents, by using the document's title as the query.
Any Background Context You Want to Provide?
N/A
How Can This Be manually Tested?

Open your terminal
Clone this repo: git clone https://github.com/andela-iamao/iamdocuman.git
Navigate to the folder cd iamdocuman
Install all dependencies npm install
Start app npm start
Open postman
Send a GET request to  /api/v1/search/users/q?={username} or /api/v1/search/documents/q?={title}

Screenshot(s)
N/A
What Are the Relevant Pivotal Tracker Stories?
#142746961 - As a system, I should be able to search for other users

Coverage decreased (-2.2%) to 92.662% when pulling 8ddaad2716b0a545bb52de2f596f1d60d008fd25 on feature/142746961/add-search into 5c4d3c1c57304b64f7f59cedb3fd0e1f453c6a6e on development.

Coverage decreased (-2.05%) to 92.833% when pulling 8ddaad2716b0a545bb52de2f596f1d60d008fd25 on feature/142746961/add-search into 5c4d3c1c57304b64f7f59cedb3fd0e1f453c6a6e on development.

Coverage decreased (-1.01%) to 93.868% when pulling f65099469a741fba28af2422a3fd77fe34516224 on feature/142746961/add-search into 5c4d3c1c57304b64f7f59cedb3fd0e1f453c6a6e on development.