Handle sizing of components when there is not enough space

This issue is to discuss what to do when tabs are smaller than needed to display all of their components. This is very likely to happen if tabs are forced to fit the tab line rather than overflowing, but it can also happen if vertical tabs are implemented.
There are two pieces of functionality that needs to be added:

A method of truncating strings that are too long.
A way of determining which components are hidden when under space pressure, and in what priority order.

For #1, I would recommend the configuration takes a function reference that would be called with the buffer info object, a number representing the available width, and the full list of buffers being displayed. We could provide three built-in functions for convenience:
a. left truncating: ....lename.txt
b. right truncating: filename....
c. mid truncating: filena...txt
The reason for also providing the full list of buffers as an argument is to allow for more advanced truncation that takes into account what else is displayed. For instance, you might want to intelligently truncate out the parts of the name that multiple files have in common.
For #2, it might be easiest to add a "min_line_width" option, and if the available width is smaller than that number then the component will be collapsed. It would also be nice to accept a function ref which is called with the buffer info and available width as arguments and return a boolean. I would personally use that option and determine whether or not the component is collapsed based on how much of the filename will be truncated.
Let me know what you think. I would be happy to contribute some work on all or part of this.

I've been thinking about this for a while and the more I do the more awkward edge cases I come up with.
I think the best option for now is to add support for equally sized lines with the most basic truncation algorithm, i.e. lines are shortened from right to left, and work up from there. This rendering option would be enabled with something like
require('cokeline').setup({
  rendering = {
    equally_sized_lines = true,
  },
  ...
})

The reason for also providing the full list of buffers as an argument is to allow for more advanced truncation that takes into account what else is displayed

I think providing the left, middle and right options would be enough. Also, I'm afraid allowing user defined functions for component truncation might slow down the rendering of the bufferline.

For #2, it might be easiest to add a "min_line_width" option, and if the available width is smaller than that number then the component will be collapsed.

I think it would have to be called min_component_width, since lines are made up of components and the problem of shrinking a line boils down to deciding which of its component to shrink first and how to shrink them.
This is an option, but we could also provide a priority key: if a line needs to be shortened we first cut off the component with the lowest priority to its min_line_width, we then do the same for the component with the second lowest priority, and so on until all the components are cutoff to their min_line_width. If this isn't enough we start removing components in order of increasing priority.
This approach is still far from ideal though. It could result in multiple components being cutoff on the same line, i.e. multiple ellipses being shown, which looks weird.
I should start working on this tomorrow on a new feature branch.

On the subject of ellipsis, I was thinking about using another character that can convey the meaning while only taking up one space? Maybe that can be a configuration option? For example, I could use two periods instead of three, or the nerd font icon for horizontal dots (nf-mdi-dots_vertical) which is a single character.

Yeah sure we could add a configuration option for it, but that's low priority right now.

Feel free to ping me when you have something working and I can help test it.

Will do.

I should start working on this tomorrow..

Yeah about that, ... better late then never I guess.
So, I've been working on this for the past few days and I've introduced a few new config options. First off, the setup function now accepts a new rendering table with the following options:
require('cokeline').setup({
  ...
  rendering = {
    min_line_width = <int>,
    max_line_width = <int>,
  },
 ...

those options should be pretty self explanatory. At the moment setting min_line_width doesn't actually do anything, but it will in the near future. max_line_width should work but further testing is required.
Also, every component table now takes an optional truncation table of the form:
{
  ...
  truncation = {
    priority = <int>,
    direction = 'left' | 'right',
  }
}

the priority key is used to determine which component gets cut off first when under space pressure. The default value is the index of that component in the components table (i.e. the first component has default priority 1, the second one 2, and so on). The direction key is used to determine in which direction the component gets cut. right is the default.
To put it all together, this is my current config:
local get_hex = require('cokeline/utils').get_hex

local format = string.format
local keymap = vim.api.nvim_set_keymap

local nmaps = function(lhs, rhs)
  keymap('n', lhs, rhs, {silent = true})
end

nmaps('<S-Tab>', '<Plug>(cokeline-focus-prev)')
nmaps('<Tab>', '<Plug>(cokeline-focus-next)')
nmaps('<Leader>p', '<Plug>(cokeline-switch-prev)')
nmaps('<Leader>n', '<Plug>(cokeline-switch-next)')

for i = 1,9 do
  nmaps(format('<F%s>', i), format('<Plug>(cokeline-focus-%s)', i))
end

local saved_indicator = {
  text = '｜',
  hl = {
    fg = function(buffer)
      return
        buffer.is_modified
        and vim.g.terminal_color_3 -- yellow
         or vim.g.terminal_color_2 -- green
    end
  },
}

local devicon = {
  text = function(buffer) return buffer.devicon.icon .. ' ' end,
  hl = {
    fg = function(buffer) return buffer.devicon.color end,
  },
}

local index = {
  text = function(buffer) return buffer.index .. ': ' end,
  hl = {
    fg = function(buffer)
      return
        buffer.lsp.errors ~= 0
        and vim.g.terminal_color_1
         or nil
    end,
  },
}

local unique_prefix = {
  text = function(buffer) return buffer.unique_prefix end,
  hl = {
    fg = get_hex('Comment', 'fg'),
    style = 'italic',
  },
  truncation = {
    priority = 6,
    direction = 'left',
  },
}

local filename = {
  text = function(buffer) return buffer.filename end,
  hl = {
    fg = function(buffer)
      if buffer.lsp.errors ~= 0 then
        return vim.g.terminal_color_1
      end
      if buffer.lsp.warnings ~= 0 then
        return vim.g.terminal_color_3
      end
      return nil
    end,
    style = function(buffer)
      local style
      if buffer.is_focused then
        style = 'bold'
      end
      if buffer.lsp.errors ~= 0 then
        if style then
          style = style .. ',underline'
        else
          style = 'underline'
        end
      end
      return style
    end,
  },
  truncation = {
    priority = 5,
    direction = 'left',
  },
}

local space = {
  text = ' ',
  truncation = {
    priority = 4,
  }
}

require('cokeline').setup({
  hide_when_one_buffer = true,

  rendering = {
    min_line_width = 0,
    max_line_width = 25,
  },

  buffers = {
    filter = function(buffer)
      return buffer.type ~= 'terminal'
    end,
  },

  default_hl = {
    focused = {
      fg = get_hex('Normal', 'fg'),
      bg = get_hex('ColorColumn', 'bg'),
    },
    unfocused = {
      fg = get_hex('Comment', 'fg'),
      bg = get_hex('ColorColumn', 'bg'),
    },
  },

  components = {
    saved_indicator,
    devicon,
    index,
    unique_prefix,
    filename,
    space,
  },
})

Which looks like this

Feel free to test and play around with the new options. As always, any feedback is welcome.

I will close this for now. Feel free to reopen it if you feel like more work needs to be done.

Hey @noib3, this looks like great work. Sorry I haven't kept up with this, but I ended up meeting my needs by modifying nvim-tree to show open buffers. I think that is the way to go to meet my original goal of having vertical tabs for my buffers.


fix: handle fakeQL 424 response

fakeQL is having stability issues recently and intermittently throws a 424 "db connection failed" error. However, the server response is not following the JSON API spec (no "errors" field) so a workaround is needed in the auto-generated code to handle this.

👍🏻


minus_fc operator does not work

with the latest pip installed ansys.dpf.core,
for a very easy model, e.g., a block with 4 elements and 2 load steps, with fixed_support on one side, displacement or force on the other side, give the block a named selection test,
then,

# load step 2
ls1 = 2
# load step 1
ls2 = 1
ns_name = 'test'
rst = dpf.DataSources(rst_path)

# using named selections
ns = dpf.operators.scoping.on_named_selection(
    requested_location="Elemental",
    named_selection_name=ns_name.upper(),
    data_sources=rst)

# calculate stress at load step 2
res1 = dpf.operators.result.stress(time_scoping=ls1,
                                   mesh_scoping=ns.outputs.mesh_scoping,
                                   data_sources=rst,
                                   requested_location="Elemental")

eres1 = dpf.operators.averaging.to_elemental_fc(
    fields_container=res1.outputs.fields_container)

# calculate stress at load step 1
res2 = dpf.operators.result.stress(time_scoping=ls2,
                                   mesh_scoping=ns.outputs.mesh_scoping,
                                   data_sources=rst,
                                   requested_location="Elemental")
eres2 = dpf.operators.averaging.to_elemental_fc(
    fields_container=aps2.outputs.fields_container)

# delta stress
res = eaps1 - eaps2

assert res.outputs.fields_container()[0].data.all() == eres1.outputs.fields_container()[0].data.all()

it will bring a True return, meaning the delta stress is equal to the stress value at load step 1 --> meaning, the minus operator does not work for these 2 fileds_containers
my computer: Windows 10, both Ansys 2021R1, and Ansys 2021R2 installed

Would it be possible to post the result file?  If you zip it you can upload it here in github.

ds.zip
I cannot upload the .rst or the zipped .rst (actually only 11KB), not sure it is because i am using the company computer or it is because GitHub...
somehow i can upload the zipped .dat file (the Ansys calculation input file), the model itself is just a block with 4 elements and 2 load steps.

Strange.  Email me at<EMAIL_ADDRESS>the result file and I'll make sure it gets passed to the right person.

Hi @xiepei1,
in your script eaps1 and eaps2 are not declared, did you mean eres1 and eres2?

Hi @xiepei1,
in your script eaps1 and eaps2 are not declared, did you mean eres1 and eres2?

Hi @cbellot000 ,
typos... you are right, i mean eres1 and eres2

After looking in your script, when you do res = eres1 - eres2, the operator "minus_fc" is called and the 2 fields container are substracted. When mathematical operations are applied on fields containers, we apply it one the fields having the same identifier for both fields container. In your case eres1 has a {"time":1} Field and eres2 has a {"time",2} Field so they are not substracted together. To do what you are expecting, you can use res = eres1.outputs.fields_container()[0] - eres2.outputs.fields_container()[0]  instead and then you will have np.allclose(res.outputs.field().data, eres1.outputs.fields_container()[0].data-eres2.outputs.fields_container()[0].data)==True

@rlagha maybe we should raise an error in this use case, what do you think?

After looking in your script, when you do res = eres1 - eres2, the operator "minus_fc" is called and the 2 fields container are substracted. When mathematical operations are applied on fields containers, we apply it one the fields having the same identifier for both fields container. In your case eres1 has a {"time":1} Field and eres2 has a {"time",2} Field so they are not substracted together. To do what you are expecting, you can use res = eres1.outputs.fields_container()[0] - eres2.outputs.fields_container()[0]  instead and then you will have np.allclose(res.outputs.field().data, eres1.outputs.fields_container()[0].data-eres2.outputs.fields_container()[0].data)==True

Thank you very much.... very important hint!
My understanding is if user just works with operators, it is just fast, but now with ouputing fields_container()[0], everything gets slow, actually in my use case, it takes >2s for such kind of outputing, but i have to do such kind of minus operation for many many times, which is huge computation time.
Generally speaking it is kind of surprising to me that we have to explicitly output the data just in order to get the delta between 2 load steps, I would expect a workaround with just chaining operators, which is way faster...

Is your server really far? eres2.outputs.fields_container()[0] should not be slow because no data in brought back, it's only an ID.
But you're right, it would be better to use an operator. You can use operators.math.minus() (instead of minus_fc) if you want, it should do the trick.

Is your server really far? eres2.outputs.fields_container()[0] should not be slow because no data in brought back, it's only an ID.

No really, actually i start my local server, everything running locally, just with the eres2.outputs.fields_container()[0], everything slows down.

But you're right, it would be better to use an operator. You can use operators.math.minus() (instead of minus_fc) if you want, it should do the trick.

you are right that using math.minus did the work, thanks for the hint!
but i encountered another problem which is running in Linux, the ansys.dpf cannot find the Ansys installation path, the documentation seemingly not include the manual start server...

@rlagha maybe we should raise an error in this use case, what do you think?

i think this is a good idea, maybe not give user error, maybe a warning sign should be enough


Buttons on Back of Twitter Cards

The buttons on the back of twitter cards currently display a toast but don't do anything.

The open twitter button sends you to my twitter account. Will eventually send you to the user's post. The retweet and favorite buttons won't work till the back and front are connected. I left a link for Twitter API reference.


Removing zero time intervals

How can I remove all the zero time intervals from the output e.g.
0 days, 0 hours, 0 minutes, 34 seconds
Should be
34 seconds

I have tried various methods to try and get this to output something meaningful.
First I tried nf-if, this breaks the output
 0">{{days}} days,
 0">{{hours}} hours,
 0">{{minutes}} minutes,
 0">{{seconds}} seconds

I then tried using max-time-unit but because the timing of each timer is dynamic I cannot simply set this to 'minute' as some timers might be days. I therefore tried to set up a function in my controller to see what the countdown was then return the correct time period, this also failed.
max-time-unit="getMaxTimeUnit(my_countdown_in_seconds)"

$scope.getMaxTimeUnit = function(arg) {
    if(arg < 60) {
        return "second";
    } else if(arg < 3600) {
        return "minute";
    } else if(arg < 86400) {
        return "hour";
    }
    return "day";
};

There doesn't seem to be a way of outputting a realistic and readable timer dynamically?


Add a typeracerClone

Hello swapnil Sparsh I have built a Fonkeytype typing platform where users get to know about their accuracy.
Can I make a pr of this to your folder Will this count in GSsoc?

@SamarthKadam Good Luck 👍🏻


String built-in function blitz

Expand coverage of Impala built-ins on string types. Track here

[x] instr
[x] locate
[x] space
[x] trim
[x] regex_extract
[x] regex_replace
[x] ascii
[x] concat_ws
[x] concat
[x] find_in_set
[x] lpad / rpad
[x] ltrim / rtrim
[x] repeat
[x] reverse
[x] translate

Hello, I'm looking for concat() in Ibis and the only reference I have found is this issue.  Has this been implemented?

@pteehan Pretty sure not.

@pteehan try sep.join([e1, e2, e3]), e.g.
comma = ibis.literal(',')
comma.join(['foo', 'bar', 'baz'])

this compiles to
concat_ws(',', 'foo', 'bar', 'baz')

Great, thank you.
On Sat, Oct 29, 2016 at 3:09 AM, Wes McKinney<EMAIL_ADDRESS>wrote:

@pteehan https://github.com/pteehan try sep.join([e1, e2, e3]), e.g.
comma = ibis.literal(',')
comma.join(['foo', 'bar', 'baz'])
this compiles to
concat_ws(',', 'foo', 'bar', 'baz')
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cloudera/ibis/issues/256#issuecomment-257061550, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADKJRcTzDRWCIbaWadSgD6DubQYdJ8wGks5q4py2gaJpZM4E4_wk
.


Add more keywords

Overview

Highlights CROSS and JOIN as keywords in table expressions.
Highlights DISTINCT as a keyword in scalar expressions.
Adds stories demonstrating the above behavior.

Motivation

Resolves #14.
Resolves #21.

... and ON.


[Fix-447][console-service] enhance robustness of get flink version

What problem does this PR solve?
Issue Number: close #447
Problem Summary: get illegal flink verion while serialize FlinkEnv.class
What is changed and how it works?
What's Changed: enhance robustness of get flink version

@wolfboys please take a look.


Magic DRC During MPW Precheck Hangs Indefinitely

When reaching the MPW precheck, the check is successful up to the Magic DRC check. While this step does not fail, it seems to enter a faulted state.The process will consume as high as 311GB of RAM (filling physical RAM and the entire swapfile), and run a single core at 100% (or as high as it can limited by page faults). It will run in this state seemingly forever, longer than 8 hours.
Per this document and this thread, it is possible that there is an issue with the SRAM macros during the DRC check. In both these cases, it is recommended to use the latest version of the macro directly from the PDK provided by efabless.

If I use the PDK version of the SRAM, using the following in config.json:
"VERILOG_FILES_BLACKBOX": "pdk_dir::libs.ref/sky130_sram_macros/verilog/sky130_sram_2kbyte_1rw1r_32x512_8.v",
"EXTRA_LEFS": "pdk_dir::libs.ref/sky130_sram_macros/lef/sky130_sram_2kbyte_1rw1r_32x512_8.lef",
"EXTRA_LIBS": "pdk_dir::libs.ref/sky130_sram_macros/lib/sky130_sram_2kbyte_1rw1r_32x512_8_TT_1p8V_25C.lib",
"EXTRA_GDS_FILES": "pdk_dir::libs.ref/sky130_sram_macros/gds/sky130_sram_2kbyte_1rw1r_32x512_8.gds",

Then I recieve linter errors (which can be ignored), and STA errors (which cannot be ignored):
Error while reading /home/prherrma/runners/r0/_work/pdk/sky130A/libs.ref/sky130_sram_macros/verilog/sky130_sram_2kbyte_1rw1r_32x512_8.v:
Make sure that this a gate-level netlist not an RTL file
You can add the following comment '/// sta-blackbox' in the file to skip it and blackbox the modules inside if needed.

Examples:

5afab83
eec943c

If I provide a modified version of the verilog blackbox file, with /// sta-blackbox as recommended, then I can avoid all linter and STA errors, but when reaching the Magic DRC check it will hang in a seemingly infinite loop and consume all of the system resources.

Examples:

a3d2ccf
03fb89a
0fc65ae

Another interesting symptom: Thse commits got different results during detailed routing, despite theoretically using the exact same files. Instead of using a relative path (dir::../../../../pdk/), I use the environment variable pdk_dir::, and I omitted the VERILOG_INCLUDE_DIRS config.
By doing this, I somehow ended up with different detailed routing results, which seems to indicate an actual difference in what is being put on the die.

I'm basically stuck between two options:

I implement using the provided PDK versions, which causes STA checks to fail
I implement using a modified blackbox, which causes the Magic DRC to hang indefinitely.

To move forward, I need to do one of the following:

Find a way to get STA checks to pass with the PDK macros
Show that the Magic DRC check is not hanging because of the modified macro and solve DRC issue
Update either the efabless/sky130_sram_macros or MPW precheck to fix this condition
Remove the SRAM macros

This was found to be a bug with the MPW precheck itself, described in issue #247. Currently awaiting a fix to be merged into the MPW precheck in PR #248

Found that the Makefile target make pdk-with-volare was using an old, hard-coded version of the PDK:
ifeq ($(PDK),sky130A)
	SKYWATER_COMMIT=f70d8ca46961ff92719d8870a18a076370b85f6c
	export OPEN_PDKS_COMMIT?=78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc
	export OPENLANE_TAG?=2023.07.19
	MPW_TAG ?= mpw-9e

This vesion of the PDK (78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc) was missing .maglef files for the SRAM we are using, and the DRC script is not set up to handle that in the MPW precheck. After setting the PDK version to 559a117b163cef2f920f33f30f6f690aa0b47e4c (latest), the DRC check completed.

After updating the OPENLANE_TAG, I recieved the following warning:
Warning: : OpenLane may not function properly: open_pdks 559a117b163cef2f920f33f30f6f690aa0b47e4c
The version of open_pdks used in building the PDK does not match the version OpenLane was tested on (installed: 559a117b163cef2f920f33f30f6f690aa0b47e4c, tested: dd7771c384ed36b91a25e9f8b314355fc26561be)

Simply updating the version in the Makefile was not sufficient. In order to get the tested version, I needed to explicitly enable the tested version with volare in the ci.yml:
      - name: Build PDK
        run: |
          make pdk-with-volare
          python3 -m pip install --upgrade --no-cache-dir volare
          volare enable --pdk sky130 dd7771c384ed36b91a25e9f8b314355fc26561be
          volare ls --pdk sky130


API Documentation

I really liked the work done in the project, Its deferentially one of the most interesting boilerplates out there. Unfortunately, there is a major draw back - which is lack of documentation. Not project documentation, but auto generated API documentation, something like Swagger, apidoc etc.
So my request is simple, if possible, please advise on how to integrate a tool like Swagger.
Thanks!

I'm not a big fan of any of the API documentation tools (yet) so I wouldn't know how to set that up. This is a boilerplate though, so you're free to fork it and make changes. 😄


CI: Use the latest kernel in e2e tests

Build VM Kernel for e2e tests (the naive approach without caches takes ~3m)
Make vm-kernel job to trigger e2e with this freshly built kernel
Allow to trigger e2e tests with specified kernel

Things to improve (in the future PRs):

e2e-tests: Use cached kernel version if it has no changes
vm-kernel: Do not push kernel image if e2e tests with it fails

For historical purposes, afaict the motivation for this PR was https://neondb.slack.com/archives/C059ZC138NR/p1700487216332599?thread_ts=1700435685.425779&cid=C059ZC138NR


Fixes vuejs / vue-router-next#133

Codecov Report

Merging #134 into master will not change coverage by %.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #134   +/-   ##
=======================================
  Coverage   79.41%   79.41%
=======================================
  Files          22       22
  Lines         884      884
  Branches      218      218
=======================================
  Hits          702      702
  Misses        144      144
  Partials       38       38

Impacted Files
Coverage Δ

src/components/Link.ts
63.41% <ø> (ø)

Continue to review full report at Codecov.

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


Question about dataset construction

Hello Yikang:
Hi~, I'm a research intern of HIT-SCIR lab, Yangming Li. It's great for your contribution about this repository. But I found some problems about the dataset construction (including test set):
1,  the use of pytorch API "narrow" will unexpectedly abandon some words and result in incorrect PPL score.
2, It seems that your slide window on the whole corpus is not continuous and thus generate far less data than usual.
Great thanks again for your contribution about this repository.
Yangming, 19/08/02

Hi Yangming,
The problems that you mentioned are actually regularization methods introduced in AWD-LSTM (https://github.com/salesforce/awd-lstm-lm). Please refer to their paper for explanations.

Very thanks for your response :)


\left \right do not make big parenthesis

\sin \left (x + \frac {\pi} {2}\right) should makes big ( and ), however this package does not

this is https://www.codecogs.com/latex/eqneditor.php does

The latex2mathml output is properly rendered in MathJax viewer. It's probably that DOCX does not support "stretchy" attribute.


get_fee returning 10x transaction fee in response

The function for calculating transaction fees is returning an amount over 10 times higher than what the transaction fee should be. This just started happening. It wasn't so just yesterday.
Here is an example of the fee on a trial amount of GHS 100.94:
data: {
charge_amount: 100.94,
fee: 28.87,
merchant_fee: 0,
flutterwave_fee: 28.87,
stamp_duty_fee: 0,
currency: 'GHS'
}
The fee should originally be GHS 2.53 (using the rate of 2.5%)  but is instead showing GHS 28.87. Please fix.

this issue has been resolved

this issue has been resolved


(HTTP code 404) unexpected - {"message":"manifest for dustinmoris/docker-demo-nancy:latest not found"}

Expected behavior
Actual behavior
Information about the Issue
Steps to reproduce the behavior

...
...

If the image you're creating a container from doesn't have a :latest tag (which is the default), you need to manually select the tag to use from the UI;
Click the three "dots" to open the details pane for the image

Click on the "selected tag"

Select the image tag you want to use:

Click the close button ("X"):

Then click "create" to create a container using the image (and tag) you selected


Possible issue around span's scope

I am having a hard time figuring out if this is caused by the bindings, or tracy itself.
The following will cause the tracy client to print: Instrumentation failure: Invalid order of zone begin and end events.
            if let Some(fd) = fence_fd {
                let mut fence_span = Some(tracing_tracy::client::span!("Wait for fence"));
                let _ = self.loop_handle.insert_source(
                    Generic::new(fd, Interest::READ, calloop::Mode::Level),
                    move |_, _, _| {
                        drop(fence_span.take());
                        Ok(PostAction::Remove)
                    },
                );
            }

As far as I can tell, this should be perfectly fine to do, but it doesn't work.

Without a more minimal, and more importantly, self-contained reproducer this is going to be hard to advise on or to investigate.
That said, Tracy has a boatload of limitations around how it expects zones (spans) to be structured. One particular requirement is that zones must form a tree, meaning that children zones must enter and exit entirely within the confines of the parent zone activity. Since you’re using the tracy-client API directly, rather than through tracing, it is up to yourself to ensure that you instrument your program the way Tracy expects.
If I had to guess what happens is that the "Wait for fence" span is entered multiple times and they are exited in an unpredictable order, thus failing to form a tree of children zones.
(In contrast tracing is much more flexible – to the point where you can have entirely disjoint spans in the same thread. The tracing integrations attempt to work within these limitations at the tradeoff that some profiles will produce semi-invalid data (with an indication that it has happened.) But there are limits to how much we can do there.)

Thanks for the write-up. I'll close since there's reasonable evidence this is my bug.


json.decode bug? type 'int' is not a subtype of type 'double' in type cast

I am using Dart 2.8.4 in a Windows system.
My code is this:
import 'dart:convert';

void main() {
  final jsonStr = '{"floatValue": 217}';

  Map<String, dynamic> mapped = json.decode(jsonStr);

  print(mapped['floatValue']);

  double d = mapped['floatValue'] as double;
  print(d is double);
}

Using DartPad this code runs normally, but in my system it generates an error:
217
Unhandled exception:
type 'int' is not a subtype of type 'double' in type cast
#0      main (file:///C:/dev/src/test-double-json.dart:10:35)
#1      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#2      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

There is workarounds for this behavior? I need to consume a REST API that gives me float numbers but for round number it doesn't send decimal digits.

The behavior is correct.
The JSON decoder decodes 217 as an int. If it had been 217.0, it would have been parsed into a double.
When run on the web, all int objects are also double objects, because JavaScript doesn't have an efficient integer type.
When run natively, the two types are distinct.
That's why you can cast the value to double in DartPad, but not on the VM.
If you are not in control of the JSON source, you have to assume that any number literal can be either an int or double, so you only know it's a num. You are already assuming that the value is a number, so I'd just do:
double d = mapped['floatValue'].toDouble();

or if you prefer to avoid dynamic invocations:
double d = (mapped['floatValue'] as num).toDouble();

My source is mine Node/TypeScript API. But Javascript's JSON.stringify() outputs 123.45 accordingly but 123.00 as 123.
https://stackoverflow.com/questions/41399380/force-float-value-when-using-json-stringify
https://stackoverflow.com/questions/53005702/parse-float-with-decimals-to-json-in-javascript-also-for-1-as-1-00
I'll try harder to make my API outputs floats as floats but Node doesn't help.

Indeed, JavaScript has it easier because it doesn't have a separate int type.
Dart has to choose (at least when not compiled to JavaScript), and it made more sense to make 123 decode as an integer than make everything a double. In most cases it's fine. In a few cases, it's not, and you have to treat your numbers as num and convert them to what you really want.
Other languages have even bigger problems. For example, Swift has both double and decimal types for non-integer values, and its JSON decoding picks ... double if the value fits in a double, and decimal if it doesn't. Java doesn't parse first and ask type questions later, instead you get a JsonNumber which you can ask for the value of in various types.
Honestly, parsing JSON into an object structure and then interpreting the structure afterwards is wasteful and error-prone. It's better to ask for a specific type before parsing a JSON value, and then parse to that value.


No-markup-edit-mode*

essentially removes the div class="cms-plugin" in favor of handling all the necessary stuff with javascript

[x] changelog
[x] more js unit tests
[ ] more js integration tests not now, but soon
[x] screenshots / videos

Before
http://d.pr/v/16z3b ← VIDEO

After
http://d.pr/v/1kl3T ← VIDEO

Essentially what happens is we have invisible nodes before and after plugin contents which are removed by js and their data is put onto plugin contents. In case the plugin contents have top level non-whitespace text nodes they are wrapped with a custom <cms-plugin> tag that has no styles and should not interfere with anything.
There are still extreme cases where things could go wrong, e.g. plugin markup is like this:
text node <!-- comment node --> and text node
which would be renreded then as <cms-plugin ...>text node </cms-plugin><!-- comment node --><cms-plugin ...>and text node</cms-plugin> which could interfere with styles like * + * { margin-top: 10px; } but I believe this is rare enough case :)
--
* there's still a little bit of markup

Coverage increased (+0.6%) to 89.48% when pulling 9b6f405a6f57ecb259b2d2bdea2b5ac8f5732016 on vxsx:feature/no-markup-edit-mode into acc8cd742c32af5e3d92a8182bb7bda79bb054fc on divio:develop.

@vxsx develop was force pushed to be clone of release/3.3.x just FYI

Coverage increased (+0.6%) to 89.528% when pulling 49ddc86b857717fb8fe6c5acd7b728caea24b107 on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

Coverage increased (+0.5%) to 89.409% when pulling 8123fda4f14b3b3eb558293c44f7794c8bddd576 on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

Coverage increased (+0.6%) to 89.504% when pulling 8123fda4f14b3b3eb558293c44f7794c8bddd576 on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

@divio/django-cms-core please review, quite a change :)

Coverage increased (+0.7%) to 89.567% when pulling 473c218b40bbaffb2dab808d0e6475fabf17b6ef on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

Coverage increased (+0.6%) to 89.528% when pulling 82795c4f58caea39688c79e557f02519fb4de2c6 on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

Coverage decreased (-4.08%) to 84.834% when pulling bad391221d89f6b9bb86e49b3a6d74f2f00fbba0 on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

Overall really great work. I'm a bit concerned about performance here. Do you have any indication on the gains / loses compared to the current version?

Performance is a thing, yes, it is slower, given that it has to do more stuff.
Here is the comparsion of plugins initialization on a 450 plugins tree:
old old-init.cpuprofile.zip 1.76s
new new-init.cpuprofile.zip 2.24s
So it's slower for about 1.07ms per plugin on a good machine. Pretty sure it's fine :)

Coverage increased (+0.6%) to 89.528% when pulling 03e66cb5013f0e59fc216560bde782748c4cdf72 on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

Ok, so after few iterations i've made it go down to 1.48s for 450 plugins, some parts are going to be here, some will be opened against 3.3.x and forwardported, so everyone can benefit

Coverage increased (+0.7%) to 89.567% when pulling a4c141cf26c613de9505778929ba90912a4f94fc on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

Coverage increased (+0.7%) to 89.567% when pulling a4c141cf26c613de9505778929ba90912a4f94fc on vxsx:feature/no-markup-edit-mode into 7632db76ab346bebc094d55dabbb4cc686b0b15d on divio:develop.

LGTM awesome!


Themes!

Would be nice if theming was 100 Rabbits-like too.

Theming is a great idea, but not high priority for me right now.


Fix throttler test by avoiding time.Sleep

Signed-off-by: Isaac Hier<EMAIL_ADDRESS>Which problem is this PR solving?

#299

Short description of the changes

See #300.

Closing duplicate.


Missing lang file keys and gui is too small

Hi.
I'm on the middle of translating your mod and as I tested my translation in-game I noticed a few problems:

Some keys are missing:
. "Max Health"
. "Knockback Resistance"
. "Attack Speed"
. "Attack Damage"
. "Armor"
. "Armor Toughness"
. "Luck"
. "Speed"
. "blocks/s"
. a second "playerex.attribute.name.skill_points": "Skill Points" but for the tooltip that shows when hovering on     "playerex.attribute.name.level": "Level"

I only noticed them because my game is in english (except for the last two ones).
And here's a ss but the client is in spanish. Another good reason to add those missing keys.

The GUI is too cramped. I wish you could add more space in between so things like this don't happen

I had to reduce the length of some lines and it looks really bad in spanish.

This one is a suggestion;
Add a lang file in the configs folder to enforce the same language on everyone using the modpack.
Why? I want me and my friends to have a consistent language to talk about attributes and leveling stuff. That involves adding the missing keys I mentioned in (1).
The spanish localization is awful. If you put 5 people from 5 different spanish speaking countries, you'll end up with 5 different translations for stuff.

Thanks.

Hi there,
You've raised a few points here so I'll try to answer them as best I can:
1). What you've listed are vanilla attributes. For example: when displaying "Attack Speed" on the screen, it uses the Attack Speed attribute localisation provided by vanilla. This is implemented using:
EntityAttribute attribute = EntityAttributes.GENERIC_ATTACK_SPEED; // the attribute
Text text = new TranslatableText(attribute.getTranslationKey()); // the translated text

As you can see, the translation part here is performed by vanilla Minecraft. Now what I think you're actually asking is if I can provide dedicated translation keys seperate from the attribute localisation so that you can make a better fitting translation than the vanilla one? An example for this would be to add "gui.playerex.page.attributes.text.attack_speed". Please correct me if I'm mistaken here.
As for "blocks/s", this is part of "gui.playerex.page.attributes.tooltip.speed": "Movement: %s blocks/s". Do you want to split that translation into seperate pieces for "Movement: %s" and "blocks/s"?
Regarding the tooltip that is displayed when hovering over "Level": the tooltip is comprised of two components, as follows:

"gui.playerex.page.attributes.tooltip.level[0]": "This is your player level. ",
"gui.playerex.page.attributes.tooltip.level[1]": "It can be increased with xp.",
+1 Skill Points

Point 2 is special; a piece of code loops over all functions associated with the level attribute and lists them on the tooltip. The actual translation is (once again) done by vanilla minecraft using the previous code example.
All the translation keys needed are present. If what you want is to create seperate playerex translation keys instead of the in-built vanilla attribute translation keys then let me know.
2). I appreciate that the gui is pretty small. I specifically wanted it to remain the same size as the survival inventory, and I designed it to work with english-sized words. There's no real easy fix here that I would be totally happy with. I could either make the container wider, or make the font smaller.
Let's say I did make the gui wider or make the font smaller. Next I'd have someone wanting to translate to german and requesting that the gui become even wider or the font even smaller. Or any language that has longer words, for that matter.
That's not to say that I don't want to accommodate my mod for other languages, I do. It's just that this one's a bit tricky to fix.
If you have a specific method in mind that would allow for the full spanish words, I'm all ears.
3). I can appreciate wanting this feature, but this is not really in the scope of this mod. I can totally see its usefulness, but honestly this should be a seperate mod.
Thanks again for writing up such a comprehensive issue request, I'll do my best to work with you towards a solution.

Now what I think you're actually asking is if I can provide dedicated translation keys seperate from the attribute localisation so that you can make a better fitting translation than the vanilla one? An example for this would be to add "gui.playerex.page.attributes.text.attack_speed". Please correct me if I'm mistaken here.

Yes, that's exactly it.

As for "blocks/s", this is part of "gui.playerex.page.attributes.tooltip.speed": "Movement: %s blocks/s". Do you want to split that translation into seperate pieces for "Movement: %s" and "blocks/s"?

Yeah. I don't know what happened there honestly. My bad.

Point 2 is special; a piece of code loops over all functions associated with the level attribute and lists them on the tooltip. The actual translation is (once again) done by vanilla minecraft using the previous code example.

Wow I didn't know about that.
I forgot to explain why I needed something like that, sorry;
I can translate "Skill Points" to "Puntos de Hab." so it fits in the GUI but I wanted it to be "Puntos de Habilidad" when it was in the tooltip cause it wouldn't make sense to shorten "Habilidad" when it was in the tooltip, right? Well that's why I wanted a second "Skill Points" key.

All the translation keys needed are present. If what you want is to create seperate playerex translation keys instead of the in-built vanilla attribute translation keys then let me know.

I'd appreciate that very much. Just for the sake of consistency and also there are some vanilla keys that are too long for the gui.

That's not to say that I don't want to accommodate my mod for other languages, I do. It's just that this one's a bit tricky to fix.
If you have a specific method in mind that would allow for the full spanish words, I'm all ears.

I understand, it's alright. If it is too difficult then I can compromise.

3). I can appreciate wanting this feature, but this is not really in the scope of this mod. I can totally see its usefulness, but honestly this should be a seperate mod.

Oh I think you got me wrong here. I was talking about adding the lang files that are inside of the mod to the client's config folder. But know that I think about it maybe a setting like "language": "es_mx." would be better. What do you think about it?
I thank YOU for taking all my requests in consideration and also taking the time to write everything with so much info and details. I really appreciate that!
Regards.

Hi again,
After some thinking, I've implemented a feature that lets the user change the size of the font, allowing for longer words.
This example shows some of the new text resizing. It can be squished any way, this should let you have longer words whilst allowing the user to individually make sure that nothing overlaps.
I've also made all the displayable text on both the attributes page and combat page have dedicated translation keys.
I'll hopefully be releasing these fixes, among others, fairly soon.

Thats amazing! I'm looking forward to it!

Hopefully fixed some of these concerns in the latest update, 3.0.3.

Thank you!
I've tested my translation with the latest release and noticed that some tooltip attributes didn't get translated:

Those are vanilla attributes. You need to actually have spanish as your selected language in Minecraft when testing. I've just ran your translation with Español (México) and those attributes translated just fine.

Is it possible to add a key for those attributes?
I'm quoting my own message here

Why? I want me and my friends to have a consistent language to talk about attributes and leveling stuff. That involves adding the missing keys I mentioned in (1).
The spanish localization is awful. If you put 5 people from 5 different spanish speaking countries, you'll end up with 5 different translations for stuff.

I understand if it can't be done. You've already did a lot, thanks!

I'm not going to modify vanilla attribute's translation keys.
However, if it's just for you and your friends, there is a way you can add a datapack that will allow you to have your own translation keys for vanilla attributes:
Please see the Overrides section of Data Attributes. You can override vanilla attributes' translation keys using a serverside datapack, and then add the according translations with a clientside resourcepack.

You always fix all my problems, amazing. Thanks!


On using multiple versions of SQLCMD

I don't like that this page does not list which versions of SQL it pertains to, and instead had a link to the same command for prior to SQL2014.
I don't like that I can't tell which specific version of SQLCMD will be downloaded when I click on the download link.
I don't like the fact that I cannot easily tell by running the latest installation for SQLCMD that I am unable to determine where it was installed.
I don't like that there is no reference on this page on how to run a specific version of SQLCMD - especially referencing the one that was supposedly downloaded from this same page.

I like the fact that SQLCMD was updated to include new Azure features, but without telling me how to run this new version instead of any older SQLCMD versions already installed it is of little value.  The SQLCMD I currently have launching (v15.0.1300.359) matches the text on the page, but doesn't list the new Azure features when the [-?] command is used.

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

ID: 8da1f57b-a8fd-cca7-4cf0-9d594d365062
Version Independent ID: 60c46780-6a03-7958-c77a-e7c94e3b9e85
Content: sqlcmd Utility - SQL Server
Content Source: docs/tools/sqlcmd-utility.md
Product: sql
Technology: tools-other
GitHub Login: @markingmyname
Microsoft Alias: maghan

@LindaLF  Our apologies for the delay.  This has been assigned to the author.

Thank you for your suggestion and request. We're on it. This will be discussed with the parties involved.
In the meantime, can you please visit UserVoice to submit your issue?

Hi, @LindaLF,
I apologize for the delay, but I have heard back, and here are the results.

I ’don’t like that this page does not list which versions of SQL it pertains to, and instead had a link to the same command for before SQL2014.

[A] From what we can gather, you are requesting a documentation suggestion. The page links to the latest version of tools whereas ’you’re looking for wants a list of all versions in the same place. However, if I understand you correctly, Microsoft docs only focus on updating SQL articles that are 2016 and later now.  If you feel that the Utility page should encompass all past and present versions, please let me know, and I can discuss this with my team.

I ’don’t like that I ’can’t tell which specific version of SQLCMD will be downloaded when I click on the download link.

[A] The tools version might not map to SQL Engine version 1:1 but the link in the article mentions the tools version it is downloading. Tools version increments depend on the features added for that tool. It will work against multiple SQL versions; hence the 1:1 might not make sense.

I ’don’t like the fact that I cannot quickly tell by running the latest installation for SQLCMD that I am unable to determine where it was installed.

[A] We are discussing opening a bug for that for later releases. For now, I would suggest the trying “where SQLCMD” command from a cmd prompt.

I ’don’t like that there is no reference on this page on how to run a specific version of SQLCMD - especially referencing the one that was supposedly downloaded from this same page.

[A] The primary content for how to start of sqlcmd remains similar across versions (ref: https://docs.microsoft.com/en-us/sql/ssms/scripting/sqlcmd-start-the-utility?view=sql-server-2017). For options/features available for different versions, please check the section “Command Line Options” (ref: https://docs.microsoft.com/en-us/sql/tools/sqlcmd-utility?view=sql-server-2017#command-line-options).
I hope this helps.
Please let me know if there is anything else.
Thank you.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion, and we will reopen the issue. To see what the community is wanting, please visit the UserVoice site.


change date of PTSD data to 2018

@J535D165 I also want to update the file names (van_de_Schoot_2017.json and van_de_Schoot_2017.csv) and the name of the folder (van_de_Schoot_2017), ok?

See #14 for the explanation.

See #14 for the explanation.


Is it possible to access dropzone programmatically while still using this directive?

im trying to do something like
myDropzone.emit( "addedfile", file );
but I can't figure out how to access that emit method.
EDIT... I was able to make it work like this:
in ngdropzone/dist/ng-dropzone.js:
//Instantiate dropzone with initOps
var dropzone = new Dropzone(iElem[0], initOps);
scope.instance = dropzone

then in my component...
<ng-dropzone
    instance="$ctrl.myDropzone"  /// the dropzone instance is available via $ctrl.myDropzone
    options="$ctrl.dzOptions"
    callbacks="$ctrl.dzCallbacks"
    methods="$ctrl.dzMethods">
</ng-dropzone>

would you accept a PR for something like this or do you have a better suggestion?

duplicate of #4


I got error while running demo.sh

Traceback (most recent call last):
File "main.py", line 4, in
import data
File "/home/youku/scripts/EDSR-PyTorch/src/data/init.py", line 2, in
from dataloader import MSDataLoader
File "/home/youku/scripts/EDSR-PyTorch/src/dataloader.py", line 10, in
from torch.utils.data import _utils
ImportError: cannot import name '_utils

me too
55555

change pytorch version

If you are using one of the old versions of PyTorch, check the legacy/* branch for your version, please.


docs: update english translation (correct grammar)

Changed:

plugin because to flip all your Tailwind utilities automatically
to
plugin to flip all your Tailwind utilities automatically.

Thank you


Add Laravel 5.8 support

This old PR is also related https://github.com/HTMLMin/Laravel-HTMLMin/pull/122

+1

Instead of 5.1|5.2|5.3 ... We might change to ^5.1. All next Laravel version should compatible with this library. Except, when something breaks in new Laravel version, then we could add ^5.1,<5.9.

ping @srmklive

What anyone checked if this has been affected by the 5.7 to 5.8 version? no point just changing package versions.
see link https://laravel.com/docs/5.8/upgrade#upgrade-5.8.0

Tagged new release for Laravel 5.8


Setup_audio

Croissant can now recognize sc:AudioObject types, but can't pull any relevant data.

Thanks! Do you have a dataset to test this?

I just added the one that I've been using for testing. It's a mini-version of what I finally want to do with croissant, but maybe the 0-hz-immersion-into-wallbient directory can be used as another test if we want it to operate without looking into multiple directories.

Hi! I added the dataset to the non-hermetic tests, and I'm also hosting the dataset from a Google Drive, which I shared with you and Tim. Also, sorry about the problem with the rebase. I thought I rebased it when I added the dataset, but I did not complete the process. I have now rebased the branch and synced the changes. I hope it works properly now. I also removed the requirements.txt file.

I passed the tests. Is there anything else I should do?


docs(concepts): add warning about incompatible import statements

@c-johnson I wanted to get this started as we're in the middle of a push to hit the remaining issues on this repo. Please feel free to discuss more here or submit a follow up pull request to elaborate after this one is merged.
Resolves #1736

This seems adequate to me. +1 and thanks for the response.


WIP: Feat/move metadata list to annotation

Ⅰ. Describe what this PR does
Ⅱ. Does this pull request fix one issue?

fixes #XXXX
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

/test fluid-e2e

/test fluid-e2e

@TrafalgarZZZ Please take a look when you are back. No urgent. Thanks.


Classic prompt has too many newlines.

Expected:
>>> 3
3
>>> 2**8
256
>>>

Actual:
>>> 3
3

>>> 2**8
256

>>>

Hi Jonathan. We corresponded over email about ptpython (which is absolutely great). Just a note that I, too, would love to see this issue fixed (i.e. no extra space inserted after each return). Thank you.

Should be fixed in this commit: https://github.com/jonathanslenders/ptpython/commit/05e85916bbcf63641ce6e9e47f50f1f54453e780


docker fix and update readme

Some changes to make docker-compose work. Since last commit, the default config settings for the db was updated and as a result speckle could not authenticate with mongo. I also pushed an image to dockerhub for speckle so that the user would not have to build each time.
Please clone and run <$docker-compose up -d> followed by a visit to localhost:8080 to test.
Also, I tidied up the docker section a bit in the readme and added myself to the contributors section :-)

Sweet! Maybe add instructions for using the dockerhub image docker pull bigdoods/speckle? We'll need a release schedule if this keeps going to make sure we're aligned!

I will update dockerhub and this repo when I get a chance Dimitrie.
Sure this would be a good idea. When you make updates, I will check them out from now on and check that there is no breaking changes for docker.
The Dockerfile included builds speckle into an image so you can always build an image to check it runs yourself. The docker-compose uses the image that I have built for speckle to dockerhub. It pulls the image from bigdoods/speckle and one for mongo then sets environment variables for it. Docker-compose daemon then sets up an private network for them to run on.

Merging this and getting rid of my PR


Changes in the API-Rewrite

Hey :)
Do you have sth. like a compact list of all changes you did to names and namespaces in the rewrite?
So that I can calculate the amount of work I have to do to rewrite my bot to the new API stuff.
Regards

Every API namespace path was changed. Currently trying to ensure that no endpoints were lost causing more work. It should just be a matter of mass-find-and-replace.

ok will wait with the next lib update then^^ thx for the information :)
Keep up your good work ;)

Additionally, the library will only support async functions for TwitchAPI, so to that point it might require some work. You can kind of prepare for it by utilizing the Async versions currently supported :)


OpenAPI generate function names if operationIds are unavailable

If operationIds are not provided in the OpenAPI spec, the parser should autogenerate based on "method" and "path" or similar so a consumer an use the spec without having to download and modify it.

This one is done @sangee2004

gptscript version v0.9.2+0f32a9d8
Able to work with openapi yamls even when there are no operationIds present.
Tested with following openapi yaml which does not have operationIds for list and get methods:
# Adapted from the official example at https://github.com/OAI/OpenAPI-Specification/blob/66fe9db36115bbf5425892aaaac6dba5e3c5df59/examples/v3.0/petstore.yaml
openapi: "3.0.0"
info:
  version: 1.0.0
  title: Swagger Petstore
  license:
    name: MIT
paths:
  /pets:
    get:
      summary: List all pets
      tags:
        - pets
      parameters:
        - name: limit
          in: query
          description: How many items to return at one time (max 100)
          required: false
          schema:
            type: integer
            maximum: 100
            format: int32
      responses:
        '200':
          description: A paged array of pets
          headers:
            x-next:
              description: A link to the next page of responses
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Pets"
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
  /pets/{petId}:
    get:
      summary: Info for a specific pet
      tags:
        - pets
      parameters:
        - name: petId
          in: path
          required: true
          description: The id of the pet to retrieve
          schema:
            type: string
      responses:
        '200':
          description: Expected response to a valid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Pet"
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  schemas:
    Pet:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
        tag:
          type: string
    Pets:
      type: array
      maxItems: 100
      items:
        $ref: "#/components/schemas/Pet"
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string

Able to see the following script work successfully:
Tools: http://localhost:8080/openapi

List name of all the dogs.
Get info about Pet Id 3

Tool calls gets generated for getPets and getPetsPetid and works fine.
gptscript --disable-cache localpetstore.gpt
16:05:07 started  [main]
16:05:07 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | <tool call> getPets -> {"limit": 100}
         content  [1] content | <tool call> getPetsPetid -> {"petId": "3"}
16:05:08 started  [get_pets(2)] [input={"limit": 100}]
16:05:08 started  [get_pets_petId(3)] [input={"petId": "3"}]
16:05:08 ended    [get_pets_petId(3)] [output={\"id\":3,\"name\":\"Goldie\",\"tag\":\"fish\"}]
16:05:08 ended    [get_pets(2)] [output=[{\"id\":1,\"name\":\"Rex\",\"tag\":\"dog\"},{\"id\":2,\"name\":\"Mittens\",\"tag\":\"cat\"},{\"id\":3,\"name\":\"Goldie\",\"ta...]
16:05:08 continue [main]
16:05:08 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | Names of all the dogs:
         content  [1] content | - Rex
         content  [1] content | - Buddy
         content  [1] content | - Spike
         content  [1] content | - Rusty
         content  [1] content |
         content  [1] content | Info about Pet Id 3:
         content  [1] content | - Name: Goldie
         content  [1] content | - Tag: fish
16:05:09 ended    [main] [output=Names of all the dogs:\n- Rex\n- Buddy\n- Spike\n- Rusty\n\nInfo about Pet Id 3:\n- Name: Goldie\n- Tag: fis...]
16:05:09 usage    [total=757] [prompt=673] [completion=84]

OUTPUT:

Names of all the dogs:
- Rex
- Buddy
- Spike
- Rusty

Info about Pet Id 3:
- Name: Goldie
- Tag: fish


fallback to original handshake regardless of S1 version

Fixes #4
Manually tested with Twitch and YouTube

(Will get this up on crates.io later today)


Update angular-auth0-aside.markdown

Add Step 3 when creating API

Actually, with Angular, implicit grant is used so the client does not need to be authorized.
See:
Single Page and Native apps do not require further configuration. SPAs can execute the Implicit Grant to access APIs while Native Apps can do Authorize Code with PKCE for the same purpose.

So this step actually isn't even possible, as SPAs are not even listed here, and Angular apps work without this step.


Testing: Try Magic Nix Cache.

Problem:
Nix can be quite slow to populate its cache.
Fix:
Use Determinate Systems "Magic Nix Cache" to cache the nix store values directly via an API.
Commit Details:

Added Magic Nix Cache to the pull requests workflow.

Possibly worth revisiting in the future.


Update README file

Hello, I created the repo but I could really use help with crafting a better README. @mesh029 . Notice I created the repo at #1

Great job team let's ship it! :shipit:


How to infer from saved mask_decoder?

Hi, I'm using main_feat_seg.py to freeze SAM encoder and finetune mask_decoder, and saved (model.module.mask_decoder.state_dict()) checkpoints. How to infer using SAM encoder and saved decoder?
much appreciated!

I also encountered this problem, the saved model cannot be loaded to inference. Is there any good solution?

Could find an effitive method to using the finetuning SAM encoder to infer a unseen image?


change Ok(foo()?) to foo()

It seems that rust compiler cannot optimize Ok(foo()?) to foo(). Even
when eof() is inlined, Try function might not inlined which causes
function call for every eof() call. This change improves performance
about 15% on some cases.

This is surprising!
If true, I have a lot of crates to review

Seems to be true. This is surprising to me too. Is it a known issue?

Thank you!


Tensorflow and flask has an error loading model.

Hello
According to this closed issue, https://github.com/tensorflow/tensorflow/issues/44467
I tried to install h5py == 2.10.0 version on my venv
But still got same error

Please help me
Thanks All!

According to https://github.com/tensorflow/tensorflow/issues/44467 , they used tensorflow 2.1 but I am using 1.4, is that a problem?

But I couldn't get that version.

Please look, and let me get correct version.
Thanks

@liming-developer-python I think you should look once here #39130, check the py ver. you are using, maybe that's creating an issue.

@Abduttayyeb Thanks for your advise
I installed python tensorflow 2.1.0 successfully But have same error continuosly.
Please can you tell me another solution to solve that loading model error?

@liming-developer-python
Please verify if you have 64 bit python version and OS.
Please refer to similar issues : #47365, #47151, #42163,
Could you please update pip using the below commands and check if you are still facing the same issue?
pip install --upgrade pip
pip install tensorflow.


typescript: angle-bracket type assertions

Example from the typescript handbook:
let someValue: any = "this is a string";
let strLength: number = (<string>someValue).length;

tsc handles it but swc errors:
> time ./node_modules/.bin/tsc type-assertion-angle-bracket.ts
        5.74 real         8.84 user         0.35 sys
> time ./node_modules/.bin/swc type-assertion-angle-bracket.ts
error: Unexpected token Some(Word(string))
 --> type-assertion-angle-bracket.ts:3:27
  |
3 | let strLength: number = (<string>someValue).length;
  |                           ^^^^^^

[Error: failed to parse module]
        0.13 real         0.11 user         0.02 sys
>

..but look at that run time! Dang this thing is fast.
Versions:
> ./node_modules/.bin/tsc --version
Version 3.4.5
> ./node_modules/.bin/swc --version
@swc/cli: 0.1.18
@swc/core: 1.0.40

It seems like you have .swcrc with tsx: true. Type cast like  is invalid in tsx files.
Anyway, it's swc's bug.
Swc currently does not consider extension while compiling typescript files.

Ah, good point! Indeed I discovered this while trying swc on a codebase of mixed .ts and .tsx.


Accept and sign CLA

Current behavior

Proposed changes

Checks

[ ] All commits in this Pull Request are signed and Verified by Github.
[ ] All commits in this Pull Request follow the Ockam commit message convention.
[ ] There are no Merge commits in this Pull Request. Ockam repo maintains a linear commit history. We merge Pull Requests by rebasing them onto the develop branch. Rebasing to the latest develop branch and force pushing to your Pull Request branch is okay.
[ ] I have read and accept the Ockam Community Code of Conduct.
[ ] I have read and accepted the Ockam Contributor License Agreement by adding my Git/Github details in a row at the end of the CONTRIBUTORS.csv file in a separate pull request to the build-trust/ockam repository. The easiest way to do this is to edit the CONTRIBUTORS.csv file in the github web UI and create a separate Pull Request, this will mark the commit as verified.

@Lumexralph Thank you for accepting the CLA and taking time to contribute!!
Welcome to the Ockam Community 🥳
If you have questions, as you explore, join us on the contributors discord channel https://discord.gg/bewvnm6zqS


Qt Interactive Renderer Mouse Location Bug

Something isn't right with the Qt renderer mouse locations. When interacting with the axes widget, it detects that the user is hovering over it at the wrong locations... see video below.
Perhaps this is why we can't move the interactive scalar bar widget in #79

Code to reproduce this:
import vtki
from vtki import examples
import vtk

data = examples.load_uniform()

p = vtki.BackgroundPlotter()
p.add_mesh(data.threshold_percent([0.25, 0.75]))
p.add_mesh(data.outline_corners())
p.add_axes(interactive=True)

Another video showing how the mouse location/speed is not working as expected:

I’ll have to investigate this.  There’s several reasons why this might be a problem, and it might have to do with how I’m implementing the class.

This is just flat out weird.... noticed randomly today while working that the interactive stuff was working as expected. Haven't rebooted my computer or made any changes to the plotting code.
I have no idea why it would randomly change behavior....

I’ve also been unable to reproduce this on my end.  I’ll keep an eye out to see if this happens again.

I've met the same problem on both ubuntu and mac, then I update my vtk to v8.2.0. It seems that the problem is caused by some bugs in older version.
Try the new version, please!

Thanks for your suggestion @sjtu-xx ! I tried on my Linux Manjaro and everything works fine.

Thanks for reminding me of this, @sjtu-xx - I upgraded to VTK v8.2.0 a while back and haven't experienced this bug in a while. I'm going to close this since it appears to be a bug on an older version of VTK rather than anything we can control in PyVista.


Added support for controlling a second relay for cooling.

I wanted to control heating and cooling from Home Assistant.
This change adds a second switch in Home Assistant, named 'switch.altherma_cooling', but only if the 'PIN_COOL' is defined in the 'setup.h' file.
The logic will prevent from switching heating and cooling on at the same time (although a Daikin Altherma Hybrid will prever heating over cooling if both are enabled). When switching cooling on while heating is on, heating will be turned off and vice versa.
I also refactored the 'callbackTherm' function to prevent duplicate code, since there can be two relays to control now.
I had one issue with this, it seems like somehow this inverts the relay active state. I changed mine from HIGH to LOW in 'setup.h' and after that everything was working properly. I could not find out why this changed though. Maybe someone else can test and confirm this behavior.
Also, I do not have a lot of c/ c++ or mqtt experience, feedback is always welcome!

@raomin Will this be merged or do you have objections?

I just need a bit of time to have  a look at it.
Thanks @HarmEllis  already,
@philipgo did you try it?

I use an ESP32-wroom with a two channel 5V relay. I have both soldered on a small prototype board with four plastic spacers on the bottom, this fits nicely behind the water pump. The heat pump supplies enough voltage for the esp and relay to switch it on and off without issues.
I have used part of some power cable I had lying around to connect the relay to the heat pump. Note that the voltage will be 110v or 220v, at least for my hybrid heat pump, it is not a low voltage signal, so use appropriate cabling and be careful.

Hi, I noticed now that also @HarmEllis worked for implementing secondary relay for cooling, and that he also submitted a pull request. I did not make refactor of the callbackTherm, mine is quite simple but it is fully working, and in case of simultaneous enabling it gives priority to heating. This is my pull request https://github.com/raomin/ESPAltherma/pull/477.
Sorry for this double effort, I had not seen the feature and I implemented it. It is not important which of the two features will be implemented, the cooling feature I think is useful in espalherma ;)
D.


Null/Dummy backend implementation

The null implementation may be useful for future backends, so it makes sense to implement it for future use.

Implemented.


Terraform provider for GoCD

Provider Repository
https://github.com/nikhilsbhat/terraform-provider-gocd
DCO

[X] I sign this project's DCO

Missed reading the repository, closing this.


0051## -N queens

Description of the Problem
You may copy that from LeetCode
Code
Code

Link To The LeetCode Problem
LeetCode

I'll do this problem.

Problem already solved


Reworking nufmt

Hi!
I still have to resolve some issues, and tests and other things, that's why this is still a draft

Thanks. Looks good so far. Just ping me when you're ready for a review.

There's also a work-in-progress style guide here https://github.com/nushell/nushell.github.io/pull/904

@AucaCoyan
is there at least an nufmt we can run?
if it's the case, i'd vote to land this and address the missing points in follow up PRs :relieved:

I'm fine with landing this as a step in the right direction, with a mind to keep iterating on it until we get it to where we want it to be.

Ok! I will keep working, for sure!
I will mark this PR to review and submit issues to point the places to improve / fix

nice initial work!


Fix missing update

cc @ExpandingMan
Can you check if this fixes #195 (and maybe provide a test-case?).

Seems to fix the issue.


Added a check in send_misocoin to validate to_address is a valid

check the to_address is a valid SHA1 hash to reduce change of errors

tested with various sha1sum from random files on my system. All sucsesfully triggered a transaction
tested with random length inputs - was not accepted and errorr ertuend to user.

Thanks!


Turbo Drive breaks skip links

Navigating to same-page fragments results in a new visit to the current page and fails to set the sequential focus navigation starting point to the target fragment.
Skip to main content

The above should allow users to move the focus starting point to the element with id main-content. But, after Turbo Drive steps in and reloads the page content, the focus starting point is instead reset to the top of the page.
You can see this in action at turbo.hotwire.dev. Try tabbing through the page using the skip link and you'll end up in a loop.
I think this behavior is another result of turbolinks/turbolinks#75. I know you can use data-turbo="false" to opt-out, and that changing the behavior may be deceptively complex (esp. when accounting for native implementations), but the current behavior seems out of step as Turbo seems to embrace an "it just works" experience.

The following workaround from this comment is good enough for me in the meantime:
document.addEventListener('turbolinks:click', function (event) {
  var anchorElement = event.target
  var isSamePageAnchor = (
    anchorElement.hash &&
    anchorElement.origin === window.location.origin &&
    anchorElement.pathname === window.location.pathname
  )

  if (isSamePageAnchor) {
    Turbolinks.controller.pushHistoryWithLocationAndRestorationIdentifier(
      event.data.url,
      Turbolinks.uuid()
    )
    event.preventDefault()
  }
})

...but without access to something like pushHistoryWithLocationAndRestorationIdentifier, I'm not sure how to keep my history in order. Is there a Turbo Drive analogue to the method? Or an approved method of manually adding to the session history?

@cwgw I've opened https://github.com/hotwired/turbo/pull/57 to add test coverage to ensure the correct behavior, but I'm unable to reproduce the issue.
Could you comment on that PR to help me craft the correct HTML and test coverage to fail the test?

@seanpdoyle Thanks for your response. I'm happy to assist with test coverage.
Just to clarify a bit: The issue is not with window location or scroll position but with focus navigation. The html spec says that…

User agents are required to set the sequential focus navigation starting point to the target element when navigating to a fragment.

…and this is the normal behavior that Turbo Drive is preventing. Currently, after navigating to a fragment, the sequential focus navigation starting point is set to the top of page, rendering the skip link useless.
To cover this in a test, you'd need to:

trigger a click on the skip link
trigger a tab keypress
assert that the correct element receives focus (which should be the first focusable element within or after the target element)

@seanpdoyle Thanks for your response. I'm happy to assist with test coverage.
Just to clarify a bit: The issue is not with window location or scroll position but with focus navigation. The html spec says that…

User agents are required to set the sequential focus navigation starting point to the target element when navigating to a fragment.

…and this is the normal behavior that Turbo Drive is preventing. Currently, after navigating to a fragment, the sequential focus navigation starting point is set to the top of page, rendering the skip link useless.
To cover this in a test, you'd need to:

trigger a click on the skip link
trigger a tab keypress
assert that the correct element receives focus (which should be the first focusable element within or after the target element)

After some more investigation, I'm seeing unique behavior in Chrome. In Firefox and Safari the issue is present as I've described it above.
In Chrome, the focus navigation is set correctly after using the skip link once. However, the issue presents after using the skip link additional times.
FWIW I'm running:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

After some more investigation, I'm seeing unique behavior in Chrome. In Firefox and Safari the issue is present as I've described it above.
In Chrome, the focus navigation is set correctly after using the skip link once. However, the issue presents after using the skip link additional times.
FWIW I'm running:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

We are also having a problem with Turbo on anchor links and I believe related to this issue as well.
Say we have two pages with routes, /page-a and /page-b. And page A has an anchor link /page-a/#anchor. If on page A we click on the link that navigates to #anchor, page A is refetched, page scrolls to top and then scrolls to anchor which is quite unexpected.
If I disable default behaviour on the anchor link trigger with e.preventDefault() then we have another problem with history.

Go to page A and click the link that points to the anchor link.
Page scrolls to the anchor point and URL updates as /page-a/#anchor.
Navigate to Page B. Page B loads and url is updated as /page-b.
Now click history back button of the browser. Url updates as /page-a/#anchor but navigation fails. We stay at page B.

I guess a method mentioned above pushHistoryWithLocationAndRestorationIdentifier would solve our problem for the second scenario.
Or https://github.com/hotwired/turbo/pull/125 should fix our issue I believe.
Is there any workaround until a fix is released?

I tested skip-link branch with our app and it fixes the problem I described above with one exception. We do not use caching as it seems to introduce various issues for our app that uses Vue.js heavily. So the problem is, when caching is disabled, navigation between anchors on the same page using history buttons, results in refetching the page thus introducing scroll to top then to anchor issue.
For example:

Go to /page-a. Click /page-a/#anchor-1, then click /page-a/#anchor-2.
Click browser history back then forward buttons.

On each restoration visit to anchors on the same page, page is refetched, browser scrolls to top, then scrolls to the anchor point.
I'm happy to open a new issue, if you think this should be handled separately.


import tensorflow error: No Module Named '_pywrap_tensorflow_internal'

Dear All,
I am new to the CNNs and Tensorflow. I wanted to start my journey from Keras.
At this moment I facing problems with onstalling Tensorflow.
I am using Windows 10, I installed CUDA 9 with cuDNN 7, and was getting the following errors.
The I unstalled it and installed tensorflow-gpu, which automatically installs CUDA 8 with cuDNN 6 and I am still facing the same issue. I tried installing Microsoft Visual C++ 2015 Redistributable Update 3 but with no results. My Python version is 3.5.4 and I am using Anaconda 3.
Do you have any ideas what else can I check?
Here is the error:
Traceback (most recent call last):
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 985, in _gcd_import
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 938, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 985, in _gcd_import
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 938, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\Adam\Anaconda3\envs\tensorflow\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

could you please try running this script and see what it gives you and make sure you handle the issues it will point out to you?

Thanks Carmezim for your tip.
I have already run the script and its results are a bit confusing for me.
This is what I got:
ERROR: Failed to import the TensorFlow module.

Python version is 3.5.

TensorFlow is installed at: C:\Users\Adam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow

Could not load 'cudart64_80.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Download and install CUDA 8.0 from
this URL: https://developer.nvidia.com/cuda-toolkit

First of all I have installed CUDA 9 with cuDNN7, I am not sure why tensorflow is looking for the older version.
Second, during the tensorflow-gpu installation I remeber that CUDA8 was also installed. Nevertheless, I tried to dowlad it from the website again but it seems to no longer be available/distributed.
Do you think I should try to get CUDA8 or I can somehow fix this issue having CUDA9?

If you read the installation docs for windows you'll notice TensorFlow requires and only supports as of now CUDA v8 and cuDNN v6. Later versions will only be supported from TensorFlow v1.5.

 I do not know how could I miss it. It is a bit embarrassing.
Thanks so much again, it works now!

No worries! Glad you got it going! If you face further issues please feel free to ask.
Stack Overflow under the TensorFlow tag is also great to obtain support from the community.
This issue can be closed now.

Thanks again.
I am closing the issue.

I ran the script, its says:
ERROR: Failed to import the TensorFlow module.

Python version is 3.6.

TensorFlow is installed at: C:\Users\User\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow

All required DLLs appear to be present. Please open an issue on the
TensorFlow GitHub page: https://github.com/tensorflow/tensorflow/issues
An exception has occurred, use %tb to see the full traceback.


Request: Fedex Tracking by Reference

Would it be possiable to get this added? I know fedex's api supports it, just no idea how to add it myself. IF anyone could add it and make it a pr or even just provide it, that would be awesome, two values would need to be passed, the Reference and shipping account number, as in my case it would be different then the one used for the api.

This should've been reqeusted on the api github.. My bad.


Entities Serialization

If something should change or is not clear about it let's discuss it here
Serialization is done by Mirroring the object (reflection) and support for complex serialization like JSONAPI is done using CustomMirrorType

I would add more documentation and examples on how to create custom PropertyPolicy

Will definitely add doc later, also there is one issue: serializeaccept Serializable objects so also Arrays and Dictionaries (they privately conform) directly but this isn't suppose to work since their Mirror is quite custom... wondering if I should split the protocols to avoid this.

TODO:

[ ] Documentation
[ ] Solve recursion entry point that allows Serializable types to be passed even if their mirroring isn't suitable for the serialization


AdoptOpenJDK Images are deprecated and we need to convert to Eclipse builds

Describe the bug
AdoptOpenJDK Images are deprecated and we need to convert to Eclipse builds
Environment
Which version of IBM FHIR Server? 4.9.1 and below
IBM Semeru https://github.com/docker-library/official-images/pull/10666
eclipse-temurin:-alpine
https://hub.docker.com/_/eclipse-temurin/?tab=description
Expected behavior
n/a
Additional context
n/a

We have to use UBI.
Pick up the Adoptium one if Semeru is not available.

PR https://github.com/IBM/FHIR/pull/2815

This one caused our 4.9.2 release automation to hiccup and so our schematool image wasn't published at first.  Paul manually addressed the missing image on dockerhub.  Moving forward, we just need to monitor this docker repo as its location may change.

Tested on RHEL8:
ibm-fhir-schematool$ docker run  --add-host=host.docker.internal:<IP_ADDRESS> --env ENV_TOOL_INPUT=$(cat persistence.json | base64 -w 0) localhost/ibm-fhir-schematool:4.10.0
...
2021-10-07 07:51:10.568 00000001    INFO   com.ibm.fhir.schema.app.Main Processing took:   7.063 s
2021-10-07 07:51:10.572 00000001    INFO   com.ibm.fhir.schema.app.Main SCHEMA CHANGE: OK
+ set +x
Skipping refresh-tenants as it's not needed on 'postgresql'

Verified.


Could not find 'unf_ext'

xcode10
macOSX 10.14 Beta
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in to_specs': Could not find 'unf_ext' (>= 0) among 131 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/wxlpp/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0', execute gem env for more information
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1442:in block in activate_dependencies' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1431:in each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1431:in activate_dependencies' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1413:in activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1445:in block in activate_dependencies' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1431:in each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1431:in activate_dependencies' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1413:in activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1445:in block in activate_dependencies' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1431:in each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1431:in activate_dependencies' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1413:in activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1445:in block in activate_dependencies' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1431:in each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1431:in activate_dependencies' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb:1413:in activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems.rb:196:in rescue in try_activate' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems.rb:193:in try_activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:125:in rescue in require' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:39:in require'
from /Library/Ruby/Gems/2.3.0/gems/fir-cli-1.6.7.beta/lib/fir.rb:7:in <top (required)>' 	from /Library/Ruby/Gems/2.3.0/gems/fir-cli-1.6.7.beta/bin/fir:4:in require_relative'
from /Library/Ruby/Gems/2.3.0/gems/fir-cli-1.6.7.beta/bin/fir:4:in <top (required)>' 	from /usr/local/bin/fir:22:in load'
from /usr/local/bin/fir:22:in <main>'

更新了下ruby 出现了另外的错误 because CFPropertyList-3.0.0 conflicts with CFPropertyList (~> 2.3) (Gem::ConflictError)

请更新 fir-cli


Error with Android home directory

I set up all the environment variables as documented.
But when I run the app (via ./gradlew jvmRun) I get a red error icon next to the Android home directory. Is there any way to tell why it shows an error? Because the directory is actually correct and contains the expected folders as specified in the README.
I'm running on macOS and $ANDROID_HOME = $HOME/Library/Android/sdk.

It looks for platform-tools/adb, build-tools/dexdump, and lib/d8.jar in the specified directory.


Display label from command line

It would be nice if a label could be displayed possibly below the logo in the upper left that was specified on the command line.  For example, if I run the container with --label Staging, I would see "Staging" under the logo.

So you would like this feature to be able to distinguish multiple Portainer environments without having to check IP/hostname correct?
One of the next features we will be working (right after RBAC) is multiple endpoint management. We want to give you the ability to manage multiple Docker instances / clusters from the same Portainer instance. We'll also give you the ability to associate a name or label to each endpoint so you'll be able to manage them all easily. It's in the pipe :)

Yep, that's what I'm looking for.  Sounds like I just need to wait for those features to land.  Thanks for your awesome work.

Thanks a lot ! I'll close this issue as a duplicate of #101 and update the other issue with your feedbacck.


Support for .row-cols-* classes in Row

Ah thanks @ladeiko , would you mind resolving the conflicts above?  We updated Row.svelte a few months ago

Ah thanks @ladeiko , would you mind resolving the conflicts above?  We updated Row.svelte a few months ago

I'll try

I'll try

Actually it was quick changes and corrected here: https://github.com/bestguy/sveltestrap/pull/232
Will release new version over weekend.
Thanks for adding this!

Actually it was quick changes and corrected here: https://github.com/bestguy/sveltestrap/pull/232
Will release new version over weekend.
Thanks for adding this!

Thanks

Thanks


Support Attachment.addToTransactions configuration

today attachments are sent along with transactions.
this should be configurable option, as it is on Android and iOS
https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/Attachment.java#L14

If it's possible to see the attachments thru the Transaction, we'd need to add this flag on the SDKs.
First of all, we'd need to double-check if that's even possible, otherwise, we'd just remove this option from SDKs.

Attachments are visible in the performance view, it's only there if the transaction has an attached attachment otherwise it's hidden, so it makes sense to add the flag.


Example usage with Symfony/Commands

Hi there,
maybe I'm just too dumb to get it, but i have an cli-application composed of two commands.
`$app = new Application();
$app->add(new ListFailedProcessesCommand());
$app->add(new RestartFailedProcessesCommand());`
How can i integrate cli-menu using your package to get this to work?

You would add it to the Commands. Here's an example:
<?php

namespace AppBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use AppBundle\Component\OptionChooser;
use RedAnt\Console\Helper\SelectHelper;

class MenuCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        $this
            ->setName('menu')
            ->setDescription('...');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->getHelperSet()->set(new SelectHelper(), 'select');

        $helper = $this->getHelper('select');
        $value = $helper->select(
            $input,
            'What is your favorite food?',
            [
                'hamburger' => 'Hamburger',
                'pizza'     => 'Pizza',
                'sushi'     => 'Sushi',
                'poke'      => 'Poké bowl'
            ]
        );

        dump($value);

        return;
    }
}

Thank you, that is exactly what i'm looking for!


re variable not found

Hi, I was running the examples from the tutorial.
I got to this point:
trace   = pv.infer(program,
                   cores=4,
                   draws=10_000,
                   method='pymc3')

This runs for a while but then fails with:
/python3.8/site-packages/privugger/data_structures/program.py", line 54, in add_observation
    vals = re.search(cons, constraints)
NameError: name 're' is not defined

I guessed that  it was probably regex missing, so I tried just adding it as a reference to that.
Then  I ran it again, to which I got:
python3.8/site-packages/privugger/data_structures/program.py", line 121, in inner
    pm.Normal(f"cons_{i}", distribution,        precision, observed=value)
NameError: name 'pm' is not defined

Could there be missing some imports? or am I maybe doing something wrong?

I now also tried importing pymc3 as pm. It works now

Thanks for the feedack! Did you install privvuger using pip?

Hi :) Yeah, or I don't know if it's relevant but I used pip3


Benefits of Open Source Contribution

Description

To discuss the benefits of open source contribution
Can learn more about open source projects

Mentor, can I be assigned to work on this issue

I want to contribute to this... please assign this issue to me.
Language: English
OpenSouce Batch-1: Chakit Gupta | Contributor

I want to contribute to this... please assign this issue to me. @Aryamanz29


What's the point of linux-firmware-git as a dependancy?

when compiling obs with the PKGBUILD the option for AMF didn't appear until I installed linux-firmware-git so I assumed that linux-firmware-git would be needed to get AMF working in OBS correctly with the PKGBUILD and provided patches. you need a specific firmware to work with the pro driver that linux-firmware-git provides

if you have any other questions feel free to ask them but I'm going to close this issue as complete

I checked, linux-firmware-git is no longer required. With the usual linux firmware, an amf encode appears in obs.

thanks I will update it to reflect that

its updated to use linux-firmware now
https://github.com/OzzyHelix/obs-studio-amf-tempfix/commit/97131cd13b71cae34231bc2f5f8aa154ba61bf92

its updated to use linux-firmware now
97131cd

I think you should probably remove the dependency because I’m almost certain that every arch install has linux-firmware already installed (or at least some variation of it).

its unclear to me if every version of linux-firmware works with this. I worry that removing the dependency will lead to future issues of it not for some people who might not have it


Add columns names based on key values

Hello,
would it be possible to add an option to write the column names of a worksheet based on the keys of the first row added to it ?
For example :
const worksheet = workbook.addWorksheet("test", { columns: true })
worksheet.addRow({username: "foo", email: "bar@baz.com"}).commit()
worksheet.addRow({username: "bar", email: "foo@foz.com"}).commit()
worksheet.commit()

Then the worksheet's columns would be "username" and "email".
The case for this is streaming from multiple sources (same structure of data, this is a sql query actually) into the same file.
EDIT : Nevermind, it's easily done in userland :
if (!worksheet.columns) {
    worksheet.columns = Object.keys(row).map((k) => ({ header: k, key: k }))
}

Hi, could you please help me with this I am also trying to print labels.
labels array are like this -
[
  'Type',
  'Competition',
  'IDB',
  'SOV Focus',
  'Medium',
  'Tone'
]

So, I only need to print these in the header.
          con.query(query, id, function (err, result) {
          if (err) throw err;
          const labels = [];
          result.forEach((result) => {
            labels.push(result.label);
          });
          labels.forEach((label, index) => {
            const columnName = label;

            // Get the column using the column index (in this case, 1)
            const firstRow = worksheet.getRow(1);

            // Set the value of the first cell in the row to the dynamic column name
            firstRow.getCell(36, columnName);
          });
        });


theme

Is it possible to change the theme ?

Yes, it is. I no longer update dark theme in the project, but in my work I use multiple themes (including dark one). Basic approach is to link w2ui.css and then link some w2ui-custom.css, where you overwrite based on your needs. The reason for custom file is to be able to update future versions of w2ui easier. Then you just replace w2ui.css and still can use your w2ui-custom.css


[HW] Andrei Gaman

Name: Andrei Gaman
Email<EMAIL_ADDRESS>Linkedin Profile: https://www.linkedin.com/in/andrei-gaman-ba74b4140
Attach the homework step I screenshots below:

Attach the homework step II screenshots below:

Thank you for the great work, hope you enjoyed the session, See you in another workshop !

Great job here is your badge
https://api.badgr.io/public/assertions/YOBpcjs3QMOMaYm-A6EHdA?identity__email=andrei.gaman994%40gmail.com