variable weight LinearForm

I am solving a 3D electromagnetic problem with 2D ports on the boundary that have known field distributions but with unknown weights.  The goal is to solve for the 3D field distribution plus the unknown weights at the ports.  A typical boundary value problem with known boundary values leads to the Ax=b problem, for which you have the FormLinearSystem method.  With unknown weights, the problem becomes something like Ax=a1*b1+a2*b2+..._aN*bN, where ai are the unknown weights and bj are known.  Setting one weight to 1, say a1 for discussion purposes, leads to Ax-a2*b2-...-aN*bN=a1*b1.  In matrix form, this could be
[A  -B] [x]  = B [ak]
        [au]

where au are the unknown ai, ak is the known ai, and B is an array where column j equals bj.
To solve this problem, I'm trying to figure out how to use the FormLinearSystem method or its sub-methods to take maximum advantage of MFEM methods.  I don't see a way to do this, though.  Do you have any suggestions?

Hi, @M8kmyday,
This sounds interesting but I have not tried it. I would recommend using FormLinearSystem with all of the ports specified as essential BCs but set the BC values for the ports with unknown weights to zero. This should create a properly altered system matrix and a suitable right-hand-side vector. Next, the tricky part, grab the eliminated matrix using ParBilinearForm::ParallelAssembleElim() (if you're writing a serial app there should be a similarly named method). Multiply this "elim" matrix in front of your B matrix in the left hand side block system and this should complete the first row of the block system.
This would leave you with a rectangular system for which I assume you have a strategy in mind.
Best wishes,
Mark

Thanks.
I can see why you called the ParallelAssemblyElim step "tricky".  I am only able to get a null HypreParMatrix pointer to be returned by the method.  I do not see an example or miniapp that uses ParallelAssemblyElim.  Do you happen to have a code snip that uses it?  I'll dig around in ParallelAssemblyElim and see if I can work out why mat_e isn't being set.

Unfortunately, I don't know of any code examples that use this. As I look more closely now I think I see why it does not work although I do not fully understand the implementation or purpose of ParallelAssembleElim (it clearly doesn't do what I assumed it did).
In serial BilinearForm has an internal matrix called mat_e. In parallel ParBilinearForm::ParallelAssembleElim combines the mat_e matrices from each processor into a single HypreParMatrix. Unfortunately, mat_e is not used in ParBilinearForm::FormLinearSystem, which uses p_mat_e, so it is empty. I believe what you want is p_mat_e but there doesn't seem to be any method to grab this private data.
As a hack you could add a method to ParBilinearForm which returns the pointer p_mat_e. This should allow you to experiment with your formulation. In the meantime the MFEM developers should try to figure out a more permanent solution.

I derived a class and pulled out p_mat_e.  I wasn't able to get my setup working with FormLinearSystem, but that is on me.  In digging through FormLinearSystem and the functions it calls, I worked out how to build what I need doing my own elimination.  So I in effect built my own FormLinearSystem but it is customized to also solve for the unknown weights at the ports.  Thanks for the inputs and tips.


[Missing] Animated football

Blog: https://telegram.org/blog/profile-videos-people-nearby-and-more

Support was added in TDLib 1.6.7.


[sdk] Set experiment in model_version run

Description
This PR clean up the example notebook and fixes the local pyfunc and remote pyfunc clashes
Running the local pyfunc and then deploying to remote MLP raises exception in Merlin sdk
MlflowException: Cannot start run with ID 48edb0102f24433c8914c85905d9b683 because active run ID does not match environment run ID. Make sure --experiment-name or --experiment-id matches experiment set with set_experiment(), or just use command-line arguments

This happen due to the local pyfunc setting an mlflow experiment
And the current sdk assume there is no active experiments prior to running merlin.new_model_version().start() and mlflow will use the default experiment. However after running the local pyfunc, the experiment is set which leads to this exception from the mlflow client
As _active_experiment_id is not None and _active_experiment_id != active_run_obj.info.experiment_id
Since the mlflow experiment and run is created remotely during new_model_version(), the experiment can be set and match.

Modifications
Add set_experiment to already created experiment and run before set_model in sdk/merlin/model.py
Remove duplicated blocks in the note book and add a section to mlflow.end_run() before running remote
Tests
Tested with the sample notebook

[x] Deploying local pyfunc and remote pyfunc on existing model
[x] Deploying local pyfunc and remote pyfunc on new model
[x] Deploying remote pyfunc on existing model

Checklist

[x] Added PR label
[x] Tested locally
[x] Updated documentation

Release Notes
NONE

LGTM, thanks @leonlnj


Switch to FastAPI's public interfaces for route generation

We have had two bugs fixed in 2.0.1 as a result of our use of private interfaces. I am sure that we'll have similar problems in the future. They can be prevented by using strictly fastapi's public interfaces, i.e. router.add_api_route or by just recreating routes by hand.

Switched from get_dependant and get_body_param in #193


Deadline: fix submit_publish_job

Brief description
Fix submit_publish_job
Description
Resolves #4541

I am not particularly fond of this == "maya" logic. Would we will be adding more and more hosts when "renderProducts"/colorspace are implemented for those, or what will be approach there?

@kalisp Yeah, its not a very good solution, but I think we should get back to a working state first then look at making it host agnostic.

Also, this code had broken my tests. It is not adding OPENPYPE_VERSION into environment - but OpenPype.py plugin expecting it. I presume we had to either remove those lines or find different way.

@jakubjezek001 this is outside of fixing colorspace issue. It originates from https://github.com/ynput/OpenPype/pull/4489. Could you check you have an executable in the OpenPype Deadline plugin settings?
@jakubjezek001 @kalisp could you give it another go now?

@jakubjezek001 this is outside of fixing colorspace issue. It originates from https://github.com/ynput/OpenPype/pull/4489. Could you check you have an executable in the OpenPype Deadline plugin settings?

I am having executables in deadline OpenPype plugin, and yeah running it from source. Here is what I am having in there

@jakubjezek001 does this PR work for you for fixing the bug?


Heroku deploy - "User is not logged in" after sign in

I'm trying to deploy SEAN to heroku.
Redis ACL Backend failed to work. As i can see in the last commit it is not a local issue.
I forked SEAN with memory backend and deploy fresh build to thomas-cookbook.herokuapp.com.
I get signin response and immediately redirected back to the sign in form like was never authorized.

angular.js:9893 GET https://  thomas-cookbook.herokuapp.com/api/user 401 (Unauthorized)

But i can see seanjs.herokuapp.com version deployed and working normally.
What can be wrong with  my repo?
Everything works locally.

I checked thomas-cookbook.herokuapp.com and it seems that you have issues with Redis connection as the Redis is used for storing the sessions.
https://github.com/Promnovatsia/temp-github-cookbook/blob/master/config/lib/express.js#L153
Try to connect correctly to Redis.

Thanks. That resolved it.
I have local configs with ENV REDIS_HOST etc. but Heroku Redis provided only REDIS_URL.
After i set it in config explicitly it is started to work as intended.
I have a question about commit that switched to memory backend for module's policy.
What the issue? Why it is required to replace redis backend for acl?

Because someone tried to deploy it on Heroku and it didn't work because of it. I commented the Redis config so you have the option for Redis or memory inside the policy.


About github commit problem

Hi,
We developed an app with yii2 advanced template. When we tried to commit all files to github:
    modified:   vendor/cebe/markdown (modified content)
    modified:   vendor/fzaninotto/faker (modified content)
    modified:   vendor/swiftmailer/swiftmailer (modified content)
    modified:   vendor/yiisoft/yii2 (modified content, untracked content)
    modified:   vendor/yiisoft/yii2-bootstrap (modified content, untracked content)
    modified:   vendor/yiisoft/yii2-debug (modified content)
    modified:   vendor/yiisoft/yii2-gii (modified content)

These files & folders cannot be committed.
I know, they re installing with composer.
But when i tried to composer update or composer install this folders cant be installed. so our project cant run on server.
any idea?
thanks

This is not Yii issue.
Most probably you (or git tool you use) have removed or miss-edited .gitignore file or added some files manually.

We didnt add or remove sth from  swift mailer, markdown, faker, gii and others. we just wrote code and commit.

check record https://github.com/yiisoft/yii2/blob/master/apps/advanced/.gitignore#L19

thank you, @lynicidn  i think this is the solution.


Scrape UUID from event

Added logic to api/sql/fetch_latest.sql that appends Curious Data UUID to all events
replaced instances of user_pseudo_id and device_advertising_id with uuid
updated tests

@nandanrao this PR has the removed advertising ID and all tests passing. Ready for your review


TypeError: decoding str is not supported

OS: MacOS Mojave (10.14.6)
python3 --version

Python 3.7.4

pip3 --version

pip 19.1.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

python3 safaribooks.py --cred 'user@email:password' BOOK_ID
returns me an error:

Error in sys.excepthook:
Traceback (most recent call last):
File "safaribooks.py", line 104, in unhandled_exception
self.exit("Unhandled Exception: %s (type: %s)" % (o, o.class.name))
File "safaribooks.py", line 90, in exit
self.error(str(error))
File "safaribooks.py", line 87, in error
self.out(output)
File "safaribooks.py", line 73, in out
sys.stdout.write("\r" + " " * self.columns + "\r" + str(put, "utf-8", "replace") + "\n")
TypeError: decoding str is not supported

Original exception was:
Traceback (most recent call last):
File "safaribooks.py", line 1039, in
SafariBooks(args_parsed)
File "safaribooks.py", line 281, in init
self.display.intro()
File "safaribooks.py", line 123, in intro
self.out(output)
File "safaribooks.py", line 73, in out
sys.stdout.write("\r" + " " * self.columns + "\r" + str(put, "utf-8", "replace") + "\n")
TypeError: decoding str is not supported

Looks like the recent commits has introduced this bug. As a mitigation you can roll back 2 versions.
git reset --hard HEAD~2
It would work after that

Works fine, thanks!


Use lock file for installation of code-server

For issue https://github.com/Islandora-Devops/isle-buildkit/issues/197

Doing some testing locally, if goes well I'll also change the composer packages to use a lock file as well.

This is ready to go and can be tested with the following:
docker run -it -p 8443:8443 -e CODE_SERVER_AUTHENTICATION=none islandora/code-server:7e9353c15fe2ad6c96a0d098270082a9509f87be

If you can then visit the IDE in the browser at http://localhost:8443, then it's working as intended.


Tortoise error please help

What i need to do with this ?

cmd_windows.bat
Then
pip install transformers==4.29.2

Details also here https://github.com/rsxdalv/tts-generation-webui/issues/106

Details also here #106

Ty so much, it works now!!!

Should be fixed with the regular install now


Better handle timeouts in namespace tests

Trying to quell some of those transient test errors here.
Fixes #1600

+1


Adding a shadow

Is it even possible to add a shadow to an image?
I have been trying to add a shadow to an image but I doesn't seem possible.
I couldn't get the simple shadow running because when you create a shadow with SVG, for example:
<svg width="200" height="200">
  <defs>
    <filter id="shadow">
      <feDropShadow dx="4" dy="8" stdDeviation="4"/>
    </filter>
  </defs>

  <circle cx="50%" cy="50%" r="80" style="filter:url(#shadow);"/>
</svg>

and overlay that with overlayWith(Buffer.from(<ABOVE SVG>), { cutout: true }) it will simply ignore the filter (shadow) and cut it out like i wasn't there.
The idea I have as a workaround is make an SVG that is the same shape and size, position it behind the image and add a blur to the SVG.
<svg width="200" height="200">
  <defs>
    <filter id="f1" x="0" y="0">
      <feGaussianBlur in="SourceGraphic" stdDeviation="15" />
    </filter>
  </defs>
  <rect width="90" height="90" fill="yellow" filter="url(#f1)" />
</svg>

Here is an HTML example of how that would look (JSFiddle):
<svg width="200" height="200">

  <filter id="blurMe">
    <feGaussianBlur in="SourceGraphic" stdDeviation="5" />
  </filter>

  <circle cx="60" cy="60" r="50" fill="black" filter="url(#blurMe)" id="shadow" />
  <circle cx="60"  cy="60" r="52" fill="dodgerblue" id="image" />
</svg>

The problem with this idea is I don't know how to stack layers in Sharp.
Thank you in advance.

Hello, feDropShadow is unsupported by librsvg - it's only at W3C draft status - https://drafts.fxtf.org/filter-effects/
See #728 for multiple composition, some of the linked issues provide possible workarounds for now.

Hope this helped, please feel free to re-open with more details if not.

Came across this issue while trying to do something similar, feDropShadow is still unsupported but I managed to achieve what I wanted to do by blurring a rectangle (an svg the same size as the input image, with a margin) to act as the shadow and then using composites. Hope this helps anyone looking for the same thing!
const OUTPUT_BACKGROUND = '#bada55'
const OUTPUT_WIDTH = 1200
const OUTPUT_HEIGHT = 630
const SHADOW_MARGIN = 40
const SHADOW_BLUR = 15
const SHADOW_OFFSET = 6
const SHADOW_OPACITY = 0.3

const stream = await sharp(inputPath)
const { width, height } = await stream.metadata()

const shadow = await sharp(
  Buffer.from(`
    <svg
      width="${width + SHADOW_MARGIN * 2}"
      height="${height + SHADOW_MARGIN * 2}"
    >
      <rect
        width="${width}"
        height="${height}"
        x="${SHADOW_MARGIN}"
        y="${SHADOW_MARGIN + SHADOW_OFFSET}"
        fill="rgba(0, 0, 0, ${SHADOW_OPACITY})"
      />
    </svg>`)
)
  .blur(SHADOW_BLUR)
  .toBuffer()

const image = await stream
  .resize({
    height,
    width,
  })
  .toBuffer()

await sharp({
  create: {
    width: OUTPUT_WIDTH,
    height: OUTPUT_HEIGHT,
    channels: 3,
    background: OUTPUT_BACKGROUND,
  },
})
  .composite([
    { input: shadow, blend: 'multiply' },
    { input: image, blend: 'over' },
  ])
  .jpeg()
  .toFile(outputPath)

Wow, thanks @papandreou! This is exactly what I was looking for!

@ilicmarko  @urbanisierung  @lovell According to https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/529
Now you can filter="drop-shadow(<color> <dx> <dy> < stdDeviation>)"
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400">
  <rect x="100" y="100" width="200" height="200" fill="green" filter="drop-shadow(#ff0000 1px 4px 6px)"/>
</svg>

Hello! @wchaws @lovell I'm trying to add shadow to an SVG image (black shadow). I'm doing this:
const imageData = await sharp(inputBuffer);
const { width, height } = await imageData.metadata();
const maxWidthHeight = Math.min(width, height);
const widthHeight = maxWidthHeight;
const imageRadio = widthHeight / 2.3;

const roundedCorners = Buffer.from(
    `<svg width="100%" height="100%">
        <circle
        filter="drop-shadow(0 0 5px black)"
        fill="#black"
        style="padding: 10px;"
        cx="${imageRadio}" cy="${imageRadio}" r="${imageRadio}"/>
    </svg>`,
);

// Rounded
await sharp(inputBuffer)
    .composite([{
        input: roundedCorners,
        blend: 'dest-in',
    }])
    .toFile(imagePath)

and this is the result:

I'm adding the shadow but it is not black. Why?
Thanks, guys!
Armando

@armandoarmando Actually, you're adding shadow to your circle mask not adding shadow to compositing result. That's why you can see blurry at edge.

@wchaws I'm trying to make it like this https://github.com/lovell/sharp/issues/1490#issuecomment-611779237
but the shadow is cut... I think I'm very close, but I can't figure out what is the problem...
any idea?

const OUTPUT_WIDTH = 630
const OUTPUT_HEIGHT = 630
const SHADOW_MARGIN = 5
const SHADOW_BLUR = 5
const SHADOW_OFFSET = 6
const SHADOW_OPACITY = 0.5

const stream = await sharp(inputBuffer)
const { width, height } = await stream.metadata();

const radioShadowImage = (width + SHADOW_MARGIN * 2) / 2;
const radioImage = width / 2;

const shadow = await sharp(
    Buffer.from(`
        <svg
        width="${width + SHADOW_MARGIN}"
        height="${height + SHADOW_MARGIN}"
        >
        <circle
        fill="rgba(0, 0, 0, ${SHADOW_OPACITY})"

        cx="${radioShadowImage}" cy="${radioShadowImage}" r="${radioShadowImage}"
        />
        </svg>`)
    )
    .blur(SHADOW_BLUR)
    .toBuffer();

const roundedCorners = Buffer.from(
    `<svg width="550" height="550">
            <circle
            cx="${radioImage}" cy="${radioImage}" r="${radioImage}"/>
        </svg>`,
);

const image = await sharp(inputBuffer)
    .composite([
        {
            input: roundedCorners,
            blend: 'dest-in',
        },
    ])
    .toBuffer();

await sharp({
    create: {
        width: OUTPUT_WIDTH,
        height: OUTPUT_HEIGHT,
        channels: 4,
        background: { r: 255, g: 255, b: 255, alpha: 0 },
    },
})
    .composite([
        {
            input: shadow,
            blend: 'over',
            gravity: 'centre',
        },
        {
            input: image,
            blend: 'over',
            gravity: 'centre',
        },
    ])
    .toFile('image.png');

drop-shadow is super slow


Product.browsable.base_queryset() always chained with .browsable()

Is this a bug or I couldn't understand something?
dashboard.catalogue.views.ProductListView makes a list of products calling Product.browsable.base_queryset() [1] but BrowsableProductManager overrides parent's get_queryset method adding chain browsable() of ProductQuerySet [2] so base_queryset() method results something like ProductQuerySet().browsable().base_queryset().
Is this behavior correct and what is difference between Product.browsable.base_queryset() and Product.browsable.all()?
I'm trying to solve relatively simple task about 'product hiding' without any views overriding and was going to customise ProductQuerySet.browsable() method with smth like .filter(is_active=True). But I don't need this filters in dashboard views which uses base_queryset().
[1] https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/dashboard/catalogue/views.py#L108
[2] https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/catalogue/managers.py#L52

i'm sorry :)
please, close this issue, i'm slowpoke
it works as it should, obviously, but slightly complicated to customise but i could


web-serial-polyfill and web-serial desktop and Android

@reillyeon
So I am doing better with web-serial-polyfill getting better speeds on Android, my forked github is here and demo page is here
What I would like to do is make equivalent pages for both polyfill and webUSB, but I can't find a simple webUSB github or code example except for this working demo here which I strangely can't even find the github for it.
I am having some minor issues with polyfill getting the reader and writer objects properties and methods printed and switching from promises to async/await. Other than that things are going well
For both situations my simple working Arduino code is

/*
 * webSerial for testing javascript connection with an arduino
 *
 * Note: On the Arduino Serial monitor make sure no line-ending or if statements will not work
 *
 * Android https://hpssjellis.github.io/web-serial-polyfill/index.html
 * Laptops Desktops  https://hpssjellis.github.io/my-examples-of-arduino-webUSB-webSerial/public/index.html
 * IOS     not really sure
 *
 */

#include <Arduino.h> // Only needed for https://platformio.org/

String readString;

int myDelay = 5000;   // non-block delay in milliseconds
unsigned long myStart;
int serialMessage = 1;
int myCount=48;      //48 = ascii 0,    58 ascii 9

void setup() {
  Serial.begin(9600);
  pinMode(LED_BUILTIN, OUTPUT);
  digitalWrite(LED_BUILTIN, HIGH);   // onboard LED, HIGH = off

  myStart = millis();   // set delay
  randomSeed(analogRead(A0));  // AO pin on XIAO does not have to be connected to anything

}

void loop() {

  if ( (millis() - myStart ) >= myDelay) {
     myStart = millis();      //  reset the delay time
     myCount++;
     if (myCount >= 58){ // 48 = ascii 0,    58 ascii 9
       myCount = 48;
     }
     //char myChar = (char)myCount;
     byte myChar = (byte)myCount;
     Serial.write(myChar);
   }

  while (Serial.available()) {
    delay(3);
    char c = Serial.read();
    readString += c;
  }

  if (readString.length() > 0) {
    Serial.println(readString);

    if (readString == "a"){
      digitalWrite(LED_BUILTIN, LOW); //onboard LED LOW = on
      Serial.println("LED ON");
    }
    if (readString == "b"){
      digitalWrite(LED_BUILTIN, HIGH);
      Serial.println("LED OFF");
    }
    readString="";
  }
}

Any suggestions or opinions are welcome?
This issue started as an issue on the arduino webusb library https://github.com/webusb/arduino/issues/96

All done. Thanks. Awesome library!
https://hpssjellis.github.io/web-serial-polyfill/desktop-serial05.html

We're talking about how to make it easier for developers to switch between the polyfill and native implementation (or use both at once!) in #10.
The source code for the terminal demo is here: https://github.com/GoogleChromeLabs/serial-terminal
It will switch to using the polyfill if you add the query parameter to the URL: https://googlechromelabs.github.io/serial-terminal/?polyfill.


initial changes to replace AppDefinition where applicable

I tried to save us some time (and you the headache of merging) by "reviewing" via commit. Feel free to throw it away.

I tried to avoid my desire to change Iterable to Seq and Future[Unit] to Future[Done].

Note: didn't try the rest api, but its working on the feature branch (post a pod, will list in groups, etc)


"align 'when' branches in columns"

Expected Rule behavior
The same behavior as IntelliJ's "align 'when' branches in columns"
This:
val result = when(input) {
    "abc" -> true
    "12345" -> false
}

Becomes:
val result = when(input) {
    "abc"   -> true
    "12345" -> false
}

Additional information

Current version of ktlint: 1.1.1

This will not be implemented. As documented in Kotlin Coding Conventions:

As a general rule, avoid horizontal alignment of any kind. Renaming an identifier to a name with a different length should not affect the formatting of either the declaration or any of the usages.


Update SDWebImage

SDWebImage updated to 3.7.3 but UIActivityIndicator-for-SDWebImage requires specifically 3.7.0. Can you update the podspec please?

+1

+1

FYI: AFAIK, the SDWebImage framework has implemented activity indicator.

- (void)setShowActivityIndicatorView:(BOOL)show;
- (void)setIndicatorStyle:(UIActivityIndicatorViewStyle)style;


HTTPCORE-601

@rschmitt I am not particularly happy with this work-around but this is the best I could come up with.

@rschmitt @michael-o @garydgregory I came up with a better, less ugly work-around. Please take a look.


cleaned up changes that I hacked in yesterday

From my perspective, it seemed like the ball was still being located in a spot where it wasn't actually. ... Do we know where the issues is?

I don't have a solid answer, but I have a theory. My theory is that my threshold for the size was too low which caused other cameras to see noise and think it's the ball, so all of those positions were getting averaged together. My hope is tuning the size threshold will fix this.

From my perspective, it seemed like the ball was still being located in a spot where it wasn't actually. ... Do we know where the issues is?

I don't have a solid answer, but I have a theory. My theory is that my threshold for the size was too low which caused other cameras to see noise and think it's the ball, so all of those positions were getting averaged together. My hope is tuning the size threshold will fix this.

Ok, seems like a reasonable hypothesis. If that doesn't work, there is a hack that might. You publish each pixel individually, and since the pose synchronizer takes the average reading within a window, it'll put the mean pretty close to the actual ball position.
 The only way to use that weight might be to publish it multiple times to use the averaging code. That or we use covariance like we actually should, but that will require a lot of modifications in a small amount of time.
I guess both of those are useful if there isn't a clear cutoff between blob size for noise and real measurements.

From my perspective, it seemed like the ball was still being located in a spot where it wasn't actually. ... Do we know where the issues is?

I don't have a solid answer, but I have a theory. My theory is that my threshold for the size was too low which caused other cameras to see noise and think it's the ball, so all of those positions were getting averaged together. My hope is tuning the size threshold will fix this.

Ok, seems like a reasonable hypothesis. If that doesn't work, there is a hack that might. You publish each pixel individually, and since the pose synchronizer takes the average reading within a window, it'll put the mean pretty close to the actual ball position.
 The only way to use that weight might be to publish it multiple times to use the averaging code. That or we use covariance like we actually should, but that will require a lot of modifications in a small amount of time.
I guess both of those are useful if there isn't a clear cutoff between blob size for noise and real measurements.

There is a major difference, the noise is usually just a blob of a few pixels, while the ball is significantly larger. I’m confident that I can have that sorted for the next test. I also tried the code on the bag from last Wednesday and when it wasn’t putting the ball on the tape, it was spot on.

Are there any other changes you wanted to make? The value for min_size will have to be tuned, but I can't do that until next meeting.

Are there any other changes you wanted to make? The value for min_size will have to be tuned, but I can't do that until next meeting.

As far as code quality goes, I think this all looks good. If you want to add a test cases, I always think that is good to do. But otherwise, I think it is good to be merged in.

If you want to add a test cases, I always think that is good to do.

One day I will, that day is not today.


Adding more space, and upgrading to Edge

Hello, I did an upgrade to the  to the rolling development version "edge", according to the instructions.
I edited the file "installqemu.expect"  and increased the size to 6GB.
The error message that appears during the reboot is as follows:
* Starting Docker Daemon ... [ ok ]
* Starting k3s ... [ ok ]
* Starting sshd ... [ ok ]
* Activating swap devices ... [ ok ]
* Loading zram module...
[ ok ]
* Swap->zram0
[ ok ]
* Mount zram1 /tmp
mke2fs 1.46.2 (28-Feb-2021)
mkfs.ext4: Invalid argument while setting blocksize; too small for device

zram-init:
mkfs.ext4 /dev/zram1 failed
[ !! ]

Welcome to Alpine Linux 3.14
Kernel 5.10.46-0-virt on an x86_64 (/dev/ttyS0)```

Keep in mind that I have already started a fresh installation and will increase the size again to 6GB.
How can I "add more "disks" via qemu-img create and do fdisk/mk.ext4/fstab.'
Thanks in advance!

Yeah you might hit that 4gb limit of your device I was talking about.
You need to add a 2nd hardfile.
Untested (!)
qemu-img create -f qcow2 2nd_drive.img 4G
In startemu.sh you add this
-nographic alpine.img 2nd_drive.img
Inside qemu
dmesg
cat /proc/partition

^^^ this might be a /dev/hdb or /dev/sdb and then you can partition the drive etc.

Ok, let's assume we are not adding extra space.
How can we upgrade to Edge, without the following message:
mkfs.ext4 /dev/zram1 failed
[ !! ]

Welcome to Alpine Linux 3.14
Kernel 5.10.46-0-virt on an x86_64 (/....```

The goal is to install lxd and podman!

Why do you make a fs on zram?
That is compressed ram... It makes no sense.

This is not my customization. It is probably a breakdown of the system due to the coexistence of current and edge repositories, after their processing, during the upgrade attempt.

The same error message after an proper upgrade on 3.14:
* Mounting local filesystems ... [ ok ]                * Configuring kernel parameters ... [ ok ]
 * Creating user login records ... [ ok ]               * Wiping /tmp directory ... [ ok ]
 * Setting hostname ... [ ok ]                          * Setting keymap ... [ ok ]
 * Starting networking ... *   lo ... [ ok ]
 *   eth0 ...udhcpc: started, v1.33.1                  udhcpc: sending discover
udhcpc: sending select for <IP_ADDRESS>
udhcpc: lease of <IP_ADDRESS> obtained, lease time 86400
 [ ok ]                                                 * Starting busybox syslog ... [ ok ]
 * Initializing random number generator ... [ ok ]
 * Starting busybox acpid ... [ ok ]
 * Starting busybox crond ... [ ok ]
 * Mounting cgroup filesystem ... [ ok ]
 * Starting Docker Daemon ... [ ok ]
 * Starting sshd ... [ ok ]                             * Activating swap devices ... [ ok ]
 * Loading zram module...                               [ ok ]                                                 * Swap->zram0
 [ ok ]
 * Mount zram1 /tmp
mke2fs 1.46.2 (28-Feb-2021)                            mkfs.ext4: Invalid argument while setting blocksize; too small for device
zram-init:                                             mkfs.ext4 /dev/zram1 failed
 [ !! ]

Welcome to Alpine Linux 3.14                           Kernel 5.10.43-0-virt on an x86_64 (/dev/ttyS0)

alpine login:

After a fresh installation into Alpine 3.14
The message remains, but I do not notice any malfunction.  I have now installed, podman, pip3, podman-compose, and buildah.

I updated the installer to Alpine 3.14
I also fixed the zram issue.

You can increase the disk size.
$ mkdir alpine $ curl -o config.env https://raw.githubusercontent.com/egandro/docker-qemu-arm/main/config.env $ edit the config.env file $ cd .. $ curl -o termux-setup.sh https://raw.githubusercontent.com/egandro/docker-qemu-arm/master/termux-setup.sh && chmod 755 ./termux-setup.sh && ./termux-setup.sh

Thinking like a beginner I would suggest:
$ cd alpine
$ curl -o config.env https://raw.githubusercontent.com/egandro/docker-qemu-arm/main/config.env
$ nano config.env
$ cd ..
$ curl -o termux-setup.sh https://raw.githubusercontent.com/egandro/docker-qemu-arm/master/termux-setup.sh && chmod 755 ./termux-setup.sh && ./termux-setup.sh

I updated the installer to Alpine 3.14.
I also fixed the zram issue.

@egandro , it works!

Image: My Nginxproxymanager, docker container!

Thinking like a beginner I would suggest:

At this point, I see no need to explain super novice users "How to install Linux". You can easily create a 200 GB COW file and add it to qemu. Editing the config is of no use, since root pw depends on Alpine's constraints. Also the answerfile is also related to the Alpine ISO version.
As we don't know what Alpine 3.20 will change, this is the best guess I can make at the current point.
I might split the downloader and the installer in future releases. That gives more freedom.

After the last changes you made to your script, @egandro, i have successfully installed (after upgrading to edge, the rolling distribution from 3.14), lxc containers.

The topic has been completed


style-components looks wired in React devtools.

Version
2.1.0

Reproduction
It's not really a bug but it does confuse me a little.
￼

Expected Behavior
I expected it to be actual component name like 'Wrapper' or 'Button'.
How can I achieve that? or it just can't?

You can use the babel-plugin's displayName option to add more meaningful names.


instance.child_plugin_instances is always 'None' in ModelForm.init

A plugin has direct child plugins added in the DjangoCMS Structure Mode. When I try to access these child plugins in the parent model's custom form I see that it is set to 'None'.
Shouldn't it contain the child plugin instances? All other properties are set, including numchild which shows 2.
The following form is configured as the custom form for GoogleMapPlugin in cms_plugins.py. GoogleMapPlugin inherits from CMSPluginBase.
class GoogleMapForm(ModelForm):
    def __init__(self, *args, **kwargs):
        super(GoogleMapForm, self).__init__(*args, **kwargs)
        instance = kwargs.pop('instance', None)
        if instance:
            locations = instance.child_plugin_instances()
            # locations is now set to 'None', should contain child plugins.
            ...

Background: in the form of the parent plugin I would like to have a select widget that contains a reference to a child plugin.

Hello @macolo , please make sure to submit questions within the appropriate channels on either the User Mailing List, IRC (freenode#django-cms) or Stackoverflow.
You can find additional information on our support page.
In this case, I believe your question is best in the Users Mailing List.


Migrate gRPC stubs to MVVM

Codecov Report

Merging #1208 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #1208      +/-   ##
============================================
- Coverage     86.18%   86.15%   -0.03%
- Complexity     3765     3767       +2
============================================
  Files           380      380
  Lines         14929    14932       +3
  Branches       1663     1663
============================================
- Hits          12866    12865       -1
- Misses         1615     1619       +4
  Partials        448      448

Impacted Files
Coverage Δ
Complexity Δ

.../com/google/api/codegen/py/PythonGapicContext.java
66.97% <100%> (-3.31%)
45 <1> (-1)

...api/codegen/transformer/py/PythonSurfaceNamer.java
100% <0%> (+2.59%)
36% <0%> (+1%)
:arrow_up:

...om/google/api/codegen/util/py/PythonTypeTable.java
77.77% <0%> (+3.7%)
11% <0%> (+1%)
:arrow_up:

...oogle/api/codegen/util/py/PythonNameFormatter.java
86.36% <0%> (+4.54%)
15% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2c7619...0f667dc. Read the comment docs.


Allow for mp4 and webm to be served out of the box

I have a fresh install of Adonis and some of my static files are not being served.
This is a straight port from express 4 to Adonis where everything was being served correctly.

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 silly lifecycle<EMAIL_ADDRESS>no script for prestart, continuing
7 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>8 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
9 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/michaelcalkins/Code/rangersteve/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/michaelcalkins/.composer/vendor/bin:/Users/michaelcalkins/.rvm/bin
10 verbose lifecycle<EMAIL_ADDRESS>CWD: /Users/michaelcalkins/Code/rangersteve
11 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'node --harmony_proxies server.js' ]
12 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
13 info lifecycle<EMAIL_ADDRESS>Failed to exec start script
14 verbose stack Error<EMAIL_ADDRESS>start: `node --harmony_proxies server.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:239:16)
14 verbose stack     at emitTwo (events.js:100:13)
14 verbose stack     at EventEmitter.emit (events.js:185:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:100:13)
14 verbose stack     at ChildProcess.emit (events.js:185:7)
14 verbose stack     at maybeClose (internal/child_process.js:850:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid<EMAIL_ADDRESS>16 verbose cwd /Users/michaelcalkins/Code/rangersteve
17 error Darwin 15.4.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v5.10.1
20 error npm  v3.8.3
21 error code ELIFECYCLE
22 error<EMAIL_ADDRESS>start: `node --harmony_proxies server.js`
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>start script 'node --harmony_proxies server.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the rangersteve package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node --harmony_proxies server.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs rangersteve
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls rangersteve
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Is it version 2.0 or the dev release. May be if you can share the command u used to create the project

Version 2.0

adonis new yardstick
I moved my existing project rangersteve into BACKUP_FILES
I copied yardstick and pasted it into rangersteve
I began converting my rangersteve express code into the files from the generated yardstick code

Okay, make sense.
So the dev release is going to be 3.0 soon and it has handful of improvements + new features. Also in 3.0 i have moved to node-static to serve-static.
Can u create the new project using
adonis new yardstick --dev

Moving from 2.0 to dev will be transparent for you, since you have just started migrating your project.

Got it I'll give that a shot today!

It worked! :)


[move-prover] cache all used memories in a set #9029 - (114)

Motivation
cache all used memories in a set.
Test Plan
CI/CD testcases covered.

/canary

:sunny: Canary successful

/land

:broken_heart: Test Failed - ci-test

/land


FEATURE: allow to hide links for anon or non-staff users

would be better to allow this for each link separately, but I am not sure what's the best way to implement this with the current input format

Yes, would be much better to add the option on a per-link basis.


GitHub Action to build and upload Conda package whenever a new release is made

Description
This branch adds an additional GitHub Action that is triggered whenever a release is made, which in our case is done by the other Action in this repository.
It uses a repository secret, CONDA_TOKEN, generated for the maize-genetics Anaconda group. Its scope is limited to API read and write access.
The existing action for building a release is modified to update two new repository variables, PHG2_VERSION and PHG2_VERSION_MD5. These are used in the Conda build process to pull the most recent release (that which triggers this action).
This will allow us to keep the Conda package consistent with the newest GitHub release without the need to manually build and upload each time. It is particularly helpful if there is a new version that fixes some bug - this way you don't have to download and extract a tarball to update, simply doing conda update phg2 instead to retrieve the latest version.
Type of change
What type of changes does your code introduce? Put an x in boxes that apply.

[ ] CHANGE (fix or feature that would cause existing functionality to not work as expected)
[ ] FEATURE (non-breaking change which adds functionality)
[ ] BUGFIX (non-breaking change which fixes an issue)
[X] ENHANCEMENT (non-breaking change which improves existing functionality)
[ ] NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Checklist:

[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have updated relevant documentation

Changelog entry
Please add a one-line changelog entry below. This will be copied to the changelog file during the release process.
GitHub Action to build and upload Conda package whenever a new release is made

@lynnjo @zrm22 @aberthel @btmonier @pjbradbury @tcasstevens
For everybody's benefit and to clear up any confusion, I want to respond to Lynn's question from here in a more visible way so that we are all on the same page.
If you look in the source, the ProcessBuilder commands follow this form:
conda run -n phgv2-conda agc

The above runs the given program (in this case agc) within the Conda environment specified by the -n parameter, in this case the phgv2-conda environment that is created by phg2 setup-environment. This allows you to run any software installed in a given environment without having to be in the environment itself. Please refer to the conda run docs here.
From a system with a brand new Conda installation, issue the following commands:
conda create --name my_env --channel conda-forge --channel maize-genetics phg2
conda activate my_env
phg2 setup-environment
conda run -n phgv2-conda anchorwave --help

You should be greeted with the familiar AnchorWave help info. Furthermore, we can confirm the behavior I describe via:
conda run -n phgv2-conda conda list

Which will run Conda within the phgv2-conda environment, listing all packages installed into said environment (all without having to be in the environment itself). The first line output should look something like the following depending on your OS:
# packages in environment at /home/matt/miniconda3/envs/phgv2-conda:

What I was trying to describe in Programmer Meeting is that if the dependencies are a part of the package installation itself, we wouldn't have to rely on a bespoke phgv2-conda environment. ProcessBuilder would find the software installed alongside PHG2, whether that be in the base environment or a user's own custom environment.
One might argue that users of the plain tarball application will no longer have access to the supplied dependencies, and to that I say: it's not a problem! For example, AnchorWave doesn't install minimap2 for you despite depending on it. We ought to provide a singular "blessed" installation method (Conda) while also providing a generic release (the tarballs) for advanced users. If somebody has little technical or bioinformatics knowledge, we direct them to installing the package via Conda, which will manage the dependencies for them and allow for a straightforward upgrade path. Advanced users can install the tarball and add its executable to their PATH if they wish - such users ought to be expected to have the requisite knowledge of downloading/building from source the other dependencies that we require.
Additionally, there are engineering concerns that I didn't have the time to explain at the meeting. Let's say a bug is discovered in one of our dependencies included in the phgv2-conda environment which requires an update to some latest version - existing users will have to manually delete and recreate the phgv2-conda environment, or enter it and update the problematic package themselves.
We should be using our tools/dependencies how they were designed to be used, doing it any other way will inevitably lead to bugs and breakage, which in a small lab is particularly harmful due to everybody's limits on time. Much like the unit and integration tests, thoughtful design and engineering will ultimately save us time and lead to better science.


feat(connector): Add connector cashtocode

Type of Change

[ ] Bugfix
[x] New feature
[ ] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description
Add connector cashtocode of rewards payment method.
Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

I have manually tested the APIs through postman.

Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed submitted code
[x] I added unit tests for my changes where possible
[ ] I added a CHANGELOG entry if applicable

@BallaNitesh Can you please add the Assignees and Labels to the PR?


How to configure watched files under node_modules

I'm working in a mono repository that contains both SPFX projects and some custom component libraries.
The custom component libraries are linked under the SPFX project (using pnpm workspace) and are build using a simple tsc command)
It means I have this folder structure:

root

myspfxwebpart

node_modules

mylib (linked from mylib)

src/*.ts
lib/*.js

mylib (actual location)

src/*.ts
lib/*.js (build using tsc)

When I use fast-serve, any time I update one of the ts file under mylib, it triggers a compilation of the SPFX project (but not the mylib project).
However, because the compiler will use the JS file and not the TS files, it should not trigger.
If I run a "watch mode" on my library (tsc -w) from another console windows, my lib is properly updated. however, fast serve will refresh before the new JS is available. I can get my changes by refreshing the browser after the new js is ready.
I didn't find how to control what's watched.
I tried to add this in the webpack.extend.js file :
const webpackConfig = {
    watchOptions: {
        ignored: /node_modules/,
    }
};

but it does not seem to be taken into account (no trace in the dumped web config file of this watch option).
Thanks in advance for the help.
PS: project is using SPFX 1.16.1 and spfx-fastserve-helper is 1.16.1

Could you show how do you import functions from mylib in your webparts' code?

A simple import { myFunc } from '@myrepo/mylib' (which is what is inside mylib's package.json name attribute)

I don't know your exact setup, but I crated a small POC and it works as expected. You should run pnpm run serve in spfx folder and pnpm run watch in lib folder. Every time you change .ts inside lib, it creates new .js output. spfx watches .js changes from lib and refreshes accordingly. Please try it out and say if it works for you.

The issue is that the compilation triggers as soon as the Ts file itself changes. Once the js file is emitted, I have to manually refresh to see the changes

Your repo works as expected. I may have something broken elsewhere in my code. Let's close the issue for now, until I can reproduce it in a simple env.
Thanks for your help

If anyone else is experiencing a similar issue, in our case, we have multiple projects managed within a monorepo (rushjs).
This includes SPFX (SharePoint Framework) projects and npm packages that are used across these SPFX projects.  These npm packages are listed as "externals" in the config.json file to exclude them from the bundle.
When we removed these packages from the "externals" list, we noticed that changes made to those packages were being reflected in the SPFX projects and the "fast-serve" recompilation process detected these changes.


[8.x] Add support for custom separator in Arr::dot()

This PR adds support for passing a new third parameter to Arr::dot() to specify a custom separator instead of using .:
$nginx = [
    'etc' => [
        'nginx' => [
            'conf.d' => [
                'uploads.conf' => '...',
            ],
            'nginx.conf' => '...',
        ],
    ],
];

// With just Arr::dot($nginx), the keys will look like 'etc.nginx.conf.d.uploads.conf'

// With this PR, we can make them valid file paths:

Arr::dot($nginx, '/', '/');

// [
//     '/etc/nginx/conf.d/uploads.conf' => '...',
//     '/etc/nginx/nginx.conf' => '...',
// ]

// PHP 8 named arguments are nice too:
Arr::dot(['app' => ['resources' => ['views' => ['index.blade.php' => 'Hello, world.']]]], separator: '/');
// ['app/resources/views/index.blade.php' => 'Hello, world.']

I imagine there are other use cases besides file trees where this would come in handy too. Docs PR is ready to go if this is accepted.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


Change http to https for security links

For security, we should change http into https links.

Thanks!


Added JavaScript file for issuing badges to users through Badgr

This is the JavaScript file that can be used to make calls to the Badgr API to issue badges. It includes functions for issuing badges, getting information about the Computing Bootcamp issuer, getting information on the the currently made Badge Classes (the badges that can be issued), and so on. When the system for testing users on their knowledge is implemented, this can be referenced in the site.

How does authentication work.  Could any user on the webpage simply call these functions to issue themselves badges?

For your question on Authentication: The Badgr API takes in the username and password for a user, that has access to certain Issuers (in this case, the Computing BootCamp Issuer, which can issue badges). If the credentials are correct, we receive an accessToken, which needs to be sent with each subsequent request. When the accessToken expires, we can use a refreshToken that was received with the original accessToken to refresh the accessToken, so that we can continue to use the same accessToken. I'm not sure how to do this without having the username and password visible in the file itself though, so I'm very open to suggestions on how to hide that.
I don't think so, since this file isn't actually referenced in the website anywhere, the user shouldn't have access to the functions. When implementing, we'll make sure these functions only get called after they pass the necessary tests for the badge. However, you know more about it than I do, so if you know of some way that end users can call JavaScript functions that aren't referenced in the html, but are stored in the site, then we may be in trouble, and need some way to stop that.

However, you know more about it than I do, so if you know of some way that end users can call JavaScript functions that aren't referenced in the html, but are stored in the site, then we may be in trouble, and need some way to stop that.

Unfortunately that is very easy to do.  You can try it out yourself.  Hit F12 in Chrome, and on the "Sources" tab you can view all javascript on the site, and in the "Console" tab you can run arbitrary javascript.

Okay, that's really good to know... how do Big companies solve this problem? For example, how does Amazon stop people from running the "Send item" function without the "Charge" function running? If there was some sort of system for authentication on the site, obviously people could dig through the files till they find the credentials they need?
I think if we can solve hiding the username and password, then we can require it in the issue badge function, and then people couldn't arbitrarily run it.

The simple answer is that anything like this requires "server-side" implementation (probably good to read about "client-side vs server-side" web scripting.  As it stands our website is kept simple by not requiring any server-side software.  It would be nice to keep it that way since we are using free hosting that generally doesn't have much server-side support.

Okay, so do we need to find another way of implementing badges? As in, doing issuing manually on the Badgr website instead of using the API or some other solution that doesn't involve it?

So if I'm understanding correctly, there is no way to automate our badge issuing safely, so we'll have to do it manually?

Yes, we will probably have to do it manually unless we add back-end and authentication.

Also, even if the function is implemented server-side, how do you determine if the request from the client is legit or arbitrary execution?

Users have to authenticate using their password.  HTTPS + password hashing ensures that your password is never transmitted in such a way that others could observe.
Websites don't distinguish between clicks on the website or "arbitrary execution".  If you are logged into your amazon account and authenticated, you could place an order via arbitrary javascript.

Okay, perfect!
Sounds like the current game plan is to leave it manual, so I'll close this and let this code sit for a bit.


Fix user full names with accents

Fixes #1176

Thank you! Can you change the comment to be more specific? Like Prevent text reversal Unicode hacks in full names


Fix django major version to 3

Does this PR close any open issues?
No, I have noticed this issue when rebuilding the django container locally, though.
Give a longer description of what this PR addresses and why it's needed
This fixes the django major (and maybe minor version) to 3(.2). This stops the django containers, and presumably the heroku deployment, from using django v4.0, which our code is not compatible with. We're using some deprecated and removed functions.
We should hold off on merging any other PR until this is merged.
Provide pictures/videos of the behavior before and after these changes (optional)
N/A
Are there any additional TODOs before this PR is ready to go?
No

The reason that the tests for this are failing is due to an upstream change in django-s3-file-field regarding testing. These two PRs detail the change:

https://github.com/girder/django-s3-file-field/pull/252
https://github.com/girder/django-s3-file-field/pull/253

I think we can merge this PR, and I can open a separate PR to fix the tests.


Neural style transfer

Is it possible to port Neural Style Transfer to eager?
L-BFGS algorithm in the scipy library is not compatible with eager mode according to me.

Hmm is that so ? Well, there are tons of projects out there which handle style transfer so I'm not really enthusiastic about doing it in eager.


Microsoft.VisualStudioCode.Insiders_v1.58.0 (#19662)

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Add label help-wanted

/AzurePipelines run


Add additional currencies to rule set

Currently we only support five currencies.  Would like to expand that to a larger number of currencies from around the world.

@ignoreintuition that's a good idea, but i think that we can helps adding custom currency suport. I have an idea to add a COP support ... Maybe anyone needs it.

Feel free to incorporate and I submit a PR


How to save a PDF and sent it to the server

Hi, i've just discovered your library. I'm trying to see on
the Readme how i can save a PDF and send it to the server, so that it can be send by email. Anyone having an example would be very helpful.

I've also been trying to solve the same problem. I've been trying to capture the the exact point at which the PDF is generated so I can post it to the server from there.

@Blair2004 @qlint Please check this issue https://github.com/eKoopmans/html2pdf.js/issues/271 Author described a workflow to generate and send file to server. then you can send it whatever you want

Thank you.. I have found a workaround. I'm putting the class reference I've created about
It uses some internal API such as NexoAPI (don't care about) and Sweet Alert (swal). Beside of this, I hope that this will help.
Basically, I'm transferring the blob to the server where I save the blob as a PDF and send it by email.
class Emailable {
    constructor() {
        this.textDomain     =   emailableReportData.textDomain;
        this.url            =   emailableReportData.url;

        $( '[print-item=".report-wrapper"]' ).closest( 'form' ).append(
            `<input type="button" class="btn btn-primary send-by-email" value="${this.textDomain.emailReport}">`
        )

        this.bindAll();
    }

    bindAll() {
        $( '.send-by-email' ).bind( 'click', () => this.sendByEmail() );
    }

    sendByEmail() {
        swal({
            title: this.textDomain.confirmAction,
            text: this.textDomain.sendTheCurrentReportViaEmail,
            showCancelButton: true
        }).then( result => {
            if ( result.value ) {
                this.generatePDF()
                    .then( pdf => {
                        this.sendEmail( pdf )
                    })
            }
        });
    }

    save( data, name ) {
        var sampleBytes = new Int8Array(4096);

        var saveByteArray = (function () {
            var a = document.createElement("a");
            document.body.appendChild(a);
            a.style = "display: none";
            return function (data, name) {
                var blob = new Blob(data, {type: "octet/stream"}),
                    url = window.URL.createObjectURL(blob);
                a.href = url;
                a.download = name;
                a.click();
                window.URL.revokeObjectURL(url);
            };
        }());

        saveByteArray([data], name );
    }

    generatePDF() {
        return new Promise( ( resolve, reject ) => {
            const selectorString    =   '.report-wrapper .col-lg-6';
            $( selectorString ).attr( 'id', 'element-to-print' );
            $( '#element-to-print' ).removeClass( 'col-lg-6' );
            $( '#element-to-print' ).addClass( 'col-lg-12' );
            var element = document.getElementById('element-to-print');
            var opt = {
                margin:       1,
                filename:     'myfile.pdf',
                image:        { type: 'jpeg', quality: 0.98 },
                html2canvas:  { scale: 2 },
                jsPDF:        { unit: 'in', format: 'letter', orientation: 'portrait' }
            };

            // New Promise-based usage:
            const worker    =   html2pdf().set(opt).from(element);
            // worker.save();
            worker.outputPdf( 'blob' )
                .then( pdf => {
                    resolve( pdf );
                    $( '#element-to-print' ).addClass( 'col-lg-6' );
                    $( '#element-to-print' ).removeClass( 'col-lg-12' );
                })
        })
    }

    sendEmail( pdf ) {

        const form  =   new FormData();
        form.append( 'pdfile', pdf, 'report.pdf' );

        HttpRequest.post(
            this.url.submit,
            form
        ).then( result => {
            NexoAPI.Toast()( this.textDomain.emailSent );
        })
    }
}

new Emailable;


Provide Windows SDK UCRT DLL paths for jdk17+ pipeline configuration

To ensure a managed and thus deterministic Windows SDK DLLs for jdk-17+ JDKs, specify --with-ucrt-dll-dir=.
The standard Windows SDK version 10.0.22000.0 UCRT DLLs used with VS2019 are located in:
'C:/progra~2/wi3cf2~1/10/Redist/10.0.22000.0/ucrt/DLLs/x64'

Fixes https://github.com/adoptium/temurin-build/issues/3479

run tests

run tests


Update README.md

Needs better phrasing - but worth mentioning - this feature bit me - lost a couple of hours trying to figure out what was wrong.

Coverage remained the same at 91.86% when pulling 7264d26a7df30e9e77aadbb8b9ac7dc2387bf464 on bryanhuntesl:patch-1 into 7294aa1ad5d895e0501a661468ff042998292f91 on edgurgel:master.

Coverage remained the same at 91.86% when pulling 7264d26a7df30e9e77aadbb8b9ac7dc2387bf464 on bryanhuntesl:patch-1 into 7294aa1ad5d895e0501a661468ff042998292f91 on edgurgel:master.

Coverage remained the same at 91.86% when pulling 7264d26a7df30e9e77aadbb8b9ac7dc2387bf464 on bryanhuntesl:patch-1 into 7294aa1ad5d895e0501a661468ff042998292f91 on edgurgel:master.

Coverage remained the same at 91.86% when pulling 7264d26a7df30e9e77aadbb8b9ac7dc2387bf464 on bryanhuntesl:patch-1 into 7294aa1ad5d895e0501a661468ff042998292f91 on edgurgel:master.

Coverage remained the same at 91.86% when pulling 7264d26a7df30e9e77aadbb8b9ac7dc2387bf464 on bryanhuntesl:patch-1 into 7294aa1ad5d895e0501a661468ff042998292f91 on edgurgel:master.

Coverage remained the same at 91.86% when pulling 7264d26a7df30e9e77aadbb8b9ac7dc2387bf464 on bryanhuntesl:patch-1 into 7294aa1ad5d895e0501a661468ff042998292f91 on edgurgel:master.

Thanks!


Dutch tagline is not centered on every screen density

@VaiTon This issue is fixed. I had already checked the layout file and its looking correct for ldpi screens (240x320). May be someone had corrected it.

@VaiTon This issue is fixed. I had already checked the layout file and its looking correct for ldpi screens (240x320). May be someone had corrected it.

Let's close for now.

Let's close for now.


Change password in user profile

Hi,
it seems that "change password" feature is missing in User Profile section. Do you think to implement it or not?

Right now a user can change his password using the forgot password feature.
It would be useful to have a more functional user profile page (show.vue). This could include also a password change feature. We don't have this planned in the near future, but if somebody wants to contribute it would be great :)


Extending the chart to the boundaries of card

Checklist

[x] I am running the latest version of the card
[x] I checked if there isn't another feature request opened with the same request
[x] I checked that the feature is not already available in the dev branch

Is your feature request related to a problem? Please describe.
The minimal layout of the card allows to extend the chart to the boundaries of ha-card like this:

This was also possible in mini-graph-card

However, in case of normal layout the graph has a transform of 14 px to the right

Describe the solution you'd like
I would like to:

either define the padding around the chart
or use full-width charts with layouts different than minimal

Describe alternatives you've considered
I tried manually to override the css style, but the transform seems to be applied on the SVG level. I don't know how to customize that.

I believe you can use: https://apexcharts.com/docs/options/chart/offsetx/ to modify that.


map not destroyed , map always is on app no matter on other page diferent when was created

im developing a proyect when i have a page welcome.html when i load the map , and i have 2 pages more, page1.html and page2.html for example, but , i have a problem when i call the page1.html and see that the map is on the page1 too , the problem is that on the page1 i dont have any instance of map, i thing the problem is on my logic , but i dont know, the issue is the same in all enviroment if i have a index, html with login and after call the welcome with map, or calll other page from welcome

The current version does not support multiple pages.
You have to execute map.remove() before changing the page.
The version 2.0-beta supports multiple pages.
I recommend you use the new version.
https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/v2-beta

ok , so how i cant update or install the  last version ?

Read  the How to install the v2 beta? page.

thanks man!


Unable to pull image from insecure registry,  http: server gave HTTP response to HTTPS client

Using the latest containerd version, trying to add a private insecure docker registry to the containerd config to pull images from it, but its failing with the below error:
s@vlab048002 containerd]$ sudo crictl -r unix:///var/run/containerd/containerd.sock pull vlab048011.dom047600.lab:5000/myjenkins:latest
FATA[0000] pulling image failed: rpc error: code = Unknown desc = failed to pull and unpack image "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to resolve reference "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to do request: Head https://vlab048011.dom047600.lab:5000/v2/myjenkins/manifests/latest: http: server gave HTTP response to HTTPS client

Steps to reproduce the issue:

Install containerd

containerd -v
containerd containerd.io 1.4.3 269548fa27e0089a8b8278fc4fc781d7f65a939b

config file:

version = 2
root = "/var/lib/containerd"
state = "/run/containerd"
plugin_dir = ""
disabled_plugins = []
required_plugins = []
oom_score = 0

[grpc]
  address = "/run/containerd/containerd.sock"
  tcp_address = ""
  tcp_tls_cert = ""
  tcp_tls_key = ""
  uid = 0
  gid = 0
  max_recv_message_size = 16777216
  max_send_message_size = 16777216

[ttrpc]
  address = ""
  uid = 0
  gid = 0

[debug]
  address = ""
  uid = 0
  gid = 0
  level = ""

[metrics]
  address = ""
  grpc_histogram = false

[cgroup]
  path = ""

[timeouts]
  "io.containerd.timeout.shim.cleanup" = "5s"
  "io.containerd.timeout.shim.load" = "5s"
  "io.containerd.timeout.shim.shutdown" = "3s"
  "io.containerd.timeout.task.state" = "2s"

[plugins]
  [plugins."io.containerd.gc.v1.scheduler"]
    pause_threshold = 0.02
    deletion_threshold = 0
    mutation_threshold = 100
    schedule_delay = "0s"
    startup_delay = "100ms"
  [plugins."io.containerd.grpc.v1.cri"]
    disable_tcp_service = true
    stream_server_address = "<IP_ADDRESS>"
    stream_server_port = "0"
    stream_idle_timeout = "4h0m0s"
    enable_selinux = false
    selinux_category_range = 1024
    sandbox_image = "k8s.gcr.io/pause:3.2"
    stats_collect_period = 10
    systemd_cgroup = false
    enable_tls_streaming = false
    max_container_log_line_size = 16384
    disable_cgroup = false
    disable_apparmor = false
    restrict_oom_score_adj = false
    max_concurrent_downloads = 3
    disable_proc_mount = false
    unset_seccomp_profile = ""
    tolerate_missing_hugetlb_controller = true
    disable_hugetlb_controller = true
    ignore_image_defined_volumes = false
    [plugins."io.containerd.grpc.v1.cri".containerd]
      snapshotter = "overlayfs"
      default_runtime_name = "runc"
      no_pivot = false
      disable_snapshot_annotations = true
      discard_unpacked_layers = false
      [plugins."io.containerd.grpc.v1.cri".containerd.default_runtime]
        runtime_type = ""
        runtime_engine = ""
        runtime_root = ""
        privileged_without_host_devices = false
        base_runtime_spec = ""
      [plugins."io.containerd.grpc.v1.cri".containerd.untrusted_workload_runtime]
        runtime_type = ""
        runtime_engine = ""
        runtime_root = ""
        privileged_without_host_devices = false
        base_runtime_spec = ""
      [plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
        [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
          runtime_type = "io.containerd.runc.v2"
          runtime_engine = ""
          runtime_root = ""
          privileged_without_host_devices = false
          base_runtime_spec = ""
          [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
                SystemdCgroup = true
    [plugins."io.containerd.grpc.v1.cri".cni]
      bin_dir = "/opt/cni/bin"
      conf_dir = "/etc/cni/net.d"
      max_conf_num = 1
      conf_template = ""
    [plugins."io.containerd.grpc.v1.cri".registry]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://registry-1.docker.io"]
        [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"]
          endpoint = ["http://vlab048011.dom047600.lab:5000"]
      [plugins."io.containerd.grpc.v1.cri".registry.configs]
        [plugins."io.containerd.grpc.v1.cri".registry.configs."vlab048011.dom047600.lab".tls]
          insecure_skip_verify = true

    [plugins."io.containerd.grpc.v1.cri".image_decryption]
      key_model = ""
    [plugins."io.containerd.grpc.v1.cri".x509_key_pair_streaming]
      tls_cert_file = ""
      tls_key_file = ""
  [plugins."io.containerd.internal.v1.opt"]
    path = "/opt/containerd"
  [plugins."io.containerd.internal.v1.restart"]
    interval = "10s"
  [plugins."io.containerd.metadata.v1.bolt"]
    content_sharing_policy = "shared"
  [plugins."io.containerd.monitor.v1.cgroups"]
    no_prometheus = false
  [plugins."io.containerd.runtime.v1.linux"]
    shim = "containerd-shim"
    runtime = "runc"
    runtime_root = ""
    no_shim = false
    shim_debug = false
  [plugins."io.containerd.runtime.v2.task"]
    platforms = ["linux/amd64"]
  [plugins."io.containerd.service.v1.diff-service"]
    default = ["walking"]
  [plugins."io.containerd.snapshotter.v1.devmapper"]
    root_path = ""
    pool_name = ""
    base_image_size = ""
    async_remove = false

Running below ctr image pull with --plain-http works
sudo ctr image pull --plain-http=true vlab048011.dom047600.lab:5000/myjenkins:latest
How can we add the private insecure docker registry vlab048011.dom047600.lab:5000 to the config so when this node is part of the k8s cluster, it pulls images from the registry and runs the pods with no issues.

Using the latest containerd version, trying to add a private insecure docker registry to the containerd config to pull images from it, but its failing with the below error:
s@vlab048002 containerd]$ sudo crictl -r unix:///var/run/containerd/containerd.sock pull vlab048011.dom047600.lab:5000/myjenkins:latest
FATA[0000] pulling image failed: rpc error: code = Unknown desc = failed to pull and unpack image "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to resolve reference "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to do request: Head https://vlab048011.dom047600.lab:5000/v2/myjenkins/manifests/latest: http: server gave HTTP response to HTTPS client

Steps to reproduce the issue:

Install containerd

containerd -v
containerd containerd.io 1.4.3 269548fa27e0089a8b8278fc4fc781d7f65a939b

config file:

version = 2
root = "/var/lib/containerd"
state = "/run/containerd"
plugin_dir = ""
disabled_plugins = []
required_plugins = []
oom_score = 0

[grpc]
  address = "/run/containerd/containerd.sock"
  tcp_address = ""
  tcp_tls_cert = ""
  tcp_tls_key = ""
  uid = 0
  gid = 0
  max_recv_message_size = 16777216
  max_send_message_size = 16777216

[ttrpc]
  address = ""
  uid = 0
  gid = 0

[debug]
  address = ""
  uid = 0
  gid = 0
  level = ""

[metrics]
  address = ""
  grpc_histogram = false

[cgroup]
  path = ""

[timeouts]
  "io.containerd.timeout.shim.cleanup" = "5s"
  "io.containerd.timeout.shim.load" = "5s"
  "io.containerd.timeout.shim.shutdown" = "3s"
  "io.containerd.timeout.task.state" = "2s"

[plugins]
  [plugins."io.containerd.gc.v1.scheduler"]
    pause_threshold = 0.02
    deletion_threshold = 0
    mutation_threshold = 100
    schedule_delay = "0s"
    startup_delay = "100ms"
  [plugins."io.containerd.grpc.v1.cri"]
    disable_tcp_service = true
    stream_server_address = "<IP_ADDRESS>"
    stream_server_port = "0"
    stream_idle_timeout = "4h0m0s"
    enable_selinux = false
    selinux_category_range = 1024
    sandbox_image = "k8s.gcr.io/pause:3.2"
    stats_collect_period = 10
    systemd_cgroup = false
    enable_tls_streaming = false
    max_container_log_line_size = 16384
    disable_cgroup = false
    disable_apparmor = false
    restrict_oom_score_adj = false
    max_concurrent_downloads = 3
    disable_proc_mount = false
    unset_seccomp_profile = ""
    tolerate_missing_hugetlb_controller = true
    disable_hugetlb_controller = true
    ignore_image_defined_volumes = false
    [plugins."io.containerd.grpc.v1.cri".containerd]
      snapshotter = "overlayfs"
      default_runtime_name = "runc"
      no_pivot = false
      disable_snapshot_annotations = true
      discard_unpacked_layers = false
      [plugins."io.containerd.grpc.v1.cri".containerd.default_runtime]
        runtime_type = ""
        runtime_engine = ""
        runtime_root = ""
        privileged_without_host_devices = false
        base_runtime_spec = ""
      [plugins."io.containerd.grpc.v1.cri".containerd.untrusted_workload_runtime]
        runtime_type = ""
        runtime_engine = ""
        runtime_root = ""
        privileged_without_host_devices = false
        base_runtime_spec = ""
      [plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
        [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
          runtime_type = "io.containerd.runc.v2"
          runtime_engine = ""
          runtime_root = ""
          privileged_without_host_devices = false
          base_runtime_spec = ""
          [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
                SystemdCgroup = true
    [plugins."io.containerd.grpc.v1.cri".cni]
      bin_dir = "/opt/cni/bin"
      conf_dir = "/etc/cni/net.d"
      max_conf_num = 1
      conf_template = ""
    [plugins."io.containerd.grpc.v1.cri".registry]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://registry-1.docker.io"]
        [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"]

It should be vlab048011.dom047600.lab:5000 here.

      endpoint = ["http://vlab048011.dom047600.lab:5000"]
  [plugins."io.containerd.grpc.v1.cri".registry.configs]
    [plugins."io.containerd.grpc.v1.cri".registry.configs."vlab048011.dom047600.lab".tls]
      insecure_skip_verify = true

TLS can't work with HTTP. So tls settings should be removed here.

[plugins."io.containerd.grpc.v1.cri".image_decryption]
  key_model = ""
[plugins."io.containerd.grpc.v1.cri".x509_key_pair_streaming]
  tls_cert_file = ""
  tls_key_file = ""

[plugins."io.containerd.internal.v1.opt"]
path = "/opt/containerd"
[plugins."io.containerd.internal.v1.restart"]
interval = "10s"
[plugins."io.containerd.metadata.v1.bolt"]
content_sharing_policy = "shared"
[plugins."io.containerd.monitor.v1.cgroups"]
no_prometheus = false
[plugins."io.containerd.runtime.v1.linux"]
shim = "containerd-shim"
runtime = "runc"
runtime_root = ""
no_shim = false
shim_debug = false
[plugins."io.containerd.runtime.v2.task"]
platforms = ["linux/amd64"]
[plugins."io.containerd.service.v1.diff-service"]
default = ["walking"]
[plugins."io.containerd.snapshotter.v1.devmapper"]
root_path = ""
pool_name = ""
base_image_size = ""
async_remove = false

Running below ctr image pull with --plain-http works

`sudo ctr image pull --plain-http=true vlab048011.dom047600.lab:5000/myjenkins:latest`
How can we add the private insecure docker registry `vlab048011.dom047600.lab:5000` to the config so when this node is part of the k8s cluster, it pulls images from the registry and runs the pods with no issues.

Using the latest containerd version, trying to add a private insecure docker registry to the containerd config to pull images from it, but its failing with the below error:
s@vlab048002 containerd]$ sudo crictl -r unix:///var/run/containerd/containerd.sock pull vlab048011.dom047600.lab:5000/myjenkins:latest
FATA[0000] pulling image failed: rpc error: code = Unknown desc = failed to pull and unpack image "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to resolve reference "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to do request: Head https://vlab048011.dom047600.lab:5000/v2/myjenkins/manifests/latest: http: server gave HTTP response to HTTPS client

Steps to reproduce the issue:

Install containerd

containerd -v
containerd containerd.io 1.4.3 269548fa27e0089a8b8278fc4fc781d7f65a939b

config file:

version = 2
root = "/var/lib/containerd"
state = "/run/containerd"
plugin_dir = ""
disabled_plugins = []
required_plugins = []
oom_score = 0

[grpc]
  address = "/run/containerd/containerd.sock"
  tcp_address = ""
  tcp_tls_cert = ""
  tcp_tls_key = ""
  uid = 0
  gid = 0
  max_recv_message_size = 16777216
  max_send_message_size = 16777216

[ttrpc]
  address = ""
  uid = 0
  gid = 0

[debug]
  address = ""
  uid = 0
  gid = 0
  level = ""

[metrics]
  address = ""
  grpc_histogram = false

[cgroup]
  path = ""

[timeouts]
  "io.containerd.timeout.shim.cleanup" = "5s"
  "io.containerd.timeout.shim.load" = "5s"
  "io.containerd.timeout.shim.shutdown" = "3s"
  "io.containerd.timeout.task.state" = "2s"

[plugins]
  [plugins."io.containerd.gc.v1.scheduler"]
    pause_threshold = 0.02
    deletion_threshold = 0
    mutation_threshold = 100
    schedule_delay = "0s"
    startup_delay = "100ms"
  [plugins."io.containerd.grpc.v1.cri"]
    disable_tcp_service = true
    stream_server_address = "<IP_ADDRESS>"
    stream_server_port = "0"
    stream_idle_timeout = "4h0m0s"
    enable_selinux = false
    selinux_category_range = 1024
    sandbox_image = "k8s.gcr.io/pause:3.2"
    stats_collect_period = 10
    systemd_cgroup = false
    enable_tls_streaming = false
    max_container_log_line_size = 16384
    disable_cgroup = false
    disable_apparmor = false
    restrict_oom_score_adj = false
    max_concurrent_downloads = 3
    disable_proc_mount = false
    unset_seccomp_profile = ""
    tolerate_missing_hugetlb_controller = true
    disable_hugetlb_controller = true
    ignore_image_defined_volumes = false
    [plugins."io.containerd.grpc.v1.cri".containerd]
      snapshotter = "overlayfs"
      default_runtime_name = "runc"
      no_pivot = false
      disable_snapshot_annotations = true
      discard_unpacked_layers = false
      [plugins."io.containerd.grpc.v1.cri".containerd.default_runtime]
        runtime_type = ""
        runtime_engine = ""
        runtime_root = ""
        privileged_without_host_devices = false
        base_runtime_spec = ""
      [plugins."io.containerd.grpc.v1.cri".containerd.untrusted_workload_runtime]
        runtime_type = ""
        runtime_engine = ""
        runtime_root = ""
        privileged_without_host_devices = false
        base_runtime_spec = ""
      [plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
        [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
          runtime_type = "io.containerd.runc.v2"
          runtime_engine = ""
          runtime_root = ""
          privileged_without_host_devices = false
          base_runtime_spec = ""
          [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
                SystemdCgroup = true
    [plugins."io.containerd.grpc.v1.cri".cni]
      bin_dir = "/opt/cni/bin"
      conf_dir = "/etc/cni/net.d"
      max_conf_num = 1
      conf_template = ""
    [plugins."io.containerd.grpc.v1.cri".registry]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://registry-1.docker.io"]
        [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"]

It should be vlab048011.dom047600.lab:5000 here.

      endpoint = ["http://vlab048011.dom047600.lab:5000"]
  [plugins."io.containerd.grpc.v1.cri".registry.configs]
    [plugins."io.containerd.grpc.v1.cri".registry.configs."vlab048011.dom047600.lab".tls]
      insecure_skip_verify = true

TLS can't work with HTTP. So tls settings should be removed here.

[plugins."io.containerd.grpc.v1.cri".image_decryption]
  key_model = ""
[plugins."io.containerd.grpc.v1.cri".x509_key_pair_streaming]
  tls_cert_file = ""
  tls_key_file = ""

[plugins."io.containerd.internal.v1.opt"]
path = "/opt/containerd"
[plugins."io.containerd.internal.v1.restart"]
interval = "10s"
[plugins."io.containerd.metadata.v1.bolt"]
content_sharing_policy = "shared"
[plugins."io.containerd.monitor.v1.cgroups"]
no_prometheus = false
[plugins."io.containerd.runtime.v1.linux"]
shim = "containerd-shim"
runtime = "runc"
runtime_root = ""
no_shim = false
shim_debug = false
[plugins."io.containerd.runtime.v2.task"]
platforms = ["linux/amd64"]
[plugins."io.containerd.service.v1.diff-service"]
default = ["walking"]
[plugins."io.containerd.snapshotter.v1.devmapper"]
root_path = ""
pool_name = ""
base_image_size = ""
async_remove = false

Running below ctr image pull with --plain-http works

`sudo ctr image pull --plain-http=true vlab048011.dom047600.lab:5000/myjenkins:latest`
How can we add the private insecure docker registry `vlab048011.dom047600.lab:5000` to the config so when this node is part of the k8s cluster, it pulls images from the registry and runs the pods with no issues.

Thanks for your reply @lining2020x, even after making the above changes to remove the plugins."io.containerd.grpc.v1.cri".registry.configs section, the issue still remains.
sudo crictl -r unix:///var/run/containerd/containerd.sock pull vlab048011.dom047600.lab:5000/myjenkins:latest
FATA[0000] pulling image failed: rpc error: code = Unknown desc = failed to pull and unpack image "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to resolve reference "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to do request: Head https://vlab048011.dom047600.lab:5000/v2/myjenkins/manifests/latest: http: server gave HTTP response to HTTPS client

Thanks for your reply @lining2020x, even after making the above changes to remove the plugins."io.containerd.grpc.v1.cri".registry.configs section, the issue still remains.
sudo crictl -r unix:///var/run/containerd/containerd.sock pull vlab048011.dom047600.lab:5000/myjenkins:latest
FATA[0000] pulling image failed: rpc error: code = Unknown desc = failed to pull and unpack image "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to resolve reference "vlab048011.dom047600.lab:5000/myjenkins:latest": failed to do request: Head https://vlab048011.dom047600.lab:5000/v2/myjenkins/manifests/latest: http: server gave HTTP response to HTTPS client

@sanjaymp18 Do you change this line [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"] to [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab:5000"] ?

@sanjaymp18 Do you change this line [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"] to [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab:5000"] ?

@sanjaymp18 Did you change this line [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"] to [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab:5000"] ?

yup i did !
[plugins."io.containerd.grpc.v1.cri".registry]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://registry-1.docker.io"]
        [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab:5000"]
          endpoint = ["http://vlab048011.dom047600.lab:5000"]

  [plugins."io.containerd.internal.v1.opt"]
    path = "/opt/containerd"

@sanjaymp18 Did you change this line [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"] to [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab:5000"] ?

yup i did !
[plugins."io.containerd.grpc.v1.cri".registry]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://registry-1.docker.io"]
        [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab:5000"]
          endpoint = ["http://vlab048011.dom047600.lab:5000"]

  [plugins."io.containerd.internal.v1.opt"]
    path = "/opt/containerd"

@sanjaymp18 Did you restart containerd systemctl restart containerd ?  Your config about private registry mirror seems to be fine.

@sanjaymp18 Did you restart containerd systemctl restart containerd ?  Your config about private registry mirror seems to be fine.

@sanjaymp18 Did you restart containerd systemctl restart containerd ? Your config about private registry mirror seems to be fine.

Yes @lining2020x , I did after every change made to config. It still tries to connect to the registry with HTTPS.
Is there any other place I need to point it as the insecure registry ?

@sanjaymp18 Did you restart containerd systemctl restart containerd ? Your config about private registry mirror seems to be fine.

Yes @lining2020x , I did after every change made to config. It still tries to connect to the registry with HTTPS.
Is there any other place I need to point it as the insecure registry ?

@sanjaymp18 There is a typo here. [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"] It should be plugins. I don't think there's a problem with the configuration .

@sanjaymp18 There is a typo here. [plugin."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab"] It should be plugins. I don't think there's a problem with the configuration .

@lining2020x, my bad, urggghhh, Thanks a lot for pointing that !! It finally worked !!!!

@lining2020x, my bad, urggghhh, Thanks a lot for pointing that !! It finally worked !!!!

Hi @sanjaymp18, I have faced the same issue. Could you share your working updated config.toml file?

Hi @lazyr00t, I dont have full config file now, but if your facing the issue then this is block of lines of concern:
[plugins."io.containerd.grpc.v1.cri".registry]       [plugins."io.containerd.grpc.v1.cri".registry.mirrors]         [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]           endpoint = ["https://registry-1.docker.io"]         [plugins."io.containerd.grpc.v1.cri".registry.mirrors."vlab048011.dom047600.lab:5000"]           endpoint = ["http://vlab048011.dom047600.lab:5000"]

hi @mpsanj,thank you for the reply. But I am still facing the related issue unless I edit my config.toml file as yours and shown below. I have also restarted containerd service with systemctl but k8s still tries to pull the image with HTTPs protocol.
[plugins."io.containerd.grpc.v1.cri".registry]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://registry-1.docker.io"]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."<IP_ADDRESS>:5000"]
          endpoint = ["http://<IP_ADDRESS>:5000"]

@lazyr00t  I wish I had the setup to give the complete config, please check the spacing and if its under the right sections as above.
sudo ctr image pull --plain-http=true vlab048011.dom047600.lab:5000/myjenkins:latest this command should pull the image just to verify if the registry is fine and running.

@mpsanj,
Yes, sudo ctr image pull --plain-http=true vlab048011.dom047600.lab:5000/myjenkins:latest command is completed succesfully.
I have checked spacing and intentations of config.toml file. But the problem still continue to occur.
Btw, tool versions are shown below,
kubeadm --> 1.20.1
kubectl --> 1.20.1
kubelet --> 1.20.1
containerd --> 1.3.3


splitted parser for BaracudaWAF  and Baracude CEF for ASimWebSession

Required items, please complete
Change(s):

Created a new file for BaracudeCEF and added BaracudaCEF parser in it. In BaracudaWAF file removed BaracudaCEF parser and in ASimWebSession added BaracudeCEF Parser name  and same changes have done for vim as well.

Reason for Change(s):

To Split the BaracudaWAF and BaracudaCEF parser separetly

Version Updated:

yes

Testing Completed:

yes

Checked that the validations are passing and have addressed any issues that are present:

yes

Hi @Alekhya0824,
Please resolve below KQL validation error. Thanks

Hi @Alekhya0824,
PR is having failure validations; please check on them. Thanks

Hi @Alekhya0824,
Please update on above. Thanks

Hi @Alekhya0824,
Validations failing please check. Thanks

Hi @Alekhya0824,
Please act on reviewer's open comments. Thanks

Hi @Alekhya0824,
I can see a few open comments from the reviewer. Please act on them.

And also, one suggestion: once you're done with the open comment change, please click on the Resolve Conversation button.

Hi @Alekhya0824,
Please check and respond on above comments. Thanks


Error in build.prod

After downloading commit #2dd5bbe , installation and launck s OK, but build.prod failed with errors.
Attach log of "npm run build.prod"
build.prod.zip

add gulp.src('node_modules/moment/moment.js').pipe(gulp.dest('./node_modules'));
in gulpfile.ts before loadTasks(SEED_TASKS_DIR);

Solved!


How to add batch priorboxes in multibox_target?

hi, @zhreshold, I want to reimplement RefineNet in mxnet ,which require every batch has it's own priorboxes. So Ｉmodified the code of multibox_target from your project .
I changed the 3 files. multibox_target-inl.h multibox_target.cu multibox_target.cc as following.
multi_new.zip
The change is little , and I tested it by making priorbox  same in every batch. So the result should be the same as old multibox_target. But It made big difference . Can you help to see why? Thank you very much .

  no error , Just because the input of multibox_target  is wrong . The layer implemented by Numpy dones't work proper. Thanks.


Scriptcam.lic not found

This triggers when taking a webcampicture for an ISIC club. Everything seems to work fine so I have no idea where this comes from.


rn_v94.md: add changes for v94.1

PR Template and Checklist
Please complete as much as possible to speed up the reviewing process.
Readiness and adding reviewers as appropriate is required.
All PRs should be reviewed by a technical writer/documentation team and a peer.
If effecting customers—which is a majority of content changes—a member of Customer Success must also review.
Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
Release note changes for the v94.1 stable release.
Checklist

[ ] Run spelling and grammar check, preferably with linter.
[ ] Avoid changing any header associated with a link/reference.
[ ] Step through instructions (or ask someone to do so).
[ ] Review for wordiness
[ ] Match tone and style of page/section.
[ ] Run make linkcheck.
[ ] View HTML in a browser to check rendering.
[ ] Use semantic newlines.
[ ] follow best practices for commits.

[ ] Descriptive title written in the imperative.
[ ] Include brief overview of QA steps taken.
[ ] Mention any related issues numbers.
[ ] End message with sign off/DCO line (-s, --signoff).
[ ] Sign commit with your gpg key (-S, --gpg-sign).
[ ] Squash commits if needed.

[ ] Request PR review by a technical writer and at least one peer.

Comments
Any thing else that a maintainer/reviewer should know.
This could include potential issues, rational for approach, etc.

@doanac @mike-sul @detsch anything worth saying about the ak-lite issues?

Docs for 61a0c20e320a92a2bda0398ceda23f10045f003f are browsable at: https://ci.foundries.io/projects/fio-docs/builds/2736/docs/artifacts/html/index.html

@doanac @mike-sul @detsch anything worth saying about the ak-lite issues?

aklite/composectl fixes to check whether compose app images are installed and all its containers are running in the following cases:

One or more app images are hosted in the docker hub.
There are more than one version of the same app stored on a local host.
There are more than one app services/containers are based on the same container image.

Docs for 6ea481ea58ae2775e495e6720d57dc7aea2d3f1d are browsable at: https://ci.foundries.io/projects/fio-docs/builds/2737/docs/artifacts/html/index.html


feat(ScriptData): update version python and jq/sh version

[x] issue #28
[x] follows contribution guide
[x] code change includes tests
suite of #88

@m-kus i've update + generate some other blocks

@m-kus it should be good


WIP: Update release-process.md

Opening a WIP PR for release process updates

Moved GitLab release announce request to T-5, to adjust for their new release announce process.
Contributions for GitLab must be made by the 6th working day before the 22nd, so moving the GitLab release announce to T-5 ensures we'll make the date.
PS: We missed it by one day this release, but they were okay adding the Mattermost announce to the blog this time, given the process was recently changed


This is not TDD

The article says: "To use test-driven development (TDD), you create a failing implementation of the PrimeService class:"
That's not TDD. In TDD you first write the unit test which doesn't compile, then the failing implementation of the PrimeService class, and then you implement the body of the PrimeService method(s).
I suggest that you simply remove that sentence, and keep the article as is except of it.

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

ID: 1c123f1f-8ae8-db21-2eac-4297bfc30b44
Version Independent ID: 4675decb-333f-0508-5a3d-ce71dc85936d
Content: Unit testing C# with MSTest and .NET Core
Content Source: docs/core/testing/unit-testing-with-mstest.md
Product: dotnet-core
GitHub Login: @ncarandini
Microsoft Alias: wiwagn

In TDD you first write the unit test which doesn't compile
This confuses me. @arnonax From my knowledgebase you would write first a failing unittest and then write the implementation. To get the unit test failing it must be compileable. Shouldn't be that the case?


Patch native http

This PR makes gentle_rpc compatible with Deno's new native HTTP API. They have not merged the new Websockets API yet. Therefore I commented out the Websockets logic on the server side until this has been done.
Additionally, the client returns more consistent types and values now and jwt auth works for both client and server side (http only).
I am pretty happy with everything http related and will focus on Websockets more now.
Feel free to make any suggestions.
@talentlessguy
@sisou

is it worth raising an issue about std/ws supporting std/http on deno_std repo?

regarding the server, w and r are easy to initialize:
const r = new BufReader(conn)
const w = new BufWriter(conn)

acceptWebSocket({ r, w, /* etc.. */ })

but Deno is planning to remove std/ws completely so probably worth waiting https://github.com/denoland/deno_std/issues/1294

std/ws is being removed (as said in that issue now), so this lib needs to transition to native Deno Websocket implementation:
https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/main/cli/dts/lib.deno.ns.d.ts#Deno.upgradeWebSocket

Lot's of refactoring going on, so it's hard to see the main changes
I know, sorry about that! Was the last time I hope.

Techinically, at this point it's not yet listening. If the port is already taken, it will fail after this console output. Should move it to after listenAndServe.
True, but you might wanna await listenAndServe for error handling (it throws errors now) in special cases. But you are right that I should probably do that for this example and I will change it.

is there any help needed on this PR, or it's finished?

Thanks for asking @talentlessguy ! I would need help implementing the new ws API on the server side. So if you already have a good solution for it in mind, I would be more than happy to see it. After that I will take a last look at ws on the client side and then we are done here :)

@timonson  something like this in response.ts could work?
  const handleHttp = async (): Promise<Response> => {
    const response = await handleHttpRequest(
      req,
      methods,
      {
        headers,
        publicErrorStack,
        enableInternalMethods,
        additionalArguments,
        proto,
        cors,
        auth
      },
      req.headers.get('Authorization')
    )
    return response
  }

  const handleWebSocket = async (): Promise<Response> => {
    const { socket, response } = Deno.upgradeWebSocket(req)
    const methodsAndIdsStore = new Map()
    if (enableInternalMethods) {
      await handleWs({ socket, methods: { ...methods, ...internalMethods } }) // the rest of options
    }
    return response
  }

  switch (proto) {
    case 'http':
      return handleHttp()
    case 'ws':
      return handleWebSocket()

@timonson is this PR ready or something else left?

Some things are still missing. I will finish it tomorrow.

I think I am done on the client side now. @sisou would you mind taking one last look at /client/ws.ts please? https://github.com/timonson/gentle_rpc/blob/e3b8023044c975385830c0fac30b6e89e112b921/client/ws.ts

@talentlessguy what would you prefer:  Hardcoding the protocol ({proto: "ws"} or {proto: "http}) in the server options like it is now or making it recognize the protocol based on the request headers automatically? Thanks!

@timonson i think automatic detection makes more sense here, since RPC is mostly websockets

awesome, thank you @timonson !


xray: fix GUI compatibility

While the package itself will look for assets in both folders, ./xray and ./v2ray the GUIs don't always support this, so since we use the v2ray-assets we should also set the V2RAY_LOCATION_ASSET variable to hint them to look at the ./v2ray folder
Description of changes

Things done
Change the variable to the V2RAY_LOCATION_ASSET

Built on platform(s)

[x] x86_64-linux
[ ] 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/)
23.05 Release Notes (or backporting 22.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.

This change seems to break xray on NixOS. Maybe we should include both environment variables?

This change seems to break direct use of the xray package (service.xray.enable = true; service.xray.settingsFile = ...;) on NixOS. Maybe we should include both environment variables?

could you file a bug? I just tested it locally and it's working for me

never mind, I just tested the geosite stuff in config and it is not working