No tap property on Background use case - iOS  Ionic 4 app

Hi,
There is no tap property on iOS device background use case. Hence it shows the notification 2 times. i.e. it always fires // Received in foreground section on fcmListeners() method. i.e. it shows system tray notification and custom notification where I have created for a foreground use case.
Note: Here I use firebase console dashboard to send the push. i.e. no API call
FCM dashboard custom property: https://imgur.com/cE9Yxwk
Note: No issues on the Killed use case. i.e. it doesn't fire the custom notification. only the system tray notification shows. This is the behavior where I need background use case too.
Note: No issues on Android device. i.e. it works fine on all 3 use cases.
service.ts
  async init() {
    if (this.platform.is('android')) {
      this.fcmToken = await this.firebase.getToken();
    } else if (this.platform.is('ios')) {
      const res = await this.firebase.hasPermission();
      if (!res.isEnabled) {
        await this.firebase.grantPermission();
        this.fcmToken = await this.firebase.getToken();
      }
    }
    this.fcmListeners();
    console.log('this.fcmToken', this.fcmToken);
  }

  fcmListeners() {
    this.firebase.onMessageReceived().subscribe(async (data: any) => {
      if (data.tap === 'background') {// when user tapped the background notification
        console.log('background notification', JSON.stringify(data, null, 4));
      } else { // Received in foreground
        console.log('Received in foreground', JSON.stringify(data, null, 4));
        this.showToastService.showFcmToast(data.title, data.message, data); // custom toast
      }
    });
  }

app.componet.ts
initializeApp() {
    this.platform.ready().then(() => {
      if (this.platform.is('cordova')) {
        this.firebaseCloudMessagingService.init(); // fcm
      }
    });
  }

package.json
 "cordova-plugin-firebasex": "^6.0.7",
ionic info
Ionic:

   Ionic CLI                     : 5.2.4
   Ionic Framework               : @ionic/angular 4.7.4
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.0.0

Cordova:

   Cordova CLI       : 9.0.0<EMAIL_ADDRESS>   Cordova Platforms : ios 5.0.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 8 other plugins)

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   ios-deploy : 1.9.4
   ios-sim    : 8.0.1
   NodeJS     : v10.14.2 (/usr/local/bin/node)
   npm        : 6.5.0
   OS         : macOS High Sierra
   Xcode      : Xcode 10.1 Build version 10B61

This is the payload comes when taps the system notification. i.e. it always goes to the // Received in foreground section on fcmListeners() method.
{
    "google.c.a.e": "1",
    "aps": {
        "alert": {
            "title": "Firebase Push",
            "body": "Test Firebase Push"
        }
    },
    "title": "Firebase Push",
    "gcm.n.e": "1",
    "google.c.a.c_id": "4193883769168521163",
    "message": "Test Firebase Push",
    "google.c.a.udt": "0",
    "gcm.message_id": "1566044177059408",
    "google.c.a.ts": "1566044177",
    "messageType": "notification"
}

I have exactly the same problem with Ionic4; there is no tap property for iOS.  I've also  set notification_foreground: 'true', but it doesn't show the native notification. In Android it works well.
Config:

"cordova": "^9.0.0",
"cordova-android": "8.0.0",
"cordova-ios": "5.0.1",
"cordova-plugin-firebasex": "6.0.6",

Hi !
I had the same problem. Looking at the logs I noticed that in the didReceiveRemoteNotification () method the TAP variable was not instantiated.
This piece of code must be added to the AppDelegate+FirebasePlugin.m file at line 150:
`NSString* tap;
if([self.applicationInBackground isEqual:[NSNumber numberWithBool:YES]]){
tap = @"background";
}else{
tap = @"foreground";
    }
    [mutableUserInfo setValue:tap forKey:@"tap"];
    if([mutableUserInfo objectForKey:@"messageType"] == nil){
        [mutableUserInfo setValue:@"notification" forKey:@"messageType"];
    }`

I can confirm the problem.
@papattes solution fixes the problem.

@papattes Can't you create a PR for your solution?

@Sampath-Lokuge  I created it, however, it added it on the arnesson/cordova-plugin-firebase repo.
When I click that new PR, I am redirected automatically to this repository. How to do ?


Add documentation for CameraKitCameraScreen

I am missing the configuration for CameraKitCameraScreen. Also curious if there are default Images for flash/capture/etc. buttons.

About the Docs, you are absolutely right, I'll add it ASAP. Sorry about that.
But for now, take a look into:
https://github.com/wix/react-native-camera-kit/blob/master/example/src/CameraScreen.js
About the images, this package isn't supplied icons, but you can search for free for use icons on the web.

Im also trying to use the CameraKitCameraScreen - The Overlay and ratio doesn't seem to be working? Docs would be great!
My camera image is appearing rotated at 90deg as well @gran33

@gran33 The docs are either very outdated or am I missing something?


WIP: Release notes and updates for cert manager v1.12.7

Preview:
Changes: https://github.com/cert-manager/cert-manager/compare/v1.12.6...release-1.12

/hold until release is published

The documentation looks good, I didn’t spot any missing reference to v1.12.6
/lgtm
/approve

/unhold


Does configuration for fonts exists?

Apparently, this does not seem to do anything:
<template>
  <card
    class="StripeCard"
    :stripe="publicKey"
    :options="options"
    @change="checkForErrors"
    :fonts="[{
      cssSrc: 'https://fonts.googleapis.com/css?family=Roboto+Condensed:700'
    }]"
  />
</template>

<script>
  import { Card } from 'vue-stripe-elements-plus'

  export default {
    components: {
      Card
    },

    data () {
      return {
        publicKey: '',
        options: {
          style: {
            base: {
              color: '#9AA7C0',
              fontSmoothing: 'antialiased',
              fontSize: '16px',
              fontWeight: 700,
              fontFamily: 'Roboto Condensed'
            }
          },
          hidePostalCode: true
        }
      }
    },

    methods: {
      checkForErrors (event) {
        this.errors.remove('card')

        if (!event.error) {
          return
        }

        this.errors.add({
          field: 'card',
          msg: event.error.message
        })
      }
    }
  }
</script>

And if I try to add fonts in the options object... This comes up in console:
Error in beforeMount hook: "IntegrationError: Invalid value for create(): fonts should be used in elements() instead. You specified: [object Object]."
Is this currently unsupported or I'm doing something wrong?

For anyone else who encounters the same problem, I figured out how to handle it:
<template>
  <card
    class="stripe-card"
    :options="options"
    :class="{ complete }"
    stripe="pk_test_XXXXXXXXXXXX"
    @change="complete = $event.complete"
  />
</template>

<script>
export default {
  data: () => ({
    complete: false,
    options: {
      elements: {
        fonts: [
          {
            cssSrc: 'https://fonts.googleapis.com/css?family=Roboto+Condensed:700'
          }
        ]
      },
      style: {
        base: {
          color: '#9AA7C0',
          fontSmoothing: 'antialiased',
          fontSize: '16px',
          fontWeight: 700,
          fontFamily: 'Roboto Condensed'
        }
      }
    }
  })
}
</script>

You have to provide an elements object (containing a fonts array) in your configuration.

Yup that works. Figured it out as well, but forgot to come back and post for the others that may had same issue.
Thank you for posting!


Talk about the copyright issue

Description:
basically at one point the Project was so broken that the ReleaseManager had to add everything again by Hand. This resulted into a big Problem, because according to Github pretty much the
whole base code belong only to the ReleaseManager.
I already talked with him about it and my suggestion and he is fine with it, but still before we do that we have to discuss it either Monday or Wednesday since soon the grading will begin.
Acceptance criteria:
Everyone is aware of the issue and that the issue has been solved

Thanks to David, this issue has been carried out within the Sprint Retrospective


DeformConv2d offset and mask backprop

🚀 The feature
I notice that the current vision of DeformConv2d module doesn’t treat offset and mask as parameters, so it seems that the standard backward routine cannot update the offset.  Is there any possibility that you could add this feature in the future?
Motivation, pitch
I’m trying to build DNNs with above module, so it is not that convenient if I need to rewrite the backward process by myself
Alternatives
No response
Additional context
No response

Thanks for the feature request. We can look into doing this work on the future. It's not something we can pick up immediately because of lack of bandwidth, so note that you might need to find your own workarounds until we pick this up.

Thanks a lot for your reply!

@Cypher30 Maybe this work https://arxiv.org/abs/2107.03665 can help.

@Cypher30 Maybe this work https://arxiv.org/abs/2107.03665 can help.

Thanks a lot!

+1


appcatalyst-daemon start not working

After installing the plugin "vagrant-vmware-appcatalyst" I tried to start the "appcatalyst-daemon".
But it seems like it's not installed, shouldn't this be installed with the plugin?
Or am I trying to start it the wrong way?
I'm running this from  git Bash version 2.20.1 on Windows 10.
Below is how it look like and also the versions installed.
pnxb57@RD0054999 MINGW64 /
$ appcatalyst-daemon start
bash: appcatalyst-daemon: command not found
pnxb57@RD0054999 MINGW64 /
$ vagrant.exe --version
Vagrant 2.1.5
pnxb57@RD0054999 MINGW64 /
$ vagrant.exe plugin list
vagrant-proxyconf (2.0.0, global)
vagrant-reload (0.0.1, global)
vagrant-share (1.1.9, global)
vagrant-vmware-appcatalyst (1.1.1, global)

Hi @poon64, AppCatalyst has been discontinued and is no longer available. You may want to check out VMware Fusion instead.


No drives found during windows setup

Operating system
QNAP QutsHero
Description
I'm having trouble trying to get Windows installed.  No matter if I choose Win10, Win11, or Server.  During the Windows setup process,  there are no drives found to install Windows to.  Prompts to search for drivers for the storage controller.  I also notice that when the docker compose is running and creating the container, there are some errors stating failed to apply drivers.  Where are the drivers located?  Or how can I add them manually?
Docker compose
services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "win10"
RAM_SIZE: "8G"
CPU_CORES: 3
DISK_SIZE: "64G"
devices:
- /dev/kvm
- /dev/apex_0:/dev/apex_0
cap_add:
- NET_ADMIN
volumes:
- /share/Windows:/storage
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: on-failure
privileged: true
Docker log
This is all I could find..
tar: vioserial/2k22/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k22: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k16/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k16: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/w10/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/w10: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k12/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k12: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/xp/amd64: Cannot change mode to rwxr-xr-x: Bad address
tar: vioserial/xp: Cannot change mode to rwxr-xr-x: Bad address
tar: vioserial/2k8/amd64: Cannot change mode to rwxr-xr-x: Bad address
tar: vioserial/2k8: Cannot change mode to rwxr-xr-x: Bad address
tar: vioserial/2k19/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k19: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k25/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k25: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/w8/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/w8: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k12R2/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k12R2: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k8R2/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/2k8R2: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/w11/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/w11: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/w7/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial/w7: Cannot change mode to r-xr-xr-x: Bad address
tar: vioserial: Cannot change mode to r-xr-xr-x: Bad address
tar: viostor/w8.1/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: viostor/w8.1: Cannot change mode to r-xr-xr-x: Bad address
tar: viostor/2k3/amd64: Cannot change mode to rwxr-xr-x: Bad address
tar: viostor/2k3/x86: Cannot change mode to rwxr-xr-x: Bad address
tar: viostor/2k3: Cannot change mode to rwxr-xr-x: Bad address
tar: viostor/2k22/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: viostor/2k22: Cannot change mode to r-xr-xr-x: Bad address
tar: viostor/2k16/amd64: Cannot change mode to r-xr-xr-x: Bad address
tar: viostor/2k16: Cannot change mode to r-xr-xr-x: Bad address
BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found
BdsDxe: loading Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0)
BdsDxe: starting Boot0001 "UEFI QEMU DVD-ROM QM00013 " from PciRoot(0x0)/Pci(0x5,0x0)/Sata(0x0,0xFFFF,0x0)
Screenshots (optional)
No response

❯ Starting Windows for Docker v3.23...
❯ For support visit https://github.com/dockur/windows
❯ CPU: AMD Ryzen Embedded V1500B Quad core CPU | RAM: 16/63 GB | DISK: 650 GB (zfs) | HOST: 5.10.60-qnap...
❯ The ISO will be processed again because the configuration was changed...
❯ Extracting Windows 10 image...
❯ Adding drivers to image...

Still get same results with that added.  I watched in closely when it was recreating a new container,  after it download the windows 10 image, the errors that came up in red were "Failed to extra drivers..."   and "Failed to apply drivers to image..."

Nope.  Still no luck.

In your install.sh,  where is it looking for the drivers folder?  I think if I can figure this out I can get it to work.  It almost like it's not locating the drivers txz file location.
addDrivers() {
local src="$1"
local tmp="$2"
local file="$3"
local index="$4"
local version="$5"
local drivers="$tmp/drivers"
rm -rf "$drivers"
mkdir -p "$drivers"
local msg="Adding drivers to image..."
info "$msg" && html "$msg"
if ! tar -xf /drivers.txz -C "$drivers" --warning=no-timestamp; then
error "Failed to extract drivers from archive!" && return 1
fi
local target="$WinPEDriver$"
local dest="$drivers/$target"
mkdir -p "$dest"
wimlib-imagex update "$file" "$index" --command "delete --force --recursive /$target" >/dev/null || true
addDriver "$version" "$drivers" "$target" "qxl"
addDriver "$version" "$drivers" "$target" "viofs"
addDriver "$version" "$drivers" "$target" "sriov"
addDriver "$version" "$drivers" "$target" "smbus"
addDriver "$version" "$drivers" "$target" "qxldod"
addDriver "$version" "$drivers" "$target" "viorng"
addDriver "$version" "$drivers" "$target" "viostor"
addDriver "$version" "$drivers" "$target" "viomem"
addDriver "$version" "$drivers" "$target" "NetKVM"
addDriver "$version" "$drivers" "$target" "Balloon"
addDriver "$version" "$drivers" "$target" "vioscsi"
addDriver "$version" "$drivers" "$target" "pvpanic"
addDriver "$version" "$drivers" "$target" "vioinput"
addDriver "$version" "$drivers" "$target" "viogpudo"
addDriver "$version" "$drivers" "$target" "vioserial"
addDriver "$version" "$drivers" "$target" "qemupciserial"
case "${version,,}" in
"win11x64"* | "win2025"* )
# Workaround Virtio GPU driver bug
local dst="$src/$OEM$/$$/Drivers"
mkdir -p "$dst"
! cp -Lr "$dest/." "$dst" && return 1
rm -rf "$dest/viogpudo"
;;
esac
if ! wimlib-imagex update "$file" "$index" --command "add $dest /$target" >/dev/null; then
return 1
fi
rm -rf "$drivers"
return 0
}

I'm getting this now...    I've both 10 and 11.  3.22 and 4.00.  Not sure why its saying not enough space.  I have plenty of storage space.   I just installed the QNAP QutsHero OS a few days ago.  I didn't try the didn't try the Windows docker prior.  Do you think the OS could be the problem since it runs ZFS?
❯ Requesting Windows 10 from Microsoft server...
❯ ERROR: Microsoft blocked the automated download request based on your IP address.
❯ Failed to download Windows 10, will try a diferent method now...
❯ Downloading product information from Microsoft server...
❯ ERROR: Not enough free space left to download file!
❯ Failed to download Windows 10, will try another mirror now...
❯ ERROR: Not enough free space left to download file!
❯ Starting Windows for Docker v4.00...
❯ For support visit https://github.com/dockur/windows
❯ CPU: AMD Ryzen Embedded V1500B Quad core CPU | RAM: 30/63 GB | DISK: 1 GB (tmpfs) | HOST: 5.10.60-qnap...

No, it's still the same. I'm reloading the regular QNAP QTS os now.  I will let you know what happens

It's a folder I created manually

I got it to work finally.  Removed the volumes from the docker compose file and just use this.  I really appreciate the help.     How would I mount another volume so it shows up in windows with the compose file?  Or would be easier to map a drive in Windows?
Thanks
services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "win10"
RAM_SIZE: "8G"
CPU_CORES: 3
DISK_SIZE: "64G"
devices:
- /dev/kvm
- /dev/apex_0:/dev/apex_0
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: on-failure
privileged: true


Dev branch, Binance, order_book formatted issue?

Dev branch:
I did a test to understand how the formatted order_book should look like, here my test:
binance = bitex.Binance()
binance_orderbook = binance.order_book('XRPBTC').formatted
print(binance_orderbook)

Result (I just included 3 bids and 3 asks for the sake of simplicity):
OrderBook(bids=[['0.00009160', '10203.00000000', []], ['0.00009157', '1026.00000000', []], ['0.00009156', '465.00000000', []]], asks=[['0.00009163', '1096.00000000', []], ['0.00009164', '12.00000000', []], ['0.00009165', '268.00000000', []]], timestamp=datetime.datetime(2018, 5, 1, 17, 30, 52, 392448), error=None)
Is this supposed to look like this? Every bid/ask should rather contain the timestamp, but not an empty array, right?
Also the format of bid or ask, I'm guessing it, is: price, then size, then timestamp?

Accoording to base, then it should be "in format [ts, price, size]":
{'bids': [['1480941692', '0.014', '10'],
                      ['1480941690', '0.013', '0.66'],
                      ['1480941688', '0.012', '3']],
             'asks': [['1480941691', '0.015', '1'],
                      ['1480941650', '0.016', '0.67'],
                      ['1480941678', '0.017', '23']]}

Then this should be filed as a bug.

It should be indeed. Or the docs changes - It may be better to sort the data by quality.
The thing is, timestamp is not always given, so some of them are generated by us. IT may be preferable to sort them as you guessed: price, size, ts.

Ok, then we have 2 issues:

put timestamp in the end and update base.py accordingly, are there tests using that? Then need to update the tests too...

binance bids/asks look like this: ['0.00009160', '10203.00000000', []]
which should rather look like this: ['0.00009160', '10203.00000000', ''] empty string, or None... probably empty string is better since I understand bitex doesn't want to format numbers either, but leave everything as string.

Correct?

None would be more appropriate IMO, since we actually do not receive any timestamp from the API. An empty string looks somewhat like a faulty parser.
Otherwise, that's all correct.

Probably you've seen my binance PR, but I didn't address this issue. I tried to have a look at this, but I'm having some difficulty to understand how it works:
formatters/binance.py
    def order_book(self):
        """Return namedtuple with given data."""
        data = self.json()
        bids = data['bids']
        asks = data['asks']
        timestamp = datetime.utcnow()
        return super(BinanceFormattedResponse, self).order_book(bids, asks, timestamp)

base.py
    @abstractmethod
    def order_book(self, bids, asks, ts, error=None):
        """Return namedtuple with given data."""
        order_book = namedtuple(
            "OrderBook", ("bids", "asks", "timestamp", "error"))
        return order_book(bids, asks, ts, error)

The namedtuple creates the array containing the bids, the asks, timestamp and error. So far so good.
But I don't understand where do you configure how a single value of the array can be changed as discussed?
I mean the bid or ask in the bid or ask array, where do I modify that?

But I don't understand where do you configure how a single value of the array can be changed as discussed?
You'd have to loop over bids and asks before passing them to the super() call, I'd assume.


RHIDP-2239: Fix filename typo

Versions:
1.1+
Jira link:
https://issues.redhat.com/browse/RHIDP-2239

/cherrypick 1.1.x


Replace external commands with fish builtins where applicable

Sorry there are so many commits in this PR but I got on a roll with replacing external commands with fish builtins which should be more "fishy" and faster.
I also fixed a typo in b6ee49c

@mwilliammyers Thanks for your PR! Can you squash your commits though?
I like the idea of using fish native features to do ordinary things. I didn't do this before because I don't know much about them myself 😄
Thoughts @oranja and @edouard-lopez?

@rafaelrinaldi Squashed them.

I didn't do this before because I don't know much about them myself 😄

Yeah it was a learning experience for me haha

@mwilliammyers Hey man, sorry to bug about this but for some reason the Git integration looks broken to me in your branch? Can you confirm?

@rafaelrinaldi I got the merge request if that's what you're talking about

@edouard-lopez What merge request?

@rafaelrinaldi I meant I have the button to merge.

@edouard-lopez Still not sure about what you're talking about 😄

I'm replying to:

@mwilliammyers Hey man, sorry to bug about this but for some reason the Git integration looks broken to me in your branch? Can you confirm?

confusion intensify

@edouard-lopez oh, okay! haha

@rafaelrinaldi Not at all!
It looks like it is working?

The up arrow is tab separated and I thought about changing them to spaces...
I have seen this before once (without manually typing type git):

but haven't seen it again and so I figured it was something else causing the issue.

@mwilliammyers Nevermind, it was an issue on my end. Your stuff seem to be working just fine. I will leave @edouard-lopez to merge it.
Thank you for helping us improve pure 🎉

@mwilliammyers Hey Will, let me know if you want to pair on this. No rush, just FYI 👍

Hi,
I just pulled this branch on my local machine and those changes make the theme a lot snappier for me. Good job. I'd be happy to help finish this up.
Also, fyi this branch outputs the following two error messages whenever it renders the prompt:
~/.config/fisherman/pure d3cc7e0
❱ cd ..
test returned eval errors:
        invalid integer 'cd ..'
test returned eval errors:
        invalid integer ''

fish version 2.5.0

Sorry, I just realized that this error was fixed upstream. After merging master into this branch, the error messages went away. Sadly, it seems like the prompt got a little bit slower again. It's still faster than the current master branch, but something else seems to be slowing it down some more.

Hey @pierrebeaucamp, would you be willing to sync up this branch with #51 and see if things behave as expected?
We can join efforts into merging this PR for good.

bump

@pierrebeaucamp @mwilliammyers Still interested in getting this merged in? We want to publish v1.2.0 by the end of the year.

Sure thing, I'll try to make some time for it this weekend.

So I updated this branch on my fork and implemented the requested changes, except of the string / pure_symbol_git_up_arrow comment chain, which left me a bit confused.
I don't think I can push to @mwilliammyers fork, so unfortunately I can't add my commits in this PR, but I could open a new one?
Let me know what you think or if there are more changes needed. I could also put all of this in my PR over here: https://github.com/rafaelrinaldi/pure/pull/51

Do you want me to do anything?

Hm, well I'm just trying to help merging this PR, but I don't have any write permissions so I couldn't just update this branch.
Anyway, check out this commit: https://github.com/pierrebeaucamp/pure/commit/fa00ece4823d2e8847bbd1a5958896823761af00. It is pretty small but addresses 2 out of the 3 comments above, but maybe it helps

@pierrebeaucamp Thanks a lot for the effort you put into this! I have invited you as a official collaborator on the project.
Feel free to do whatever is needed to merge in your changes.
Let me know if I can help in any way.

I'm merging as is as we had plenty of dissussion and kind of an agreement.
However, @mwilliammyers could you consider submitting a new PR with @oranja suggestion?


[df] ambassadors, council & notifications

Hugo

On decline / accept / claim buttons, call endpoints again and not refresh page
As council member I have “my communities” tab. Unless it's ambassador, it's not supposed.
Requests are not sorted (should be sorted by updatedAt because the value changes when an ambassador accepts or anything is edited)
As councilmember, I have a notification that has no title. It only shows “2 days ago”

Bernardo

As ambassador, I don’t see the “requests” option on the sidebar
When ambassador claims community, update only buttons, not the whole page
As ambassador, I see the “report suspicious option” on the sidebar, but shouldn’t. “360” should be 60. Needs to be properly parsed
Community card is breaking
If council member has other roles beyond being council member, doesn’t see the proposals menu option
Report suspicious activity not opening for beneficiaries
If the beneficiary claims the UBI and the  community then has no funds, it shows “no funds”, instead of the countdown. Should shown the countdown regardless

Hugo
[ ] - On decline / accept / claim buttons, call endpoints again and not refresh page
[ ] - As council member I have “my communities” tab. Unless it's ambassador, it's not supposed.
[ ] - Requests are not sorted (should be sorted by updatedAt because the value changes when an ambassador accepts or anything is edited)
[ ] - As councilmember, I have a notification that has no title. It only shows “2 days ago”
Bernardo

[ ] As ambassador, I don’t see the “requests” option on the sidebar
[ ] When ambassador claims community, update only buttons, not the whole page
[ ] As ambassador, I see the “report suspicious option” on the sidebar, but shouldn’t. “360” should be 60. Needs to be properly parsed
[ ] Community card is breaking
[ ] If council member has other roles beyond being council member, doesn’t see the proposals menu option
[ ] Report suspicious activity not opening for beneficiaries
[ ] If the beneficiary claims the UBI and the community then has no funds, it shows “no funds”, instead of the countdown. Should shown the countdown regardless


Multi label class loss plateau at epochs of 10 by the value of ~80

Trained on the bloodcell dataset, multi label class loss plateau at epoch of 10 by the value of ~80 and is still ~80 at epoch of 50, but the other loss (xywh and objectiveness loss) are able to reach near <1 value. However, by modifying the code in the class loss function such as
...
self.focal_loss = tfa.losses.SigmoidFocalCrossEntropy()
loss_class_arg = self.focal_loss(p_c_true, p_c_pred)
loss_class_arg = tf.clip_by_value(loss_class_arg, 0, 1000) # Prevent loss explosion

indicator_class = y_true[..., 4] * self.lambda_class
loss_class = K.sum(loss_class_arg * indicator_class)
return loss_class
...

The class loss value are able to reach ~30 at the epoch of ~30. Even though it may not look like a problem, as the bounding boxes prediction and the objectivity are correct, the class prediction arent able to distinguish between white blood cell and red blood cell.

I have found the solution,
p_c_true = K.one_hot(K.argmax(y_true[..., 5:], axis=-1), 1)

the code above shouldve been
p_c_true = K.one_hot(K.argmax(y_true[..., 5:], axis=-1), self.nb_class)

where self.nb_class presents number of class in the model.

Thank you for sharing and sorry for the late response.
Could you open a PR for it?

Thank you for sharing and sorry for the late response.
Could you open a PR for it?

But before that, do you think there is another way of getting self.nb_class without having to modify __init__ so that when __init__ is called it doesnt have to be provided?

But before that, do you think there is another way of getting self.nb_class without having to modify __init__ so that when __init__ is called it doesnt have to be provided?

we can take from y_pred or y_true, the shape of them are: (SAMPLES, GRID SIZE H, GRID SIZE W, BOXES, 4 + 1 + CLASSES)
so probably something like that should work:
num_classes = y_pred.shape[-1] - 4 - 1


WlanAutoconfig issue and Windows security Services are disabled in newer version.

Describe the bug
I used the newer version of winutil on win 11 pro insider(joined) on my laptop through laptop preset in tweka section and it disabled the "Wlansvc" and "windows security service".
The wifi option from taskbar was removed and I wasn't able to join any wifi network.
Not know about the Security service as it just show up in the notifications and I'm not able to make it as automatic started.
To Reproduce
Steps to reproduce the behavior:

Run winutil using powershell or terminal.
Click on 'tweaks'.
Click on 'laptop' preset.
Run the tweaks.
Restart the laptop.
See error

Expected behavior

Not able to join any wifi automatically other then manually run the wlansvc service from services.
Not know the consequences of the security service.. but seems to deal with security.

Screenshots
1.

Bug has been resolved. if you are still facing this issue then once run set the service to manual.

Yup...Thanks a lot for your time for such wonderfull effort.
I've recently seen the changes made.
I also skimmed the script and found that current version is not performing as much better as the older one.
as the "Sysmain" service is not disabled anymore after tunning the tweaks and also the process count is not as much lowered this time...
Is there a way to attain the older version of script to run through powershell offline as there are no version rollback options or releases in github sub menu


Create label_pr.yml

A workflow to auto assign labels to pr's
Not done yet

Maintainer Notes
⚠ Do not delete this section. Checklist for maintainers.
IMPORTANT: Complete the following checklist before merging.

Once you are happy with the changes remove the do not merge for the ready to merge tag.
Commits should be Squashed and Merged.

Might work idk


Add background queue

This commit adds a synchornous background queue for processing e.g. sync
tasks. These shouldn't be blocking in interactive use but still need to
be done before we terminate.
This might also help improve the git implementation later on.
RELEASE_NOTES=n/a
Signed-off-by: Dominik Schulz<EMAIL_ADDRESS>

Codecov Report

Merging #1447 into master will decrease coverage by 0.00%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##           master    #1447      +/-   ##
==========================================
- Coverage   63.46%   63.46%   -0.00%
==========================================
  Files         212      212
  Lines       11805    11810       +5
==========================================
+ Hits         7492     7495       +3
- Misses       3488     3490       +2
  Partials      825      825

Impacted Files
Coverage Δ

main.go
49.32% <0.00%> (-0.68%)
:arrow_down:

internal/store/leaf/write.go
38.18% <100.00%> (+3.57%)
: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 a9465b5...ec3abb8. Read the comment docs.


feat(extensions): add 1loc

Description

Browse https://1loc.dev/
Type of change

New extension

Screencast

https://cln.sh/Dqva1V9J7SJXGLskWGpe
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast

Fixed @pernielsentikaer

Thank you @sxn  :)


Smileys command without shorthand syntax

It'd be easier to produce smileys in the form \smiley{happy} instead of declaring \smileys{happy} in the preamble to generate shorthand smileys syntax that are then used as \happySmiley.
Would it be possible to make these changes on your side?

It is quite simple to do, but the question is ... What does it changes, to use \smiley{xxx} instead of \xxxSmiley in implementation ? (true question)

We would have much less weird cases to cover.
There are many more valid strings <foo> you can use with \smiley{foo} than with \<foo>Smiley.

It makes sense (even though UTF-8 management with LaTeX is a bit funny for file path, so I will not bet that it will work for every fancy character).


Version Conflict.

Hi,
I am trying to use the ScreenGrab library in my Android Project for grabbing screenshots for international languages. But my project won't compile as soon as I added the gradle dependency. It says Version Conflict.
I check the gradle for this library and it says targetSDK version as 23, but the target SDK for my project is 21. Is there a way to get around this issue.
Thanks
New Issue Checklist

[ ] Updated fastlane to the latest version
[ ] I have read the Contribution Guidelines

Issue Description
Complete output when running fastlane, including the stack trace and command used
INSERT OUTPUT HERE

Configuration Files
Please copy the complete content of your Fastfile and any other configuration files you use below:
Fastfile:
# INSERT CONTENT HERE

Environment
fastlane version (fastlane -v):
Do you use bundler, rbenv or rvm?

@bigyanthapa Thanks for checking out screengrab. Can you provide the full gradle output that includes the error you mentioned?

@asfalcone Thanks for the reply. Here is the error :
Warning:Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (22.2.0) and test app (23.1.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.

Ah ok, so the issue is in the version of the support library not the targetSDK. Our library does use support-annotations:23.1.1.
Can you try using compile "com.android.support:support-annotations:23.1.1" in your app?

I tried adding that, but I get error right there. The error says,"This support library should not use a different version (23) other than the compileSDKVersion 21 ."

Hi @bigyanthapa - I've merged #4075 to address this, which will be out in the next release.

Hi @bigyanthapa - we've just shipped screengrab 0.3.2 📷✨ which removes a targetSdkVersion declaration from the AAR. Please update your Ruby gem as well as your AAR dependency version and let us know how it looks. :+1:

Thank you @mfurtak , I appreciate your help. I will try to integrate the library again.


intermodal: 0.1.13 -> 0.1.14

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/casey/intermodal/releases.
meta.description for intermodal is: User-friendly and featureful command-line BitTorrent metainfo utility
meta.homepage for intermodal is: https://github.com/casey/intermodal
meta.changelog for intermodal is: https://github.com/casey/intermodal/releases/tag/v0.1.14
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.1.14 with grep in /nix/store/169dkpdk51a2qr0gcgrrm5hk55hclv3x-intermodal-0.1.14
found 0.1.14 in filename of file in /nix/store/169dkpdk51a2qr0gcgrrm5hk55hclv3x-intermodal-0.1.14

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

intermodal

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/169dkpdk51a2qr0gcgrrm5hk55hclv3x-intermodal-0.1.14 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A intermodal https://github.com/r-ryantm/nixpkgs/archive/e61a242d06b8361b03c9ec1907b3a4dfe5fb22c6.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/e61a242d06b8361b03c9ec1907b3a4dfe5fb22c6#intermodal

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/169dkpdk51a2qr0gcgrrm5hk55hclv3x-intermodal-0.1.14
ls -la /nix/store/169dkpdk51a2qr0gcgrrm5hk55hclv3x-intermodal-0.1.14/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

intermodal

Maintainer pings
cc @Br1ght0ne @xrelkd for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

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

@ofborg eval

Result of nixpkgs-review pr 339550 run on aarch64-darwin 1

1 package built:

intermodal


⚠ Samsung has degraded performance

In 87fde56, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2610 ms

Resolved: Samsung performance has improved in 3f822c5.


[UI] [Bug] Make the links in the sidebar highlighted and show the selection when clicked, and correct some of their path according to the logical order in the sidebar

Current Behavior

In docs.meshery.io, some of the links in the sidebar won't be highlighted and show the selection when clicked. For example, when click on the Broker in the sidebar, it won't be highlighted and show the selection,

Desired Behavior

Here shows an example of the link in the sidebar that is highlighted when clicked. It shows the selection.

This issue is inspired by the comment and discussed below #11923
Tasks
The links need to be fixed are,

home / installation / docker / docker extension
All pages under home / installation / kubernetes

AKS
EKS
GKE
HELM
KinD
Minikube
KubeSphere

All pages under home / installation / linux Mac

Bash
Brew

home / installation / windows / scoop

home / concepts / architecture / broker, the path of this page should be "home / concepts / architecture / operator / broker" and the selection should be highlighted.

home / concepts / architecture / meshsync, the path of this page should be "home / concepts / architecture / operator / meshsync" and the selection should be highlighted.

All pages under home / concepts / logical / models

Components
Relationships
Policies
Connections
Credentials

The path of these links should also be "home / concepts / logical / models / xxx" instead of "home / concepts / logical / xxx"

home / installation / compatibility matrix, when this page is linked at home / extensibility / adapters

pages under home / project / contributing, as shown in the following pic

Also need to make sure that their path is logically consistent with that is listed in the sidebar. For example, the End-to-End Testing page path should be in a sub dir of build & release (ci) under contributing

links circled below

Environment

Browser: Chrome
Host OS: Mac
Meshery Server Version: stable-v
Meshery Client Version: stable-v
Platform: Docker Kubernetes

Contributor Guides and Handbook

🎨 Wireframes and designs for Meshery UI in Figma (open invite)
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

@Ashparshp  I would be happy to work on this issue

Thank you, @KunyueXing, for opening this detailed and well-organized issue!
@Mandeep56Singh, this looks great for you to work on. Go ahead; I've assigned it to you.

Hey, @Ashparshp I want to work on this issue.

@Sumitsh28  can you wait for two days more, due to some urgent work I wasn't been able to work on it. But I am free now
so I am going to work on it.

@Sumitsh28  have you setup the project ? on windows ? and this issue requires jekyll to be installed. I am having problem installing it.

@KunyueXing can you please clarify, this issue to related to meshery docs, so in labels it should have contained jekyll instead of react ?

@KunyueXing can you please clarify, this issue to related to meshery docs, so in labels it should have contained jekyll instead of react ?

Hi @Ashparshp, I'm not familiar with jekyll currently. For a quick reply to @Mandeep56Singh, should we include jekyll in the labels?

@vishalvivekm //


Update README-CN.md

修改readme

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


fixes to the google cloud platform "not small callset" workflow branch

I noticed a few issues with the GatherTranches and GatherMetrics tasks when trying to run this workflow on google cloud on the !is_small_callset branches (e.g. > 10,000 samples).  The following two commits hopefully addresses them.

Big thanks for finding and providing fixes for these issues @indraniel !


Cannot print nor evaluate envars in fix-spec-file

# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: packaging/leapp-repository.spec

actions:
  create-archive:
  - ....whatever you need...
  fix-spec-file:
  - bash -c echo AAAAAAAAA $PACKIT_PROJECT_VERSION

output for packit --debug srpm:
[snip]
2021-09-14 16:52:45.086 commands.py       DEBUG  Command: bash -c echo AAAAAAAAA $PACKIT_PROJECT_VERSION
2021-09-14 16:52:45.091 logging.py        INFO
2021-09-14 14:52:45.214 lookaside_cache_helper.py WARNING "sources" is not a file, skipping parsing it
[snip]

As a consequence, I am not even able to update the spec by any command.
Other info:

packit-0.35.0-1.fc33.noarch
Fedora 33

PEBKAC palmface - this works:
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: packaging/leapp-repository.spec

actions:
  create-archive:
  - ....whatever you need...
  fix-spec-file:
  - bash -c "echo AAAAAAAAA $PACKIT_PROJECT_VERSION"

I wasn't able to reproduce this locally, the env var was expanded for me properly
is anyone from the team able to reproduce?

I am keeping that opened after discussion with @TomasTomecek

so this turned out to be an issue how exec/shell interpret quotes: moving to docs repo


Unable to get dbuser state to true after a false state

Initially creating readonly and readwrite users seems to go fine. But when I end up in a situation something went wrong and want to recreate this user, I can't get it back to a true state.
What I do when I try to fix this, is delete the user via dbusers.kinda.rocks and delete the database user at the same time.
The database user is recreated right away, but I do also see permission denied errors on grants and default privileges in the log immediately. After that, the operator tries to recreate the user at every reconciliation (which fails with user already exists because the user is already created).
Does that mean the master user gets the user-role too late in this (recreate) case, which leads to permission errors, which leads to a user recreate loop? Could that be the case and/or is there a better solution to fix this?

First, I would say that DbUsers are not still very stable, I consider them a helper resource, so I would expect issues.
I'm not sure why it's happening in your case, I'll need to reproduce, but the complicated logic for DbUsers has a reason.
I guess the might be two things here
First:
There is a status entry: DbUser.status.created that can only be set during the first reconciliation. And if CREATE USER query returns ALREADY EXISTS, this field will not be set to false. And DbUsers will never be managed by the operator.
We've decided to go this way, because db-operator is not supposed to take over users that were there already, but should only be able to create new ones and manage them
About your case, I guess it might happen, because DbUser has a finalizer that won't let the resource be gone, until the User is removed from the instance, but this finalizer is attached to a Database as well. So it might be, that by removing a database you're making a DbUser irremovable.
I'll check finalizers to see whether it's the case
Second
Have a look at this issue, there is an item about improving DbUsers: https://github.com/db-operator/db-operator/issues/66

The issue looks a lot like what is mentioned in the 6th bullet in https://github.com/db-operator/db-operator/issues/66, except that it does not try to create the user one more time, but keeps on trying.
And the point you mention about DbUser.status.created only being set during the first reconciliation makes sense explaining the behavior I see.

Yep, I've chosen wrong words, I meant it keeps on trying.

Meanwhile I can say, in general, I am able to get users back to a true state. It is a matter of deleting the dbuser.kinda.rocks user and database user and in the end the state end up true. Still not sure about the exact order/steps needed. So this issue is not really a big problem for me a.t.m.


Link broken to http://claylabs.com/clay/

Used in README.md and repo description.

Here is the correct link : http://claylabs.com/clay

Fixed the project description, thanks!


Feature expose position joints

[ ] In the Rigged_Hands_AutoRig_Example.unity scene, run the autorig script on the either pair of hands.  In the RiggedHand component for each hand, toggle both SetLeapEditorPose and DeformPositionsInFingers.

OK done, thanks for the catch.


[BUG] After vm restore, display text "Operation complete" on backup detail page

Describe the bug

To Reproduce
Steps to reproduce the behavior:

restore vm from a backup
go to backup detail page

Expected behavior

don't  show the "Operation complete" text
Log

Environment:

Harvester ISO version: 0.2.0-rc3
Installation Mode: ISO/app-mode
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Additional context
Add any other context about the problem here.

Will need to change the Progressing condition type to InProgress to avoid incorrect error state, this is a framework condition https://github.com/rancher/wrangler/blob/master/pkg/summary/summary.go#L121

validated on master-0423.iso


Create an app/db creation page for the FTUX

Adds a page at /welcome/first-app that looks like:

This is also linked to as the next step after creating a new user. The values entered are stored in localStorage to be used for provisioning at a later step. Refs #30.
@bantic for you to review and merge!

nice. looks good!


output in python & ipython terminal work with standard graphics

The output when running python in a terminal is a png image - try to work directly with underlying image creation tool - could this also do scaling? (that may be too hard)

https://doc.qt.io/qtforpython/PySide6/QtSvgWidgets/QSvgWidget.html

We're not going to test this out, but we use matplotlib to show a png representation of the object. This allows the approach to fit into the standard framework. Sadly, scaling is missing - but the user will currently have to live with that.

completed by #7


CSharp plugins lock up server if referenced DLL is not found

As reported by @Feramor. The Facepunch.dll was being referenced in his plugin, and upon server start, it caused the server to get hung up on trying to load his plugin as the Facepunch.dll no longer exists.

This is likely a rare issue. I think it was caused by the same function existing in both Facepunch.dll and Assembly-CSharp.dll.

I can't reproduce this anymore. Closing the issue.


Python interface for functions

There should probably be one so that code might be executed not only with console but with another code too

Done in #92


MoveFile fails after OpenRead on fast internet connection

FTP OS: Windows NT (according to WinSCP)
FTP Server: IIS?
Computer OS: Windows 10/2012 R2
Hello everyone,
I'm writing a small app that opens small txt files as stream (using OpenRead()), parses them, and then moves them to another folder on the same server. Usually they're between 200-500 files per session.
When I tested the app on my Win10 PC (with awfully slow internet connection) the app worked flawlessly. However, when I placed it on the production PC (Win2012R2, with ~600MB/s dl speed and 1ms ping) it fails with different error messages. I'm getting "Access denied", "Bad sequence of commands", "The system cannot find the path", all of them with MoveFile().
As a workaround, I put a Thread.Sleep(1000) right after I call MoveFile(), which prevents the errors from happening. This, of course, makes the app terribly slow.
Any help would be appreciated.
Thank you.
Logs:
# OpenPassiveDataStream(AutoPassive, "RETR /xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV", 0)
Command:  EPSV
Response: 229 Entering Extended Passive Mode (|||47729|)
Status:   Connecting to ***:47729
Command:  RETR /xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV
Response: 125 Data connection already open; Transfer starting.
Status:   Disposing FtpSocketStream...
Status:   Disposing FtpSocketStream...

# MoveFile("/xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV", "/LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV", Overwrite)

# FileExists("/xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV")
Command:  SIZE /xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV
Response: 226 Transfer complete.

# FileExists("/LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV")
Command:  SIZE /LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV
Response: 213 27362

# DeleteFile("/LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV")
Command:  DELE /LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV
Response: 550 /LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV: The system cannot find the path specified.

# OpenRead("/xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV", Binary, 0)
Command:  TYPE I
Response: 200 Type set to I.

# GetFileSize("/xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV")
Command:  SIZE /xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV
Response: 213 27362

# OpenPassiveDataStream(AutoPassive, "RETR /xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV", 0)
Command:  EPSV
Response: 229 Entering Extended Passive Mode (|||47677|)
Status:   Connecting to ***:47677
Command:  RETR /xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV
Response: 125 Data connection already open; Transfer starting.
Status:   Disposing FtpSocketStream...
Status:   Disposing FtpSocketStream...

# MoveFile("/xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV", "/LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV", Overwrite)

# FileExists("/xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV")
Status:   There is stale data on the socket, maybe our connection timed out or you did not call GetReply(). Re-connecting...
Status:   The stale data was: 226 Transfer complete.
Status:   Disposing FtpSocketStream...

# Connect()
Status:   Connecting to ***:21
Response: 220 Microsoft FTP Service
Command:  USER ***
Response: 331 Password required for xxx.
Command:  PASS ***
Response: 230 User xxxlogged in.
Command:  FEAT
Response: 211 END
Response: 211-FEAT
Response: SIZE
Response: MDTM
Status:   Text encoding: System.Text.ASCIIEncoding
Command:  SYST
Response: 215 Windows_NT
Status:   Auto-detected Windows listing parser
Command:  SIZE /xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV
Response: 213 27362

# FileExists("/LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV")
Command:  SIZE /LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV
Response: 550 /LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV: The system cannot find the path specified.

# Rename("/xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV", "/LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV")
Command:  RNFR /xxx/Outbound/OrderGuides/DIST044_001_9924_20180527191251.CSV
Response: 350 File exists, ready for destination name
Command:  RNTO /LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV
Response: 550 /LCROrderGuide/Test/Processed/DIST044_001_9924_20180527191251.CSV: Access is denied.

# OpenRead("/xxx/Outbound/OrderGuides/DIST257_46089_66538_20180527195711.CSV", Binary, 0)

# GetFileSize("/xxx/Outbound/OrderGuides/DIST257_46089_66538_20180527195711.CSV")
Status:   There is stale data on the socket, maybe our connection timed out or you did not call GetReply(). Re-connecting...
Status:   The stale data was: 250 RNTO command successful.
Status:   Disposing FtpSocketStream...

# Connect()
Status:   Connecting to ***:21
Response: 220 Microsoft FTP Service
Command:  USER ***
Response: 331 Password required for xxx.
Command:  PASS ***
Response: 230 User xxxlogged in.
Command:  FEAT
Response: 211 END
Response: 211-FEAT
Response: SIZE
Response: MDTM
Status:   Text encoding: System.Text.ASCIIEncoding
Command:  SYST
Response: 215 Windows_NT
Status:   Auto-detected Windows listing parser
Command:  SIZE /xxx/Outbound/OrderGuides/DIST257_46089_66538_20180527195711.CSV
Response: 213 28790

# OpenPassiveDataStream(AutoPassive, "RETR /xxx/Outbound/OrderGuides/DIST257_46089_66538_20180527195711.CSV", 0)
Command:  EPSV
Response: 229 Entering Extended Passive Mode (|||54785|)
Status:   Connecting to ***:54785
Command:  RETR /xxx/Outbound/OrderGuides/DIST257_46089_66538_20180527195711.CSV
Response: 125 Data connection already open; Transfer starting.
Status:   Disposing FtpSocketStream...
Status:   Disposing FtpSocketStream...

# Rename("/xxx/Outbound/OrderGuides/DIST257_46089_66538_20180527195711.CSV", "/xxx/Outbound/OrderGuides/Processed/20180527/DIST257_46089_66538_20180527195711.CSV")
Command:  RNFR /xxx/Outbound/OrderGuides/DIST257_46089_66538_20180527195711.CSV
Response: 226 Transfer complete.
Command:  RNTO /xxx/Outbound/OrderGuides/Processed/20180527/DIST257_46089_66538_20180527195711.CSV
Response: 503 Bad sequence of commands.

If you are calling your FTP client from multiple threads it will cause internal race conditions. I hope you are only using one thread or background worker and doing all the uploads from there.

I hope you are only using one thread

I'm not using multiple threads, at least not explicitly. I'm not using any async methods either.
using (FtpClient conn = new FtpClient(host, username, password))
{
	try
	{
		conn.RetryAttempts = 2;
		conn.Connect();
	}
	catch (Exception e)
	{
		//logs exception
		return;
	}
	var allFilesInFolder = conn.GetListing(workingFolder).Where(x => x.Type == FtpFileSystemObjectType.File).ToList();
	var dcsInFolder = allFilesInFolder.Select(x => x.Name.Split('_')[0]).Distinct().ToList();
	foreach (var dc in dcsInFolder)
	{
		if (!NamingStrings.Any(x => x.DCIDString.Equals(dc)))
		{
			continue;
		}
		var dcFileList = allFilesInFolder.Where(x => x.Name.Contains(dc)).ToList();
		var dailyfolder = string.Format("{0}/{1}/{2}", workingFolder, processedFolder, ogDate.ToString("yyyyMMdd"));
		var folderExists = conn.DirectoryExists(dailyfolder);

		if (!folderExists)
		{
			conn.CreateDirectory(dailyfolder);
		}

		foreach (var file in dcFileList)
		{
			using (Stream istream = conn.OpenRead(file.FullName))
			{
				try
				{
					storeOg = ProcessFileStream(istream, storeNumber);
				}
				finally
				{
					istream.Close();
				}
			}

			try
			{
				conn.MoveFile(file.FullName, string.Format("{0}/", dailyfolder) + file.Name, FtpExists.Overwrite);
				Thread.Sleep(400);
			}
			catch (Exception e)
			{
				//logs exception
			}
		}
	}
}

Since you are using OpenRead(), please call GetReply() after you close that stream. Its mentioned in the docs : https://github.com/robinrodricks/FluentFTP#lowlevel


gitkraken: 8.8.0 -> 8.9.1

Things done

Built on platform(s)

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

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

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

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

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

[X] Fits CONTRIBUTING.md.

There's a new release 8.10.0 with Electron 17 but I can't get it to run. Not sure what needs to be changed to make it work.
diff --git a/pkgs/applications/version-management/gitkraken/default.nix b/pkgs/applications/version-management/gitkraken/default.nix
index 3dea75cc622..1cd5a967b40 100644
--- a/pkgs/applications/version-management/gitkraken/default.nix
+++ b/pkgs/applications/version-management/gitkraken/default.nix
@@ -10,24 +10,24 @@ with lib;

 let
   pname = "gitkraken";
-  version = "8.8.0";
+  version = "8.10.0";

   throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";

   srcs = {
     x86_64-linux = fetchzip {
       url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz";
-      sha256 = "sha256-F/uqV6CL/zFERS6nKVD8kEqCZQ2O9AGGzU5uCJ94qwk=";
+      sha256 = "sha256-919cvj0Xz3PvDqh5I4GhKvZVkM4m+8J9F1Rb7R+0WLo=";
     };

     x86_64-darwin = fetchzip {
       url = "https://release.axocdn.com/darwin/GitKraken-v${version}.zip";
-      sha256 = "sha256-TWkwN39SxPRvUUjAPSBxv4octWasjRiA91FNCWRya44=";
+      sha256 = "sha256-AGATWPVZxc3WKPMJRHpuFH/LP16CmdcxjGr/MxctIvM=";
     };

     aarch64-darwin = fetchzip {
       url = "https://release.axocdn.com/darwin-arm64/GitKraken-v${version}.zip";
-      sha256 = "sha256-drAj0t8BRUETQ6mZPdHXgkuFAKeYsGLE8oLtf/imHk4=";
+      sha256 = "sha256-uInhcSYd1KXoeaok8NPcRA5CzvVJGV2c81tVXUeYTDo=";
     };
   };

There's a new release 8.10.0 with Electron 17 but I can't get it to run. Not sure what needs to be changed to make it work.
diff --git a/pkgs/applications/version-management/gitkraken/default.nix b/pkgs/applications/version-management/gitkraken/default.nix
index 3dea75cc622..1cd5a967b40 100644
--- a/pkgs/applications/version-management/gitkraken/default.nix
+++ b/pkgs/applications/version-management/gitkraken/default.nix
@@ -10,24 +10,24 @@ with lib;

 let
   pname = "gitkraken";
-  version = "8.8.0";
+  version = "8.10.0";

   throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";

   srcs = {
     x86_64-linux = fetchzip {
       url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz";
-      sha256 = "sha256-F/uqV6CL/zFERS6nKVD8kEqCZQ2O9AGGzU5uCJ94qwk=";
+      sha256 = "sha256-919cvj0Xz3PvDqh5I4GhKvZVkM4m+8J9F1Rb7R+0WLo=";
     };

     x86_64-darwin = fetchzip {
       url = "https://release.axocdn.com/darwin/GitKraken-v${version}.zip";
-      sha256 = "sha256-TWkwN39SxPRvUUjAPSBxv4octWasjRiA91FNCWRya44=";
+      sha256 = "sha256-AGATWPVZxc3WKPMJRHpuFH/LP16CmdcxjGr/MxctIvM=";
     };

     aarch64-darwin = fetchzip {
       url = "https://release.axocdn.com/darwin-arm64/GitKraken-v${version}.zip";
-      sha256 = "sha256-drAj0t8BRUETQ6mZPdHXgkuFAKeYsGLE8oLtf/imHk4=";
+      sha256 = "sha256-uInhcSYd1KXoeaok8NPcRA5CzvVJGV2c81tVXUeYTDo=";
     };
   };

Should an issue be made for this?

There's a new release 8.10.0 with Electron 17 but I can't get it to run. Not sure what needs to be changed to make it work.
diff --git a/pkgs/applications/version-management/gitkraken/default.nix b/pkgs/applications/version-management/gitkraken/default.nix
index 3dea75cc622..1cd5a967b40 100644
--- a/pkgs/applications/version-management/gitkraken/default.nix
+++ b/pkgs/applications/version-management/gitkraken/default.nix
@@ -10,24 +10,24 @@ with lib;

 let
   pname = "gitkraken";
-  version = "8.8.0";
+  version = "8.10.0";

   throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";

   srcs = {
     x86_64-linux = fetchzip {
       url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz";
-      sha256 = "sha256-F/uqV6CL/zFERS6nKVD8kEqCZQ2O9AGGzU5uCJ94qwk=";
+      sha256 = "sha256-919cvj0Xz3PvDqh5I4GhKvZVkM4m+8J9F1Rb7R+0WLo=";
     };

     x86_64-darwin = fetchzip {
       url = "https://release.axocdn.com/darwin/GitKraken-v${version}.zip";
-      sha256 = "sha256-TWkwN39SxPRvUUjAPSBxv4octWasjRiA91FNCWRya44=";
+      sha256 = "sha256-AGATWPVZxc3WKPMJRHpuFH/LP16CmdcxjGr/MxctIvM=";
     };

     aarch64-darwin = fetchzip {
       url = "https://release.axocdn.com/darwin-arm64/GitKraken-v${version}.zip";
-      sha256 = "sha256-drAj0t8BRUETQ6mZPdHXgkuFAKeYsGLE8oLtf/imHk4=";
+      sha256 = "sha256-uInhcSYd1KXoeaok8NPcRA5CzvVJGV2c81tVXUeYTDo=";
     };
   };

Should an issue be made for this?

Sure


Feat: separate module OCI by different OS and arch

What would you like to be added?
Separate module OCI by different OS and arch
Why is this needed?
To reduce the size of the module OCI and speed up the download process

tracked by #1012


:sparkles: (backend) add limit to orders on a product

Add max_validated_orders field to CourseProductRelation. No order can be filled if the number of validated and pending orders hit this value
Purpose
Implementation request found in issue #249
Description...

[x] Add a PositiveSmallIntegerField called max_validated_orders to the CourseProductRelation model. The field should be required and should default to 0 (no maximum)
[x] Add a check to ensure that we never exceed the max number of validated orders for a product on a given course.Secure it with a test.
[x] Make sure the API returns a 400 if the client tries to validate an order for a product on a course that already exceeds the limit. Pending orders (waiting for payment) should count in the max so that we are sure an order can be validated after payment! Secure it with a test.

Thanks.
I cannot merge this PR because I do not have write access on the repo

@samy-aitouakli I merge it for you!


Feature - Add Plesk domains to Uptime Robot monitors

The user should have the ability to add all his plesk domains with little effort to uptime robot as monitors.

yes, please, by all means
otherwise what's the use of a plesk extension ?

Here is an example of how this can be implemented for your consideration:

Plesk admins install extension, enter their uptime robot API key and select "Add All hosted domains to uptime robot" button (maybe offer options for frequency and who to notify as optional fields). This would add all of the hosted websites (excluding any forwards, or aliases, etc) to uptime robot via the API calls. See this example screenshot:

If Plesk admin selected the "Publish uptime stats & graphs on customer panel" as suggested in the above screenshot, then customers can see their hosted website uptime stats in their panel. See this example screenshot:

Offer option to run nightly cron to either add/delete uptime robot checks depending on changes made at Plesk server. Example, customer adds a new web hosting or deletes web hosting.

+1
Agree, this is really handy


color flag is missing

Hey, I don't see how to get color by default as it's set to 'no-color'
time="2021-03-10T17:00:31Z" level=info msg="Running command: /usr/bin/terraform plan -input=false -lock=false -no-color -var-file=./../../variables/dev.tfvars -out=/tmp/tfplan508083620"
time="2021-03-10T17:00:39Z" level=info msg="Running command: /usr/bin/terraform show -no-color -json /tmp/tfplan508083620"
I don't see a --color flag
docker run --rm -v $PWD/:/code/ infracost/infracost breakdown --help | grep color
      --no-color           Turn off colored output

@aliscott good point, am I missing something obvious 👀 or something else as it's the latest docker version using breakdown  as I see -no-color by default
	INFRACOST_API_KEY=
	LOG_LEVEL=INFO

	docker run --rm \
	-e INFRACOST_API_KEY=$INFRACOST_API_KEY \
	-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
	-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
	-e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
	-e AWS_REGION=$AWS_REGION \
	-v $PWD/:/code/ infracost/infracost breakdown --path /code/infrastructure/aws/environments/dev/ \
	--terraform-plan-flags="-var-file=./../../variables/dev.tfvars \
	--log-level $LOG_LEVEL

time="2021-03-11T09:01:17Z" level=info msg="Detected Terraform directory at /code/infrastructure/aws/environments/dev/"
time="2021-03-11T09:01:18Z" level=info msg="starting: Running terraform plan"
time="2021-03-11T09:01:18Z" level=info msg="Running command: /usr/bin/terraform plan -input=false -lock=false -no-color -var-file=./../../variables/dev.tfvars -out=/tmp/tfplan505386012"
time="2021-03-11T09:01:25Z" level=info msg="starting: Running terraform show"
time="2021-03-11T09:01:25Z" level=info msg="Running command: /usr/bin/terraform show -no-color -json /tmp/tfplan505386012"
time="2021-03-11T09:01:29Z" level=info msg="starting: Calculating monthly cost estimate"

Then the infracost output.... just white and grey text

Thanks @jimsmith, good spot! Yeah the --log-level disables the spinners and logs those steps instead - spinners don't play nicely with logs. It still keeps the coloured output in the breakdown table (although this is only white and grey), the diff (this has more colors) and any errors. I've updated the docs to clarify that log-level disables the spinners.
Closing this just now - let me know if you find any more issues and I will reopen it.


Adding a license

Hi,
it would be awesome if you included a license. I build a circuit on top of yours and would like to make it public/opensource on github. TY in advance!
Have a nice day.

Done


demo update OMERO.web and apps

web 5.8.0
figure 4.3.2
iviewer 0.10.1

Deployed to pub-omero

demo updated


docs: fix simple typo, incompatiblity -> incompatibility

There is a small typo in textblob/taggers.py.
Should read incompatibility rather than incompatiblity.
Semi-automated pull request generated by
https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

Thanks!


Norway subdivision keys incorrect

The subdivision keys for Norway have an incorrect format (file).
https://github.com/hexorx/countries/blob/83f392b478f065411d6a4d48bab697b1eade72a3/lib/countries/data/subdivisions/NO.yaml#L26-L37
There should be no country code prefix e.g. NO-. Since I rely on the format of the keys and add the country code myself this led to invalid values such as NO-NO-03.
Correction:
The file has both. First norway's subdivisions with the key having the country code prefix and the attributes :name, :unofficial names, :translations (only :en though) and :geo, then later the keys in the correct format only with :translations for plentyful of countries. This should prob be combined.
Sadly, if I understand correctly, I should rather report this to https://salsa.debian.org/iso-codes-team/iso-codes/issues  ?

I think we pull subdivisions from http://www.unicode.org/repos/cldr/trunk/common/  but I don't see Norway in there.
So feel free to make a PR here.

Current version of the file matches the keys in https://www.iso.org/obp/ui/#iso:code:3166:NO


Amy Train-the-Trainers edits for Demo 4 and 5

added contributor information for Amy and Gabriela
Added adversarial data files needed for demo 4 to the repo
updated links for creative writing agent sample repo to point to the main branch
updated the demo list to include the first demo being a walkthrough of the Creative Writing Agent and how it works
added aka.ms links for the slides from Laurent's form
added aka.ms links for demo videos
added length of each demo currently created
added links to the technologies included in the session on the main readme - to point to relevant docs
added detailed speaker instructions for Demo 4 and 5 including screenshots where needed

LGTM! Thank you @amynic!


Fix demo.html in develop branch. Same as #250.

#250 only addresses gh-pages branch. Ported changes from gh-pages to develop. We should not have this issue in the future (gh-pages) releases anymore.
Thanks

Thanks!


[iOS] switch between speakers and earpiece

Issue numbers #429 and #389.
Implemented stream routing for iOS. Now able to switch between the main speaker and the earpiece speaker.

LGTM, can you please add to the changelog? (I can do it as well when I merge)

Thanks, added to changelog :)

tested with latest version but not switching from speaker to airpods like in whatsapp.
i have this global settings , should i call some methods or this behavior implemented internally ?
AudioPlayer.global.setGlobalAudioContext(
      const AudioContext(
        iOS: AudioContextIOS(
          category: AVAudioSessionCategory.playback,
          options: [
            AVAudioSessionOptions.mixWithOthers,
            AVAudioSessionOptions.defaultToSpeaker,
          ],
        ),
      ),
    );

Unfortunately I cannot test the exact settings. You have to play around with the example.


Test: Float test fail

 FAIL  tests/float.test.js
  ● float › should return a number between min and max

    expect(received).toBeLessThan(expected)

    Expected: < 1
    Received:   1

      40 |   it("should return a number between min and max", () => {
      41 |     expect(float(0, 1)).toBeGreaterThanOrEqual(0);
    > 42 |     expect(float(0, 1)).toBeLessThan(1);
         |                         ^
      43 |   });
      44 |
      45 |   it("should return a number with the specified number of decimals", () => {

      at Object.<anonymous> (tests/float.test.js:42:25)

I try this
const float = require("./lib/float.js");

let x = 0;
let y = 0;

const min = 0;
const max = 10;

for (let i = 0; i < 1000000; i++) {
  const result = float(min, max);

  if (result === max) {
    x++;
  } else if (result > max) {
    y++;
  }
}

console.log(`${x}/${y}`);

Result:
$ node test.js
529/0

Is max included?

Yes thank you for opening this issue, so the toFixed method is rounding up the floating point value which means that sometimes vrandom.float(min, max) can return a value equal to max. Now, because I have change the int function to return a number including max, I am happy to keep float like that, all that is needed is changing the docs and changing the tests  to make sure we are not testing for the returned value to be strictly less than max. I will close this issue and open new ones to get those things fixed. Thank you for spotting that


step2

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@234c0ca). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #4   +/-   ##
=======================================
  Coverage        ?   60.34%
=======================================
  Files           ?        3
  Lines           ?       58
  Branches        ?        0
=======================================
  Hits            ?       35
  Misses          ?       23
  Partials        ?        0

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 234c0ca...884b069. Read the comment docs.


Improve the Twinsen placement logic when transitioning from one scene to another.

There is some reasonable complexity here so I've done my best to structure it in a nice way and comment it where appropriate.
Basic idea is:

Find where the zone.props coordinates would put us by default.
Find the closest zone in the new scene to those coordinates (this is the door we're exiting from).
If a closest zone doesn't exist, fallback to the default zone.props location.
If a closest zone does exist, snap our target location in the new scene to the closest zone bounding box.
Apply an offset defaulting to half a brick but allow overriding per scene transition for problematic cases.
Apply the delta of Twinsen compared to the door he's entering (i.e. how far along the door he is).

This implementation performs much better that what we currently have. I've spent some time testing and have identified a few offsets for cases which don't work. There are certainly more of these todo but I don't want to spend the time hunting them all down now.

Addressed comments, PTAL.


Implement keywords trigger

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

v1.7.0
GitHub release

Your semantic-release bot :package::rocket:


daemon: silence log messages during cmdref generation

Call genMarkdown as early as possible and extract the cmdref directory
directly from viper instead of letting initEnv populate all options
first. This avoids log messages related to kvstore when generating
cmdref.
Also move the os.Exit(0) into daemon_main.go so it is more obvious that
the agent exits after generating the command reference.
Fixes #10081
Signed-off-by: Tobias Klauser<EMAIL_ADDRESS>

This change is

test-me-please

Coverage increased (+0.04%) to 44.655% when pulling 16b3672dfc33eb6708b5c01373d445838f3af9b6 on pr/tklauser/silence-build-system-agent-cmdref into 1130d454a35e62774ad43ddbbf182dd657700ae5 on master.


Data Notes. The Search is finding some OSF notes but does not find others.

Feature or enhancement
E.g.
In the process of curating the data imported from OSF, I need to edit some terms used on the notes of some citations, so I was hoping to find all the notes that use an specific term in the Data card "Notes".
The Taxon Name I was working on is the genus _Amphinotulus Günther, 1939 _

If I look for the note in the first citation, TW gets me the exact one first.

But then if I look for the next one: "synonymization with Salomonotettix not possible"

Then TW gets me results that have nothing to do with this note.

Why is that?
Location
Data - Notes
Screenshot, napkin sketch of interface, or conceptual description
No response
Your role
Curator

it is not perfect, but at the moment, you can use Browse annotations interface. Search for Notes on citation, which could be downloaded as csv file and use Excel filterring to find relevent notes.

duplicate of #2771


Crash after upgrading from 11.12.16 to 11.13.1

Hello, after upgrading "NSwag.AspNetCore" package to the version "11.13.1" and publish my API with "Release" configuration.
I try to call an action from my Swagger, then i got an 500 error.
After downgrade the package to 11.12.16 and republish the API, the error has dissapeared.
I attach the error (it's an html file, but I need to rename the extension
Internal Server Error.txt
)
Thx in advance! (sorry for my english)

MY BAD -.-
I publish on my server without overwrite this file : InternalAPI.deps.json
so it's fail.
Sorry again


Document Tools doctest lines for add_line_numbers has a typo.

In the exercise Document Tools, it appears there is a typo in the example documentation for the add_line_numbers function.
The text iex> File.write("add_line_numbers.txt", "one\n\ntwo\nthree") will create a blank line as line number 2 due to the two back to back \n\n line endings.
The expected text to make the example solution pass would be iex> File.write("add_line_numbers.txt", "one\ntwo\nthree").
I should be at my computer later tonight to make a PR for this change. I just needed to create something or I would possibly forget.

If you have time to make a PR that would be awesome! If not this would make a great first issue.


ci: change linux build to use gcc10

macos and windows builds were removed also, one could
profit more by adding a new build step to build with clang
instead of targetting 3 different platforms when one
only wants to build a linux desktop app.

@luizchagasjardim @soaresiv  can force merge this into main ?

sure


Organize utils into a package

FEATURE DESCRIPTION
Feature Inspiration
A large utils.py file is hard to look through and update.
Feature Description
Break up utils.py into multiple modules (and/or packages) in a utils package.
Alternatives Considered
Comment
Take care to communicate with other developers so they are aware of this incoming PR and can avoid making large changes to the utils.py file during this refactor.

ISSUE OWNER SECTION
Assumptions
Existing classes in utils

class SampleTableLoader:
class AccuCorDataLoader:
class CompoundsLoader:
class HeaderError(Exception):
class HeaderConfigError(Exception):
class RequiredValueError(Exception):
class ResearcherError(Exception):
class MissingSamplesError(Exception):
class AmbiguousCompoundDefinitionError(Exception):
class ValidationDatabaseSetupError(Exception):
class QuerysetToPandasDataFrame:
class DryRun(Exception):
class LoadingError(Exception):
class TissuesLoader:

Seems like you could split this into "loaders" and "exceptions"
SampleTableLoader
AccuCorDataLoader
CompoundsLoader
TissuesLoader

HeaderError
HeaderConfigError
RequiredValueError
ResearcherError
MissingSamplesError
AmbiguousCompoundDefinitionError
ValidationDatabaseSetupError
DryRun
LoadingError

and then the "odd" one doing its own thing
QuerysetToPandasDataFrame
I would be fine having all the loaders and QuerysetToPandasDataFrame in their own files (5 files), and bundling all the Exception subclasses together in a file?  So 6 files in the utils package, and use the __init.py__ to map namespace?
Requirements

List of conditions to be met for the feature
E.g. Every column/row must display a value, i.e. cannot be empty

Limitations

A list of things this work will specifically not do
E.g. This feature will only handle the most frequent use case X

Affected/Changed Components

Files
Environment variables
External executables
Database tables
Cron job settings
Etc.

DESIGN
GUI Change description
Describe changes the user will see.
Code Change Description (Pseudocode optional)
Describe code changes planned for the feature.
Tests
A test should be planned for each requirement (above), where possible.

Proposal : I would be fine having all the loaders and QuerysetToPandasDataFrame in their own files (5 files), and bundling all the Exception subclasses together in a file? So 6 files (total) in the utils package directory, and use the init.py to map namespace?

There is also this stand alone function, that might be homeless, with the above strategy
https://github.com/Princeton-LSI-ResearchComputing/tracebase/blob/5daccc83a71481519fa923de2f7d25268389970a/DataRepo/utils.py#L2115-L2142


feat: custom compiler

closes #109
closes #111

@antfu the usage is weird, maybe we can chnage the signature for compiler on CustomCompiler to:
export type CustomCompiler = {
  compiler: (() => Awaitable<Compiler>) | Compiler
  extension?: string
}


Fix issues found by long-running and stress tests

Currently, I am conducting several long-running stress tests in preparation for release 0.5.0. These tests have led to the discovery of several bug fixes and improvements.
Bugs:

The buffer is closed unexpectedly, which results in write failure.
Flushing with an empty time range causes the data not to be written on the disk.

Improvements:

Introduce an on-disk query suite case to verify the scenario when all data is flushed on the disk.
Introduce CPU and Heap profile when running the stress test.
Print the primary test result after executing the stress test successfully.

Codecov Report

Merging #342 (1db4f76) into main (2cf42aa) will decrease coverage by 0.56%.
Report is 2 commits behind head on main.
The diff coverage is 47.08%.

@@            Coverage Diff             @@
##             main     #342      +/-   ##
==========================================
- Coverage   39.87%   39.32%   -0.56%
==========================================
  Files         111      112       +1
  Lines       11938    12329     +391
==========================================
+ Hits         4760     4848      +88
- Misses       6709     7003     +294
- Partials      469      478       +9

Files
Coverage Δ

banyand/measure/service.go
89.47% <100.00%> (+0.18%)
:arrow_up:

banyand/metadata/client.go
44.51% <100.00%> (+1.09%)
:arrow_up:

banyand/metadata/schema/schema.go
65.21% <ø> (ø)

banyand/metadata/server.go
48.93% <100.00%> (ø)

banyand/tsdb/shard.go
56.85% <100.00%> (+0.44%)
:arrow_up:

banyand/tsdb/tsdb.go
53.93% <100.00%> (+0.56%)
:arrow_up:

banyand/metadata/schema/node.go
7.69% <0.00%> (ø)

banyand/tsdb/block.go
50.91% <42.85%> (-0.21%)
:arrow_down:

banyand/kv/kv.go
0.00% <0.00%> (ø)

pkg/index/inverted/inverted.go
69.46% <45.45%> (-0.27%)
:arrow_down:

... and 10 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


node-serialport is not working

Describe the bug
When node-serialport lib is imported, error occurred.
Node Version: 16.18.0
Node-SerialPort Version: 10.4.0
Electron Version: 20.3.3
Vite Version: 3.1.8
Electron-Vite Version: 1.0.11
Reproduction:

install node-serialport
npm i serialport

code in main/index.ts:
import { SerialPort } from serialport; console.log(SerialPort)

run electron-vite

Error: No native build was found for platform=win32 arch=x64 runtime=electron abi=107 uv=1 libc=glibc node=16.15.0 electron=20.3.3

Electron-Vite Version
1.0.11
Electron Version
20.3.3
Vite Version
3.1.8
Validations

[X] Follow the Code of Conduct.
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

need to  externalize serialport, edit your config:
import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  main: {
    plugins: [externalizeDepsPlugin()]
  },
  preload: {
    plugins: [externalizeDepsPlugin()]
  },
 //...
})

use externalizeDepsPlugin   to automatically externalize package.json dependencies.
Learm more about https://evite.netlify.app/guide/build.html#externals

app can be launched now, but when npm i is ran, there's still an error.

electron-builder install-app-deps

• electron-builder  version=23.6.0
• loaded configuration  file=C:\git\electron-app\electron-builder.yml
• rebuilding native dependencies  dependencies=<EMAIL_ADDRESS>platform=win32 arch=x64
⨯ cannot execute  cause=fork/exec C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\bin\pnpm.cjs: %1 is not a valid Win32 application.
command='C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\bin\pnpm.cjs' rebuild<EMAIL_ADDRESS>workingDir=
 ELIFECYCLE  Command failed with exit code 1.

Pada tanggal Sel, 25 Okt 2022 08.25, stalkercn @.***>
menulis:

app can be launched now, but when npm i is ran, there's still an error.
electron-builder install-app-deps
• electron-builder version=23.6.0
• loaded configuration file=C:\git\electron-app\electron-builder.yml
• rebuilding native dependencies
<EMAIL_ADDRESS>platform=win32 arch=x64
⨯ cannot execute cause=fork/exec
C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\bin\pnpm.cjs:
%1 is not a valid Win32 application.
command='C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\bin\pnpm.cjs'
rebuild @@.***
workingDir=
ELIFECYCLE Command failed with exit code 1.
—
Reply to this email directly, view it on GitHub
https://github.com/alex8088/electron-vite/issues/42#issuecomment-1289855426,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2Z4L6ULDSBYD6NES3IREI3WE4ZJJANCNFSM6AAAAAARM422AU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@stalkercn
Remove "postinstall": "electron-builder install-app-deps" in package.json after successfully installing serialport .
May be some problem in electron-builder install-app-deps  rebuilding  serialport. https://github.com/serialport/node-serialport/issues/2463

@stalkercn Remove "postinstall": "electron-builder install-app-deps" in package.json after successfully installing serialport .
May be some problem in electron-builder install-app-deps rebuilding serialport. serialport/node-serialport#2463

this works.


Is it must npm install , I want yarn add ?

error An unexpected error occurred: "https://registry.yarnpkg
.com/vue-clipborad2: Not found".

$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help json` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (yarn-test)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to /tmp/yarn-test/package.json:

{
  "name": "yarn-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

Is this OK? (yes)
$ yarn add vue-clipboard2
yarn add v1.16.0
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 6 new dependencies.
info Direct dependencies
└─<EMAIL_ADDRESS>info All dependencies
├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>Done in 0.41s.
$

It works with yarn. Check your yarn config.


Fileset stats are failing to display

When navigating to a fileset's analytics page, we're getting this error:
2017-08-10 10:39:49 -0400 (27354) Rendering 500 page due to exception: #<OAuth2::Error: {"errors"=>[{"domain"=>"global", "reason"=>"dailyLimitExceed
ed", "message"=>"Quota Error: profileId ga:61852754 has exceeded the daily request limit."}], "code"=>403, "message"=>"Quota Error: profileId ga:618
52754 has exceeded the daily request limit."}:
{"error":{"errors":[{"domain":"global","reason":"dailyLimitExceeded","message":"Quota Error: profileId ga:61852754 has exceeded the daily request li
mit."}],"code":403,"message":"Quota Error: profileId ga:61852754 has exceeded the daily request limit."}}>

While this has been documented in #929, we expect that the page should still render any available download and view stats.

Sufia is checking for the date of our last cached stats:
https://github.com/samvera/sufia/blob/7.2-migration/app/models/sufia/statistic.rb#L50
This is coming up as Jun 1, which is probably the last time the stats were successfully run before we migrated. Because this date is earlier than the current date, Sufia will go out to GA to get updated stats. For that, it's invoking #ga_statistics which includes a call to Sufia::Analytics.profile. As soon as we ask for the profile, OAuth returns the error.
 See #929. For some reason, GA is telling us that we've exceeded our quota limit, but when we look at our account, we haven't. @cam156 has been looking into this and as yet, hasn't found a solution, or a reason, for the error. We had thought that even with the error, we could get by for a little while. There was still the potential for some stats to get updated, and you can still see view stats for works. However, this new issue with trying to view downloads of files is potentially more pressing since the file set analytics page isn't rendering at all now.

I put in a bug report for the quota error: https://issuetracker.google.com/issues/65003406
Let's hope google will respond.

I got a response and we have only 10,000 accesses to the reporting API per day.  This means that we can not send one query per FileSet, and per work per day.  I asked for an update to the quota again through the ticket, but I am not sure if we will get that or not.
Browsing some of the documentation sent we may want to change how we are requesting the data to a more general query and parse that for the individual data.  We can get a report for the site like: https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A61852754&start-date=2017-08-24&end-date=yesterday&metrics=ga%3Apageviews&dimensions=ga%3ApagePath&sort=-ga%3ApagePath&segment=gaid%3A%3A-1 as created by https://ga-dev-tools.appspot.com/query-explorer/  This gives us information on the site usage for the last day.  We could then parse the site usage to fill in downloads and views for works and FIleSets

query = Sufia::Pageview.results(profile, start_date: 10.days.ago, end_date: 1.day.ago)
query.dimensions << :pagePath
query.each {|item| puts item}

download_query = Sufia::Download.results(profile,start_date: 10.days.ago, end_date: 1.day.ago)
download_query.dimensions << :pagePath
download_query.each {|item| puts item}

We should capture the error in the application controller and output the appropriate error message.

We are currently capturing the error and throwing up a generic error page:

Is this good enough until we deal with #950 in the 3.2 milestone?

@cam156 that's probably fine. If we wanted to, we could add a custom message to
https://github.com/psu-stewardship/scholarsphere/blob/develop/config/locales/en.yml#L82
Unless we don't want to show that sort of information to the user, it could be helpful to us in the future.


[T4A3][W13-B1]Yong Zhi Yuan

Hi Akshay,
I'm aware of the PR causing another commit to appear. I've made the necessary changes in the future PR, but this one I'm lazy to edit :(

Hi Akshay, I closed this as I removed the extra commit. :) And I have uploaded a cleaner commit


Kaggle -> ERROR: No matching distribution found for autotrain-advanced

Hello, I'm facing an issue while installing autotrain-advanced using the below line:
!pip install autotrain-advanced
Error I'm getting:

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7c5fe47cf370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/autotrain-advanced/
ERROR: Could not find a version that satisfies the requirement autotrain-advanced (from versions: none)
ERROR: No matching distribution found for autotrain-advanced

Just got it fixed, after phone verification and enabling the internet on the notebook.


app_identifier is nil on fastlane init

I am trying to set up fastlane on my project and it's blowing up.
Versions
fastlane - 1.61.0
OS X - Yosemite, version 10.10.5
ruby (via rvm) - ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
Steps

installed fastlane via sudo gem install fastlane
cd'd to my app's root directory and ran fastlane init with no additional parameters.
fastlane prompts me for my userid and password. it detects that my app is not in iTunes Connect yet so it offers to create app identifier for me. When I say 'y' to accept, I receive a stack trace.

Fastlane Output
[12:32:18]: Detected iOS/Mac project in current directory...
[12:32:18]: This setup will help you get up and running in no time.
[12:32:18]: fastlane will check what tools you're already using and set up
[12:32:18]: the tool automatically for you. Have fun!
[12:32:18]: Created new folder './fastlane'.
[12:32:18]: xcrun xcodebuild -list -workspace './FooApp.xcworkspace'
Your Apple ID (e.g. fastlane@krausefx.com): my-id-here
[12:32:29]: Verifying if app is available on the Apple Developer Portal and iTunes Connect...
[12:32:29]: Starting login with user 'my-id-here'

+----------------+------------------------------------------------------------+
|                               Detected Values                               |
+----------------+------------------------------------------------------------+
| Apple ID       | my-id-here                                        |
| App Name       | my-app-name-here                                                       |
| App Identifier |                                                            |
| Workspace      | /Users/sebastian/src/foo/FooApp.xcworkspace |
+----------------+------------------------------------------------------------+

[12:32:36]: This app identifier doesn't exist on iTunes Connect yet, it will be created for you
[12:32:36]: This app identifier doesn't exist on the Apple Developer Portal yet, it will be created for you
Please confirm the above values (y/n)
y
[12:32:39]: Error occurred with the setup program! Reverting changes now!
[12:32:39]: Deleting the 'fastlane' folder
-------------------------------------------------------------------------------------------
😨  An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.
👍  This makes resolving issues much easier and helps improve fastlane.
🔒  The reports will be stored securely on getsentry.com.
🙊  More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3

Stack trace
/Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.61.0/lib/fastlane/setup/setup_ios.rb:157:in `gsub!': [!] no implicit conversion of nil into String (TypeError)
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.61.0/lib/fastlane/setup/setup_ios.rb:157:in `generate_appfile'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.61.0/lib/fastlane/setup/setup_ios.rb:50:in `default_setup'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.61.0/lib/fastlane/setup/setup_ios.rb:33:in `run'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.61.0/lib/fastlane/setup/setup.rb:19:in `run'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.61.0/bin/fastlane:51:in `block (2 levels) in run'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane_core-0.36.5/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.61.0/bin/fastlane:150:in `run'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.61.0/bin/fastlane:156:in `<top (required)>'
	from /Users/sebastian/.rvm/rubies/ruby-2.1.1/bin/fastlane:23:in `load'
	from /Users/sebastian/.rvm/rubies/ruby-2.1.1/bin/fastlane:23:in `<main>'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
	from /Users/sebastian/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'

I opened up the ruby code and put in some debug statements via the logger. What it tells me is that self.app_identifier is ending up nil. Let me know if I can provide any additional info. Thanks! :smile:

Hey @bitops, it looks like for some reason there is likely not a PRODUCT_BUNDLE_IDENTIFIER key in your build settings. Instead of hitting y when fastlane asks Please confirm the above values, answer n and then it will ask for the information to be entered manually! Let us know if you have any more issues! :+1:


Fix Python 2.6 on Appveyor CI

Add version ceiling on cryptography transitive dependency
Fixes #52
Somewhere in the dependency tree, cryptography is being installed.
In the recent 2.1 release of the cryptography package, Python 2.6
was deprecated.

Coverage remained the same at 81.692% when pulling 7a7151823aa00dbc4bd1616eeebb069efd322ea6 on shakeelmohamed:ci/fix-appveyor-python2.6 into 8c52a6729c898ea1451655f2131837196c86b60f on mayn:master.

@shakeelmohamed thanks for your PR!
i saw that also... lets see what appveyor thinks.
nice write-up.

@mayn Now Python 3.3 fails to build the cryptography package! 😄  Is there a way to conditionally set this restriction for Python 2.6 only?

@shakeelmohamed didn't see that one coming. 😄
Assumingly you should be able to implement an conditional pin for python 2.6 appveyor environment for the tox profile (https://github.com/mayn/packerlicious/blob/master/tox.ini#L21)
Might require minor refactor to the tox profile for appveyor also (not 100% sure)
see:
http://tox.readthedocs.io/en/latest/config.html#generating-environments-conditional-settings

Coverage remained the same at 81.692% when pulling 12b11f2d0f2c4316203c1e4c6caae19459631a16 on shakeelmohamed:ci/fix-appveyor-python2.6 into 8c52a6729c898ea1451655f2131837196c86b60f on mayn:master.

Coverage remained the same at 81.692% when pulling 256ae95433ef45eacb9256be5b7c537b82652bf1 on shakeelmohamed:ci/fix-appveyor-python2.6 into 8c52a6729c898ea1451655f2131837196c86b60f on mayn:master.

This solution works, but it's a bit clunky since it bring in another requirements file. Changing the tox config didn't seem to work, I'm guessing that's because pip install -r requirements-travis.txt was happening before tox in both CI scenarios.
One possible solution would be moving the CI installations to tox.ini, but that could add some bloat for local devs - a worthwhile tradeoff perhaps.