Methods used to turn off LED's don't seem to work with scrolling text.

After running a script that scrolls text, this doesn't seem to do anything
    for led in lp.panel.led_range():
        del led.color  # Turn off LED

There are no errors.

@Fair-Tech, can you provide the script you are running?

Simply running the examples.
I modified the text scroll example to run that after a loop, and it didn't clear the LED's.
But, it doesn't seem to work in the default example either.
This one specifically does nothing at all:
from lpminimk3 import Mode, find_launchpads
import random
import time

lp = find_launchpads()[0]  # Get the first available launchpad
lp.open()  # Open device for reading and writing on MIDI interface (by default)

lp.mode = Mode.PROG  # Switch to the programmer mode

for led in lp.panel.led_range():  # Loop through all LEDs
    led.color = random.randint(1, 127)  # Set LED to a random color

time.sleep(5)  # Keep LEDs on for a while

for led in lp.panel.led_range():
    del led.color  # Turn off LED

It doesn't light up any LED's on the Launchpad, and simply closes.

@obeezzy

Windows 10 - 22H2

Yes, they respond to scrolling text commands, the render movie script, and pretty much all of the other commands.

I did install via the pip command.

4/5. I ran the command, and got the following output:
in=['LPMiniMK3 MIDI 0', 'MIDIIN2 (LPMiniMK3 MIDI) 1']
out=['Microsoft GS Wavetable Synth 0', 'LPMiniMK3 MIDI 1', 'MIDIOUT2 (LPMiniMK3 MIDI) 2']

Another, unrelated question, probably shouldn't ask here but don't use Github often:
After running a text scrolling command or a movie command, etc, is there a way to send a command to stop what is currently running and clear the leds?
For context, I'm trying to create a script that allows me to pass command line arguments to scroll notifications text from other apps, Twitch, Your Phone, etc. For now, I have to close the Python script entirely, or it will try to display everything at once, resulting in flickering between the different text submitted. Maybe something like lp.reset() or something along those lines? I'm not super experienced in Python, let alone threading, so I could be doing something absolutely wrong.

@Fair-Tech, I think I have an idea of the issue. I think what you need is to set the count argument for the scroll() function:
>>> import lpminimk3
>>> lp = lpminimk3.find_launchpads()[0]
>>> lp.open()
>>> lp.mode = 'prog'
>>> from lpminimk3.graphics import Text
>>> lp.grid.render(Text(' Hello, world!').scroll(count=1))

Setting the count value to 1 tells the Launchpad to render the text once on the surface. Running the example above would clear the screen right after displaying the text because of the space before the text (' Hello, world!' not 'Hello, world!). If you wanted to clear the screen manually, you would have to call:
>>> for led in lp.panel.led_range():
...     del led.color
...
>>>

You can call it before you start rendering too (to ensure the Launchpad's surface is cleared), after the ports are open and the mode is set.
I speculate that the reason it probably wasn't working for you is because none of the examples set count, so text is scrolled infinitely.
Let me know if any of this helps.

@Fair-Tech, you can also try the render script if you would like to use lpminimk3 from the command line:
$ python -m lpminimk3.graphics.render -c 1 " Hello, world"

Once again, the -c argument can be used to specify the number of times to scroll (same as the count argument in scroll()).

@obeezzy
I suppose I should have specified that I want some notifications text to scroll indefinitely, until stopped by another notification or another function. So I have been using 0 as count, which seems to be the issue I'm running into.
Would it be better practice to just loop a method with a 1 count until it's interrupted?
Does the function return something when it's complete, or would I have to time it based on the number of characters?
Sorry for the basic questions, I'm new to Python and have been using ChatGPT and Bard to learn, they are less than ideal teachers.

@Fair-Tech, if you are looking for a function that could interrupt infinite scroll, you could try using the cycle_func for the lpminimk3.graphics.Text object, which takes a Callable or function. The function is called every time bytes are written to the device. If you are polling for data from the notifications, you can poll for the data in the cycle function and throw an exception (maybe a RuntimeError) from there to stop the infinite scroll when data is available. Then you could catch the exception and render the new text (if it's in an infinite loop, that is). You can take a look at text scroll example for ideas on how you could make that work.
The best practice depends on how data is returned to you from the source. You could possibly use a Queue (or a JoinableQueue) but I'm not sure what would fit your exact use case. It also depends on if you want the new text to display immediately, or after the current text is done scrolling. You can try what I suggested above and if that doesn't work, maybe you can give me more information on how your code works.
I haven't tried threading with lpminimk3 but it should work with no issues if the ports are accessed from a single thread. Let me know if any of this helps.
Also, BTW, I added lp.panel.reset() and lp.grid.reset() as a convenience functions to turn off the LEDs, just FYI.

Thanks for all the information! I've tested a few things, and I'm still figuring out the best option for interrupting indefinite scrolling. But, the lp.grid.reset() and lp.panel.reset() functions don't seem to work. The only way I can clear the LED's is with lp.grid.render(Text(' ')).
On theme with asking multiple questions in one topic, is there a string to pass as background color that will turn the led off? I know if the variable is empty it will be off, but if the string was ever defined, and then set to None, it's not the same as undefined. The function doesn't seem to accept when the variable is manually set to None. I've also tried 0, and I get an Invalid color error.

@Fair-Tech, not sure why the new functions are not working, how exactly are you calling them? Are the MIDI ports open?
As for the background color issue, I'm unable to reproduce it. How are you setting the background color? Running the code below works for me:
>>> import lpminimk3
>>> lp = lpminimk3.find_launchpads()[0]
>>> lp.open()
>>> from lpminimk3.graphics import Text
>>> lp.grid.render(Text("H"))
>>> lp.grid.render(Text("H"))
>>> lp.grid.render(Text("H"))


Please add and expose Java Heap Size Parameter -Xmx

Hello,
first of all, thank you for your work.
I recently was using your docker container on a Raspberry Pi 4 with 4 GB of RAM.
After some time I was unable to establish a ssh connect to the Pi anymore.
I needed to disconnect power of the Pi. After that I was able to establish a new ssh session to the PI.
I found out in the kern.log that there were some Out of Memory situations with the java process of ccu-historian.
Currently I can see that the RAM usage is increasing.
79923 root     21.5 java -jar /opt/ccu-historian/ccu-historian.jar -config /opt/ccu-historian/config/ccu-historian.config
Please add a possiblity to configure the Java Heap Size Memory (-Xmx) exposed in the docker-compose file.
Thank you.
Regards,
Jochen

I prepared and tested https://github.com/jokay/docker-ccu-historian/pull/149.
Seems to work so far, did some tests by using -e CONFIG_JAVA_OPTS="-Xmx100m -Xms100m".
# ps aux | grep "java"
root           9  1.3  1.5 3700768 253016 ?      Sl   22:00   0:11 java -Xmx100m -Xms100m -jar /opt/ccu-historian/ccu-historian.jar -config /opt/ccu-historian/config/ccu-historian.config

So it can be included in the next release.

Support for CONFIG_JAVA_OPTS is merged and will be available in the next release, see here.

Thank you very much for fast adding this feature!
I hope you will build the next docker container soon, so that I can try and use it.
Regards,
Jochen

My releases are based on the releases of CCU-Historian so I can't give you any ETA :wink:

@Jokay
Just my 2 cents:
Take your time.
The conversion of the current database V2.8.3 to the new format of V3 may become demanding.
Paul

This will be a manual step, see here :wink:

Feature is included in todays 2.9.0 release.


Fetch component not accepting post method.

I think I may have more of a question than an issue, so I do apologize in advance if this is stupid. I'm trying to use the  component to make some calls. When I omit the method prop altogether, it works fine, but if I add the method="post" (or any other method type) it doesn't event attempt to fetch. I am awfully tired so I apologize if this is due to my negligence.

No problem, @Samuelote . I understand how this could be confusing. I recommend that you give this guide a read (it is short!), which explains a prop that exists called lazy. Let me know if that guide helps you understand what is going on here.
If after reading it you need further help understanding the issue, let me know and I'd be happy to assist more.

Ah shoot. I figured it was something like that. Thank you so much. I read through it and now understand. Pardon my inattention to detail! Thanks again @jamesplease

That’s great! I’m glad you were able to figure it out 😁
I’ll close this issue for now, but feel free to let me know if you run into any other issues ✌


Change Subheaders for implementation

Coverage remained the same at 85.197% when pulling 762e24985189d8ce715c5ed1563d7f0644049e74 on awarenessxz:v1.5_Developer_Guide into 7ddf5ab0f8c763a9a788e1dbb66cda346d833f5b on CS2103AUG2017-W14-B2:master.


[Feature Request] Add a setter method for track_time

Hey there, thanks for the nice project!
I am the developer of ytmdl and my project has been dependent on your library since the beginning.
It was later that I noticed that the track_time property of the songs are returned in miliseconds, however, my requirement was to get them in seconds, so I added a bit of code that updates the track_time value and then passed the whole results container along.
It was working all nice and well until the last release. You made the move to change track_time to a property and it turns out the property doesn't have a setter method which is why my code was unable to update the track_time value and so as a result a lot of users started facing the issue.
However, a few days ago a fellow user pointed out the issue to me and I found out about the latest release that broke my code.
I just wanted to request to please add a setter method for the track_time property so that I can go back to using all the latest releases as currently I have forced the version 1.5.5 in the setup.
Cheers! Thanks for the awesome library, really appreciate it.

Hey! Awesome to see that such an amazing project is using itunespy 😄
I understand the use case, however I think it'd be much better if instead of exposing a setter (I'd like to keep everything inside the objects as immutable as possible) the library could expose a method to return the time in a given time span (milliseconds, seconds, minutes, etc.), how does that sound?

@sleepyfran That would be perfect. I'd be glad to have something like that, it'd save me a bit of extra code.

@deepjyoti30 Awesome! I'll take a look as soon as I have time 😄

Hey @deepjyoti30! I've been looking into it and I just remembered that there's already a method in the track that might help you with it. All tracks expose a get_track_time_minutes and get_track_time_hours that I think should be exactly what you're looking for. Is there any reason why you're not using those? 😄
Sorry I didn't come up with it before, it's been a while since I've worked on the library.

@sleepyfran Wow, I was not aware that it was available.
I had also implemented the code that had itunespy a while back so I guess I never looked through the available methods. Thanks a lot for that, I'll close the issue.


Please merge 7f879e1c4b517e092971eeacb0b3ec83eec3b610 to dev

This fixes a broken Dartium build on linux.  The NSS header files in the machines we use to compile dartium have been updated, and they are incompatible with the chrome 45 build we use for Dartium.  This patch removes the incompatible parts from the Dartium code, by pinning a version with the patch in the repository https://chromium.googlesource.com/dart/dartium/src.git@2454_work
Only this new patch is brought in in the new pinned version, no other changes since the 1.18 branch.
@terrylucas

Thanks William
On Thu, Jul 14, 2016 at 4:43 AM, William Hesse<EMAIL_ADDRESS>wrote:

This fixes a broken Dartium build on linux. The NSS header files in the
machines we use to compile dartium have been updated, and they are
incompatible with the chrome 45 build we use for Dartium. This patch
removes the incompatible parts from the Dartium code, by pinning a version
with the patch in the repository
https://chromium.googlesource.com/dart/dartium/src.git@2454_work
Only this new patch is brought in in the new pinned version, no other
changes since the 1.18 branch.
@terrylucas https://github.com/terrylucas
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/26886, or mute the thread
https://github.com/notifications/unsubscribe/AB9ewRweNZfql3W1juWTSNA3_ioQXiAUks5qViDogaJpZM4JMWTb
.

Also merged the changes to webkit, just a status file and status file parsing fix to layout tests.
Merged in 1.18.0-dev.4.1


Changes not being saved

First of all i must say that i'm not experienced in java whatsoever, however what i'm trying to do is just so simple that i don't understand how it could be something i'm doing that is wrong.
I'm opening a .jar minecraft mod for 1.16.5, changing a single number from a "1" to a "3" (a 'ToolType' property) and exporting it out.
The changes simply do not save...

If the decompiled code cannot be recompiled use the assembler, see the documentation: https://www.coley.software/Recaf-documentation/use-editing.html


Add blog page to left navbar on "book" pages

This PR makes the left navbar that appears on all the "book"-style pages a bit more comprehensive by including a link to our Blog page.
To make this work, we need to include a placeholder file blog.md with content that gets overwritten by ablog at build time.
This PR includes the changes in #442

Here's a direct link to the preview of one of the "book"-style pages https://projectpythia.org/_preview/443/about.html


AR3 Robot

Hi Vicente,
Hope you are doing well.
I built an Open Source AR3 Robot over the break out of my personal interest. Still work in progress, but works.
https://user-images.githubusercontent.com/8084742/103826424-b77d5100-506e-11eb-89fb-f56b90e84451.mp4
I have been trying to reuse the robot's plugin for the simulation by modifying the 3dm file and XML file.
AR3.zip
But the simulation seems off.
The robot uses a left-hand coordinate system as compared to the RHCS in Rhino and the DH parameters for 4th axis are negative which my brains do not understand. Please find the DH parameters attached.

Please let me know if you could help. Any help/ suggestions/ advise would also be really helpful.
I'm working on a separate post-processor with my minimal knowledge in Python. Hope it works as AR3 uses pickle which I just found out today. Will share once it is a bit it works.
Many thanks.
Kind regards,
Pradeep Devadass

Hi Pradeep, hope you are well! I tested the xml/3dm you attached and it seems to work fine, the only thing I changed is the name of the robot cell from KUKA to AR3. Can you describe the issue in more detail?

Hi Pradeep, hope you are well! I tested the xml/3dm you attached and it seems to work fine, the only thing I changed is the name of the robot cell from KUKA to AR3. Can you describe the issue in more detail?

Many thanks for your response.
The DH parameter for d4 is -222.63 while I have entered it +222.63 in the XML. Similarly, for the d6. If I enter the negative values the robot model goes crazy.
Does this make my robot Axis 4 flipped. Please find the image attached for J1=-100, J2=-120, J3=120, J4=60, J5=90, J6=90.

Is it possible to change the 'alpha' and 'theta' DH parameters for a robot configuration, so I can make the exact kinematic configuration of the AR3 robot?
Also, the robot uses a left-handed system while Rhino uses a right-handed system. Would that make difference in the simulation?
Please let me know.

Many thanks for your response.
The DH parameter for d4 is -222.63 while I have entered it +222.63 in the XML. Similarly, for the d6. If I enter the negative values the robot model goes crazy.
Does this make my robot Axis 4 flipped. Please find the image attached for J1=-100, J2=-120, J3=120, J4=60, J5=90, J6=90.

Is it possible to change the 'alpha' and 'theta' DH parameters for a robot configuration, so I can make the exact kinematic configuration of the AR3 robot?
Also, the robot uses a left-handed system while Rhino uses a right-handed system. Would that make difference in the simulation?
Please let me know.

In Robots, the joint rotations used internally are converted differently depending on the robot manufacturer. I assume the same will have to be done with this robot. Besides converting from radians to degrees (if your robot requires degrees), it can also be things like reversing the direction, adding 180 degrees, etc. and this might be different on each axis.

In Robots, the joint rotations used internally are converted differently depending on the robot manufacturer. I assume the same will have to be done with this robot. Besides converting from radians to degrees (if your robot requires degrees), it can also be things like reversing the direction, adding 180 degrees, etc. and this might be different on each axis.

Hi @pappurvsa let me know if the fix was to adjust the conversion of joint angles, to close the issue.

Hi @pappurvsa let me know if the fix was to adjust the conversion of joint angles, to close the issue.

Hi @pappurvsa I will close the issue assuming it was related to my last comment, but you can open it again if not.

Hi Vicente,
Many thanks for your support. Apologies for the delay in reply as I had to fix and test the script with that robot. I did manage to fix the issue to a certain extend. I used 'Expand Objects' component from Speckle Library (Download link https://we.tl/t-HUzyqy8VlX) to extract information from the Target Parameters (goo object). I wrote a post-processor in  Python.
Following is an example I tested a simple Pick and Place experiment using this method.
https://www.linkedin.com/posts/pradeepdevadass_architecture-design-construction-activity-6778201411911057408-VqJh

The problem I'm still having is converting the rotation angle around X and Y from RHS of the rhino environment to LHS which the robot uses. Is that something you could help with?
Please find the files attached.
AR3.zip
Many thanks again.


Open-sourcing pre-trained models

Hello @heitorrapela  🤗
I'm Merve and I work on computer vision at Hugging Face. I see your paper is accepted, congratulations on getting accepted to ECCV!
I indexed it here https://huggingface.co/papers/2404.01492 at paper pages. The paper page lets people discuss about your paper and lets them find artifacts about it, you can also claim the paper as yours which will show up on your public profile at HF.
Would you like to host the model you've pre-trained with this technique on https://huggingface.co/models? I couldn't find the pre-trained models, are you planning to release them?
After uploaded, we can also link the datasets to the paper page (read here) so people can discover your model (and also we can grant you hardware if you decide to build a demo)
What do you think?

Hi @merveenoyan, thanks for the kind words and effort with the open-source community. 🤗
Sorry for the late response; I was traveling for the conference.
I am planning to release the weights, and I can try to release a demo as well. Probably, I will have more time after the conference for doing everything following some good practices.
Best Regards,
Heitor Medeiros

@heitorrapela sure! I will try to find you in person as well, currently in ECCV :)

Hi @merveenoyan, yes sure we can meet in ECCV 👍🏻


Minimal Transformer encoder using MultiheadAttention and RoPE

Hi, I'm testing out a basic BERT-esque transformer stack, MWE is here. This is loosed based on https://github.com/Artur-Galstyan/kira but simplified (no dropout, no state because there's no KV cache) and using the equinox MHA/RoPE API which is slightly different from the kira version.
After some confusion with vmap and the dimension for RoPE (it needs to be n_embed/num_heads it seems) this works, but I'm a bit shocked how quickly I run out of memory on a TPU v4 VM. e.g. with BERT defaults (shown in the MWE) and sequence length of 1024, I can manage (for the forward pass) a batch size of 64 but not 128 on a single device. I guess this is why people like to shard their models not just their data!
If @patrick-kidger or @Artur-Galstyan could give the MWE a quick skim and tell me if I'm doing anything particularly dumb (especially that might be impacting memory use) that would be great. Creating the causal mask in every block/forward pass seems inefficient but presumably small fry on the grand scheme of things. Thanks!

Hi there, I'll try to find some time this weekend and give it a look!

Ok, so I only did a quick test, but so far, I see no issues. The transformer implementation LGTM to me too.
Regarding the memory usage:
(I only have a Macbook with 16 GB RAM, so take this with a grain of salt)
I checked the memory usage with a much, much smaller batch size of .. 1 and compared this to a PyTorch implementation.
The PyTorch version:
import torch
from bert_pytorch import BERT
from memory_profiler import profile

@profile
def main():
    vocab_size = 128
    seq_length = 512
    batch_size = 1
    input_ids = torch.randint(0, vocab_size, (batch_size, seq_length))
    segment_ids = torch.randint(0, 2, (batch_size, seq_length))
    bert = BERT(vocab_size=vocab_size)
    output = bert(input_ids, segment_ids)
    print(output)

if __name__ == "__main__":
    main()

When checking the memory consumption, we can see the following:
Line #    Mem usage    Increment  Occurrences   Line Contents
=============================================================
     6    154.8 MiB    154.8 MiB           1   @profile
     7                                         def main():
     8    154.8 MiB      0.0 MiB           1       vocab_size = 128
     9    154.8 MiB      0.0 MiB           1       seq_length = 512
    10    154.8 MiB      0.0 MiB           1       batch_size = 1
    11    155.4 MiB      0.7 MiB           1       input_ids = torch.randint(0, vocab_size, (batch_size, seq_length))
    12    155.4 MiB      0.0 MiB           1       segment_ids = torch.randint(0, 2, (batch_size, seq_length))
    13    487.0 MiB    331.5 MiB           1       bert = BERT(vocab_size=vocab_size)
    14   1681.0 MiB   1194.1 MiB           1       output = bert(input_ids, segment_ids)
    15   1682.2 MiB      1.1 MiB           1       print(output)

Peaking at 1682.2 MiB.
For comparison, the Equinox version:
Line #    Mem usage    Increment  Occurrences   Line Contents
=============================================================
    93     97.4 MiB     97.4 MiB           1   @profile
    94                                         def main():
    95                                             # Define parameters
    96     97.4 MiB      0.0 MiB           1       num_layers = 12  # Number of transformer blocks (BERT-base has 12)
    97     97.4 MiB      0.0 MiB           1       d_model = 768  # Hidden size (BERT-base has 768)
    98     97.4 MiB      0.0 MiB           1       n_heads = 12  # Number of attention heads (BERT-base has 12)
    99     97.4 MiB      0.0 MiB           1       d_ff = 3072  # Size of the feedforward layer (BERT-base has 3072)
   100     97.4 MiB      0.0 MiB           1       seq_length = 1024  # Sequence length
   101     97.4 MiB      0.0 MiB           1       batch_size = 1  # Batch size
   102
   103                                             # Random key for initialization
   104    132.2 MiB     34.8 MiB           1       key = jax.random.PRNGKey(0)
   105
   106                                             # Initialize the transformer stack
   107   1320.6 MiB   1188.4 MiB           2       transformer = TransformerStack(
   108    132.2 MiB      0.0 MiB           1           num_layers, n_heads, d_model, d_ff, key=key, causal=True
   109                                             )
   110                                             # transformer = eqx.filter_jit(transformer)
   111
   112                                             # Dummy input data (batch_size, seq_length, d_model)
   113   1334.2 MiB     13.6 MiB           1       x = jax.random.normal(key, (batch_size, seq_length, d_model))
   114
   115                                             # Run the transformer stack
   116   1627.4 MiB    293.2 MiB           1       output = jax.vmap(transformer)(x)
   117   1627.4 MiB      0.0 MiB           1       print(output.shape)

Peaks at 1627.4 MiB.
Differences occur when using a batch size of 2 in which case the PyTorch version uses much more memory:
Line #    Mem usage    Increment  Occurrences   Line Contents
=============================================================
     6    155.3 MiB    155.3 MiB           1   @profile
     7                                         def main():
     8    155.3 MiB      0.0 MiB           1       vocab_size = 128
     9    155.3 MiB      0.0 MiB           1       seq_length = 512
    10    155.3 MiB      0.0 MiB           1       batch_size = 2
    11    155.9 MiB      0.7 MiB           1       input_ids = torch.randint(0, vocab_size, (batch_size, seq_length))
    12    155.9 MiB      0.0 MiB           1       segment_ids = torch.randint(0, 2, (batch_size, seq_length))
    13    489.3 MiB    333.4 MiB           1       bert = BERT(vocab_size=vocab_size)
    14   2874.9 MiB   2385.6 MiB           1       output = bert(input_ids, segment_ids)
    15   2876.1 MiB      1.2 MiB           1       print(output)

vs. the Equinox version:
Line #    Mem usage    Increment  Occurrences   Line Contents
=============================================================
    93     97.5 MiB     97.5 MiB           1   @profile
    94                                         def main():
    95                                             # Define parameters
    96     97.5 MiB      0.0 MiB           1       num_layers = 12  # Number of transformer blocks (BERT-base has 12)
    97     97.5 MiB      0.0 MiB           1       d_model = 768  # Hidden size (BERT-base has 768)
    98     97.5 MiB      0.0 MiB           1       n_heads = 12  # Number of attention heads (BERT-base has 12)
    99     97.5 MiB      0.0 MiB           1       d_ff = 3072  # Size of the feedforward layer (BERT-base has 3072)
   100     97.5 MiB      0.0 MiB           1       seq_length = 1024  # Sequence length
   101     97.5 MiB      0.0 MiB           1       batch_size = 2  # Batch size
   102
   103                                             # Random key for initialization
   104    133.8 MiB     36.2 MiB           1       key = jax.random.PRNGKey(0)
   105
   106                                             # Initialize the transformer stack
   107   1325.7 MiB   1191.9 MiB           2       transformer = TransformerStack(
   108    133.8 MiB      0.0 MiB           1           num_layers, n_heads, d_model, d_ff, key=key, causal=True
   109                                             )
   110                                             # transformer = eqx.filter_jit(transformer)
   111
   112                                             # Dummy input data (batch_size, seq_length, d_model)
   113   1335.2 MiB      9.5 MiB           1       x = jax.random.normal(key, (batch_size, seq_length, d_model))
   114
   115                                             # Run the transformer stack
   116   1998.4 MiB    663.2 MiB           1       output = jax.vmap(transformer)(x)
   117   1998.4 MiB      0.0 MiB           1       print(output.shape)

Though this difference might be because of the way they implemented BERT? I'm not 100% sure here.
I'd say memorywise it's ok?

Fantastic, thanks. I think I was just expecting the TPU VM to laugh in the face of anything I threw at it and was surprised when it didn't!
Now I just need to get my head around the RoPE bug you mentioned and figure out if I think it's relevant for my use case (I'm using a fixed length input which may simplify things somewhat).


Add Tablet to equipment

Add Tablet to equipment

@jbkoh would you consider adding a Tablet equipment to the #452 ? Servers and other ICT equipment would also be good candidates

We will address this for 1.4.0; Tablet will be added under a new ICT Hardware (better name?) class under the new ICT Equipment class. We can take some other classes from https://dev.realestatecore.io/ontology/Asset/Equipment/ICT-/ICTEquipment too


Version 0.8 Changelog

I think now is a good time to tag a version, for the following reasons:

we haven't tagged a version since April 2017
the current spec text describes, to the best of our knowledge, what NSS and pod-server implement.
NSS is now basically in feature-freeze wrt spec changes, so it's good to have a spec version number to refer to.
there are a lot of new proposed spec changes coming up, so we could say they should all get discussed in parallel and then lead to one big spec update from 0.8 to 1.0, hopefully somewhere around Christmas.
pod-server will implement the 0.8 spec for the coming six months, then switch from 0.8 to 1.0 in January 2020.

Depends on:

[ ] https://github.com/solid/webid-oidc-spec/pull/27: PoP tokens were added to web-access-control
[ ] https://github.com/solid/solid-spec/pull/148: Globbing clarified
[ ] https://github.com/solid/webid-oidc-spec/pull/26, https://github.com/solid/solid-spec/pull/171: Status of webid-tls as auth method clarified
[ ] https://github.com/solid/solid-spec/pull/193: Willful violation of sparql-update clarified

Indeed,  it sounds like a good time to me, but we need to allow time for people to chime in.

Given "depends on", should we wait until those are merged before merging in this one?
Just want to repeat that there is no inrupt consensus on

pod-server will implement the 0.8 spec for the coming six months

We should not waste time on implementing mistakes that happened to end up in the 0.8 draft.
v0.7 and v0.8 are non-authoritative.
If you insist on implementing globbing and (the currently underspec'ed and thus non-implementable) SPARQL per-resource querying, I suggest to at least have two champions within inrupt.

Regarding what does and does not get implemented in pod-server and who champions what, please talk to @acoburn from now on.

Given "depends on", should we wait until those are merged before merging in this one?

Yeah, probably. Maybe we can ask @Mitzi-Laszlo to try to shepherd that process if it takes too long?


Pass FlowRouter.current() to both middleware and action ?

Right now middleware gets path only and action gets params and queryParams.
I'm thinking it makes sense to instead pass the 'current' object to both of those. We can get all three objects from that (path, params, queryParams).
I noticed I'm doing FlowRouter.current() in action() to get the whole path. I'm sure it seems like an action() will already know its path, but, with params and queryParams involved it changes.
Also, in middleware I use FlowRouter.getParam because it only has path.
It seems it would be consistent to always provide the current object (FlowRouter.current()).
What are your thoughts?

I prefer to have the syntax in this way.
It's very clear in that way. (just my idea)
But we can have params and queryParams in the middleware.
On Tue, Mar 31, 2015 at 7:26 PM Eli Doran<EMAIL_ADDRESS>wrote:

Right now middleware gets path only and action gets params and
queryParams.
I'm thinking it makes sense to instead pass the 'current' object to both
of those. We can get all three objects from that (path, params,
queryParams).
I noticed I'm doing FlowRouter.current() in action() to get the whole
path. I'm sure it seems like an action() will already know its path, but,
with params and queryParams involved it changes.
Also, in middleware I use FlowRouter.getParam because it only has path.
It seems it would be consistent to always provide the current object (
FlowRouter.current()).
What are your thoughts?
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/flow-router/issues/53.

I inspected the contents of the values and see the params object actually has the path in it with the key 0. And, the query params are in it as well with key query. It seems unlikely anyone will use the name query for a parameter and cause a name conflict. It also looks a little odd to have path in there accessed with 0, but, it's nice it's in there (I can drop my FlowRouter.current().path call).
I can easily workaround this, no biggie. Seems odd like routes don't care about their path and middleware doesn't care about params/queryParams.
To ensure I was clear in my above rambling, I was thinking of this:
someMiddleware = (currentRoute, next) ->
  # currentRoute has { path, params, queryParams }
  # can do whatever with any of those three...
  next()

FlowRouter.route '/some/path',
  action: (currentRoute) ->
    # same stuff in this currentRoute object

That looks clear to me (consistent and full featured). Up to you :)
If you do add params/queryParams to middleware, would you make the next the first argument because it's always used, and that allows path/params/queryParams to be optional? Or, what argument order would you use?

Okay I got it.
May be middlewares can have 1.0 next before others.
Anyway, I'm thinking about the backward compatibility. Any ideas.

That's a good point, and a tough one. Perhaps it's something to put off for a version 2.0.
In version 1+ add a new property name for middleware which uses the new parameters, such as beforeAction and beforeActions. Then in version 2+ drop support for the middleware / middlewares properties. I think you likely chose the names middleware(s) because you prefer them though.
I don't see how to alter the action in a similar way, but, it's the one which actually receives all the values; it's just path is hidden inside the params object as:
FlowRouter.route '/some/thing/:id',
  action: (params, queryParams) ->
    path = params['0']  # same as: FlowRouter.current().path

As is, I'm applying regular expressions to the path in middleware instead of getting params/queryParams info. And, I'm getting the path from params['0'] in action.
Also, we can call FlowRouter.current() in either place to get the missing info.

+1, nice idea to access the (query)?params in the middlewares !

Let's carry over the discussion here: https://github.com/meteorhacks/flow-router/pull/59


dashboard/appearance page design

Done

[https://www.figma.com/file/qxxVIshxS3sqcpByAS0FzC/Team-15-CMS_-Apperance-page]

Okay. Well done @Anya-ndulue


Add ingest_csv_to_table and recursive_search functions

The recursive_search function is used in workflow-miniscope (ingest.py) to search through the metadata json file for the device type.  This function is based on this StackOverflow post.

Switched the review to @tdincer, since @CBroz1 wrote the original ingest_csv_to_table function.

Something to keep on mind. Python has a maximum recursion depth limit of 1000 to avoid the stack overflows.

Something to keep in mind. Python has a maximum recursion depth limit of 1000 to avoid the stack overflows.

That's good to know.  Thanks!

The recursive_search algorithm looks good. One limitation of the algorithm is that if there are more than one keys at different depths, the algorithm returns the value of the least nested key. Would this limitation be a problem for the intended use? Or perhaps this is just something to keep in mind - use the algorithm if this is not a problem. If so, it would be great to note this limitation in the docstring.
ingest_csv_to_table also looks good. It would be great if it supported an integer id key (e.g file_id, recording_id, subject_id) with a counter but it's not necessary to approve the PR.
Since these two functions are introduced in the element-interface, I pressume there are at least two elements that require these functions.

Since these two functions are introduced in the element-interface, I pressume there are at least two elements that require these functions.

I'm not familiar with recursive_search, but csv_to_table is currently used across multiple workflows

Thanks for the thorough review, @tdincer!

The recursive_search algorithm looks good. One limitation of the algorithm is that if there are more than one keys at different depths, the algorithm returns the value of the least nested key. Would this limitation be a problem for the intended use? Or perhaps this is just something to keep in mind - use the algorithm if this is not a problem. If so, it would be great to note this limitation in the docstring.

Good catch.  This should not be an issue for the current use case with element_miniscope.  I have added a docstring.

ingest_csv_to_table also looks good. It would be great if it supported an integer id key (e.g file_id, recording_id, subject_id) with a counter but it's not necessary to approve the PR.

Sorry, I don't quite understand.  Are you suggesting that if a primary attribute is an integer datatype then the user shouldn't need to enter the value into the csv file and this function would automatically assign that primary attribute integer value for each entry?

Since these two functions are introduced in the element-interface, I pressume there are at least two elements that require these functions.

recursive_search is used in element_miniscope and workflow_miniscope.  Although I could have imported it into workflow_miniscope from element_miniscope I opted to keep here since it is a general search function.

ingest_csv_to_table also looks good. It would be great if it supported an integer id key (e.g file_id, recording_id, subject_id) with a counter but it's not necessary to approve the PR.

Sorry, I don't quite understand. Are you suggesting that if a primary attribute is an integer datatype then the user shouldn't need to enter the value into the csv file and this function would automatically assign that primary attribute integer value for each entry?

That's right. If the attrribute is an integer datatype, user can provide that attribute's name in the function and then the values from a counter can be assigned to that attribute name.
In overall, the current form of this PR looks good. I can merge it or wait for this update.

That's right. If the attrribute is an integer datatype, user can provide that attribute's name in the function and then the values from a counter can be assigned to that attribute name.
In overall, the current form of this PR looks good. I can merge it or wait for this update.

Thats a good idea.  Let's merge now and then we can add that feature in the future.  Thanks!

@kabilar Thank you!


[Exposure Request] codeunit 442 "Sales-Post Prepayments" - BuildInvLineBuffer

Please make function BuildInvLineBuffer externally available.
procedure BuildInvLineBuffer(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; DocumentType: Option; var TempPrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer" temporary; UpdateLines: Boolean)
var

Hello! I would like to understand how you are going to use this procedure, if we make it external. We would prefer to keep it as internal implementation, to be able to change it in the future without affection partner extensions.

Hi,
Thank you for clarification. I understand. We are migrating legacy solution to extension. In this case I stumbled upon the code calling this function. In this solution the Prepayment Invoices are not automatically posted as in standard BC but can be viewed prior to posting instead. If you would prefer this function to stay internal because of change in near/distant future I can understand that. I will duplicate the logic.

Thank you for understanding, closing.


Question about the router: bound-checking for hop fields possibly missing

Hi everyone,
First, I apologize if this report/question is a bit too hand-wavy at times, but while proving the correctness of the router in the context of VerifiedSCION, I noticed that something looks weird.
More concretely, in file pkg/slayers/path/scion/decoded.go, there are the following definitions, together with comments expressing a few assumptions about the structure of the scion packets:
const (
	// MaxINFs is the maximum number of info fields in a SCION path.
	MaxINFs = 3
	// MaxHops is the maximum number of hop fields in a SCION path.
	MaxHops = 64
)

While the restriction on MaxINFs looks OK, the restriction that we have at most 64 hop fields seems to not be enforced: when we decode a Base, we store in the field NumHops the sum of the lengths of all segments. The length of each segment cannot exceed 64, but their sums can. As far as I can tell, there is no check performed while forwarding a packet that NumINFs is less than 64. While processing a SCION packet, we eventually call IncPath, which has the effect of incrementing the field CurrHF in PathMeta. As far as I can tell, nothing so far prohibits this field from getting to value 64 (if its original value was 63). The problem here is that, when we serialize the output packet (including its packet), if its value is at least 64, we will only serialize its 6 least significant bits, instead of storing its full value (the operation that serializes the CurrHF is uint32(m.CurrHF&0x3F)<<24). As such, I believe that, as is, the router would allow sending packets whose paths are too long until a point when they become invalid and are dropped. Is my understanding correct?

Due to the headers definitions, a scion packet with more than 64 hop fields cannot actually exist. It is just a packet with 64 hop fields plus stuff that looks like hop fields at the beginning of the payload. I guess this means that we're missing a check for the sum of segment lengths, since that's the only thing that indicates the packet is broken before actually reaching the end of the path. I'll try and produce this and fix it if needed.

Hem... I take that back. It is possible to fit up to 80 hops fields in a maximum header. So, may be more checks required.


Module 2.4 Assignment

👋 Great job so far! For this assignment, please include a screenshot that shows you're creating and then resolving a merge conflict. It may help to reference the list of commands in the assignment: https://github.com/github-campus-advisors/Campus-Advisor-Training/blob/master/Module 2/Module 2.4 Assignment.md

Creating

Fixing

Also, discovered how to not make a merge conflict:
https://stackoverflow.com/questions/634546/git-merge-reports-already-up-to-date-though-there-is-a-difference


fix missing name container stats

fix https://github.com/containerd/nerdctl/issues/3141

This still doesn't show k8s:// names?


[Design v2] Menu

Resources
https://www.figma.com/file/I4OOjT4VhsSberDIAZTkcH/Covid-Watch-App-v2-dev?node-id=1335%3A39652

Resolved in #71


Add args for template path and flash attention

Add two arguments:

prompt_template_path: Default to "templates", can be used to pass the template path when working directory is not the alpaca-lora directory.
flash_attention: Default to True, enables flash attention backend.

Turns out flash attention requires more than enabling this


Updating script Does not work

After i changed the script and i add it back in the MDM, It still runs the old script.  % are not changed. Stil having problems with the account  thats cannot change the password. How can i succesfully restart the script that the new script will be used?

The following might help you troubleshoot -
When you update the scripts for your proactive remediation you should see the version number of the proactive remediation change.  You might want to make a note of what it is now and then update and check it has increased.
On the client side the scripts get downloaded into a folder which will look like C:\Windows\IMECache\HealthScripts{guid}_{version}.
You won't have access to browse the folder unless you change the ACL etc which I wouldn't recommend but check that the folder you are seeing ends with the version number that is shown for your proactive remediation.
If you don't want to wait too long you can force an update and re-run of the scripts by deleting the keys under HKLM\Software\Microsoft\IntuneManagementExtension\Policies then rebooting.


adds unique option to show_batch

Adds the option of showing the same item on show_batch.
I'm using this functionality so much that I thought it was a good idea to make a PR =). With this, even some examples on the book can be simplified.
learner.py is just an intruder in the PR xD

Looks good? I remembered to use 4 spaces for indentation this time 😅

Thanks!


ability to modify the color

can you plz add the abiliy to modfiy the background color

:+1:

Hi!
There are errorBackgroundColor and infoBackgroundColor properties that support UIAppearance. Could you specify what do you mean by modifying background color?

@coverback Would you consider reopening this? I would like the ability to show banners with more than two possible background colors.

@ndmeiri there is option to modify background colors via previously described properties. Did you try to use them?
The easiest way to set them for the whole project is via UIAppearance

@crazyjooe Yes, I understand that I can change the colors for the banner styles. But since there are only 2 banner styles (.Info and .Error), I can only ever show two different colors of banners. Of course, I could use UIAppearance to change the colors between banner presentations, but this is unnecessarily complicated and not the intended use case for UIAppearance.

Hi @ndmeiri! This makes sense. Let us evaluate the change and we'll get back to you.
Should be pretty easy.
How would you like to see the API for that? Like additional sets of predefined styles or same style, but passing background and text colours per each instance?

And just in case, right now you can create an instance of the banner with init or show methods and then adjust the colour of the created banner. To reopen and work on this it is important for us to understand, why create+adjust colour isn't working for you.

Hi @coverback, thanks for the info. I'm trying to create an instance with init, but I can't change the background color or text color because the relevant properties are private. Could you please show me an example of creating an instance with init with custom background and text colors?

I was thinking we could have a protocol AFMBannerStyler as follows (in Swift):
protocol AFMBannerStyler {
    optional var bannerBackgroundColor: UIColor { get }
    optional var bannerTextColor: UIColor { get }
    optional var bannerFont: UIFont { get }
}

And then the show family of class methods would use this protocol instead (again, in Swift)
public class func showWithText(text: String!, style: AFMBannerStyler, andHideAfter timeout: NSTimeInterval) -> Self!
public class func showWithText(text: String!, style: AFMBannerStyler, animated: Bool) -> Self!
public class func showAndHideWithText(text: String!, style: AFMBannerStyler) -> Self!

AFMInfoBanner would then use the AFMBannerStyler to apply the banner style. If the object that conforms to AFMBannerStyler does not implement any of the optional computed properties, AFMInfoBanner uses a default value for that property.

But the init pattern is probably more simple

@ndmeiri we just released 1.2 version which allows to customise banner after init.
 AFMInfoBanner *banner = [[AFMInfoBanner alloc] init];
 banner.customBackgroundColor = [UIColor yellowColor];
banner.customTextColor = [UIColor redColor];
 [banner show:YES];

Custom background and text colors have priority over style colors.

@crazyjooe This is great. I'll integrate it in my project as soon as I have a chance. Thank you for the update.

@crazyjooe So when I show the banner, does it matter which AFMInfoBannerStyle I pass? From what you said above, I believe it shouldn't matter. But then the perceived behavior of the line of code that shows a banner is different from the actual behavior of that line of code. Do you know what I mean? i.e. Why should I have to pass in a style if it's going to get overridden?

@crazyjooe So when I show the banner, does it matter which AFMInfoBannerStyle I pass? From what you said above, I believe it shouldn't matter. But then the perceived behavior of the line of code that shows a banner is different from the actual behavior of that line of code. Do you know what I mean? i.e. Why should I have to pass in a style if it's going to get overridden?

@crazyjooe What is the best way to automatically hide the banner after showing it with show() (in Swift)? Since I can no longer use the class methods for showing and hiding automatically.

@ndmeiri we released 1.2.1 version which has instance method - (void)showAndHideAfter:(NSTimeInterval)timeout animated:(BOOL)animated;.

@crazyjooe Excellent. Thank you for the update.


Implement build pipeline for web components

Note: Not an issue in Alpha, will be an issue in Beta, Prod
As a: Member of the design system team
I want: I want NX to build test and run storybook both locally and as part of the build process
so that: I can release testable UI components
Depends On
#416 . New accessibility criteria needs to be applied to the Badge component and any necessary adjustments made before the release
Acceptance criteria

[x] Build locally (with NX)
[x] Test locally (with NX)
[x] Run storybook locally (with NX)
[x] Build, test, and run storybook as part of the pull request workflow
[ ] Release (Alpha to Beta). See V3 here: https://miro.com/app/board/uXjVOc7pLyE=/

[ ] lints, tests, builds lib
[ ] deploys to appropriate website for branch
[ ] creates npm package with appropriate tag for branch

Presentable outcomes
Not applicable
Sprint Ready Checklist

Acceptance criteria defined
Team has defined steps to satisfy acceptance criteria
Acceptance criteria is verifiable / testable
External / 3rd Party dependencies identified

Plan for first release to Beta:

checkout beta locally and pull the latest
checkout alpha locally and pull the latest
checkout a local branch from local alpha (not beta) e.g. wc-release-0 or something
merge local beta into the new local branch. this will let us fix the merge conflicts
create a pr to merge from the new local branch to remote alpha
once pr is approved and merged, smoke test dev environment
create a pr to merge from remote alpha to remote beta
once pr is approved and merged, smoke test beta environment

need to confirm via POC if Angular and React wrappers are necessary. if they are not necessary, then the build pipeline does not need to be created

:tada: This issue has been resolved in version 1.0.0-alpha.8 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 3.4.0-alpha.11 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.0.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 4.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Explore the possibility to create a terminology server with support for UMLS and others

https://www.hl7.org/fhir/terminology-service.html
https://www.nlm.nih.gov/research/umls/index.html

Work has started over here: https://github.com/bonfhir/echo in private for now.
I will close this issue as it is better to track it in the target project.


Updated the API to use data models and implemented downloads (see comment).

Changes:

Added download support.
The API now returns data objects instead of dictionaries.
Updated some older methods.

I have tested the changes to some degree but significantly more testing is required before the changes can be merged with the master branch

Kindly review the changes carefully, I am not that comfortable with Github yet. Please make sure that I am not messing up the repo somehow.

Great pull request, thank you! I will put on a VPN try if it works and as far as I can see it's ready to be merged.


Fix task being dropped event with ignore size set

Codecov Report

Merging #675 (a798167) into master (1f74c1f) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #675      +/-   ##
==========================================
- Coverage   43.27%   43.25%   -0.02%
==========================================
  Files          47       47
  Lines        7037     7037
==========================================
- Hits         3045     3044       -1
- Misses       3992     3993       +1

Impacted Files
Coverage Δ

assemblyline_core/ingester/ingester.py
78.95% <100.00%> (ø)

assemblyline_core/dispatching/dispatcher.py
75.60% <0.00%> (-0.22%)
:arrow_down:

assemblyline_core/alerter/processing.py
90.05% <0.00%> (+0.52%)
:arrow_up:

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


Parser: set kind to param in old style parameter declarations

resolve #351
When parsing old style parameter declarations, declarator kind was not initialized as param but as normal, that generate an error for K&R style function definition when using static.
Added a test in cases/functions.c

Thanks!


after addding attachment - no option to save

TFS 2018.3
google chrome v71
added attachment to attachment group control.
yet "save" button not enabled. must perform another field update to enable it
same with removing. attachment removed, save yet not enabled but attachment not shown in attachments group. still remains in attachments classic tab

There is no option to save because the attachment group saves on change - no dirty state to save.
All operations on the attachments group save immediately and if they don't there will be an error message displayed.


Add support to 'Context' as an optional feature

Hi,
First, thanks a lot for spending time on building Emulambda - That was very straightforward and simple to use compared to others!
During development in one of my functions I noticed that the 'context' object was None and I couldn't fake it as I do with 'event' currently, so I thought I would try to understand the code and create this PR.
This PR has:

Updates Example folder with both context.json and modified version of __init__.py to print context.function_name if it exists
Add contextfile optional argument to ensure it doesn't break compatibility for those already using emulambda
Updates documentation to reflect examples on using it + remove 'Context' from *Planned section

Let me know what you think.
Tks!

Hey, this is really good! Thank you!
Sorry to not respond sooner. For some reason I didn't get a notification, and I've been buried in work at Fugue.
+1, merging.


Entities who can request WI revocation

This PR aims to solve #253

we still don't have the flow for the PID provider. I'd rule it out for now

we still don't have the flow for the PID provider. I'd rule it out for now

good catch, see the issue here: https://github.com/italia/eudi-wallet-it-docs/issues/317


NVMesh losing passed name properties in loadFromUrl

List of fixed issues (if they exist):

loadFromUrl had name attribute overwritten causing URLs like "/data_cat12/lc.central.T1.gii?withJunk=true" to fail even if name was specified as "lc.central.T1.gii"

@bwagnerwork , thanks for pointing this out and suggesting a fix. We were dealing with query strings in NVImage but not in NVMesh. I have updated NVMesh to handle query strings better (along with query strings in mesh layers). Closing this PR and will submit a new PR with all changes.


Local pictures cannot be displayed in the preview pane

inster to 26 line
<base href="file:///{MD File Path}">
The path ends with ""

I think the browser panel is not allowed to access local content.
See also the ReadMe.md file in this repo, on my machine the relative image is not shown.


chore: clear deprecated kusion compile

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Additional documentation e.g., design docs, usage docs, etc.:

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.02%) to 74.403%

Files with Coverage Reduction
New Missed Lines
%

pkg/engine/operation/watch.go
1
85.93%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
7037

Relevant Lines:
9458

💛  - Coveralls


CMake Error: The current CMakeCache.txt directory /root/parts/colibri/build/build/linux/x64/release/CMakeCache.txt is different than the directoryer/build/linux/x64/release where CMakeCache.txt was created.

Hi, I am almost there publish my very first linux APP to snap store.
But I got a seems easy error but don't know why and how to fix it:
[ +435 ms] CMake Error: The current CMakeCache.txt directory /root/parts/colibri/build/build/linux/x64/release/CMakeCache.txt is different than the directory
flutter/build/linux/x64/release where CMakeCache.txt was created. This may result in binaries being created in the
wrong place. If you are not sure, reedit the CMakeCache.txt
[   +7 ms] CMake Error: The source "/root/parts/colibri/build/linux/CMakeLists.txt" does not match the source
flutter/linux/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
[  +38 ms] Building Linux application... (completed in 491ms)
[        ] "flutter linux" took 1,044ms.
[   +6 ms] Unable to generate build files
[        ]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _runCmake (package:flutter_tools/src/linux/build_linux.dart:156:5)
           <asynchronous suspension>
           #2      buildLinux (package:flutter_tools/src/linux/build_linux.dart:76:5)
           <asynchronous suspension>
           #3      BuildLinuxCommand.runCommand (package:flutter_tools/src/commands/build_linux.dart:88:5)
           <asynchronous suspension>
           #4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1089:27)
           <asynchronous suspension>
           #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:196:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
           <asynchronous suspension>
           #10     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #12     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>

This might not be flutter issue, but related about release APP so might be something lacked in doc.
I know this is because of CMakeCache directory not same, but :

I dont have any /root/parts dir:

ls /root/parts/colibri/build                                                                               2 master!?
ls: cannot access '/root/parts/colibri/build': No such file or directory

I just run snapcraft, what could be the reason? How to fix?

Hi @jinfagang
Can you please provide your flutter doctor -v, a complete reproducible minimal code sample, and complete flutter build linux --verbose logs running the minimal code sample?
Thank you

@tadaspetra For sure.
flutter doctor                                                                                master!
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 2.3.0-0.1.pre, on Linux, locale en_HK.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.56.2)
[✓] Connected device (2 available)

• No issues found!

For building flutter build linux I got no problems:
[  +81 ms] Building Linux application... (completed in 40.9s)
[        ] "flutter linux" took 41,281ms.
[ +253 ms] ensureAnalyticsSent: 251ms
[   +3 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 0

Hi  @jinfagang
Is the when running or building?
Please provide complete logs that shows this error with  a complete reproducible minimal code sample
[ +435 ms] CMake Error: The current CMakeCache.txt directory /root/parts/colibri/build/build/linux/x64/release/CMakeCache.txt is different than the directory
flutter/build/linux/x64/release where CMakeCache.txt was created. This may result in binaries being created in the
wrong place. If you are not sure, reedit the CMakeCache.txt
[   +7 ms] CMake Error: The source "/root/parts/colibri/build/linux/CMakeLists.txt" does not match the source
flutter/linux/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
[  +38 ms] Building Linux application... (completed in 491ms)
[        ] "flutter linux" took 1,044ms.
[   +6 ms] Unable to generate build files

@tadaspetra Sorry, I think I make you missunderstood my problem.
I am running into this when run snapcraft while using flutter build linux got no problem.
That snapcraft I just do by the doc from flutter uploading app to snapstore.

Hi @jinfagang
Thanks are you following this doc?

I solve this issue by deleting build, thanks


Could not create conda environment from sc_e2g.yml

HI!
I saw the previously resolved issue and specified the version of mamba and python to create the environment. But unfortunately, I'm still experiencing a similar error. How can we resolve?🥲

Hi Weilin, I increased memory and the previous problem did not occur. But there are very many dependency conflicts, is this due to my conda configuration?
(The image captures only a portion of the error message)

Hi! I just ran it successfully and got the output file encode_e2g_predictions.tsv as shown in the screenshot below, is this running correctly?
I used 10 cores and 40 gigs of ram and it took about 3 hours, is this normal?


[WIP][V2V] Add Lan Validations to TransformationMappingItem

Creates Validations for Infra Mapping and Specs for Validation Code
Target Networks
•	RHV (Class:  Lan, Filters:  Must belong to the lans in the target cluster
)
•	OSP (Class:  CloudNetwork, Filters:  Must belong to target CloudTenant)
Source Networks
•	VMW (Class:  Lan, Filters:  Must belong to one of the source clusters)

Closing this PR and will recreate it after figuring out how to decrease the number of commits.

closing it to reopen with one commit.


Unused static final in one class is not reported if it's mirrored in another class

SDK: 2.0.0-dev.4.0
class Foo {
  static final _baz = 'monkey';
}

class Bar {
  // Same name as in `Foo`
  static final _baz = 'monkey';

  String toString() => _baz;
}

Expected: info: The value of the field '_baz' isn't used. (unused_field at [_testHarness] bin/main.dart:2)
Actual: no hints
The error is correct here:
class Foo {
  static final _baz = 'monkey';
}

class Bar {
  // Not the same as in `Foo`
  static final _baz2 = 'monkey';

  String toString() => _baz2;
}

info: The value of the field '_baz' isn't used. (unused_field at [_testHarness] bin/main.dart:2)

This has been fixed. The following is now reported:
hint • The value of the field '_baz' isn't used. • 31217.dart:2:16 • unused_field


Update README.md

Added "Vulnerability Remediation - Auto tune Deep/Workload Security policy according to Smart Check findings." line. I have put it in Smart Check section, but can be added to Workload Security also. Can not say for sure to which it suites better.

Thank you!


v4 must use withRouter when styled-components wrap route ?

Environment
System:

OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 268.25 MB / 16.00 GB
Shell: 5.3 - /bin/zsh

Binaries:

Node: 10.10.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman

npmPackages:

babel-plugin-styled-components: ^1.7.1 => 1.7.1
styled-components: ^4.0.0-beta.9 => 4.0.0-beta.9

Steps to reproduce
const AppWrapper = styled.div`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
`;

const active = {
  color: colorPrimary
};

class App extends PureComponent {
  render() {
    return (
      <Router>
        <AppWrapper>
          <GlobalStyle />

          <Switch>
            <Route exact path="/" component={Main} />
            <Route path="/login" component={Login} />
            <Route path="/home" component={Home} />
            <Route path="/specials" component={Specials} />
            <Route path="/test" component={Test} />
            <Route path="/user" component={User} />
            <Redirect to="/" />
          </Switch>
        </AppWrapper>
      </Router>
    );
  }
}

const Nav = () => (

        <Link exact to="/" activeStyle={active}>
          index
        </Link>

        <Link exact to="/login" activeStyle={active}>
          login
        </Link>

        <Link exact to="/home" activeStyle={active}>
          home
        </Link>

        <Link exact to="/specials" activeStyle={active}>
          specials
        </Link>

        <Link exact to="/test" activeStyle={active}>
          test
        </Link>

        <Link exact to="/user" activeStyle={active}>
          user
        </Link>

);

Expected Behavior
Click links, the url and the page will be changed.
Actual Behavior
Click links, the url has been changed, but the page had no change.
And if I add withRouter like this, the url and the page will be changed.
const AppWrapper = withRouter(styled.div`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
`);

Try using the @next tag of React router’s packages. The current release
doesn’t use new context
On Thu, Sep 27, 2018 at 11:28 PM Dongyi AN<EMAIL_ADDRESS>wrote:

Environment System:

OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 268.25 MB / 16.00 GB
Shell: 5.3 - /bin/zsh

Binaries:

Node: 10.10.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman

npmPackages:

babel-plugin-styled-components: ^1.7.1 => 1.7.1
styled-components: ^4.0.0-beta.9 => 4.0.0-beta.9

Steps to reproduce
const AppWrapper = styled.div  display: flex;  flex-direction: column;  justify-content: center;  align-items: center;;
const active = {
color: colorPrimary
};
class App extends PureComponent {
render() {
return (

);
}
}
const Nav = () => (

          index

          login

          home

          specials

          test

          user

);
Expected Behavior
Click links, the url and the page will be changed.
Actual Behavior
Click links, the url has been changed, but the page had no change.
And if I add withRouter like this, the url and the page will be changed.
const AppWrapper = withRouter(styled.div  display: flex;  flex-direction: column;  justify-content: center;  align-items: center;);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/styled-components/styled-components/issues/2035, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAiy1mas-OWY3IprsUNY5F7xQUzZ1bmxks5ufaV1gaJpZM4W91WC
.

https://github.com/styled-components/styled-components-website/pull/328

@probablyup
thx, it's ok.


Allow custom OAuth provider IDs in trusted providers

I am trying to use the Generic OAuth plugin to provide one-click SSO for my application. Currently, however, I am unable to complete the flow. I can successfully authorize the application and this is what is logged by my SSO provider.

Once it authorizes and connects to the callback, it does not sign me in and instead gives me the following error:

I assume this is due to the the fact that the Generic OAuth provider is not linked with my account and that this is why the authorization is invalid.
(Note: I would really appreciate if the verbose logging option provided explicit error messages that indicate WHY the authorizations are invalid for debugging purposes as currently I am left to guessing/reading the source code)
Currently, BetterAuth does not support custom provider ID's for trusted providers:
Type '"authentik"' is not assignable to type '"github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "email-password"'.
I believe that this is an oversight and that those using the Generic OAuth plugin should be able to setup these providers for account linking.

Hey, sorry for getting back to you late. It seems like the issue is failing during verification rather than linking. The error is returned directly from the provider, not from Better Auth. Check if your client ID and client secret are properly configured, and ensure you’ve provided a valid scope.


Add control_transfer implementation

Fix #1

@nibua-r This looks good. :+1:
In #1, you mentioned that it needs tests. Unit tests for the ControlRequest struct would be helpful, but I'd be okay merging this PR without them too. I plan to add functionality for string descriptors based on your work in this PR. I'll update examples/read_device.rs to read string descriptors when I add that feature. I think that will be enough to test the control transfer, so you don't need to add anything for that in this PR. Most of the heavy logic is in the C library anyway, which I trust to be correct.
If you don't mind, I'd appreciate it if you'd squash the commits into a single commit to reduce the number of intermediate commits. You can do that with git rebase -i master and then changing pick to fixup for all but the first commit.
Thanks again for all your work on this. I really appreciate the help. I've been wanting to implement string descriptors for a while, so I'm particularly excited to see this merged. :)

Squash done! :+1:

String descriptor features will be of great value to me! Would like any help on this?

@nibua-r Thanks! I'll see how far I get with the string descriptors and then let you know.

@nibua-r I finished string descriptors this weekend and published v0.1.1 to crates.io.


StormPort.h: Do not assume mmap support

Do not assume mmap by default for the fallback platform, unless it's in a list of platforms that we know have mmap
Refs #215

For how many more platforms are you going to port StormLib?

There is PSP, which we'll upstream
However, there are some experimental OSes, such as Serenity, that people port DevilutionX to. They often don't implement mmap.
We probably don't want to add a STORM platform for each one of them

Ok, I merged. Let's see how many Linux guys will ask for a bugfix :P

Why would Linux guys ask for a bugfix?
We do still define it on Linux


Max request size per route

Describe the feature request
Would be nice to have an away to set the max payload size for incoming requests on the routes defined inside the virtualservice.
Describe alternatives you've considered
I have a route defined as /uploads on my virtualservice that points to a service with 2 endpoints, /uploads and /uploads/stream. Each endpoint has its own max body size to the incoming requests handled by the application itself. In order to create these config on istio, avoiding my app to handle large file uploads, I created an envoyfilter applied on the gateway to handle max request size globally and another envoyfilter with a lua script to handle the limit for each endpoint.
The problem with this approach is that if I need to apply the limit to a new endpoint Its necessary to create one more if section on the lua script filter and also I need to have two filters, a global and a more specific for each endpoint.
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: my-virtualservice
spec:
  gateways:
    - istio-ingressgateway
  hosts:
    - "myhost.example.com"
  http:
    - match:
        - uri:
            prefix: /uploads
      route:
        - destination:
            host: myapp.default.svc.cluster.local
            port:
              number: 8080
      retries:
        attempts: 5
        perTryTimeout: 10s
        retryOn: >-
          gateway-error,connect-failure,refused-stream,5xx,deadline-exceeded,unavailable,cancelled
      timeout: 30s
---
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: request-size-limit
  namespace: istio-system
spec:
  workloadSelector:
    labels:
      istio: ingressgateway
  configPatches:
    - applyTo: HTTP_FILTER
      match:
        context: GATEWAY
        listener:
          filterChain:
            filter:
              name: "envoy.filters.network.http_connection_manager"
              subFilter:
                name: "envoy.filters.http.router"
      patch:
        operation: INSERT_BEFORE
        value:
          name: envoy.filters.http.buffer
          typed_config:
            "@type": type.googleapis.com/envoy.extensions.filters.http.buffer.v3.Buffer
            max_request_bytes: 32505856 # 31 MB.
---
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: request-size-limit
  namespace: default
spec:
  workloadSelector:
    labels:
      app.kubernetes.io/name: myapp
  configPatches:
    - applyTo: HTTP_FILTER
      match:
        context: SIDECAR_INBOUND
        listener:
          filterChain:
            filter:
              name: "envoy.filters.network.http_connection_manager"
      patch:
        operation: INSERT_BEFORE
        value:
          name: envoy.filters.http.lua
          typed_config:
            "@type": "type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua"
            inlineCode: |
              function envoy_on_request(request_handle)
                if request_handle:headers():get(":path") == "/uploads" then
                  local totalSize = request_handle:body():length()
                  if totalSize > (21 * 1024 * 1024) then
                    request_handle:respond({
                          [":status"] = 413,
                          ["content-type"] = "application/json",
                        }, "{}"
                      )
                  end
                end

                if request_handle:headers():get(":path") == "/uploads/stream" then
                  local totalSize = request_handle:body():length()
                  if totalSize > (31 * 1024 * 1024) then
                    request_handle:respond({
                          [":status"] = 413,
                          ["content-type"] = "application/json",
                        }, "{}"
                      )
                  end
                end
              end

Affected product area (please put an X in all that apply)
[X] Ambient
[ ] Docs
[ ] Dual Stack
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[X] Developer Infrastructure

I have some concerns with ever providing this as an API in Istio. In order to limit body size we either need to buffer (as you are doing) or cut an in-progress request once it hits the limit (probably bad). Neither of these are behaviors that are going to be generally acceptable outside of niche cases I think, which are best served by extensibility mechanisms you are already using (lua, etc).
BTW: https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/buffer_filter#per-route-configuration may be of use


LocationAccuracyStatus.reduced with getCurrentPosition

Hi,
On iOS 15.4 I check that I can't get getCurrentPosition(desiredAccuracy: LocationAccuracy.high)  or getCurrentPosition(desiredAccuracy: LocationAccuracy.best) when getLocationAccuracy()  is reduced, so the library doesn't manage that automatically and I need a ternary for that.
is this correct? I don't see this in readme/docs, I think you can add a column to the accuraccy table in the readme, similar to this:

Location accuracy
The table below outlines the accuracy options per platform:

Android
iOS
Accuracy Status

lowest
500m
3000m
all

low
500m
1000m
all

medium
100 - 500m
100m
all

high
0 - 100m
10m
require precice

best
0 - 100m
~0m
require precice

bestForNavigation
0 - 100m
Optimized for navigation
require precice

Hey @hectorAguero, thanks for reporting your issue. I think using a ternary statement is the best solution in this case. The CLLocationAccuracy.reduced most of the times preserves the city you're living in, so the returned location can also be 20km from your actual position. So in fact, when using the LocationAccuracy parameter you always need precise positioning.
If you've other suggestions, please let me know.

Thanks, @florissmit1 ,
It would be helpful if the readme recommend the use of ternary for that case, or at least mention the required accuracy, with the column Accuracy Status that I let above.

Hi @hectorAguero,
I know this is an old issue but I wanted to elaborate. It is still possible to request location using the getCurrentPosition(desiredAccuracy: LocationAccuracy.high) and getCurrentPosition(desiredAccuracy: LocationAccuracy.best) when the getLocationAccuracy() is set to reduced by the user.
The geolocator will still return a position, however Apple on purposely made the location less accurate. So positions are still returned just not as accurate as mentioned in the table above. So there is no need for a ternary statement, which is why we also didn't build it into the plugin.
Note that we removed the table with mentioned ranges as they are no longer guaranteed (Apple and Google also no longer make any claims on accuracy).


Is there a way to better show tables with many columns?

It's more a question, than a issue.
I'm trying to show a table that has many columns, and the result is seen below.

Is there any way to make it more readable?

Hey @victorlaerte !
Yeah, table support is really limited. A table will always take the full width of a TextView and make all columns equal.
As an idea: if you can display table in a separate TextView, you can place it in a HorizontalScrollView for example and expand TextView width (to be more than screen width). This way you can achieve a more readable version... Unfortunately I do not see any other way

By the way, it's worth to say, you did a really great job with this lib. Awesome.

@victorlaerte thanks! Really appreciate it 🙌

Hello, how do you solve the problem of table drawing flickering?


Scam Account Submission

Duplicate Submissions

[X] Yes, I checked that the account name is not currently in the list
[X] I read the wiki explaining each different categories and examples before submitting

(Required) Spam Comment Direct Link
https://www.youtube.com/channel/UCfMwWO4zPHD5xrCo9dL8Yng
that channel links to https://www.youtube.com/@whitewolves2749 which is the scam channel
I don't know how to get the comment link.
(Optional) Screenshot of comments referencing the scam account
No response
(Required) List of the scam account names
White Wolves
Hi, i'm Megan if you don't mind check out my video

Addition to my submission
stephanie lindhome
https://www.youtube.com/@stephanielindhome


Returning array

It would be nice if defining an array as an translation value would be possible. It'S possible inside laravel itself and im using it for this purpose.
If i define a value in Lang.js though it returns the key instead of the array.

@jonasgrosch I'm curious to know what would be the use case of having an array instead of string for a localization string?

I use it for QA section for example. It makes it possible to have a different amount of questions/answers on different languages.
In general i try to avoid using any 'language' in my code and centralize all around my localization files, because some of my projects lead to a high amount of wording changes and it's just way more easy to apply them this way. This leads to some use cases for array returning.

Changing typeof message !== 'string' to !message appears to be working for me. I use this for the same thing. A QA page. Copywriters can just add new QA's to the array and they will show up without me adding them to the code.

It's better verify if the message is an object:
if (typeof message !== 'string' && typeof message !== 'object') {
    return null;
}

In my case sometimes I use an object for a select, iterate it and make the options.

Will this every be implemented?

You can get an array in this way:
Vue.prototype.lang.messages[Vue.prototype.lang.locale + '.app'].myArray


include parent folder id in FileApi

We might not need to do this - double check since it might not be fully done


SAX-NeRF testing error

python : 3.9
cuda : 11.3
pytorch : 1.10
torch.cuda.is_available() : true
I an trying to run testing about part of sax-nerf which does not work, could you have a look please? thanks
Traceback (most recent call last):
  File "C:\3dgs\SAX-NeRF\test.py", line 29, in <module>
    from src.encoder import get_encoder
  File "C:\3dgs\SAX-NeRF\src\encoder\__init__.py", line 1, in <module>
    from .hashencoder import HashEncoder
  File "C:\3dgs\SAX-NeRF\src\encoder\hashencoder\__init__.py", line 1, in <module>
    from .hashgrid import HashEncoder
  File "C:\3dgs\SAX-NeRF\src\encoder\hashencoder\hashgrid.py", line 8, in <module>
    from .backend import _backend
  File "C:\3dgs\SAX-NeRF\src\encoder\hashencoder\backend.py", line 6, in <module>
    _backend = load(name='_hash_encoder',
  File "C:\Anaconda\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1144, in load
    return _jit_compile(
  File "C:\Anaconda\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1357, in _jit_compile
    _write_ninja_file_and_build_library(
  File "C:\Anaconda\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1456, in _write_ninja_file_and_build_library
    _write_ninja_file_to_build_library(
  File "C:\Anaconda\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1857, in _write_ninja_file_to_build_library
    cuda_flags = common_cflags + COMMON_NVCC_FLAGS + _get_cuda_arch_flags()
  File "C:\Anaconda\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1626, in _get_cuda_arch_flags
    arch_list[-1] += '+PTX'
IndexError: list index out of range```

Hi, thanks for your interests.
Using windows system usually leads to many unnecessary problems like this.
I suggest you use Ubuntu system to run our code. Then this bug may be resolved.
If you find our repo useful, please help us star it.

I try to use Ubuntu20.04  to run it, but it also exist. I completely followed your tutorial to create the environment. Are there any other steps that I may have missed.
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-11.3'
Traceback (most recent call last):
  File "/workspace/SAX-NeRF/test.py", line 29, in <module>
    from src.encoder import get_encoder
  File "/workspace/SAX-NeRF/src/encoder/__init__.py", line 1, in <module>
    from .hashencoder import HashEncoder
  File "/workspace/SAX-NeRF/src/encoder/hashencoder/__init__.py", line 1, in <module>
    from .hashgrid import HashEncoder
  File "/workspace/SAX-NeRF/src/encoder/hashencoder/hashgrid.py", line 8, in <module>
    from .backend import _backend
  File "/workspace/SAX-NeRF/src/encoder/hashencoder/backend.py", line 6, in <module>
    _backend = load(name='_hash_encoder',
  File "/root/miniconda3/envs/sax_nerf/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1144, in load
    return _jit_compile(
  File "/root/miniconda3/envs/sax_nerf/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1357, in _jit_compile
    _write_ninja_file_and_build_library(
  File "/root/miniconda3/envs/sax_nerf/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1456, in _write_ninja_file_and_build_library
    _write_ninja_file_to_build_library(
  File "/root/miniconda3/envs/sax_nerf/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1858, in _write_ninja_file_to_build_library
    cuda_flags = common_cflags + COMMON_NVCC_FLAGS + _get_cuda_arch_flags()
  File "/root/miniconda3/envs/sax_nerf/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1626, in _get_cuda_arch_flags
    arch_list[-1] += '+PTX'
IndexError: list index out of range

What commend did you execute in the terminal?
The error message "No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-11.3'" indicates that the CUDA runtime is not properly detected or configured. The traceback ends with an IndexError: list index out of range which is related to the CUDA architecture flags being set up improperly or not being available.
Here’s how you can troubleshoot and potentially resolve this issue:
Check CUDA Installation and Environment Variable:
Ensure that CUDA is properly installed at /usr/local/cuda-11.3 or the path specified in your CUDA_HOME environment variable.
Check if the CUDA binaries are correctly linked by running nvcc --version or which nvcc to confirm that nvcc is in your path.
Verify PyTorch and CUDA Compatibility:
Ensure that your PyTorch installation is compatible with CUDA 11.3. You can check PyTorch's CUDA compatibility from the official PyTorch website.
Update or reinstall PyTorch if necessary to match your CUDA version.
Check GPU and Driver:
Run nvidia-smi to check if your NVIDIA drivers are up to date and compatible with CUDA 11.3.
Ensure that the GPU is recognized by the system and the drivers are loaded.
CUDA Architecture Flags:
The error arch_list[-1] += '+PTX' suggests that the script tries to append to an empty list. This can happen if the CUDA capability of the GPUs is not correctly detected.
Manually specify the GPU architecture in your setup script if automatic detection fails. For instance, if using an NVIDIA Turing GPU, you can add something like this to your setup script:
python
Copy code
extra_compile_args={'cxx': ['-g'],
'nvcc': ['-O2', '-arch=sm_75']}
Check the Python Environment:
Sometimes, the Python environment might not have the correct paths or permissions set up. Make sure that the Python environment has access to CUDA paths.
Reinstall the environment or create a new one if issues persist.
Run a Minimal Example:
Test if CUDA works with a minimal PyTorch script to rule out issues specific to your project setup.
Copy code
import torch
print(torch.cuda.is_available())

If after these steps you still face issues, you may need to provide more details about your system setup, or consider simplifying your CUDA architecture settings in your project configuration.

Maybe you could try
$ export TORCH_CUDA_ARCH_LIST="X.X+PTX"

before you run the training script. where X.X is the CUDA Capability of your GPU.
You can use "Samples/1_Utilities/deviceQuery" in CUDA Samples to get your CUDA Capability. For example:
./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "NVIDIA GeForce RTX 4070"
  CUDA Driver Version / Runtime Version          12.5 / 11.3
  CUDA Capability Major/Minor version number:    8.9
  Total amount of global memory:                 12282 MBytes<PHONE_NUMBER>4 bytes)
  (046) Multiprocessors, (128) CUDA Cores/MP:    5888 CUDA Cores
  GPU Max Clock rate:                            2520 MHz (2.52 GHz)
  Memory Clock rate:                             10501 Mhz
  Memory Bus Width:                              192-bit
  L2 Cache Size:                                 37748736 bytes
# The following is omitted...

on my PC, the CUDA Capability is 8.9, so I should use
$ export TORCH_CUDA_ARCH_LIST="8.9+PTX"

Hope the above content can help.

Thank you for answering the questions :)


@eessex => [Middleware] Add a return before redirecting

This is a tiny improvement in the attempt to fix the Cannot set headers... issue.
Basically, in middleware you either want to next(), or you want to return res.render (or res.send, res.end, etc.).
This middleware looked like it was subject to both next() and a res.redirect() being called, which is generally not advised.

gonna self merge to try this out!

Nice find 👌


Docker is required to build native dependencies for python function apps

HI,
I am trying to deploy a function that works fine when debugging via VS Code.
Once I deploy, the function get created as well.
When I click output, I get these:-
`Executing task: . .env/bin/activate && func pack --build-native-deps <
source /Users/adey1/Documents/GitHub/HTM_integration/AzureFunctionBatch/.env/bin/activate
Microsoft (R) Build Engine version <IP_ADDRESS>428 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 23.44 ms for /Users/adey1/Documents/GitHub/HTM_integration/AzureFunctionBatch/extensions.csproj.
extensions -> /Users/adey1/Documents/GitHub/HTM_integration/AzureFunctionBatch/bin/extensions.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.56
Deleting the old .python_packages directory
Docker is required to build native dependencies for python function apps
The terminal process terminated with exit code: 1
`
and the deployment halts.

@anindya5 I recommend taking a look at the docs here:
https://docs.microsoft.com/azure/azure-functions/functions-reference-python#publishing-to-azure
If you're using a package that requires a compiler and does not support the installation of manylinux-compatible wheels from PyPI, you have to have docker on your machine to bundle those packages before deploying.

I am not able to do it, using standard packages also. Even when I am removing all requirements, I am still getting this error

If I choose to deploy anyway, I get the issue listed below
https://github.com/microsoft/vscode-azurefunctions/issues/1301

You can change azureFunctions.preDeployTask in .vscode/settings.json to just func: pack instead of func: pack --build-native-deps


FreeRTOS+TCP zero copy - not possible to be used.

Hi,
I've been looking at the current implementation of the transport profile and it does not allow one to use the zero-copy feature from FreeRTOS+TCP.
These are examples from them
https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/Networking_Tutorial_Zero_Copy_Receive.html
https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/Networking_Tutorial_Zero_Copy_Send.html
You can see here and here that the flags are set to 0 on both cases.
I'd assume this requires some work on this implementation to provide the pre-allocated buffer.
Furthermore, as this implementation uses select, wouldn't it be better to simply enforce another flag FREERTOS_MSG_DONTWAIT, which does not iterate over recvfrom or sendto. I don't know if this would provide a significant improvement

Hello, this support is not planned in our mid-term roadmap. Furthermore, this transport for FreeRTOS+TCP is a contributed feature (https://github.com/eProsima/Micro-XRCE-DDS-Client/pull/161).
If you want to provide any improvement, upgrade, or a new feature, PR are welcome.
CC: @FranFin


Add SAST subcommand

A "sast" subcommand should be available for certain filetypes that have associated sast functions. For example, c/c++ files should be checked with the cppcheck static analyzer. Since this almost falls under "lint" we could start breaking out commands into command sequences. SAST + style would fall under "lint" and picli would function like this:
lint_sequence = ['style', sast']
style_sequence = ['style']
sast_sequence = ['sast']
When picli lint is called, the lint_sequence will be used for the execution steps and we will actually execute picli style and picli sast in the background. If picli style is called then we just run the style subcommand, and sast just runs sast.
This would pave the way for being able to run picli run and run through everything as well.

This is being worked on in: https://github.com/AFCYBER-DREAM/piedpiper-picli/pull/8

Closed in #8


CLI error when installing Browser bolierplate ignite beta

CLI bolerplate install error.
🔥 igniting app MyTestApp
✔ Which boilerplate would you like to use? · Bowser (React Navigation, MobX State Tree, & TypeScript) - RECOMMENDED
🐉 You're using a prerelease version of bowser@beta4.
⠋ installing boilerplate

> Error call stack:
> ...../TestApp/node_modules/ignite-bowser/boilerplate.js:233
>     print.error('
>                 ^
>
> SyntaxError: Invalid or unexpected token
>     at new Script (vm.js:84:7)
>     at createScript (vm.js:264:10)
>     at Object.runInThisContext (vm.js:312:10)
>     at Module._compile (internal/modules/cjs/loader.js:684:28)
>     at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
>     at Module.load (internal/modules/cjs/loader.js:620:32)
>     at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
>     at Function.Module._load (internal/modules/cjs/loader.js:552:3)
>     at Module.require (internal/modules/cjs/loader.js:657:17)
>     at require (internal/modules/cjs/helpers.js:20:18)
> ✖ error loading the boilerplate
> error installing boilerplate

ignite new TestApp  causes the error
ignite doctor
System
  platform           darwin

  arch               x64
  cpu                12 cores                               Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  directory          /Users/#/Projects/ReactNative

JavaScript
  node               11.7.0       /Users/#/.nvm/versions/node/v11.7.0/bin/node
  npm                6.7.0        /Users/#/.nvm/versions/node/v11.7.0/bin/npm
  yarn               1.13.0       /Users/#/.nvm/versions/node/v11.7.0/bin/yarn

React Native
  react-native-cli   2.0.1

Ignite
  ignite             3.0.0-beta.3   /usr/local/bin/ignite

Android
  java               1.8.0_202    /usr/bin/java
  android home       -            /Users/#/Library/Android/sdk

iOS
  xcode              10.1

could it be due to You're using a prerelease version of bowser@beta4. ?

@stevematdavies I found the issue and pushed up a fix. Can you try again, please?
I'm going to close this issue as I believe it's fixed.
Ref: https://github.com/infinitered/ignite-bowser/commit/45b7122856228fb3f5fb91ea5f44392ff25c5506

Looks good from my side all working, top job @jamonholmgren many thanks


How does class definition look in ES6

I'm not aware the @define decorator syntax is supported in ES6 so could you give an example of how you would define a subclass of Record if you are using ES6 style Javascript instead of TypeScript?

Decorators are required to use ES6 classes. Here's what you should do: https://github.com/Volicon/React-MVx/tree/develop/examples/babel-boilerplate
Old Backbone-style classes still work. Just written inside without static.
Record.extend({
    attributes : { ... }
});

https://volicon.github.io/Type-R/#definitions-in-typescript


Is it possible to highlight a custom list of dates using datetimepicker functions

https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1006
The issue was first mentioned here.Is this feature implemented in the latest version.Please reply. Because i can't find any documentaion for the same anywhere .Please help.
@Eonasdan : Please help. Please note that i am not asking for multiple slection. But highlighting mulltiple dates.
There are scenarios where we have two date pickers for date range selection. and if we have slected a start date and end date. we would like to highlight the range i=of in between dates in a slightly different color.Is it possible.Please help.

I'm not making changes to this repo. If someone wants to put a PR for it fine. Otherwise the answer is the same "it includes a data-day- on the td of in the datepicker. Unfortunately, you'll have to do this any time the month view changes." This feature request might make it in to the new repo with events and callbacks.

@Eonasdan : Thanx for the clarification


Implement Sentry

Sentry makes it easy to track errors and performance issues.

I am planning to bring this game to F-Droid soon. Would Sentry be a dealbreaker, @IzzySoft?

Implemented in v12.0 thanks to @Phantom-Mobile-Apps.


two rules run every 3 minutes  but only one is ok now

hi,
i have two rules for http 499 error ,run at jun14  ,
run_every:
minutes: 3
buffer_time:
minutes: 3
elastalert v0.1.14，but  ps 12218 is not work now ,and ps 12177 is work ok , who can tell me why ?
TKS!
only restart ps 12218 at time? any other way?
ps aux |grep 499
root     12177  0.0  0.0<PHONE_NUMBER>0 ?        S    Jun14   2:06 /usr/local/bin/python /usr/local/bin/elastalert --config /etc/elastalert/config_percentage_match.yaml --rule /etc/elastalert/rules/percentage_match/upstream499.yaml
root     12218  0.0  0.0 263360  2320 ?        S    Jun14   1:12 /usr/local/bin/python /usr/local/bin/elastalert --config /etc/elastalert/config_percentage_match.yaml --rule /etc/elastalert/rules/percentage_match/url499.yaml

Do you have output from them? Run with --verbose and capture stdout/stderr.
Also, there are logs in elasticsearch elastalert_status index with _type: elastalert_status that have information about every query made. You should be able to see if it's still making queries.

thank you very much， i think the cause of the problem is that i have changed the version of certifi  for test wechat alert，and at that time the elastalert query timeout , reload three minutes later not worked.