text:
model SHU065150050 IP65

has anyone tried to use the new smartshunt model
SHU065150050 IP65 . its waterproof and the ve. direct is a cable instead of  a port
thanks
Miguel

Hi , if I look at the datasheet for VE.DIRECT
it looks identical and should work the same as the non-IP65 version.

I got this device and it resets to 100% every single day between 8 am and 9 am, also my soc see some really weird spikes of 900%.
i dont think that is the yaml code but definitely theres something wrong.
I have connected the posisitve of the smart shunt to the positive of the batterty and the shart shunt in series with the load and the  smartshunt TX to esp8266 D7. no GND to the VE.DIRECT port, but that doesnt eplain why the smart shunt restest to 100% by itself.

my yaml code
esphome:
  name: "${lower_devicename}"
  platform: ESP8266
  board: d1_mini
  comment: "Monitor and a Victron Smart Shunt via TTL"

external_components:
  - source: github://KinDR007/VictronSmartShunt-ESPHOME@main
    refresh: 0s

substitutions:
  lower_devicename: "smartshunt"
  devicename: "SmartShunt"
  config_version: "v2021.06.02.001"
  wifi_fast_connect: "true"
  accuracy: "3"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true

  manual_ip:
    static_ip: 192.168.0.23
    gateway: 192.168.0.1
    subnet: 255.255.255.0
    dns1: 192.168.0.1
    dns2: 8.8.8.8

  ap:
    ssid: "${devicename} Hotspot"
    password: !secret wifi_ap_password

captive_portal:

logger:
  baud_rate: 0

api:

ota:

web_server:
  port: 80

time:
  - platform: homeassistant

uart:
  id: uart_0
  tx_pin: D8
  rx_pin: D7
  baud_rate: 19200
  stop_bits: 1
  data_bits: 8
  parity: NONE
  rx_buffer_size: 256

victron_smart_shunt:
  uart_id: uart_0

sensor:
  - platform: victron_smart_shunt
    battery_voltage:
      name: "Battery Voltage"
      id: bv
      accuracy_decimals: ${accuracy}

    battery_current:
      name: "Battery Current"
      id: bc
      accuracy_decimals: ${accuracy}

    instantaneous_power:
      name: "instantaneous power"
      id: instantaneous_power
      filters:
        - multiply: 0.001
      unit_of_measurement: kWh
      accuracy_decimals: ${accuracy}

    time_to_go:
      name: "time to go"
      id: time_to_go

    consumed_amp_hours:
      name: "consumed amp hours"
      id: consumed_amp_hours
      unit_of_measurement: Ah
      accuracy_decimals: ${accuracy}

    min_battery_voltage:
      name: "Min battery voltage"
      id: min_battery_voltage
      accuracy_decimals: ${accuracy}

    max_battery_voltage:
      name: "Max battery voltage"
      id: max_battery_voltage
      accuracy_decimals: ${accuracy}

    amount_of_charged:
      name: "Amount of charged"
      id:  amount_of_charged
      filters:
        - multiply: 0.000001
      unit_of_measurement: MWh
      device_class: energy
      state_class: total_increasing
      accuracy_decimals: ${accuracy}

    bmv_alarm_text:
      name: "BMV alarm"
      id: bmv_alarm

    last_full_charge:
      name: "Time since last full charge"
      id: last_full_charge

    deepest_discharge:
      name: "Depth of the deepest discharge"
      id: deepest_discharge
      unit_of_measurement: Ah
      accuracy_decimals: ${accuracy}

    last_discharge:
      name: "Depth of the last discharge"
      id: last_discharge
      unit_of_measurement: Ah
      accuracy_decimals: ${accuracy}

    state_of_charge:
      id: state_of_charge
      name: "SoC"

    discharged_energy:
      name: "Amount of discharged energy"
      id: discharged_energy
      filters:
        - multiply: 0.000001
      unit_of_measurement: MWh
      device_class: energy
      state_class: total_increasing
      accuracy_decimals: ${accuracy}

  - platform: template
    name: " ${devicename} discharge "
    filters:
      - multiply: 0.001
    unit_of_measurement: kWh
    device_class: energy
    state_class: total_increasing
    accuracy_decimals: ${accuracy}
    lambda: |-
          float i = id(consumed_amp_hours).state;
          float e = id(bv).state;
          float w = 0.0;
          if (i < 0) {
            w = i * e;
          }
          return {w * -1} ;

  - platform: template
    name: " ${devicename} charge "
    filters:
      - multiply: 0.001
    unit_of_measurement: kWh
    device_class: energy
    state_class: total_increasing
    accuracy_decimals: ${accuracy}
    lambda: |-
          float i = 792 + id(consumed_amp_hours).state;
          float e = id(bv).state;
          float w = 0.0;
          if (i > 0) {
            w =  i * e;
          }
          return {w} ;

  - platform: template
    name: " ${devicename} Rem. Capacity "
    unit_of_measurement: Ah
    device_class: energy
    state_class: total_increasing
    lambda: |-
      if (id(state_of_charge).state) {
        return 792 * (id(state_of_charge).state * 0.01f);
      }
      return NAN;

switch:
  - platform: restart
    icon: mdi:reload-alert
    name: "${devicename} Restart"

Best Regards,
M.

You can try this filter for the spikes, though I think your shunt might be faulty if it resets to 100% unless you have set specific settings that makes it reset to 100% SOC:
    state_of_charge:       id: "${name}_${smartshunt}_state_of_charge"       name: "State of Charge"       accuracy_decimals: 1       filters:       - quantile:           window_size: 7           send_every: 4           send_first_at: 3           quantile: .9


text:
Electronic circuit ratio problem for purple potion

Hi,
The electronic circuit ratio with copper cable is 2 electronic circuit for 3 copper cable assembling machine.
With my friend we want produce 150 purple potions/minute and we see we need 8 + 1/3  electronic circuit assembling machine but only 19 + 1/6 copper cable assembling machine.
We the ratio 2/3 we need 25 copper cable assembling machine and not 19+1/6.
I don't know how it's calculate and I don't see settings to modify the result but I think the calculator made a mistake.
Bye.

The calculator is correct.
For the 8 + 1/3 electronic circuit machines you need 3/2*(8 + 1/3) = 12 + 1/2 copper cable assembling machines
For the 40 advanced circuit machines, you need another  6 + 2/3 copper cable assembling machines
12 + 1/2 + 6 + 2/3 = 19 + 1/6
150 purple potions https://kirkmcdonald.github.io/calc.html#data=1-0-0&cp=2&min=3&furnace=stone-furnace&p=basic&items=production-science-pack:r:150
8 + 1/3 electronic circuit machines https://kirkmcdonald.github.io/calc.html#data=1-0-0&rate=s&cp=2&min=3&furnace=stone-furnace&p=basic&items=electronic-circuit:r:125/6
40 advanced circuit machines (excluding the 8 + 1/3 electronic circuit machines) https://kirkmcdonald.github.io/calc.html#data=1-0-0&rate=s&cp=2&min=3&furnace=stone-furnace&p=basic&items=advanced-circuit:r:25/3&ignore=electronic-circuit

The calculator is correct.
For the 8 + 1/3 electronic circuit machines you need 3/2*(8 + 1/3) = 12 + 1/2 copper cable assembling machines
For the 40 advanced circuit machines, you need another  6 + 2/3 copper cable assembling machines
12 + 1/2 + 6 + 2/3 = 19 + 1/6
150 purple potions https://kirkmcdonald.github.io/calc.html#data=1-0-0&cp=2&min=3&furnace=stone-furnace&p=basic&items=production-science-pack:r:150
8 + 1/3 electronic circuit machines https://kirkmcdonald.github.io/calc.html#data=1-0-0&rate=s&cp=2&min=3&furnace=stone-furnace&p=basic&items=electronic-circuit:r:125/6
40 advanced circuit machines (excluding the 8 + 1/3 electronic circuit machines) https://kirkmcdonald.github.io/calc.html#data=1-0-0&rate=s&cp=2&min=3&furnace=stone-furnace&p=basic&items=advanced-circuit:r:25/3&ignore=electronic-circuit

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
URL Scanner does not work as intended at times

Bot's response for all variables are 0.
Tasks are synchronous which results responses being delivered before the processing is completed.
Need to utilize async/await.

problem actually was with the limitation of the free VirusTotal API which limited to only four requests a minute and would take time to process the submitted url.
solved with setTimeout to delay the url request

problem actually was with the limitation of the free VirusTotal API which limited to only four requests a minute and would take time to process the submitted url.
solved with setTimeout to delay the url request

license: Unlicense


text:
[A11y] Ajout du focus sur le Carousel et meilleure navigation clavier

Closes #.
Screenshot:
TODO:

[x] Tests
[x] Changelog
[x] A11Y
[x] Stories / Docs
[ ] BrowserStack
[ ] New component added to assets/javascripts/kitten/index.js

@joachimesque Ça impact quel(s) Carousels ? J'en ai essayé quelques uns sur Storybook mais je n'arrive pas à déclencher la navigation au clavier, on parle bien de ArrowLeft et ArrowRight ?
(Testé sur Firefox)

@FlorentD c'est vrai j'ai pas décrit les améliorations… en gros il y a 3 choses:
https://kitten-git-a11y-add-focus-carousel.kisskissbankbank.vercel.app/?path=/story/carousels-carousel-projectcarousel--default

le outline est visible sur le carousel, et sur chaque élément enfant du carousel
quand le composant du carousel est focus, tu peux utiliser les flèches du clavier pour aller en avant en arrière
quand tu focus une des cards et que tu continues à taper tab tab tab, il passe d'une page à l'autre sans problème

Tu peux comparer les deux derniers points avec l'existant sur https://kitten.vercel.app/?path=/story/carousel-projectcarousel--default)
Screenshots:

source: gharchive/pull-request

authors: FlorentD joachimesque

repo: KissKissBankBank/kitten

license: mit

license_source: bigquery


text:
Allowed Origin

Hi! Thanks for great framework!
Is it possible to add new case in enum AllowedOrigins?
That would be wonderful to add case sameAsOrigin with logic in CORS
private func setAllowOriginHeader(request: RouterRequest, response: RouterResponse) {

        let requestOrigin = request.headers["Origin"]!
        var headerValue : String

        switch options.allowedOrigin {
        case .all:
            headerValue = "*"
        case . sameAsOrigin: /// Here
            headerValue = requestOrigin
        case .set, .origin, .regex:
            if isAllowed(origin: requestOrigin) {
                headerValue = requestOrigin
            }
            else {
                headerValue = "false"
            }
        }
        response.headers.append("Access-Control-Allow-Origin", value: headerValue)
    }

Hi @makleso6, are you able to make a PR for that? So we can add it to the server?
Thanks.

Hi @mbarnach I creare #45 pr

Thanks for the PR. It looks good to me. Once it is merged, I will closed the ticket.

@mbarnach when will be release with this feature?

Good point! I did publish a new version 2.1.201.

repo: Kitura/Kitura-CORS


text:
Enable read-only view of workflow diagrams

With this commit, you will no longer be able to modify a workflow unless you've enabled write access.

This addresses #81

@zackgalbreath I updated the app logic a little so editable state changes with the Edit button (required full reset of the view when editable changes but I think that's ok), see my latest commit. I see that connections can be made only when in edit mode, as well as step deletion, which is good. Please also disallow moving workflow components when not editable.

@jeffbaumes, PTAL & let me know if this PR needs any more tweaks before merging.

LGTM :balloon:

authors: jeffbaumes zackgalbreath

repo: Kitware/tangelohub


text:
Integrate with slicer (#6)

Augment global scope with interface for extension manager.
Add enum for extension state
Update view to reflect state.
Add state mutations.

resolves #6

@jcfr we'll have to test this in slicer before it can be merged.
If you point me to docs, I can look into doing this myself.

@jcfr I happened to notice 262129c, which removes mdi.
You may not want to do that.
The application currently requires public internet resources to run: https://github.com/KitwareMedical/slicer-extensions-webapp/blob/main/public/index.html#L9-L10
I'm not sure what you want to happen when the extension store is loaded from a computer without network access, but I assume it should say something about an error fetching extensions.  Under this condition, you probably still want icons and fonts to load properly.  I've had to include these as static bundles before rather than external dependencies.
LMK what you want to do and I can point to to the necessary changes.

removes mdi.

Thanks for the feedback, I missed the fact it was added in index.html and ended removing it because after testing, icons were still rendered.
I will remove my commit and instead update the index.html file

the extension store is loaded from a computer without network access

Good point.
There are few scenarios to consider:

no connection when the website is initially loaded using the web browser embedded  in Slicer extensions manager (e.g after starting up the application). In that case, we currently display a static page. See here for the current implementation, we will have to update the style of the static error page to be consistent with material design look and feel.

connection lost while browsing (a) in a standalone browser or (b) using the web browser embedded in Slicer extensions manager.

update the style of the static error page

@subdavis Do you have any suggestion to allow instrumenting the current build-system (see here) so that we can generate a static bundle including only a simple error page ?
Unless you suggest a different approach, I will still do the templating of the static page programmatically (see here)

include these as static bundles before rather than external dependencies.
LMK what you want to do and I can point to to the necessary changes.

@subdavis  Isn't it sufficient to revert my commit and remove the public external dependencies from index.html ?

In order to bundle public dependencies, you'll need to make some changes.
Fonts
Can be bundled at build time using a webpack plugin
// eslint-disable-next-line @typescript-eslint/no-var-requires
const GoogleFontsPlugin = require('@beyonk/google-fonts-webpack-plugin');

module.exports = {
  /* ... */
  configureWebpack: {
    plugins: [
      new GoogleFontsPlugin({
        fonts: [
          {
            family: 'Roboto',
            variants: ['100', '300', '400', '500', '700', '900'],
          },
        ],
      }),
    ],
  },
};

Icons
Reinstall package, then reference in the vuetify configuration.
import '@mdi/font/css/materialdesignicons.css';

Vue.use(Vuetify);

export default new Vuetify({
  icons: {
    iconfont: 'mdi', // default - only for display purposes
  },
  theme: {
    /* ... */
  },
});

Other questions

Do you have any suggestion to allow instrumenting the current build-system (see here) so that we can generate a static bundle including only a simple error page ?

I didn't realize slicer loads this page from the internet.  It should probably load it from file:///whatever/path/to/index.html where the static bundle is included in the slicer executable build.  Then the page should be able to easily detect no internet connection and show an error.
This should probably be done as a separate PR.
FWIW, if the extension store can only be launched by loading the site from the public internet, then it's sort of pointless to bother bundling static assets.  This is only worth the trouble if you're going to yarn build a static bundle and package it with slicer.
I don't think it's necessary to make the changes above at this time.  Could do it if/when you decide you want a nicer error page than the existing message.

In order to bundle public dependencies, you'll need to make some changes.

@subdavis  Thanks for the feedback, I moved forward with having a static bundle.

authors: jcfr subdavis

repo: KitwareMedical/slicer-extensions-webapp


text:
Broken links for artifacts in kg-phenio KG-hub

Links to download artifacts in the kg-phenio directory of KG-Hub
https://kg-hub.berkeleybop.io/kg-phenio/index.html
Are broken, because they are pointing to the kg-ontoml artifacts (which are 404).
For example:
https://kg-hub.berkeleybop.io/kg-ontoml/20220504/KG-OntoML.tar.gz
I think the fix is to update existing index.html files to point to the new kg-phenio URLs. For example the broken link above should point to:
https://kg-hub.berkeleybop.io/kg-phenio/20220504/KG-OntoML.tar.gz

Aha, you caught this just before I fixed it ☺
These should all be fixed now, e.g. see https://kg-hub.berkeleybop.io/kg-phenio/20220504/

These still seem broken, can you confirm? For example, on this page, click on KG-OntoML.tar.gz

Looks correct on my end -

Try a cache refresh?

Thanks Harry - I think cloudfront was still serving me an old cached version. Works on my end now, thanks!

authors: caufieldjh justaddcoffee

repo: Knowledge-Graph-Hub/kg-phenio


text:
Not detecting tablet device on iPad.

Describe the bug
The iPad is detected as desktop.
To Reproduce
Steps to reproduce the behavior:

Go to any view using deviceDetector
Watch that library is not detectking iPad as mobile / tablet.

Expected behavior
Library is detecting iPad as mobile / tablet.
Smartphone (please complete the following information):

Device:  Ipad 7th Genetarion Wi-Fi 32GB
OS: iOS14.6
Browser: Safari

Hi @BigApeJohny , I have the same issue with version 2.1.1 and Angular 11. Why did you close this ticket? How did you resolve this problem?
Thanks!

I have the same problem.
I tested in browser using IPAD mode and works only in LANDSCAPE but in PORTRAIT doesn't work.
Why is closed?

authors: BigApeJohny SoyDiego venoby

repo: KoderLabs/ngx-device-detector

license: MIT


text:
Flashing

Coordinator firmware flashes no problem ( using smartRF flash programmer.) When flashing CoOrdinator get status message

Initiate access to target: COM3 using 2-pin cJTAG.
Reading file: D:/Router.hex.
Unknown record type: 3.
Reset target ...
Reset of target successful.

Duplicate of https://github.com/Koenkk/Z-Stack-firmware/issues/397

repo: Koenkk/Z-Stack-firmware


text:
Candlestick charting

The prior endpoint used for this via cryptowatch is no longer functioning as it once did, and the cost of credits vs the frequency of our requests is suboptimal. I'll scout alternatives an post them here for discussion.
It the private repo, Tony mentioned potentially using widgets - we did this in desktop app for basic charts, first TradingView, then Nomics (no longer active), now Livecoinwatch.

Livecoinwatch does not provide olhc data or widgets https://www.livecoinwatch.com/widgets
TradingView is well recognised and comes with data and nice features if it can be integrated https://www.tradingview.com/widget/advanced-chart/
This from Tradingview is also pretty cool - https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/ Free, open-source and feature-rich Tho it's byo data.
TradingView lightweight charts repo: https://github.com/tradingview/lightweight-charts
TradingView lightweight charts docs: https://tradingview.github.io/lightweight-charts/

IMO if https://www.tradingview.com/widget/advanced-chart/ can be used it seems the best option (at least until I find something else better for the same price of zero).

afaik tradingview only supports specific pairs on specific exchanges, so they don't have eg a VRSC/KMD chart
and you need to define the exact exchange and pair like here: https://github.com/KomodoPlatform/atomicDEX-Desktop/blob/dev/atomic_defi_design/Dex/Constants/General.qml#L2362

@smk762 for mobile, it's not critical to have live rates, so it's acceptable for the data to be a bit stale, especially on less-used pairs.
What do you think about the following?
Use Coingecko's free plan (or minimal credits) with a new caching layer to take full advantage of the 10-30 requests per minute limit to eagerly cache as often as the limit allows eagerly. E.g. Prioritise 80% of the API requests to the top 50% most requested pairs. Then the remaining 20% of API requests would go to whichever pairs have the oldest data.

I've had a look at replacing the cryptowat candles api data with the kraken equivalent, but it is lacking many pairs and timeframes. The url we used for cryptowat was for binance markets (https://github.com/KomodoPlatform/CexPricesEndpoint/blob/master/cex_prices_endpoint/http/http_routes.go#L7) so I figured checking the source, and it looks like a better alternative.
The way their rate limits work is IP based tho, so if I create a proxy it will have less coverage before throttling than if the request is made client side. There is also a websocket stream which I think might be the best option (client side)
rest: https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
ws: https://binance-docs.github.io/apidocs/spot/en/#trade-streams
Once we add Binance API ids for coins and pairs to https://github.com/KomodoPlatform/coins/tree/master/api_ids this would allow faster streamed data with more coverage than before.

authors: CharlVS cipig smk762

repo: KomodoPlatform/komodo-wallet-mobile


text:
docs(request-validator) Add docs for JSON Schema Draft 4 validation

This brings the documentation of the Request Validator plugin in line with its current implementation.
Most importantly, it removes the notice that it does not support JSON Schema validation - it does now. This is an important capability.
Some minor cleanup as well.

Direct review link:
https://deploy-preview-2093--kongdocs.netlify.app/hub/kong-inc/request-validator/

Committed suggestions and merged per Gayle.

authors: cwurm tlblessing


text:
[DOCU-1388] Konnect runtimes rework

Review
@rossmcdonald @skibum @jackkav
Summary
Reworking the docs for the Konnect runtime manager.

Splitting one long config page into three: docker, kubernetes, and kong.conf (other).
Validated Docker install, found a bunch of issues, got it working.
Pulled in various feedback on Helm install:

Removed link to sample values.yaml, as it wasn't appropriate for Konnect. Directing users to write a config file from scratch; maybe we can add a sample Konnect-specific data plane config file in the future?
Cleanup for consistency:

yaml vs yml - went with yaml, since that's what we normally use. Doesn't actually matter as long as its consistent, which it wasn't.
added missing -n kong to secrets
changed secret paths to <path-to-file> instead of /tmp/ so that users know it needs to be set
sample values.yaml now pulls down the gateway enterprise image instead of OSS; version is a variable, so we don't need to manually update it.
Remove all options to update an existing system. Doc now assumes that you're starting from scratch, for simplicity.

To-do: figure out how to find the proxy URL on kubernetes post-install, and how to set a custom one. @rossmcdonald
Reason
Helm setup was confusing and also not entirely accurate.
Along the way, realized that the Docker setup was also not fully accurate, so updated that as well.
Doc ticket: https://konghq.atlassian.net/browse/DOCU-1388
Covering issues logged in https://github.com/Kong/docs.konghq.com/issues/2728 and https://github.com/Kong/docs.konghq.com/pull/2742.
Testing
Overview page with tiles
Set up a gateway runtime on Docker
Set up a gateway runtime on Kubernetes
Set up a gateway runtime with kong.conf

Hey nice work so far! I also noticed this copy is a little misleading Important: Do not navigate away from this page while saving the certificate and key files. They are unique and won't display again.
It's my understanding that certs can be regenerated if lost, 'won't display again' seems too strong. Not blocking feedback.

Hey nice work so far! I also noticed this copy is a little misleading Important: Do not navigate away from this page while saving the certificate and key files. They are unique and won't display again.
It's my understanding that certs can be regenerated if lost, 'won't display again' seems too strong. Not blocking feedback.

Hmm. Yeah, the exact same certs won't display again, but you can just regenerate them. I can adjust the phrasing here to not be quite as strong/scary, and maybe instead focus on the fact that they need to stay here to grab the config parameters anyway.

Reviewers: could someone to validate out how to set up the proxy? I'm looking at https://github.com/Kong/charts/blob/39b83558c8e8efc40d48db808647b313a2a3f57f/charts/kong/example-values/full-k4k8s-with-kong-enterprise.yaml#L47 - looks like you need to add another section to the config file that I'm missing?

Since changing the doc from kong OSS 2.3 to kong-ee 2.3.2.0 I'm also seeing the dataplanes list is being updated with a new instance, but the containers keep restarting complaining about the missing license json

Since changing the doc from kong OSS 2.3 to kong-ee 2.3.2.0 I'm also seeing the dataplanes list is being updated with a new instance, but the containers keep restarting complaining about the missing license json, I tried adding the license key but no joy. Couldn't get it working.

Maybe this portion is missing: https://github.com/Kong/charts/blob/39b83558c8e8efc40d48db808647b313a2a3f57f/charts/kong/values.yaml#L592
The only thing here is that for hybrid mode, the control plane is supposed to populate the license, right?
I'm not actually sure how that's supposed to work for enterprise images. Here's what I know:

For enterprise free mode, you can run without a license by using a dummy license secret: https://docs.konghq.com/enterprise/2.3.x/deployment/installation/kong-on-kubernetes/#license
For enterprise with a license, you populate the secret with a real license
For hybrid mode - we have no doc here, and I can't find anything about it in the Kong/charts repo. For Konnect, afaik the control plane is supposed to populate the data plane with a license automatically, and that seems to work with Docker. For Konnect, it's basically hybrid mode + enterprise gateway, and that's a use case the examples don't cover at all...

@lena-larionova yes, in Konnect the cloud control plane provides the license to all the connected GW runtimes (data planes). @jackkav if you are seeing licensing errors then it may be an issue with your control plane not having a license. We can investigate.

@Kong/team-k8s

authors: jackkav lena-larionova skibum


text:
Importing OpenAPI without type causes requestBody to be null

Describe the bug
If type is not specified as part of the requestBody schema it will be null when importing an OpenAPI yaml-file.
To Reproduce
This file reproduces the bug:
openapi: 3.0.1
info:
  title: My API
  version: '1.0'
paths:
  /pet1:
    post:
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                petId:
                  type: string
  /pet2:
    post:
      requestBody:
        content:
          application/json:
            schema:
              properties:
                petId:
                  type: string

pet1 will be imported correctly, but not pet2, see images below.
Expected behavior
Both pet1 and pet2 should have a JSON structure in the requestBody after import.
Screenshots

Desktop (please complete the following information):

OS: Windows 10.0.19042
Installation Method: Installer
App Version 2020.5.2

Additional context
I tried checking the OpenAPI specification in order to make sure if this was a required parameter or not. My interpretation is that type is optional something since it is not marked with REQUIRED, in the specification, https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#schema-object
I will admit that I am not absolutely sure on this, but all other parsers that I tried this in works as expected.

This problem still exists on the latest version, tested with
Version: Insomnia 2021.3.0
Release date: 4/28/2021
OS: Windows_NT x64 10.0.19042
Electron: 9.3.5
Node: 12.14.1
V8: 8.3.110.13-electron.0
Architecture: x64
node-libcurl: libcurl/7.73.0-DEV OpenSSL/1.1.1g zlib/1.2.11 brotli/1.0.9 WinIDN libssh2/1.9.0_DEV nghttp2/1.41.0

repo: Kong/insomnia


text:
feat/basic auth hybrid mode (take 2)

Alternative name for this PR: feat/declarative config _transform.
This change fixes #5649 (basic-auth credentials not working on hybrid mode).
It is an alternative to #5792 where the proposed fix involves adding a new pseudo-field called encrypted_password to the entities.
The main drawback of that approach is that it requires manually changing all the entities which have transformations. Moreover, the change seems to be nearly identical in all cases: making a pseudo-field which in effect deactivates the transformation.
On this take, we add a new parameter to the declarative config file itself. The field is called _transform. When this field is present and set to false, the transformations are not executed when exporting. If the field is not present, or if it is, but it's set to true, the transformations are executed (which is the current behavior).
This approach does not require individual changes to any entities - a single flag in the top-level yaml is enough.
However, since this flag is new, the yaml version needed to be bumped up.
Also, this approach assumes that on export, we never want to do transformations (_transform is false on all exports). If we ever encounter a situation in which we do want to have transformations even after a straight db export, we will need to find a different way.

How hard is it to expose this feature to the Admin API as well?
decK currently sync passwords back to Kong after a reset because there is no way to skip the 'hashing' part in the Admin API.
Is adding a query string parameter to skip hashing when the password is already hashed a good idea and something we should add?
cc @hishamhm

@hbagdi Some parts of this PR will make it easier to implement something similar (a special kong header?) on the Admin API. In particular, the DAO functions now accept a options.transform setting which can be used. I think it would't be very difficult to add such a flag (that falls out of the scope of this particular PR).
As a side note: my previous take on this problem (#5792) did in fact work on both the Admin API and declarative config. However a single "global switch" was preferred.

Got it. Added https://github.com/Kong/kong/issues/5925 to track it.
Thanks @kikito !

How hard is it to expose this feature to the Admin API as well?

@hbagdi According to this Pr, the boolean whether transformations are triggered or not is an attribute the declarative config input itself, so by definition it is already supported by the Admin API. You just need to pass _transform as false when sending in the data to /config the same way you already pass _format_version.
Or am I missing something? @kikito ?

@hbagdi According to this PR, the boolean whether transformations are triggered or not is an attribute the declarative config input itself, so by definition it is already supported by the Admin API. You just need to pass _transform as false when sending in the data to /config the same way you already pass _format_version.

I should have been clearer. By Admin API, I meant via the /consumers/:username/basic-auth  endpoint.
The problem that we need to solve is that users use decK to export the configuration but can't import basic-auth credentials back. That results in Kong re-hashing them. If there is a way to avoid re-hashing, that solves that problem.
decK currently emits a warning when someone tries to "sync" the passwords but it still trips users because this is the only field that has this behavior in all of Kong and Kong Enterprise.

authors: hbagdi hishamhm kikito

repo: Kong/kong


text:
fix cassandra multi-dc timed out when run migrations bootstrap

Summary
Following the issue #7451, this fix ensures CREATE TABLE propagated through in the C* cluster eventually before INSERT

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@mikefero @locao Can you review it? ^^

Hello @mrpk1906,
Thanks for the contribution. I did followed your exchange with @mikefero in #7451 as well but this fix does raises the following concerns for me:

The fact that INSERT was moved to teardown still doesn't guarantee that the CREATE was actually fully propagated before executing INSERT. It is more about adding a random delay after CREATE, but I think the actual race condition is still there, just less often.
Moving the cluster_id generation to the teardown phase doesn't seems to be the right approach. Suppose the user started the blue/green deployment and upgraded part of the cluster to a newer version, those Kong instances are going to be looking for it's cluster_id but wouldn't be able to find. Since the user can theoretically run in this state (without teardown being executed) for a long time, this doesn't seems to be the expected behavior either. Usually in teardown we only do things that would break older versions of Kong, generating the cluster_id certainly doesn't fall under that category.

Not an C* expert here, but does anyone know if there is any way we can wait for C* schema change to reach an agreement before executing the INSERT inside the up portion of the migration?

It is more about adding a random delay after CREATE, but I think the actual race condition is still there, just less often.

Completely agree with you here; Apache Cassandra is eventually consistent and each query can use a different set of nodes based on the coordinator chosen during query execution. It is very hard to have guarantees.

Not an C* expert here, but does anyone know if there is any way we can wait for C* schema change to reach an agreement before executing the INSERT inside the up portion of the migration?

The Lua Cassandra driver should be handling the schema agreement during query execution, but I think we might want to change the migration consistency ALL => LOCAL_ONE; see migrations options here. This of course has its own drawbacks as the data may not get fully replicated around the cluster and when executing kong start and the admin API is used some tables may not be available in the Cassandra cluster causing runtime errors.
Another (slightly better) option might be to use the value defined in cassandra_write_consistency and cassandra_read_consistency during the migrations instead of relying on the overloaded ALL in the helper class. This would put the onus on Kong Gateway OSS configuration instead of trying to infer a users Cassandra cluster configuration.
Besides those, to answer your real question, we could move to up_f and use the exposed wait_schema_consensus and check_schema_consensus from the Lua Cassandra driver and create a wrapper method to handle the logic.
Note: If a issue exists in the driver related to schema agreement (which I am pretty sure it does not) we should fix the issue in the driver for the reasons @dndx mentioned in the comments above.

@mikefero

use the exposed wait_schema_consensus and check_schema_consensus from the Lua Cassandra driver and create a wrapper method to handle the logic.

This definitely sounds like the much better approach, and if done correctly should basically prevent this kind of problems from ever occurring again.

authors: CLAassistant dndx mikefero mrpk1906


text:
Fix(Readme.md) some grammatical mistakes and simplified it .

I have fixed some grammatical errors and simplified some sentences which improves the understanding experience of the reader.

Summary
SUMMARY_GOES_HERE
Full changelog

[Implement ...]
[Add related tests]
...

Issues resolved
Fix #XXX

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: Adarshjaiss CLAassistant


text:
fix(*): metalab fixes

Summary
General fixes for Helium
Changes made:

Update disabled styles for KButton - DUX-630 outcome
Icon should take KButton color for btn-link type and when disabled
Fix issues with disabled buttons in Safari - DUX-629
Remove bottom border of last row in KTable - KHCP-2982
Set a max-height on KPrompt (themable) - KHCP-3040

Vue 3 Upgrade
If your PR contains code that needs to be ported to the next branch, please add the port to next branch label to your PR.

If you have questions, tag @adamdehaven or @kaiarrowood.

PR Checklist

[x] Does not introduce dependencies
[x] Functional: all changes do not break existing APIs and if so, bump major version.
[x] Tests pass: check the output of yarn test packages/
[x] Naming: the files and the method and prop variables use the same naming conventions as other Kongponents
[x] Framework style: abides by the essential rules in Vue's style guide
[x] Cleanliness: does not have formatting issues, unused code (e.g., console.logs), or leftover comments
[x] Docs: includes a technically accurate README, uses JSDOC where appropriate

disabled state in Safari looks good

authors: adamdehaven kaiarrowood

repo: Kong/kongponents


text:
Unable to change Port and expose it on hostPort

Summary
Trying to setup Kong as DaemonSet and publish changed ports with hostPort on every worker.
Kong Ingress controller version
1.1
Kong or Kong Enterprise version
2.2
Kubernetes version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:28:09Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:15:20Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Environment

On-premise :
Ubuntu 20.04:
5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

What happened
Try to convert kong dbless all in one manifest from deployment to daemonset and publish changed proxy ports through hostPort. Pods stuck in CrashLoopBackOff state
Expected behavior
Running pods
Steps To Reproduce
Here is changed parts of manifest file;
---
apiVersion: v1
kind: Service
metadata:
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
    service.beta.kubernetes.io/aws-load-balancer-type: nlb
  name: kong-proxy
  namespace: kong
spec:
  ports:
  - name: proxy
    port: 80
    protocol: TCP
    targetPort: 80
  - name: proxy-ssl
    port: 443
    protocol: TCP
    targetPort: 443
  selector:
    app: ingress-kong
  type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
  name: kong-validation-webhook
  namespace: kong
spec:
  ports:
  - name: webhook
    port: 443
    protocol: TCP
    targetPort: 8080
  selector:
    app: ingress-kong
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
  labels:
    app: ingress-kong
  name: ingress-kong
  namespace: kong
spec:
  selector:
    matchLabels:
      app: ingress-kong
  template:
    metadata:
      annotations:
        kuma.io/gateway: enabled
        prometheus.io/port: "8100"
        prometheus.io/scrape: "true"
        traffic.sidecar.istio.io/includeInboundPorts: ""
      labels:
        app: ingress-kong
    spec:
      containers:
      - env:
        - name: KONG_PROXY_LISTEN
          value: 0.0.0.0:80, 0.0.0.0:443 ssl http2
        - name: KONG_ADMIN_LISTEN
          value: 127.0.0.1:8444 ssl
        - name: KONG_STATUS_LISTEN
          value: 0.0.0.0:8100
        - name: KONG_DATABASE
          value: "off"
        - name: KONG_NGINX_WORKER_PROCESSES
          value: "2"
        - name: KONG_ADMIN_ACCESS_LOG
          value: /dev/stdout
        - name: KONG_ADMIN_ERROR_LOG
          value: /dev/stderr
        - name: KONG_PROXY_ERROR_LOG
          value: /dev/stderr
        image: kong:2.2
        lifecycle:
          preStop:
            exec:
              command:
              - /bin/sh
              - -c
              - kong quit
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /status
            port: 8100
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: proxy
        ports:
        - containerPort: 80
          hostPort: 80
          name: proxy
          protocol: TCP
        - containerPort: 443
          hostPort: 443
          name: proxy-ssl
          protocol: TCP
        - containerPort: 8100
          name: metrics
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /status
            port: 8100
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
      - env:
        - name: CONTROLLER_KONG_ADMIN_URL
          value: https://127.0.0.1:8444
        - name: CONTROLLER_KONG_ADMIN_TLS_SKIP_VERIFY
          value: "true"
        - name: CONTROLLER_PUBLISH_SERVICE
          value: kong/kong-proxy
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        image: kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller:1.1
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthz
            port: 10254
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: ingress-controller
        ports:
        - containerPort: 8080
          name: webhook
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthz
            port: 10254
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
      serviceAccountName: kong-serviceaccount

When I applied manifest, ingress-controller containers crashed with error below;
time="2021-02-24T13:40:10Z" level=info msg="retry 1 to fetch metadata from kong: making HTTP request: Get \"https://127.0.0.1:8444/\": dial tcp 127.0.0.1:8444: connect: connection refused"

Just converting manifest to daemonset and publishing 8000, 8443  ports with hostPort works fine.

What do your Kong proxy container logs show?
Best guess is that it's not able to bind to the privileged ports 80 and 443, which prevents it from starting at all and binding to the admin port either.
You likely need to add a PodSecurityPolicy with a HostPortRange that allows them, and may need to configure other settings at the cluster level to allow this.

authors: Seljuke rainest

repo: Kong/kubernetes-ingress-controller


text:
chore(ci): update test_nightly.yaml GH workflow

What this PR does / why we need it:
Running KIC integration tests on demand with the latest version of Kong Gateway is useful, thus updating the respective workflow.

currently nightly builds can be found in the registry kong-gateway-dev, so let's use it
PR https://github.com/Kong/kubernetes-ingress-controller/pull/4389 introduces running tests for enterprise dbless, so let's run them
add a comment to PR that tests were triggered and remove label ci/run-nightly from PR

Which issue this PR fixes:
It unblocks PRs that have to be tested with newer Gateway images than the last stable version e.g. https://github.com/Kong/docs.konghq.com/pull/5865

Special notes for your reviewer:
Probably we should have a broader discussion about our workflows and their names. This PR doesn't deduplicate code (it can be improved in the same way as other workflows. Food for thought - maybe introduce support for a more complicated label or comment that will allow specifying a custom tag instead of always using the latest.
Enterprise suites are run with enterprise image and default one with OSS image. This distinction has been made because EE Gateway EE will be detected no matter the license and skipping tests with an invalid/missing license (works like OSS, but still presents EE version) is risky, because it may lead to overlook of e.g. expired license.  See what happened when only EE image was used

Unfortunately, it doesn't evaluate, see this, furthermore I need to juggle more with images, see updated PR description @pmalek

Unfortunately, it doesn't evaluate, see this, furthermore I need to juggle more with images, see updated PR description @pmalek

Got it. It might be that defining the defaults for inputs doesn't make sense to use them in a different event (i.e. not workflow_dispatch where we define them in).
🤷 Sad. Let's stick to using those verbatim as it was.


text:
Postgres 11 compile fails

Postgres 11 is now out of beta, but multicorn gets errors when trying to compile against it:
ubuntu@warehouse-postgres-master-test:~$ sudo pgxn install multicorn
INFO: best version: multicorn 1.3.5
INFO: saving /tmp/tmpcl0DYm/multicorn-1.3.5.zip
INFO: unpacking: /tmp/tmpcl0DYm/multicorn-1.3.5.zip
INFO: building extension
Python version is 2.7
[ -d sql ] || mkdir sql
[ -d src ] || mkdir src
touch directories.stamp
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -pie -fno-omit-frame-pointer -fPIC -I. -I./ -I/usr/include/python2.7 -I. -I./ -I/usr/include/postgresql/11/server -I/usr/include/postgresql/internal -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/mit-krb5  -c -o src/errors.o src/errors.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -pie -fno-omit-frame-pointer -fPIC -I. -I./ -I/usr/include/python2.7 -I. -I./ -I/usr/include/postgresql/11/server -I/usr/include/postgresql/internal -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/mit-krb5  -c -o src/python.o src/python.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -pie -fno-omit-frame-pointer -fPIC -I. -I./ -I/usr/include/python2.7 -I. -I./ -I/usr/include/postgresql/11/server -I/usr/include/postgresql/internal -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/mit-krb5  -c -o src/query.o src/query.c
src/query.c: In function ‘colnameFromVar’:
src/query.c:434:21: error: too few arguments to function ‘get_attname’
  char    *attname = get_attname(rte->relid, var->varattno);
                     ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c: In function ‘deparse_sortgroup’:
src/query.c:726:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:726:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:726:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:726:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:726:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:726:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:726:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:741:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:741:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:741:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:741:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:741:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:741:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
In file included from /usr/include/string.h:630:0,
                 from /usr/include/python2.7/Python.h:38,
                 from src/multicorn.h:1,
                 from src/query.c:1:
src/query.c:741:33: error: too few arguments to function ‘get_attname’
     md->attname = (Name) strdup(get_attname(foreigntableid, var->varattno));
                                 ^
In file included from src/query.c:10:0:
/usr/include/postgresql/11/server/utils/lsyscache.h:86:14: note: declared here
 extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok);
              ^
<builtin>: recipe for target 'src/query.o' failed
make: *** [src/query.o] Error 1
ERROR: command returned 2: make PG_CONFIG=/usr/bin/pg_config all

@gworley3: See #210 and #214.

So, where are we on this? Some people are asking for this extension  on 11 and 12.

authors: ChristophBerg devrimgunduz gworley3

repo: Kozea/Multicorn

license: PostgreSQL


text:
Revamped inventories conversion

The dark inventory is no longer attached to the ball of junk, it's now a variable.
The light inventory is no longer a storage in the dark inventory, it's now a variable.

There's a conflict. Other than that, I'll let @SylviBlossom review this.

fixed that @MrOinky and fixed the conflict.

There's conflicts, and also will this break old save files?

There's conflicts, and also will this break old save files?

It doesn't say that it has a conflict to me.

The conflict you can't see is likely happening because you fixed the original conflicts via a merge commit instead of a rebase, you can fix it by rebasing on the latest commit of upstream/main instead (this will cause the merge commit to disappear, you will probably need to fix the conflict again as part of the rebase)

There's conflicts, and also will this break old save files?

It doesn't say that it has a conflict to me.

The conflict you can't see is likely happening because you fixed the original conflicts via a merge commit instead of a rebase, you can fix it by rebasing on the latest commit of upstream/main instead (this will cause the merge commit to disappear, you will probably need to fix the conflict again as part of the rebase)

like this?

authors: FireRainV MrOinky NyakoFox

repo: KristalTeam/Kristal


text:
merge from arlac77/template-github,arlac77/template-kronos-module

package.json

chore(package): add >=14.0.0 remove >=13.13.0 (engines.node)

.travis.yml

chore(travis): (jobs.include)
chore(travis): remove 13.13.0 (jobs.include.node_js)

:tada: This PR is included in version 2.1.7 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


text:
Restructure the project.

We'll need to update the makefile, so that we install all our files to an asmbf directory inside /bin.
A few advantages of this:

No longer polluting the bare PATH and bin folder.
Ability to create include/ and possibly lib/ (sub)folder.

Resolved by the pull requests above.

repo: KrzysztofSzewczyk/asmbf


text:
Pilots inconsistently spaced/overflowing (feature/persons-register)

Characters I import seem to have both their bond and gear listed, which squishes everything unevenly and causes a lot of it to overflow to the next row. Looking at the previews from the pulls, they either have only bonds or gear listed, which is why it doesn't happen there.

Was asked to attach a pilot. Perhaps it's because I don't have any burdens but I do have a bond?
TIMECALLER.zip

repo: Kuenaimaku/lancer-briefings


text:
DSA problems for beginners in C++

I want to add some DSA problems for beginners in C++
Please assign me this issue

This repository holds algorithms and not DSA problems

authors: Kumar-laxmi joyjeetcoding

repo: Kumar-laxmi/Algorithms


text:
Johnson's Algorithm

Describe the solution you'd like
Here is the step-by-step solution approach of Johnson's algorithm:
Add an extra vertex, called the "source vertex," to the given graph. Connect the source vertex to all other vertices with zero-weight edges.
Run the Bellman-Ford algorithm starting from the source vertex to find the shortest path distances from the source to all other vertices. If a negative-weight cycle is detected during this step, the algorithm terminates as the problem is infeasible.
Re-assign the edge weights of the original graph by using the computed shortest path distances. The new weight of an edge (u, v) is calculated as the sum of the old weight of (u, v) and the shortest path distance from the source to u minus the shortest path distance from the source to v.
Remove the extra source vertex added in step 1 and restore the original edge weights.
For each vertex in the graph, run Dijkstra's algorithm starting from that vertex to find the shortest path distances to all other vertices.
Finally, the shortest path distances between all pairs of vertices can be obtained by combining the distances computed in step 2 and step 5.
It's important to note that Johnson's algorithm has a time complexity of O(V^2 * log V + VE), where V is the number of vertices and E is the number of edges in the graph. The Bellman-Ford algorithm is used to compute the shortest path distances in step 2, and Dijkstra's algorithm is used in step 5.
By using Johnson's algorithm, you can efficiently find the shortest paths between all pairs of vertices, even in graphs with negative edge weights, making it a useful tool in various applications, such as network routing and graph analysis.

Please assign me this @Kumar-laxmi !!

refer #758


text:
Terms and Conditions content

Complete all the content and styling for page

Got it! May need to add some stuff as we go but its pretty good. Needs format


text:
POST/PUT response handling expects full object is returned in repsonse

Again, this is specific to Django Rest Framework's defaults. API's may only return the object ID on successful create or update. We need to handle that case.

On similar note my list API returns custom object containing multiple lists. Right now there's no way to accept such response. Is it intentional?

It's intentional in the sense that I only did enough to get things working with my backend. Adding setCSRF (now SetHeader!) was a start at generalising things.
Do you have an example of returning multiple lists? We could allow further customisation if there's a good use case.

There's a home screen where I return multiple type of cards(data). E.g. Region, City, Hotel, Staff Picks, etc. The response is something like
{ "regions": [{},{},{}], "cities": [{},{}], "hotels": [{},{}] }

I think, strictly speaking, that isn't quite RESTful but, for pragmatic reasons, most APIs aren't. I could imagine something like:
const API = {
    '/api/': {
         "regions": types.List(...)
         "cities": types.List(...)
    }
};

but that's not really RESTful and outside the scope of this library I think. The best thing is probably to make sure you can easily use redux-rest, for 'regular' endpoints, along side your own code for special cases.

I totally understand that. But on mobile devices for India like demographics we try to minimize number of API calls.

Yes, I understand that (hence my pragmatism point). It's also why
Relay/GraphQL is the probably the way forward! It's something I (we) can
thing about. Did my pseudo-code make sense? Something like that might work.
It would add a layer of complexity but maybe not too much.
On 3 March 2016 at 09:21, Bhoomit notifications@github.com wrote:

I totally understand that. But on mobile devices for India like
demographics we try to minimize number of API calls.
—
Reply to this email directly or view it on GitHub
https://github.com/Kvoti/redux-rest/issues/3#issuecomment-191672318.

Yes, It does makes sense. I didn't know about Relay/GraphQL. So went ahead and read about it. And yes it does seem like the way forward. Unfortunately, right now its hard for us to move to that as there are apps which are already using the APIs. Anyway thanks for the tip.

No problem. I think REST APIs will be around for a while which is why I
started redux-rest. I'm open to exploring aggregate endpoints like your
example. As you say, it must be pretty common for low-bandwidth areas.
On 3 March 2016 at 13:44, Bhoomit notifications@github.com wrote:

Yes, It does makes sense. I didn't know about Relay/GraphQL. So went ahead
and read about it. And yes it does seem like the way forward.
Unfortunately, right now its hard for us to move to that as there are apps
which are already using the APIs. Anyway thanks for the tip.
—
Reply to this email directly or view it on GitHub
https://github.com/Kvoti/redux-rest/issues/3#issuecomment-191764988.

For now what I did in my fork is this:
In ItemReducer

} else if (action.type === this.actionTypes.list_success) {
      if (Array.isArray(action.payload)){
        return [...action.payload];
      }
      return action.payload;
}

Ok, that's fine for retrieving items. I guess creating, updating items
doesn't work?
On 3 March 2016 at 14:15, Bhoomit notifications@github.com wrote:

For now what I did in my fork is this:
In ItemReducer
} else if (action.type === this.actionTypes.list_success) {
if (Array.isArray(action.payload)){
return [...action.payload];
}
return action.payload;
}
—
Reply to this email directly or view it on GitHub
https://github.com/Kvoti/redux-rest/issues/3#issuecomment-191780031.

This was just a quick fix. I didn't test it with other operations. Will check when I get there. Once I'm sure about it, I will send a PR.

Great, thanks.
On 5 March 2016 at 16:28, Bhoomit notifications@github.com wrote:

This was just a quick fix. I didn't test it with other operations. Will
check when I get there. Once I'm sure about it, I will send a PR.
—
Reply to this email directly or view it on GitHub
https://github.com/Kvoti/redux-rest/issues/3#issuecomment-192681278.

authors: bhoomit mallison

repo: Kvoti/redux-rest


text:
Converter module

For converting stuffs.
Like:
~convert m>inch 10
~convert eur>usd 100
~convert faren>celsi 76
Libs:
+ http://www.codeproject.com/Articles/23087/Measurement-Unit-Conversion-Library
? http://www.codeproject.com/Articles/787029/UnitConversionLib-Smart-Unit-Conversion-Library-in
- https://github.com/objorke/QuantityTypes <-  ? and a list in it
- https://physicalmeasure.codeplex.com/ (it's intresting but not in our case)
? http://nugetmusthaves.com/Tag/measurement (huge list, need a deeper look)

+ where I read the api and it's seems good
? where I didn't read the api
- where I read the api but its not fit in our cases

Pffff, looks epic

PR added closeable.

Phyxsius - Yesterday at 12:59 PM
It would be nice that ~convert could convert timezones to, that would be very helpful.

This is much harder than I thought. If sb want to implement this some resource:
http://stackoverflow.com/a/15171527/2118749 <- this code is a good starting point, but instead of the json deserialization you can use this
The next problem will be this: http://stackoverflow.com/questions/5996320/net-timezoneinfo-from-olson-time-zone
And if you want to write it you will need to cache the city/country - timezone information.
Because this is more work then the whole converter functionality was I pass it :)

Since i saw how much complexity there is for time zone conversion, and having in mind almost nobody will use it, i have no interest in nadeko having this feature anymore.

repo: Kwoth/NadekoBot


text:
R Date type not handled

Looks like R Date type is not recognised?
h <- open_connection('localhost', 5000)
execute(h,'{`tmp set x}',data.frame(a=c(1,2,3),b=c("a","b","b"))) # works as expected
execute(h,'{`tmp set x}',data.frame(a=c(1,2,3),b=Sys.Date()+0:2)) # fails

Hi @grantirv,
Apologies it's take time to get around to this. I'm currently looking into this issue now and hope to have a fix in place in the next week or two.
All the best,
Conor

repo: KxSystems/rkdb


text:
Core in PlainByteArrayDecoder::DecodeCHDense

You have to provide the following information whenever possible.

Describe what's wrong
We meet a core in PlainByteArrayDecoder::DecodeCHDense caused by a simple sql that reads a string column from a parquet file.
core stack is as following
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007fc6e86f0859 in __GI_abort () at abort.c:79
#2  0x00007fc6e875b26e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fc6e8885298 "%s\n")
    at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007fc6e87632fc in malloc_printerr (str=str@entry=0x7fc6e88835bb "realloc(): invalid next size")
    at malloc.c:5347
#4  0x00007fc6e8766fac in _int_realloc (av=av@entry=0x7fc3ec000020, oldp=oldp@entry=0x7fc3ec7df380,
    oldsize=oldsize@entry=1048592, nb=2097168) at malloc.c:4564
#5  0x00007fc6e8769156 in __GI___libc_realloc (oldmem=0x7fc3ec7df390, bytes=2097152) at malloc.c:3235
#6  0x00007fc4976579d2 in Allocator<false, false>::realloc (this=0x7fc3ec47f0e8, buf=0x7fc3ec7df390, old_size=1048576,
    new_size=2097152, alignment=0) at ../src/Common/Allocator.h:134
#7  0x00007fc494dc601a in DB::PODArrayBase<1ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::realloc<>(unsigned long)
    (this=0x7fc3ec47f0e8, bytes=2097152) at ../src/Common/PODArray.h:171
#8  0x00007fc4979732a4 in DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul>::emplace_back<char> (
    this=0x7fc3ec47f0e8, args=<optimized out>) at ../src/Common/PODArray.h:453
#9  ch_parquet::(anonymous namespace)::PlainByteArrayDecoder::DecodeCHDense (num_values=<optimized out>,
    column_chars_t_p=0x7fc3ec47f0e8, column_offsets_p=<optimized out>, bitmap_writer=..., this=<optimized out>,
    null_count=<optimized out>, valid_bits=<optimized out>, valid_bits_offset=<optimized out>,
    out_values_decoded=<optimized out>) at ../utils/local-engine/Storages/ch_parquet/arrow/encoding.cc:1427
#10 ch_parquet::(anonymous namespace)::PlainByteArrayDecoder::DecodeCH (this=0x7fc3ec484750,
    num_values=<optimized out>, null_count=<optimized out>, valid_bits=<optimized out>,
    valid_bits_offset=<optimized out>, column_chars_t_p=<optimized out>, column_offsets_p=0x7fc3ec47f0d0,
    bitmap_writer=...) at ../utils/local-engine/Storages/ch_parquet/arrow/encoding.cc:1371
#11 0x00007fc49793c771 in ch_parquet::internal::(anonymous namespace)::CHByteArrayChunkedRecordReader::ReadValuesSpaced
    (this=0x7fc3ec47d348, values_to_read=3600, null_count=0)
    at ../utils/local-engine/Storages/ch_parquet/arrow/column_reader.cc:1810
#12 0x00007fc49793af1a in ch_parquet::internal::(anonymous namespace)::TypedRecordReader<parquet::PhysicalType<(parquet::Type::type)6> >::ReadRecordData (this=this@entry=0x7fc3ec47d348, num_records=<optimized out>, num_records@entry=4592)
    at ../utils/local-engine/Storages/ch_parquet/arrow/column_reader.cc:1558
#13 0x00007fc497939662 in ch_parquet::internal::(anonymous namespace)::TypedRecordReader<parquet::PhysicalType<(parquet::Type::type)6> >::ReadRecords (this=0x7fc3ec47d348, num_records=8192)
    at ../utils/local-engine/Storages/ch_parquet/arrow/column_reader.cc:1313
#14 0x00007fc4979168a8 in ch_parquet::arrow::(anonymous namespace)::LeafReader::LoadBatch (this=0x7fc3ec47e710,
    records_to_read=8192) at ../utils/local-engine/Storages/ch_parquet/arrow/reader.cc:477
#15 0x00007fc497921a43 in ch_parquet::arrow::ColumnReaderImpl::NextBatch (this=0x7fc4150f56a0, batch_size=0,
    out=0x7fc6e871100b <__GI_raise+203>) at ../utils/local-engine/Storages/ch_parquet/arrow/reader.cc:118
#16 0x00007fc49791b777 in ch_parquet::arrow::(anonymous namespace)::FileReaderImpl::GetRecordBatchReader(std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::unique_ptr<arrow::RecordBatchReader, std::__1::default_delete<arrow::RecordBatchReader> >*)::$_0::operator()()::{lambda(int)#1}::operator()(int) const (i=0, this=<optimized out>) at ../utils/local-engine/Storages/ch_parquet/arrow/reader.cc:1021
#17 arrow::internal::OptionalParallelFor<ch_parquet::arrow::(anonymous namespace)::FileReaderImpl::GetRecordBatchReader(std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::unique_ptr<arrow::RecordBatchReader, std::__1::default_delete<arrow::RecordBatchReader> >*)::$_0::operator()()::{lambda(int)#1}>(bool, int, ch_parquet::arrow::(anonymous namespace)::FileReaderImpl::GetRecordBatchReader(std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::unique_ptr<arrow::RecordBatchReader, std::__1::default_delete<arrow::RecordBatchReader> >*)::$_0::operator()()::{lambda(int)#1}&&, arrow::internal::Executor*) (num_tasks=1, executor=0x7fc3ec47dc80, use_threads=<optimized out>, func=...)
    at ../contrib/arrow/cpp/src/arrow/util/parallel.h:75
#18 ch_parquet::arrow::(anonymous namespace)::FileReaderImpl::GetRecordBatchReader(std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::unique_ptr<arrow::RecordBatchReader, std::__1::default_delete<arrow::RecordBatchReader> >*)::$_0::operator()() (this=0x7fc3ec47f240)
    at ../utils/local-engine/Storages/ch_parquet/arrow/reader.cc:1021
#19 arrow::FunctionIterator<ch_parquet::arrow::(anonymous namespace)::FileReaderImpl::GetRecordBatchReader(std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::unique_ptr<arrow::RecordBatchReader, std::__1::default_delete<arrow::RecordBatchReader> >*)::$_0, arrow::Iterator<std::__1::shared_ptr<arrow::RecordBatch> > >::Next() (this=0x7fc3ec47f240) at ../contrib/arrow/cpp/src/arrow/util/iterator.h:346
#20 arrow::Iterator<arrow::Iterator<std::__1::shared_ptr<arrow::RecordBatch> > >::Next<arrow::FunctionIterator<ch_parquet::arrow::(anonymous namespace)::FileReaderImpl::GetRecordBatchReader(std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::unique_ptr<arrow::RecordBatchReader, std::__1::default_delete<arrow::RecordBatchReader> >*)::$_0, arrow::Iterator<std::__1::shared_ptr<arrow::RecordBatch> > > >(void*) (ptr=0x7fc3ec47f240) at ../contrib/arrow/cpp/src/arrow/util/iterator.h:200
#21 0x00007fc497926b6f in arrow::Iterator<arrow::Iterator<std::__1::shared_ptr<arrow::RecordBatch> > >::Next (
    this=0x7fc3ec47d100) at ../contrib/arrow/cpp/src/arrow/util/iterator.h:110
#22 arrow::FlattenIterator<std::__1::shared_ptr<arrow::RecordBatch> >::Next (this=0x7fc3ec47d100)
    at ../contrib/arrow/cpp/src/arrow/util/iterator.h:530
#23 0x00007fc497926ae9 in arrow::Iterator<std::__1::shared_ptr<arrow::RecordBatch> >::Next<arrow::FlattenIterator<std::__1::shared_ptr<arrow::RecordBatch> > > (ptr=0x7fc4150f56a0) at ../contrib/arrow/cpp/src/arrow/util/iterator.h:200
#24 0x00007fc49791b0c1 in arrow::Iterator<std::__1::shared_ptr<arrow::RecordBatch> >::Next (this=0x8)
    at ../contrib/arrow/cpp/src/arrow/util/iterator.h:110
#25 ch_parquet::arrow::(anonymous namespace)::RowGroupRecordBatchReader::ReadNext (this=0x0, out=0x0)
    at ../utils/local-engine/Storages/ch_parquet/arrow/reader.cc:386
#26 0x00007fc494d7e3c2 in arrow::RecordBatchReader::Next (this=0x7fc4150f56a0)
    at ../contrib/arrow/cpp/src/arrow/record_batch.h:222
#27 0x00007fc494d7da2b in local_engine::ArrowParquetBlockInputFormat::generate (this=0x7fc3ec4757a8)
    at ../utils/local-engine/Storages/ArrowParquetBlockInputFormat.cpp:74
#28 0x00007fc49edfaff5 in DB::ISource::tryGenerate (this=0x7fc4150f56a0) at ../src/Processors/ISource.cpp:124
#29 0x00007fc49edfac85 in DB::ISource::work (this=0x7fc3ec4757a8) at ../src/Processors/ISource.cpp:94
--Type <RET> for more, q to quit, c to continue without paging--
#30 0x00007fc49ee11f20 in DB::executeJob (node=0x7fc3ec485970, read_progress_callback=0x7fc3ec4868b0)
    at ../src/Processors/Executors/ExecutionThreadContext.cpp:47
#31 DB::ExecutionThreadContext::executeTask (this=0x7fc3ec36eea0)
    at ../src/Processors/Executors/ExecutionThreadContext.cpp:92
#32 0x00007fc49ee086db in DB::PipelineExecutor::executeStepImpl (this=this@entry=0x7fc3ec36d4c8,
    thread_num=thread_num@entry=0, yield_flag=yield_flag@entry=0x7fc3ec373310)
    at ../src/Processors/Executors/PipelineExecutor.cpp:229
#33 0x00007fc49ee08229 in DB::PipelineExecutor::executeStep (this=0x7fc3ec36d4c8, yield_flag=0x7fc3ec373310)
    at ../src/Processors/Executors/PipelineExecutor.cpp:126
#34 0x00007fc49ee1594a in DB::PullingPipelineExecutor::pull (this=0x7fc3ec373310, chunk=...)
    at ../src/Processors/Executors/PullingPipelineExecutor.cpp:54
#35 0x00007fc497a00968 in local_engine::NormalFileReader::pull (this=0x7fc3ec36e4f0, chunk=...)
    at ../utils/local-engine/Storages/SubstraitSource/SubstraitFileSource.cpp:368
#36 0x00007fc4979fdf47 in local_engine::SubstraitFileSource::generate (this=0x7fc3ec35e6a8)
    at ../utils/local-engine/Storages/SubstraitSource/SubstraitFileSource.cpp:108
#37 0x00007fc49edfaff5 in DB::ISource::tryGenerate (this=0x7fc4150f56a0) at ../src/Processors/ISource.cpp:124
#38 0x00007fc49edfac85 in DB::ISource::work (this=0x7fc3ec35e6a8) at ../src/Processors/ISource.cpp:94
#39 0x00007fc49ee11f20 in DB::executeJob (node=0x7fc3ec36ba30, read_progress_callback=0x7fc3ec36a550)
    at ../src/Processors/Executors/ExecutionThreadContext.cpp:47
#40 DB::ExecutionThreadContext::executeTask (this=0x7fc3ec36e3b0)
    at ../src/Processors/Executors/ExecutionThreadContext.cpp:92
#41 0x00007fc49ee086db in DB::PipelineExecutor::executeStepImpl (this=this@entry=0x7fc3ec36b658,
    thread_num=thread_num@entry=0, yield_flag=yield_flag@entry=0x7fc3ec367530)
    at ../src/Processors/Executors/PipelineExecutor.cpp:229
#42 0x00007fc49ee08229 in DB::PipelineExecutor::executeStep (this=0x7fc3ec36b658, yield_flag=0x7fc3ec367530)
    at ../src/Processors/Executors/PipelineExecutor.cpp:126
#43 0x00007fc49ee1594a in DB::PullingPipelineExecutor::pull (this=0x7fc3ec367530, chunk=...)
    at ../src/Processors/Executors/PullingPipelineExecutor.cpp:54
#44 0x00007fc49ee15b30 in DB::PullingPipelineExecutor::pull (this=0x2, block=...)
    at ../src/Processors/Executors/PullingPipelineExecutor.cpp:65
#45 0x00007fc494d2ed10 in local_engine::LocalExecutor::hasNext (this=0x7fc3ec368b90)
    at ../utils/local-engine/Parser/SerializedPlanParser.cpp:2656
#46 0x00007fc4950f8c97 in Java_io_glutenproject_vectorized_BatchIterator_nativeHasNext (env=0x7fc538041a58,
    executor_address=0) at ../utils/local-engine/local_engine_jni.cpp:258
#47 0x00007fc6d1018427 in ?? ()
#48 0x00007fc4150f6ce8 in ?? ()
#49 0x00007fc6d1018187 in ?? ()
#50 0x00007fc6d1018142 in ?? ()
#51 0x00007fc4150f6ca8 in ?? ()
#52 0x00007fc544bece20 in ?? ()
#53 0x00007fc4150f6d18 in ?? ()
#54 0x00007fc3eb817520 in ?? ()
#55 0x0000000000000000 in ?? ()

Should we use the parquet reader in CH instead?

A clear and concise description of what works not as it is supposed to.

A link to reproducer in https://fiddle.clickhouse.com/.

Does it reproduce on recent release?
The list of releases
Enable crash reporting

If possible, change "enabled" to true in "send_crash_reports" section in config.xml:

<send_crash_reports>
        <!-- Changing <enabled> to true allows sending crash reports to -->
        <!-- the ClickHouse core developers team via Sentry https://sentry.io -->
        <enabled>false</enabled>

How to reproduce
I think this is related to specified test data set.
Expected behavior

A clear and concise description of what you expected to happen.

Error message and/or stacktrace

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

closed by https://github.com/Kyligence/ClickHouse/pull/393

repo: Kyligence/ClickHouse


text:
MiniMessage: Fail silently on unsupported tags

I have a command usage "<info/log>" which is a literal helping people use a command properly. I need to colorize this literal, such as "<info/log>".
I understand you can use backslash to prepend the command \< but it is unfeasible when using a locale file plus clutters the IDE excessively.
Is there or can there be an option for the tag resolver to silently ignore invalid tags and just move on?
Thanks.

What do you mean by "fail silently"? MiniMessage doesn't do anything with invalid tags. Do you have a stack trace or error?

authors: kangarko kezz

repo: KyoriPowered/adventure


text:
BossBar#hide does not work reliably

The title is wrong, I mean the Audience#hideBossBar method
I'm making a minigame and I'm using the adventure library to handle the bossbar among other things. I'm using a single bossbar object for the entire arena since it's the same for all players.
When the game ends, I call Audience#hideBossBar for each player and then set the bossbar to null, this works as intended. On the other hand, when a player leaves early and the game is still ongoing, I only call Player#hideBossBar for that player, but this doesn't seem to work correctly. Sometimes the bossbar gets stuck in the player's screen.
Is there any way for me to clear that bossbar without having to set it to null? (Since it is still needed for all the other players)
Thanks in advance
Edit: I'm running the latest paper build for 1.19.2 (304)
> ver
[12:18:46 INFO]: This server is running Paper version git-Paper-304 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: 96fdafd)
You are running the latest version
Previous version: git-Paper-255 (MC: 1.19.2)

I found the issue: Despite me calling Audience#showBossBar once, it didn't allow me to individually remove players. The solution was just to loop through all the players and call the player#showBossBar method.


text:
Global steps vs epochs

Can someone explain to me the difference between epochs and global steps? I'm training a few thousand epochs, but the global steps stay low.

An epoch is one full pass through the training set, so that every sample gets the chance to be seen. But because it's impractical to hold the entire data set in memory, the convention is to use batching, an iterative process where each batch is a smaller sample of training data used to improve of your model.
Global steps refer to the number of batches seen by the graph.
Say you set the num_epochs parameter to 100, start training and checkpoint your model. If you have one batch per epoch, your global step will be 100. (In practice it'll be more, because you're training on batches).
Then you decide to do some more processing, so you restore the model and run another 100 epochs. Now your global step is 200, but if you look in logdir the epoch number will be a maximum of 100. Epochs are local to a training run, whereas the global step records the total number of iterations. This is useful because the knowing the amount of training a model has undergone can be used to tweak hyper-parameters, like the decaying the learning rate over time to encourage convergence, as mentioned on page 5 of the Tacotron paper.
The global step should always be the same or higher than your epoch count. If you're seeing a low number of global steps, there might be a training error. I'd suspect you probably haven't completed many epochs.

@jaron Does it make sense to keep the number of epochs local to a training run? I actually modified the code a bit so it records the number of global epochs.

@reiinakano Personally, I'd tend to stick to the usual naming convention, so it's easier for others to understand what you're doing. For instance, Tensorboard uses global steps as its measure for  training progress.

authors: jaron reiinakano tomsmith82

repo: Kyubyong/tacotron


text:
In-Game Browser - Close shortcut

Is it possible to have Esc or Space close the browser instead of having to click the X with the mouse?

This was an intended behaviour but got removed by #162 . Seems like the hotkey system needs a rewrite 🚀

Either that or, if possible, go for the probably quick workaround, put Esc to close the window.

Unfortunately a quick workaround is not possible as the spacebar and esc are bound to the same "dialog closing" logic - There are also global hotkeys. So yeah.
The window management needs a refresh anyway to support some of the need features (undocking browser, input management etc). So seems like a good opportunity.

0.5.17 (2020-02-16)

add escape to close browser (#222)


text:
HTML5 charset declaration not detected

Hi, we've had some issues with charset detection for some websites. Current implementation on BUbiNG lacks the appropriate regex to detect HTML5 declarations :
We've implemented it, as well as a fallback using ICU probabilistic charset detection (with a dependency on ICU).
I think HTML5 charset detection could easily be submitted to the main repo. How do you stand regarding a potential dependency on ICU ?

#13 👍

authors: ChuckNoxis guillaumepitel

repo: LAW-Unimi/BUbiNG


text:
Mttl 1151

Link to JIRA ticket
Jira Ticket
Describe this PR
Raise a PersonAddedToTenure Event
Checklist

[x] Added end-to-end (i.e. integration) tests where necessary e.g to test the complete functionality of a newly added feature
[x] Added tests to cover all new production code
[x] Checked all code for possible refactoring
[x] Code pipeline builds correctly

Looks good - did you have a chance to deploy it on dev and see if it behaves as expected?

Looks good - did you have a chance to deploy it on dev and see if it behaves as expected?

Yep it looks like it's working fine on Dev :)

repo: LBHackney-IT/tenure-information-api


text:
specifying a single filter in mag stage doesn't work

When I specify -f U -s mag --type=fit -F all of the magnitudes are updated with 9999. However, if I specify -f landolt  they are all successfully calibrated.

I think this is intentional. In order to use the color terms (U-B) in the header of the U-band files, you need to include the B-band images in the -s mag call.
If there are only U-band images, it should work without a color term.

I updated the manual to warn against this option and explain it. I'm going to close this issue

authors: abostroem griffin-h

repo: LCOGT/lcogtsnpipe


text:
Module/cellranger/1.0

Pull Request Checklists
Important: When opening a pull request, keep only the applicable checklist and delete all other sections.
Checklist for New Module
Required

[x] I used the cookiecutter template and updated the placeholder rules.

[x] The snakemake rules follow the design guidelines.

[x] All references to the rules object (e.g. for input files) are wrapped with str().

[x] Every rule in the module is either listed under localrules or has the threads and resources directives.

[x] Input and output files are being symlinked into the CFG["inputs"] and CFG["outputs"] subdirectories, respectively.

[x] I updated the final target rule (*_all) to include every output rule.

[x] I explained important module design decisions in CHANGELOG.md.

[x] I tested the module on real data for all supported seq_type values.

[x] I updated the default.yaml configuration file to provide default values for each rule in the module snakefile.

[x] I ensured that all symbolic links are relative and self-contained (i.e. do not point outside of the repository).

[x] I replaced every value that should (or might need to) be updated in the default configuration file with __UPDATE__.

[x] I recursively searched for all comments containing TODO to ensure none were left. For example:
grep -r TODO modules/<module_name>/1.0

If applicable

[ ] I added more granular output subdirectories.

[ ] I added rules to the reference_files workflow to generate any new reference files.

[ ] I added subdirectories with large intermediate files to the list of scratch_subdirectories in the default.yaml configuration file.

[ ] I updated the list of available wildcards for the input files in the default.yaml configuration file.

Checklist for Updated Module
To be completed.

@whelena what is the status of this module? Seems like it hasn't been reviewed? Do you have any test data to run through it?

authors: Kdreval whelena

repo: LCR-BCCRC/lcr-modules


text:
InputQALookup context typeahead should show label when values are objects

As an example, broader concepts in the LC genre form results (when additional context is requested) are passed back as objects.  For now, in the typeahead, the code should check if the value in the context is an object and then output the label value (possibly linking to the URI if possible).

Updated code in branch now has lookup context looking like this for genre form

Fixed in PR #1201

authors: hudajkhan jermnelson


text:
Layout problem when No Language Specified

Currently, language tags are displayed for languages, which are much shorter and do not cause layout problems. However, "No Language Specified" is long and causes layout problems.
Is there a shorter label that could be used (which could have a longer mouseover label)?

shorter label ideas:
lang: none
no language
@NancyL ?

~language~

authors: justinlittman michelleif


text:
Q3... any problem?

I am not being able to get the correct result in Q3... any clues?
Seems that I am doing the correct query that... counts the number of movies that have a caracter whose name is "Maria" or "Maria something else"
But assert fails.
Thanks

Hi @pma2 !
So, the questions asks to count all the characters named "Maria" or "Maria something else".
On the second case, note the space between "Maria" and the "something else".
Some examples:
"Maria" -> should be included
"Marianne" -> should be excluded
"Maria Theresa" -> should be included
"Maria Sophia Coletta Ragetti" -> should be included
Hope this helps!

Thanks, is already working ;)


text:
Bug related to the use of wrong object

The exercise as a question about bananas and the answer uses apples for the answer

Actual behaviour: When the reader is asked about how many bananas the object has, the answer should use the bananas object
Expected behaviour: When asked about how many bananas there are, the answer should use the bananas object.
If the point was to ask about how many apples there are, then the question should be changed.

Opened in the wrong place

repo: LDSSA/ds-prep-course


text:
Why do you use MAE as the loss function for recog?

For the effect, is there any big difference between MAE or MSE for recog?

Thank you for your attention. I'm sorry but I did not compare the MAE and MSE losses. 😅
As far as I know, MAE loss is more robust t robusto the outliers but I think it is better to use both losses.

@LEEYOONHYUNG Hi, one more question. Why did you use min & max normalization with sigmoid? Have you tried to use mean and std normalization without sigmoid?

Sorry for the late response. I used min & max normalization because it stabilizes the training. However, unfortunately, I did not try mean and std normalization.

authors: LEEYOONHYUNG wizardk

repo: LEEYOONHYUNG/BVAE-TTS


text:
Bullet dodge thingamajig & fixed watermark for real this time

the code for the bullet dodge thing is very scuffed and idk if it works though

I forgot some things

a okay

there we go, it's fixed now

i seen :D

is the dodge a event or an?

is the dodge a event or an?

it's an event

okay ill check it out

do you think the bullet note works?

do you think the bullet note works?

🤷🏻♂

Watermark isnt right

index.webm

ello?

ello?

I'm still here

ok ok

but thats when you try dodging

but thats when you try dodging

yeah I gotta fix the timing

lol okay do you want me to add the alert

lol okay do you want me to add the alert

ye sure, why not?

ok lol

there

did you fix it?

did you fix it?

not yet, but I'll get to it

okay

authors: LEVIXDDLMAO MemeHoovy

repo: LEVIXDDLMAO/FNF-SwagEngine


text:
Convert Layer1D to Layer2D and  back

Is your feature request related to a problem? Please describe.
I would like to change a Layer2D static spectral plot (waterfall plot) that is currently being displayed on the screen to a set of individual colored traces, i.e. if the waterfall plot has 8 rows, create an 8 trace plot (either flat or 3d, doesn't matter  to me).  I know how to do it in software, but I was wondering if you can do it interactively on the screen, i.e. the user can switch between the two plotting formats via the built in menu.  I don't see it as an option, but maybe I'm missing something.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@kmun are you familiar with the xCut and yCut behavior of Layer2D?  If not, see if that works for you.  Basically if you hover the mouse over a position on a raster and press X it will make a 1D representation of the x (or y) axis at that location.  You then press X again to leave the cut.

The other option, if you know how to accomplish it in code, is to make your own key-binding or menu contribution.  If you want to go down that route let me know.

Yes,  thanks.  I do you the X and Y cuts all the time.  I actually want to see all the traces as different colors.
Thanks,
Kam
        if (this.properties.draw_center_line) {

            ctx.lineWidth = (this.properties.center_line_style.lineWidth !== undefined) ? this.properties.center_line_style.lineWidth : 1;

            ctx.lineCap = (this.properties.center_line_style.lineCap !== undefined) ? this.properties.center_line_style.lineCap : "square";

            ctx.strokeStyle = (this.properties.center_line_style.strokeStyle !== undefined) ? this.properties.center_line_style.strokeStyle : Mx.fg;

            if (this.dragging || this.properties.highlight) {

                ctx.lineWidth = Math.ceil(ctx.lineWidth * 1.2);

            }

            if (this.properties.direction === "vertical") {

                ctx.beginPath();

                ctx.moveTo(this.properties.center_location + 0.5, Mx.t);

                ctx.lineTo(this.properties.center_location + 0.5, Mx.b);

                ctx.stroke();

            } else if (this.properties.direction === "horizontal") {

                ctx.beginPath();

                ctx.moveTo(Mx.l, this.properties.center_location + 0.5);

                ctx.lineTo(Mx.r, this.properties.center_location + 0.5);

                ctx.stroke();

            }

        }

    }

From: maihde notifications@github.com
Sent: Friday, October 9, 2020 5:59 PM
To: LGSInnovations/sigplot sigplot@noreply.github.com
Cc: Mun, Kam U (US) kam.mun@baesystems.com; Mention mention@noreply.github.com
Subject: Re: [LGSInnovations/sigplot] Convert Layer1D to Layer2D and back (#97)
*** WARNING ***
EXTERNAL EMAIL -- This message originates from outside our organization.
@kmunhttps://github.com/kmun are you familiar with the xCut and yCut behavior of Layer2D? If not, see if that works for you. Basically if you hover the mouse over a position on a raster and press X it will make a 1D representation of the x (or y) axis at that location. You then press X again to leave the cut.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/LGSInnovations/sigplot/issues/97#issuecomment-706412628, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK4LRSVLM76NEBG23YXPN7DSJ6BT3ANCNFSM4SKML7BQ.

Thanks,  I just coded it up.
From: maihde notifications@github.com
Sent: Friday, October 9, 2020 6:18 PM
To: LGSInnovations/sigplot sigplot@noreply.github.com
Cc: Mun, Kam U (US) kam.mun@baesystems.com; Mention mention@noreply.github.com
Subject: Re: [LGSInnovations/sigplot] Convert Layer1D to Layer2D and back (#97)
*** WARNING ***
EXTERNAL EMAIL -- This message originates from outside our organization.
The other option, if you know how to accomplish it in code, is to make your own key-binding or menu contribution. If you want to go down that route let me know.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/LGSInnovations/sigplot/issues/97#issuecomment-706413919, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK4LRSQ6K25RK7VZ2W42GITSJ6DYVANCNFSM4SKML7BQ.

authors: kmun maihde

repo: LGSInnovations/sigplot