Made rounding in convert_image_dtype for numbers close to zero

Fixes https://github.com/tensorflow/tensorflow/issues/48701
That issue already was fixed by https://github.com/tensorflow/tensorflow/pull/49868
But after merging all changes were overwritten in https://github.com/tensorflow/tensorflow/commit/56ab2308f72da337865cf765a1844ed9e990d02e#diff-a5a22434f0c18768fc2e10c0e0420ac6f111a5802f67e3df54f155bfefc7094f and now issue raises again

Any update on merging this PR?

I'm not familiar with this code, so I'm probably not the right person to review it.
But it looks like the original change was automatically rolled back because it caused a test in this file to fail: https://github.com/tensorflow/tensorflow/blob/v2.8.0/tensorflow/compiler/tests/image_ops_test.py.  (Unfortunately, since it was rolled back several months ago, the logs from the failed test aren't available anymore.)

@rohan100jain Can you please review this PR ? Thank you!

@rohan100jain Can you please review this PR ? Thank you!

Hi @rohan100jain Can you please review this PR ? Thank you!

Hi @jsmeredith Can you please review this PR ? Thank you!

Hi @jsmeredith Can you please review this PR ? Thank you!

@shkarupa-alex have you addressed the compiler test failure?

@cantonios , i don't see any test failures

Hi @cantonios Can you please assist on above comments from @shkarupa-alex. Thank you!

Hi @shkarupa-alex Can you please check @cantonios's comments and keep us posted ? Thank you!

Hi @shkarupa-alex Any update on this PR? Please. Thank you!

I'm not sure how to fix that, due to different behavior with CPU and GPU.
Current tests work well with CPU. But with GPU fail with error (difference in 1 unit for some values).

The issue comes from rescaling between dtypes
When using multiplication with inverse scale GPU and CPU ops produce different results.
Here is a short example:
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import gen_image_ops

def convert_image_dtype(image, dtype, saturate=False, invscale=True, name=None):
    cast = tf.cast(image, dtype)

    if invscale:
        return tf.math.multiply(cast, 1. / image.dtype.max, name=name)
    else:
        return tf.math.divide(tf.cast(image, dtype), 255.)

def adjust_saturation(image, saturation_factor, invscale=True, name=None):
    flt_image = convert_image_dtype(image, tf.dtypes.float32, invscale=invscale)
    adjusted = gen_image_ops.adjust_saturation(flt_image, saturation_factor)

    return adjusted

def test(invscale=True):
    x_shape = [2, 2, 3]
    x_data = [0, 5, 13, 54, 135, 226, 37, 8, 234, 90, 255, 1]
    x_np = np.array(x_data, dtype=np.uint8).reshape(x_shape)

    saturation_factor = 0.5
    y_data = [7, 9, 13, 140, 181, 226, 135, 121, 234, 172, 255, 128]
    y_np = np.array(y_data, dtype=np.uint8).reshape(x_shape)

    x = tf.constant(x_np, shape=x_shape)
    # x = tf.cast(x, 'float32') / 255.
    y = adjust_saturation(x, saturation_factor, invscale=invscale)
    y_tf = y.numpy()
    print(y_tf[0, 1, 1] * 255.)

print('With inv scale')
with tf.device("/cpu:0"):
    test()
with tf.device("/gpu:0"):
    test()

print('\nWithout inv scale')
with tf.device("/cpu:0"):
    test(invscale=False)
with tf.device("/gpu:0"):
    test(invscale=False)

and it's output:
With inv scale
180.50001204013824
180.49999684095383

Without inv scale
180.49999684095383
180.49999684095383

You should change the test so it is not so sensitive to these numerical perturbations - essentially, avoid results that are expected to be at X.5 when math+rounding is involved.

Hi @shkarupa-alex Can you please check @cantonios's comments and keep us posted ? Thank you!

Hi @shkarupa-alex Any update on this PR? Please. Thank you!

Hi @shkarupa-alex Any update on this PR? Please. Thank you!

Hi @shkarupa-alex  I'm going to go ahead and close this PR, because it seems to have stalled. If you're still interested in pursing this (and responding to my comments), please feel free to reopen! Thank you for your contribution!


TypeError: Cannot read property 'slice' of undefined

I'm getting this error using the addon.
Any workaround for this ? I'm using ember-cli 3.0.0

@mcand I'm really not sure, without more info. Can you please elaborate on how you are using the addon and where the error occurs?

@rwwagner90, I have just installed the addon as it's in the install instructions. In the view I tried the basic:
{{ember-flatpickr
  allowInput=false
  altFormat='Y-m-d'
  altInput=true
  altInputClass='my-alt-input'
  clickOpens=true
  date=null
  dateFormat='M/D/Y'
  defaultDate=defaultDate
  defaultHour=12
  defaultMinute=0
  disable=datesToDisable
  disableMobile=false
  enable=datesToEnable
  enableSeconds=false
  enableTime=true
  flatpickrRef=flatpickrRef
  hourIncrement=1
  inline=false
  locale='ru'
  maxDate=maxDate
  minDate=minDate
  minuteIncrement=5
  mode='single'
  nextArrow='>'
  noCalendar=false
  onChange=null
  parseDate=false
  placeholder='Choose a Date'
  prevArrow='<'
  shorthandCurrentMonth=false
  static=false
  time_24hr=false
  weekNumbers=false
  wrap=false
}}

In the console log I get this about slice. I tried to pass a date as well but I'm prompted with the same error. Is there any project of example for me to look the code ?

Can you please paste the stack trace from the error?
Yes, the dummy app has examples https://github.com/shipshapecode/ember-flatpickr/blob/master/tests/dummy/app/templates/application.hbs


Required Ruby version conflict for 6.2.0

Hello!
I'm attempting to upgrade the version of this gem to use the latest version (6.2.0).  Our application is on ruby version 2.1.10.
The issue that I'm running into is that on RubyGems, 6.2.0 says the required Ruby version is >= 1.9.3 but has a dependency to http ~> 3.0.  This currently attempts to install http 3.3.0 which requires Ruby 2.2 and yields this message during bundle update:
Installing http 3.3.0
Gem::RuntimeRequirementNotMetError: http requires Ruby version >= 2.2. The current ruby version is 2.1.0.
An error occurred while installing http (3.3.0), and Bundler cannot continue.
Make sure that `gem install http -v '3.3.0'` succeeds before bundling.

If I rollback to try version 6.1.0 the gem will install just fine with ruby 2.1.
I've also noticed that version 6.1.0 has a required Ruby version of >= 2 on RubyGems but 6.2.0 has only >= 1.9.3
Since http 3.1+ has Ruby 2.2 as a requirement, should this gem should also have Ruby 2.2 as a requirement for version 6.2.0 and beyond?
Please let me know if you need more information or clarity.  I'm also willing to submit a Pull Request to fix this if that would help.
Thanks for all your work on this gem over the years!

Hi, I'm going to close this issue because I just realized it was still open and it is no longer relevant. 😄


VALI/src/TC/src/CudaUtils.cpp:32 CUDA error: CUDA_ERROR_NOT_INITIALIZED initialization error

Hi,
I use VALI in a torch training task.
Here's my test code(need to modify the video's url):
import PyNvCodec as nvc
import numpy as np
import torch
import os
import random
from torch.utils.data.distributed import DistributedSampler
from torch.utils.data import DataLoader

def pynv_read_video(pyDec, frame_indice, gpu_id):
    # GPU-accelerated converter
    pyCvt = nvc.PySurfaceConverter(
        pyDec.Format(),
        nvc.PixelFormat.RGB,
        gpu_id=gpu_id
    )

    # Colorspace conversion context
    cc_ctx = nvc.ColorspaceConversionContext(
        pyDec.ColorSpace(),
        pyDec.ColorRange()
    )

    # GPU-accelerated Surface downloader
    pyDwn = nvc.PySurfaceDownloader(
        gpu_id=gpu_id
    )

    # Raw decoded Surface
    surf_src = nvc.Surface.Make(
        format=pyDec.Format(),
        width=pyDec.Width(),
        height=pyDec.Height(),
        gpu_id=gpu_id
    )

    # Raw Surface, converted to RGB
    surf_dst = nvc.Surface.Make(
        format=nvc.PixelFormat.RGB,
        width=pyDec.Width(),
        height=pyDec.Height(),
        gpu_id=gpu_id
    )

    # Numpy array which contains decoded RGB Surface
    frame = np.ndarray(
        dtype=np.uint8,
        shape=surf_dst.HostSize())

    video = []
    for idx in frame_indice:
        seek_ctx = nvc.SeekContext(seek_frame=idx)
        success, details = pyDec.DecodeSingleSurface(surf_src, seek_ctx=seek_ctx)

        # Convert tot RGB
        success, details = pyCvt.Run(surf_src, surf_dst, cc_ctx)

        # Copy pixels to numpy ndarray
        pyDwn.Run(surf_dst, frame)

        res_frame = np.reshape(
            frame,
            (pyDec.Height(), pyDec.Width(), 3))

        t = torch.Tensor(res_frame)
        video.append(t)
    video = torch.stack(video)
    return video

class MyDataset(torch.utils.data.Dataset):
    def __init__(self, path):
        """ init """
        self.rank = int(os.environ["LOCAL_RANK"])
        self.samples_num = 10
        self.path = path

    def read_video(self, num_frames):
        """ read video """
        # GPU-accelerated decoder
        pyDec = nvc.PyDecoder(
            self.path,
            {},
            self.rank,
        )
        total_frames = pyDec.NumFrames()
        # video_fps = pyDec.AvgFramerate()

        frame_indice = np.linspace(0, total_frames - 1, num_frames, dtype=int)
        video = pynv_read_video(pyDec, frame_indice, self.rank)
        return video

    def __getitem__(self, index):
        """ get item """
        try:
            video = self.read_video(10)
            return video
        except Exception as e:
            print(f"Error {e}")

    def __len__(self):
        """len"""
        return self.samples_num

def seed_worker(worker_id):
    """ seed worker """
    worker_seed = 1024
    np.random.seed(worker_seed)
    torch.manual_seed(worker_seed)
    random.seed(worker_seed)

url = "/path/to/test.mp4"
my_dataset = MyDataset(url)
sampler = DistributedSampler(
    my_dataset,
    num_replicas=8,
    rank=my_dataset.rank,
    shuffle=False
)
my_dataloader = DataLoader(
    my_dataset,
    batch_size=1,
    sampler=sampler,
    worker_init_fn=seed_worker,
    drop_last=False,
    pin_memory=True,
    num_workers=8,
)
dataloader_iter = iter(my_dataloader)
video = next(dataloader_iter)
print(my_dataset.rank, video.shape)

It send me an error: VALI/src/TC/src/CudaUtils.cpp:32 CUDA error: CUDA_ERROR_NOT_INITIALIZED initialization error.
How to fix it? Thanks!

Hi @tianyan01
Can you run samples or unit tests ?

Hi @tianyan01
Can you run samples or unit tests ?

I can run unit test.But when I wrap it with torch's dataset and dataloader, it can't run.

@tianyan01
Most probably something is going on with the script, not the VALI itself. E. g. torch does something to CUDA runtime.
The only thing I can recommend you is to simplify your app step by step until you are able to run it and isolate the culprit.
In order to find and fix the VALI bug I need an MVP, not he whole user script.
P. S.
Please don't use PyDecoder.Seek method to shuffle the frames.
Seek is costly operation. Just decode Surfaces one by one and shuffle your video list container.

@RomanArzumanyan
Thanks!


Add the possibility to hide the menu bar icon

I, and probably like me a lot of people who appreciates your this useful app, let Pock.app opened at all times, and once It has been customised i can't see the utility to let showed the menu bar icon. I don't know for other people but my menu bar is really crowded and hiding icons that I don't use at all is great. But I can do It for Pock. Do you think It could be useful?

You can try Dozer

I think it is better to leave that icon there since it can always be useful to close/customize Pock easily.
You can try Dozer, as @L1cardo suggested.

@pigigaldi This should be a minimum standard option in all macOS apps that add menu bar items! Don't impose things on users… especially forcing them to install another app in place of a simple preference. Pock can be easily launched with Spotlight or Alfred to access preferences… there is no need for another menu bar item, if the user doesn't want it.
Appreciate this app though, and I'll likely be contributing PRs in future…

@pigigaldi This should be a minimum standard option in all macOS apps that add menu bar items! Don't impose things on users… especially forcing them to install another app in place of a simple preference. Pock can be easily launched with Spotlight or Alfred to access preferences… there is no need for another menu bar item, if the user doesn't want it. This issue should be reopened.
Appreciate this app though, and I'll likely be contributing PRs in future…

Actually this is just about one line of code, but we may need to wait until @pigigaldi finish the widget migrations


[PAN-2968] Add explicit instructions on where to execute proposals.

PR description
Add explicit instructions to execute the call to vote to remove/add signers and validators on the  majority of signers/validators.
Fixed Issue(s)
PAN-2968


Use correct function to filter master alias

Fixes #116

I can confirm that this fixes #116
Thanks for tracking it down @aleksdikanski


the models not has auto download features

i run the server used all options , but the models was not start downloading , then i downloaded them using transformer also not loaded any help or walk through

Thank for your report, we will check it as soon as possible

We will not load the model until you call the API in frontend. Do you call the api in frontend or fastapi page?

Close this issue for not replying. Feel free to reopen it.


Makes xscreensaver freeze

Since I installed sct, I get problems with xscreensaver. When the screensaver is on, about 1/3 to 1/4 of the times when I move the mouse nothing happen. I see the mouse cursor moving, but can't type my password and/or go back to where I was. I have to reboot the computer. That's a shame because I really like sct and redshift is not working correctly as well. Is there any way I can resolve this issue?

@balz666 say:

and redshift is not working correctly...

;)))

@balz666 , do you still run into this issue?
If so, do you think any specific pattern causes this? It could be a bug in xscreensaver or an X11 API (that sct uses).


openvpn_xorpatch

hello
i don't know how work with this site but your .sh is perfect, i want suggect you add another option for it
so plese check the link, that version not work but your work perfect the problem is after one day use the server become block in china, we have many chinese friend ready to donate and you update your shell code and add one option for china to support xor
https://github.com/clayface/openvpn_xorpatch
thanks

The script uses precompiled OpenVPN packages, so using this patch is not impossible.


Question: Intellisense for Laravel helper methods

Versions:

ide-helper Version: v3.1.0
Laravel Version: 11.28.1
PHP Version: 8.3.11

Question:
When defining a macro, let's say for the Response class:
// app/Providers/AppServiceProvider.php

use Illuminate\Support\Facades\Response;

Response::macro('api', function (?string $message = null, ?array $data = null, int $status = 200, array $headers = []) {
    return Response::json(
        data: ['message' => $message, 'data' => $data],
        status: $status,
        headers: $headers
    );
});

is it possible to get intellisense when using? :
return response()->api() // Undefined method 'api'

This also occurs when macroing Auth too:
use Illuminate\Support\Facades\Auth;

Auth::macro('admin', function (): ?Admin {
    /** @var Auth $this */
    return auth('admin')->user();
});

auth()->admin() // Undefined method 'admin'

PS: The method works as expected, just the intellisense cannot pick the defined macro
PS2: Even auth()->user() which is a standard method is not being found

+1. I was wondering about the exact same thing. I'm assuming one could use the 'interfaces' option in the ide-helper config to add docs to the interface. But I haven't been succesfull in making it work.

@Tjaitil same here, couldn't make interfaces option work

My interrim solution is to make an custom ide-helper file with the macro docs and then include it in extra section in the ide-helper.config
<?php

namespace Illuminate\Contracts\Routing {
       interface ResponseFactory
       {
       /**
         * @param  array<int|string, mixed>  $data
         * @param  array<int, \App\ValueObjects\GameLog>|\App\ValueObjects\GameLog>  $messages
         * @param  int  $code
         * @param  array<int|string, mixed>  $headers
         * @param  int  $options
         * @return \Illuminate\Http\JsonResponse
         */
              public function jsonWithGameLogs($data = [], array|\App\ValueObjects\GameLog $messages = [], $code = 200, $headers = [], $options = 0);

       }
}

/** In ide-helper.config */
`    /*
    |--------------------------------------------------------------------------
    | Helper files to include
    |--------------------------------------------------------------------------
    |
    | Include helper files. By default not included, but can be toggled with the
    | -- helpers (-H) option. Extra helper files can be included.
    |
    */

    'include_helpers' => true,

    'helper_files' => [
        base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
        base_path().'_macro_ide_helper.php',
    ],

At least in my setup (intelephense and larastan) this extra doc file is providing everything that is needed.
Perhaps not the ideal solution, but works while we wait for another answer :)


Compability for jam and profile pages.

The jam pages and profile pages don't have some of the color present in project pages #1

Description container for:

Project page

.formatted_description

Profile page

.user_profile

Jam page

.jam_content

Devlog

.post_body

Impossible


[HUDI-0000] DO NOT MERGE Fix incr errors new reader

Change Logs
test test test
Impact
test test test
Risk level (write none, low medium or high below)
none
test test test
Documentation Update
test test test
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

@hudi-bot run azure

@hudi-bot run azure

@hudi-bot run azure


Add commands in LMCTL to retry, rollback and cancel intent process.

An intent process invoked by lmctl can subsequently be canceled, retried, or rolled back via the CP4NA GUI or its APIs. To support the rollback case, lmctl supports the processState, of the intent processes invoked by lmctl, being Rolling Back (as a transient state) or Rolled Back (as a terminal state).
cancel, retry or rollback can also be invoked using the following lmctl commands respectively, where the ID value is the processId value of the intent process.
lmctl rollback process [OPTIONS] ID
lmctl rollback process [OPTIONS] ID
lmctl rollback process [OPTIONS] ID

Fixed by #164


Th09

The replay details is sort of a mess, and doesn't really say much. But the replays themselves don't have that much info anyway. Importantly, final score is not saved, and so we might actually for the first time need to let users enter their own score and have rep_score fields be different from the actual score (and show it on the frontend).

I would prefer to merge this now, and create an issue for adjusting the frontend + proper score submission, if that's fine with people


Create tests for qiskit.tools package.

We don't have tests for all the great stuff we have in qiskit.tools.
We need to address this ASAP :)
Probably the entire package needs a relocation/restructuring into the SDK, but let's discuss this in another thread.

Currently, this is a coverage information of the files in qiskit/tools:

Module
statements
missing
coverage

qiskit/tools/apps/fermion.py
173
173
0%

qiskit/tools/qcvv/fitters.py
49
49
0%

qiskit/tools/visualization.py
825
817
1%

qiskit/tools/apps/optimization.py
240
171
29%

qiskit/tools/qi/qi.py
207
99
52%

qiskit/tools/qi/pauli.py
155
38
75%

qiskit/tools/qcvv/tomography.py
310
74
76%

qiskit/tools/file_io.py
86
17
80%

Shall we open individual issues for fermion (@amezzac), qcvv (@chriseclectic), visualization, optimization(@amezzac), andqi (@chriseclectic)?

I just noticed that matplotlib on MacOS is hell, so the numbers for visualization are off. The rest should be correct.

Individual issues created. The file location structure is been discussed in #268


Fix the wrong logic in LSVMBUS case

The LSVMBUS.sh didn't count the cores correctly, and didn't verify the scsi_counter.
Before:(I print the expected cores to make it clearer)
Thu May 21 20:40:57 2020 : Network driver is spread on all 8 cores as expected 8 cores.
Thu May 21 20:40:57 2020 : Storage driver is spread on all 17 cores as expected 16 cores.

After:
Thu May 21 20:37:25 2020 : Network driver is spread on all 8 cores as expected 8 cores.
Thu May 21 20:37:25 2020 : Storage driver is spread on all 16 cores as expected 16 cores.

But this script doesn't work correctly in some VM families, such as Lv2, and M-series.
In Lv2, the scsi_count is the same as vCPU number if <=64.
In M128m, the vCPU is 128 and the expected scsi_count is 64, but actually it is 32.
I didn't verify it in more VM sizes. But I think we need to make it clear and correct the steps of this case in different VM families.
Thanks!

The core count has the limit, and what you see is correct in M-series VM. Also, I believe it is correct in Ls_v2 VM. I think we should put that limit there.

I opened an issue to track the Lv2 and M208m issue (#821 )
This PR is only to fix the logic issue.

Hi @juhlee-microsoft ,
Thanks! And I have 2 questions here:

How should we count the scsi controller cores in M-series? Do you know the formula here?
How to get the VM size in the shell script? May I curl it from metadata?

Hi @juhlee-microsoft ,
Thanks! And I have 2 questions here:

How should we count the scsi controller cores in M-series? Do you know the formula here?
How to get the VM size in the shell script? May I curl it from metadata?

I do not know of the first question but know the second one. We carry the VM size or its info from PS script to constants.sh file.

Thanks @juhlee-microsoft !
Would you mind merge this PR to just fix the logic issue, and I open a new PR to add the vm size limitations? If I understand it correctly it needs a new windows script to pass the VM size parameter to constants.sh.


Calling an external API with Guzzle and passing data to Angular

I've been trying to port a pure Laravel site/app over to this project and having a little trouble with some parts, likely due to my lack of knowledge.
In my Laravel controller
class HomeController extends Controller
{
    // home page junk
    public function getGit() {
      // use Guzzle to get GH info
      $client = new GuzzleHttp\Client();
      $res = $client->request('GET', 'https://api.github.com/user', [
          'auth' => ['/*USERNAME*/', '/*PASSWORD*/']
      ]);

      $gitBody = $res->getBody();

      return response()->json($gitBody, 200);
    }
}

in my angular component.js
class GetGitCommitsController{
    constructor(API, $log){
        'ngInject';

        this.API = API;
        this.$log = $log;

        this.gitStuff = this.API.all('git').getList().$object;
        $log.log(this.gitStuff);
    }

    $onInit(){

    }
}

and my routes.php
// Home Routes...
    $api->post('git', 'HomeController@getGit');

any advice? I'm geting 405 Method Not Allowed

$api->post('git', 'HomeController@getGit');
should be a get method

@flick36 that did the trick; makes perfect sense that it would be a get now that you point that out. thanks for the help! really digging this project, btw @jadjoubran ! thanks for all the hard work


[plot] Create item event to the plot

sigItemAdded(item)
sigItemAboutToBeRemoved(item)

It's the first step to clean up our widgets from the concepts of kind and legend.

+1
Just add sig prefix to be consistent with other plot signals

Good point


UI forms as JSON

goes with associated pull requests in wex 155 and SAM-private

I like the json formatting of the UI files. How will we diff callback and equation changes in the future? Seems like it might be more difficult as a single string with \n values.

That's a great point. The best recommendation for this seems to be using an array of strings, in which each element of the array is a line: https://stackoverflow.com/a/52557585
If we want to go that route I would recommend completing the review of this format and migrating to that format as a separate issue, so we're a little less locked down on forms changes for the patch.

This is really exciting, but I think it needs a little more polish prior to merging. For example: why are there both "Save" and "Save as JSON" buttons in the IDE?

I feel like there should only be one save button at merge time. Or is there a reason we'll need both for a while?

Why am I not seeing these additional buttons when I build the branches?

This is really exciting, but I think it needs a little more polish prior to merging. For example: why are there both "Save" and "Save as JSON" buttons in the IDE?

I feel like there should only be one save button at merge time. Or is there a reason we'll need both for a while?

Why am I not seeing these additional buttons when I build the branches?

Oh, whoops. I had an older version of SAM 504 checked out.

Clicking out of a UI form in the IDE registers a diff in the json without hitting save or making any changes. Diff software cannot find any differences in the files but the file is shown to be modified.

This looks good from the UI.
I also tested loading all configs with this LK script:
techs = list_technologies();
for (t=0;t<#techs;t++)
{
	fins = list_financing(techs[t]);
	for (f=0;f<#fins;f++)
	{
		outln(techs[t] + ', ' + fins[f]);
		configuration(techs[t],fins[f]);
	}
}

The script works in Windows, but on Linux (Mint 21.1), when I run the script, I get errors like:

Solar Resource Data: "could not find library:SolarResourceData" when loading the Solar Resource Data
Marine Wave Resource Time Series: "Error: 'PacWave East' is not available in the library. Choose a different item."
Wind Resource File: "Error: 'WY Cheyenne_2006' is not available in the library. Choose a different item."

But the forms load fine when opening a case by hand, so not sure it's worth pursuing at this stage.

Clicking out of a UI form in the IDE registers a diff in the json without hitting save or making any changes. Diff software cannot find any differences in the files but the file is shown to be modified.

Clicking out of a UI form in the IDE registers a diff in the json without hitting save or making any changes. Diff software cannot find any differences in the files but the file is shown to be modified.

Maybe we can write a better code versioning system than github that sometimes defaults to date and time changes instead of actually comparing file contents...

This looks good from the UI.
I also tested loading all configs with this LK script:
techs = list_technologies();
for (t=0;t<#techs;t++)
{
	fins = list_financing(techs[t]);
	for (f=0;f<#fins;f++)
	{
		outln(techs[t] + ', ' + fins[f]);
		configuration(techs[t],fins[f]);
	}
}

The script works in Windows, but on Linux (Mint 21.1), when I run the script, I get errors like:

Solar Resource Data: "could not find library:SolarResourceData" when loading the Solar Resource Data
Marine Wave Resource Time Series: "Error: 'PacWave East' is not available in the library. Choose a different item."
Wind Resource File: "Error: 'WY Cheyenne_2006' is not available in the library. Choose a different item."

But the forms load fine when opening a case by hand, so not sure it's worth pursuing at this stage.

Where are you running SAM from to get this script error? Did you make from the SAM-private build_linux folder and run from the installation folder? I am not seeing this issue on MacOS or on CentOS7.

The diff for changing lines looks great. The diff for adding a new line, however, is quite messy:

Is there a reason it has to be an object with line numbers as opposed to an array?

Arrays should work now with the two str replace…. Both objects and arrays
had the same escaping sequence issue.
I can make the change and test new lines and update the pull request.
On Thu, Feb 2, 2023 at 10:02 AM Brian Mirletz @.***>
wrote:

The diff for changing lines looks great. The diff for adding a new line,
however, is quite messy:
[image: image]
https://user-images.githubusercontent.com/5530592/216391880-46013a91-cc5b-4c1f-a601-0a2de8f85550.png
Is there a reason it has to be an object with line numbers as opposed to
an array?
—
Reply to this email directly, view it on GitHub
https://github.com/NREL/SAM/pull/1338#issuecomment-1414071905, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABRSQBYHDFW4DFLKPI5OVJLWVPSD7ANCNFSM6AAAAAAULAHD64
.
You are receiving this because you were assigned.Message ID:
@.***>

After updating to RepidJSON array of strings, single line changes and new line added changes in AA Widgets results in desired diff viewing:


Fix auth

Apparently it doesn't work.

Add a nice menu for it
Cache the token in local storage

Password has been temporarily removed.
However, I think it should still be possible to optionally put a password there (with some warnings), so this works on all servers.
Still important to make this work
In some contexts (for example if you host the proxy yourself), it's completely secure to have the password in the browser
in a public demo context in can be ok with some warnings imo

Some more information
yggdrasil:

/auth
/join
both of those need to be called
One option could be to ask the user to run 2 fetch command in a https://authserver.mojang.com/ tab
It's very clunky but it works

Another option is to go through the proxy. We can't simply use net-browserify because yggdrasil uses node fetch which uses https which doesn't use net
Options:

use a socks5 or https proxy and pass that to yggdrasil
make yggdrasil use net somehow so we can just keep using net-browserify for this too

For microsoft all of this is a bit different but also doesn't solve everything. But anyway most accounts are still yggdrasil

doing a completely custom auth proxy is probably the best way in this proxy path

https://github.com/Rob--W/cors-anywhere
https://wiki.vg/Protocol_Encryption#Authentication
https://wiki.vg/Authentication

https://github.com/PrismarineJS/prismarine-web-client/pull/154 works but insecure
idea from circuit10: forge an https request in the browser, send it with websocket, then directly send that request to the mojang server without decrypting
that way the proxy does not see the password
may solve the security issue.
However it does not solve the "this ip looks like a vpn" issue

https://bugs.mojang.com/browse/WEB-2776?jql=text ~ "Cors"
The best solution is for mojang to fix this.
There's a small chance there is some hope if we provide a motivating use case by having pweb-client have some success

Hello, would this be any easier now that Microsoft is migrating accounts to their auth?

Would it be possible to use OAuth for migrated accounts? It's somewhat more secure as it doesn't give out a password.

using microsoft auth is required for some account yes, but it doesn't make things any easier as multiple APIs necessary for the process (eg xboxlive ones) do not return CORS headers

@y2k04 last time we checked there was no way to use it without cors headers but if you want to try, that would be great to hear otherwise

Couldn't a https://github.com/Rob--W/cors-anywhere proxy be set up?

yes

Couldn't a https://github.com/Rob--W/cors-anywhere proxy be set up?

You could use Heroku or AWS to host this service?

Don’t think hosting is an issue, passing credentials through our servers poses several security issues though

Don’t think hosting is an issue, passing credentials through our servers poses several security issues though

Then why not use a handshake protocol? (Comparing values sent by the client to the server and vice versa, and encrypting it with client specific codes which are randomly generated)

Not sure I understand, but we can’t implement anything MC server side

Not sure I understand, but we can’t implement anything MC server side

Just like the proxy, but we use that to authenticate with Microsoft

The way to do authentification is handled by Mojang, we cannot change anything about that
Yes we could setup an auth proxy. It would likely get banned quickly by Mojang but I guess if we want to try i could do it

It would likely get banned quickly by Mojang

Probably only if there were a lot of incorrect logon attempts. The proxy can implement its own rate limiting if that's a concern.

I was more thinking of something like what https://github.com/ttalvitie/browservice/ does.
From: Pandapip1 @.>
Sent: Sunday, 30 January 2022 12:48 AM
To: PrismarineJS/prismarine-web-client @.>
Cc: Y2K4 @.>; Mention @.>
Subject: Re: [PrismarineJS/prismarine-web-client] Fix auth (#27)
It would likely get banned quickly by Mojang
Probably only if there were a lot of incorrect logon attempts. The proxy can implement its own rate limiting if that's a concern.

Reply to this email directly, view it on GitHubhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPrismarineJS%2Fprismarine-web-client%2Fissues%2F27%23issuecomment-1024925217&data=04|01||7785731ec0054e8ecc4a08d9e33664c9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637790645041119154|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=0bD49sFyuiV9wYMNXlC4lBvJFQkIyo%2BnM2ikP%2FLlkb4%3D&reserved=0, or unsubscribehttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAHD7XF2FX6MQZIK6C7T76U3UYP43JANCNFSM4YNEEUOA&data=04|01||7785731ec0054e8ecc4a08d9e33664c9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637790645041275420|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=13I%2BKN6G6IOtqs7fqoCl5S5Aj2%2FcewCwswdVq3daKWw%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01||7785731ec0054e8ecc4a08d9e33664c9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637790645041275420|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=FoEu5hZXDQUbkBxcfO%2FaJnkSBGyQThy2NmFsnGeoN7A%3D&reserved=0 or Androidhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01||7785731ec0054e8ecc4a08d9e33664c9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637790645041275420|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=Rpr950I%2FKqzSSt5WlUDOK3tiJEAJMDx3KIYEd0lge%2Fo%3D&reserved=0.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Maybe we could use a browser extension instead of a proxy.
Could be similar to this.

if there was a good extension we could at least provide the alternative to the user yes

What about a JavaScript implementation of this? (It is incredibly easy to create a Azure App Registration, I've already created a Test App to attempt to learn how the auth works 😀)
https://github.com/OpenXbox/xbox-webapi-python

Heck, even this!
https://github.com/Microsoft/libHttpClient

Try it ;)
Also see https://github.com/PrismarineJS/prismarine-auth


Fix performance when we add and remove many connections.

The dead connections were never removed from the internal vector holding them, leading to bad performance in connect() and in fire().

If you scroll up in the code you will see that the old existing comment even says:
// create a new targets vector (will be filled in with
// the existing and still active targets within the lock below)
Alas all targets were added to the target vector and not only the still active ones.


Capacity Reservation, VM and VM ScaleSets (high priority)

Is your feature request related to a problem? Please describe.
This feature request is for introducing a new resource called Capacity Reservation. Today Azure provides capacity for the virtual machines in most scenarios and provides availability SLA for virtual machines once deployed in that capacity. But we currently lack features to provide SLA for the capacity availability prior to VM/VMSS deployment. In recent days, we saw the need for this capacity Reservation more due to the increasing capacity needs due to Covid-19 like scenarios and it will be useful if we can provide a feature for Customers to be able to reserve the capacities for critical workloads that couldn’t handle the delayed downtime.
Full Problem statement and design information is here:
[https://microsoft.sharepoint.com/:w:/t/ComputeVM/EaUwaQbU3NJGq4U38tiJjHUBqwAhWov9SUSa8rR6RSGQkw?e=HzTeQ3 ](Design documentation)
Describe the solution you'd like
This resource will be used by customers to create and reserve the on-demand capacity slots for future deployments to avoid allocation failures due to out-of-capacity issues for any critical deployments.
Describe alternatives you've considered
Customers can always try to reserve clusters ( which is expensive and can be overwhelming for small-scale customers). Also, they can use the spot VMS which is low priority VMs and can be evicted at any time due to other deployments.
Additional context
Complete Swagger changes for this feature request are below
Capacity Reservation, Single VM:

https://github.com/Azure/azure-rest-api-specs/pull/15058
[https://github.com/Azure/azure-rest-api-specs/pull/15158](Patch changes)

VMSS :
https://github.com/Azure/azure-rest-api-specs/pull/15070
Resource Provider
Compute Resource Provider
Minimum API Version Required
2021-04-01
Target Date
We would like to for Public Preview in Early August and planning for the GA in September.
we are on a tight deadline.

Compute

@hari-bodicherla Hi, may I ask why https://github.com/Azure/azure-rest-api-specs/pull/15158 has been closed? Is it because it was replaced by https://github.com/Azure/azure-rest-api-specs/pull/15058?
By the way, since this requirement seems to be a big workload, we can't catch up with the sprint to complete it. Will the next sprint release this requirement in 09-03 meet your expectations?

@hari-bodicherla Hi, may I ask why Azure/azure-rest-api-specs#15158 has been closed? Is it because it was replaced by Azure/azure-rest-api-specs#15058?
By the way, since this requirement seems to be a big workload, we can't catch up with the sprint to complete it. Will the next sprint release this requirement in 09-03 meet your expectations?

Hi @zhoxing-ms , The 15058 is main PR and then we had to make a minor change which is accomplished in another PR from Theodore, so the 15158 is closed.
Regarding the release date on 09-03, if we can make it sooner than that that would be great since we are planning GA by end of august. But if this is next sooner date, then we can try to get the exception on CLI. thanks

@hari-bodicherla Sorry, our latest next official release time is 09-07 (I made a mistake before). If some customers need it urgently, maybe we can provide a private package to let users try it first

@hari-bodicherla Since the Swagger changes too much in the PR https://github.com/Azure/azure-rest-api-specs/pull/15058 , could you provide the specific commands and parameter related designs that need to be supported?

@zhoxing-ms  we need to support the PUT, Patch, Delete, Get and List operations for the Capacity Reservation while we need to support the Put and Get operations for VM , VMSS and VMSS VM resources to expose this new CR profile.
Please refer the below powershell PRs covering the commands

https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/967 - Cmdlets for CR, single vm
https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/987 -  added missing cmdlets design in the above PR
https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/957 - VMSS Changes.
Please let me know if you need more information.

@hari-bodicherla Hi, I see that PowerShell commands also support capacity reservation in the following commands:

New-AzVMConfig  [-CapacityReservationGroupId ]
New-AzVmssConfig [-CapacityReservationGroupId ]

Because there is no corresponding commands in CLI, so we don't need to implement this case, right?

@hari-bodicherla By the way, the command design in PowerShell does not include VM signature, so how should the CLI commands be designed?
az vm capacity reservation create/udpate/list/show or az capacity reservation create/udpate/list/show, which command design is better?
Or do you have more suggestions on command design?

@hari-bodicherla By the way, the command design in PowerShell does not include VM signature, so how should the CLI commands be designed?
az vm capacity reservation create/udpate/list/show or az capacity reservation create/udpate/list/show, which command design is better?
Or do you have more suggestions on command design?

@zhoxing-ms the capacity reservation is an independent resource and can be created/deleted/updated/list/show with out any relation to VM. Capacity reservation also can be associated with vmss. So if you are asking for the capacity reservation crud operation cli cmd, I think the az capacity reservation create/udpate/list/show, is better one.
Thanks

@hari-bodicherla Hi, I see that PowerShell commands also support capacity reservation in the following commands:

New-AzVMConfig  [-CapacityReservationGroupId ]
New-AzVmssConfig [-CapacityReservationGroupId ]

Because there is no corresponding commands in CLI, so we don't need to implement this case, right?

@zhoxing-ms  yes we don't need to implement this in cli if there are no corresponding cmdlets for VM and vmss config . this is used normally to reuse the VM/vmss config by creating it once and then reusing  in multiple update and create cmdlets for powershell.

https://github.com/hari-bodicherla/azure-rest-api-specs/blob/606074d0c2248882599854f9e8bed38fa9fc00e1/specification/compute/resource-manager/Microsoft.Compute/stable/2021-04-01/compute.json#L9163-L9168
@hari-bodicherla Hi, I would like to confirm that it means that the parameters zones can only pass in one value? If so, why is it defined as an array type?

I see the command New-AzCapacityReservation of PowerShell has designed these two parameters:

[-CapacityToReserve] <Int32>: I haven't seen it's definition in Swagger or SDK. What is it's function? Do we need it in CLI?
[-WhatIf]: our team is not responsible for the support of what-if related features at present. Does this parameter also need to be supported at present?

https://github.com/hari-bodicherla/azure-rest-api-specs/blob/606074d0c2248882599854f9e8bed38fa9fc00e1/specification/compute/resource-manager/Microsoft.Compute/stable/2021-04-01/compute.json#L4323-L4327
I'd like to ask whether the parameter $expand can be passed into virtualMachineScaleSetVMs/$ref and virtualMachines/$ref at the same time? Or are they mutually exclusive?

https://github.com/hari-bodicherla/azure-rest-api-specs/blob/606074d0c2248882599854f9e8bed38fa9fc00e1/specification/compute/resource-manager/Microsoft.Compute/stable/2021-04-01/compute.json#L9163-L9168
@hari-bodicherla Hi, I would like to confirm that it means that the parameters zones can only pass in one value? If so, why is it defined as an array type?

we need to mention it as array type since this is the restriction from ARM side that zones should be always array even we allow single zone.

https://github.com/hari-bodicherla/azure-rest-api-specs/blob/606074d0c2248882599854f9e8bed38fa9fc00e1/specification/compute/resource-manager/Microsoft.Compute/stable/2021-04-01/compute.json#L4323-L4327
I'd like to ask whether the parameter $expand can be passed into virtualMachineScaleSetVMs/$ref and virtualMachines/$ref at the same time? Or are they mutually exclusive?

They are not mutually exclusive, customer can add both to get the VM references as well as vmss VM references in the response.

@hari-bodicherla I see the command New-AzCapacityReservation of PowerShell has designed this parameter:
[-WhatIf]: our team is not responsible for the support of what-if related features at present. Does this parameter also need to be supported at present?

This is present default in almost of all the existing cmdlets for resources, if the cli is not supporting this param, then that is fine since it is not supported for existing ones, so customer should not be expecting this param

@hari-bodicherla Hi, at present, the URL of CLI request for REST is /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}
Why does the current service return this error?

{"error":{"code":"InvalidResourceType","message":"The resource type could not be found in the namespace 'Microsoft.Compute' for api version '2021-04-01'."}}

'x-ms-correlation-request-id': '9c432ac6-78d0-4c7f-9762-1bc476fa57a2'

@hari-bodicherla Hi, at present, the URL of CLI request for REST is /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}
Why does the current service return this error?

{"error":{"code":"InvalidResourceType","message":"The resource type could not be found in the namespace 'Microsoft.Compute' for api version '2021-04-01'."}}

'x-ms-correlation-request-id': '9c432ac6-78d0-4c7f-9762-1bc476fa57a2'
Sorry for the delay, I was oof for some time.
Which Region are you trying to reach when you are trying to trigger the operation on Capacity Reservation @zhoxing-ms . Few validations regions need additional AFEC flags that needs to be whitelisted for subscription to get CR resource support in that region. I just checked the operation details for above correlation id and it was found that operation is triggered at South east asia region. we currently support Capacity reservation in Canary ( central us euap, east us2 euap), west central us and south central us regions only. also subscription need to register to the AFEC flag "Microsoft.Compute/CapacityReservationPreview" to be able to access this CR resource.

@hari-bodicherla  So at present, only some regions on the white list support capacity reservation, right? Will this restriction affect users in other regions after the release of CLI? Can service provide more friendly and specific error information?

also subscription need to register to the AFEC flag "Microsoft.Compute/CapacityReservationPreview" to be able to access this CR resource.
What do we need to do for this?

@zhoxing-ms , Currently we have PR in review to remove the afec flag dependency for prod regions and this will enable customers in all prod users to be able to access the Capacity reservation with out whitelisting to afec. Also we provide specific detailed error information mentioning that subscription is not whitelisted to specific AFEC flag to access the CR resource.

we currently support Capacity reservation in Canary ( central us euap, east us2 euap), west central us and south central us regions only.

Hi, @hari-bodicherla I still have this problem after using the above regions.
Such as: 'x-ms-correlation-request-id': 'e2a31220-c6ca-4250-9e46-a7c0af912833'
What else do I need to do?

e2a31220-c6ca-4250-9e46-a7c0af912833

Yes @zhoxing-ms  Currently the AFEC removal changes are still in PR so you need to whitelist the sub t AFEC to access the CR resource. Please share your subscription, I can help in whitelisting the sub with AFEC

@hari-bodicherla  I'll tell you offline~

@hari-bodicherla This problem has been solved, but there are new problems when creating capacity reservation. please help to have a look~
Request URL:
https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Compute/capacityReservationGroups/{capacity_reservation_group}/capacityReservations/{capacity_reservation}?api-version=2021-04-01

Requst body
{
    "location": "centraluseuap",
    "tags": {
        "key": "val"
    },
    "sku": {
        "name": "Standard_A0",
        "tier": "Basic",
        "capacity": 5
    },
    "zones": [
        "1"
    ]
}

Response body
{
  "error": {
    "code": "NotSupported",
    "message": "Capacity Reservation is not supported for VM size Standard_A0."
  }
}

'x-ms-correlation-request-id': '26a15da4-d3ed-4007-b764-b7baf76aedcb'

@hari-bodicherla This problem has been solved, but there are new problems when creating capacity reservation. please help to have a look~
Request URL:
https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Compute/capacityReservationGroups/{capacity_reservation_group}/capacityReservations/{capacity_reservation}?api-version=2021-04-01

Requst body
{
    "location": "centraluseuap",
    "tags": {
        "key": "val"
    },
    "sku": {
        "name": "Standard_A0",
        "tier": "Basic",
        "capacity": 5
    },
    "zones": [
        "1"
    ]
}

Response body
{
  "error": {
    "code": "NotSupported",
    "message": "Capacity Reservation is not supported for VM size Standard_A0."
  }
}

'x-ms-correlation-request-id': '26a15da4-d3ed-4007-b764-b7baf76aedcb'

@zhoxing-ms  Currently VMAL VM sizes are only supported for using Capacity Reservation. You can know that by looking at the Get sku response for the VM size and finding the Capacity Reservation Suppported property set to true. you can use for eg AV2  sizes which support the CR

@hari-bodicherla There is a problem when deleting capacity reservations. please help to take a look~
Reuqest URL:
Delete reuqest: https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Compute/capacityReservationGroups/{capacity_reservation_groups}/capacityReservations/{capacity_reservations}?api-version=2021-04-01
Polling request: https://management.azure.com/subscriptions/{subscription}providers/Microsoft.Compute/locations/CentralUSEUAP/operations/4e836e90-0d00-460f-9d1b-7cc5b04e37dc?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2021-04-01
Response body:
{
    "startTime": "2021-08-30T15:00:03.6667668+00:00",
    "endTime": "2021-08-30T15:00:03.7292753+00:00",
    "status": "Failed",
    "error": {
        "code": "InternalExecutionError",
        "message": "An internal execution error occurred. Please retry later."
    }
}

@hari-bodicherla In fact, it will affect our tests, because the check of our tests is case sensitive to the resource ID and resource group name. Moreover, some users may use the returned resource group name to do case sensitive operations, such as using the the parameter --query to accurately search the contents from returned results.
So I think it's better to return the original name than to capitalize it all.

I will triage this scenario with in team and let u know if we need to create a repair item and will share with you. Currently this is how we are returning for other resources like Dedicated host. for some API responses for VM too.

@hari-bodicherla There is a problem when deleting capacity reservations. please help to take a look~
Reuqest URL:
Delete reuqest: https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Compute/capacityReservationGroups/{capacity_reservation_groups}/capacityReservations/{capacity_reservations}?api-version=2021-04-01
Polling request: https://management.azure.com/subscriptions/{subscription}providers/Microsoft.Compute/locations/CentralUSEUAP/operations/4e836e90-0d00-460f-9d1b-7cc5b04e37dc?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2021-04-01
Response body:
{
    "startTime": "2021-08-30T15:00:03.6667668+00:00",
    "endTime": "2021-08-30T15:00:03.7292753+00:00",
    "status": "Failed",
    "error": {
        "code": "InternalExecutionError",
        "message": "An internal execution error occurred. Please retry later."
    }
}

@zhoxing-ms This issue is being fixed in the PR: https://dev.azure.com/msazure/One/_git/Compute-CPlat-Core/pullrequest/5007620 . Thanks for notifying the bug.

@hari-bodicherla May I ask when can this problem be solved?  If it cannot be solved before we release the new version of CLI, does the CLI need to expose the features that VM and VMSs can associate with capactiy reservation group?
At present, this problem will also lead to the problem of circular dependency deletion of resources, which makes users unable to delete all resources under this resource group. I will transfer a related ICM to you. Please help to have a look~


Python interactive window delete last cell output shortcut/button

When you run a python cell using the interactive window, you encounter the common situation where there is an error. The error messaging of python can be really long and if you're trying to run different approaches of your code, this may lead to multiple super long cell outputs in your interactive window. To clean this up without removing your previous good outputs, it requires quite some scrolling and clicking.
This could be mitigated by either adding a shortcut which deletes the last cell or by adding the option to a output cell to delete the cell above.
a very cheap drawing of what i mean:

The Jupyter extension could add this.

you can now select an IW history cell in insiders and use DD or delete to remove the cell, which should improve this workflow

yes, both input and output of the cell are removed (the action can also be undone if focus is in the history view)

Was this removed after the most recent release? After updating my VSCode install just now I seem to not be able to delete cells:

Install versions:

Thanks. Unfortunately the delete-key trick doesn't work for me (also unfortunately I didn't know that trick in the past, so I can't say if that behavior is also a regression)

Unfortunately the delete-key trick doesn't work for me

That's strange - can you check your keyboard shortcuts for Notebook: Delete Cell? There should be an entry from both core and the Extension. Also make sure you don't have focus in the cell input.

Ah sorry! The focus on the cell input was the issue, it works :)

I feel like there are a couple quick ways to do this now:
either click to focus the cell container and press delete/DD to delete the cell.
or with the keyboard with focus in the IW input: ctrl+up -> delete -> ctrl+down
Let me know if additional/different functionality would be better though.


Thermocycler: Pause and Inform User if TC Lid Opened

As a Run App user, I would like to be notified if my Thermocycler's lid is opened unexpectedly during run.
Acceptance Criteria

[ ] If TC lid is opened unexpectedly, pause protocol, notify user that TC lid is open, and inform them that they need to close the lid before continuing.
[ ] User should have option to close lid from Run App (e.g. button in notification dialogue box)
[ ] User should have option to resume protocol if lid is closed

Implementation Notes
There is already (as of PR #3118 ) an interrupt callback to pause the robot with a message. Need to make sure this gets hooked all the way up into RPC so it gets displayed in the run screen

Consider breaking down into BE & FE tasks

Closed in favor of designed extra-protocol TC control in addition to physical safety affordances.


What clients are connected to my service bus?

This page does address the question of "What clients are connected to my service bus?". The summary to the answer given is "we don't know". It would be helpful if guidance were provided to show something about where calls are coming from. We have a live production system that has some clients configured somewhere that are hitting the bus that we cannot account for. Certainly something can be done at the network level that help us to diagnose, yes?

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

ID: a4ea500a-c2a3-ec32-872d-0c32bbe87d13
Version Independent ID: ad47b125-ff7f-6d8f-838e-70180fff6bce
Content: Azure Service Bus frequently asked questions (FAQ)
Content Source: articles/service-bus-messaging/service-bus-faq.yml
Service: service-bus-messaging
GitHub Login: @atikmapari

@GaTechThomas
Thanks for your feedback! We will investigate and update as appropriate.

@GaTechThomas Thanks for reaching out. We don't log the IP address of client receiving and sending the message to service bus logs as this is PI. You can always post your feedback/feature request here.
Unfortunately, right there is no way to identify it as documented. The recommendation for thus is already documented here to Regenerate keys so that all existing clients will fail to authenticate and review Azure role-based access control (Azure RBAC)) settings to ensure that only allowed users or applications have access to the namespace.
As there is no document enhancement we will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Wow, thank you for the super quick response.
Unfortunately we're currently in a state in which changing the keys is not ok - we'll get there, but not quickly. The environment is in scope for PCI-DSS, so it's kindof a big deal to not be able to see where connections are originating from. There must be some way of tracking down this sort of thing. What would Microsoft do for RCA if they had a breach?
Is there any way to use Azure's network tracing capabilities to see details of live connections? We just need somewhere to start.
This feels like a distributed version of Mark Russinovich's "The Case of..." series, but I don't yet have the Azure chops to even get started.
Any guidance would be appreciated, and it feels like it should go into the referenced page.


PHP server failing to start because of brew libpng version

Please follow the general troubleshooting steps first:

[x] Ran brew update and retried your prior step?
[x] Ran brew doctor, fixed as many issues as possible and retried your prior step?
[x] If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

Bug reports:
$ php -v
dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
  Referenced from: /usr/local/bin/php
  Reason: Incompatible library version: php requires version 40.0.0 or later, but libpng16.16.dylib provides version 38.0.0
Trace/BPT trap: 5

I don't really know where to post this but libpng formula should be updated 1.6.23, then it works like a charm.
  url "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.23.tar.xz"
  mirror "http://download.sourceforge.net/libpng/libpng-1.6.23.tar.xz"
  sha256 "6d921e7bdaec56e9f6594463ec1fe1981c3cd2d5fc925d3781e219b5349262f1"

Cheers

Seems like your Homebrew is out-of-date if libpng isn't already that version. We adopted that on Jun 11 2016. I'd try a brew update.

Thanks for your answer Dom but I did, I also removed libpng, php56, cleaned up everything and reinstalled it but it didn't solve the problem.

Sorry but you have not followed the requested steps on the Troubleshooting page
Please follow (all of) these steps and post the information here so we can help you with your problem.
Thanks!

Also post which php, thanks.

I had this same issue.  I fixed it by running:
brew update
brew update
brew upgrade
brew doctor
And fixing everything the doctor told me to fix.  I think the main thing that fixed it was the brew upgrade but might as well fix up everything else.

I guess we can close the issue then ^^

I fixed it by running
brew update brew upgrade libpng


download every time

I just know crank,I try to run a crank demo.but i have a problem ,when i run crank many times in local,it download tools and install sdk every time.I can't understand why?.My network normally cant work do this.its a bad thing.

When launching the Crank Agent (crank-agent) you can give a path to the --dotnethome CLI option. As stated in the help screen of crank-agent, it's the "Folder to reuse for sdk and runtime installs".
Additionally, if you have the .NET SDK already installed on your computer you can pass the folder where it is contained (e. g. C:\Program Files\dotnet\ on Windows).

I added a README in the agent's folder to expose the arguments

--dotnethome

Is there a dotnethome configuration now? I did not find an introduction to this configuration in the documentation.
I tried to add dotnethome, it prompted me to have an error
crank --config /crank/samples/hello/hello.benchmarks.yml --scenario hello --profile local --dotnethome C:\Program Files\dotnet

@zhenlei520 the --dotnethome option is for the Crank Agent only (crank-agent command), not the Crank Controller (the crank command).
You can find its documentation with crank-agent --help or in the source code's README.

Um, thank you very much


changePage problem.

Hi im testing out this plugin and i really like it.
But i just notice one problem, i think i have misunderstood something but i hope someone can help me out here :).
I run jQuery.mobile.changePage( "address.html?id="+String(data), { transition: "slide"} );
and its working fine but my handler dosent get trigged.
My router
var router=new $.mobile.Router({
"/address.html(?:?)?": {handler: "address", events: "s"},
},{
address: function(type, match, ui) { alert("hej"); }
});

Hi,
I'm glad you find it useful ;)
I guess the problem is the regexp, since it starts with "/".
Can you try
 $.mobile.changePage("./address.html?id="... etc?)

to see if it solves the problem?
Cheers

Hm github destroyed the regex, check here insted http://cl.ly/3h1y391S0F1p1Z2E1T3q
I tested to run this jQuery.mobile.changePage( "address.html", { transition: "slide"} ); but its the same result, the page changes correct but no alert.

The regexp is fine, try changing the .changePage line to:
jQuery.mobile.changePage( "./address.html", { transition: "slide"} );

Prefixing the page name with "./" ensures that the regexp will always match.

Yeh i just notice that my page dosent got loaded correctly :)
Thanks for the help and support :), back to developing ;).


⚠ Processors has degraded performance

In 4b6b52f, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 65 ms

Resolved: Processors performance has improved in 94c61f9.


Updating error handling in design goals

Description
Like discussed in the idea #104, we would like to update the Error handling agnostic section in the design goals, and rename it as Explicit builders for better error handling, for recommending the use of builders suffixed by OrThrow or OrNull.
Dependencies
This issue is blocked by the following ones:

[ ] #110.

Checklist

[ ] Update documentation.

We will implement this issue in #263.


ID3v2: Allow for generic conversion of language frames

TagItem can now store a language and description, making it possible to convert all ID3v2 COMM and USLT frames to their generic ItemKey::{Comment, Lyrics} counterparts.
fixes #383

Rustfmt is just falling apart right now.


webview_flutter can't handle http requests/websites! It just shows blank pages

I'm running into an issue using webview_flutter with HTTP websites and I think I know what is causing it. I can't tell what happens in the code but I think the problem are HTTP requests. It seems like webview_flutter only works with HTTPS and not with HTTP. That is a huge problem since not every website supports https and webview_flutter doesn't even show any error dialog or throws an error. It just shows a blank page without any additional information.
import 'package:flutter/material.dart';

import 'package:webview_flutter/webview_flutter.dart';

/*

For the WebView:

  - ADD this in ios/Runner/Info.plist
  <key>io.flutter.embedded_views_preview</key>
  <true/>

  - ADD this in pubspec.yaml under dependencies
  webview_flutter: ^0.3.7+1

 */

void main() => runApp(MyApp());

class MyApp extends StatefulWidget{

  @override
  State createState() => MyAppState();
}

class MyAppState extends State<MyApp> {

  var initUrl = "http://www.www-kurs.de/http.htm";

  WebViewController _webController;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        floatingActionButton: IconButton(
          iconSize: 40.0,
          icon: Icon(
            Icons.play_arrow,
            color: Colors.orange,
          ),
          onPressed: handleButtonPressed,
        ),
        body: SizedBox.expand(
          child: WebView(
            javascriptMode: JavascriptMode.unrestricted,
            initialUrl: initUrl,
            onWebViewCreated: (WebViewController _tmpWebController) {
              _webController = _tmpWebController;
            },
          ),
        ),
      ),
    );
  }

  void handleButtonPressed() {
    print('test');
    _webController.currentUrl().then((s) => print(s));
  }
}

Try it yourself if you want to. Just change the initUrl variable to something with https and it works. Use any other http site and it just shows a blank page not even an error or something. If the project doesn't work and shows something with an embedding layer problem, then just read the comment.
The flutter doctor -v output:

[✓] Flutter (Channel beta, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale de-DE)
    • Flutter version 1.5.4-hotfix.2 at ~/opt/flutter
    • Framework revision 7a4c33425d (4 weeks ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at ~/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = ~/Library/Android/sdk
    • ANDROID_SDK_ROOT = ~/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 35.3.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 29.1.3
    • Dart plugin version 182.4999

[✓] Connected device (1 available)
    • iPhone Xs Max • 485A6D48-C8D2-4074-B517-566ED4CD6539 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

• No issues found!

I've got the same issue. All websites in https load, but the ones with http only show blank white page.

I've got kind of similar issue with https://www.manogile.lt/ this website opened with webview_flutter. Background is visible but all texts, login form are missing

I know what causes it. The problem is that iOS blocks by default unsafe http connections. Thats why the problem only appears on iOS devices. The fix is pretty easy:
For the WebView:

  - ADD this in ios/Runner/Info.plist - allows embedded views like webview_flutter
  <key>io.flutter.embedded_views_preview</key>
  <true/>

  - ADD this in ios/Runner/Info.plist - allows unsafe sources like http
  <key>NSAppTransportSecurity</key>
  <dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
  </dict>

  - ADD this in pubspec.yaml under dependencies
  webview_flutter: ^0.3.7+1

That's it! I hope it helps you.

why i setting info.plist my page still white page https was same
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale zh-Hans-CN)
    • Flutter version 1.5.4-hotfix.2 at /DATA/Work/DEV/Dart/Flutter/flutter
    • Framework revision 7a4c33425d (7 weeks ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[!] Android toolchain - develop for Android devices (Android SDK version 26.0.0)
    • Android SDK at /Users/Janly/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    ✗ Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
      To update using sdkmanager, run:
        "/Users/Janly/Library/Android/sdk/tools/bin/sdkmanager" "platforms;android-28" "build-tools;28.0.3"
      or visit https://flutter.dev/setup/#android-setup for detailed instructions.
    ✗ Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • ios-deploy 1.9.1
    ✗ ios-deploy out of date (1.9.4 is required). To upgrade with Brew:
        brew upgrade ios-deploy
    • CocoaPods version 1.7.0

[!] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] VS Code (version 1.35.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.1.0

[✓] Connected device (2 available)
    • iPhone 6 • A7F614B7-8060-46DA-9A36-086B458148C1 • ios • com.apple.CoreSimulator.SimRuntime.iOS-8-3 (simulator)
    • iPhone X • 68B14C1F-D4F5-463F-862E-3BF2FD46E754 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

same issue

I have the same issue here, when I tried to load my website it only shows white screen but when i tried to load Google.com or Facebook.com it worked very well.
This issue only appeared on Android devices with android 10 and up, but devices with Android 9 and lower worked very well.

Just set this in WebView:
javascriptMode: JavascriptMode.unrestricted,


Add K8s operator implementation

This PR adds the initial implementation for the K8s operator.
Most of the files are boilerplate/auto-generated from Operator Framework's hybrid helm operator plugin: https://github.com/operator-framework/helm-operator-plugins
The significant files of note are:

README.md
main.go
controllers/chart_utils.go
controllers/newrelic_controller.go
api/v1alpha1/newrelic_types.go

If this is too unwieldly for review, I can also stage out the PRs so that the initial PR just submits the unedited boilerplate from OperatorFramework.

Going to break this up into more digestible PRs.


Set default values when running locally

This sets FLY_REGION and PRIMARY_REGION to "local" when not running on Fly.io. This is determined by if the FLY_REGION environment variable has been set.
I didn't open an issue to discuss beforehand because it was such a small code change, but I think this change will improve developer experience a lot.

I came here to suggest something similar. I'm currently calling this function before starting my supervision tree:
  defp ensure_fly_region do
    if System.fetch_env("FLY_REGION") == :error, do: System.put_env("FLY_REGION", "local")
    if System.fetch_env("PRIMARY_REGION") == :error, do: System.put_env("PRIMARY_REGION", "local")
  end

I think having this built in to the library would be really nice though.

I like the suggestion! Let me give it some thought.

Changed the approach a bit and did it in a separate PR. Thank you @btkostner and @dnsbty! Loved the suggestions and pre-work! :heart: :purple_heart: :yellow_heart: :blue_heart:

Published in release as v0.1.6


sphinxcontrib-ditaa: init at 1.0.2

Description of changes
Add sphinx plugin to invoke ditaa.

ditaa (nixpkgs.ditaa) renders ascii art block diagrams to image formats like .svg
sphinx (nixpkgs.python3xxPackages.sphinx) generates documentation from .rst text files
sphinxcontrib-ditaa (https://pypi.org/project/sphinxcontrib-ditaa) adds sphinx markup to send a block of text to ditaa for rendering.  Analogous to existing packages such as nixpkgs.python3xxPackages.sphinxcontrib-plantuml.

Executable content comprises about 200 lines of python.
nix package adapted from sphinxcontrib-blockdiag

Things done

Using successfully for sphinx-generated documentation in xo-unit (https://github.com/rconybea/xo-unit),
and user environment in xo-nix2 (https://github.com/rconybea/xo-nix2/flake.nix)

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)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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.05 Release Notes (or backporting 23.05 and 23.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

[x] Fits CONTRIBUTING.md.

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

Your commits are breaking Commit Conventions please rebase.
In your case reword 18ec38b2ca3b1a108d1b07f803ede00a9a0a789a to maintainers: add rconybea and squash 2df67b65a0502ede639d177e77f0ba715db2a69c into 18ec38b2ca3b1a108d1b07f803ede00a9a0a789a and reword 18ec38b2ca3b1a108d1b07f803ede00a9a0a789a to sphinxcontrib-ditaa: init at 1.0.2
Please also change your PR title to: sphinxcontrib-ditaa: init at 1.0.2 as well.

Created new PR reflecting review feedback here: https://github.com/NixOS/nixpkgs/pull/309426


Official Microsoft Graph Go SDK

Hello everyone 👋
Vincent here from the Microsoft Graph SDKs team. I'm reaching out to announce we're working on an official Go SDK, we haven't announced the community preview yet as there are still a number of things we need to work through, but I though I'd reach out to give you an opportunity to provide feedback before anybody else!
A few benefits from this new SDK:

Fluent style APIs to all endpoints of the API
Contains all the models of the API
Is updated weekly to always be in sync with the API
Supports v1 and beta
Relies on Azure identity to provide support for multiple authentication flows (you also can implement your own authentication provider)
Provides middleware for Retry handling and Redirect handling (more to come)
And many more features to come!

As with every pre-previews, we have a list of known limitations we're working through.
We'd love for you to pop by the repos under our org, give it a try, and give us feedback on your experience with this new SDK.

Hi @baywet, thanks for opening this issue and letting us know about work being done on the official SDK. It's great to see that one is being released, however as this is not a feature request or a bug report, I'm going to close this issue for now so that we can concentrate on our open work items.

@baywet Relieving to know you will be supporting both v1 and beta as this has been a bit of a concern of mine especially with how much critical stuff could be considered in beta :)


How to $wa in multiple channel

I've seen the source code, "channel_id" is channel where we do $wa, but "multichannel" only claims for us (not do $wa), so how do we $wa automatically on multiple channel?

It should be the same setting
it turns off rolling normal code and instead creates X coroutines with different channel id's
so just set multirolling to True and type in the all the channel-ids in multiid and it should roll $wa in multiple servers

So, set "Multirollenable" to true. Thank you for your assistance!

Please know that you also have to set rolling to false

i can see it here
if settings["rolling"] != "True" and settings["Multirollenable"] == "True":             await asyncio.sleep(8)             for multichannel in multiids:                 self.loop.create_task(self.bg_task(multichannel))                 await asyncio.sleep(30)


error while running porder for the firrst time

Hei,
I have just installed porder on Mac OSX 10.13.6 with python3.6 but get the error below when running it. Does anyone with more experience know how to fix this?
Thanks for your help,
$ porder
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/porder", line 7, in
from porder.porder import main
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/porder/porder.py", line 5, in
from geojson2id import idl
ModuleNotFoundError: No module named 'geojson2id'

Hi @pmlefeuvre
Can you tell me about how you installed porder? I am running porder on Python 3.6 without any issues

Closing this issue because of inactivity


Bneukom/attribute eval

#52 should be reviewed and merged first.
With this PR we want to add support of evaluating attributes before generation. This is needed for "dependent" attributes (eg if one attribute change results in another attribute value to change as well). To make this possible several small features have been added:

Passing an existing set of attributes to re-evaluate the current attribute values
A simplified concept of user set attributes. Eg if a user changes an attribute value it will not get overwritten when re-evaluating attributes
Resetting attribute values via context menu (which removes their "user-set" status)

Looks good overall. Would be nice, if the standard reset arrow could be used to reset an attribute instead of a custom action.

Thanks. Yes totally forgot about this! I added it with 4425df8 (and was also able to further unify the array and scalar code with it)

Thanks for review! I'll merge it together with #52.


Update vendor for amp-ui

Warning: needs #1054 merged first
Add following packages:

github.com/gorilla/mux
github.com/gorilla/context
github.com/phyber/negroni-gzip/gzip
github.com/urfave/negroni

test

ampmake cleanall build

Close it, rebuild it from master


Added "new" sack items

Might as well add Agarimoo Tongue and rename Enchanted Cocoa Bean to Enchanted Cocoa Beans before this gets merged

Ty, added!


Docker compose error

Hi,
When I try to compose the yml, I do get this error:
(root) Additional property web is not allowed
So far I wasn't able to figure out the issue, so I tried a clean docker installation in a VM as well, but the error stays, All python requirements are fullfilled as well and the most common suggestion was that there is a indentation mistake in the yaml.
For me, it looks fine from that point, but I am far from being an expert in yml files. Also tried different methods to get the yml file (raw download, git clone, copy paste), changes nothing.
I also checked if my docker is okay, I could compose yml for containers without any errors, so I guess this might not be the issue.
Do you have any suggestion?
Best regards
PS: Forgot to mention:
OS: Windows 10 21H2
Python 3.8.5 (via Anaconda)
Docker: v4.12.0

And I fixed it,
didn't saw that the services tag was missing. After adding it docker is composing it

Thank you for pointing this out. I just tried to run the lab book with docker and did not get any error on my PC. Maybe you can write in more detail about how you fixed it so I can include it in the git.

Hi
basically I just added the single tag as shown below (for some reason the code doesn't show the right indentation if I add it as a code, so plain text only):
services:
web:
build: .
environment:
MYENV: Labbook
volumes:
- .:/code
web_migrate:
extends:
service: web
command: python manage.py migrate
web_run:
extends:
service: web
command: python manage.py runserver <IP_ADDRESS>:8000
ports:
- "8000:8000"

Ok, I then also needed the Version. I updated the git accordingly.


There should be a way to use postgres array functions and other functions

Problem
I am migrating my code from sequelize to Prisma.
I want to change the following sequelize query to Prisma query but i can' t find a way to write it other than using a raw sql query.
if (setting.value.data.featured.length) {
sort = [
[Sequelize.fn('array_position', setting.value.data.featured, Sequelize.col('id')), 'ASC'],
['updatedAt', 'DESC']
];
}
There should be a way in prisma to use postgres functions.

Hi @ShubhamMatoliya, thank you for this new feature request. I confirm that currently, the only way of using db-specific functions is relying on raw SQL queries.


Add auto merge

@conda-forge-admin, please add bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/pyimapsync-feedstock#2.