Environment variables in permissions.yml

Would it be possible to implement support for environment variables inside the permissions.yml config? I.e.
record:
  "*":
    create: "user.data.role === ${SOME_ENVIRONMENT_VARIABLE}"
  ...

Fixed in 5.0.1


Wrong output when using -n

When the -n flag is used, the output has errors (stray %s format strings, coloured words repeated a few times, etc).
As an example, running:
wiki -n libressl

Results in the following output
Redirected from %s to %s

LibresslLibreSSLLibreSSL is an open-source implementation of the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols. It was forked from the OpenSSL cryptographic software library in April 2014 as a response by OpenBSD developers to the Heartbleed security vulnerability in OpenSSL, with the aim of refactoring the OpenSSL code so as to provide a more secure implementation.

LibreSSL was forked from the OpenSSL library starting with the 1.0.1g branch and will follow the security guidelines used elsewhere in the OpenBSD project.

Read more: %s
https://en.wikipedia.org/wiki/LibreSSL

This fixes the problem by using fmt.Sprintf in wiki/cmd/wiki/main.go
138c138
<           fmt.Fprint(buf, "Redirected from %s to %s\n\n",
---
>           fmt.Fprint(buf, fmt.Sprintf("Redirected from %s to %s\n\n",
141c141
<           )
---
>           ))
144c144
<   fmt.Fprint(buf, "\nRead more: %s\n", page.URL)
---
>   fmt.Fprint(buf, fmt.Sprintf("\nRead more: %s\n", page.URL))


Patch release/v0.1.3

Codecov Report

Merging #17 (84229c5) into main (0a7f1a6) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #17   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            8         8
  Lines          217       217
=========================================
  Hits           217       217

Impacted Files
Coverage Δ

src/fastapi_redis_cache/client.py
100.00% <100.00%> (ø)

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 0a7f1a6...84229c5. Read the comment docs.


add ci for ECCO_diagnostics.driver etc

Codecov Report

Merging #34 (94f6eb9) into master (55573d1) will increase coverage by 33.39%.
The diff coverage is 66.66%.

@@             Coverage Diff             @@
##           master      #34       +/-   ##
===========================================
+ Coverage    5.12%   38.52%   +33.39%
===========================================
  Files           2        2
  Lines         507      501        -6
===========================================
+ Hits           26      193      +167
+ Misses        481      308      -173

Impacted Files
Coverage Δ

src/ECCO.jl
36.17% <66.66%> (+36.17%)
:arrow_up:

src/downloads.jl
53.73% <0.00%> (+14.92%)
: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 55573d1...94f6eb9. Read the comment docs.


'ISignInUIDelegate' could not be found in xamarin.Google.iOS.Sign to <IP_ADDRESS>

Hi,
In iOS Getting error ->
The type or namespace name 'ISignInUIDelegate' could not be found (are you missing a using directive or an assembly reference?)
After Update  xamarin.Google.iOS.Sign to <IP_ADDRESS>
Plugin.GoogleClient 2.0 needs xamarin.Google.iOS.Sign >= <IP_ADDRESS>
"Can't able to Submit ipa with "Plugin.GoogleClient 1.1.1 " getting error
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview)."

Are you using latest version?

Hi, @rdelrosario
Plugin.GoogleClient 2.1.5
Xamarin.Google.iOS.SignIn <IP_ADDRESS>
Visual Studio Community 2019 for Mac
Version 8.4.5 (build 19)
Xamarin.Mac
Version: <IP_ADDRESS> (Visual Studio Community)
Xamarin.iOS
Version: <IP_ADDRESS> (Visual Studio Community)
Xamarin.Android
Version: <IP_ADDRESS> (Visual Studio Community)

I have troubles in iOS with Google login, i have a Xamarin Forms project and it opens a Web View and it makes the login with google, but never go inside the app just stay at the login page and never kick the code on the Viewmodel like Android. I'm new developing on Xamarin, so need a bit of help please.


deps: Upgrade controller-runtime to v0.16.3

Description
Changes proposed in this pull request:

Bump  sigs.k8s.io/controller-runtime to v0.16.3

Related issue(s)

dependabot will do this job := https://github.com/kyma-project/lifecycle-manager/pull/988


Fixes for windows

As requested in #48 these changes fix running the examples on windows machines.

npm run clean now uses the module rimraf instead of rm -rf
npm run build-windows was added as NODE_ENV is set differently (more info)
npm run start-windows was added as I found that webpack -d needs to run first to generate files for webpack-dev-server to work properly

Great! In the start command, why do we need 'webpack -d'?

Running webpack-dev-server -d by itself just gives a directory listing in the browser and no files are output into /public like in this comment

wth? That means webpack-dev-server is even not started?!


Option to exclude response examples from Postman collection

Using fuzzing & variations, can increase the number of postman requests.
For each request, "examples" for all the different responses, which can make the Postman collection big.

It would be interesting to provide the option to exclude the response examples.

Proposal: --postmanStripRequestExamples
Which will replace the responses array in the item object

with an empty responses: []

Released in 1.12.0


Fix displaying and updating rewards on Smesher screen

It fixes #1497 and #1498.

I cannot test anything that requires node restart (delete data + reinit, edit proving opts etc.) because once the node gets down, it never syncs again on the standalone


Timezone Switching and TimeGutter Slots

So, I'm trying to write support for timezone switching for my calendar. I have a lot of things working, based on comments in an issue. The one thing I cannot get though is the proper min/max time display in the TimeGutter, and a current now. I'm using the momentLocalizer like so:
// in util file
export const getMoment = timezone => {
  const m = (...args) => moment.tz(...args, timezone);
  m.localeData = moment.localeData;
  return m;
};

// in my calendar wrapper
const moment = getMoment(timezone);
const localizer = momentLocalizer(moment);
// ...
<Calendar
  localizer={localizer}

This covers a good chunk of what I'm trying to do. When I switch timezones, my events shift accordingly to their proper timeslot. What fails is in using min and max to set the starting and ending hour timeslots on my day and week views. These take JS date objects, even though it only appears to need the 'time' (and really the 24 hour hour). Initially I set these like so:
min={new Date(1970,1,1,7,0)}
max={new Date(1970,1,1,18,0)}

I also use getNow to set the current datetime at render. This also takes a JS date object, and thoughts were that you needed to convert this to the timezone as well:
const convert = m => new Date(m.year(), m.month(), m.date(), m.hour(), m.minute());
...
getNow={() => convert(moment())} // remember, moment now does tz automatically ^

That didn't do it either. I then saw someone referenced using defaultDate instead of getNow:
defaultDate={convert(moment())}

No such luck. What I see is that 'right now' it's October 3rd in Chicago, but 'right now' is October 4th in Japan. No matter what I do the highlighted date is always 'my' (Chicago) 'right now'.
So back to times. I then thought that maybe I needed to convert my min and max, using the timezone, and then set the hour:
min={moment().hour(5).minute(0).toDate()}
max={moment().hour(18).minute(0).toDate()}

and that caused complete chaos. Seems to be unnecessary. Especially once I started looking at code...
I got into TimeGrid and found that dates.merge() was going to create a new Date object to pass to the TimeGutter, and in the TimeGutter I found that the slotMetrics set up each group. So I went to find out how the slotMetrics were built and found how it adjusted for DST offset (which is based on the JS Date object, and always relative to current browser date in it's offset).
So, my localizer couldn't help me. Or, if it can I have no idea how. The localizer isn't used for any of these calculations, so they become moot. Or so it seems. If there is a way to do this, I haven't found it yet. Can anyone help? What combination of settings and localizer solve all of these issues?
General Real-World Use Case:
I have an organization that manages scheduling clinic appointments for multiple clinics in multiple timezones. The scheduler managing that scheduling must see a clinic's schedule in that clinic's timezone. So if the clinic is in Knoxville (Eastern Time), and is open from 7AM to 5PM, the scheduler (sitting in Memphis, which is Central Time) must see that clinic's hours as 7AM - 5AM.
Should Happen: user views Knoxville clinic schedule, and hours are 7am-5pm
Currently Happens: user views Knoxville clinic (which automatically switches tz to Eastern time) and the hours show 8am - 4pm

Here's a codesandbox that shows exactly what I'm talking about. Timezone will default to user current timezone, and you can switch timezones using the Select at the top of the screen. Event start and end times adjust accordingly, but you'll notice the timeslot min/max switch out as well.

I figured out the magic sauce for getting the TimeGutter correct. The core issue was that now and my min and max JS Date objects didn't have any offset applied for the selected timezone. I was able to fix this by passing my moment (with timezone) into my createDate/Time methods, and changing them to create dates using moment's format() method. The moment library's default format() output is in ISO 8601 format, which includes the offset, and is the right way to set new Date().
utils.js
/**
 * We do this to get a copy of moment w/timezones without polluting the global scope
 */
let moment = require('moment');
// moment-timezone makes changes to existing moment object, returning adjusted
moment = require('moment-timezone/builds/moment-timezone-with-data-2012-2022');

// in case you need the raw moment
export const moment;

export const currentTimezone = moment.tz.guess();
/**
 * This will create a 'moment' object that *is* moment.tz(), and automatically use the
 * 'timezone' used when you called 'getMoment()'
 */
export const getMoment = (timezone = currentTimezone) => {
  const m = (...args) => moment.tz(...args, timezone);
  m.localeData = moment.localeData;
  return m;
};

/**
 * 'datetime' is a JS Date object
 * 'tzMoment is the 'moment' object you got from 'getMoment()'
 */
export const convertDateTimeToDate = (datetime, tzMoment) => {
  return new Date(tzMoment(datetime).format()); // sets Date using ISO 8601 format
};

/**
 * 'hour' is an integer from 0 - 23 specifying the hour to set on the Date
 * 'tzMoment is the 'moment' object you got from 'getMoment()'
 */
export const getTimeAsDate = (hour, tzMoment) => {
  const m = tzMoment('1970-01-01');
  return new Date(
    m
      .hour(hour)
      .minute(0)
      .format()
  );
};

/*
 * 'now' is your 'getNow' method
 * 'tzMoment is the 'moment' object you got from 'getMoment()'
 */
export const getNow = (now, tzMoment) => convertDateTimeToDate(now(), tzMoment);

Scheduler.component.js
import React, { useState } from 'react';
import {
  Calendar as Component,
  momentLocalizer,
  Views
} from 'react-big-calendar';
import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop';
import {
  currentTimezone,
  getMoment,
  getNow,
  getTimeAsDate
} from '../utils/dateUtils';
// this converts my date strings to JS Date objects (local time)
import useNormalizedDates from './useNormalizedDates.hook';

const Calendar = withDragAndDrop(Component);
const views = [Views.DAY, Views.WEEK, Views.MONTH];

const Scheduler = ({
  timezone = currentTimezone,
  now = () => new Date(),
  events = [],
  ...props
}) => {
  const [calEvents, setCalEvents] = useState([]);
  // convert my db date strings to true JS Date objects
  useNormalizedDates(events, setCalEvents);

  const moment = getMoment(timezone);
  const localizer = momentLocalizer(moment);
  return (
    <div className="scheduler-container">
      <Calendar
        localizer={localizer}
        events={calEvents}
        views={views}
        defaultView={Views.WEEK}
        startAccessor="start"
        endAccessor="end"
        titleAccessor="patient"
        getNow={() => getNow(now, moment)}
        min={getTimeAsDate(7, moment)}
        max={getTimeAsDate(18, moment)}
      />
    </div>
  );
};

export default Scheduler;

Hope this helps someone else fight the good fight. I created a GitHub project too.

OK, I was close ^, unless your start and end occur across different days. To give you a good example of what I mean:
let's say I want to show 24 hours of slots on my Calendar, I can do this:
min={getTimeAsDate(0,moment)}
max={getTimeAsDate(23,moment)}

and, if my timezone is the same as my browser local I am perfectly fine. That's because my date conversions make:
start: Thu Jan 01 1970 00:00:00 GMT-0600 (Central Standard Time)
end: Thu Jan 01 1970 23:00:00 GMT-0600 (Central Standard Time)

But let's say I want to set my timezone to America/Los Angeles. This then gives me:
start: Wed Dec 31 1969 02:00:00 GMT-0600 (Central Standard Time)
end: Thu Jan 01 1970 01:00:00 GMT-0600 (Central Standard Time)

Looking at the date portion, you see we now span across two separate days. But that's alright, right? Well, no. As you can see below, this totally messes with the TimeGrid:

I had to really dig, to see what was happening, and finally came up with the culprit. TimeGrid, in it's renderEvents() method, includes the DayColumn with the following attributes:
min={dates.merge(date, min)}
max={dates.merge(date, max)}

In this the date is the current range array item value, and min and max are what you see above. The problem lies in the dates.merge() that comes from utils/dates.js. It 'merges' a date, and a time, without allowing for offset. So changing the timezone sets min and max correctly, but the DayColumn components gets:
start: Sun Feb 10 2019 02:00:00 GMT-0600 (Central Standard Time)
end: Sun Feb 10 2019 01:00:00 GMT-0600 (Central Standard Time)

As you can see, without the offset this is very, very wrong. These values hit the TimeSlot.js getSlotMetrics() method and blow it all up.

@jquense I sent you an email, a few weeks back, asking about sponsoring full timezone support in RBC. Did you receive it?

@cutterbl My guess is that the issue is the date manipulation library doesn't preserve or handle TZs correctly. One possible approach to fixing that is abstract manipulation (optionally) into the localizers, so that add/subtract etc. can be provided by the underlying date library. This would probably be pretty straightforward for Moment, since date-arithmetic copies it's API. For other localizers if the methods are implemented just fall back to the current behavior etc

@cutterbl Hi, any updates?

@egorkavin I haven't had any time to look into this myself. It's on my radar to take a pass at it in the future, if somebody doesn't get there first.

Is it possible to stop overlapping of multiple events in single time slot?

@Gaurav7004 Yes, using the dayLayoutAlgorithm prop


Bug in forward

Hi, I am trying to run your code, and find a bug.
As you can see, the batch_size of images_unsup_strong is 1, which is not allowed in BatchNorm2d when the model is on train mode.
https://github.com/hzhupku/SemiSeg-AEL/blob/main/train.py#L351
The information for the bug is
File "../../train.py", line 497, in <module>
    main()
  File "../../train.py", line 134, in main
    labeled_epoch, model_teacher, trainloader_unsup, criterion_cons, class_criterion, cutmix_bank)
  File "../../train.py", line 344, in train
    preds_student_unsup = model(images_unsup_strong)
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/parallel/distributed.py", line 705, in forward
    output = self.module(*inputs[0], **kwargs[0])
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/mnt/lustre/wanghaochen/semiseg/semseg/models/model_helper.py", line 48, in forward
    pred_head = self.decoder([f1, f2,feat1, feat2])
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/mnt/lustre/wanghaochen/semiseg/semseg/models/decoder.py", line 54, in forward
    aspp_out = self.aspp(x4)
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/mnt/lustre/wanghaochen/semiseg/semseg/models/base.py", line 46, in forward
    feat1 = F.upsample(self.conv1(x), size=(h, w), mode='bilinear', align_corners=True)
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/modules/container.py", line 119, in forward
    input = module(input)
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/modules/batchnorm.py", line 539, in forward
    bn_training, exponential_average_factor, self.eps)
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/functional.py", line 2147, in batch_norm
    _verify_batch_size(input.size())
  File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/nn/functional.py", line 2114, in _verify_batch_size
    raise ValueError("Expected more than 1 value per channel when training, got input size {}".format(size))
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256, 1, 1])

Did you change the batch size?

Hi @Haochen-Wang409,
I also meet this bug, do you solve it?

Hi,Did you solve the question?

Oh, I have solved the problem by using multi-GPUs, i.e., python -m torch.distributed.launch.

@Haochen-Wang409 thank you! Is there a better way to avoid using distributed training?


Issue 208

fixed environment stop controller to remove any artifacts that are created by the environment driver during the run
add environment stop to the task stop controller

Pull Request Test Coverage Report for Build 767

22 of 25 (88.0%)  changed or added relevant lines in 6 files are covered.
55 unchanged lines in 17 files lost coverage.
Overall coverage increased (+0.02%) to 87.598%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

datmo/cli/command/workspace.py
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

datmo/snapshot.py
1
83.33%

datmo/cli/command/base.py
1
90.38%

datmo/cli/command/workspace.py
2
23.08%

datmo/cli/command/datmo_command.py
2
100.0%

datmo/core/controller/file/driver/local.py
2
91.8%

datmo/cli/command/run.py
2
72.73%

datmo/task.py
2
93.28%

datmo/core/controller/code/driver/file.py
2
95.32%

datmo/cli/command/snapshot.py
2
100.0%

datmo/core/util/i18n.py
2
100.0%

Totals

Change from base Build 755:
0.02%

Covered Lines:
3906

Relevant Lines:
4459

💛  - Coveralls


Improve styling for consecutive notes

This is a Feature Request

What would you like to be added
Add CSS styling that makes notes look compact, or otherwise improves the presentation, when there is more than one
note right next to each other in the page.
Why is this needed
Have a look at https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/
There are three notes. Today they look like:

I think we can improve on that and make the three notes look like they were planned to be a series. When you pick this up, part of your work is to design what that might look like.
Optionally, we can provide a way for a note to break the series and start a new one. I don't know if we'd ever need that; anyway, it's possible.
Comments
CSS has an adjacent sibling combinator for selectors. The :has() pseudoclass is not yet widely supported, but might help with small tweaks.
/area web-development

Is this issue open?

Is this issue open?

Yes:

However, we haven't agreed as a SIG that this is accepted for work.
Because Kubernetes is open source, you can still begin an implementation if you'd like to.

Sure, I would like to take a stab at this.

@sftim i would like to work on it can i make a dotted list of note to be appear as they were planned to be in series ?

@sftim i would like to work on it

OK, noted.

can i make a dotted list of note to be appear as they were planned to be in series ?

You're very welcome to send in a pull request with a proposed fix, we'd love to see how that looks in a preview. Anyone else is welcome too - this is open source.

Is anyone working on this.

/assign

/remove-lifecycle stale


Keycloak Server wrong event store provider config

Rename eventStore to eventsStore.
https://issues.jboss.org/browse/SWARM-1240

Okay to test

Can one of the admins verify this patch?

Can one of the admins verify this patch?


Initialization timeout, failed to initialize

root@host-10-0-0-14:~# docker run -d --net=host -v /etc/ceph:/etc/ceph -e MON_IP=<IP_ADDRESS> -e CEPH_PUBLIC_NETWORK=<IP_ADDRESS>/24 ceph/demo
a3321354d378781a2d5ec7bc45a5e85022293098efd2daad724d07344dba99c6
root@host-10-0-0-14:~# docker logs a3321354d378781a2d5ec7bc45a5e85022293098efd2daad724d07344dba99c6
ERROR- /etc/ceph/ceph.monmap must exist.  You can extract it from your current monitor by running 'ceph --cluster ceph mon getmap -o /tmp/monmap'
when i run the cmd : ceph --cluster ceph mon getmap -o /tmp/monmap nothing responsed
root@vultr:~/ceph-docker# ls -l /etc/ceph/
total 20
-rw------- 1 root root 137 Oct 13 11:04 ceph.client.admin.keyring
-rw-r--r-- 1 root root 369 Oct 13 11:08 ceph.conf
-rw------- 1 ceph ceph  77 Oct 13 11:04 ceph.mon.keyring
-rw-r--r-- 1 ceph ceph 197 Oct 13 11:04 monmap-ceph
-rw-r--r-- 1 root root  92 Jul 21 18:12 rbdmap

Is it a left over?
monmap-ceph is the format used by the ceph/daemon image. ceph/demo just sets ${CLUSTER}.monmap. Can you purge /etc/ceph and retry?

@leseb new error
root@vultr:~# docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                    PORTS               NAMES
bbc3953f85d9        daemon              "/entrypoint.sh rgw"     13 hours ago        Exited (1) 13 hours ago                       ceph-rgw
b645520f2a81        daemon              "/entrypoint.sh mds"     14 hours ago        Up 14 hours                                   ceph-mds
ea60ba7e5530        daemon              "/entrypoint.sh osd_d"   14 hours ago        Up 14 hours                                   ceph-osd
57dfd02ca0ed        daemon              "/entrypoint.sh mon"     14 hours ago        Up 14 hours                                   ceph-mon
root@vultr:~# docker logs bbc3953f85d9
static: does not generate config
HEALTH_WARN 80 pgs degraded; 80 pgs undersized; 35 requests are blocked > 32 sec
2016-10-13 12:05:25.238040 7fd1b6aaa900  0 framework conf key: port, val: 8080
2016-10-13 12:05:25.238654 7fd1b6aaa900  0 deferred set uid:gid to 64045:64045 (ceph:ceph)
2016-10-13 12:05:25.238681 7fd1b6aaa900  0 ceph version 10.2.3 (ecc23778eb545d8dd55e2e4735b53cc93f92e65b), process radosgw, pid 59
2016-10-13 12:05:25.251069 7fd1b6aaa900  0 error in read_id for id  : (2) No such file or directory
2016-10-13 12:05:25.251491 7fd1b6aaa900  0 error in read_id for id  : (2) No such file or directory
2016-10-13 12:10:25.238829 7fd19a8cd700 -1 Initialization timeout, failed to initialize

dear @leseb , I can not fix this error , help me!!!
root@docker-ceph-node:~# docker --version
Docker version 1.12.2, build bb80604
root@docker-ceph-node:~#
root@docker-ceph-node:~# uname -a
Linux docker-ceph-node 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
root@docker-ceph-node:~#
root@docker-ceph-node:~# docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS                     PORTS               NAMES
9d16f49977c2        ceph/daemon         "/entrypoint.sh osd_d"   About a minute ago   Up About a minute                              ceph-osd-2
17c14681a82a        ceph/daemon         "/entrypoint.sh rgw"     8 minutes ago        Exited (1) 3 minutes ago                       ceph-rgw
5accdf8bc5b8        ceph/daemon         "/entrypoint.sh mds"     8 minutes ago        Up 8 minutes                                   ceph-mds
932ac9576558        ceph/daemon         "/entrypoint.sh osd_d"   8 minutes ago        Up 8 minutes                                   ceph-osd-1
774faa9e2fd3        ceph/daemon         "/entrypoint.sh mon"     53 minutes ago       Up 53 minutes                                  ceph-mon
root@docker-ceph-node:~#
root@docker-ceph-node:~# docker exec ceph-mon ceph -s
    cluster bacfaf43-13d5-4765-9116-8ea4cdb7f88c
     health HEALTH_ERR
            88 pgs are stuck inactive for more than 300 seconds
            88 pgs degraded
            88 pgs stuck inactive
            88 pgs undersized
            36 requests are blocked > 32 sec
     monmap e1: 1 mons at {docker-ceph-node=<IP_ADDRESS>:6789/0}
            election epoch 3, quorum 0 docker-ceph-node
      fsmap e6: 1/1/1 up {0=mds-docker-ceph-node=up:creating}
     osdmap e20: 2 osds: 2 up, 2 in
            flags sortbitwise
      pgmap v67: 88 pgs, 4 pools, 0 bytes data, 0 objects
            267 MB used, 81608 MB / 81876 MB avail
                  88 undersized+degraded+peered
root@docker-ceph-node:~#
root@docker-ceph-node:~# docker logs 17c14681a82a
static: does not generate config
HEALTH_ERR 88 pgs are stuck inactive for more than 300 seconds; 88 pgs degraded; 88 pgs stuck inactive; 88 pgs undersized
2016-10-14 08:07:07.187819 7f655c8b3900  0 deferred set uid:gid to 64045:64045 (ceph:ceph)
2016-10-14 08:07:07.187886 7f655c8b3900  0 ceph version 10.2.3 (ecc23778eb545d8dd55e2e4735b53cc93f92e65b), process radosgw, pid 59
2016-10-14 08:12:07.188325 7f65406d6700 -1 Initialization timeout, failed to initialize

Error fixed! when i change the osd pool min_size to 1 and restart the ceph-rgw service , All going well.. Thanks all the same.

@iliul
Thanks


Game crashes when mining nodes

Since the latest update, Minetest is now crashing.  Nodes are showing as unknown nodes and when I try to mine the node, the game crashes with the following error message:
AsyncErr: Lua: Runtime error from mod '' in callback node_on_punch(): ...5.4.1 -win64\minetest\bin..\mods\resource_crops/lib.lua:32: attempt to index local 'def' (a nil value)
stack traceback:
...5.4.1 -win64\minetest\bin..\mods\resource_crops/lib.lua:32: in function 'check_crop_node'
....4.1 -win64\minetest\bin..\mods\resource_crops/base.lua:62: in function 'callback'
...etest 5.4.1 -win64\minetest\bin..\builtin\game\item.lua:407: in function <...etest 5.4.1 -win64\minetest\bin..\builtin\game\item.lua:400>

This looks like an issue with missing aliases since several nodes were renamed in the last update. I will look into it later this week when I have more time, thanks for letting me know!
If you can, please let me know which nodes caused the issue. You can disable "punch to harvest" in the Minetest settings under Resource Crops in the Mods category because I think that calls the crashing function, and then punching the unknown node should print a message to the Minetest log.
If you can't do that, sending me the world would really help me fix the bug causing unknown nodes and I should be able to restore them by updating the mod.

I just published v2.0.1 here on github and in Minetest / ContentDB. I don't know what unknown nodes you found or if I can fix that, but I fixed punching them crashing the game.
Please update and let me know if the node name shown when you punch the unknown node is from this mod so I can fix that too!


Car Object Detection Using DL

Pull Request for DL-Simplified 💡
Issue Title : Car Object Detection Using DL

Info about the related issue (Aim of the project) : The aim of the project is to detect the cars in the given images.
Name: Rithish S
GitHub ID: https://www.gihub.com/Rithish5513U
Email ID<EMAIL_ADDRESS>Idenitfy yourself: (Mention in which program you are contributing in. Eg. For a JWOC 2022 participant it's, JWOC Participant) GSSoc'24 Contributor

Closes: #241
Describe the add-ons or changes you've made 📃
I have created 3 models and compared their accuracy for the given task of detecting cars. The models I have trained are Yolov8, mobilenet ssd and vgg16.
Type of change ☑
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested? ⚙
I have tested each models based on their accuracy and loss functions.
Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

@abhisheks008 First of all sorry for wrong description title, it is because I edited this readme from that one and second what EDA are u mentioning here, there are only images, whether to add images to show bounding boxes over car or some other??

@abhisheks008 First of all sorry for wrong description title, it is because I edited this readme from that one and second what EDA are u mentioning here, there are only images, whether to add images to show bounding boxes over car or some other??

If you have nothing to show in the EDA you can show some dataset images of your choice.

Done with the changes?
@Rithish5513U

Yes now check it if any further changes required let me know
@abhisheks008

@Rithish5513U Hey bro 👋
I have seen your work , i have small doubt like did you use VGG19 to directly predict the bounding boxes?

@Rithish5513U Hey bro 👋 I have seen your work , i have small doubt like did you use VGG19 to directly predict the bounding boxes?

No there will be a seperate csv file for bounding boxes. You should draw those lines using cv2 first and then train your model

@Rithish5513U Yeah means your target labels were those annotations given the image right ?

@Rithish5513U Yeah sure , I wanted to know because i had done a similar project of Bone fracture detection model and i found it difficult like the tensorflow object detection API is still under development stage and there arent many pre trained models available. I used YoloV8 of ultralytics and detectron model

@Rithish5513U Yeah sure , I wanted to know because i had done a similar project of Bone fracture detection model and i found it difficult like the tensorflow object detection API is still under development stage and there arent many pre trained models available. I used YoloV8 of ultralytics and detectron model

Mm I don't know much about detectron model wanna learn about that too if possible


Fix dupe bug about Melter and accelerate mods

I first reported it and got fixed in a universal fix mod, so you can check it out for info and possible fixes
https://github.com/LXGaming/Sledgehammer/issues/38

If I didn't understand it wrong,this bug would be fixed in the overhauled version?

Yep I implemented the fix in the config overhaul branch. There is one more config option I want to implement, then everything will be merged back into the main branch.


⚠ ClamAV has degraded performance

In cafa3b7, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 69 ms

Resolved: ClamAV performance has improved in 1a35bc7.


I get an error while running a jupyter notebok file in vs code.

Whenever I run my Jupiter notebook files ,i get an error "This editor is deprecated and we'll remove it after 1.59 of VS Code. Learn more about our new notebook editor."  Please Help.
Link to the screenshot (error):
https://ibb.co/KbJLZqt
My vs code info Version: 1.59.0 (user setup)
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:13:12.822Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.19043
Python 3.9.6.

@Defcon404, this is by design. This old notebook experience will be removed in a version shipping after v1.59.

@greazer So, can I ignore this message? This message doesn't means that no longer support of 'vscode-jupyter', right?

but this header is extremely ugly, is there any way to remove it before a further release of vscode?

Is there anything one can do to get the "new" experience without waiting for the next release? Reading the linked post it seems like the transition was already made. Apparently, this is not the case for users who get this warning.
The release notes for july state "This month, we moved the code that handles reading *.ipynb files from the Jupyter Notebook extension into a new built-in extension."
Are there currently two notebook editors around, depending on whether or not one has the Jupyter Notebook extension installed?

The ugly banner is a bit misleading. Why warn if there is no alternative available right now?

I agree @thusithaC . Why is there a banner when I am using latest version, I can't even close the banner

If I create a new notebook it shows me the new UI. But, when I open the notebook by double click it just switches to the old ugly UI.

If I create a new notebook it shows me the new UI. But, when I open the notebook by double click it just switches to the old ugly UI.

same problem here

I have the same issue on one computer but another computer seems to run the new editor by default, and does everything described above including working differently when creating a new file.
Both computers are Windows 10 64-bit, release versions of VS Code and jupyter plugin. I can't find any significant differences in settings. There are no output messages that I can find. I'm out of ideas as to what to try next.

If I create a new notebook it shows me the new UI. But, when I open the notebook by double click it just switches to the old ugly UI.

same problem here

The same issue.

For all who have the same issue, I found a solution to get rid of this warning temporarily by using the new notebook editor. You may right click on the notebook file and select "Open in Notebook Editor", and the notebook will be launched in the new notebook UI.

Well, I found an easy way to get rid of this. In VSCode, right click on your_notebook.ipynb then click open with, after that you'll have like this:

Now click on the last option Configure default editor for '*ipynb', the last one and then select Jupyter Notebook (Built-in) the second option from the drop down.
Now you'll have the new UI by default, no need to change again and again.

I don't have the "built-in" option there. Does anyone know how to fix it?

Well, I found an easy way to get rid of this. In VSCode, right click on your_notebook.ipynb then click open with, after that you'll have like this:

Now click on the last option Configure default editor for '*ipynb', the last one and then select Jupyter Notebook (Built-in) the second option from the drop down.
Now you'll have the new UI by default, no need to change again and again.

Thank you,  shah-xad, this seems to be a correct solution! This is the configuration option that I spent some time looking for, but I never found it.

I don't have the "built-in" option there. Does anyone know how to fix it?

Well, I found an easy way to get rid of this. In VSCode, right click on your_notebook.ipynb then click open with, after that you'll have like this:

Now click on the last option Configure default editor for '*ipynb', the last one and then select Jupyter Notebook (Built-in) the second option from the drop down.
Now you'll have the new UI by default, no need to change again and again.

I have the same problem. There is no "built in" option on one of my computers. seems to be a bug.

@R3dW1ne @rubkboy7, I am not sure but check if you're using Vscode version 1.59.0, if it's not, try to update it.

@R3dW1ne @rubkboy7, I am not sure but check if you're using Vscode version 1.59.0, if it's not, try to update it.

Thanks @shah-xad, but I've already tried a lot.  Control of the VS Code version, reinstallation of vscode, reinstallation of all extensions, change and reinstallation of the python interpreter .. Funnily enough, it only affects one of three windows 10 devices on which I have installed vscode.

@R3dW1ne @rubkboy7, I am not sure but check if you're using Vscode version 1.59.0, if it's not, try to update it.

Thanks @shah-xad, but I've already tried a lot. Control of the VS Code version, reinstallation of vscode, reinstallation of all extensions, change and reinstallation of the python interpreter .. Funnily enough, it only affects one of three windows 10 devices on which I have installed vscode.

If you still have the problem with "Built-in Notebook", try going into the Settings ––> Commonly Used ––> Files: Associations ––> Reset / remove .ipynb
It worked for me, hope it will for you.

Well, I found an easy way to get rid of this. In VSCode, right-click on your_notebook.ipynb then click open with, after that you'll have like this:

Now click on the last option Configure default editor for '*ipynb' and then select Jupyter Notebook (Built-in) the second option from the drop-down.
Now you'll have the new UI by default, no need to change again and again.

Thank you so much, that helped a lot. Now I have the new editor opening by default


Expose an endpoint that has the runtime version that main portal should use

This way, Portal can always be up to date with Functions Portal

New API is /api/latestruntime.


Re-resolve hostnames as fallback when control connection is broken

Motivation
See the referenced issue (#756).
What's done
Main matter

fallback logic is introduced to read_metadata().
This is the crucial step in boosting the driver's robustness in case of sudden IP changes in the cluster. In case that the control connection fails to fetch metadata, after all known peers fail to be queried, the fallback phase is entered: addresses of all initially known nodes are resolved again and fetching metadata from them is attempted.
Until now, if all nodes in the cluster changed their IPs at once (which is particularly easy in a single-node cluster), the driver was unable to contact the cluster ever more. Now, the driver reconnects the control connection with the next metadata fetch attempt (after at most 60 seconds, as configured in ClusterWorker), fetches new topology, discovers all nodes' addresses and finally connects to them.
control connection reconnect attempts are more frequent.
If the control connection is faulty and hence metadata fetch fails, it is advisable that further attempts to reconnect and fetch take place more frequently. The motivation is: if the control connection fails, it is possible that the node has changed its IP and hence we need to fetch new metadata ASAP to discover its new address. Therefore, the ClusterWorker's sleep time is changed from 60 seconds to 1 second once a metadata fetch fails, and is only reverted back to 60 seconds after a fetch succeeds.
control connection reconnect attempt begins immediately after it breaks.
Until now, if the control connection node changed it IP, we would discover that node only after the next metadata fetch is issued, which would possibly happen only after 60 seconds (if previous fetch succeeded). To make the rediscovery faster, immediate signalling that the control connection got broken is introduced, so that ClusterWorker begins instantly its every-1-second-attempt phase.

Bonus

ContactPoint is renamed to ResolvedContactPoint, to stress its difference from KnownNode (which is an unresolved contact point, essentially).
various node-related structs (ResolvedContactPoint, KnownNode, CloudEndpoint) and hostname resolution-related routines are moved from cluster and session modules to the node module. This contributes to making the session module cleaner, as well as keeps those entities in the most conceptually related module.

Evaluation
Manual tests were conducted. They were identical to ones performed before merging the analogous enhancement to gocql. Both single- and multi-node clusters were tested.
The tests involved random connection breaks between arbitrary nodes and the driver, as well as changes of IPs of all the nodes in the cluster at once.
The implemented solution showed to be very robust in the tests: immediately after losing control connection, the reconnect-attempt-phase begins. As soon as any node (either one known initially or one known from recently fetched metadata) becomes reachable, a control connection is opened and metadata is fetched successfully, so the whole cluster is discoverable. The driver performed stable, with no fluctuations in behaviour over time.
Fixes: #756
Refs: #386
Pre-review checklist

[x] I have split my patch into logically separate commits.
[x] All commit messages clearly explain what they change and why.
[ ] I added relevant tests for new features and bug fixes.
[x] All commits compile, pass static checks and pass test.
[x] PR description sums up the changes and reasons why they should be introduced.
[ ] I have provided docstrings for the public items that I want to introduce.
[ ] I have adjusted the documentation in ./docs/source/.
[x] I added appropriate Fixes: annotations to PR description.

Rebased on main.

Rebased on main.

@piodul Rebased on main.


ERROR in node_modules/@coreui/angular/lib/sidebar/app-sidebar.service.d.ts(7,20): error TS1005: ';' expected.

I'm getting this error on angular application built on v6 while executing 'ng-serve', any fix?
My package.json
{   "name": "@coreui/coreui-free-angular-admin-template",   "version": "2.0.0-beta.5",   "description": "CoreUI Free Angular 2+ Admin Template",   "author": {     "name": "Łukasz Holeczek",     "url": "http://holeczek.pl",     "github": "https://github.com/mrholek",     "twitter": "https://twitter.com/lukaszholeczek"   },   "contributors": [     {       "name": "Andrzej Kopański",       "url": "https://github.com/xidedix"     }   ],   "homepage": "https://coreui.io/angular",   "copyright": "Copyright 2018 creativeLabs Łukasz Holeczek",   "license": "MIT",   "scripts": {     "ng": "ng",     "start": "ng serve",     "build": "ng build --prod",     "test": "ng test",     "lint": "ng lint",     "e2e": "ng e2e"   },   "private": true,   "dependencies": {     "@angular/animations": "^6.1.10",     "@angular/common": "6.0.2",     "@angular/compiler": "6.0.2",     "@angular/core": "6.0.2",     "@angular/forms": "6.0.2",     "@angular/http": "6.0.2",     "@angular/platform-browser": "6.0.2",     "@angular/platform-browser-dynamic": "6.0.2",     "@angular/router": "6.0.2",     "@coreui/angular": "^2.13.1",     "@coreui/coreui": "^2.1.16",     "@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.3.1",     "@coreui/icons": "^0.1.1",     "@ng-bootstrap/ng-bootstrap": "^2.2.2",     "@ngx-loading-bar/core": "^2.0.0",     "@ngx-loading-bar/http": "^2.0.0",     "@ngx-loading-bar/http-client": "^2.0.0",     "@ngx-loading-bar/router": "^2.0.0",     "@ngx-translate/core": "^10.0.2",     "@ngx-translate/http-loader": "^3.0.1",     "@types/googlemaps": "^3.43.3",     "@types/moment": "^2.13.0",     "ag-grid-angular": "^23.0.3",     "ag-grid-community": "^23.2.1",     "angular-gtag": "^1.0.3",     "angular-highcharts": "^10.0.1",     "angular-material-fileupload": "0.0.11",     "angular2-cookie": "^1.2.6",     "angular2-spinner": "^1.0.10",     "chart.js": "2.7.2",     "chartjs-plugin-datalabels": "^0.4.0",     "core-js": "2.5.6",     "crypto-js": "^3.1.9-1",     "file-saver": "^2.0.2",     "flag-icon-css": "3.0.0",     "font-awesome": "^4.7.0",     "hammerjs": "^2.0.8",     "highcharts": "^6.2.0",     "moment": "^2.29.3",     "mutationobserver-shim": "^0.3.2",     "ng-image-slider": "^1.3.7",     "ng2-charts": "1.6.0",     "ngx-bootstrap": "2.0.5",     "ngx-custom-validators": "^8.0.0",     "ngx-perfect-scrollbar": "6.0.0",     "ngx-select-dropdown": "^0.4.1",     "ngx-toastr": "^8.7.3",     "rxjs": "6.1.0",     "rxjs-compat": "6.1.0",     "simple-line-icons": "^2.4.1",     "ts-helpers": "1.1.2",     "xlsx": "^0.15.3",     "zone.js": "0.8.26"   },   "devDependencies": {     "@angular-devkit/build-angular": "^0.6.8",     "@angular/cli": "^6.0.8",     "@angular/compiler-cli": "6.0.2",     "@angular/language-service": "6.0.2",     "@types/crypto-js": "^3.1.47",     "@types/jasmine": "2.8.7",     "@types/jasminewd2": "2.0.3",     "@types/node": "10.1.0",     "codelyzer": "4.3.0",     "jasmine-core": "3.1.0",     "jasmine-spec-reporter": "4.2.1",     "karma": "2.0.2",     "karma-chrome-launcher": "2.2.0",     "karma-coverage-istanbul-reporter": "1.4.2",     "karma-jasmine": "1.1.2",     "karma-jasmine-html-reporter": "1.1.0",     "protractor": "5.3.2",     "ts-node": "6.0.3",     "tslint": "5.10.0",     "typescript": "2.7.2"   },   "engines": {     "node": ">= 8.9.4",     "npm": ">= 5.6.0"   } }

@hammadakhan any reason for use so much obsolete version?

@hammadakhan any reason for use so much obsolete version?

@xidedix I'm just assigned to this project which was built 3 years ago. Should I upgrade to v4?

@hammadakhan I'd rather update the Angular version

@coreui/angular v2.13.1 is for Angular 13 and Typescript 4.5.x


Clarify #[js_export] target requirements

Saw in the README.md that I could do this, spent some time trying and failing to make it work. When I found the hasher example was doing this, I read in its README that #[js_export] was only supported on wasm32-unknown-unknown.
I need Emscripten. Is #[js_export] not supported there? If not, are there any examples of exporting Rust functions on Emscripten? Not sure if that's even relevant to this crate, but it's documented without any limitations in the main README, so I thought I'd note the possible need for a caveat. :)
Thanks.

It is possible to export functions on emscripten backends, although it isn't really officially supported. For example:
fn your_function_to_export() { ... }
fn main() {
    js! {
        window.your_library = {};
        window.your_library.your_function = @{four_function_to_export};
    }
    stdweb::event_loop();
}

and then you can just call it:
window.your_library.your_function();

Basically, since you can pass a callback into the js! macro there is nothing stopping you from assigning it to some global object and then calling it from JavaScript. You just need to call stdweb::event_loop before you exit main to make sure Rust's runtime won't get deinitialized.

Interesting. Does this work similarly if I want to use my library as a
Node module, subbing globals for window? Do I still need the event
loop in that case?
Are js_serializable! and js_deserializable! still useful in Emscripten?
Thanks for the help!

I guess you couldn't just use globals under Node since that'd write to
the global namespace on import. That's what I get for dashing out ideas
before caffeine. :)

Does this work similarly if I want to use my library as a Node module, subbing globals for window?

For a nodejs module I'd guess you'd want to assign those to module.exports instead?

Do I still need the event loop in that case?

I'm not 100% certain when it's actually really necessary (when I tested it sometimes it was, and sometimes it wasn't.), but basically yes.

Are js_serializable! and js_deserializable! still useful in Emscripten?

Yes they are. I think that anything you can mark as #[js_export] you should be able to pass into a js! macro as a callback.


Typeahead inconsistent behavior on contextmenu in different browsers (Firefox)

Hi!
I've faced with issue that when typeahead dropdown is shown and on contextmenu (right click) triggered at any page area, it forces to close dropdown in FF, in Chrome dropdown still shown.

Note: this can be observed on the typeahead section on the homepage for the project.


Unable to send - Transaction was rejected by network rules

I tried to send from Electron Wallet and received this error.  This is the second time.  The first time, the transaction showed up as unconfirmed but reversed about 12 hours later.  This time it's been a couple of days and it's still 'unconfirmed' and unavailable to me.
Screenshots below:
https://i.imgur.com/pCVS5vU.png
https://i.imgur.com/WE0sx5H.png
Attempting to view the transaction on blockchair produces a 404 error.
I'm on 2.9.2 and am about to get 2.9.3.
These coins are pre-fork.  I was able to send them to electrum no hassle.  But i'm unable to send them out.

So I was reading about others who were having issues with sending on a 2fa enabled wallet... I decided to rebuild mine from seed and it's just finished... except it still shows '2fa' at the top despite me opting not to use 2fa.
https://i.imgur.com/O8DM8zL.png

Just tried 2.9.3 and looks exactly the same.  Going to try rebuild with seed now.

This keeps coming up (how to "remove 2fa"). I looked through reddit posts, but couldn't find any instructions on how to do this. I don't have any 2fa wallets myself, so I can't figure it out, either.
Anyone?

For a lot of users, the real issue is the fact that after this error, your cash is gone / unavailable / in limbo.  It's been more than three days now.

So now it's magically reversed and the funds are 'available' except that I can't seem to create a non-2fa wallet before attempting to send cash :/
Any progress on that issue?

In an effort to reduce the number of tickets, I kindly ask all 2fa issues be discussed here: #41


[mongodb] Add separate affinity for arbiter pod

Signed-off-by: Chirica Gheorghe<EMAIL_ADDRESS>
What this PR does / why we need it:
Add a separate affinity for the arbiter pod. Useful l when we want to deploy nodes from arbiter separately and have more control over it.
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/ok-to-test
/lgtm

Hi, thanks for your contribution.
A new version appeared in the last hours so you need to bump the version in the Chart.yaml again, that is the reason for the failing test.

@carrodher Done.

@carrodher Can you check it?

/lgtm


docs: fix luarocks.nvim example

fixes doc issue from #142

want to fix a few other issues as well

@3rd sorry for those oversights. TIL details tags mess up

[!NOTE]
these things

Thank you so much <3
Sorry, I've been a bit offline, gonna be on and off until next week, couldn't join the discussions as much as I'd like to.
Thanks for everything :hug:


WireGuard Peer Generator - Instance not being assigned to the new peer

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

To Reproduce
On the Peer Generator page, I have an Instance selected. When I click Store and generate next and then check the Peers page, the Instance has not been assigned to the new peer. All other values appear to be correctly input to the new peer.
Expected behavior
The instance from the peer generator should be assigned to the newly generated peer.
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense OPNsense 24.1.5_1-amd64

duplicate https://github.com/opnsense/core/issues/7356


Keep Markup plugin has contents shifted

Information:

Prism version: latest from the download page
Plugins: Keep Markup
Environment: Chrome

Description
I am working in a pre-built cloud tool, so I do not have access to adjust certain things. Within the tool, there is a "global search" page which returns HTML showing where your query text shows up across the tool.
It returns HTML pre tags with the text content of the pre tag being the proprietary language of the tool. Anywhere within that pre tag, your query text shows up wrapped in a span tag with class "highlighted".
example when I search for text "true":

if(find(showLineGridColumns_t,"List Price")==-1){
    return true;
}
return false;

What I've done to enhance this tool, is after the page loads, I wrap the inner contents of the pre tags with a code tag and then apply Prism using the highlightAll method. Worked great, but I lost the original highlights for the search query text.
So, I loaded in Keep Markup plugin and tried again. Now, I'm seeing the original highlights shifting to later text in the string, not matching the query text.
example of the shift (I took out the regular "token" tags):
if(massApplyFunction_t == "Country"){
    return true;
}
return false;

This example shows it off by one character, but it varies. Sometimes its many characters off.

Any ideas?

Cannot reproduce.
Could please attach a small example project that reproduces the issue?
Also, the language you're using doesn't seem to highlight elif as a keyword. Is this a bug in Prims or did you use the wrong language?

I encountered the same issue with versions 1.17.1 and 1.22.0. It seems that the problem came from an incompatibility with the remove-initial-line-feed plugin. I solved this issue by replacing the remove-initial-line-feed plugin by the normalize-whitespace plugin.

Makes sense. If there's any additional issues, let us know and we can reopen but I don't think there's anything actionable here.

Makes sense. If there's any additional issues, let us know and we can reopen but I don't think there's anything actionable here.

Yep. I reproduced in conjunction with command line plugin.
Information:

Prism version: PrismJS 1.29.0
Plugins: https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash&plugins=line-numbers+keep-markup+command-line+unescaped-markup+normalize-whitespace+match-braces+treeview
Environment: browser

Description
The preserved html tag is indeed missplaced when multiple plugins interract and text rearrangements take place.
Example
https://codepen.io/windymindy/pen/XWqBaBX reproduces the bug
https://codepen.io/windymindy/pen/RwyBZYQ works just fine

@windymindy Could you please open a new issue for this? Since your issue seems to be caused by plugin incompatibility, I think we should treat this as a new bug.


The service is unavailable (no new deployment)

Describe the bug
SWA api unavailable. Worked fine 40 minutes ago and now "The service is unavailable."
SWA insights unavailable also
Expected behavior
No regression on already deployed swa.
Screenshots

It seems that "sometimes" (who knows why...) the "proxy" between SWA and its managed functions crashes.
Then, functions are unavailable (nor insights).
Few minutes later, it comes back.
We had same issue on another project a year and had to separate functions from swa (azure team never figured out what was happening and had no logs of "unavailability" even if present in azure portal)

We had issues today as well. After a few minutes, we could successfully rerun our jobs...
https://github.com/kordis-leitstelle/kordis/actions/runs/4436605881/jobs/7785236531


Containerize ingestion service

Acceptance Criteria :

Put the ingestion service designed into a closed container

Technical Notes :

use Docker

Looks good


Where do we find the habitat_baselines.run file so that we can start training?

🐛 Bug
Hi, the readme suggest we train in this way, but where is the habitat_baselines.run file?

sorry, found it.


ci: Fix package deletions with GitHub Token

AsIs
Though jobs of snok/container-retention-policy@v2 have been passed, we got following errors in the logs with using token-type: github-token.
Couldn't delete bennu-official:173840919.
Status code: 404
Response: {'message': 'Package not found.', 'documentation_url': 'https://docs.github.com/rest/packages/packages#delete-a-package-version-for-the-authenticated-user'}

ToDo
Seems this is related to permission of GitHub Token used in workflow configs, need to check its default permission, since snok/container-retention-policy@v2 requires to some scopes.

Specifically, you need to grant it the following scopes:
read:packages, and delete:packages

(Optional) Acceptance criteria
Confirm image will actually removed, and no error in log output of the job.
(Optional) Additional contexts
Issue(s): #123
PR(s): #138 , #140

Researching the repo, it seems that we could not delete container packages with secret.GITHUB_TOKEN and the actions have not supported this operations, though the issue about this have been raised in the repo snok/container-retention-policy.
So for fixing this, we have to switch token-type from github-token to default pat with generating PAT in the personal settings.

Confirmed that we have been successfully cleaned up staled images, which are created 1 day ago, so will close the issue for now. Note that we provided 1 days ago as cut-off value, so the images created within a day have been remained.


When will you cut a new release since v1.2.1 contains a critical vuln CVE-2024-41110 which it looks like fixed in the main branch?

Request
Vuln scanners reported a critical CVE in grafana alloy v1.2.1 about:

github.com/docker/docker               v25.0.5+incompatible     26.1.4    go-module  GHSA-v23v-6jw2-98fq  Critical

which is seem to fix in the main branch https://github.com/grafana/alloy/blob/main/go.mod#L32
so as I don't know the release schedule, are you going to cut a new release soon to fix this CVE?
Thank you
Use case
to fix a CVE

The v1.3.0 should be coming within the next week. You can see release cadence here. For questions in the future, please use Slack or our community site, because we use GitHub issues for bugs and feature requests rather than questions, thanks!

ah thank you, sorry about that, I didn't notice that earlier!


Create an external Committee to represent the community

Unfortunately we have had many prominent figures leave the Flutter development team in the recent years. Almost all founding fathers like @Hixie, @abarth, @eseidel have left (sorry if I am forgetting others), also @timsneath left and he's working for a very prominent player in the mobile apps sector.
We also have many industry leaders using Flutter right now, which means any change in the Framework will affect their budget for better or worse.
Flutter is an open source project, with lots of its parts driven by the community. During @timsneath time Flutter pushed for more openness, releasing regularly its long term goals and strategies.
I believe, and would like to ask for others opinions and views on this, that right now Flutter also needs a Committee, of independent actors, that can influence and represent the general community. Many open-source projects have Committees, this shows maturity, stability, openness and support, which are values we like about Flutter.
Thereby, I think it would be very positive for Google to allow the creation of an independent Committee, that could serve as advisors for vision, strategy and to raise concerns.
I would ask, if possible, to add into the Committee the prominent people that left the project, since they have the strategic and technical visions we need in Flutter. I imagine most of them departed in good terms and would be welcomed back in an independent position like this.

I know this is not a technical issue, but please don't close this, since github isses are the main/open/documented communication channel for Flutter.

Anyone should be able to participate in Flutter, regardless of their employer (a fact that @Hixie will certainly put to the test in the coming months). The discord is open to contributors and the process for sponsorship does not require Googles consent
It's not clear to me what specific problems an "external committee" would solve. I would also like to push back against the framing as being "external" to Google mattering. Anyone can be a part of Flutter. If you want to be part of the decision making process, the first step is to roll up your sleeves and get to work.

@jonahwilliams how's the process for putting up documents like https://flutter.dev/go/strategy-2023? Are devs in the discord channel asked about their opinions? I know the general day-to-day work can be scrutinized, but the long term strategy and roadmap I imagined was more a "closed doors" process, since this usually have to align with Google's internal customers/projects, which are private.
I remember the first time Tim released such a document, he said he couldn't reveal everything, since there were internal matters that couldn't be disclosed, and I think this is very reasonable, so a Commitee could help in a situation like this, representing the community in private matters.
My main concern is how Flutter will evolve in the next 3 years, and having a known and respected committee could influence the decision making inside of Google, to invest more resources in Flutter, or to question why we are going in a specific direction.

@feinstein  https://flutter.dev/go/strategy-2023 is Google's strategy for what they want to do with Flutter. The Flutter project's roadmap is on the wiki, https://github.com/flutter/flutter/wiki/Roadmap. I plan to update this for 2024 in the coming couple of months. That's the project-wide summary of what everyone who contributes to Flutter expects to do.
So what ends up on the roadmap is whatever people indicate they will be working on. For example, Google surely has a 2024 strategy for Flutter, and will be letting me know what they will be doing that should be added to the roadmap to represent their efforts. Similarly, I'll be adding the things I plan to work on to the roadmap. If you have something you are planning on doing, then I will be more than happy to learn all about it and add it to the roadmap as well. Conversations about this will be happening on the Discord (see https://github.com/flutter/flutter/wiki/Chat), probably near the end of the year, start of next year.
Let me know if that answers your questions!

Thanks @Hixie this helps a lot.
Since you left many people reached me, concerned about the future of Flutter. What I am telling them is that I don't Flutter will die, I am just afraid we might lose focus and not be as great we can be.
I have never been inside any decision making for Flutter, so in my naive view, a Committee would serve as "glue" between Google's strategy and the Community strategy, when those don't align. I have also seen some signals that Google's higher management might not be as connected with Flutter's future and roadmap, so a Committee could also be a mechanism to convey with them, nudging them into the right direction, with no worries of being fired. And if it doesn't work, the Committee can expose what's happening to the community in general, so we all can apply some pressure.
Many open source projects have Committees, so I wonder why Flutter wouldn't benefit from this. Am I missing something?

I guess I don't understand what problem we're trying to solve. I'm not aware of any time where we've had a situation where two contributors or groups (companies) of contributors have had conflicting strategies. Overall the Flutter project's strategy is pretty simple: make it possible to write apps on any platform ("Flutter on every screen").
If the problem you want to solve is "convincing Google management to spend money a particular way", then that's not a problem to solve at the level of the Flutter open source project, it's something to take up with Google directly. If the problem you want to solve is one of transparency, then a committee isn't a good solution, a better solution would be creating a e-zine/blog about the project. That would be really useful in general, I think. A lot of our users as well as many of our contributors (including me!) would benefit from being more informed about what the team as a whole is doing! If you need help starting something like that, please don't hesitate to reach out on the Discord, I'd be more than happy to give guidance or find resources to support starting something like that (e.g. hosting a web site, buying a domain name, or whatever you need).
In general, committees are the worst way to solve any problem (there's a reason the 1944 OSS Simple Sabotage Field Manual literally suggests creating committees, see page 28). Lots of open source projects do things in ways that aren't a good idea. I don't think we should do things just because they're popular, we should do them because they are good ideas that solve real problems.

@Hixie thank you for your insights, it's refreshing to see senior members not worried about the future and direction of Flutter, this might be a feeling we on the outside have.
I have just moved from Brazil to Australia, so it has been pretty hard for me to have any personal projects right now, but when things settle, I will try to be more active on Discord, I am feeling a lot is happening there and I am missing.
I will close this issue then, since it now appears to me that a Committee won't help, given Flutter's current organizational model.


Add policheck exclusions

Summary
Exclude checking files in which violations cannot be fixed.
Example build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2128987&view=results

Release Notes Entry

/backport to release/6.x

/backport to release/7.0

/backport to release/7.x


Sometimes Crash with 0xC0000005

My system is Windows 11. I wrote an AutoHotkey script which executes GetDesktopCount, GetCurrentDesktopNumber and GetDesktopName for 16 consecutive times every 100 ms. After running for about 1 hour, AutoHotkey crashes with 0xC0000005 and then loses response.

Why are you calling it every 100ms for an hour? There is event listener to look when you change desktop?

I call the DLL so frequently to know whether the desktop has changed. The listener will crash when I add a desktop in taskview.

I add
ProcessSetPriority("Realtime")

to my AutoHotkey script and it doesn't crash anymore. I don't know why so.

I add
ProcessSetPriority("Realtime")

to my AutoHotkey script and it doesn't crash anymore. I don't know why so.

Do you add and remove a lot of desktops every day?
Listener is a way to go here, but I do need to find the crash and fix it.

Yes! And I found that raising the process priority can solve the problem.


add "x86_64" in HW Requirements of Install.md

Today a collegue of mine tried to install MMT on a Ubuntu 14.04 machine in the cloud.
After some troubles I helped him and we discovered he was using a *32 hardware-platform instead of *64.
Actually the Install.md file is missing this information explicitely -- well, it could be deducted from the paragraph about Java versions.
I think it is better to add explicitely in the HW Requirements section that a  x86_64 hardware-platform is needed.
I can do this operations on the various branches.

Roldano,
Thanks, please fill free to modify the Install.md on github master.
Marco
On Wed, 2 Nov 2016 at 18:15, Roldano<EMAIL_ADDRESS>wrote:

Today a collegue of mine tried to install MMT on a Ubuntu 14.04 machine in
the cloud.
After some troubles I helped him and we discovered he was using a *32
hardware-platform instead of *64.
Actually the Install.md file is missing this information explicitely --
well, it could be deducted from the paragraph about Java versions.
I think it is better to add explicitely in the HW Requirements section
that a x86_64 hardware-platform is needed.
I can do this operations on the various branches.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ModernMT/MMT/issues/181, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJcIE92lOCg7bs8puv8cPP2m-P29yWa8ks5q6MUjgaJpZM4KngZ6
.

Good.
I do it immediately.
Roldano

Committed and pushed the branch 'develop'.
I don't' have the permission to push the branch 'master' -- and probably this is good :-)
Roldano

just merged into master, thanks @cattoni !


[BUG] console.input breaks console.status

Asking for user input in a loop while showing a spinner breaks and hangs the loop.
Small example:
from time import sleep
from rich.console import Console

console = Console()

with console.status("Running") as status:
    counter = 0
    while True:
        counter += 1
        console.print(counter)
        console.input("Input")
        sleep(1)

Results in broken output and a hanging loop:
1
[2KInput[32m⠋[0m Running

macOS 11.6.2, rich 11.1.0

Stopping the spinner before input and starting it afterwards fixes this. Sorry for the trouble.


Fixed chat send history functionality in Firefox and Edge

Fixes #1948
Currently, in the Send History Sample, there is a conditional checking if the send box text input's selection start is positioned at index 0. If it is, the user can navigate through their previous messages; otherwise, the chat history functionality is not accessible.
When the send box value is set from history in Chrome the cursor is placed at the begin of the string; however, it is placed at the end of the string in Firefox and Edge. Consequently, target.selectionStart === 0 will be true in Chrome after the text input value is set, but not in the other two browsers. Thus, if the user wanted to toggle through the chat history in Firefox or Edge, they would have to place the cursor at the beginning of the string after they press the up arrow since target.selectionStart === 0 would be false.
The conditional is intended to prevent users from toggling through the chat history if they are already typing a message; however, the isDirty state property already tracks if the user has typed something into the send box. Removing the condition allows users to toggle through the messages in Firefox and Edge and does not affect the rest of the sample's functionality.

Coverage decreased (-1.5%) to 56.188% when pulling fa81cbc2fe8d9ecb0175e04d7c0915794f26a2a1 on tdurnford:1948 into 6f67e58d03e1cc8f6b6c6279f47bc3e6cc348cbb on Microsoft:master.

The change looks good. But the sample itself isn't quite, not your fault.
We shouldn't capture onKeyDown on the whole Web Chat. Very hacky sample.
Our sample is intended for our users to copy and it will work. I won't say it will be in production quality, but they can't be hacky too. Our sample is "our best practice to do one small thing at a time, in a very correct way". And it also serve as a teaching material for our users. Then we evaluate the feedback and may fold the code back into production.
If our sample is hacky, few things would happen:

Devs spot we are hacky, they will not trust our product anymore

In recent years, I saw devs upset about quality of our samples/documentations and complaining on social media, and more people start leaving our platform

Devs don't know it is hacky, when they aggregate multiple samples together, everything will start falling apart
We cannot fold the sample code back into our product
Devs learn wrong thing, and the ripple effect, they will pretty soon start creating a monster that is difficult to maintain for them

On one side, to me it's a smaller side, I am worried about product quality will drive users away.
On the other side, which is bigger to me, I am worried about devs training and quality. If they can do better at their job, they will be able to create a more sounding solution that would evolve and last.
And to me, being passionate about customers, teach them, advocate great things, empower them, is something in Microsoft's DNA. We ran MSDN documentation and it was every dev's go-to place to learn things. The community changed, MSDN changed, but the spirit never.
Too much whine.
The better solution for this sample, one (baby) step at a time:

Build a React component, independent of Web Chat, that would work with history using up/down arrow, etc.

It doesn't need to be live inside its own repository or package

Build a simple React app that works with this component, still, independent of Web Chat
Improve the React component by trying out both <input> and <textarea> (multiline)
Build and customize Web Chat, modify send box and replace <input> with this component

For production quality, add automated tests, wrap the component nicely, etc.


10 times gas price

When I run bee start, it appears：
Error: init chain: dial eth client: websocket: bad handshake (HTTP status 401 Unauthorized)

This change is

Um, why?  And what does the startup error have to do with making every transaction cost 10 times as much as the chain estimates that it should?  Or worse, 10 times as much as the user specified they wanted to use?

We can add a configuration item, which is a file path, where the current gasPrice is stored. This should be more convenient than setting a fixed value.
Based on this processing, we can implement a separate script to automatically get more real-time gasPrice recommendations from etherscan.io or ethgasstation.info

Closing this as gas price can already be adjusted


Improve JSDoc comment for the CTP createReplacementWidget function

Reviewer: @jonathanKingston
Cc: @Charlie-belmer, @ladamski
Description:
Small change to improve the JSDoc comment of the createReplacementWidget function. The parameters weren't properly listed.
Steps to test this PR:
N/A
Automated tests:

[x] Unit tests
[x] Integration tests

Reviewer Checklist:

[ ] Ensure the PR solves the problem
[ ] Review every line of code
[ ] Ensure the PR does no harm by testing the changes thoroughly
[ ] Get help if you're uncomfortable with any of the above!
[ ] Determine if there are any quick wins that improve the implementation

PR Author Checklist:

[ ] Get advice or leverage existing code
[ ] Agree on technical approach with reviewer (if the changes are nuanced)
[ ] Ensure that there is a testing strategy (and documented non-automated tests)
[ ] Ensure there is a documented monitoring strategy (if necessary)
[ ] Consider systems implications

Seems fine to me, "Element" isn't a valid type but then it's elsewhere also.


In person crime needs to be handled

https://github.com/matrix-org/matrix.to/blame/44a7ce8821a9173f5f057f3d3bf46318daf4e3a4/package.json#L37

Spam


Fix for Grape 0.12.0 with :hide_format

Grape 0.12.0 changed the paths for api endpoints that have a single
format. See https://github.com/intridea/grape/pull/1001/files
This change updates the way we reformat the paths for Swagger to
account for this.
Fixes #262

Note that you should merge #272 first to get the tests to run with Grape 0.12.0 on Travis.

Thanks, merging.

Has this commit upload to rubygems.org?

No @huanzhang I will make a release soon.


[Feature Request] upload VSIX files to releases tab

For people using forks of VSCode with microsoft's servers stripped out, like VSCodium, there's no easy way to install the extension outside of building it yourself. Providing VSIX files will allow manual installations.

Here you go:
https://github.com/dangreene0/tf2-vscript-snippets/releases/tag/1.0.1
I will continue uploading the extension there but you can always download the extension from it's marketplace listing or add the VS Marketplace back to your fork.
Thanks for the suggestion.

Update, I will now start uploading the extension to Open VSX

Here you go: https://github.com/dangreene0/tf2-vscript-snippets/releases/tag/1.0.1
I will continue uploading the extension there but you can always download the extension from it's marketplace listing via the Resources side panel or add the VS Marketplace back to your fork.
Thanks for the suggestion.


Explicitly broadcast values in nn.one_hot and nn.initializers.orthogonal.

At head the following fails:
>>> import jax
>>> import jax.numpy as jnp
>>> jax.config.update('jax_numpy_rank_promotion', 'raise')
>>> jax.nn.one_hot(jnp.ones([8]), 512)
...
ValueError: Operands could not be broadcast together for equal on shapes (8, 1) (512,) and with the config option jax_numpy_rank_promotion='raise'. For more information, see https://jax.readthedocs.io/en/latest/rank_promotion_warning.html.

@jekbradbury plz :)

Nice idea, I've added a lax.broadcast_to_rank and used that in both places.
Please hold off merging this, the diff looks very confused to me.

Ok the diff looks sane again 😄 PTAL.

Travis is being mysterious in a somewhat concerning way (seems like a fatal error in an infeed test, but with some more normal failures before that)...
I can look into it tomorrow. Since this comes from a CL, do you know if tests are passing internally?

I'll kick it off now. I'm not sure how travis runs tests but since this is a global flag if it reuses the interpreter between testing modules we may be running other tests with broadcast checking enabled now?

I've moved the config changes into setup/teardown, lets see if that appeases Travis 😄


Behavior on server-side when using in conjunction with dynamic imports

Hi @ctrlplusb, while debugging https://github.com/ctrlplusb/react-jobs/issues/51 & https://github.com/ctrlplusb/react-jobs/issues/56, I realized that if there were jobs on dynamic import components, then those jobs wouldn't execute on the server-side since the components are not being imported before render is considered complete.
Here is a simple summarized hierarchy that could reproduced it for me -
<App>
  <Auth> /* <--- Fetch data */
    <Switch>
      <Route component = { AsyncProfile } />
      { /* AsyncProfile dynamically imports Profile which fetches the data */ }
    </Switch>
  </Auth>
<App>

Looking through codebases of this library and react-jobs, it seems like this issue should be resolved here. Thoughts on what should be the expected behavior?

@ctrlplusb Just checking in for an update here? Not sure if you are done updating react-jobs, but an example would be super helpful since this prevents SSR with data-fetching right now :(

Hey @oyeanuj
You are the definition of patience. 😃
I am trying to throw up a razzle based example now, using react-async-component as well as react-jobs. 👍

You can track the work here @oyeanuj
https://github.com/ctrlplusb/demo-react-async-and-jobs

Ok, got it working. :)
Demo: https://razzle-async-components-and-data.now.sh/
Source: https://github.com/ctrlplusb/demo-react-async-and-jobs
I also added emotion for good measure.

@ctrlplusb I've had a chance to drill down more into this and I have one quick question to ask, and observation to report:
Theoretically, should a setup like this work with react-jobs and react-async-bootstrapper on the server-side?
<App>
  <Auth> /* <--- Fetch data */
    <ListingPage> /* <--- Fetch data */
      <MovieOne /> /* <--- Fetch data */
      <MovieTwo /> /* <--- Fetch data */
  </Auth>
<App>

I'm noticing that the after the first pass of react-jobs, the asyncBootstrapper is considering its job over before rest of the jobs have a chance to resolve and render their children.
Any ideas or thoughts would be super useful!


feat: add ssh2 1.4.1 release

update ssh2 with release 1.4.1

:tada: This PR is included in version 1.291.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


docformatter is failing with the attached error

Run pre-commit run --hook-stage manual --all-files --show-diff-on-failure docformatter
[INFO] Initializing environment for https://github.com/psf/black.
[INFO] Initializing environment for https://github.com/pycqa/isort.
Warning:  repo [https://github.com/pycqa/isort](https://github.com/pycqa/isort`) uses deprecated stage names (commit, merge-commit, push) which will be removed in a future version.  Hint: often pre-commit autoupdate --repo [https://github.com/pycqa/isort](https://github.com/pycqa/isort`) will fix this.  if it does not -- consider reporting an issue to that repo.
[INFO] Initializing environment for https://github.com/PyCQA/flake8.
[INFO] Initializing environment for https://github.com/PyCQA/flake8:flake8-annotations==3.0.1.
[INFO] Initializing environment for https://github.com/codespell-project/codespell.
[INFO] Initializing environment for https://github.com/codespell-project/codespell:tomli.
[INFO] Initializing environment for https://github.com/PyCQA/docformatter.
An error has occurred: InvalidManifestError:
==> File /home/runner/.cache/pre-commit/repo1ydb2nef/.pre-commit-hooks.yaml
==> At Hook(id='docformatter-venv')
==> At key: language
=====> Expected one of conda, coursier, dart, docker, docker_image, dotnet, fail, golang, haskell, lua, node, perl, pygrep, python, r, ruby, rust, script, swift, system but got: 'python_venv'
Check the log at /home/runner/.cache/pre-commit/pre-commit.log
Error: Process completed with exit code 1.

"Documentation Style Check" has been temporarily removed from PR merge status checks.

https://github.com/PyCQA/docformatter/pull/287


Use the final release of swagger-codegen

Feature Request
Desired behaviour
swagger-codegen 2.3.0 is out and used by the webservice. Time to update the ui2 and get off of the random snapshot we're using.

Observed in action for staging.dockstore.org


Typing Speed Test Webiste

Project title
Typing Speed Test Website
Project Description
It would be the application where user can check the speed of typing
Stack:

[x] HTML
[x] CSS
[x] JavaScript

hey @chicken-biryani , can you  assign me this issue.


More eye catching and pleasing button design

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[x] I am running the latest version
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed

Issue Type : Adding Features
Please give a brief description of the feature you want to be added
Add rounded corners on buttons
Expected Behavior
Please describe the behavior you are expecting
Current Behavior
What is the current behavior?
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Firmware Version:
Operating System:
SDK version:
Toolchain version:

Failure Logs
Please include any relevant log snippets or files here.

Sir please assign this to me under pwoc

Ok, Good luck!

Thank you sir 🙏

Closing this issue since I already merged one request for the same and added the pwoc tag to it. @dhruv-porwal please note that from next time onwards, create a single PR for a single feature, unlike this time when you made 2 PRs for a single feature. The former is considered a good practise, so do make it a habit in general.


LITE-25977 add test to resend function

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Paulina Marcinowska seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Mafia repl should not exit on CTRL+C

I just noticed that when I press CTRL+C inside mafia repl, the whole repl exits.
This differs from ghci, which breaks the current running expression but does not exit the repl.

This will be due to the cabal version you're running, nothing to do with mafia: https://github.com/haskell/cabal/issues/1448
I would highly recommend mafia quick, (should be aliased as mafia ghci) which is better for this and other reasons.

Nice.  Thanks!!!


how tu run revel

I am new here.It is the first time for me to touch revel.Now I‘d  like to know to run run a app.It is difficult to achieve it.

use
revel run myapp
https://revel.github.io/tutorial/gettingstarted.html


NotDigitError should be more generic

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.5.1
            pydantic compiled: True
                 install path: /Users/ricardosanchez/Documents/Projects/cuenca-validations/venv/lib/python3.7/site-packages/pydantic
               python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24)  [Clang 6.0 (clang-600.0.57)]
                     platform: Darwin-19.5.0-x86_64-i386-64bit
     optional deps. installed: ['typing-extensions']

from pydantic import NotDigitError

raise NotDigitError
# pydantic.errors.NotDigitError: card number is not all digits

The error message and code for NotDigitError says card number is not all digits and payment_card_number.digits. However, this error could refer to more cases than card numbers.
https://github.com/samuelcolvin/pydantic/blob/259a1a0ff8eb9a0c4450331b9bae6730d55b9124/pydantic/errors.py#L517-L519

I think this error should remain specific to cards, especially since the code is already specific.


Add FXGL tutorial link to contribution guidelines file

Is your feature request related to a problem? Please describe.
This is not related to a current problem but will improve documentation.
Describe the solution you'd like
Add this video link to our contribution guidelines file. This should be added just before the 'Types of Contributions Accepted' section. A short descriptive sentence should be written for context e.g. "If you haven't developed using JavaFX and FXGL, please watch this video first."

@dylan-power I'll take this one, can you assign it to me please?

Hi, I want to work on this, if it is still available

@filegrunt Hi, are you still working on it? 😊


Match priority

Prefer to match a whole word
/path/to/redirect 100
/path/to/red 10

proposal:
$ z red
$ pwd
/path/to/red

Match from right to left
/path/to/node/abc 100
/path/to/node 10

proposal:
$ z node
$ pwd
/path/to/node

I wanted this, too!  I worked up a quick patch with my wildly imperfect knowledge of awk that weights paths with exact matches higher.  It's not very complete as it only works with single parameters to z (which is mostly what I use).  I'll create a fork and link it in case you're interested.

It's also worth noting that I just discovered you can get this functionality by using a regex:
$ z node$

It's not a prefer, but rather forces it to be the last thing.  Which is good enough for most cases!

Thanks for the RegExp hint, @webOS101 !
Sadly, in Fish shell, that becomes $ z node\$. So much typing... :cry:

I'd be in favor of an ENV flag to set the priority preference, as I'd love it to value "frequency" higher.
Take this:
common:    /Users/philip/Development/shotgunsoftware
20         /Users/philip/Development/shotgunsoftware
128        /Users/philip/Development/shotgunsoftware/shotgun

To me, it makes no sense that $ z sh would dump me in /Users/philip/Development/shotgunsoftware, since I only visited that dir a handful of times! I now have resort to $ z shotgun\$ or $ z sh sh instead of just $ z sh... :panda_face:

I'm open to thinking about this stuff, but it's very easy to get even farther from "least surprising" result even with good intentions, and i hate adding configurations - it's very much a last resort.
Note a couple of things:

The reason that "common" matches take priority, is that it can be difficult if not impossible use z to get to a shorter match, if many paths also start with it. I'm not 100% pleased with the way I went about it, but so far I haven't found a better way (to me at least) and the existing behavior 1) works for me and 2) rarely "surprises" me

z analyses patterns as regular expressions, as noted. Anchors and complex regex are available if needed, but, as noted, they're cumbersome and unpleasant to use. However, the goal and expectation with z is to magically make the "mnemonic" you may mutter under your breath take you where you expect. Mnemonics (I know I'm abusing the term) usually focus on what's unique about a directory, not what's common. Given the example above, "sh" is not something i would think for these directories, as it's too common - offhand I'd probably think something like z re sho - something that actually distinguishes that directory from other similar ones.

I'll add a bit more to this discussion, I guess.
I (mildly) don't like the idea of weighting full words over partials - mainly because it adds complexity to my mental model of what the algorithm is going to do. To be fair, because I wrote this, I probably have a more nuanced idea of it than most - but, I think it's basically very simple (I even begrudge the "common hack" for adding complexity, even though it's necessary). The simpler the algorithm the less I have to think about my usage.
recap of the algorithm:

return the highest weighted path matching all the arguments in order, UNLESS
one of the matches is wholly contained in ALL of the other matches, in which case, return that.

Simple, nudges you toward using uniquish identifiers near the end of the path you're thinking of, easy to reason about in advance, easy to adjust if you end up somewhere unexpected.

I like the re sho-style "mnemonic. I think I got too hung up on the "shotgun" dir, and how that word is contained in the "common" as well...
The use of the "UNLESS common" part of the algorithm really messes up the flags, since it always trumps... I can't even do $ z -r sh. I'd expect that if a flag was passed, the "common" case would no longer kick in?

"common" does indeed still happen even if you pass -r or -t.
You raise a point - but I'm not sure whether I think the current behavior is "correct" or not.


macOS: app:layout_scrollFlags is not working with two finger scroll in scrcpy, Toolbar no response

Hi!
app:layout_scrollFlags="scroll|enterAlways|snap" is not working with two finger scroll in scrcpy, Toolbar no response, but if scroll the screen with one finger click and drag, the Toolbar is working properly
It seems that the behavior of two finger scroll and one finger click and drag is not the same?
Thanks a lot!!

Does it still happen?

It is working for me with the latest version. Thank you.


Error: need EHLO and AUTH first !

This is not a issue about your code, just a question.
As most mail provider asks user to login before using smtp, so I faced the error: "Error: need EHLO and AUTH first !"
Do you have a good idea about how to make flask mail login?

Did you set your credentials in the configuration?


luci-app-aria2: convert to client side

@jow- @kuoruan
I have ported the luci-app-aria2 using JavaScript APIs. All the features have been kept except that the function to show the RPC URL has been reworked.

Merged, thanks a lot for your patience! 👍🙏


Improve feedback/information with "broken repr"

If the __repr__ of a local object fails, it gets reported as "<broken repr>":
https://github.com/getsentry/sentry-python/blob/d7cf16cd28248e0c12aa71e92ee9b2606a6a7400/sentry_sdk/utils.py#L416-L451
It would be more helpful if it would include more information there, e.g. at least the class name of the exception.
It could also be something more sophisticated like:
def _try_repr_or_str(obj):
    try:
        return repr(obj)
    except (KeyboardInterrupt, SystemExit):
        raise
    except BaseException:
        return '{}("{}")'.format(type(obj).__name__, obj)

def _format_repr_exception(exc: BaseException, obj: Any) -> str:
    try:
        exc_info = _try_repr_or_str(exc)
    except (KeyboardInterrupt, SystemExit):
        raise
    except BaseException as exc:
        exc_info = "unpresentable exception ({})".format(_try_repr_or_str(exc))
    return "<[{} raised in repr()] {} object at 0x{:x}>".format(
        exc_info, type(obj).__name__, id(obj)
    )

(via https://github.com/blueyed/pytest/blob/8eb380425395332ffdf2cd42b8d7cf8ffab2ea2e/src/_pytest/_io/saferepr.py#L6-L24)
This would help with investigating why a repr is broken actually, e.g. with https://github.com/celery/py-amqp/issues/361.
(slightly related: there was some related (still open) PR for raven-python about this already: https://github.com/getsentry/raven-python/pull/1294)

hi @blueyed, we released an undocumented feature def sentry_repr in https://github.com/getsentry/sentry-python/pull/1322.
Could you try it out and see if it fixes your problem?


(PUP-6798) Yum provider family ensuring latest

Previously, when ensuring latest the logic used to implement PUP-6324
didn’t take ensuring latest into account, just specifying a new version:

Debug: /Stage[main]/Main/Package[cockpit]/ensure: cockpit "0.55-1.fc22" is installed, latest is "0:0.67-2.fc22"
Debug: Package[cockpit](provider=dnf_update): Ensuring => latest
Debug: Executing: '/usr/bin/dnf -d 0 -e 1 -y install cockpit'
Notice: /Stage[main]/Main/Package[cockpit]/ensure: ensure changed '0.55-1.fc22' to '0:0.67-2.fc22'
Debug: /Stage[main]/Main/Package[cockpit]: The container Class[Main] will propagate my refresh event

This meant the system reported that the package was updated, but it ran install rather than upgrade, which does nothing and exits zero
Added new logic for when latest is used, add new spec, all working now!

CLA signed by all contributors.

Thanks @petems! Did some manual validation on fedora 24. Prior to this change:
puppet apply -e " package { 'htop' : ensure => latest } " --debug --trace
...
Debug: /Stage[main]/Main/Package[htop]/ensure: htop "1.0.3-4.fc22" is installed, latest is "0:1.0.3-6.fc23"
Debug: Package[htop](provider=dnf): Ensuring => latest
Debug: Executing: '/usr/bin/dnf -d 0 -e 1 -y install htop'
Debug: /Stage[main]/Main/Package[htop]/ensure: htop "1.0.3-4.fc22" is installed, latest is "0:1.0.3-6.fc23"
Notice: /Stage[main]/Main/Package[htop]/ensure: ensure changed '1.0.3-4.fc22' to '0:1.0.3-6.fc23'
...
[root@ezhsuf4bmw40s50 ~]# dnf list installed htop
Last metadata expiration check: 0:08:31 ago on Thu Oct 20 16:56:18 2016.
Installed Packages
htop.x86_64                                                                             1.0.3-4.fc22                                                                              @localmirror-everything-22

😞
with this change:
[root@ezhsuf4bmw40s50 ~]# puppet apply -e " package { 'htop' : ensure => latest } " --debug --trace
...
Debug: /Stage[main]/Main/Package[htop]/ensure: htop "1.0.3-6.fc23" is installed, latest is "0:2.0.1-1.fc24"
Debug: Package[htop](provider=dnf): Ensuring => latest
Debug: Executing: '/usr/bin/rpm -q htop --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Package[htop](provider=dnf): Ensuring latest, so using upgrade
Debug: Executing: '/usr/bin/dnf -d 0 -e 1 -y upgrade htop'
Notice: /Stage[main]/Main/Package[htop]/ensure: ensure changed '1.0.3-6.fc23' to '0:2.0.1-1.fc24'
...
[root@ezhsuf4bmw40s50 ~]# dnf list installed htop
Last metadata expiration check: 0:08:47 ago on Thu Oct 20 16:56:18 2016.
Installed Packages
htop.x86_64                                                                                2.0.2-1.fc24                                                                                @localmirror-updates

😄
When ensuring a specific version to upgrade to (even one that's not "latest"):
root@ezhsuf4bmw40s50 ~]# puppet apply -e " package { 'htop' : ensure => '1.0.3-6.fc23.x86_64' } " --debug --trace
...
ug: Package[htop](provider=dnf): Ensuring => 1.0.3-6.fc23.x86_64
Debug: Package[htop](provider=dnf): Detected Arch argument in package! - Moving arch to end of version string
Debug: Executing: '/usr/bin/rpm -q htop --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Package[htop](provider=dnf): Upgrading package htop from version 1.0.3-4.fc22 to 1.0.3-6.fc23.x86_64
Debug: Executing: '/usr/bin/dnf -d 0 -e 1 -y upgrade htop-1.0.3-6.fc23.x86_64'
Debug: Executing: '/usr/bin/rpm -q htop --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/usr/bin/dnf check-update'
Debug: /Stage[main]/Main/Package[htop]/ensure: htop "1.0.3-4.fc22" is installed, latest is "0:2.0.1-1.fc24"
Notice: /Stage[main]/Main/Package[htop]/ensure: ensure changed '1.0.3-4.fc22' to '1.0.3-6.fc23.x86_64'
...
[root@ezhsuf4bmw40s50 ~]# dnf list installed htop
Last metadata expiration check: 0:11:57 ago on Thu Oct 20 16:56:18 2016.
Installed Packages
htop.x86_64                                                                             1.0.3-6.fc23                                                                              @localmirror-everything-23

👍


support web

Does 3DViewer support web?

We don't have this plan, If u want to write it by yourself, I would like to introduce three.js.


Faster version of reference decoder

Interesting work!
Note that at the end of https://bjoern.hoehrmann.de/utf-8/decoder/dfa/#variations there is an improved variant of my decoder that saves a shift per byte that might make a better point of comparison.

Thanks. I read the full article and I thought using that version but I went with the original on the assumption that the difference would be small. Note that this library does not include your code...
Make sure to read my original blog posts...
https://lemire.me/blog/2018/05/09/how-quickly-can-you-check-that-a-string-is-valid-unicode-utf-8/
https://lemire.me/blog/2018/05/16/validating-utf-8-strings-using-as-little-as-0-7-cycles-per-byte/
The code from my posts is in a separate repo:
https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/tree/master/2018/05/15
I think we could make your original code faster but my point is that your code is far from silly. It is not obvious that one can do much better. Of course, we do here but using instructions you are not using.

I tried the code at https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/tree/master/2018/05/08 on an i3-7100U and get avg ~7 cycles for validate_utf8_branchless, and when I put in the faster version, I get avg ~6 cycles, according to the program. When I compile with clang 7.0.0-3~ubuntu<IP_ADDRESS> instead of system cc, it is down to ~5 cycles for the 80 and 512 buffer.

I have implemented your shiftless version (now available in my other repo). It is indeed a bit faster.
I am going to close this issue.
I will continue to work on this problem, and I will also continue citing you.