Allow setting default scheduler mode via the configuration database

@hkaiser just added a short message to the assertion. I suppose you're done with this otherwise? We can merge if the build succeeds.

@hkaiser just added a short message to the assertion. I suppose you're done with this otherwise? We can merge if the build succeeds.

Yah looks good, sorry - didn't have time to look into this.


Replaced singularity_reached with crossed_event_horizon

Fixes  #214
Kindly review @ritzvik

@Ankk98 Thanks a lot for your contribution.
Codecov is failing because the lines you changed were previously untested. So no problems :)
@Masquerade0097 @shreyasbapat Kindly merge this!!

Merging! Thanks @Ankk98 :)


Support for double circle format?

Hello,
this is a really nice viewer that you made.
Do you think it would be possible to add support for the double-circle ("dual fish eye") video format that the Ricoh Theta S camera records? It looks like this:
http://theta360developers.github.io/blog/img/2015-12/dual-fish-eye.jpg
So far I haven't found a single working open-source viewer that can play it.
(An alternative would be to convert it to equirectangular first, but I haven't found any software for that either yet, and it would be great if a video player could play the output format directly.)
Thanks!

Pannellum will never support anything like this since the format is undocumented and specific to the lens distortion of the Ricoh Theta S; I have no desire to add a new renderer for every new panoramic camera that comes along. Additionally, it requires some blending to be performed at the edges, which is somewhat difficult to do in a browser.
The only real solution is to convert the video to equirectangular first. Until someone reverse-engineers the lens distortion (or Ricoh publishes it), we're stuck with Ricoh's Windows/Mac only software.


Create a dropdown menu with the headers of the csv

Hi,
I would like to implement a modification, I don't know if it's possible but It could be a good improvement.
My idea is when you add a new field, to select it, create a dropdown menu getting the headers of the csv instead of write it.
I'm thinking on it because I manage CSV with 90 columns and it would be more friendly with this improvement.
I don't know if you could provide me help to do this

Hi @oserresb,
Sorry we are not accepting feature requests or PRs for this plugin anymore. We advise you to use https://github.com/grafana/grafana-infinity-datasource.


Save Quest description after modification

Module Version: v0.5.7
Describe the bug
After you create a quest and you  try to modify the quest description, it doesn't saves changes
To Reproduce
Steps to reproduce the behavior:

create quest
Close and open it
change quest description
close and open the same quest
Changes were not saved

Expected behavior
It should save the changes to que descripton
Foundry Version: 0.7.9
Game System: dnd5e

Thanks for submitting an issue. I'm noting after your comment reply that this is an enhancement request, and not a bug report. I'll let other contributors chime in on this request

Good news.. The new version of FQL 0.7.0 which about to be released saves any open text editing fields when closing the dialog. So great enhancement idea. It was a bit tricky to pull off, but I got it in the new upcoming release.


Queries work but creating projects or tasks does not

Hi,
I have just started using the API on python and I was working on the tutorial to learn how to use it. I noticed that when I use query functions like api.billing_groups.query() it works correctly, so I assume the API is connected to my account on Cavatica properly. However, when I try to create a new project or new task, nothing seems to actually go through. No error messages are produced but when I query projects or tasks the new one does not show up and I also cannot see it on my account. Additionally, an object is produced by creating a new project or file but it does not have an ID, name, or any other information in the object.
I'm not sure how to proceed to fix this since it does seem that the API is connected to my account by querying correctly.
Thanks for the help!

Hey @gabrielle-altman,
the latest documentation for sevenbridges-python is at https://sevenbridges-python.readthedocs.io/en/latest/quickstart/. The tutorial you linked has not been updated in years, and I'm not sure it's still correct. If you have any issues after that, please let us know.

Hi @QuicksilverMachine thank you for the fast response! I just went to the latest documentation and used the exact code they have for creating a new project (shown below) and it still does not work.
# Grab the first billing group
bg = api.billing_groups.query(limit=1)[0]

# Create a project using the billing group grabbed above
new_project = api.projects.create(name="My new project", billing_group=bg.id)

When I have python print the new_project variable it returns:
<Project: id=None>
It does not have any name assigned to it. No errors show up, so I am unsure what is causing this.
Thanks for the help!

@gabrielle-altman Could you tell me which version of sevenbridges-python you're using and if it works with the latest one?

@QuicksilverMachine through pip I had version 1.1.1. I also just (a couple of minutes ago so I assume it was the latest version) tried installing via git and then using the setup.py to install. It still doesn't work for either.

Strange, I managed to make it work with both, could you try running this script in your environment and see if that creates a project for you:
api = sevenbridges.Api(
    url='https://cavatica-api.sbgenomics.com/v2',
    token='your_token',
)

bg = api.billing_groups.query(limit=1)[0]
new_project = api.projects.create(name="myproject", billing_group=bg.id)
print(new_project)

@QuicksilverMachine now it is working! thank you! The only thing that was different was that before I used import sevenbridges as sbg and then in the API creation did sbg.Api(...) but this time just used import sevenbridges and your code and it works now.

@gabrielle-altman I figured out what it was, you might have been using http instead of https when setting api url. Creating a project is a POST request and does not handle redirects to https.


Maya: multipart is always on even if not enabled

Running version
3.14.7-nightly.1
Describe the bug
multipart is always on, even though it is not enabled in render settings
This is causing issues with aov filters which are omitted during deadline publishing and all aovs are published to ftrack
project_settings/deadline/publish/ProcessSubmittedJobOnFarm/aov_filter/maya/0
To Reproduce
submit a render with multipart disabled with aovs and set the regex filter to exclude them from reviewing
example:
this regex .*([Mm]ain\.).* should only allow Main.####.exr files to be processed as reviewable media

but the filter is ignored because all aovs are treated as multipart . . .
and all aovs are processed and submitted to ftrack

[cuID:31b88c8]

@tokejepsen didn't you resolve this recently #4497 and #4297 ?

Yup closing.


BLD: Create OpenBLAS shared object

Hi @HaoZeke,
This PR builds shared library for OpenBLAS, alongside static library.

Thanks @mtsokol


Wrong calculation of CameraUpdate bounds

The CameraUpdate for the route is wrong. It always assume the source and destination to be located from southwest to northeast.
The following lines
https://github.com/sbis04/flutter_maps/blob/7a439ee016c4fc1ba621047aa2d0cf624cf5ffb2/lib/main.dart#L204-L210
should be replaced with the following (or similar code):
double miny = (startCoordinates.latitude <= destinationCoordinates.latitude) ? startCoordinates.latitude : destinationCoordinates.latitude;
double minx = (startCoordinates.longitude <= destinationCoordinates.longitude) ? startCoordinates.longitude : destinationCoordinates.longitude;
double maxy = (startCoordinates.latitude <= destinationCoordinates.latitude) ? destinationCoordinates.latitude : startCoordinates.latitude;
double maxx = (startCoordinates.longitude <= destinationCoordinates.longitude) ? destinationCoordinates.longitude : startCoordinates.longitude;

Position _southwestCoordinates = Position(
  latitude: miny,
  longitude: minx
);
Position _northeastCoordinates =  Position(
  latitude: maxy,
  longitude: maxx
);

thanks man.. thats why my camera was moving to different continent lol..

thank you. My problem is sorted now

Thanks @giohappy for this solution. I have updated the example as per that.


Enable remaining CI tests

Hold my beer...

Deliberately included PR #510 in order to ensure tests pass. This should merge happily after PR 510 is merged.


Can I mixed loss?

Hello. Thanks for your great works.
I want to use mixed loss(for example, dice loss + focal loss + etc...), but in segmentations_models_pytorch can't use this.
So, I think this function need to add.
Could you add mixed loss function?
Thanks.

Hi @PeterKim1 there are many possible combinations of the loss functions in this library and it seems it would be specific to each user. I definitely tend to use a CE + Jaccard loss in my projects!
However, I don't think it would be good to add since it would be more code to maintain.
Creating a multi-objective loss isn't too much effort though, see the example below. Hope this helps!
class FocalDiceLoss(nn.Module):
   def __init__(self, ...):
      self.focal_loss = FocalLoss(...)
      self.dice_loss = DiceLoss(...)
      self.alpha = 0.5
      self.beta = 0.5

   def forward(self, preds, targets):
      focal_loss = self.alpha * self.focal_loss(preds, targets)
      dice_loss = self.beta * self.dice_loss(preds, targets)
      loss = focal_loss + dice_loss
      return loss

@isaaccorley Thanks for your kind reply!

@PeterKim1 Of course!


[SPARK-46604][SQL] Make Literal.apply support s.c.immuable.ArraySeq

What changes were proposed in this pull request?
The Literal.create function supports immuable.ArraySeq, but the Literal.apply function does not. So this pr make the Literal.apply function to also support immuable.ArraySeq.
Why are the changes needed?
Make Literal.apply support s.c.immuable.ArraySeq as Literal.create
Does this PR introduce any user-facing change?
Yes, user can create Literal using the Literal.apply function with s.c.immuable.ArraySeq as input.
How was this patch tested?
Add a new test
Was this patch authored or co-authored using generative AI tooling?
No

Thanks @dongjoon-hyun


alexa state changes will not be acknowleged by adapter

After pressing a button the state change is not acknowleged.
Everythinh works but just the adapter acknowledgment is missing.

You mean the "commands" ?
Then why a ack is needed? For buttons acks do not have ameaning because other things are updated.
E.g. when you press "Play" then the status and played song is updated, but the play button is not meaning anything.

We will see, but to clarify:
a set "ack" flag means that the adapter states that this is the official value of the state.
For buttons it is a common behaviour to leave them in ack=false state because the button itself is only a trigger for a real action, So checking if the button press worked is mainly done by monitoring the state taht chould change through the button press.
Also for Homematic devices (where the ack idea comes from) buttons are never officially ack-ed. they stay as ack=false.


[Question] Can I install ONE tweak?

Hi! I have an iPhone X with iOS 15.6.1 without ANY SHSH blobs saved. I can't jailbreak it unless I do a tethered downgrade to iOS 14.3 with sunst0rm. I want to jailbreak it to ONLY use Frida.
So is it possible to use this script to manually install Frida DEB: copying & pasting its content (modifying FS) over SSH?
Thanks in advance.

I just stick SpringBoard into a ipa, shove it into sideloadly, tick the "normal install" option, and enable inject tweaks and stick the tweak into there. Then when the install fails, extract the ipa, resign binaries, and copy over to device

But that's what I do. Maybe other stuff works too

I don't understand. Do you think that it is possible to install a tweak unzipping DEB and then scp its contents into device using a custom patched ramdisk created with your script?

Yes. It's possible. Are you booting seal-less or something

So are these commands sufficient and correct
./sshrd.sh https://updates.cdn-apple.com/2022SummerFCS/fullrestores/012-52718/E165707F-2AA7-40C8-B1A5-0BB94E3F845A/iPhone10,3,iPhone10,6_15.6.1_19G82_Restore.ipsw

./sshrd.sh boot

for my purpose?
I don't know if it is required SHSH blob for my purpose. It is correct if I use IPSW for iOS 15.6.1 (currently installed on iPhone X)? Or do I have to use IPSW for iOS 14.6?


import Numpy Compiler Error

I try to use PyImport_AppendInittab import PyInit_multiarray.
But Xcode Show Compiler Error
Undefined symbols for architecture arm64:
  "_PyInit_multiarray", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture arm64

Using numpy requires some manual configuration of your project; if you're getting linking errors, it suggests you haven't followed the instructions for including numpy in your Xcode project.
However, without knowing more details, it's impossible to diagnose any further.

Thanks your help, I had follow the followed the instructions.
This is My Step.
1.Download Python-Apple-support-3.6
2.make numpy
The Build Process outpurt is here, I  also try command with     make numpy-iOS, but it's show error.
3.Because it's not generate  dist/numpy folder,so I use command
make numpy-macOS
generate dist/numpy folder and copy it to xcode project
(by the way. project is gen from Python-iOS-template)
Maybe I need fix the problem at setp 2? Any comments will be much appreciated！


Use DisplayName

See this comment https://github.com/tituspijean/flarum-ext-auth-ldap/issues/6#issuecomment-408557663, and make it default with option to stay with uid.

Closing for now, to be reopened when display names are implemented in Flarum.


Adblock detected

Hey,
I don't understand why, on the Discord RPC application, I've had this window displayed ever since.
When I click on Adblock Disabled, it restarts the application and Discord visibility is no longer displayed.
However, I don't have Adblock.

Thank you for any indication,
Florent.

Resolved : DNS google.

However, I don't have Adblock.

I would like to note that there is an ad-blocker integrated into the app


Can I extract data from .img file?

Can I extract data from .img file? /var/lib/longhorn/replicas/pvc-196eb810-7108-435b-919c-6e74565f6971-ee0cba62.
I lost all connectivity with longhorn, I still have data stored in nodes so, can I extract data from replicas files like :/var/lib/longhorn/replicas/pvc-196eb810-7108-435b-919c-6e74565f6971-ee0cba62/volume-head-006.img?
Have you an alternate idea to get the data back?
Last Error:
Failed rebuilding replica with Address <IP_ADDRESS>:10000: failed to add replica address='tcp://<IP_ADDRESS>:10000' to controller 'pvc-a9720a57-f921-49e0-8db7-6a3067ce7ab9': failed to execute: /var/lib/longhorn/engine-binaries/longhornio-longhorn-engine-v1.0.2/longhorn [--url <IP_ADDRESS>:10000 add tcp://<IP_ADDRESS>:10000], output , stderr, time="2021-04-11T02:25:37Z" level=fatal msg="Error running add replica command: failed to get replica <IP_ADDRESS>:10000: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp <IP_ADDRESS>:10000: i/o timeout"" , error exit status 1
thank you in advance
Environment:

Longhorn version: v1.0.2
Kubernetes version: 1.20
Node config

OS type and version Debian 9/ubuntu 20
CPU per node:  amd 3700 on workers
Memory per node: 64 / 32 /32
Disk type LVM with NVME as cache
Network bandwidth and latency between the nodes 1 Gbps

Underlying Infrastructure (Baremetal):

Solved: https://longhorn.io/docs/1.1.0/advanced-resources/data-recovery/export-from-replica/


Fix: Migration failing on staging

Resolves #3715
Type of change
removed the kit_allocation_type column from create_kit_allocation migration

Thanks!


Version 0.9.4 breaks IE8 compatibility due regression bug

My application was developed with 0.9.3 version and I'm constrained to support IE8; now, updating to 0.9.4, there's the same bug noticed at bug #137; the cause is the fix for the bug #486.

I am inclined not to try and chase down IE8 problems. It's been over a year since Microsoft has stopped supporting IE8 and support for IE8 and IE9 are pretty much being universally dropped by all.  @crevete Do you have any opinion on this?
@rflamia I would recommend not upgrading to 0.9.4.

@rflamia I would be willing to look at a PR for this issue if you were inclined to provide one.

Thank you for suggestion, I've already rollback to 0.9.3, unfortunately the compatibility with IE8 can not be avoided ... :-(.
This are my 2 cents: the gwtbootstrap3 project was developed with IE8 compatibility in mind, and Bootstrap 3 is IE8 friendly with Respond module. If we want to continue this way, maybe we can provide 2 distinct implementations for Text and ComplexWidget (one for IE8, the other for others browsers) and let gwt deferred binding do his job, so both issues will be resolved (if I've understood correctly the problems).
In next days I'll evaluate my effort for PR, I'm actually very busy at work.

@rflamia I completely understand your viewpoint.  I don't have time to chase IE8 issues so the only way this gets fixed is by PR.  I'll leave this issue open for the time being just in case @crevete or someone else would like to work on it.


Suport for ISO 216

https://en.wikipedia.org/wiki/ISO_216
Just lately I had to convert a few sizes for printing.
Would have been really handy :grin:

Hi, thank you for your feedback.
Was exactly is it that you are missing in ps-quantities (or Insect)?

But all of this works after you define A4, right?
>>> A4 = 210 mm × 297 mm

  A4 = 62370 mm²

>>> A4 * 300^2 dots/in^2

  A4 × (300^2 × dot / in^2)

   = 8700630 dot

>>> A4 / (85 mm * 55 mm)

  A4 / (85 mm × 55 mm)

   = 13.3412

>>> 100 * A4 * 0.1 mm * 800 kg / m^3

  100 × A4 × 0.1 mm × (800 kg / m^3)

   = 0.49896 kg

I don't think I would like to add add A4 as a constant to purescript-quantities / Insect. There are soo many more things we would need to add. And it's not like the area of the A4 paper format is some kind of fundamental constant :smile:.
Note that once we have https://github.com/sharkdp/insect/issues/124, everyone is free to define his own constants.

It's not like the area of the A4 paper format is some kind of fundamental constant

Well, actually it is ^^ (At least as far as the meter is fundamental):

All paper sizes have the same aspect ratio, \sqrt{2}, within rounding to millimeters. This ratio has the unique property that when cut or folded in half width-wise, the halves also have the same aspect ratio. Each ISO paper size is one half of the area of the next larger size in the same series.

And the surface area of A0 is exactly 1 m^2.

Unfortunately due to rounding error you can't: 1 × m^2 / 2^4 as 0.0625 m² /= 0.06237 m²

Sorry for being nit-picky. I meant it's not a fundamental constant of nature like the speed of light or the mass of an electron. The fact that the area of A0 paper is (almost exactly) 1 m² is not a coincidence. It's because it has been designed this way. That doesn't make it anymore special or fundamental than if its value had been 0.743 m².

The fact that the area of A0 paper is (almost exactly) 1 m² is not a coincidence

Yes I know. That's what I'm saying. It's a derived unit like mm, cm, hectare, ...
and equally important. If not more important. (nobody should seriously use barn, but there is nothing which can easily replace the A series)
But I guess sharkdp/insect#124 is cool too. It would be really nice, however, if insect contained a default file with the most common units predefined (like e.g. https://en.wikipedia.org/wiki/GNU_Units)

use a database of units instead of hardcoded units

On the other hand, how many can there be? I would just add all of them (the 99% most important).
How many more would it be? I'd guess a few hundred. Still easily manageable  as code...


⚠ Bofrost.at has degraded performance

In 57b7d6b, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2004 ms

Resolved: Bofrost.at performance has improved in 72f57f7.


Cannot clone Response with null body

We receive TypeError: Cannot read properties of undefined (reading 'stream') when trying to clone a response with null body.
let cloned = new Response(null, { status: 201 }).clone()

Issue opened at undici - https://github.com/nodejs/undici/issues/1122


Migrate to Python 3?

Hello,
Is there any plan to upgrade to Python 3.X, as some dependencies failed to install due to the lack of support for Python 2.7?
e.g. h5py==2.9,
What’s new in h5py 2.9
Support for old Python
Support for Python 3.3 has been dropped.
Support for Python 2.6 has been dropped.

Hey,
Thank you for the interest. Yes. Python 3 version is on the way. Please wait for a few days.

Will wait for your update then, thanks!

@zqzneptune Hi，Python 3 version has been released on github and Pypi, you can try it by pip install diffDomain-py3


MemoryErrors Began Recently, Breaking our Python Function App

Investigative information

Timestamp: 2019/04/26 @ 3pm
Function App name: [PRIVATE] Contact if needed.
Function name(s) (as appropriate): [PRIVATE]
Core Tools version: 2.6.1048

Function App Overview
We built a system that processes audio files. Each input file is a compressed format (m4a and mp3 are the most common). The main processing function uses ffmpeg, which is included as a static binary, to decompress the audio file into raw samples for processing. While the system was able to handle unpacking 90mins of audio, we found that the processing time involved for complete unpacking was unreasonable, causing the entire function to take ~4mins to process. Running this process locally showed that the Python process was responsible for allocating a maximum of ~1.5-2GB of memory.
We were able to reduce this dramatically by streaming the decompression process. However, the streaming had some processing overhead such that "shorter" audio files actually took longer to process overall with the streaming approach. We determined that ~10mins in length would be a fine length to switch modes.
To make the most of each Function App instance, we make use of the Python multiprocessing module (via ProcessPoolExecutor). We use a single Process for processing audio data with ffmpeg (which itself is multi-threaded). We then use numCPUs - 1 Processes to handle downloading audio files to prepare for the processing phase. In this way, we can download multiple audio files to the function at a time while one audio file is being processed. Attempting to process multiple files simultaneously results in worse performance overall (we suspect that the multiple instances of ffmpeg have threads that fight each other for time on the CPU cores).
Things Broke On Us
This system worked with no issues as of March 24th, 2019: we could queue up as many audio files of whatever size we liked and the system would churn through them. Happy with the system, we moved on to another task. As our Function App is on a Linux Consumption Plan, we left everything "as-is", expecting to return to it at a later date for integration into a larger system.
That later date was yesterday and we were surprised to find that something changed in the intervening month and broke our Function App. All of a sudden our Function App would stop responding to requests. Looking into the Monitor and Live Metrics Stream views, we noticed several things:

Monitor:

Doesn't show all logs anymore.

Live Metrics Stream:

Only shows "1 Server Online".
Server ID in the Sample Telemetry stream is "@(none)".
The "Servers" section at the bottom shows no useful information (and only ever one server instance).

Previously we could rely on the Monitor section to show us logs of both successful and unsuccessful runs of the functions in our Function App. This is no longer the case.
Previously we could use the Live Metrics Stream to show when more than one server instance had spawned to handle the request load. Unless that capability is currently gone, this feature is broken.
What We've Discovered
Luckily for us, the Live Metrics Stream appears to work and provided us with a sampling of log messages that we could use to attempt to identify the source of the issue. By watching this stream and inspecting the Errors, we found the following:

The first error to occur is always caused by a MemoryError Exception in Python. This comes from a call to np.ascontiguousarray which is used to convert the audio samples from 16bit integers to 32bit float values. For large audio files, the array size here can be hundreds of MiBs in size (if not over 1GiB).
Every subsequent run of the function fails to start the ffmpeg process. It looks like the system is getting an OSError, indicating that it was "trying to execute a non-existent file."
Once the Function App was shut down (from a timeout) and restarted by adding a request, the instances would again be able to access ffmpeg and process happily (when provided audio files at "the right size").
If lots of audio file processing requests hit the Function App at once and the system breaks due to the MemoryError, then ~10mins from the break the timeout will occur and messages may begin to process again (usually succeeding without issue).

Certain audio file sizes can trigger the MemoryError to occur 100% of the time. In some circumstances, it seems that smaller audio files can trigger the MemoryError, though it is likely related to the memory state caused by simultaneously downloading files.
Questions
This leads us to the following questions:

What changed with memory handling in Function Apps [possibly Python-specific] to cause this issue?
How do we fix/work around this issue?

Repro steps
Reproduction is proprietary, but we have two ways to do it:

Unpack a 10min long audio file into a function with 32bit samples (stereo). (Specifically: with ffmpeg via the audioread module.)
Use our Function App to process a queue of multiple (~50) smaller (~3:30) audio files.

Expected behavior
The Function App continues to process audio files without interruption.
Actual behavior
The Function App fails due to a MemoryError and suddenly goes into a "Broken" state where  the included ffmpeg static binary "goes missing".
Known workarounds
No known workarounds at this time.
Related information
Triggers/Bindings Used:

HTTP - Used to add requests to the processing Queue.
Queue Storage - Used to trigger audio file processing.

There's nothing that's change on the worker side with respect to memory handling. @fabiocav, I believe this shouldn't have anything to do with functions runtime level changes either, though I do know that there are some perf improvements that might already have landed. @ahmelsayed, @balag0, @divyagandhii, the largest change that's landed during this timeframe is LCOW. Is it likely that shared memory across different containers might be causing this? If so, how can we go about investigating?

I've managed to narrow down the memory error to a specific amount of memory that causes the issue. In a freshly booted Function App instance, if I add a message to the Queue that contains a request to process an audio file who's unpacked size is ~100MiB, then the Memory Error will trigger when the underlying Python code attempts to allocate a new ndarray of equivalent size (it is copying an "accumulator" array using numpy.ascontinuousarray).

Another update with more information. Back in March our tests showed that our Function App was running on a "system" with 4 [logical] CPUs (via os.cpu_count()). When running today, we have access to only 2 CPUs.

Another update. We emulated what audioread does to run ffmpeg (subprocess.Popen) to determine precisely what error was being triggered to cause the ffmpeg run to fail.
We were able to verify that the Popen never completes. The Traceback points to this line of code and reports the following error:
OSError: [Errno 12] Cannot allocate memory

So. We definitely have a memory handling issue here. We'll do some more tests with the psutil library to see what the memory status of the system is, but the fact that everything breaks after allocating ~100MiB of data is a really bad sign.

@eric Thanks for all the information. While this may or may not be applicable for this app, for consumption sku a limit of 1.5 GB memory will apply. Some more information here https://github.com/Azure/azure-functions-host/issues/2501
We will investigate and provide an update/mitigation soon.

@balag0 I'm aware of the 1.5GB memory limitation, yes. However, isn't there something like 10GB in storage space? Wouldn't large memory allocations simply bump some memory out into swap?
This is separate from the 100MiB issue I've outlined above, of course: 100MiB doesn't even come close to the 1.5GB limit...

I'm back with more information.
I decided to take a look at what's going on with the memory in the function environment. I added the psutil module and wrote a simple informational function:
def log_context_stats():
    """
    Retrieves and logs certain stats about the operating context for
    this process.
    """

    proc = psutil.Process(os.getpid())
    mem_info = proc.memory_info()

    stats = f"""Function Invocation Stats:
            Num CPUs: {os.cpu_count()}
            Virt Mem: {psutil.virtual_memory()}
            Swap Mem: {psutil.swap_memory()}
            Proc Mem: rss={mem_info.rss}, vms={mem_info.vms}
            """

    logging.info(stats)

I then called this function in two locations:

Immediately upon function invocation.
Immediately after catching the initial MemoryError.

Here is the output* from location 1:
Function Invocation Stats:
Num CPUs: 2
Virt Mem: svmem(
    total=1,039,429,632,
    available=240,713,728,
    percent=76.8,
    used=641,794,048,
    free=75,522,048,
    active=683,995,136,
    inactive=177,491,968,
    buffers=15,876,096,
    cached=306,237,440,
    shared=253,952,
    slab=67,407,872)
Swap Mem: sswap(total=0, used=0, free=0, percent=0, sin=0, sout=0)
Proc Mem:
    rss=144,080,896,
    vms=1,122,570,240

And here is the output* from location 2:
Function Invocation Stats:
Num CPUs: 2
Virt Mem: svmem(
    total=1,039,429,632,
    available=39,194,624,
    percent=96.2,
    used=893,681,664,
    free=79,187,968,
    active=860,884,992,
    inactive=22,732,800,
    buffers=413,696,
    cached=66,146,304,
    shared=253,952,
    slab=40,701,952)
Swap Mem: sswap(total=0, used=0, free=0, percent=0, sin=0, sout=0)
Proc Mem:
    rss=304,037,888,
    vms=1,570,119,680

(* Newlines and thousands separators added to numbers for readability.)
First, I should note that the swap_memory is showing 0 for everything. This might be due to the fact that the function is run in a Docker container and special settings are needed to access that information in these environments. Alternatively, it could be that someone turned off swap.
Second, what I found extremely startling is that a fresh run of the function showed only ~240MB of virtual_memory available. When the MemoryError was hit, the available memory had dropped by almost exactly 200MB (to ~39MB). Similarly, the process' virtual memory starts at ~1.1GB and is already at ~1.57GB by the time the app runs out of memory.
It is perhaps valuable to recall at this point that the audio file being processed is just over the 100MiB line that causes the memory error to trigger when fully decompressed. I have no idea if the audio file is just large enough to run us out of available memory with array allocations/reallocations or if there is something otherwise special about the ~100MiB number.
Regardless, there is much about this state of affairs that is disconcerting.

Why is there only ~240MB available when the function starts up fresh?
Perhaps more telling/pertinent, is the process' virtual memory. Why does it start at over 1GB?
Is swap still enabled? Even if we ran out of RAM, I would expect the process to slow down as it shuffled memory over to disk (of which there should be plenty of space). I had previously assumed that it was swap memory that saved us with our massive files back in March.

While having no swap memory might help explain the situation we're experiencing, it is pretty shocking to see such high memory usage numbers on a clean start of a relatively simple function app instance.
I hope this information is helpful in tracking down the source of the issue.

Thanks for the detailed information @ericdrobinson  (got the name right this time :) ). This was very helpful.
Turns out this was due to a bad configuration setting on our side which limited the amount of memory allocated to the container. Unfortunately it would be sometime next time before we can fix this.
Once the configuration is fixed, you should start seeing more available memory on function startup.
As for the memory usage being so high at startup, I see the following values with a different (may be simpler) function app
Proc Mem: rss=33562624, vms=664834048
So it is possible additional memory usage you see is due to the nature of the function app itself.
Even with paged memory, the app still cannot exceed the 1.5 GB limit. So swap memory being 0 shouldn't matter as long as you get 1.5 GB (less memory taken by Functions runtime process).

@balag0 I'm glad to hear that a culprit was found!
On Misconfiguration

Turns out this was due to a bad configuration setting on our side which limited the amount of memory allocated to the container. Unfortunately it would be sometime next time before we can fix this.
Once the configuration is fixed, you should start seeing more available memory on function startup.

@balag0 Any indication as to how much memory was being withheld by this misconfiguration? This information will help set expectations so we can best plan our mitigation strategy.
On Base Memory Usage

As for the memory usage being so high at startup, I see the following values with a different (may be simpler) function app
Proc Mem: rss=33562624, vms=664834048
So it is possible additional memory usage you see is due to the nature of the function app itself.

I would not be surprised if yours was simpler. Our function application has two functions. Each of those uses the azure.storage.blob package. The only other packages we specifically install are librosa and audioread. Librosa brings numpy (and scipy) along with it and we make direct use of numpy in one of our functions.
In theory, none of these should account for the additional 400MB of vms that we see over your example.
We are using the ProcessPoolExecutor which will have an impact on memory as it forks the Python process when one of our function instances begins so that it can work without gumming up the works, but the number of processes we spawn is capped by the number of CPUs we have access to (2). What's more, running the function [synchronously] on a local macOS machine shows that the Python process eats all of 80MB of memory.
@balag0 During your investigation, were you able to profile a basic Python Function App to determine how much of the 1.5GB of memory is chewed up by the base Function App software stack itself? If the foundation takes up 650MB of memory then it might be a wee bit disingenuous to say that you can expect access to 1.5GB of memory when using Azure Functions with [language].
On Swap Memory / App-Local Storage

Even with paged memory, the app still cannot exceed the 1.5 GB limit. So swap memory being 0 shouldn't matter as long as you get 1.5 GB (less memory taken by Functions runtime process).

@balag0 Wait, what? That's a pretty sizable limitation there. How much app-local storage space do we have access to with a function app?

We expect to have an additional ~600MB available to the container.
I will try to add a wiki page to the host repo soon once I have more information. The limits will be configured such that the function app will be able to use all of 1.5 GB (minus whatever the functions runtime takes). We will account for the 400MB and adjust the overall limit accordingly if required.
The limit of 1.5 GB is just for the commit size which is the same limit as what we already have on Windows consumption sku. Is your concern that there is 0 swap space available? Even if we enabled swap space the overall limit of 1.5 GB will apply for that also.
Apps should have atleast 500MB of temp storage available to them as documented at
https://github.com/projectkudu/kudu/wiki/Understanding-the-Azure-App-Service-file-system

On Additional Memory

We expect to have an additional ~600MB available to the container.

Excellent. Thanks very much!
@balag0 Was the change that caused this issue in response to something? Was it the first time a proper limitation was actually set on Azure Functions for Linux (or in general)? I'm really curious to understand how we were able to decompress a ~2GB file without hitting memory errors back in March.
On Documenting and Handling Memory Limits

I will try to add a wiki page to the host repo soon once I have more information. The limits will be configured such that the function app will be able to use all of 1.5 GB (minus whatever the functions runtime takes). We will account for the 400MB and adjust the overall limit accordingly if required.

I would love to know as soon as such a wiki page exists. Information on memory (RAM/swap) is exceedingly sparse in the current documentation. This will be extremely helpful!
On the 1.5GB Commit Size Limitation

The limit of 1.5 GB is just for the commit size which is the same limit as what we already have on Windows consumption sku. Is your concern that there is 0 swap space available? Even if we enabled swap space the overall limit of 1.5 GB will apply for that also.

My concern isn't so much that there isn't swap space available, but that my default expectation was that there would be swap space available. We're an apps/software team and are used to working in environments where swap is a given. That we didn't previously run into memory issues somewhat reinforced this: "Well, I guess the memory is being swapped to disk as necessary."
It may be worthwhile mentioning the lack of swap in the documentation.
By the way, being able to watch the Memory/CPU usage in the various metrics frontends would be extremely useful. Spitting out memory usage debug messages every once in a while is a pain, especially when they show up so infrequently in the Sample Telemetry output (and frequently never make it to the functions' log Monitor...

We expect to have an additional ~600MB available to the container.

Please notify us, @balag0, when the memory allowance has been increased to 1.5 GB and Azure Functions becomes usable for us again. Or why not make it 3 GB, like λ has? ;-)

Update - The updated memory config is available in East Asia now. It will be deployed to rest of the regions tomorrow.
Currently consumption sku doesn't support > 1.5 GB workloads. App service plan function apps should though..

Hi @balag0  , we're experiencing a similar issue, we think may be related to maxing out the memory also (tensorflow, so very probably). We're using consumption plan.
But main question is what the expected behavior when this happens? What we are seeing is, like described above, app stops responding for very long periods of time, we don't see any error,  nothing, these requests are not even counted, and never return so client app get blocked forever.
thoughts?
thanks!

@rquintino The expected behaviour is Out of memory Exception if the app runs out of memory.
Please open a new issue and provide details of sitename, approx timestamp. You can also follow https://github.com/Azure/azure-functions-host/wiki/Sharing-Your-Function-App-name-privately if required.
We can investigate further.


Design Infrastructure and Deployment using Kuberentes

We will be building the deployment process outlined in the system design diagram so we can have some stuff to deploy. We will be using some random bullshirt to get it working for now but we will eventually want to add something more solid later.

Finished


CB-21006 - DataHub - Flow changes to support mounting Ephemeral volumes

The current flow for changing the instance type (CoreVerticalScaleFlowConfig) doesn't mount the ephemeral volumes under the right mount path.
Modify the vertical scale logic to update the template table with the right temporary storage and the count and size of instance stores.
Remove condition logic from mount-instance-storage.j2 file mount_all_sequential method, as this file is only used to mount ephemeral storage and we have to mount ephemral storage to only /ephfs path.
skip cluster stop validation if node roles are not blacklisted
stop compute service in CM
update salt grain properties
stop group
change instance type
start instance group
update CM config
update cbdb

@lajosrodek Resubmit of https://github.com/hortonworks/cloudbreak/pull/14510.
@lajosrodek the difference between this and the https://github.com/hortonworks/cloudbreak/pull/14510  is that i removed the integration test which tested a negative use case. But when it throws the error to fail the vertical scaling, it also stops the integration test flow, which marks the test FAILED.


command not found

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: macos high siera version 10.13.6
after install dotnet-sdk-2.2.401-osx-gs-x64.pkg,i open terminal,and run command dotnet,i got command not found

so do i
+1

thanks,this solved


Collision events not firing

I've made an example project where a collision event should fire. It does not fire in 9/10 case though
https://github.com/stillonearth/bevy_dice/tree/c18abc62eb490aa0418d824bd23c2662eea7f48d
I've  collider issues when colliding objects on high velocities, but it seems somehow related here. Collision itself happens, though no events.

Thanks for the report.
Sadly, today I decided to discontinue the project. Therefore, I won't investigate this issue myself. But I'll gladly accept a fix, if someone were to provide one.


⚠ Bofrost.fr has degraded performance

In be9c4c1, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1386 ms

Resolved: Bofrost.fr performance has improved in 5ab8d5f after 6 minutes.


You can post comments in the future

Describe the bug
As atonishing it might sound... you can post a comment in a future time from the present. (Space time continous in danger?)
To Reproduce
Steps to reproduce the behavior:

Go to any Kata
Go to discussion
Post a comment
See how it's in the future from the past

Expected Behavior
Server time should not be in the future, I think it should be shown with timezone i.e. PCT
Screenshots
If applicable, add screenshots to help explain your problem.

I've never seen this. It always says soon for several seconds, but this makes no sense. :confused:

Server is in the future dude!

I've never seen this either; just posted a comment now and there's still nothing like this. Any details?

Maybe it's your timezone. Is all time stuff correct on your computer?

@javatlacati does this happen to you consistently? This is processed on the client side so I think the clock on your computer is off.
That text is displayed using seconds since the unix epoch (stored in data-text-time attribute) and comparing that to the time your browser returns.

Closing, but let me know if it still happens after correcting the clock or anyone else experiences this.


INFRA: Initialize Build Project

#4

#4

You need to put Closes before the issue number. Requires a space between for FYI.
If you type Closes then space, then the hash tag you will see a list of open issues.

Thank you.
On Sat, Apr 29, 2023 at 11:58 AM GregHays @.***> wrote:

#4 https://github.com/hassanhabib/InternTrack.Core/issues/4
You need to put Closes before the issue number. Requires a space between
for FYI.
If you type Closes then space, then the hash tag you will see a list of
open issues.
—
Reply to this email directly, view it on GitHub
https://github.com/hassanhabib/InternTrack.Core/pull/14#issuecomment-1528850460,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A6E2EFIAU5HIWP3PBOU6WALXDVQD5ANCNFSM6AAAAAAXP6AC3Q
.
You are receiving this because you authored the thread.Message ID:
@.***>


refactor: add set data mask to build query

SUMMARY
Add setDataMask to buildQuery of charts
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

@simcha90 could you please add more description to the PR? thanks!

Related PR: https://github.com/apache-superset/superset-ui/pull/985

@simcha90 could you please add more description to the PR? thanks!

added @junlincc


Add pg ilike search to posts title and body

#3540

Add pg ilike search to posts.title and posts.body
Add search form to /journal (browse)
Add post search results page which shows results, paginated

Browse:

Results:

Ok, reworked this a bit so that it applies to all parent_types (User, Project, Site). Since I was doing this I took the opportunity to create a HasJournal concern for those models, thus helping clean up the controller flow a bit.
Also removed original "Browse" search as I see that wasn't really the primary goal here and searching ALL might not be that helpful.
N.B.

Does change Project
has_many :journal_posts, class_name: "Post", as: :parent
to
has_many :journal_posts, class_name: "Post", as: :parent, dependent: :destroy
Though I'm assuming it should be this way and consistent with other models now, I highlight his as it is a change.

Project (new)

Project (old)

Site

User (self)

User (other)

Thanks again!


Provider produced inconsistent result after apply from mist_site_networktemplate switch_mgmt allowed_services

with the following HCL
resource "mist_site_networktemplate" "networktemplate_one" {
  site_id      = "redacted"
  dns_servers = ["<IP_ADDRESS>", "<IP_ADDRESS>"]
  dns_suffix  = ["mycorp.com"]
  ntp_servers = ["pool.ntp.org"]
  switch_mgmt = {
    protect_re = {
      enabled = true
      allowed_services = ["icmp", "ssh"]
    }
  }
}

I get the following error
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ mist_site_networktemplate.networktemplate_one, provider
│ "provider[\"registry.terraform.io/juniper/mist\"]"
│ produced an unexpected new value: .switch_mgmt:
│ inconsistent values for sensitive attribute.
│
│ This is a bug in the provider, which should be reported
│ in the provider's own issue tracker.

looks to be fixed in latest release


Add the closing function to (colour custom ,file , Ai)buttons .

Issue in these buttons. You can click to open that slide view bar, move to another view but the issue is you can't close slide view bar.

I would like to work on this issue. Please assign it to me under GSSoC'23.

Yeah Guys , great to know you find this issue.

and @SakshiShah29 , what will be your contribution area , i just want to know.

I'm front end developer. I will fix that bug

and @SakshiShah29 , what will be your contribution area , i just want to know.

I am a Frontend Dev as well, I can contribute in customizing the button and solving the bug


error message "an error has occurred"

Hey! I'm getting this error message. I provided my api key from openAI. and the model i have selected in the plugin settings menu is 3.5, not turbo, or 4. Do you have an idea of what could be causing this issue?

Hello, please check #17. I think it's because your plan for the API key has expired.

@vasilecampeanu thank you this was indeed the problem!


Review use of logs of parameters for probability distributions

better I think to return NaN if parameters <= 0. See how works for fitting models.

just deprecated distribution


Ref and out params

Fixes: #62
This change enables support for ref and out parameters for method calls in both directions (JS to/from .NET). It covers static source generation, dynamic invocation, and TS generation.
A .NET method following the Try* pattern (with bool return value and a single out parameter)
is transformed to a JavaScript function with a direct return value of either the result (if the
method returned true) or undefined (if the method returned false).

C#TypeScript

bool TryParse(string s, out Version result)

function TryParse(s: string): Version | undefined

Any other .NET method with ref and/or out parameters is transformed to a JavaScript function
that returns an object. The object has a result property that is the actual return value from
the method (if not void), and additional properties with names matching each of the ref or
out parameters. The out parameters do not need to be supplied as arguments in the JS call.

C#TypeScript

string[] GetAllResults(ref string value, out int count)

function GetAllResults(value: string):
    { value: string, count: int, result: string[] }

FWIW, I've tried a similar approach in my implementation, and found one problem:  Any method which uses a "fluent" pattern and which also has a ref/out param will end up projected to TS with an altered return type that doesn't work with the fluent pattern anymore.

@ericsink Is there a certain pattern you have encountered that uses ref/out parameters with the fluent pattern? I'd expect that to be very unusual.
Anyway I don't think there's a good alternative. While it could be possible to simulate ref/out semantics by wrapping arguments in an object, I think that would be messy and unintuitive.

@jasongin Yep, it's unusual.  I've encountered it when trying to deal with libraries that construct user interface items in a declarative fashion, but they need to capture something in a variable so they express interactions between controls.
For example, the usage might look something like this:
new StackPanel()
    .AddChild(
        new Label()
            .Capture(out var lab)
            .FontSize(16)
            .Text("")
    )
    .AddChild(
        new Button()
            .Text("Click Me")
            .Action(_ => lab.Text("Clicked"))
    )
)

The idea is that the button click action makes a change to the text of the label.
I also agree that there is no "good" option, but I've been thinking that for this particular pattern, the "simulate ref/out semantics by wrapping arguments in an object" might be the least bad option.
Anyway, I'm just tossing the idea here in case it is of interest, while making no assumptions about what tradeoffs are best for your project.

The idea is that the button click action makes a change to the text of the label.

I don't understand - that example does not require ref parameters. The label is an object that is passed by reference anyway.

The button has a method called Action which accepts a lambda which provides the code to execute on a click.  If that lambda wants to do something to the label, it needs to have captured a reference to same.  And since the overall pattern of constructing the layout doesn't put things in local variables, they introduce things like that Capture() method with an out var param.
Obviously, this code could be done another way, but people do write these kinds of APIs.

they introduce things like that Capture() method with an out var param

Oh I see - I had missed that when scanning the code before. That is a funny workaround for a problem that I have never had. :) Personally I'm not a huge fan of the "fluent" style, so I would have just created the label in a separate statement. And, JS code can easily do that if needed when calling this kind of API.


Use num-enum crate, recognize more compression methods

Just a little code quality update, as a treat

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (149e6c1) 73.34% compared to head (47e65d2) 73.83%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
+ Coverage   73.34%   73.83%   +0.48%
==========================================
  Files          17       17
  Lines        1696     1678      -18
==========================================
- Hits         1244     1239       -5
+ Misses        452      439      -13

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Error When Cross-Compiling on rustc 1.52.1 with 0.2.3

I am attempting to cross compile to the target arm-unknown-linux-gnueabi and I get the following error compiling this crate:
error[E0277]: a value of type `Vec<*const i8>` cannot be built from an iterator over elements of type `*const u8`
  --> /home/../.cargo/registry/src/github.com-1ecc6299db9ec823/unix-exec-output-catcher-0.2.3/src/exec.rs:32:10
   |
32 |         .collect::<Vec<* const i8>>();
   |          ^^^^^^^ value of type `Vec<*const i8>` cannot be built from `std::iter::Iterator<Item=*const u8>`
   |
   = help: the trait `FromIterator<*const u8>` is not implemented for `Vec<*const i8>`

error[E0308]: mismatched types
  --> /home/../.cargo/registry/src/github.com-1ecc6299db9ec823/unix-exec-output-catcher-0.2.3/src/exec.rs:36:58
   |
36 |     let ret = unsafe { libc::execvp(executable.as_ptr(), args_nl.as_ptr()) };
   |                                                          ^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
   |
   = note: expected raw pointer `*const *const u8`
              found raw pointer `*const *const i8`

I think this could be fixed by changing the cast from an i8 to a libc::c_char, which will allow this to work properly even if targeting other architectures:
 // Build array of null terminated C-strings array     let args = args         .iter()         .map(|s| CString::new(*s).expect("Arg not contain null!"))         .collect::<Vec<CString>>();     // Build null terminated array with pointers null terminated c-strings     let mut args_nl = args.iter()         .map(|cs| cs.as_ptr() as *const libc::c_char)         .collect::<Vec<* const libc::c_char>>();     args_nl.push(std::ptr::null());

good catch, thanks. That's interesting.

solved in v0.2.4


Dota Training Time and test setting

Question About Dota Training time:
I am training Dota dataset trainval now ,it has 69337 total (train+val scale 1.0+0.5),and it needs training for 40 hours when using I use batch size=20  one epoch,May you tell me how long will it take when you training model using 4 1080Ti GPUS
Question About Dota testing:
when generate dota testing image ,should I only use scale 1.0 or use both 1.0 and 0.5.
And by the way, How to pick the best trained model to get the evalute result for  DOTA  online server?
thank you.Waiting for replying .Appreciated.

Training time: my condition would be different as I shared the system I/O with other students. But it would take less than 3-5 days when training with 4 1080 Ti GPUs. The RTX 6000 would take about 2 days.
Both 1.0 and 0.5 scales are used for the testing set.
If you have enough resources, I think it would better to set aside a validation set from the trainval and monitor the loss/accuracy to get the best epoch. And then retrain the whole dataset and pick the weights at that epoch.

thank you

Training time: my condition would be different as I shared the system I/O with other students. But it would take less than 3-5 days when training with 4 1080 Ti GPUs. The RTX 6000 would take about 2 days.
Both 1.0 and 0.5 scales are used for the testing set.
If you have enough resources, I think it would better to set aside a validation set from the trainval and monitor the loss/accuracy to get the best epoch. And then retrain the whole dataset and pick the weights at that epoch.

thank you


insightAccount

hi.how to get doc_id and set for api ads/graphql/?

For example, you can dump requests through ProxyMan or Charles
But why do you need it? Everything is already implemented in https://adw0rd.github.io/instagrapi/usage-guide/insight.html

When I use Charles , it gets a binary result for Instagram api. What do you think I should do?

@rhatami7495 have you turned on Whitehat Settings?

Does instagram give you response headers?
If only body is binary, then is there any mention of zstd compression in the headers?

And install zstd tool. For macos:
brew install zstd
$ cat ~/response.bin
<EMAIL_ADDRESS>|�w3���

$ zstdcat ~/response.bin
{"friendship_status":{"following":false,"followed_by":false,"blocking":false,"muting":false,"is_private":false,"incoming_request":false,"outgoing_request":false,"is_bestie":false,"is_restricted":false},"status":"ok"}

Or for install python package pip install zstd
import zstd, json
json.loads(zstd.decompress(open('/tmp/response.bin', 'rb').read()).decode())

Or install python package pip install zstd
import zstd, json
json.loads(zstd.decompress(open('/tmp/response.bin', 'rb').read()).decode())

@rhatami7495 just created for this https://github.com/adw0rd/zstdcat


Additional fields fix

Don't ignore additional fields when creating form.  Fixes regression from 2f88a1bff2d3741cd18e1b47fe8c8c1d882795f4
Added test of form field types
Added CONSTANCE_ADDITIONAL_FIELDS to example app
Updated ChoiceField example, the key & value seemed to be the wrong way around?

Thank you


refactor: Refactor data scratch-Android run

Fixes #1754
Test Plan

How do we know the code works?

code is refactored according to the description provided in #1754 with a change
interface Execute : (Config, Type) -> TestMatrix.Result ->  interface Execute : (Config, List<Type>) -> <TestMatrix.Data>
all runs of flank firebase test android run ...  work without any problems like previously

Checklist

[x] Unit tested

@flank-it

@flank-it

Looks really nice 👍. One thing, the stuff from ftl.gc.android is operating on com.google.testing lib so it should be in ftl.client.google package or nested, but definitely in the client layer.

Nice catch, move to nested package because there is a little mess in ftl.client.google


Add the bpftrace program file for debugging.

I've been trying to think of ways to make the previously difficult debugging details of the container runtimes easier.

Codecov Report

Merging #1794 (70e672f) into main (cb1340f) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1794      +/-   ##
==========================================
- Coverage   68.64%   68.63%   -0.01%
==========================================
  Files         121      121
  Lines       13324    13325       +1
==========================================
  Hits         9146     9146
- Misses       4178     4179       +1

This is really COOL!


HOTT-3700: Update email used for feedback

Jira link
https://transformuk.atlassian.net/browse/HOTT-3700
What?
Update email used for feedback

Note: before merging this PR we need to verify the new email address.


Using src Layout

didn't know what gitmoji to use since it isn't really for style as it is anything else,
https://hynek.me/articles/testing-packaging/
https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure
i wouldn't know if it would be too late to use such a layout or not.

Not too but would defo require every pr to be closed


feat: Rate of pay slider component update

Context

update slider component ui
connect with storage
update storage to set/get specific values
add slider tests

Closes #60

Extension builds preview

Name
Link

Latest commit
d50829e4964bd6c66ea72dbd12f51b1b699f317b

Latest job logs
Run #7963862105

DownloadDownloadDownloadDownload


Typecheck fails on the generated code

What are the steps to reproduce this issue?

yarn run build

Errors:
../../resources/common/src/clients/models/check503Info.ts:14:5 - error TS2411: Property 'status' of type 'string | undefined' is not assignable to 'string' index type 'string'.

14     status?: string;
~~~~~~
817   const formData = new FormData();
~~~~~~~~
../../resources/common/src/clients/api/events/events.ts:890:24 - error TS2693: 'FormData' only refers to a type, but is being used as a value here
What happens?
When I build a project with the generated orval clients it fails.

export const createEvent = (createEventBody: CreateEventBody) => {
  const formData = new FormData();
  if (createEventBody.coverImage !== undefined) {
    formData.append("coverImage", createEventBody.coverImage);
  }
  if (createEventBody.data !== undefined) {
    formData.append("data", JSON.stringify(createEventBody.data));
  }

  return customInstance<PrivateEventDto>({
    url: `/events`,
    method: "POST",
    headers: { "Content-Type": "multipart/form-data" },
    data: formData,
  });
};

What were you expecting to happen?
Not to fail.
Any logs, error output, etc?

Please execute npx envinfo --system --npmPackages orval,zod,axios,msw,swr,@tanstack/react-query,@tanstack/vue-query,react,vue and paste the results here.
System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 107.83 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  npmPackages:
    orval: ^7.0.1 => 7.0.1

   "typescript": "^5.3.3"

can you provide your openAPI document too so it can be reproduced?


Dependencies conflict after new update

Well in the Kohya Lora Dreambooth in the first cell creates an error that says that many dependencies need Torch 1.13.1 but i have 2.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.14.1+cu116 requires torch==1.13.1, but you have torch 2.0.0 which is incompatible.
torchtext 0.14.1 requires torch==1.13.1, but you have torch 2.0.0 which is incompatible.
torchaudio 0.13.1+cu116 requires torch==1.13.1, but you have torch 2.0.0 which is incompatible.
fastai 2.7.11 requires torch<1.14,>=1.7, but you have torch 2.0.0 which is incompatible.
Edit: It seems to works fine anyways

triton pre-release updated and 2.0.0 released.
change
!pip install -q --pre triton
to
!pip install -q triton

I changed it to "!pip install -q triton" but I get the same error. The training itself is working.

use this
!pip install -q xformers=="0.0.17.dev476"
!pip install -q triton=="2.0.0.post1"

Temporary fix until colab officially updating pytorch to 2.0 https://github.com/googlecolab/colabtools/issues/3503


Add flow run retries with new infrastructure

If flow run infrastructure fails and the flow run crashes, the flow run should be able to be resubmitted to the infrastructure and executed again. In contrast to https://github.com/PrefectHQ/prefect-intel/issues/5, this would require the agent to submit a new job. This retry mode may be desired for non-crash exceptions as well, although it may not be in scope for the first implementation.

#5 was implemented to fulfill the work item instead.


Add and Parse Emojis struct.

Well, I still want to setup logging to a file or stderr or something. I'm sure that's the right way to go about doing it :)  But, I do like that printJSON function!  Makes it really easy to read.


N64 emulators not working on RG351V

Describe the Issue (If applicable)
Roms located on 2nd SD card.
If I select eitheir emulator for N64, I can't launch any game, it goes back to ES after the loading screen. However I am able to load games directly from Retroarch and Retroarch32 (it will start the ParallEI N64 core).
It works on RG351P final build though...
How can the issue be reproduced? (If applicable)
Load any .n64 or .z64 rom on the second SD card, try to launch a game from EMulationStation.
What device are you using?
RG351V
What version of ArkOS are you on?
ArkOS 1.7 20210515 build

I just loaded theArkOS 1.7 05152021 build and ran the switch to sd2 process within options/advanced section and was able to load Blast Corps (.n64) and Mario Kart (.z64) without issue in all of the available emulators including the standalone ones from sd2 (/roms2/n64) .  Be sure you've done the following:

Switch to SD2 from the options/advanced section
Not using a non formatted SD that was used in another distro like 351Elec or stock as their folder structures are different.

Thanks,


Improve CUPS-Create-Local-Printer

Add the following improvements to CUPS-Create-Local-Printer:

Update PPD creator to support finishings-col-database and create FinishingTemplate attribute
Update IPP backend to support FinishingTemplate attribute (and finishings-col)
Update PPD creator to download icon file and place somewhere publicly visible. (or add to create_local_printer)

The finishing stuff was implemented in:
[master c088652] Add support for finishings and finishings-col.finishing-template.

Now we just need to add support for printer icons.

Not adding icons.


How do DLCs play a role in this protocol?

Was just reading through the project and had some questions I was curious about
My understanding is that Alisha is locking her sats into a DLC which is essentially backing the rUSD using a 1x short. When Alisha burns her rUSD, the oracle then creates the signatures that allow her to unlock the sats in the DLC. Is this understanding correct?
Who is the counterparty for the DLC that Alisha is entering? Are they required to store their funds in the DLC until someone decides to burn their rUSD?
Is Alisha the only person that can burn? Or every time rUSD is transferred, does the DLC also need to be transferred to a new person doing a 1x short? Transferability of DLCs requires both parties to be online which seems like a big problem. Also if you're just transferring the DLC, why not just use the 1x short DLC in the first place?
What about the liquidation case? What if the Bitcoin price decreases dramatically, causing Alisha's counterparty in the DLC to be liquidated, or there not being enough capital to cover the rUSD? Does someone need to come and burn rUSD?
Perhaps I'm misunderstanding something?

Hi  Matthew,
Thanks for checking out this project and for the great questions.
I’ll answer your questions first then provide context:

My understanding is that Alisha is locking her sats into a DLC which is essentially backing the rUSD using a 1x short. When Alisha burns her rUSD, the oracle then creates the signatures that allow her to unlock the sats in the DLC. Is this understanding correct?

The initial thought didn’t account for a 1x short. In this case Alisha wouldn’t be the one burning the rUSD, it would be the Oracle or any entity or peer that could exchange the rUSd for fiat (i.e. CashApp, Strike, Lightning ATM Operators).

Who is the counterparty for the DLC that Alisha is entering? Are they required to store their funds in the DLC until someone decides to burn their rUSD?

In this case the counterparty is the Oracle or a Network of trusted peers or entities. The funds would not necessarily need to be stored in the DLC. In this case Alisha exchanged her sats for rUSD and can spend the rUSD like fiat with whoever accepts it.
It doesn’t necessarily guarantee that she can redeem her rUSD for the same amount of sats. What is stored in the DLC is the proof that sats were exchanged for rUSD.

Is Alisha the only person that can burn? Or every time rUSD is transferred, does the DLC also need to be transferred to a new person doing a 1x short? Transferability of DLCs requires both parties to be online which seems like a big problem. Also if you're just transferring the DLC, why not just use the 1x short DLC in the first place?

After Alisha has acquired her rUSD there’s no exchange of DLC with others, the rUSD are transferred using the Taro protocol and all the information about the asset is stored there.
Some context to clarify, the original idea was more aligned with Galoy’s Stablesats initiative, only using Taro as the protocol and the Oracle would be a Stablecoin issuer.
After working on it it seems that minting the rUSD every time there’s an exchange is problematic, since like you pointed out, who will burn (redeem) the rUSD if the Oracle disappears. So now we are looking at a USDc scenario where the issuer of rUSD has to guarantee that it’s 100 % backed by US Treasury Bills, or some sort of exchange that would guarantee the rUSD could be exchange, maybe something like Block’s TBD will prove useful here
In extreme cases like Black Swan or forced liquidation event, to be honest, I don’t have a solution that is completely decentralized, perhaps with the use of Discreet Log Contract for Difference (DLCFD) like the folks at Sub Red Bits did would be the way to go, and different mechanisms could be written for corner case, meaning in the event of a Black Swan that forces the Oracle not be able to fulfill the settlement, the DLC after some time or action would then allow for a new transaction that enables a new party to settle the contract to access the locked sats.
Would love to hear your thoughts?

Closing this for now. @matthewjablack Hope your questions were answered, feel free to comment if there's any other questions or concerns.


Guarantee capture name uniqueness

Generate Unix Timestamp of capture date and append to the capture_name, to guarantee uniqueness.

HI @TesfayKidane, i noticed some imports missing on this pull request (calendar, date).
I would suggest maybe a simpler random identifier for the capture names, how about the following pseudocode:
import uuid
capture_uuid = str(uuid.uuid4())

You can then append capture_uuid to the capture names (lines 85,95)

closing, please feel free to submit another pull request based on my suggestions above.


Add Snippets

Add snippets for autocompletion. This could either be done as vscode snippets or in the language server.  Here are relevant snippets from the Raku version: https://github.com/bscan/RakuNavigator/blob/master/snippets/rakuSnippets.json

Closing this for now as I have no plans to implement. If anyone is interested, I'd accept pull requests. It would be better done in the language server as opposed to vscode snippets. I believe vscode snippets can't be turned off with settings, which could frustrate some users.


playlists

This major feature is a set of these individual features:

save current queue in memory as a playlist
view list of playlists currently stored
load a playlist into active queue

@IanWalston should i close cuz its done?


ODM Timeout. . .

nmhydro[CodePlex] I'm curious if there is an estimated functional size limit on the ODM in SQL Server. My db is currently at 40+ million measurements and ~12GB in size.
nbsp
At the moment all queries timeout, even with SQL timeout set to 0. A second smaller db, ~1.2GB, on the same server works fine so we are pretty sure its not a server issue. Our database guru, loosely associated with the project, suggested additional indexing.
nbsp
Has anyone run into this timeout problem on large databases and if so, what is the solution? Are there any tested ODM indexing scenarios that we could implement without reinventing the wheel?
nbsp
You can check out the site at http://nmhis.unm.edu
nbsp
Excuse any runtime errors you find, I'm still trying to work out glitches in the assorted web.config files. The Rio Grande ET project times out, the ET Wells run fine and actually work pretty fast.
Thanks,
Stephen B

csebranek[CodePlex] Hi-- was this issue ever resolved? I'm having the same problem with our web service, too. How do I go about clustering the result together?
Thanks,
Chad

valentinedwv[CodePlex] can we get access to it, or an ftp site to get a look at it?
For the wells, Looks like some series have 100k values.
It may need to have some custom indexing, to cluster the result together. You might need to manage the series rather than manage by data value
I'm seeing error with both endpoints (clicking on the WSDL links)


added upgrade event for http2 websockets

Changes
Re-add support for proxied websockets by passing the upgrade event to the routing. Its not the most elegant solution
Testing
adding a websocket route works after this change
Docs
fixed regression.

Yea forgive me if I'm wrong (it's been a while since I've looked at this) but we already have 'upgrade' handling in hmr-server-engine.ts. Shouldn't http2 already be using that?

Yea forgive me if I'm wrong (it's been a while since I've looked at this) but we already have 'upgrade' handling in hmr-server-engine.ts. Shouldn't http2 already be using that?

Yes and no. The upgrade event in hmr-server-engine.ts is, as far as I can tell, for snowpacks own connection to the client for hot module replacement.
The event is never passed to the routes and ends there if its not for the hmr

Yes and no. The upgrade event in hmr-server-engine.ts is, as far as I can tell, for snowpacks own connection to the client for hot module replacement.
The event is never passed to the routes and ends there if its not for the hmr

Hey @JackD83, so sorry for the delay on reviewing this! We're definitely interested in providing this functionality, but we'd like the API to be a bit more explicit for using sockets with configured routes. If you're still interested in working on this, would you mind updating your PR to add a new upgrade method (in addition to dest) on a RouteConfigObject? We would then call matchedRoute.upgrade(req, socket).


MIP1: Equihash PoW support

MIP1: Equihash PoW support
Note additional dependency on libsodium.
Retire Skein for Equihash using BIP9 version bit 3.
Todo
Test compatibility with existing mining software.

This should help with mining testing: skein deactivates and equihash activates starting block 1 on testnet.
MIP1Height can be set to 0 to test activation.


Fix Tagged Enum Bigint Bug

Closses: #30
Sorry for the late reply. I have gotten very busy with school in the last week. This should fix the tagged enum issue by adding an option for big_ints in the deserialize any function. I have also added a test case to match. Do you have any suggestions about the comment regarding u64's?

Also sorry for the bad git log. It will be fixed if I do another PR

Also sorry for the bad git log. It will be fixed if I do another PR

I think you can just do git rebase.

I think you can just do git rebase.
I tried but I am having a hard time due to the merges. I can either create a new PR or they will just be squashed when this PR gets merged

I tried but I am having a hard time due to the merges.

There shouldn't be any conflicts. Just do interactive rebase and delete all the commits that are already on master.

Fix released in 0.4.3.


[24.05] python312Packages.notebook: 7.2.0 -> 7.2.2

Description of changes
fixes https://nvd.nist.gov/vuln/detail/CVE-2024-43805

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[x] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review reveals no new failures, macos 12 x86_64

Can't find the commits you're referencing as cherry-pick sources in github. Private commits?

Thanks for checking. I have cherry-picked the correct commits.


Be able to customize some timeouts for openshift auth

fixes: https://github.com/kiali/kiali/issues/5650

molecule tests updated to test this new enhancement - openshift-auth-test and config-values-test


AMD card support?

As an owner of a Radeon 7900 XTX, I'm wondering if this project could be made to support AMD cards too. The problem is the xformers dependency which does not support AMD cards. Does Open-Sora-Plan use any nVidia-only features?

It do not need to install xformers. I think it is ok in AMD card, but I do have this env to test. You can test and report some info here.

Why is it declared as a dependency then, here? Also why are all the dependencies pinned to specific versions, rather than the minimum version? If you want to provide a pinned "this worked for us" list of dependencies, then the usual procedure for that would be to provide a requirements.txt which pins the versions of direct and transitive dependencies.
I also kind of wonder why the project needs something like pydub as a dependency, when this project does not even claim to produce audio?

It looks like you already have a proper requirements.txt, here. So you don't need to pin exact versions in pyproject.toml too.

Digging deeper, it looks like you just dumped everything currently in your virtualenv onto the dependencies list, instead of listing the libraries OpenSora actually needs. I'm trying to untangle the mess, will keep you posted.

From a cursory search, these are the third party libraries actually directly imported by OpenSora:

accelerate
altair
basicsr
bs4
colorlog
decord
deepspeed
diffusers
einops
ftfy
gdown
gradio
imageio
lcalib (NOT declared as a dependency, NOT on the PyPI, can't even find it on Google!)
mmcv (NOT declared as a dependency!)
numpy
omegaconf
opencv-python
packaging
peft
pillow
timm
transformers
torch
torchvision
torch_npu
tqdm
wandb

Additionally, many of these imports are only needed for training, not inference, so they should be moved to an extra, so as not to make users install dependencies they don't need.


[EFR32] Update README.md - add section to explain how to flash pre-built bootloader

Add section to explain how to flash EFR32 boards pre-built bootloader

@lboue please apply restyler patch from the restyler CI results or run ./scripts/helpers/restyle-diff.sh

@lboue please apply restyler patch from the restyler CI results or run ./scripts/helpers/restyle-diff.sh
Done with commit 8dedf97.


Include images in markdown export.

Hey, great tool. Thanks for sharing it.
Would it be possible to include markdown for the images attached to the toots ?
Example : https://thread.choomba.one/markdown?url=https%3A%2F%2Fpouet.chapril.org%2F%40arthurzenika%2F112077075342540066 in the web view, we can see the images, but not in the markdown version
That could be an option if this is not useful to most ?

The markdown version can probably have links to them - or you'd like to have image contents encoded there too?

The two solutions would be nice. The first one fits better my first workaround to copy a thread content to a blog (as described in https://github.com/GetPublii/Publii/issues/1425)
I don't see how the second would work, you would base64/mime encode the content ?

Right, the images can be base64 encoded and you'd have one markdown with everything, perfectly portable.
That however sounds like an overkill, its not meant to be a backup tool after all.
Keeping image links seems to be the most fitting

Fixed in b0b6981


Allow marker size to be altered

At the moment, markers look quite small at larger visual sizes - they don't seem to automatically scale fantastically.
Add PBI visual options to increase marker size.

Done in this commit
Would be good to enhance with some limits as the scale is not intuitive (good values between about 0.1 and 0.25).
Would be good to add further options to fine-tune marker placement (or some simple top/right/left/bottom options to start with).


Add example for excluding all methods in an assembly

It's useful to be able to exclude an entire assembly (for example, acceptance tests) that should not be included in live unit testing. I don't know of the ways to do it in the other test systems but with xUnit you can use:
[assembly: AssemblyTrait("Category", "SkipWhenLiveUnitTesting")]
It took way too much googling on bing to find this solution, so it would be nice to have it included here since this is where people start to look.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3113c2af-d97e-7b35-17ce-c675c3dff889
Version Independent ID: b716c4af-d92b-cb3b-8af0-1b3ada479ac0
Content: Live Unit Testing - Visual Studio
Content Source: docs/test/live-unit-testing.md
Product: visual-studio-windows
Technology: vs-ide-test
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

@maxcalvin -- Max, thank you for your feedback and providing an example.
@rpetrusha -- Ron, please look into his example.

Thanks William, after raising the issue I went and had a glance at the other test frameworks in the example, and thanks to their code being open source on Github I could see that their attributes were tagged as applicable to assemblies.
So I raised a PR with an update adding examples for assembly blocking based on those finds, but I've only checked the xUnit version. No worries if the PR is rejected just trying to contribute a little.
Cheers!


explain how to enable heapster on minikube

The docs which ask user to see if heapster is running,
this commit adds explanation of how you can enable heapster
on minikube Kubernetes cluster.

This change is

@surajssd One comment. Otherwise LGTM.

@steveperry-53 done!

@surajssd :wave: I made two tiny changes for wording. LGTM! :shipit:

@zacharysarah np :+1:


distrobox: init at 1.2.13

Motivation for this change
Things done

Built on platform(s)

[X] x86_64-linux
[X] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Duplicate of #160251

@fabaff Thank you for catching that. I assumed it was not implemented yet, and clearly I was wrong. Closing PR.


needs an import assertion of type

version 0.2.3
anchor build
solana program deploy xxx.so
then anchor test will error,how to solve?
yarn run v1.22.17
warning package.json: No license field
$ /Users/xiangjie/code/defi/solana/anchor/tests/bpf-upgradeable-state/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 1000000 tests/bpf-upgradable-state.ts
TypeError: Module "file:///Users/xiangjie/code/defi/solana/anchor/tests/bpf-upgradeable-state/tsconfig.json" needs an import assertion of type "json"
at new NodeError (node:internal/errors:372:5)
at validateAssertions (node:internal/modules/esm/assert:82:15)
at defaultLoad (node:internal/modules/esm/load:24:3)
at ESMLoader.load (node:internal/modules/esm/loader:407:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:326:22)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:345:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:304:34)
at async Promise.all (index 0)
at ESMLoader.import (node:internal/modules/esm/loader:385:24)
at importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
at formattedImport (/Users/xiangjie/code/defi/solana/anchor/tests/bpf-upgradeable-state/node_modules/mocha/lib/nodejs/esm-utils.js:7:14)
at Object.exports.requireOrImport (/Users/xiangjie/code/defi/solana/anchor/tests/bpf-upgradeable-state/node_modules/mocha/lib/nodejs/esm-utils.js:48:32)
at Object.exports.loadFilesAsync (/Users/xiangjie/code/defi/solana/anchor/tests/bpf-upgradeable-state/node_modules/mocha/lib/nodejs/esm-utils.js:103:20)
at singleRun (/Users/xiangjie/code/defi/solana/anchor/tests/bpf-upgradeable-state/node_modules/mocha/lib/cli/run-helpers.js:125:3)
at Object.exports.handler (/Users/xiangjie/code/defi/solana/anchor/tests/bpf-upgradeable-state/node_modules/mocha/lib/cli/run.js:374:5)

Run command
yarn add ts-mocha

I had same error. but I could finally test after hitting the above command.

@Aoi1011 do we need to add ts-mocha to project template?

I just ran into this error too. Running yarn add ts-mocha resolved it. Comparing yarn.lock before and after, it looks like ts-mocha needed to get bumped from v8.0.0 to v10.0.0

Despite doing yarn add ts-mocha, I'm still getting this error. Oddly enough, the anchor test command was working previously


Bug in translation - Locale not working

Hello, that cool but ... i've a bug.
what about this ?
"I discovered that locale does not seem to affect the format output, and added a test for it.
The root cause is not passing the component's locale down to the date-fns format function. Would you accept a PR if I modified formatDate to also accept a locale? Several components would also have to know about the locale as a result.
This PR is just the test.
Reviewed by misha at 2021-12-14 05:09"
When i put this on my component locale=".." that not work for 'it' or 'eu' etc... that a bug.
I try to use scope #header but i can't acces to month traduction. I can translate the days but not the months.
Thank for help

Would you accept a PR if I modified formatDate to also accept a locale

Sure

Closing, the locale is indeed passed, if you need to use language-specific keys, not just numbers, you would need to import locale package from the date-fns locally and provide it as described here


[Feature] Custom breadcrumb for Treemap

What problem does this feature solve?
Hello.
I have been creating a treemap chart in my application and wanted to create a custom breadcrumb (that is clickeable just like the original echarts treemap breadcrumb, as in, you can go back and forth, drill down, drill up, etc, just by clicking in a member within the breadcrumb). Issue is that I can't seem to be able to dispatch the action to drill etc basically I can't find a solution to implement this custom click that performs the same action as the original breadcrumb would.
What does the proposed API look like?
Perhaps something along those lines
chart.on('click', 'breadcrumb', function (params) {
// get the dataIndex of clicked node
})
// this would select the node or basically an action that does same as breadcrumb does when it is clicked
chart.dispatchAction({
  type: 'treemapSelectNode',
  dataIndex: (index of selected node)
});

something to experiment with
myChart.on('click', 'series', function (p) {
  if (p.selfType=='breadcrumb') {
    // get the dataIndex of clicked node
    console.log(p.nodeData.name+' '+p.nodeData.dataIndex)
    myChart.dispatchAction({
      type: 'select',
      dataIndex: p.nodeData.dataIndex
    });
  }
})

something to experiment with
myChart.on('click', 'series', function (p) {
  if (p.selfType=='breadcrumb') {
    // get the dataIndex of clicked node
    console.log(p.nodeData.name+' '+p.nodeData.dataIndex)
    myChart.dispatchAction({
      type: 'select',
      dataIndex: p.nodeData.dataIndex
    });
  }
})

thanks for the reply. i try to dispatch that action but it doesn't change anything in my chart, regardless of dataIndex value i pass.

D:


Drag Drop: disable shifting on target droplist and enable replacing

Feature Description
Looking at multiple droplists enable to drag one item from droplist 1 to droplist 2. After dropping item 1 on item 2,  switch position instead of shifting all items to the next position.
Use Case
What we now did is just added this to every droplist:
 (cdkDropListDropped)="drop($event, indexRow)"
In this 'drop' function we made 2 situations, either transferArrayItem() or moveItemInArray()
This just moves the items inside the droplist or moves them from one droplist to another. This all works. The downside is though, while you are dragging an item from droplist 1 to droplist 2, you see all the items in droplist 2 shifting a position to the right (When horizontal orientated). While our code says in the background to just switch places.
After the code is done, the shifted items all go back to their original places.

any update on above issue?

It's been marked as P4, which means: Low-priority issue that needs to be resolved
https://github.com/angular/components/labels?q=p4
It will get attention one day probably.


potentially put file chunk in a different bucket

The current logic is checking the available bucket before putting every file chunk into bucket as below code,  then potentially some chunks will be put in a different new created bucket when the bucket is full during the uploading, right? why not reserving the space when the file info is created, then keep putting all chunks in the same bucket? @gabrielnic
public func putFileChunks(fileId: FileId, chunkNum : Nat, fileSize: Nat, chunkData : Blob) : async () {
    let b : Bucket = await getEmptyBucket(?fileSize);
    let _ = await b.putChunks(fileId, chunkNum, chunkData);
  };

Hi, I'm already doing that, but when the file info is first created, not when uploading chunks.
https://github.com/gabrielnic/motoko-cdn/blob/b580dcaddd0c8832c111f50b984d65cc0cd2fe7c/src/backend/Container.mo#L136

s full during

yes, just don't understand why still call "await getEmptyBucket(?fileSize);" when put chunks.

Well because I don't know exactly the canister id so I need to get it somehow. Otherwise I will have to pass the canister to the front-end once the file info is created and pass it back which is not ideal and don't want to rely on the front-end for that.

Well because I don't know exactly the canister id so I need to get it somehow. Otherwise I will have to pass the canister to the front-end once the file info is created and pass it back which is not ideal and don't want to rely on the front-end for that.

thanks for explanation.  I am trying to add one more state for mapping file to canister,
private let _fileIdToBaseket : HashMap.HashMap<FileId, Principal> = HashMap.fromIter(_fileIdToBasketState.vals(), 100, Text.equal, Text.hash);
by doing this:

get canister id by fileid

// let b : Bucket = await getEmptyBucket(?fileSize);
          let bid = _fileIdToBaseket.get(fileId);
          switch(bid){
            case(?bid){
                let r =  do ? {
                    let b : Bucket = (await getBucket(bid))!;
                    let _ = await b.putChunks(fileId, chunkNum, chunkData);

                    ?1;
                  };

                  #ok(1)
            };
            case(_){
              #err("Can not find the bucket by fileid:" # fileId)
            }
          }

fetch file without canister id needed in the frontend:

 // get file info
  public func fetchFileInfo(fileId : FileId) : async ?FileData {
    let cid = _fileIdToBaseket.get(fileId);
    switch(cid){
      case(?cid){
        do ? {
          let b : Bucket = (await getBucket(cid))!;
          return await b.getFileInfo(fileId);
        }
      };
      case(_){
        null
      }
    }

  };

Hmm, well not sure I follow your logic. I mean each file already knows the canister ID so not sure you need this line  let cid = _fileIdToBaseket.get(fileId);
The logic is the following:

Once you create the file info return all the info not the just the id including the canister ID.
use the received canister ID and pass it to the backend to upload the chunks.

The problem is even if you know the canister id you still need to fetch it so even if you pass it you still need the logic the fetch it from Array.find<?CanisterState<Bucket, Nat>. Yes I can see the advantage that the call to get the bucket won't be async.  So I might refactor that.
If that's all please close this ticket.


registration failed in nushel 0.91.0

I got this error:
Error:   × Error getting signatures
   ╭─[source:1:1]
 1 │ register /home/kira/.cargo/bin/nu_plugin_net
   · ────┬───
   ·     ╰── Plugin failed to decode: data did not match any variant of untagged enum PluginOutput

Can't look at this today, will have time to fix this Friday. Thanks for reporting

@oraoto got to it -- thank you. Pushing updates to cargo rn


WIP verify

https://github.com/ddddddO/gtree/issues/199

Codecov Report
Patch coverage: 30.76% and project coverage change: -1.71 :warning:

Comparison is base (3e12a66) 89.39% compared to head (291e8ee) 87.69%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #204      +/-   ##
==========================================
- Coverage   89.39%   87.69%   -1.71%
==========================================
  Files          18       20       +2
  Lines        1066     1105      +39
==========================================
+ Hits          953      969      +16
- Misses         82      105      +23
  Partials       31       31

Impacted Files
Coverage Δ

simple_tree.go
79.01% <26.66%> (-11.90%)
:arrow_down:

pipeline_tree.go
85.45% <28.57%> (-8.30%)
:arrow_down:

pipeline_tree_verifier.go
40.00% <40.00%> (ø)

simple_tree_verifier.go
40.00% <40.00%> (ø)

... and 2 files with indirect coverage changes

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


out of core for geometry

right now i have a pretty large scene with a lot of geometry (around 9 billion) but gpu compute is not working then i tried it with out of core and it still didn't render cpu compute works fine i think out of core for geometry migth be fixing the issue. and i am aware that this probably wont help me but it might help someone else.

Geometry can already be stored out of core, see the section "List of OoC buffers" here: https://forums.luxcorerender.org/viewtopic.php?f=5&t=2102#p22174

got it