Extending message expectations?

Just a question for some knowledgeable RSpec folks. I'm working on implementing a callback pattern into some code of mine. I'd like to stub/mock calls to functions that implement this pattern, and make them emulate callbacks in my RSpec tests.
Right now, the most stripped down version of my test looks something like:
class MyClass
  def self.foo do |&block|
    # If success
    block.call(:success)
    # If failure
    block.call(:failure)
  end
end

# RSpec example
expect(MyClass).to receive(:foo) { |&block| block.call(:success) }

Although it works through some ugly use of the and_return block shorthand, it hurts test readability. I'd like instead to extend the RSpec mocks, in a gem, with my own MessageExpectation method and_callback to do the same functional thing, which might look something like:
expect(MyClass).to receive(:foo).and_callback(:success)

I've been digging through the RSpec documentation and source code, and am not seeing a clear means of adding my own expectation behavior to the RSpec suite. Another person was trying to do something similar, and Andrew Haines suggested alias_method to accomplish that goal.
Outright monkey patching RSpec seems like a bad idea to me, but is there a cleaner alternative or support to do an extension on the suite like this? I'm all ears!

You can use and_yield to yield to a callback:
expect(MyClass).to receive(:foo).and_yield(:success)

Okay, you're definitely right about and_yield, which pretty much satisfies my above example. I think I oversimplified it a bit. In my actual code I implemented a callback class to wrap up the code a bit more neatly. In practice it looks more like:
class MyClass
  def self.foo do |&block|
    callbacks = Callbacks[block]
    # If success
    callbacks.respond_with(:success)
    # If failure
    callbacks.respond_with(:failure)
  end

  class Callbacks
    def self.[](block)
      # Invokes block to define callback methods
    end
    def respond_with(name, *args)
      # Invokes callback method
    end
  end
end

# Sample usage:
MyClass.foo do |on|
  on.success { puts "Success!" }
  on.failure { puts "Failure!" }
end

# Sample expectation:
expect(MyClass).to receive(:foo) do |&block|
  MyClass::Callbacks[block].respond_with(:success)
end

# Ideal expectation:
expect(MyClass).to receive(:foo).and_callback(:success)

I'm not sure how to cleanup that sample expectation using the current RSpec implementation, which was why I was thinking "if I can tap into the expectation chain with a custom matcher, get the object/class that is expecting a call, and the callback block that's passed as an argument, I can inject my respond_with call into the expectation chain."

I'm not sure chaining is a good fit here, why not implement a macro instead? e.g.
module CustomReceive
  def receive_then_callback(name, callback)
    receive(name) do |&block|
      MyClass::Callbacks[block].respond_with(callback)
    end
  end
end

RSpec.configuration.include CustomReceive

I think that's a fair option.
I was also thinking about some scenarios where I might want to trigger multiple callbacks, and pass a different set of arguments to each of those callbacks. But I think I could manage most of the things I'd like to do with callbacks by implementing a similar macro pattern to what you listed above.
However, in the case I were to find scenario where I'd actually need to implement something custom on the chain, would there be a clean way of doing so? Like how developers can define their own matchers?

RSpec doesn't provide any APIs specifically for defining your own methods for this purpose but you can use Ruby's SimpleDelegator to do it pretty cleanly:
require 'delegate'

class ReceiveWrapper < SimpleDelegator
  def and_foo(foo)
    # do whatever
  end

  # Re-wrap the return values of all method calls so that
  # things like `receive(:bar).with(:args).and_foo` work.
  def method_missing(*args, &block)
    ::ReceiveWrapper.new(super)
  end
end

module ReceiveMethodWrapper
  def receive(*args, &block)
    ::ReceiveWrapper.new(super)
  end
end

RSpec.configure do |c|
  c.include ReceiveMethodWrapper
end

(Note: I haven't actually tried the above code, but I believe it, or something very close to it, should work.)
Here's how it works:

receive is overriden in ReceiveMethodWrapper to delegate to RSpec's implementation and then the return value is wrapped with ReceiveWrapper.
ReceiveWrapper is a delegator so it'll have all the methods of the wrapped object. We customize method_missing so that return values are wrapped again.
On the ReceiveWrapper you can define whatever new chained methods you want -- in this case, and_foo.

Cool, thanks @myronmarston!


Trying to get an example to add an nvdimm device/host PMEM datastore to a virtual machine.  I've read the docs, but I'm missing some clarity somewhere, and keep getting errors.

@jrgarcia If it helps at all to getting an answer to this example we are stuck on.  Here is what we are currently encountering:
We are using the vmware rbvmomi ruby API version 2.2. [We were previously using RbVmomi 1.12, but were finding some of the objects were not found.  So possibly confirm this operation requires the latest rbvmomi?]
We are trying to attach an NVDIMM directly to a VM via this API in Direct-Access mode. The VM version is 14, and the Guest OS version is Centos7 as stated in the requirements.
Manually we are having no trouble, and have turned on verbose logging on our vcenter to view the parameters sent behind the scenes to reconfigure the virtual machine.  [I have displayed what I see in vCenter logs, which we believe we are reproducing in our code at the bottom of this issue after the code example.]
Again, as far as I can tell, we have matched these parameters exactly, but unfortunately when we attempt the configuration via the API we get the following error:
Error:  com.vmware.vim.vpxd.vmprov.pMemDatastoreSetDirectly
Setting a PMem datastore directly for device configuration is not supported. Please use storage profile instead.
We do believe we are sending the Host local PMEM Storage Profile with the correct ID as follows, within our DefinedProfileSpec.
profile = RbVmomi::VIM.VirtualMachineDefinedProfileSpec(:profileId => "c268da1b-b343-49f7-a468-b1deeb7078e0")
Here is the example code - any guidance is greatly appreciated, if we are doing something wrong... Or if this is a bug?:
#!/opt/puppet/bin/ruby

module Vmware
  class Vim
    def initialize(ip, host, password)
      require 'rbvmomi'
      @options = {}
      @options[:insecure] = true
      @options[:host] = ip
      @options[:user] = host
      @options[:password] = password
      vim
    end

    def vim
      @vim ||= RbVmomi::VIM.connect(@options)
    end

    def reconnect
      @vim = nil
      vim
    end
  end
end

def vim
  @v.vim
end

if ARGV.size < 7
  raise "\n\nScript input requires: vcenter, username, password, datacenter, cluster, host, vm\n Example: ruby attachpmem.rb <IP_ADDRESS><EMAIL_ADDRESS>password thisDatacenter cluster1 host1 vm1"
end
@v = Vmware::Vim.new(ARGV[0], ARGV[1], ARGV[2])

def host_nvdimm_datastores
  host.datastore.select { |ds| ds.summary.type == "PMEM"  }
end

def datacenter
   vim.root.children.find { |datacenter| datacenter.name == ARGV[3]}
end

def host
  cluster.host.find{|clus| clus.name == ARGV[5]}
end

def cluster
  datacenter.hostFolder.children.find{|cluster| cluster.name == ARGV[4]}
end

def findvm_by_name(folder, vm_name)
  folder.children.each do |f|
    case f
      when RbVmomi::VIM::Folder
        foundvm = findvm_by_name(f, vm_name)
        return foundvm if foundvm
      when RbVmomi::VIM::VirtualMachine
        return f if f.name == vm_name
      when RbVmomi::VIM::VirtualApp
        f.vm.each do |v|
          return f if v.name == vm_name
        end
      else
        raise(Puppet::Error, "unknown child type found: #{f.class}")
    end
  end

  nil
end

def vm
  findvm_by_name(datacenter.vmFolder, ARGV[6])
end

capacity = host_nvdimm_datastores.first.info.freeSpace / (1000 * 1000)
filename = host_nvdimm_datastores.first.info.url

# PMEM DS filename
backing = RbVmomi::VIM.VirtualNVDIMMBackingInfo(:fileName => filename)

# Host-local PMem Default Storage Policy
profile = RbVmomi::VIM.VirtualMachineDefinedProfileSpec(:profileId => "c268da1b-b343-49f7-a468-b1deeb7078e0")

nvdimm_dev = RbVmomi::VIM.VirtualNVDIMM(:key => -103, :deviceInfo => RbVmomi::VIM.Description(:label => "New NVDIMM", :summary => "New NVDIMM"),:backing => backing, :controllerKey => -104, :capacityInMB => capacity)
nvdimm_dev_spec = RbVmomi::VIM.VirtualDeviceConfigSpec(:operation => RbVmomi::VIM.VirtualDeviceConfigSpecOperation('add'), :fileOperation => RbVmomi::VIM.VirtualDeviceConfigSpecFileOperation('create'), :device => nvdimm_dev, :profile => [profile])

control_dev = RbVmomi::VIM.VirtualNVDIMMController(:key => -103, :deviceInfo => RbVmomi::VIM.Description(:label => "New NVDIMM Controller", :summary => "New NVDIMM Controller"), :busNumber => 0)
control_spec = RbVmomi::VIM.VirtualDeviceConfigSpec(:operation => RbVmomi::VIM.VirtualDeviceConfigSpecOperation('add'), :device => control_dev)

spec = RbVmomi::VIM.VirtualMachineConfigSpec(:deviceChange => [control_spec, nvdimm_dev_spec], :memoryReservationLockedToMax => true)

power_state = vm.summary.runtime.powerState
puts "Current power state is: %s" % power_state
power_off_task = vm.ShutdownGuest if power_state != "poweredOff"
power_state = vm.summary.runtime.powerState
puts "Current power state is: %s" % power_state
retries = 0

while power_state != "poweredOff" && retries < 10
  puts "Waiting for VM to power off..."
  puts "Current power state is %s" % power_state
  sleep(10)
  retries += 1
  power_state = vm.summary.runtime.powerState
end

task = vm.ReconfigVM_Task(:spec => spec)
begin
  task.wait_for_completion
rescue
  if task.info.state == "error"
    puts "VM configuration failed.\n Error:  %s\n  %s\n\n\n" % [task.info.error.fault.faultMessage[0].key, task.info.error.fault.faultMessage[0].message]
    raise
  end
end

puts "VM Reconfigure completed successfully"

Here is what we see logged by vcenter both by our code above, as well as when we perform this operation manually:
deviceChange = (vim.vm.device.VirtualDeviceSpec) [
-->          (vim.vm.device.VirtualDeviceSpec) {
-->             operation = "add",
-->             fileOperation = "create",
-->             device = (vim.vm.device.VirtualNVDIMM) {
-->                key = -103,
-->                deviceInfo = (vim.Description) {
-->                   label = "New NVDIMM device",
-->                   summary = ""
-->                },
-->                backing = (vim.vm.device.VirtualNVDIMM.BackingInfo) {
-->                   fileName = "ds:///vmfs/volumes/pmem:5d2dd5df-0f51180a-72c9-e4434b7ba70c/",
-->                   datastore = ,
-->                   backingObjectId = ,
-->                   parent = (vim.vm.device.VirtualNVDIMM.BackingInfo) null,
-->                   changeId =
-->                },
-->                connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
-->                slotInfo = (vim.vm.device.VirtualDevice.BusSlotInfo) null,
-->                controllerKey = -104,
-->                unitNumber = ,
-->                capacityInMB = 30720
-->             },
-->             profile = (vim.vm.ProfileSpec) [
-->                (vim.vm.DefinedProfileSpec) {
-->                   profileId = "c268da1b-b343-49f7-a468-b1deeb7078e0",
-->                   replicationSpec = (vim.vm.replication.ReplicationSpec) null,
-->                   profileData = (vim.vm.ProfileRawData) null,
-->                   profileParams =
-->                }
-->             ],
-->             backing = (vim.vm.device.VirtualDeviceSpec.BackingSpec) null
-->          },
-->          (vim.vm.device.VirtualDeviceSpec) {
-->             operation = "add",
-->             fileOperation = ,
-->             device = (vim.vm.device.VirtualNVDIMMController) {
-->                key = -104,
-->                deviceInfo = (vim.Description) {
-->                   label = "New NVDIMM Controller",
-->                   summary = ""
-->                },
-->                backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
-->                connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
-->                slotInfo = (vim.vm.device.VirtualDevice.BusSlotInfo) null,
-->                controllerKey = ,
-->                unitNumber = ,
-->                busNumber = 0,
-->                device =
-->             },
-->             profile = ,
-->             backing = (vim.vm.device.VirtualDeviceSpec.BackingSpec) null
-->          }
-->       ],

@jrgarcia Was able to get this to work.  The filename needed to be left empty for the NVDIMM device backing. Changing to:
backing = RbVmomi::VIM.VirtualNVDIMMBackingInfo(:fileName => "")
and my code worked... The vCenter logging where the filename string was populated threw  me off.
Got some help from another forum, hope this may help someone else trying for the same operation.

@aimers1975 Good to know! Thanks for following up. Is this ok to close?

I'm going to go ahead and close this for now, but feel free to reopen this or file a new issue if something causes a problem again. Thanks!


Ion-input will be blocked by the pop-up keyboard

With the<EMAIL_ADDRESS>plug-in version, the ion-input input box in the ion-content cannot be ready to be positioned above the keyboard and will be blocked by the keyboard，please save the child!!

@mlynch @mccraigmccraig @shazron @purplecabbage

@jcesarmobile

Exactly the same happen here with<EMAIL_ADDRESS>

@jcesarmobile    Can you help me with this problem

@Brandy Carney  @Ben Sperry @jcesarmobile @Liam DeBeasi @Nicholas Hyatt  please help me!

@brandyscarney @bensperry @jcesarmobile @liamdebeasi    please help me!

Can you stop pinging people and instead provide a sample app where it can be reproduced?

@jcesarmobile   i am sorry.
My problem is simply to use the 4.1.2 version of the webview plugin, and then when the input box is at the bottom of the page, the focus is captured and the mouse cursor is blocked instead of being positioned over the keyboard.


Redesign public API for templates

-Renamed RouteTemplate -> RoutePattern
-Made immutable
-Added Builder
-Lots of fixes to parser to support new design
There are a few small issues logged for follow-up but this is mostly in
the place I want it design-wise.

@jbagga please have a look


Solved multiple call for FetchSegment are being called.

This pull request addresses two issues related to the fetchData function calls for segments.

Previously, there were two instances of fetchData being called for segments, resulting in duplicate requests. This led to inconsistencies, as one request would be cancelled while the other proceeded successfully.
After removing the duplicate call, an additional issue emerged: on a hard refresh, the table content did not display according to the selected sort criteria.

Both issues have been resolved in this PR.

This looks good to me!


[Android] Custom fonts not applied on nested text

[x] Review the documentation: https://facebook.github.io/react-native
[x] Search for existing issues: https://github.com/facebook/react-native/issues
[x] Use the latest React Native release: https://github.com/facebook/react-native/releases

Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 557.12 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.9.4 - /usr/local/bin/node
Yarn: 1.3.2 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
IDEs:
Android Studio: 3.0 AI-171.4408382
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
Description
On Android only, when nesting text elements, and applying custom fonts to both the outer and inner text elements, the inner text does not apply the font, it falls back to default. This issue does not occur when using system fonts such as serif or monospace, it only happens when using two custom fonts. One custom font nested with a system font works fine. I am not sure if it is a problem with these specific fonts, but it works fine in iOS.
Reproducible Demo
https://github.com/mikeygee/AndroidFontIssue - I made a repo with a couple custom fonts added to assets/fonts directory. In App.js, there are several combinations to demonstrate the issue.
<View style={styles.container}>
    <Text style={{fontFamily: 'customthickfont', fontSize: 20}}>
      Test
      <Text style={{fontFamily: 'customthickfont', fontSize: 20}}>Nested</Text>
    </Text>
    <Text style={{fontFamily: 'customthickfont', fontSize: 20}}>
      Test
      <Text style={{fontFamily: 'Roboto', fontSize: 20}}>Nested</Text>
    </Text>
    <Text style={{fontFamily: 'customthickfont', fontSize: 20}}>
      Test
      <Text style={{fontFamily: 'serif', fontSize: 20}}>Nested</Text>
    </Text>
    <Text style={{fontFamily: 'customitalicfont', fontSize: 20}}>
      Test
      <Text style={{fontFamily: 'customitalicfont', fontSize: 20}}>Nested</Text>
    </Text>
    <Text style={{fontFamily: 'customitalicfont', fontSize: 20}}>
      Test
      <Text style={{fontFamily: 'customthickfont', fontSize: 20}}>Nested</Text>
    </Text>
    <Text style={{fontFamily: 'serif', fontSize: 20}}>
      Test
      <Text style={{fontFamily: 'customthickfont', fontSize: 20}}>Nested</Text>
    </Text>
    <Text style={{fontFamily: 'serif', fontSize: 20}}>
      Test
      <Text style={{fontFamily: 'monospace', fontSize: 20}}>Nested</Text>
    </Text>
</View>

+1, I think I'm running into the same issue :/

I have the same problem in Android (it works in iOS).

I think I got this to work by enabling font scaling?

I have the same issue in Android

+1, works fine on iOS but Android ignores the fontFamily of nested  elements.

Same issue here!

Getting the same issue.

Still a bug on latest react-native.

any news?
it works in <=0.49.5 versions.
and it doesn't work since 0.50 version.
it is important for our app  and we can't use latest RN versions anymore... :(

We've found a solution, which worked in our case.
You have to set the style properties of your nested text component, so that the parent style properties do not have an effect on your nested text.
In our case we had a custom nested text inside a common text component and we were missing to set the fontWeight style property inside our nested custom text.
This was only an Android issue.
<Text style={{ fontFamily: baseFont, fontSize: 42, lineHeight: 48, fontWeight: '700', color: colors.white, }} numberOfLines={1}> <Text style={{ fontFamily:'our-custom-icons', fontWeight:'normal', color:'white', lineHeight: 50 }}>{'\uE921'} </Text>   Some custom text follow up!} </Text>

I've written a Medium post that goes more in depth, detailing my findings and an interim fix :) https://medium.com/@lewie9021/custom-fonts-in-react-native-85d814ca084#a01b

@lewie9021 thanks for sharing. Do you think this could be turned into an NPM package as a replacement for Text from RN?

I don't see why it couldn't be, but I'd prefer if the bug was fixed instead of releasing an NPM package that patches it. I just felt that it was pretty basic behaviour that should at least have a workaround for now.

Alright, I'll try to strip away the parts that don't apply to me, like Contexes and stuff. Thanks again!

You'll still need a form of Context. The FontFamilyContext is used collect the styling as you nest, only applying the font family when a leaf Text component is encountered. Without it, if a containing Text component applied a bold font weight, the nested leaf Text component wouldn't know that it should apply a bold font family variant (unless overwritten through the component tree or directly).

I see. Thanks for the heads-up -- I might just have to wait for this to be fixed in RN then as I don't use Contexes and prefer to keep things that way.

I can understand not wanting to use Context :) In my article, I do briefly talk about another approach that uses React.Children.map and React.cloneElement to automatically delegate the props down through the tree. The main issue I had with the approach was that if custom Text components were used when nested (e.g. Heading), it's not guaranteed to pass through the styling. As a result, it could become difficult to track down why the correct font variation isn't applied.

fontFamily its not work in inlinstyle you must change from
<Text style={{fontFamily:'SantPro'}} />
to

const styles = StyleSheet.create({
text: {
fontFamily:'SantPro',
},

})

Still a bug AFAIK

Still an issue

Still not fixed...

Hey there,
It seems that a Text with custom font can't be nested in another Text with custom font, but they can be nested together in a simple react-native Text to fix the issue :
Broken :
<Text style={{fontFamily: 'customFontFamily-Bold'}}>
      Custom font text
      <Text style={{fontFamily: 'customFontFamily-LightItalic'}}>Nested custom font text</Text>
</Text>

Works for me :
<Text>
      <Text style={{fontFamily: 'customFontFamily-Bold'}}>
            Nested custom font text
      </Text>
      <Text style={{fontFamily: 'customFontFamily-LightItalic'}}>
            Different nested custom font text
      </Text>
</Text>

@qstrauss thanks for the heads up, I'll give this a go

Hi Guys. I figured that it is not only font family has the bug. I think all the customize style in nested text all has issue.
Here is the simple text code with fontSize and I just tested it on React Native API website.
import React, { Component } from 'react'
import {
  ActivityIndicator,
  StyleSheet,
  Text,
  View,
  ScrollView
} from 'react-native'

const TEST_DATA = new Array(100).fill(1).map(i => 'i love to code')
export default class App extends Component {
  renderVerse = (verseItem) =>
    <Text style={{ fontSize: 26}}>{verseItem}</Text>
  renderNumber = (verseItem) =>
    <Text style={{ fontSize: 26}}>{verseItem}</Text>
  render() {
    return (
      <View style={[styles.container, styles.horizontal]}>
        <ScrollView>
           <Text>
              {TEST_DATA.map((verseItem, i) => [
                React.cloneElement(this.renderNumber(i)),
                React.cloneElement(this.renderVerse(verseItem)),
              ])}
           </Text>
         </ScrollView>
      </View>
    )
  }
}
const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center'
  },
  horizontal: {
    flexDirection: 'row',
    justifyContent: 'space-around',
    padding: 10
  }
})

Hey there,
It seems that a Text with custom font can't be nested in another Text with custom font, but they can be nested together in a simple react-native Text to fix the issue :
Broken :
<Text style={{fontFamily: 'customFontFamily-Bold'}}>
      Custom font text
      <Text style={{fontFamily: 'customFontFamily-LightItalic'}}>Nested custom font text</Text>
</Text>

Works for me :
<Text>
      <Text style={{fontFamily: 'customFontFamily-Bold'}}>
            It seems to be
      </Text>
      <Text style={{fontFamily: 'customFontFamily-LightItalic'}}>
            the solution
      </Text>
</Text>

yes it works for me too.
thanks!

Same problem with two custom fonts...
I need to be able to do:
<Text style={{fontFamily: 'Ubuntu-Regular'}}>
  <Text style={{fontFamily: 'Icons-Font'}}>□</Text>
  Text prepended by icon
</Text>

Works for me by adding fontWeight: 'normal' & fontStyle: 'normal'
<Text style={{ fontFamily: 'Quicksand-Medium', fontWeight: 'normal',  fontStyle: 'normal' }}>       text abc       <Text style={{ fontFamily: 'Gilroy-Bold' }}>Nested font text</Text> </Text>

Works for me by adding fontWeight: 'normal' & fontStyle: 'normal'
<Text style={{ fontFamily: 'Quicksand-Medium', fontWeight: 'normal',  fontStyle: 'normal' }}>
      text abc
      <Text style={{ fontFamily: 'Gilroy-Bold' }}>Nested font text</Text>
</Text>

I hade the same problem, only on Android phones. The solution metioned above, solved it for me. Having a parent element with fontStyle: "normal" was what fixed it.

2020 still cant style nested text, this properties does not work in nested Text:
padding, margin, borderColor, borderWidth, borderRadius, lineheight, top, bottom, left, right, ...

The issue has not been fixed. It looks like guys just ignore that.

This is still an issue

I could not reproduce this in rn-tester using notoserif and rubik. I believe they are custom fonts https://github.com/react-native-training/react-native-fonts
<Text style={{fontFamily: 'notoserif', fontSize: 20}}>NotoSerif</Text>
   <Text style={{fontFamily: 'rubik', fontSize: 20}}>
     Rubik
   <Text style={{fontFamily: 'notoserif', fontSize: 20}}>NotoSerif</Text>
</Text>

CLICK TO OPEN TESTS RESULTS

RN MASTER

Still an issue, the problem looks like related to custom font style on the Text of react-native module.
@qstrauss said we should use nested text like below
<Text>
      <Text style={{fontFamily: 'customFontFamily-Bold'}}>
            It seems to be
      </Text>
      <Text style={{fontFamily: 'customFontFamily-LightItalic'}}>
            the solution
      </Text>
</Text>

But I don't understand those style adoption because of the docs of react-native said
Theoretically speaking in above document, nested fonts inherit it's parents' style. But it cannot be worked in currently, and then default styles of font(the system font) will be adopted.

Still unresolved.    RN v0.64.2

2021 reporting in! still have this issue, let's go all the way to 2025

Looks like this might be working in 0.66.3? I've not tried the minimal repro but I'm looking at an area of our app where I believe we had this issue it seems to be working now. Can anyone else confirm/deny?

It still doesn't work in 0.66.1
Going to check it in 0.66.3

I'm on RN 0.68.2 with expo-font, and none of the suggested solutions are working for me. I've tried nesting Text elements horizontally instead of going deep, and I've also tried setting parent's fontStyle and fontWeight to 'normal'. Neither approach solves the problem.
Has anyone found another solution?

I found the SOLUTION !!!
Add fontWeight: 'normal', fontStyle: 'normal' to the NESTED child, and that's it !
<Text style={{ fontFamily: NotoSans.Bold }}>       <Text style={{ fontFamily: NotoSans.BoldItalic, fontWeight: 'normal', fontStyle: 'normal', color: 'red' }}>Sdd</Text> </Text>


Instructions for email transport developers & testers

This document will help those who want to develop email transports to test their logic

@mabumusa1 would you be up for contributing this on the new docs as that allows us to version it and only show this for 5.x. Happy to walk you through it!

@RCheesley please do help me , I am slack as always

This is merged in the 5.x branch of the new developer docs so closing this PR down in favour of that: https://mautic-developer.readthedocs.io/en/5.x/components/emails.html#testing-email-transports


Support additionalModelTypeAnnotations-configOption

Is your feature request related to a problem? Please describe.
I want to add my own annotations to generated classes.
Describe the solution you'd like
support the existing configOption additionalModelTypeAnnotations.
Describe alternatives you've considered
Manually add annotations
Additional context
None.

May close #56


Connections not cleaned up if disconnected mid-download?

See #522 for the sample code.
In that example, if a client disconnects mid-way through a download, the connection apparently doesn't get cleaned up, and we're left with N-1 available connections in the pool.
Can we make sure that if a connection is broken, we clean up the socket and toss it ?
/cc @robertdimarco

Thanks for filing these issues and resolving them so quickly! :clap:
This one is the trickiest of the bunch, and (in my view) doesn't have the clearest resolution. In the prior example on #522, without removing the connection limits, the issue is easily reproduced by having a client request a large file and hang-up part-way through that file.
Our short-term resolution for this issue was (a) remove the Node v0.10 socket pooling limits, and (b) listen for the client hang-up / socket close, and try to invoke stream.abort() on the through-stream returned from this module. That last bit improves the situation, but appears to be error-prone and I think does not pass-through and call stream.destroy() on the stream returned from the request module.
Happy to expand further or help out however we can.

Thanks everyone for your help here. :clap: :clap: :clap:


[Health Connect Toolbox] 1.9 incorrectly write bp and weight.

Which sample is this for?
Health Connect Toolbox latest
Describe the bug
Health connect toolbox 1.9 incorrectly write bp and weight.
Screenshots

Thank you for raising this issue. The output value is always 10 and 20 correct? This appears to be an issue within the toolbox.

Yes always 10  and 20 and weight is always 0 grams.

Please let us know if your issue is now resolved in Toolbox 1.10. Please note weight is in Kg.

Yes, it is now resolved.


Update COMPATIBILITY.md to reflect git binary usage for file protocol

Related to https://github.com/src-d/go-git/issues/847

The build failure looks to be unrelated

Ping on this


Chrome violent monkey version, click the item in google results, not go to the item in logseq, just go to logseq journal page

click the item in results, not go to the item in logseq, just go to logseq journal page
version: https://github.com/Endle/fireSeqSearch/raw/02821d6cdaa8c09cf6e4cdcb7eae0ad1cddc01b2/fireSeqSearch_addon/violentmonkeyscript.user.js

Can you send the href of the generated result? Thanks

logseq://graph/D:\Dropbox\logseq\roam?page=%E9%81%BF%E9%9B%B7%E9%92%88%20-%20%E7%BB%B4%E5%9F%BA%E7%99%BE%E7%A7%91%EF%BC%8C%E8%87%AA%E7%94%B1%E7%9A%84%E7%99%BE%E7%A7%91%E5%85%A8%E4%B9%A6%20(highlights)

This is a bit weird. Can you try to run fireSeqSearch with both

use latest release https://github.com/Endle/fireSeqSearch/releases/tag/0.0.23
Specify both --notebook_path and --notebook_name

Thanks

How can I specify notebook_name, I cannot find it in README.

How can I specify notebook_name, I cannot find it in README.

Sorry, I haven't updated the README yet
You can always use fire_seq_search_server -h to check the parameters
In this case, you can try
fire_seq_search_server --notebook_path /home/li/path --notebook_name name

Thanks, it works, example like:  fire_seq_search_server.exe --notebook_path D:\logseq\roam --notebook_name roam


[tracking] Use shebang in checks/check_cluster_list.sh

https://github.com/RedHatInsights/insights-results-aggregator-mock/issues/109

Implemented in https://github.com/RedHatInsights/insights-results-aggregator-mock/pull/110


Feature: RelocationWatcher

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.006%) to 99.447%

Totals

Change from base Build<PHONE_NUMBER>9:
0.006%

Covered Lines:
1079

Relevant Lines:
1085

💛  - Coveralls


Installation Issues

Hello!
I am trying to install your software and had some issues during the installation steps.
When using the
conda env create -f environment.yml
command. It appears that the version of pytorch3d required is no longer available, so I removed that from the environment file and manually installed a later version of pytorch...
From there, installation was smooth until I tried to run
bash .scripts/get_data.sh
where I got an error saying
tar: data.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

However, the files seemed to be downloaded correctly in the ./data location.
From there, I tried to run the
bash ./scripts/examples/giraffe.sh
example, where I got an error saying
  File "main.py", line 30
    print(f'number of parts {part_mesh.n_submeshes}')
                                                   ^
SyntaxError: invalid syntax
./scripts/examples/giraffe.sh: line 2: --initial-mesh: command not found
./scripts/examples/giraffe.sh: line 3: --save-path: command not found
./scripts/examples/giraffe.sh: line 4: --iterations: command not found

Could this be the result of the alternate version of pytorch3d? or is this some other issue with installation/running?
Please advise,
Thank you

Here is a more detailed version of my installation steps
Installation steps.txt

Issues were connected to trying to install this repository on windows. Once I tried on linux, there were little to no problems. The pytorch3d version has been upgraded since the release of this git, so I just had to remove the pytorch version dependency in the environment.yml file, then manually install pytorch3d with conda in the environment afterwards.


Expose blur and focus actions

Add focused and blurred actions for the purposes of:

Knowing when the input was first focused.
Knowing when the input has blurred.

Because of the initialAction complexity the Focus action is quite chatty. It's possible to determine the first focus but it also fires whenever the input is focused during internal state changes which a consumer probably doesn't want to know about.

released in 10.0.0


this action isnt allowed (render)

when i click deploy it just does that

I Got It As Well :\

Try punching the computer

Try punching the computer

Tried, Did Nothing :|

please help I really want to use :(

I'm on securly and really need help finding new methods if you could help me I'm trying to make a Google doc for my school. here's the link https://docs.google.com/document/d/1xy-UAFk-AQYfjeSTuyOzLX3v42Cia_8HbmOd-3gaREc/edit?usp=sharing


Fixed Email verifcation, add it's UI and fixed some frontend element.

Pull Request Description
Summary
In this PR, this search bar of the sidebar now works correctly. The username field in Account Information page was suppose to be immutable and it no longer shows as a mutable field when editing. Updated Site URL setting in backend settings. Created a email verification page that confirms the user when creating a new account.
Changes Made

Account username is now immutable
Search bar on Sidebar component now works properly
Decorated Email Verification page
Updated site URL in settings.py

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Bug Fix: Handle Missing event_name Field
Description: This pull request fixes the bug where the user does not fill in the event_name field when creating an event. Previously, the system would allow the field to default to an empty string (""), which could cause unexpected behavior.
Changes Made:
Added validation to ensure the event_name field is not left blank.
Updated the backend to raise an appropriate error if the field is missing or empty.
Enhanced form validation on the frontend to require the event_name field before submission.
Steps to Reproduce the Issue:
Navigate to the "Create Event" page.
Leave the event_name field blank.
Submit the form.
Expected Behavior: The system should prompt the user to fill in the event_name field before submission.
Bug Behavior: The form is submitted, and the event is created with an empty event_name.
Fix Implementation:
Backend: Added validation in the model and API to reject empty or missing event_name values.
Testing Steps:
Navigate to the "Create Event" page.
Attempt to submit the form with the event_name field left blank.
Confirm that an error message prompts the user to fill in the field.
Provide a valid event_name and confirm that the form is successfully submitted.

All fixes and features have been successfully integrated and tested. Closing this PR. Great job!


Support for RSVG_HANDLE_FLAG_KEEP_IMAGE_DATA

This allows image data with support in the backend to directly embedded instead of being rasterized. That way SVGs with embedded JPEGs for example become much smaller.
Note: This currently only works with the new Rsvg() constructor.

Will be released in 0.7.5


Improve Encapsulator

Hello ,
When I pulled Encapsulator to this project , I forgot something : Exception Handling.
In this pull request I have not added just Exception Handling but it is the most important one.
Summary :

Exception Handling
GetEncapsulatedData is one method , so when HAP user call it , if the XPath of developer is wrong or the types of properties in their classes are not valid , they just see an unhandled exception or format exception or null refrence exception !
BUT they don't know which part of their code are written wrong...
With new version of Encapsulator , There is lots of Exception handling , so there is not unclear exceptions anymore.

Overloads
With making GetEncapsulatedData , 2 overload , I became able to remove and clean unnecessary reflection codes , so it helps to improve performance of Encapsulator.

Tools
I added some methods to Tools class , and also remove some.
for example I simulate Func delegate in C# 3.0 or Where extension method in Linq
AND make all of the methods in Tools , and Tools class it self , INTERNAL.
So HAP user will not became distracted of extension methods.

Compatibility
After this additions and removal , The Encapsulator is already Compatible with all versions of HAP you have targeted to like .Net 2.0 or .Net Standard 1.3 .

Here is List of Exceptions may Encapsulator Throw :

ArgumentNullException
MissingMethodException
MissingXPathException
NodeNotFoundException
NodeAttributeNotFoundException
FormatException
Exception

If there is a problem in my codes , Please let me know them to fix them.
Thank you in advance for your open source library.
Parsa

Thank a lot,
I will try to get my developer reviewing your pull next week.
Best Regards,
Jonathan

Hello @ashishsapkale ,
Your change has been merged.
The v1.7.3 has been released.
Thank you for your contribution ;)
If you improve again your Encapsulator, please try to add some unit test. It will make me feel safer to release changes you are doing.
Best Regards,
Jonathan

Hello,
Thank you for merging the pull request.
I have some questions :

If you improve again your Encapsulator, please try to add some unit test.

You added unit-test of Encapsulator in this commit , is it not enough ?
I was wondering if I add unit-test to my pull requests , and you merge it , it may mess up the HAP library.
Please let me know if there is no problem by adding unit test , and creating pull request of entire addition , including unit-test .
And is it important that entire additions be in 1 Commit ?
I mean I created lots of commits when I was working on Encapsulator but I merged HAP again and push those additions in One Commit , then I created pull request.
If there is no problem by number of commits , I can commit every time I add or delete something and in this way I can explain every change.
If too much commiting is not a good idea ( maybe messing up the commits part of Repository ) , let me know if there is better idea. or I will work on it with current way.
Thanks a lot for letting me contribute in HAP Repository and dedicating time to it.
Parsa

Hello @parsalotfy ,

You added unit-test of Encapsulator in this commit , is it not enough ?

More unit test is always good ;) Yes, we already have some unit test, I just mean if you add some new stuff, adding unit tests with it will be great.
You can create your own file of unit test in the test project, so we will never touch it and everything should be fine.

And is it important that entire additions be in 1 Commit ?

Having small changes is always easier than a big pull of change to reviews. For example, I don't mind releasing this library every Monday. On my side, I prefer multiple pull over a big one.
By the way, could you provide me your personal email to me in case of more personal question or sometimes a question so we could reach you easier<EMAIL_ADDRESS>
Thanks a lot for letting me contribute in HAP Repository and dedicating time to it.

Thank to you to add value to this library ;)
Best Regards,
Jonathan


Split stack works along wrong axis; consider allowing user to choose axis

🐛 Bug
Hi all,
I'm trying to split a dataset along the second axis. The layer right-click menu Split stack unfortunately doesn't allow me choose this. When I click this menu, it splits the stack in 164 layers instead of 2.

Data source: Sarah Machado, Vincent Mercier, & Nicolas Chiaruttini. (2018). LimeSeg Test Datasets [Data set]. Zenodo. http://doi.org/10.5281/zenodo.1472859 Shared under CC-BY 4.0
To Reproduce
Steps to reproduce the behavior:

Load the TIF file linked above
Right click on the layer
Click Split stack

Expected behavior
It should ask the user along which axis the stack should be split.
Environment

Please copy and paste the information at napari info option in help menubar here:

napari: 0.4.15
Platform: Windows-10-10.0.19044-SP0
Python: 3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:51:29) [MSC v.1929 64 bit (AMD64)]
Qt: 5.15.2
PyQt5: 5.15.7
NumPy: 1.22.4
SciPy: 1.7.3
Dask: 2022.7.1
VisPy: 0.9.6

OpenGL:
- GL version: 4.6.0 - Build <IP_ADDRESS>9
- MAX_TEXTURE_SIZE: 16384

Screens:
- screen 1: resolution 1920x1200, scale 1.0

Plugins:
- console: 0.0.4
- napari-assistant: 0.3.10
- napari-time-slicer: 0.4.9
- napari-tools-menu: 0.1.16
- scikit-image: 0.4.15
- svg: 0.1.6

Any other relevant information:

Additional context

@tlambert03 This look like things that require an option for a dynamic (calculated base on current layer) submenu for selection along which axis image should be split. As I think that submenu with axis selection is better than opening dialog for this.
What did you think?

This is a duplicate of https://github.com/napari/napari/pull/3981
See extensive discussion there


Add temp file to force a diff

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #2 (6703750) into master (2e673e3) will increase coverage by 0.00%.
The diff coverage is n/a.

:exclamation: Current head 6703750 differs from pull request most recent head d1b45a8. Consider uploading reports for the commit d1b45a8 to get more accurate results

@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage     66.58%   66.59%
- Complexity     5414     5415    +1
=========================================
  Files           156      156
  Lines         22761    22761
  Branches       4105     4105
=========================================
+ Hits          15156    15158    +2
  Misses         6241     6241
+ Partials       1364     1362    -2

Impacted Files
Coverage Δ

src/com/amazon/ion/impl/BlockedBuffer.java
51.58% <0.00%> (+0.24%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Add cascade option to .dropTable() and .dropTableIfExists()

This PR updates the schema builder's .dropTable() and .dropTableIfExists() methods to accept the options argument.
For now, providing the cascade option adds the cascading clause to drop table statements:
knex.schema.dropTable('users', {
  cascade: true
});

This feature has no breaking changes as no tests needed to be changed, and being this argument an object enables to add more features in the future like PURGE for Oracle or RESTRICT for PostgreSQL.

This would need also an integration test to make sure that all the queries actually work as they are intended. I'll fix the test bench soon to get test to run again.

@elhigu As I started digging into the integration tests I found some issues:

The cascade option has been deprecated since MySQL 5.7, although allowed to facilitate porting;
SQLite3 has no support for this option;
Oracle has no integration tests;

Considering the integration suite runs the same tests for each dialect, I'm not sure how should I add tests specifically for PostgreSQL or a previous version of MySQL.
WDYT?

@ricardogama there are many integration tests, which first checks that client is correct and only includes the test for that dialect. Also please rebase, I might have fixed the CI problems for now.

And oracle do have integration tests and they are ran on CI. Mssql is not CI tested yet though. I'm having second thoughts about this, maybe it is not a good idea to implement deprecated API for mysql. Also I'm not sure if it is worth effort to make this as a feature if it works only with postgresql (in that case one could just write it with knex.raw).
Would this work on postgresql, oracle and mssql though?

Closing for now, may be reopened if this is going to be finished.


updated-contact-page

Description
Updated the Contact Page

Related Issue
Fixes #218
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented on my code, particularly in hard-to-understand areas
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@subhadipbhowmik any updated of the merge??

@subhadipbhowmik please merge the pr it has been 5 days

@subhadipbhowmik bro only 3 days remains would really appreciate if you kindly merge my pr

@subhadipbhowmik bro only 1 day remains in GSSOC would really appreciate if you kindly merge my pr


#fix: minor fixes

Everything else looks good.

Thank you

looks good to me

Thank you Arjun, can you suggest to me anything to improve it


Feat/node_xyz_wrapper

Lymui
Totoro is going to review your PR

What does this PR accomplish

[ ] Add a new feature supporting a new color type
[x] Add a new binding supporting for a type color
[x] Provide a fix to the current project
[x] Add new test

We will check that

[x] Make sure to have unit test
[x] Make sure that any test is passing
[x] Make sure to respect that when converting a type T to return a type T Rgb

🐷 Thanks for contributing ! 🐷

Pull Request Test Coverage Report for Build 305

171 of 173 (98.84%)  changed or added relevant lines in 6 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 98.672%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lymui/xyz.c
39
41
95.12%

Totals

Change from base Build 297:
-0.02%

Covered Lines:
1709

Relevant Lines:
1732

💛  - Coveralls


Nextcloud Integration Issue (page does not load)

My company created a server for draw so we could integrate it with our Nextcloud instance.
The application loads great when you connect directly but the issue is when trying to open a saved .xml file from Nextcloud.
Once you click the icon for the file, a tab opens and the page only loads the banner with all options grayed out except File and Help. The loading icon also hangs in the center and does not advance.
Where should we look to correct this?

https://github.com/pawelrojek/nextcloud-drawio is the project for the integration, they are not related to us.


Lookback 12/24 hours query returns empty result

Storage type: Elasticsearch
Jaeger verison 1.1
Query service is sending same from/to timestamps when requesting Lookback 12/24 hours, therefore getting empty result. 2 days and 6 hours and below works fine.
See tcpdump of elasticsearch query:
POST /jaeger-span-2018-01-05/span/_search?ignore_unavailable=true
{
  "aggregations": {
    "traceIDs": {
      "aggregations": {
        "startTime": {
          "max": {
            "field": "startTime"
          }
        }
      },
      "terms": {
        "field": "traceID",
        "order": [
          {
            "startTime": "desc"
          }
        ],
        "size": 200
      }
    }
  },
  "query": {
    "bool": {
      "must": [
        {
          "range": {
            "startTime": {
              "from":<PHONE_NUMBER>498000,
              "include_lower": true,
              "include_upper": true,
              "to":<PHONE_NUMBER>498000
            }
          }
        },
        {
          "match": {
            "process.serviceName": {
              "query": "assembler"
            }
          }
        }
      ]
    }
  },
  "size": 0
}

UPD: Ah, even easier - its visible form browser network tab (start and end are equal), so most likely UI related:
http://jaeger.example.com/search?end=1515168084006000&limit=200&lookback=12h&maxDuration&minDuration&service=assembler&start=1515168084006000

can be closed, as it was fixed with https://github.com/jaegertracing/jaeger-ui/issues/167


Nils' changes round two

Changes he recommended:

Increase navbar height; change fonts
Use svg 4DN brand
Change account login/out to icon
Make a suite of reusable buttons
Inverse colors in collapsed navbar menu icon
Remove homepage title
Clean up item.js look, including remove one title, add left margin bars to nested items and remove their boxes
Add ability to search news updates (with labels?). Would need to be done after removing blocks

Do the underlying static page layout later (sprint 3?)

Changed nav height, fonts, toggle icon; removed homepage title and changed homepage padding

Onto round three...


Add interrobang.

https://en.wikipedia.org/wiki/Interrobang

I signed it!
On Tue, Oct 11, 2016 at 8:52 AM googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the
company's name.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/extra-keyboards-for-chrome-os/pull/17#issuecomment-252959242,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJx7fQudhpLWf-fDWS3sscavm2WHG4vks5qy7C0gaJpZM4KTy6S
.


Grouping Sessions by Speakers?

Requirements
I think when I go to speakers panel, I should be able to see what sessions that they are delivering in the event.
If there are a lot of sessions, it becomes rather difficult to see it very clearly.

We can show the sessions every speaker is addressing in the popup.

@SaptakS yes please go ahead. Do you have a screenshot?
Lazily loading a div below the speaker bio to show what he/she is presented in the form of small cards. Also will be better if we can make it a separate controller that way we can place it wherever we show speaker information. Shall I assign this ticket to you?
Something like

What I have made is something like this:

What you are saying can also be done. I would be happy if you assign it to me.

Cool! Sounds good @SaptakS. I think just a small card layout with session title and time is okay. And upon clicking it sends you to the linked session.

Ok. Sounds good to me.

For the time being there is no image corresponding to sessions. So I am only showing the title.

Sounds good to me.

https://github.com/fossasia/open-event-webapp/pull/77 Please check.

I think this issue was fixed..

ok closing it down. Cheers!


xcpretty required too

Looks like it needs to have:
sudo gem install xcpretty
for it to compile too.  If you want to add that to the docs.

https://github.com/taskrabbit/ReactNativeSampleApp/pull/29 fixes


About PKCS7_STREAM for PKCS7_encrypt, is it possible to read output stream by chunk when encrypt is on going?

The PKCS7_encrypt docs says:
SMIME_write_PKCS7(), i2d_PKCS7_bio_stream(), PEM_write_bio_PKCS7_stream() will finalize the PKCS7 structure.
In these functions, they all call SMIME_crlf_copy()  which call BIO_read/BIO_write/BIO_flush to do the stream encrypt operation.
If I want to  read output stream by chunk when encrypt is on going, how can I do it? (for example use BIO_new_PKCS7 directly?)

BTW, is PKCS7_decrypt support PKCS7_STREAM flag ?

BTW, is PKCS7_decrypt support PKCS7_STREAM flag ?

a readme at  says:
3. The code is memory based: that is it expects to be able to read the whole
structure from memory. This is fine for small structures but if you have a
(say) 1Gb PKCS#7 signedData structure it isn't such a good idea...

a readme at  says:
3. The code is memory based: that is it expects to be able to read the whole
structure from memory. This is fine for small structures but if you have a
(say) 1Gb PKCS#7 signedData structure it isn't such a good idea...

if you want to read output stream by chunk ,i think you can use the following code
`p7 = PKCS7_encrypt(certs, in, EVP_aes_128_cbc(), PKCS7_STREAM);
BIO *p7bio = BIO_new_PKCS7(out, p7);
uint8_t buff[10240];
size_t bufflen = 0;
while ((bufflen = BIO_read(in, buff, 10240)) > 0)
{
    BIO_write(p7bio, buff, bufflen);
}`

instead of i2d_PKCS7_bio_stream(out, p7, in, PKCS7_STREAM);

if you want to read output stream by chunk ,i think you can use the following code
p7 = PKCS7_encrypt(certs, in, EVP_aes_128_cbc(), PKCS7_STREAM); BIO *p7bio = BIO_new_PKCS7(out, p7); uint8_t buff[10240]; size_t bufflen = 0; while ((bufflen = BIO_read(in, buff, 10240)) > 0) { BIO_write(p7bio, buff, bufflen); }
instead of
i2d_PKCS7_bio_stream(out, p7, in, PKCS7_STREAM);

I think BIO_new_PKCS7, it's encode not decode


Removes deprecated API usage & Replaces trivial getter with @Getter annotation

This should allow the plugin to pass the plugin hub's automated checks that are currently complaining about deprecated API usage without impacting functionality. See: https://github.com/runelite/plugin-hub/pull/7050#issuecomment-2499895188

LGTM, thanks for the contribution


Assertions failing in EquityOption sample on timeSteps==null || timeStepsPerYear==null

Hi,
I am new to QLNet and was trying to run the EquityOption sample. It now fails on an assertion in the MCVanillaEngine:
     Utils.QL_REQUIRE( timeSteps == null || timeStepsPerYear == null, () =>
                "both time steps and time steps per year were provided" );

The variables are declared as int and not as int? meaning they can never have the null value.
I think MakeMCEuropeanEngine should be modified to declare steps_, stepsPerYear_, samples_ and maxSamples_ as int?.
Am I right, should I modify the library like this?
Tomislav

Yes, I think you're right.

Working on it

Fixed in 3eac6d3949e0e3cb2aa1ee531847385f0f18dd86

Thanx, I can see it does not fail on these asserts anymore...
Tomislav
On 23 May 2016 at 14:09, Andrea Maggiulli<EMAIL_ADDRESS>wrote:

Fixed in 3eac6d3
https://github.com/amaggiulli/qlnet/commit/3eac6d3949e0e3cb2aa1ee531847385f0f18dd86
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/amaggiulli/qlnet/issues/84#issuecomment-220962743

--
Tomislav Trajkovski
Managing Director
Applify BV
Head Office, Delft
Rotterdamseweg 183C
2629 HD Delft
The Netherlands
Telephone: +31 (0)15 2120684
Cell: +31 (0) 637 376974
Fax: +31 (0)15 2121517
Email<EMAIL_ADDRESS>


fix(ci): release action tag params

It seems they are required when the tag has not yet been created: https://github.com/ncipollo/release-action#notes

Release Note
NONE

Merging this to see how it will work next nightly run


feat: Debounce phone number validation call

The type of this PR is: Feat
Description
This PR introduces debouncing to the phone number validation.

So actually: this seems a bit weird to me. Wouldn't want to debounce validatePhoneNumber? Can you just confirm that Relay isn't making extraneous requests?


Revert "Add configurable storage directory that defaults to `node_mod…

~/r/i/example (fix-dir) $ env NODE_DEBUG=install ied i is-array
🕐  INSTALL 47919: extracting dependencies,devDependencies,optionalDependencies from ../..
INSTALL 47919: resolving is-array@*
INSTALL 47919: resolving /Users/alex/repos/ied/node_modules/is-array from node_modules
INSTALL 47919: failed to resolve is-array@* from local ../.. via /Users/alex/repos/ied/example/node_modules
INSTALL 47919: resolving is-array@* from remote registry
INSTALL 47919: resolving is-array@* from npm
🕒  0% resolving is-array@*INSTALL 47919: resolved is-array@* to tarball shasum e9850cc2cc860c3bc0977e84ccf0dd464584279a from npm
INSTALL 47919: symlinking .cas/e9850cc2cc860c3bc0977e84ccf0dd464584279a/package -> node_modules/is-array
INSTALL 47919: fetching http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz into /Users/alex/repos/ied/example/node_modules/.cas/e9850cc2cc860c3bc0977e84ccf0dd464584279a/package
INSTALL 47919: extracting dependencies,optionalDependencies from e9850cc2cc860c3bc0977e84ccf0dd464584279a
INSTALL 47919: fixing persmissions of  in /Users/alex/repos/ied/example/node_modules/.cas/e9850cc2cc860c3bc0977e84ccf0dd464584279a/package
INSTALL 47919: downloading http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz, expecting e9850cc2cc860c3bc0977e84ccf0dd464584279a
INSTALL 47919: downloaded e9850cc2cc860c3bc0977e84ccf0dd464584279a into /Users/alex/.ied_cache/.tmp/6e8512f3-1e4e-4231-a17c-59e0344fdcad

ied was installing the dependencies into the wrong directory:
See INSTALL 47919: resolving /Users/alex/repos/ied/node_modules/is-array from node_modules

pwd:
~/r/i/example (fix-dir) $ pwd
/Users/alex/repos/ied/example

After revert:
INSTALL 48165: resolving /Users/alex/repos/ied/example/node_modules/tape from node_modules

I'm reverting this for now to unbreak things, I still think the .cad is a great idea.
cc @mgcrea

Indeed it looks like it was not properly resolving already installed deps! Sorry for letting that through. Had it work with both big frontend and backend projects so I assumed everything was fine. Looks like post first install operations would miss the installed deps.
I'm looking into it atm, main issue is the split between entry deps and non-entry deps stored inside the .cas folder. I'm trying to find a solution that minimize refactoring, but it may need a bigger change that what I hoped for.
I'm currently away for vacations but I do hope to have it working soon.


Binding token and treasury.

At the moment Treasury contract has initialize method that sets up token address and token/ether excachange rate. That implies that token contract was created before treasury. But token contract also should know address of treasury contract to send transfer signal if tokens are transferring to the treasury address.
Should token contract also have initialize method?

Yes, I think so. Maybe, let’s call it setTreasury? And owner can set it multiple times. And add public property treasury, which will store treasury address?

@akolotov what do you think?

I've implemented setTreasury method so far. Will update it if you suggest another solution.


[[DOCS]] Correct project description

The terms of the JSON license [1] disqualify JSHint from the distinction
of "open source" software [2].
[1] https://www.gnu.org/licenses/license-list.html#JSON
[2] https://opensource.org/faq#evil

Coverage remained the same at 100.0% when pulling 2aafe1c80fa1d0a63b020b539cffdeafa74c2edf on jugglinmike:rm-open into 048a22bec515494cd510aaa44e1ee81804d3bf81 on jshint:master.


docs(README): fix wrong semicolon in example

@JSteunou Please close and reopen the PR to trigger the CLA Bot again to/and sign the CLA :)

@JSteunou friendly ping 😛 , please close and reopen the PR and sign the CLA, otherwise I need to close the PR  for legal reasons 😞

@JSteunou - This can't be merged without a signed CLA

@JSteunou friendly ping

Oopsy sorry guys I did not receive notifications for this one.
Done ;)

@JSteunou thanks!


Adding suggested reasons for when conditions are healthy

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR adds reasons for when conditions are healthy. When the conditions are positive, the healthy reason is identical to the condition name.
Does this PR introduce a user-facing change?:
Guidance has been added for condition reasons when they are healthy.

Slack thread with a bit more discussion: https://kubernetes.slack.com/archives/CR0H13KGA/p1616184252018300
/cc @jpeach @howardjohn @lelenanam

Thanks for the feedback @howardjohn and @jpeach! Refactored this to just add reasons for all healthy condition states. PTAL.

I'm a bit confused as to what conditions should always be on an object and when some can come and go. For instanced "Scheduled" should always be there (which still to me I don't follow completely). But you'd also have "Ready" all the time.

Yeh, the API conventions recommend that all conditions be present at times, so that observers can canonically know their values. I think that this makes more sense for programmatic observers than for humans, but at least it's consistent :)

Controllers should apply their conditions to a resource the first time they visit the resource, even if the status is Unknown. This allows other components in the system to know that the condition exists and the controller is making progress on reconciling that resource.

Did you want to add any reasons for ConditionRouteAdmitted?

Thanks for catching that! I completely missed that one, added a couple conditions now.


[Bug] Mihomo always uses the Host in the HTTP header to connect, even if the sniffer and override-destination is disabled

Verify steps

[X] I have read the documentation and understand the meaning of all configuration items I have written, avoiding a large number of seemingly useful options or default values.
[ ] I have not reviewed the documentation and resolve this issue.
[ ] I have not searched the Issue Tracker  for the problem I am going to raise.
[X] I have tested with the latest Alpha branch version, and the issue still persists.
[X] I have provided server and client configuration files and processes that can reproduce the issue locally, rather than a desensitized complex client configuration file.
[X] I have provided the simplest configuration that can reproduce the error I reported, rather than relying on remote servers, TUN, graphical client interfaces, or other closed-source software.
[X] I have provided complete configuration files and logs, rather than providing only parts that I believe are useful due to confidence in my own intelligence.

Operating System
Linux
System Version
Ubuntu 24.04 LTS
Mihomo Version
Mihomo Meta alpha-0e22876 linux amd64 with go1.22.4 Fri Jun 28 06:16:30 UTC 2024
Configuration File
mixed-port: 7890
socks-port: 7891
redir-port: 7892
tproxy-port: 7893
allow-lan: true
ipv6: true

mode: Rule

log-level: info
external-controller: <IP_ADDRESS>:9090
routing-mark: 255
secret: ''

dns:
  enable: true
  ipv6: true
  listen: <IP_ADDRESS>:53
  enhanced-mode: normal
  proxy-server-nameserver:
    - <IP_ADDRESS>
  nameserver:
    - <IP_ADDRESS>

sniffer:
  enable: false
  force-dns-mapping: false
  parse-pure-ip: false
  override-destination: false

Description
Mihomo always uses the Host in the HTTP header to connect, even if the sniffer is disabled
Reproduction Steps
Open postman, set the proxy to mihomo, and send GET to http://<IP_ADDRESS>. This IP address will return an iptest page

Fill in the Host Header with www.google.com and send it again. Mihomo will ignore the IP address and send the request directly to www.google.com.

Logs
The log before setting the Host header
time="2024-07-14T08:21:11.171001547Z" level=info msg="[TCP] <IP_ADDRESS>:13968 --> <IP_ADDRESS>:80 match Match using Manual[HK 01 | ss]"

The log after setting the Host header
time="2024-07-14T08:21:27.465335013Z" level=info msg="[TCP] <IP_ADDRESS>:13979 --> www.google.com:80 match Match using Manual[HK 01 | ss]"

@h0NponJR This is a request from the program that initiated the request, with the target domain name, regardless of the proxy program

After testing, it is the domain that your proxy tool actively sends

I read the code and this is the expected behavior

@xishang0128 The above code only works on http/https

@h0NponJR The above code only works on http/https


Incompatiable with Rails 5.0 beta

middleman-core 4.1.7 (currently the latest) depends on activesupport ~> 4.2, while rails 5.0.0.beta3 requires activesupport 5.0.0.beta3.
Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    middleman (~> 4.1.7) was resolved to 4.1.7, which depends on
      middleman-core (= 4.1.7) was resolved to 4.1.7, which depends on
        activesupport (~> 4.2)

Any plan to make middleman compatiable with Rails 5?

Sorry, seems middleman isn't used as Rails plugin.

We'll take a look once it comes out of beta.


[CT-1265] Implement 'protobuf' log_format options and create tests comparing proto and json logs

Using the initial code changes in #5954/#5662, create a log_format option "protobuf".  Create logs in proto format, convert to event classes, and verify that content is equal when round-tripped.

After reviewing the protobuf branch and doing some research, my suggestion is to use the canonical protobuf<->JSON mapping which is part of the proto3 specification. It is supported by the python implementation.
The log output would consist of exactly one JSON object per log line, corresponding to one event fired by dbt-core.
The log consumer parse the JSON messages directly or convert back to proto objects on their side using the message definitions we maintain. Converting back to proto objects would require inspecting the JSON far enough to figure out the message type, but that seems reasonable to me. This would mean we have two JSON logging formats, but that also seems reasonable under the circumstances.

It would not be difficult to implement a binary log. Since there isn't much downside to supporting one, I'll prepare a changeset for that.
My first thought was to use JSON because my experience is that it is unusual to use binary logging in a cloud production environment, so I'm a bit skeptical we will use it in practice. Binary logs won't be human readable, nor machine readable without specialized code. As a result, the logs will be opaque to Datadog or other monitoring and analysis systems, which I suspect would be a dealbreaker for production operations.
The advantages would be:

A more compact network and storage format (uncertain overall benefit after compression)
Much faster for specialized log processing code to deserialize

Working with the rest of the team, I've completed this spike by opening a PR for a protobuf log mode prototype (https://github.com/dbt-labs/dbt-core/pull/6138). We will not merge the PR in its current state, but have identified several areas needed for further work which will be split into separate issues. I'll include a list of those below after I have opened them.


Increment Version

@JuliaRegistrator register() Bingomatic v0.1.1

Registration pull request created: JuliaRegistries/General/25701
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.1 -m "<description of version>" eac2786ec6265374c2ef2ddbea26de07c5772b37
git push origin v0.1.1


Week1 assignment

Added the requested FAQ and fixed a typo.

@iallison I think people are going to need directories for their source rather than a single $USERNAME.md file.  Not sure if this is how you want it organized, but I made some adjustments.
There is also a lot of setup for assumer to work, so if you plan on having them test its functionality, you may want to think about having some helper scripts to setup the roles (unless figuring that out is part of the learning).


Keith/fix email validation

/cc @zendesk/vegemite :v:
Description
After adding validation for username which is end user's email. I have not considered for users who uses API token.
Implementation Notes
The previous regular expression for email was
EMAIL_REGEX  = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i

This is now changed to
EMAIL_REGEX  = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})(\/token:\S+)?$/i

Tasks

[x] Test email with email@email.email/token:{api_token}

References

https://zendesk.slack.com/archives/C1230V1CG/p1544631643154400

Risks

[low] Attempt to fix ZAT login with email that requires api_token

Could be slightly more specific with the token regex, but otherwise looks fine 👍

Actually, should we instead have email of the form
<EMAIL_ADDRESS>and then password as p0K3Mon?  I'm having difficulties testing this locally.

Regarding the gem versioning. The current version should be VERSION = '2.12.1'. This was left out.
When the branch gets merged, we should do bundle exec rake bump (VERSION = '2.12.2')

For clarification, I built the gem locally and tested

the happy path for my sponsored account & standard email/password
the happy path for my sponsored account & email with token/api_token as password (now working, this was not working before)
the fail validation path for url
the fail validation path for email


[ComboBox] Menu doesn't close when tabbing out of iframe

Current behavior
The combobox menu doesn't close when it becomes unfocused via clicking the tab key.
Steps to reproduce the bug

Go to https://ariakit.org/previews/combobox-multiple
Click the combobox to open the menu
Press tab to move focus out of the combobox

Expected behavior
The menu closes when pressing tab, since the combobox is no longer focused.
Workaround
No response
Possible solutions
No response

That's because there are no elements on that page where you can tab to after the combobox widget. As a result, pressing Tab causes the window to lose focus. You can see this in action on the example page, where it works as you might expect.
Ariakit doesn't close popups when the window loses focus, as this is typically not what users expect. For instance, I use a third-party app to capture screenshots on my Mac. When I click the "Take screenshot" button on the app, it blurs the web document. If the popup were to close, I wouldn't be able to include it in the screenshot. This could also impact other apps, such as third-party magnifiers.
However, if you still want to implement this feature, you can manually hide the popover when the window's blur event occurs.

Thanks for the context! I'm fine with keeping the menu open when the window loses focus.
But in my case, the combobox is inside an iframe (e.g. Storybook or any docs site). If the focus moves outside the iframe (but still inside the same window), then the combobox also stays open. Is this expected as well, or should it only close when the focus moves completely out of the window?

From a technical standpoint, an iframe acts as a separate window. It might be possible to verify whether the focus is on either window.parent or window.top to ascertain if the popup can be closed. This seems achievable in userland, so it's better to begin there to find an appropriate solution. Regardless, I've marked this as a feature request.

Thanks! We don't expect our combobox component to be used inside an iframe in production, so we can live with this behavior for now.


Have graphs of quotes and orders

Have graphs of quotes and orders on the distribution of prices and cost of tasks

Detail for eacth line for service

for total repatition quote service


Purpose of the constants

Is there a purpose behind using the constants? It seems that this takes more time in development, and precludes being able to use ROUTE("") for the Index action of a controller?

There are two reasons.

We use named routes instead of controller name and action name. This has better performance. So Url.RouteUrl("RouteName") is quicker than Url.Action("Controller", "Action").

What happens when you've finished your application, you are using strings everywhere and now you want to rename a controller or action? You have to go through all the views looking for any string that has the old controller or action name. Having constants allows Visual Studio to do all the work and lets us rename the constant easily.

@RehanSaeed
If you are interested, I have created T4 Templates to automatically generate the Constants for:
Controller Names
'Action' Names, which detect if an HTTPGet or HTTPost, or a Route definition attribute was applied and creates constants accordingly.
View Names
I have others for creating constants for content files - e.g. CSS, Images, JavaScripts etc.
If you are interested, let me know and I will add a sample on GitHub to see what you think.


Please release the gem regularly

I dont like to have git stuff in my Gemfile
(current gem version is from june 2010)

current gem is an artefact from the past. I'll release a gem when I'm sure the new DSL works. Should be very soon.


Need variable to alter spec path in Swagger UI Explore bar

I'm deploying an API written in Swagger (OAS3) behind AWS API Gateway. I can't import it into API Gateway because it seems as if they still only support 2.0.
That's fine. I don't mind that so much, but the problem is it messes with my Swagger UI. API Gateway puts the stage name in the URL but the swagger/connexion app isn't able to "see" this. As a result the Explore bar has the wrong path to the spec file.
It loads up with /swagger_url/openapi.spec but needs to be changed to /aws_stage_name/swagger_url/openapi.spec in order to load properly in the console.
I took a look at the ui stuff myself but am not a front end guy so had absolutely no idea what I was looking at. :)

I'll copy the comments here, I accidentally put them on the PR (although that's not necessarily wrong)
That fixes the Explore bar nicely so the spec is loaded into the UI Console.
That also sets the link to the spec file correctly.
The Try it out section still has the wrong URL, however.


FetchTrophies doesn't return an error on failure

Affected Builds:

1.1.5-UE4.27 (GJ)

Closed with 07932b7ce6c5d8d3500390b20e2bce0e53a05a3b


GHC 7.10 isn't built with a GHC bindist

As someone who generally works with master, it's not the most convenient thing to need to build two copies of GHC (40+ minutes on my 8-core i7) to do any dev work.
Has someone tried to add the GHC 7.8 bindist to nixpkgs and it ended up being complicated, or has this issue just not been noticed yet?

cc @peti, @ocharles

Supporting a post 7.8.x binary snapshot is complicated and I didn't bother to pursue the issue because it's a build-time only dependency. If you want to give it a shot, then I am all for it of course!

@pikajude are you using @peti's binary cache server btw? I find that almost always avoids any need for recompilation locally.

Supporting a post 7.8.x binary snapshot is complicated and I didn't bother to pursue the issue because it's a build-time only dependency. If you want to give it a shot, then I am all for it of course!

@peti Is there particular change since then that complicates things? Or was it just a matter of expedience ?

The binary distribution was built with shared library support enabled, so there were over a dozen .so files littered all over the source hierarchy that needed non-trivial patchelf logic to find each other. I tried to make the compiler work on NixOS for a while and eventually just have up. It's not a hard problem to solve, it's just tedious.

(triage) is this still relevant?

I believe this is still relevant, see https://github.com/NixOS/nixpkgs/issues/19926 .

This is a duplicate of https://github.com/NixOS/nixpkgs/issues/19926.


Correctly register the module id in mockEasiestRoute

mockEasiestRoute, which is used to create a SessionStateDescriptor for a form instance that is manually being loaded onto the phone from an external source, had the following bug:
instead of creating a descriptor of this nature
"COMMAND_ID m0 COMMAND_ID m0-f0 CASE_ID case_id_new_pregnancy_0 ..."
the module id 'm0' was being replaced by the entry id 'm0-f0'
"COMMAND_ID m0-f0 COMMAND_ID m0-f0 CASE_ID case_id_new_pregnancy_0 ..."
This PR fixes this by calling a method that find the module id for an entry.
Cross requested with https://github.com/dimagi/commcare/pull/88

@wpride Can you review this one? Thanks


[Bug]: Autocomplete needs to show promises keywords instead of showing 'no suggestions'

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Currently, promises keywords then, catch, async, await etc... are displayed as no suggestions by autocomplete and these needs to be added into autocomplete suggestions
Steps To Reproduce

Try using promises keywords in JS editor or on action fields of the property pane and observe autocomplete show no suggestions instead

Environment
Release
Version
Cloud

Happens for action.run functions and async JS functions

Removed High label because, it's only async await keywords that are missing.
.then, .catch are available on actions. need to look into async functions.

@satbir121 can we add async and await to autocomplete results?


Support Python 2 and 3 in notebooks

Support Python 2 and 3 in notebooks

Can one of the admins verify this patch?

I signed it!

@tensorflow-jenkins Test this please.

Looks like the GPU failure here is preexisting and unrelated.

Look like a network error, the boost tarball failed downloading.

Overriding test failure, infrastructure failure.


Support python 3.11

All unittests fails when running with python 3.11 on ValueError:
ValueError: AST node line range (7, 1) is not valid

(some tests fails on range (12,1)).
It might be related to:  https://github.com/python/cpython/issues/93351

I really want to upgrade to 3.11 for my slash tests that depend on this. Let me know if I can help here.

https://github.com/vmalloc/dessert/pull/22 fixes this for me.

https://github.com/vmalloc/dessert/pull/22 fixes this for our project at https://github.com/intel/vaapi-fits.


pageserver: post-shard-split layer trimming (1/2)

Problem
After a shard split of a large existing tenant, child tenants can end up with oversized historic layers indefinitely, if those layers are prevented from being GC'd by branchpoints.
This PR is followed by https://github.com/neondatabase/neon/pull/7531
Related issue: https://github.com/neondatabase/neon/issues/7504
Summary of changes

Add a new compaction phase compact_shard_ancestors, which identifies layers that are no longer needed after a shard split.
Add a Timeline->LayerMap code path called rewrite_layers , which is currently only used to drop layers, but will later be used to rewrite them as well in https://github.com/neondatabase/neon/pull/7531
Add a new test that compacts after a split, and checks that something is deleted.

Note that this doesn't have much impact on a tenant's resident size (since unused layers would end up evicted anyway), but it:

Makes index_part.json much smaller
Makes the system easier to reason about: avoid having tenants which are like "my physical size is 4TiB but don't worry I'll never actually download it", instead have tenants report the real physical size of what they might download.

Why do we remove these layers in compaction rather than during the split?  Because we have existing split tenants that need cleaning up.  We can add it to the split operation in future as an optimization.
Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

This PR should be good to go.
Next will be https://github.com/neondatabase/neon/pull/7609 -- generation numbers in local paths, to then do layer rewrites without having to worry about safety of rewrites to the same path.


While taking screenshots with align-items : flex-end the phantomjs screenshot is incorrect

Hi
I think phantomjs2 has some issues with flexbox
I have a css which has align-items : flex-end which property does not get applied when i take a screenshot
Is there a way to correct this

If PhantomJS has a bug, you need you open an issue for it there, not here.


setfit model on multiple GPUs?

Now that sentence transformers support multiple gpus, i was wondering if setfit supports it also? does Anyone has any idea about setting the number of GPUs in the setfittrainer

I have the same request


Update identity-readme.md

Fixed various links to non-existent wiki pages.
 It's not clear to me if it is better to keep the column there or rely on the other links in the document for that config info.

Docs Build status updates of commit 75afc8e:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-services/latest/identity-readme.md
:warning:Warning
View (azure-java-stable)
Details

docs-ref-services/latest/identity-readme.md

Line 2, Column 1: [Warning: ms-prod-and-service - See documentation] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
Line 9, Column 16: [Warning: ms-prod-technology-invalid - See documentation] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
Line 137, Column 91: [Warning: hard-coded-locale - See documentation] Link 'https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 197, Column 77: [Warning: hard-coded-locale - See documentation] Link 'https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 406, Column 116: [Warning: bookmark-not-found] Cannot find bookmark '#chaining-credentials' in 'docs-ref-services/latest/identity-readme.md'.
Line 501, Column 33: [Warning: hard-coded-locale - See documentation] Link 'https://docs.microsoft.com/en-us/azure/developer/java/sdk/logging-overview' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.
Line 5, Column 12: [Suggestion: ms-author-invalid - See documentation] Invalid value for 'ms.author', 'g2vinay' is not a valid Microsoft alias.
Line 15, Column 37: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/fundamentals/active-directory-whatis' will be broken in isolated environments. Replace with a relative link.
Line 17, Column 68: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/' will be broken in isolated environments. Replace with a relative link.
Line 69, Column 5: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable' will be broken in isolated environments. Replace with a relative link.
Line 69, Column 5: [Suggestion: preserve-view-not-set - See documentation] Did you mean to link to a specific version? It's usually better not to specify a version, so the link always goes to the canonical version. If you really need to link to a specific version, add &preserve-view=true to the URL: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable. Otherwise, remove the view parameter.
Line 77, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/developer/java/sdk/identity-dev-env-auth#intellij-credential' will be broken in isolated environments. Replace with a relative link.
Line 78, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/developer/java/sdk/identity-dev-env-auth#visual-studio-code-credential' will be broken in isolated environments. Replace with a relative link.
Line 79, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/developer/java/sdk/identity-dev-env-auth#azure-cli-credential' will be broken in isolated environments. Replace with a relative link.
Line 137, Column 91: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview' will be broken in isolated environments. Replace with a relative link.
Line 160, Column 82: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/developer/java/sdk/identity-dev-env-auth#sign-in-azure-toolkit-for-intellij-for-intellijcredential' will be broken in isolated environments. Replace with a relative link.
Line 184, Column 5: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/overview' will be broken in isolated environments. Replace with a relative link.
Line 185, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token' will be broken in isolated environments. Replace with a relative link.
Line 186, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/qs-configure-powershell-windows-vmss' will be broken in isolated environments. Replace with a relative link.
Line 187, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/app-service/overview-managed-identity?tabs=dotnet' will be broken in isolated environments. Replace with a relative link.
Line 188, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/aks/use-managed-identity' will be broken in isolated environments. Replace with a relative link.
Line 189, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cloud-shell/msi-authorization' will be broken in isolated environments. Replace with a relative link.
Line 190, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/azure-arc/servers/managed-identity-authentication' will be broken in isolated environments. Replace with a relative link.
Line 191, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/service-fabric/concepts-managed-identity' will be broken in isolated environments. Replace with a relative link.
Line 197, Column 77: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview' will be broken in isolated environments. Replace with a relative link.
Line 236, Column 1: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/java/api/com.azure.identity.azureauthorityhosts?view=azure-java-stable' will be broken in isolated environments. Replace with a relative link.
Line 236, Column 1: [Suggestion: preserve-view-not-set - See documentation] Did you mean to link to a specific version? It's usually better not to specify a version, so the link always goes to the canonical version. If you really need to link to a specific version, add &preserve-view=true to the URL: https://docs.microsoft.com/java/api/com.azure.identity.azureauthorityhosts?view=azure-java-stable. Otherwise, remove the view parameter.
Line 252, Column 8: [Suggestion: disallowed-html-attribute - See documentation] HTML attribute 'style' on tag 'table' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
Line 292, Column 8: [Suggestion: disallowed-html-attribute - See documentation] HTML attribute 'style' on tag 'table' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
Line 309, Column 20: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/develop/app-objects-and-service-principals' will be broken in isolated environments. Replace with a relative link.
Line 316, Column 20: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/develop/app-objects-and-service-principals' will be broken in isolated environments. Replace with a relative link.
Line 323, Column 8: [Suggestion: disallowed-html-attribute - See documentation] HTML attribute 'style' on tag 'table' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
Line 340, Column 20: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-device-code' will be broken in isolated environments. Replace with a relative link.
Line 347, Column 20: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow' will be broken in isolated environments. Replace with a relative link.
Line 354, Column 20: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/develop/v2-oauth-ropc' will be broken in isolated environments. Replace with a relative link.
Line 361, Column 20: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow' will be broken in isolated environments. Replace with a relative link.
Line 368, Column 8: [Suggestion: disallowed-html-attribute - See documentation] HTML attribute 'style' on tag 'table' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
Line 385, Column 20: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/cli/azure/authenticate-azure-cli' will be broken in isolated environments. Replace with a relative link.
Line 392, Column 20: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/developer/java/toolkit-for-intellij/sign-in-instructions' will be broken in isolated environments. Replace with a relative link.
Line 412, Column 8: [Suggestion: disallowed-html-attribute - See documentation] HTML attribute 'style' on tag 'table' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
Line 437, Column 8: [Suggestion: disallowed-html-attribute - See documentation] HTML attribute 'style' on tag 'table' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
Line 462, Column 8: [Suggestion: disallowed-html-attribute - See documentation] HTML attribute 'style' on tag 'table' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
Line 501, Column 33: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/en-us/azure/developer/java/sdk/logging-overview' will be broken in isolated environments. Replace with a relative link.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit e87c1a6:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: PullRequestMergeConflict] Cannot sync git repo to specified state. Please make sure the pull request is mergeable.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Fix bluetooth and footer

https://jenkins.code.rdkcentral.com/job/github-triggered/231/ started

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.


Added non recursive double&add

Only updated ECsecp256k1.py, but I can change it in all the others EC files as well if needed.

pull requested has been merged


[Feature Request] If the user should be in control of their money, then you need to have virtual banks that any user can create

🚀 Feature Request

The right to move is a fundamental right for anyone who wants control over their own life, their own money, etc. The right to move simply means that, while the person is allowed to place their trust on whatever or whoever they want, as long as they allow it, that person is also guaranteed the freedom to take that trust elsewhere to any other party that allows it.
As such, anyone should be able to spawn up a virtual subcurrency/"bank", which can provide warranties not provided by the wider blockchain-based network. Such a subcurrency/"bank" may automatically attach fees to all your transactions, block third-parties, have their own currency which they freely control (including the ability to mint those subcurrencies). This means they have full control over your money if you trust them with your money.
Humans are social beings, and trust is an important part of human social interactions. To satisfy their needs, humans need to be able to trust eachother. This is where all other cryptocurrencies fail, and where you can do differently.
(Besides, whether you embed them into the blockchain or not, we're gonna have those bank-like things anyway. By embedding them into the blockchain you just solve some known issues like scalability and availability, and help prevent mess-ups.)
Motivation
Is your feature request related to a problem? Please describe.

Pitch
Describe the solution you'd like

Describe alternatives you've considered

Are you willing to open a pull request? (See CONTRIBUTING)
Additional context

I think the whole idea of digital currency is decentralization to eliminate fees from banks and credit cards. Whether you should choose to give your money to and investor based on whatever terms the investor has is up to you, but the ledger and blockchain is supposed to be secure and unhackable so there is no need for a bank in my opinion.

Maybe there's no strict need for it, but I think it would quite benefit from it anyway. These "banks" are like... well "bank" is the wrong term for it, they're really just "managed subcurrencies". They can allow for/help with things like chargebacks and refunds tho.

@SourceCode3679 The bank is yourself. Decentralization is not to simply eliminate fees, it's so that you are in total command of your money, and no transaction you send from your node can be censored. Not only that, but also so that governments cannot influence or directly/indirectly control the payment network
The US Govt as well as French and EU governments are calling for banning the development of this project already, the same day the project has been announced. This is why Bitcoin is decentralized, so that governments cant shut it down or turn it into a slave to them.

they think this project is dangerous? lol.
it's a major failure, that's what it is.
without trust, there's no money. IRL setting up a bank is extremely expensive, not only legally but also in terms of physical resources. if anyone can make a "bank" that would be a much bigger threat to governments.