Add subject context attribute and update source

Given that subject got approved in the CloudEvents spec, we should start using it.
With this, we will be able to 'split' the previous source into source and subject.
Example:

Prior to the change

source = https://github.com/cloudevents/spec/pull/123

After the change:

source = https://github.com/cloudevents/spec/pull
subject = 123

source will then become more 'usable' for the registry, and there won't be a need for any custom extension as currently proposed there.

/assign


Any CSS required to make it work?

Hello.
I'm trying to use this component, but simply importing it and surrounding the content in the JSX is not working. Is there any required CSS? Perhaps position: relative somewhere or body { height: 100% }?
Thanks in advance.

Hello,
As far as i know, it doesn't requires additional CSS.
Have you tried to set overflowHeight property ? It's set to 0 by default (which hides the component if open property is set to false).

Yes, I've set it but it doesn't work.
On dom, 3 de set de 2017 19:28 manufont<EMAIL_ADDRESS>wrote:

Hello,
As far as i know, it doesn't requires additional CSS.
Have you tried to set overflowHeight property ? It's set to 0 by default
(which hides the component if open property is set to false).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/manufont/react-swipeable-bottom-sheet/issues/1#issuecomment-326835359,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKb2BmyfoOfUQfbkgMTCgBtngrZehXGtks5seyf7gaJpZM4PLQiA
.

Ok, I think I got the problem. I was using overflowHeight={64}. In this case, the content of the SwipeableBottomSheet component must have a height larger than 64px, otherwise it doesn't work. It seems obvious now :stuck_out_tongue:.
Maybe it could throw an error in this situation.
BTW, awesome component!

Great, I'll update the readme example in order to avoid confusion.


Drag on cartoon genome is slightly off

The block moves slightly faster than the mouse. Almost certainly due to the padding either side of the picture

Fixed in smallGenomeDrag commit

f8e2721


How to define the min width to the 'responsive' behavior take effect?

Hello guys!
I'd like to know how could I be defining the min width in order to the 'responsive' behavior take effect?
Looks like that currently it's taking effect when then browser is resized in 50% of the width.
How to override the theme in order to change the responsive behavior?

The breakpoints are set using the material ui theme defaults. If you want to change these, you'll need to customize the material ui theme. You can get started reading about how to do that here https://material-ui.com/customization/theming/.


How can I use TURN servers?

Hi,
I'm trying to use my TURN servers, i thought replacing defaultSTUN or add TURN servers into _iceServers would make it, but it seems not.
I guess i have to create a peerConnection with RTCConfiguration, but i don't know how to create RTCConfiguration. By passing a NSArray maybe ? RTCConfiguration *config = IceServersNSArray [_peerConnection setConfiguration:config] ? (this doesn't work for me, but it must be something like that).
Thanks for any help :D

Did you find a solution to your problem? I have a similar issue! It should work but it doesn't seems to be an IPv6 Bug! But I am not sure.! Read here:
https://bugs.chromium.org/p/webrtc/issues/detail?id=5871


Enable full stack trace on profiler

The profiling output should be used to build a flamegraph.

Blocked on full implementation of client-server architecture


Remove references to com.day.jcr.vault:content-package-maven-plugin

Expected Behaviour
the dependency to the content-package-maven-plugin should be removed. It's functionality has been replaced by the filevault-package-maven-plugin
Actual Behaviour
the reference is present, but unused.

As outlined in https://jackrabbit.apache.org/filevault-package-maven-plugin/migrating.html this plugin is still used for the actual deployment.


add tcp_thr_nodelay

throughput&QPS
UDS : TCP : TCP_NODELAY = 6.16 : 2.39 : 1

I appreciate this contribution! However I will not merge this. The goal of this tool is to measure the latency of different low level IPC messaging transports. It is well known that there is a trade off between latency and throughput. That's why you can test both latency and throughput with different message sizes and decide for yourself. By removing TCP_NODELAY you effectively make the message size for TCP equal to MTU where as the original code makes the effective message size equal to MIN(MTU, message size).


Attempt at Auth :)

@siddontang this is my attempt at #182 :+1:

FYI, this does not support auth for HTTP.

Thanks @ukd1
Not supporting HTTP is ok.

@siddontang that should be fixed; added some docs too :+1:

@siddontang ok, I've fixed the is_authed --> isAuthed :+1:

Cool, Thank you very much! @ukd1


TUTORIAL!!!!

PLEASE MAKE A TUTORIAL ONJ HOW TO SETUP THE BOT (MONGODB AND ALL..)

Is it possible to make it have a timer or smth like that. Like if the bot goes offline for let's say 2 mins then it'll send the alert.

Is it possible to make it have a timer or smth like that. Like if the bot goes offline for let's say 2 mins then it'll send the alert.

Hey there, can you please create a new feature request issue for this?
It's a lot easier for me to track of what needs to be done if they're all in separate issues. Thank you! :)


Update ring to 6.2.1

Please update my adapter ioBroker.ring to version 6.2.1.
This pull request was created by https://www.iobroker.dev c0726ff.

RE-CHECK!

RE-CHECK!


cant see my human readable errors in self hosted

hi guys
i have a problem with sentry
2 month ago i configured sentry in my project and we used self hosted sentry.i could'nt see any human readable error so i uploaded my debug-files and mapping.txt file as proguard and i could see a human readable error and everything was okay for a month(when i realsed a new version of my app i uploaded debug-files and mapping.txt and everything was okay).its about a month i can not see any human readable errors even if i uplaod new debug-files or mapping.txt and i cant find any solution to solve my problem.i used sentry v6.5.1.can anyone help me

@mahdiqdi please edit your issue description with more context using our bug template https://github.com/getsentry/sentry-dart/issues/new?assignees=&labels=&template=BUG_REPORT.md
right now I don't know what's wrong nor your setup, thanks.

Okay.i thought someone could help me with my description.i will make a issue with your template later.thanks🙏

Closing the issue as a part of large repository cleanup, due to it being inactive and/or outdated.
Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it.
Cheers!


update.sls: start transactional-update timer

In the update process we disable the transactional update timer and re
enabled it after update the machine. However, just re enable it is not
enough. We need to start the timer. Otherwise, the update service will
not run and consequently no updates is installed. This commit adds in
the update.sls a step to start the timer after re enabling it.
bsc#1141675
Signed-off-by: José Guilherme Vanz<EMAIL_ADDRESS>

There is an identical state already, can we use that and fix the logic check? https://github.com/kubic-project/salt/blob/master/salt/orch/update.sls#L521

Yes, I've submitted the wrong patch. I've updated the branch with other patch. In this patch I did not add a step. I just changed the salt state to service.running instead of service.enable.

FYI @ release-eng for backport.
@ QA please take a look and determine if we need another test, thanks.

I don't know about the CI, sorry. Maybe @pablochacin or @tdaines42 can help here.. can you?

The CI is broken atm. Let's go ahead and merge this and we will do manual testing with the Maintenance Update.


Install Numaflow CRDs as a depenency

Modifications
Since Numaplane is managing Numaflow, it is a dependency for sure. This PR includes the installation process with the Numaflow minimal CRDs.  If the destination environment already have Numaflow installed then this is just a noop. But it will be helpful for clusters that don't.
Verification
Verified in a local cluster

@xdevxy  Do we need this in our install.yaml? I just noticed that because this is here, and because we brought this file over to numa-manifest-generator, it is trying to install the numaflow CRDs there, which it should not, because that's part of the "numaflow" manifest installation

yeah, after we merged the addon, I think this is no longer needed internally, but this may still needed for open source users. Will this bring any issues if numaplane manifest try to install numaflow CRD again?

yeah, after we merged the addon, I think this is no longer needed internally, but this may still needed for open source users. Will this bring any issues if numaplane manifest try to install numaflow CRD again?

I definitely think it will create opportunity for error to have this installed by 2 things.

I guess I do see why you wanted to include it here - the idea was that somebody could basically deploy numaplane and have what they need. But if we do keep it over here, then maybe we should have a separate manifest that gets created which doesn't include them? cc @whynowy

yeah, make sense to separate it out :)  do you mind creating an issue for it? Thanks!


Lint for unopened/unclosed tags/variables/comments

Description
Check text nodes without verbatim for the delimiters like {{

Dupe of #98.


support for virtualbox and vmware workstation

it could be very useful to be able to install  virtualbox and vmware on rancherOS, because if you want to run packer.io, I tried to build a docker image with vbox and vmware but both fails because needs extra modules in kernel.

It seems that not so many people need it, it does not have a high priority for us.

well could you give me some indications how to do it, I could try and if works PR.
For Vbox I Guess it will be easier because de code is open but for vmware I'm not sure.

You could solve this with a container like we did for parallels: https://github.com/outstand/docker-parallels-tools


Aspire: Support dockerfile.v0 resource

We need to support the dockerfile.v0 resource type, to allow Aspire applications to build and deploy containers from dockerfiles.  This is how they support non dotnet languages.  See https://github.com/dotnet/aspire/pull/1059 for the support in Aspire.

Added support in Azd as part of PR https://github.com/Azure/azure-dev/pull/3075
cc: @mitchdenny @davidfowl @bradygaster

Thanks!


Do not use 'which' to check for command availability

Per this stackoverflow post do not use 'which' to check for command availability.
Swapped it out in favor of command -v.
Passes tests.

Thanks @buddyp450! This makes sense to me, :+1: for portability.
The only concern I have - is it possible this will actually execute the command if it doesn't support the -v flag? If that doesn't seem like an issue happy to merge.

disregard my earlier comment - i misread the commit. lgmt, thanks @buddyp450!


torch._dynamo.optimize is called on a non function object with Torch 2.0

System Info
- `Accelerate` version: 0.17.1
- Platform: Linux-4.14.0_1-0-0-43-x86_64-with-glibc2.10
- Python version: 3.8.13
- Numpy version: 1.22.0
- PyTorch version (GPU?): 2.0.0+cu117 (True)
- `Accelerate` default config:
        - compute_environment: LOCAL_MACHINE
        - distributed_type: NO
        - mixed_precision: fp16
        - use_cpu: False
        - num_processes: 1
        - machine_rank: 0
        - num_machines: 1
        - gpu_ids: 0
        - rdzv_backend: static
        - same_network: True
        - main_training_function: main
        - deepspeed_config: {}
        - fsdp_config: {}
        - megatron_lm_config: {}
        - downcast_bf16: no
        - tpu_use_cluster: False
        - tpu_use_sudo: False
        - tpu_env: []
        - dynamo_config: {'dynamo_backend': 'INDUCTOR', 'dynamo_mode': 'default', 'dynamo_use_dynamic': True, 'dynamo_use_fullgraph': True}

Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[ ] My own task or dataset (give details below)

Reproduction
In the example of text_to_image fine tuning task, the tracing behavior of accelerate + torch 2.0 + dynamo mode ON is not supported with Runtime Error of "torch._dynamo.optimize is called on a non function object. If this is a callable class, please wrap the relevant code into a function and optimize the".
The bug is triggered in line #729 when dynamo try to capture the unet model behavior.
Expected behavior
With accelerate + torch 2.0 + dynamo mode OFF, the task is executed successfully.

Seems like an error for the PyTorch repo :-)

same issue here... Only occurs when multi-gpu is used.

Hello, please see if this PR https://github.com/huggingface/accelerate/pull/1318 fixed this issue


Support for filetype-specific styling options

Describe the solution you'd like
Currently i'm able to set global styling options for bold and italic text. I dont' like them in a code so i turned them off, but i would like to be able to enable them for specific filetypes where it makes more sense like norg or markdown.
Additional context
No response

I'm not sold on adding this functionality into our theme itself due the potential cost of autocmds and such but I tried this locally and think you could pull it off:
vim.api.nvim_create_autocmd({ "BufEnter" }, {
	callback = function()
		local italic = false
		if vim.bo.filetype == "markdown" then
			vim.print("markdown")
			italic = true
		end
		require("rose-pine").setup({
			styles = { italic = italic },
		})
	end,
})

You may want to do your own research on autocmds and such as I believe you will want to assign a group to the autocmd to prevent duplication. Hoping between my init.lua and a readme.md successfully toggles italic on and off, however. Hope this helps.

The solution works well for regular filetypes like Markdown, but the problem is that Norg is a custom filetype provided by the Neorg plugin. Using autocmds doesn't seem to work for Norg buffers. Considering the popularity of the Neorg plugin, maybe there is a reason to add specific support for it, especially since the customization problem with other filetypes is basically resolved at this point, which could potentially lessen the overhead of approaching the problem. But at the same maybe it's something that should be solved from the side of Neorg.
P.S I had to slightly modify your code by adding 'vim.cmd('colorscheme rose-pine')':
vim.api.nvim_create_autocmd("BufEnter", {
  callback = function()
    local bold = false
    local italic = false
    local filetypes = {"norg", "markdown"}
    if vim.tbl_contains(filetypes, vim.bo.filetype) then
      bold = true
      italic = true
    end
    require("rose-pine").setup({
      styles = { bold = bold, italic = italic },
    })
    vim.cmd('colorscheme rose-pine')
  end,
})

After reading more about Neorg it looks like it should set the filetype but others are having issues (see https://github.com/nvim-neorg/neorg/issues/937). This comment has a fix that may help.

Nah, i think it's not the same thing, because in case of norg, it's not just about bold and italic rendering, the whole rendering of Neorg breaks because of the autocmd. So i'm willing to think it's not that easy to fix because Neorg's rendering is more complex.

I've tried to set norg type manually, it doesn't help.

Are you able to provide some highlight groups from a Neorg file? For example, if you would want _some text_ to be italic could you do :Inspect over _some text_?
Personally, I disable italic via styles.italic = false but re-enable it for comments via highlight_groups = { Comment = { italic = true } } so if they have their own highlight groups you could override them as such.

Running ':Inspect' on italic character gives this:
Treesitter

@spell.norg links to @spell norg
@neorg.markup.italic.norg links to @markup.italic norg
@neorg.markup.italic.norg links to @markup.italic norg

In that case, you should be able do:
require('rose-pine').setup({
  highlight_groups = {
<EMAIL_ADDRESS>= { italic = true }
  }
})

Yep, it looks like it actually works, big thanks!


Feature request: use pprint with jdeserialize

let's say i have this:
import java.io._
case class Person(name: String)
val person = Person("john")
val oos = new ObjectOutputStream(new FileOutputStream("file.ser"))
oos.writeObject(person)
oos.close()

and one year later, I find the file.ser file, but I've lost the source code with the Person class definition.
I can use jdeserialize as follows:
$ java -jar jdeserialize.jar file.ser
read: application.Person _h0x7e0002 = r_0x7e0000;
//// BEGIN stream content output
application.Person _h0x7e0002 = r_0x7e0000;
//// END stream content output

//// BEGIN class declarations (excluding array classes)
class application.Person implements java.io.Serializable {
    java.lang.String name;
}

//// END class declarations

//// BEGIN instance dump
[instance 0x7e0002: 0x7e0000/application.Person
  field data:
    0x7e0000/application.Person:
        name: r0x7e0003: [String 0x7e0003: "john"]
]
//// END instance dump

It would be great if I could use pprint together with jdeserialize as follows:
@ val fis = new ObjectInputStream(new FileInputStream("file.ser"))
@ pprint.readObjectAndPprintln(fis)
case class Person(name: String)
val person = Person("john")

What do you think about this feature request?
However it seems that the jdeserialize project is not maintained any more. Do you know any alternative library?

Integrating with an ancient unmaintained library is probably out of scope

The feature request can be rephrased as follows:
Feature request: use pprint on serialized files (integrating with jdeserialize, or any other similar updated library, or implementing it from scratch on pprint)


Add an --id flag to the inspect command

What problem does your feature solve?
It's currently quite difficult to inspect contracts on the Futurenet.
What would you like to see?
Would be nice to add an --id flag to the inspect command.
What alternatives are there?
Decode the contract code buffer array on the wasm? I haven't really tried to find a work around here tbh.

This is a relatively small thing to add, except we need to decide where the .wasm file comes from. There are some options:

Download via the soroban-rpc. (Requires running the RPC, which is pretty heavy.)
Download via Horizon. (Requires asking Horizon to expose endpoints for downloading contracts.)
Download via Archives. (Requires us to write some basic ingestion logic for ingesting archives, may require downloading several GBs of data to get at the one contract.)


Crash

I absolutely love the Roomba plugin.  I've combined it with the homebridge-people plugin so that Roomba runs only when no one is home.  When someone arrives home, it tells Roomba to pause and dock.  Absolutely fantastic!
But I've been having this crash, which crashes Homebridge completely.  This occurs when Homebridge sends the command for Roomba to turn off.  Roomba may or not be running at this time.
[10/10/2016, 11:43:30 AM] [Roomba] Roomba Pause & Dock!
[10/10/2016, 11:43:31 AM] [Roomba] Roomba is Pause!
[10/10/2016, 11:43:34 AM] [Roomba] Roomba Checking the Status!
[10/10/2016, 11:43:34 AM] [Roomba] Roomba Get Status!
C:\Users\UserName\AppData\Roaming\npm\node_modules\homebridge-roomba\index.js:8
1
var status = JSON.parse(body.robot_status);
^
TypeError: Cannot read property 'robot_status' of undefined
at Object. (C:\Users\UserName\AppData\Roaming\npm\node_modules\h
omebridge-roomba\index.js:81:65)
at Request.self.callback (C:\Users\UserName\AppData\Roaming\npm\node_module
s\homebridge-roomba\node_modules\request\request.js:187:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (C:\Users\UserName\AppData\Roaming\npm\node_modules
homebridge-roomba\node_modules\request\request.js:1048:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage. (C:\Users\UserName\AppData\Roaming\npm\node_
modules\homebridge-roomba\node_modules\request\request.js:969:12)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)

Update for anyone having a similar problem.  I uninstalled the plugin and installed Roomba980 from:
https://www.npmjs.com/package/homebridge-roomba980
I also installed dorita980, which is required for the roomba980 plugin.  I also updated my config.json file to reflect the different settings for the Roomba980 plugin.
Everything is working great now.  No issues after a couple days.

Thank you very much.
I upgraded it, so I will close this.


Fix thumbor deps issue

We do the following here:

Remove libjasper-dev from THUMBOR_VENV_DEPENDENCIES.
Reason: This dependancy wasn't really needed by us for using
thumbor. It was a dependancy for using open-cv as Imaging Engine
in thumbor but we use PIL (Pillow now) as Imaging Engine.
Add zlib1g-dev, libfreetype6-dev to THUMBOR_VENV_DEPENDENCIES.
Reason: These are dependancies of Pillow which are required for it
Pillow to function. Since we use Pillow in thumbor as Imaging Engine
we need these. Stuff before this didn't break because we also use
Pillow in development Environment and have these dependancies
installed from VENV_DEPENDENCIES as well.

Relevant conversation about this happened in:
https://chat.zulip.org/#narrow/stream/development.20help/subject/zulip-thumbor-venv/near/487981
https://chat.zulip.org/#narrow/stream/backend/subject/thumbor/near/490169

Looks great, merged, thanks @adnrs96!  I made one change to the second commit's commit message to explain why the change was required.


Does glaze handle structs with static members ?

I have the following class
class Test
{
public:
    static constexpr std::string_view id{ "test" };
    std::string test = "test";
    int testInt = 125;
};

and this json string to be read into the Test class
{"id":"test","test":"testaaa","testInt":127}
does the id member variable being static affect glaze? Or it can handle these cases by default?

Thanks for asking. Pure reflection will only count the non-static members of the class. But, Glaze does support static constexpr through a glz::meta:
template <>
struct glz::meta<Test>
{
    using T = Test;
    static constexpr auto value = object("id", &T::id, &T::test, &T::testInt);
};

[!IMPORTANT]
An explicit name is required for static constexpr variables. The "id" in is not optional. This is because std::is_member_pointer_v is only true for non-static members, and this is how Glaze determines if simple name reflection is viable.

Here is a working example of your problem on compiler explorer: https://gcc.godbolt.org/z/q988GoGdY
I'll update Glaze's documentation to make this clearer.


Add summary info

I think it would be useful to have some summary of the execution in addition to exitcode, like

XXX files checked
Y of them are not formatted correctly / Everything is OK

With maybe even list of files having issues.
The use case is when I integrate the script i.e. in git pre-commit hook and I don't want to see the full diff, but I'd like to have some useful human-readable output, so developers know where are the issues

For a git pre-commit hook, I think it would be more suitable to use:
git clang-format --diff

But still, summary info isn't a bad idea.


Remove AstLiteral use in data/row.rs

@boomkim It is just a very tiny one, I missed this in the prev PR review.
ref #361
AstLiteral use in data/row.rs was unnecessary.
There's no need to call evaluate_stateless which we already know the value is Value::Null.
(None, None, true) => Ok(&Expr::Literal(AstLiteral::Null)),

can be simply replaced to
(None, None, true) => Ok(Value::Null)

Codecov Report

Merging #363 (35841d0) into main (a55611e) will decrease coverage by 0.01%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main     #363      +/-   ##
==========================================
- Coverage   91.20%   91.19%   -0.02%
==========================================
  Files         133      133
  Lines        8234     8235       +1
==========================================
  Hits         7510     7510
- Misses        724      725       +1

Impacted Files
Coverage Δ

src/data/row.rs
84.09% <83.33%> (-1.96%)
:arrow_down:

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 a55611e...35841d0. Read the comment docs.


Support feature selection for device

I encountered the following error
DEBUG:kp:[VALIDATION]: Validation - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08740 ] | MessageID = 0x6e224e9 | vkCreateShaderModule():  SPIR-V Capability Float64 was declared, but one of the following requirements is required (VkPhysicalDeviceFeatures::shaderFloat64).
The Vulkan spec states: If pCode is a pointer to SPIR-V code, and pCode declares any of the capabilities listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://vulkan.lunarg.com/doc/view/1.3.296.0/windows/1.3-extensions/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-08740)

So I added the ability to 1) report the available features and 2) request features when creating the device.

ah - that API tells you what features are available. They have to be requested explicitly when creating the device in order to use it. I'll look into that too

I can't figure out why the python test is crashing. It works on my machine™


Dynamic/Custom Adaptive card implementation.

Hi Team,
Earlier using VA Template we have customized the adaptive card using for loops and adaptive card nugget packages.
Our requirement is we have Add/Remove buttons, where on 'Add' button click new Input text has to be added and on 'Remove' button click one input text has to be removed from adaptive card prompting and finally display list of results as another adaptive card.
Inputs:
List of name and age

Output:

How to achieve this in Bot Composer?

@LakshummaC - You can see a solution discussed here (though you may need to export the runtime in order to get that to work in Composer)
Are you targeting Web Chat or Teams?

@LakshummaC - You can see a solution discussed here (though you may need to export the runtime in order to get that to work in Composer)
Are you targeting Web Chat or Teams?

Currently our target is WebChat.


[Bug] When clicking the close button while the program is in full-screen mode, the entire screen turns black.

Search before asking

[X] 我在 issues 列表中搜索，没有找到类似的内容。
I searched in the issues and found nothing similar.

Pake version
2.5.1
System version
macbook air  M1
Node.js version
v19.8.1
Minimal reproduce step

clicking the close button while the program is in full-screen mode, the entire screen turns black.

What did you expect to see?
exit, for example, to the desktop.
What did you see instead?
black
Anything else?
none
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Thank you for your feedback. It is indeed an underlying bug. I have fixed it in the dev code and will release an official version within this week.

<EMAIL_ADDRESS>


Exclude option

Is there a way if for example i attach a slideLeft event on my entire #app but want exclude the swipe if on a certain element?
in my case i have a page with a table on mobile where overflow y is on to scroll the table content so this should not fire the on swipe ideally.
Thank you in advance.

I used the following on the table:
v-touch:start="disableSwipe" v-touch:end="enableSwipe"
with the 2 methods:
methods: {
disableSwipe: function(){
this.$store.state.enableSwipe = false
},
enableSwipe: function(){
let _this = this
setTimeout(function(){
_this.$store.state.enableSwipe = true
}, 200)
}
}
Then a condition in my #app swipeEvent. Had to use a small delay in the enableSwipe though else it was firing it still.
Not sure its optimum, please let me know in case there is better option :)

I too was looking for this in the docs. It would be useful to be able to put a class on an element
 so that when touching these elements v-touch is not triggered if it's set on the parent.
My use case is similar to yours, mobile horizontally scrolling table I need to stop it firing swipes on the parent when interacting with it.

If the raw event was exposed in the v-touch callback function params we might be able to check for something like that.

I'm not understand this issue very clearly for my bad English. And @alexcroox mentioned the raw event, all v-touch callbacks have the raw event object as their last parameter.

I managed to do it like this, however it would be nice if the plugin supported this and with different classes for ignoring different actions eg swipe, touch, swipe direction etc for maximum flexibility.

methods: {
    goBack(direction, event) {
      if (!event.target.closest('.swipe-ignore')) {
        // Perform action
      } else {
        // Ignore
      }
    }
  }

basically event.target.closest walks up the dom tree from the target trying to find any parents with the class .swipe-ignore. This is useful because it means I can put the ignore class as high up as a I like in the tree.
Note .closest() isn't supported by IE so would need this polyfill: https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#polyfill


Clean up delphi_utils

delphi_utils is a big hodge-podge of a package with a lot of dependencies, thus it has a relatively large net footprint and takes a while to install.  Lets see if we can lessen that.

[x] Move packages in setup.py that are unnecessary for a downstream user but still used in test/lint/ci, like: darker, freezegun, mock, moto, pydocstyle, pylint, pytest-cov, pytest, requests-mock.  They can be put into something like a "requirements.test.txt" file that gets installed via the CI and/or Makefile.
[x] Remove from setup.py any unused packages, as gitpython appears to be.
[ ] The covidcast package has its own wacky imports, which includes a bunch of imaging/graphics and geospatial libraries.  It is only used in the delphi_utils.validator module for pulling data from the API and can be replaced with the lighter-weight delphi_epidata client instead.  Doing that is not quite as easy as moving requirements entries around, and it is covered in in #1972.

We could even put some of the esoteric usage and/or larger installation dependencies behind package "extras".

If we combine this with migrating over to pyproject.toml, we could use the optional-dependencies interface to separate out the dev dependencies. See here for an example of migrating over to pyproject.toml.

migrating to using pyproject.toml helps unlock this issue: https://github.com/cmu-delphi/covidcast-indicators/issues/1839

Gonna reopen this issue. Also, gonna edit your OP @melange396 so the subtasks are clearer because #1984 only addressed one of the subtasks

Thinking about the unused package subtask, I found deptry and ran it on _delphi_utils and it reported this:
(env) ➜  _delphi_utils_python git:(1972-replace-covidcast) ✗ deptry .
Scanning 31 files...

data_proc/geomap/geo_data_proc.py:13:8: DEP003 'requests' imported but it is a transitive dependency
data_proc/geomap/source-file-sanity-check.ipynb:23:8: DEP003 'matplotlib' imported but it is a transitive dependency
delphi_utils/flash_eval/eval_day.py:6:1: DEP003 'scipy' imported but it is a transitive dependency
delphi_utils/validator/datafetcher.py:13:8: DEP003 'requests' imported but it is a transitive dependency
requirements.txt: DEP002 'scs' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'darker' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'freezegun' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'mock' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'moto' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'pydocstyle' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'pylint' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'pytest-cov' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'pytest' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'requests-mock' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'xlrd' defined as a dependency but not used in the codebase
Found 16 dependency issues.

For more information, see the documentation: https://deptry.com/

These will be handled by #2014, as they get moved to dev.
requirements.txt: DEP002 'darker' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'freezegun' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'mock' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'moto' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'pydocstyle' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'pylint' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'pytest-cov' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'pytest' defined as a dependency but not used in the codebase
requirements.txt: DEP002 'requests-mock' defined as a dependency but not used in the codebase

xlrd is needed by Pandas (maybe we should write pandas[excel] so this dependence is explicit?).
scs is explicitly version pinned for cvxpy because of upstream issues
Seems like a good idea to explicitly list requests as a dependecy
flash we can probably ignore until needed and geomap scripts we can ignore until needed

TLDR:

[ ] replace pandas with pandas[excel] and add requests explicitly to the dependecy list


jquery required?

Hello,
after using yarn add vue-color
and
import {Compact} from 'vue-color';
import Vue from 'vue';
Vue.component('v-color-picker', Compact);

I am receiving a webpack error of
              ERROR  Failed to compile with 1 errors

This dependency was not found in node_modules:

* jquery

I tried importing it into a component - as opposed to registering it as a global component - and received the same issue.
I've searched the /node_modules/vue-color/, and the only references to jquery are in comments about functions.  I checked tinycolor2 and material-colors and cannot find a reference for jquery.
I've looked through the package, and it is installing version 2.0.5.
Using laravel's default mix webpack config.
This is very baffling!

running yarn add jquery solves this, obviously.

with no need for jquery


email.txt template missing from installation.

email.html is provided as a template, but email.txt wasn't. I hope this quick fix solves that. Thank you, so far, this plugin is working marvellously.

Thank you for your kind words. I'll push this to PyPi as soon as I get home.

UPDATE: Pushed to PyPi as version 0.1.4


Rule for  Copyright Notice/License header.

Would be great to have rule that check for presence of specific header in the typescript file, e.g something similar to checkstyle header config: http://checkstyle.sourceforge.net/config_header.html

duplicate of #155


restore ddof support in std

[x] Closes #2440
[x] Tests added
[x] Tests passed
[x] Fully documented, including whats-new.rst for all changes

It looks that I wrongly remove ddof option for nanstd in #2236.
This PR fixes this.

Do we need a bugfix release for this and #2446 ?

Thanks, @dcherian.
I am not sure whether it is urgent. Maybe we can wait for a few weeks to finish up some ongoing PRs?

A bug fix release is probably a good idea. It's not much effort.


Fix EnclaveInfo integration test under Gramine

This test has been updated to work under both GraalVM and Gramine. We used to have native code that read the sections of the .so file to extract out the enclave metadata. This is no longer needed and has been removed. Instead the sgx_sign tool is used to extract out the SIGSTRUCT data structure. Gramine writes this structure out in the .sig file. This isn't generated by gramine-direct in simulation mode, so the manifest file is checked instead.
SgxMetadataEnclaveCss, which represents the SIGSTRUCT, has been renamed to SgxEnclaveCss to better reflect the naming in the SGX SDK code.
The generateEnclaveMetadata task has also been improved to use the SIGSTRUCT dump from sgx_sign, rather than the fiddly text output.

Currently not able to test this on my SGX VM due to the following error:
AttestationTests > EnclaveInfo matches SIGSTRUCT() FAILED
    com.r3.conclave.host.EnclaveLoadException: Unable to start enclave
        at app//com.r3.conclave.host.EnclaveHost.start(EnclaveHost.kt:459)
        at app//com.r3.conclave.host.internal.EnclaveHostService.start(EnclaveHostService.kt:39)
        at app//com.r3.conclave.integrationtests.general.commontest.TestEnclaveTransport.startEnclave(TestEnclaveTransport.kt:33)
        at app//com.r3.conclave.integrationtests.general.commontest.AbstractEnclaveActionTest$getEnclaveTransport$1$1.invoke(AbstractEnclaveActionTest.kt:90)
        at app//com.r3.conclave.integrationtests.general.commontest.AbstractEnclaveActionTest$getEnclaveTransport$1$1.invoke(AbstractEnclaveActionTest.kt:84)
        at app//com.r3.conclave.integrationtests.general.commontest.AbstractEnclaveActionTest.getEnclaveTransport$lambda$4$lambda$3(AbstractEnclaveActionTest.kt:84)
        at java.base@17.0.5/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
        at app//com.r3.conclave.integrationtests.general.commontest.AbstractEnclaveActionTest.getEnclaveTransport(AbstractEnclaveActionTest.kt:84)
        at app//com.r3.conclave.integrationtests.general.commontest.AbstractEnclaveActionTest.enclaveHost(AbstractEnclaveActionTest.kt:53)
        at app//com.r3.conclave.integrationtests.general.commontest.AbstractEnclaveActionTest.enclaveHost$default(AbstractEnclaveActionTest.kt:52)
        at app//com.r3.conclave.integrationtests.general.tests.AttestationTests.EnclaveInfo matches SIGSTRUCT(AttestationTests.kt:54)

        Caused by:
        java.lang.IllegalStateException: Not a PCK cert path: 3
            at com.r3.conclave.common.internal.SgxTypesKt.toPckCertPath(SgxTypes.kt:622)
            at com.r3.conclave.host.internal.attestation.DCAPAttestationService.doAttestQuote(DCAPAttestationService.kt:19)
            at com.r3.conclave.host.internal.attestation.DCAPAttestationService.doAttestQuote(DCAPAttestationService.kt:17)
            at com.r3.conclave.host.internal.attestation.HardwareAttestationService.attestQuote(AttestationService.kt:27)
            at com.r3.conclave.host.internal.attestation.HardwareAttestationService.attestQuote(AttestationService.kt:23)
            at com.r3.conclave.host.EnclaveHost.getAttestation(EnclaveHost.kt:547)
            at com.r3.conclave.host.EnclaveHost.updateAttestation(EnclaveHost.kt:538)
            at com.r3.conclave.host.EnclaveHost.start(EnclaveHost.kt:431)
            ... 10 more

The hello world sample on the same VM has the same error, which is known to have worked. It seems, at least on my VM, we're using a different method to verify the PCK.

I need to re-run the integration tests manually on VM with the updated instructions for Gramine RA.

I can confirm that the test passes for Gramine debug.

Which test are we talking about?

No idea how I closed this one @shamsasari , was just adding a m

Also, is there a Jira?

The EnclaveInfo test in AttestationTests

There are building issues, I believe due to renaming of functions or cherry pick from other repo? AttestationTests seem to have wrong imports


(Linux) version `GLIBC_2.38' not found

ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /home/xxx/.local/lib/python3.10/site-packages/pyMeow/pyMeow.so)

pyMeow is compiled on Manjaro, which likely uses a more recent version of GNU libc than your distribution. The solution for you is to compile pyMeow on your own distribution.

pyMeow is compiled on Manjaro, which likely uses a more recent version of GNU libc than your distribution. The solution for you is to compile pyMeow on your own distribution.

so do i just compile it and thats it?

Feel free to reopen if you still have issues.


Update Hosting.md

Add step by step instruction on "How to Install Sails.js Framework with Nginx as a Reverse Proxy on Ubuntu 20.04"

[proposal] Add step by step instruction guide on "How to Install Sails.js Framework with Nginx as a Reverse Proxy on Ubuntu 20.04"


Add Ellipsoid options from some missing places.

There are still several places where the ellipsoid parameter is not getting passed through certain layers of the API, and the default ellipsoid is used instead.  In particular the terrain & imagery providers, I know several of them are specifically for Earth but I can imagine a case where one wanted to select a different Earth-based ellipsoid than WGS84.  @kring if you have time I'd appreciate some feedback here, as my changes to terrain/imagery are mostly copy-and-paste from providers that did pass the ellipsoid option through.
This will be useful for non-Earth visualization, for example the recent Mars discussion and the upcoming Pluto encounter, etc.
Questions

[x] Enabling Earth terrain on non-Earth ellipsoids causes bounding spheres to run wild, and visibility calculations are wrong.  See example below, un-comment one line.  Is this expected? (Answer: Yes, these bounding spheres come from the server, not Cesium, so cannot be customized).
[x] Core/RectangleGeometryLibrary constructs a scratch default GeographicProjection on line 72 and then uses it without any option to override it, guaranteeing use of WGS84, although this doesn't appear to be called by a typical empty CesiumViewer.  Is there a performant way to add and use an ellipsoid option or projection option here?  (Answer: not a priority at this time.)

TODO

[x] Tests
[x] CHANGES.md

Here's an example of a crazily distorted custom ellipsoid:
var ellipsoid = new Cesium.Ellipsoid(200000, 200000, 100000);

var imagery = new Cesium.TileMapServiceImageryProvider({
    url : Cesium.buildModuleUrl('Assets/Textures/NaturalEarthII'),
    ellipsoid : ellipsoid
});

var terrain = new Cesium.CesiumTerrainProvider({
    url : '//assets.agi.com/stk-terrain/world',
    requestWaterMask : true,
    requestVertexNormals : true,
    ellipsoid : ellipsoid
});

var viewer = new Cesium.Viewer('cesiumContainer', {
    mapProjection : new Cesium.GeographicProjection(ellipsoid),
    imageryProvider : imagery,
    //terrainProvider : terrain,
    baseLayerPicker : false
});

viewer.scene.globe.enableLighting = true;

Enabling Earth terrain on non-Earth ellipsoids causes bounding spheres to run wild, and visibility calculations are wrong. See example below, un-comment one line. Is this expected?

Yeah I can't imagine this going well.  The horizon occlusion point is computed based on the WGS84 ellipsoid (or whatever was used when the tiles were generated).  If you then use a different ellipsoid to test it, you'll get... something.

Your changes all look fine to me!

Thanks @kring.  To be clear, this PR is not about swapping ellipsoids on-the-fly.  The sample code above constructs a single ellipsoid and specifies it three times while constructing the viewer and its terrain and imagery, so ideally all layers of Cesium should be on the same ellipsoid.  Indeed the tile bounding spheres do work for the imagery-only case in this PR, but when terrain is enabled, somehow the bouding spheres get Earth-radius numbers mixed into the calculations.  You can see the effect clearly by adding viewer.extend(Cesium.viewerCesiumInspectorMixin); to the sample above.
I'll take one more pass at this, to see if I can find where WGS84 is still sneaking into things.  I know the scratch variables for several classes construct default projections with default ellipsoids, and there are likely still some places where it's impossible to override them.

So I got this input from @abwood:
The bounding spheres are precalculated serverside and included in the Quantized-Mesh header.

So the answer is yes, this is expected behavior, and it's not valid to try to assign a custom Ellipsoid underneath Earth terrain.  Presumably the user would need to specify the Mars ellipsoid to go under Mars terrain, etc.  I'll add some new tests and this PR will be done.

This is ready.

So the answer is yes, this is expected behavior, and it's not valid to try to assign a custom Ellipsoid underneath Earth terrain.

Yep, for exactly the reason Alex mentioned.  That's what I was trying (and failing!) to communicate. :)

It'd probably be a good idea to include ellipsoid parameters in layer.json and then make CesiumTerrainProvider use that, instead of requiring the user to specify a matching ellipsoid.  But not exactly how priority...


"EOF reached" propagates to "Illegal State Exception"

Hi,
Thanks for building and maintaining such a useful tool! I have two quick points:

I think there is a slightly undesirable behavior when the ArbitraryLengthStringGenerator exceeds the MAX_INPUT_SIZE, which results in JQF throwing Illegal State Exception instead of EOF Exception.
More precisely, this happens because StreamBackedRandom throws an exception here, yet to be caught in InputStreamGenerator here.  This results in JQF resuming execution only to crash when the state is corrupted here. This behaviour is a bit unexpected, and would be better to just crash on the first exception, as it is indeed the reason for the problem.

I am attaching the code below to allow for replication of the behavior.

Also, I observed that JQF includes some implementation for ExecutionIndexingGuidance, but it is not turned on by default. However, it sounds to be more accurate than Zest's Guidance with just LinearInput, any reason why this is the case? Was there any performance issues using the ExecutionIndexingGuidance when compared with Zest's Guidance?

Thanks!
@RunWith(JQF.class)
public class HelloJQFTest {

    @Fuzz
    public void fuzzHelloJQF(@From(ObjGenerator.class) List<String> list) throws IllegalArgumentException, IOException {
        (new HelloJQF()).handleRequest(list);
    }
}

public class ObjGenerator extends Generator<List> {
    public ObjGenerator() {
        super(List.class);
    }
    @Override
    public ArrayList<String> generate(SourceOfRandomness r, GenerationStatus status) {
        ArrayList<String> outputs = new ArrayList<>();
        while (r.nextBoolean()) {
            outputs.add(new ArbitraryLengthStringGenerator().generate(r, status));
        }
        return outputs;
    }
}

public class HelloJQF  {
    public void handleRequest(List<String> obj) throws IOException {
        for(String str : obj){
            System.out.println("executing the generated object");
        }
    }
}

Hi @sohah. Thanks for the report and detailed repro with points to code snippets from JQF.

I think the main issue is here is that your generator is creating multiple instances of ArbitraryLengthStringGenerator. The generators based on InputStreams essentially consume every byte of "input" that the Guidance has available until EOF. These generators are expected to be used as a single instance at the top level (i.e., in a @From annotation in a single-argument @Fuzz method) for AFL-style fuzzing, because it guarantees that the input files that JQF saves in the fuzz-results/corpus directory actually represent the ENTIRE input byte-for-byte. These generators cannot be easily composed, e.g. to generate a List<String> as you have in your example. You are bound to get an IllegalStateException if you ask for more bytes after reaching EOF. Perhaps the error reporting can be improved, though, and I'm open to suggestions on how to handle this case. For List<String>, I would insist using the regular StringGenerator or some derivation of it (e.g. we have a DictionaryBackedStringGenerator in the examples module).
Re: ExecutionIndexingGuidance: it is an experimental implementation that sort-of works but has not yet provided us with superior results, mainly because of the run-time overhead of tracking execution indexes during fuzzing. The guidance is not super well documented and no research results have been published so far. Use at your own risk, if you are able to make sense of the code.

Thanks, @rohanpadhye for the reply. I have two points to make regarding our discussion on the InputStream-based generators:

If I understand the code correctly, the InputStreamGenerator, reads lazily, i.e., when a read(), or a readAll() is invoked on the stream for as many bytes as needed. Thus, it isn't really filling all the LinearInput, but rather it does so based on a controlled read. If one invokes readAll(), it will indeed fill all the available space in the LinearInput and EOF will be hit, but if we only do a couple of reads, using read(byte) (here), then this behavior is avoidable. I think this is the intention behind the ArbitraryLengthStringGenerator, which is bounded by the maxSize of 4096, and so if I make the MAX_INPUT_SIZE really large, or dually, make that maxSize smaller, then in principle, we can compose multiple ArbitraryLengthStringGenerator generators together without hitting the EOF.  Am I making any false assumptions here?

I do not understand why would we want to catch the EOF exception in the InputStreamGenerator (here). It seems to me that if we hit that, then it is safer to just not continue. The fix for me would be to remove that catch statement, but perhaps this is needed for some other reason that I am not aware of.

The code snippet you linked reads all bytes up to the max buffer size. The intention is to consume the rest of the stream in its entirety, with a fixed upper bound to prevent fuzzing from getting slowed down by ridiculously large inputs. Perhaps the 4096 number should be configurable instead of hard-coded, but that is the intention of the bound. No more bytes should be consumed after maxSize.  The ZestGuidance has a larger bound for MAX_INPUT_SIZE because more bytes may be needed for other types of generators which use some random bytes for control decisions, not just the data to generate (as in strings). However, the InputStreamGenerator is most often used with AFLGuidance, where the guidance only produces fixed-size inputs (and not extensible streams like LinearInput in Zest).
We need a way for the InputStream to signal EOF to its reader, which is done by returning a value of -1 (as per java.io.InputStream API). Let's say the fuzzer generates only a string of 10 bytes, which is much smaller than the MAX_INPUT_SIZE or any other bound, then when JQF attempts to get a new random byte from the SourceOfRandomness it will throw an IllegalStateException (because the randomness source doesn't know about which generator is being used; all it does is signal no more random bytes are available), and we want to convert this to an EOF from the point of view of the InputStream consumer (since this consumer does not know about the underlying tricks implemented by JQF). Note that all of this is most often applied when fuzzing with AFLGuidance, since AFL generates only fixed-size input files (which JQF will use to back the StreamBackedRandom source). You may not hit this condition with Zest, which can extend its LinearInput on demand.

@rohanpadhye , thank you for elaborating on the assumptions in building the InputStreamGenerator and its subclasses, and the need for -1 return value. For now, I am no longer using these generators with ZestGuidance. However, as far as I can see besides the above misleading message, and though they weren't built for that purpose, they seem to be composing just fine when used with ZestGuidance, if MAX_INPUT_SIZE is sufficiently larger than maxSize.
I appreciate your help, I'm closing this issue now.


Feature/ba-0010

added feature:

new entity POI;
new interface DAO for POI;
new interface Service and Controller for POI.
fix:
format LocalDate for column startWork;
deny input negative value for column workTime.

resolve all conflicts and change entity Poi to PointOfInterest


add the uiTinymceConfig.setup callback to setupOptions

Fixes https://github.com/angular-ui/ui-tinymce/issues/254

I went ahead and made a PR. I noticed that the requirement for "angular-mocks": "~1.x" tries to fetch angular mocks 1.5. The bower file should be updated to require "angular-mocks": "~1.4.x" instead but I wasn't sure if I should fix that in this PR or not. That is why the tests fail.

I updatet the mocks dependency anyway so now the checks pass.


Question on Endian-ness for Union

It's a little unclear to me what the right way is in terms of the endian-ness logic. Code from the article (http://craigthomas.ca/blog/2014/06/21/writing-a-chip-8-emulator-part-1/) for this code shows the following:
struct {
      #ifdef WORDS_LITTLE_ENDIAN
         byte high, low;
      #else
         byte low, high;
      #endif
} BYTE;

Note the WORDS_LITTLE_ENDIAN. The code here in the repo shows:
struct {
      #ifdef WORDS_BIGENDIAN
         byte high, low;
      #else
         byte low, high;
      #endif
} BYTE;

Note the WORDS_BIGENDIAN. But the statements themselves -- within the directives -- are not reversed. A statement from the article is:
"Notice also that the definition of big- and little-endian appear to be backwards - this is because I’m developing on an x86-based system, which is little-endian."
So ... which is the backwards one? Is the implementation here in the repo correct?

Sorry for not seeing this issue sooner - for some reason I didn't get a notification for this. The code in the blog post is incorrect, and my description in the blog post is incorrect as well. The code in the repo is correct - I'm sorry for the confusion it's caused.
As I said on the blog post, I'm developing on an x86 based system, which is indeed little-endian. This means that 16-bit values end up being stored with the MSB in the last memory position. The CHIP 8 is a big-endian architecture, which means the MSB would be stored in the first memory position. For example, on a little-endian machine the 16-bit value $FFEE would be stored as $EEFF in memory. If we made the union struct just:
struct {
    byte high, low;
} BYTE;

then if we run the emulator on a little-endian platform, that value read back would have high as $EE and low as $FF, since the structure in memory is nothing more than a 16-bit value which would follow the byte ordering of the architecture. By adding the #ifdef in with no environmental pre-processor flags defined, the structure is set to correctly resolve this byte-order discrepancy, and would resolve low as $EE and high as $FF. The purpose of the #ifdef WORDS_BIGENDIAN would be if you were planning to run the emulator on a big-endian architecture - you would want to supply that in the CFLAGS variable as make CFLAGS=-DWORDS_BIGENDIAN. Since the byte-ordering of the CHIP 8 would then match the byte-ordering of the host platform, no translation is needed when accessing the memory structure, since the 16-bit value of $FFEE is already stored as $FFEE in memory.
My comment in the blog post about the definition being backwards makes no sense as far as I can tell. I changed the #ifdef variable name for the purposes of the code snippet (the reason why totally eludes me now - it doesn't make any sense why I did that). The code repo is correct. I'll correct the blog post.
Does that answer your question?

This is perfect! Thank you. It most definitely answers the question and then some.

Awesome, thanks for pointing it out!


Redirection information - change destination of packet

Hello,
Currently we are using upg-vpp for our project.
Our objective is to change the destination of package by setting the redirect information to an IP x.x.x.x (given). However, in packet trace it is still forwarded to default gateway
My question is:
Are we expected to change destination of UE packet or UPF will handle it ?
Please find below the upf session info and packet trace for more information.
===== UPF Session Info ======
# ./vppctl show upf session
CP F-SEID: 0x0000000000000001 (1) @ <IP_ADDRESS>
UP F-SEID: 0x0000000000000001 (1) @ <IP_ADDRESS>
  PFCP Association: 8
  TEID assignment per choose ID
PDR: 1 @ 0x7f14f00e4a10
  Precedence: 0
  PDI:
    Fields: 0000000d
    Source Interface: Access
    Network Instance: access.oai.org
    Local F-TEID:<PHONE_NUMBER> (0x3fa1eb58)
            IPv4: <IP_ADDRESS>
    UE IP address (source):
      IPv4 address: <IP_ADDRESS>
    SDF Filter [1]:
      permit out ip from any to assigned
  Outer Header Removal: GTP-U/UDP/IPv4
  FAR Id: 1
  URR Ids: [1] @ 0x7f14f00c2670
  QER Ids: [] @ 0x0
PDR: 2 @ 0x7f14f00e4a90
  Precedence: 0
  PDI:
    Fields: 0000000c
    Source Interface: SGi-LAN
    Network Instance: sgi.oai.org
    UE IP address (destination):
      IPv4 address: <IP_ADDRESS>
    SDF Filter [1]:
      permit out ip from assigned to assigned
  Outer Header Removal: no
  FAR Id: 2
  URR Ids: [] @ 0x0
  QER Ids: [] @ 0x0
FAR: 1
  Apply Action: 00000002 == [FORWARD]
  Forward:
    Network Instance: sgi.oai.org
    Destination Interface: 2
    Redirect Information: IPv4 to <IP_ADDRESS>
FAR: 2
  Apply Action: 00000002 == [FORWARD]
  Forward:
    Network Instance: access.oai.org
    Destination Interface: 0
    Outer Header Creation: [GTP-U/UDP/IPv4],TEID:9acb0442,IP:<IP_ADDRESS>
URR: 1
  Measurement Method: 0002 == [VOLUME]
  Reporting Triggers: 0000 == []
  Status: 0 == []
  Start Time: 2021/08/27 15:13:12:406
  vTime of First Usage:       0.0000
  vTime of Last Usage:        0.0000
  Volume
    Up:    Measured:                  252, Theshold:                    0, Pkts:          3
           Consumed:                  252, Quota:                       0
    Down:  Measured:                    0, Theshold:                    0, Pkts:          0
           Consumed:                    0, Quota:                       0
    Total: Measured:                  252, Theshold:                    0, Pkts:          3
           Consumed:                  252, Quota:                       0

===== Packet Trace =====
04:18:20:254118: af-packet-input
  af_packet: hw_if_index 3 next-index 4
    tpacket2_hdr:
      status 0x20000009 len 142 snaplen 142 mac 66 net 80
      sec 0x6128e524 nsec 0x39dcee12 vlan 0 vlan_tpid 0
04:18:20:254121: ethernet-input
  IP4: 02:42:c0:a8:48:8d -> 02:fe:b1:16:c5:82
04:18:20:254122: ip4-input
  UDP: <IP_ADDRESS> -> <IP_ADDRESS>
    tos 0x00, ttl 64, length 128, checksum 0xe75a dscp CS0 ecn NON_ECN
    fragment id 0x406a, flags DONT_FRAGMENT
  UDP: 2152 -> 2152
    length 108, checksum 0x0000
04:18:20:254124: ip4-lookup
  fib 2 dpo-idx 13 flow hash: 0x00000000
  UDP: <IP_ADDRESS> -> <IP_ADDRESS>
    tos 0x00, ttl 64, length 128, checksum 0xe75a dscp CS0 ecn NON_ECN
    fragment id 0x406a, flags DONT_FRAGMENT
  UDP: 2152 -> 2152
    length 108, checksum 0x0000
04:18:20:254126: ip4-local
    UDP: <IP_ADDRESS> -> <IP_ADDRESS>
      tos 0x00, ttl 64, length 128, checksum 0xe75a dscp CS0 ecn NON_ECN
      fragment id 0x406a, flags DONT_FRAGMENT
    UDP: 2152 -> 2152
      length 108, checksum 0x0000
04:18:20:254127: ip4-udp-lookup
  UDP: src-port 2152 dst-port 2152
04:18:20:254129: upf-gtpu4-input
  GTPU decap from gtpu_session0 teid 0x3fa1eb58 next 1 error 0
04:18:20:254131: upf-ip4-flow-process
  upf_session0 cp-seid 0x0000000000000001
  FlowInfo - sw_if_index 3, next_index = 2
  proto 0x1, <IP_ADDRESS>:0 <-> <IP_ADDRESS>:0, seid 0x0000000000000001
  00000000:<PHONE_NUMBER>0000000000000000000000000000000c0101020000000000000000
  00000020: 00000000c0a849870000000001000000
  ICMP: <IP_ADDRESS> -> <IP_ADDRESS>
    tos 0x00, ttl 64, length 84, checksum 0x46c5 dscp CS0 ecn NON_ECN
    fragment id 0x1cb2
  ICMP echo_reply checksum 0xf1f5 id 543
04:18:20:254141: upf-ip4-input
  upf_session0 cp-seid 0x0000000000000001 pdr 1 far 1
  ICMP: <IP_ADDRESS> -> <IP_ADDRESS>
    tos 0x00, ttl 64, length 84, checksum 0x46c5 dscp CS0 ecn NON_ECN
    fragment id 0x1cb2
  ICMP echo_reply checksum 0xf1f5 id 543
04:18:20:254142: upf-ip4-forward
  upf_session0 cp-seid 0x0000000000000001 pdr 1 far 1
  ICMP: <IP_ADDRESS> -> <IP_ADDRESS>
    tos 0x00, ttl 64, length 84, checksum 0x46c5 dscp CS0 ecn NON_ECN
    fragment id 0x1cb2
  ICMP echo_reply checksum 0xf1f5 id 543
04:18:20:254144: ip4-input
  ICMP: <IP_ADDRESS> -> <IP_ADDRESS>
    tos 0x00, ttl 64, length 84, checksum 0x46c5 dscp CS0 ecn NON_ECN
    fragment id 0x1cb2
  ICMP echo_reply checksum 0xf1f5 id 543
04:18:20:254144: ip4-lookup
  fib 1 dpo-idx 8 flow hash: 0x00000000
  ICMP: <IP_ADDRESS> -> <IP_ADDRESS>
    tos 0x00, ttl 64, length 84, checksum 0x46c5 dscp CS0 ecn NON_ECN
    fragment id 0x1cb2
  ICMP echo_reply checksum 0xf1f5 id 543
04:18:20:254146: ip4-rewrite
  tx_sw_if_index 1 dpo-idx 8 : ipv4 via <IP_ADDRESS> host-sgi: mtu:1500 next:5 0242c0a8498702feaa11fe200800 flow hash: 0x00000000
  00000000: 0242c0a8498702feaa11fe200800450000541cb200003f0147c50c010102c0a8
  00000020: 49870000f1f5021f000324e5286100000000f1ce0e00000000001011
04:18:20:254146: host-sgi-output
  host-sgi
  IP4: 02:fe:aa:11:fe:20 -> 02:42:c0:a8:49:87
  ICMP: <IP_ADDRESS> -> <IP_ADDRESS>
    tos 0x00, ttl 63, length 84, checksum 0x47c5 dscp CS0 ecn NON_ECN
    fragment id 0x1cb2
  ICMP echo_reply checksum 0xf1f5 id 543

@devappforthebest is the issue still reproducable for you?

Only Redirect Address Type 2 (URL) is supported and only for HTTP traffic either on port 80 or detected with an ADF rule.
Plain IPv4 or IPv6 redirect targets are not supported, nor is SIP URL.


[Snyk] Security upgrade io.swagger.core.v3:swagger-jaxrs2 from 2.1.4 to 2.2.4

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

src/server-am/pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

688/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.9
Denial of Service (DoS) SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038424
io.swagger.core.v3:swagger-jaxrs2:  2.1.4 -> 2.2.4
No
Proof of Concept

712/1000  Why? Currently trending on Twitter, Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.9
Denial of Service (DoS) SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038426
io.swagger.core.v3:swagger-jaxrs2:  2.1.4 -> 2.2.4
No
Proof of Concept

589/1000  Why? Has a fix available, CVSS 7.5
Denial of Service (DoS) SNYK-JAVA-ORGYAML-2806360
io.swagger.core.v3:swagger-jaxrs2:  2.1.4 -> 2.2.4
No
No Known Exploit

399/1000  Why? Has a fix available, CVSS 3.7
Stack-based Buffer Overflow SNYK-JAVA-ORGYAML-3016889
io.swagger.core.v3:swagger-jaxrs2:  2.1.4 -> 2.2.4
No
No Known Exploit

536/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 4.3
Stack-based Buffer Overflow SNYK-JAVA-ORGYAML-3016891
io.swagger.core.v3:swagger-jaxrs2:  2.1.4 -> 2.2.4
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Denial of Service (DoS)
🦉 Denial of Service (DoS)
🦉 Denial of Service (DoS)

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

@jadelkhoury I would love to close this PR in particular due to its security impact. I just tried to run RM from this branch and hit a problem that http://localhost:8800/swagger-ui/index.jsp#/default/getRootServices makes a call to the wrong URI http://localhost:8800/services/services/rootservices.
But then, I discovered that the RM on the latest master makes requests to the exact same URI.w
Could you please look into it and tell me if the swagger-jaxrs2 2.2.x is safe to merge? I will take care of making sure versions match where needed.

@jadelkhoury sorry, I missed that the upgrade to 2.2.0 was done. I think it's needed to update to 2.2.4 only. And the wrong URI could be considered an unrelated bug (or a bug introduced when an update from 2.1.4 to 2.2.0 was made).


Clock shows 0 when it is supposed to be 12

When it is 12 PM (and AM?) it shows 0 on the clock. As shown in the image.
WinXP is top. Windows 10 is bottom.

Got the same problem

It should be 12 for both AM and PM.
I will fix it, thanks!


[Bug]: Improve console output to reduce "warning fatigue"

What happened?
If you run Monkey365 without console output options you may see these warnings during executions:

Expected behavior
Monkey365 should replace those warnings with a more verbose messages - i.e. messages with a suggested solution - in an effort to reduce the warning fatigue.
Additional context
While this is not critical, it can cause warning fatigue, resulting in valid warnings being missed. Also, warnings in plugins should be improved in order to avoid false-positives where there really isn't a problem with the plugin itself. For example, Monkey365 is raising warnings, even if resources are not used.

It must be fixed on main branch


feat(components): make titlebar stick to top on scroll

Titlebars now stay in view despite scrolling, which allows users to always see possible navigation
options.
Closes #2195

oh noo


How change client's name?

I am using two esp8266 modules with your library. All modules are loaded with the same sketch. I'm having trouble with connecting the second module to the mqtt server.
When I was browsing the log from the server, I noticed that the module names are the same:
2020-03-19 22:35:14: New connection from <IP_ADDRESS> on port 10257.
2020-03-19 22:35:14: Client ESP8266Client already connected, closing old connection.
2020-03-19 22:35:14: Socket error on client ESP8266Client, disconnecting.
2020-03-19 22:35:14: New client connected from <IP_ADDRESS> as ESP8266Client (c1, k15, u'hreasxjy').
How can I solve my problem. How to specify different names?

The client id is the first argument you pass to the connect function.
You have it set to ESP8266Client, but it must be unique for each client you connect.
One approach is to generate a random number and store it in eeprom when the sketch starts and append that to the client id to help make it unique.

I do not quite understand what function is responsible for this. I did not specify a name in the sketch.

Sorry, I am inattentive. I found the function


RViz2 can't show the correct  model

I found it  always can;t show the correct model in RViz2.

$ ros2 launch turtlebot4_viz view_model.launch.py
[INFO] [launch]: All log files can be found below /home/ubuntu/.ros/log/2022-08-17-10-02-09-090179-NUC10I5-3914
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [rviz2-1]: process started with pid [3916]
[rviz2-1] [INFO] [1660701729.625289952] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-1] [INFO] [1660701729.625436821] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[rviz2-1] [INFO] [1660701729.650154951] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-1] [INFO] [1660701729.858087504] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-1] Warning: Invalid frame ID "wheel_drop_left" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_right" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_left" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_right" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_left" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_right" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_left" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_right" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_left" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp
[rviz2-1] Warning: Invalid frame ID "wheel_drop_right" passed to canTransform argument source_frame - frame does not exist
[rviz2-1]          at line 156 in /tmp/binarydeb/ros-galactic-tf2-0.17.3/src/buffer_core.cpp

RVIZ is showing the robot model that is published to the /robot_description topic. Can you call cat /etc/turtlebot4 on the RPi and make sure you are using the Lite image?

I have two robot. I use the tb4-standard and tb4-lite at the same time. Tb4-standard's porblem is that RViz can't show the correct model .

Have you configured the ROS_DOMAIN_ID for each robot? You cannot have both robots on the same ROS_DOMAIN_ID otherwise their topics will interfere.

I did it . They have different ROS_DOMAIN_ID and their communication work find.

Is the screenshot posted above when you are trying to view the Standard in RVIZ?

Yes，it always show it .

It is showing the correct model. Are you referring to the error messages from rviz2?

Can't you see the Create® 3  multizone bumper separating from the robot in the above screenshot  ？

This is just a visual bug. I already have an open ticket on the create3_sim repo (https://github.com/iRobotEducation/create3_sim/issues/170) so I will close this as duplicate.


Add wherein command

Looks good and works from my side. We'll need to add some tests and update the core package before merging.
You can add a test to one of the _test.go files in the test directory. I think just adding a new entry to
https://github.com/tidwall/tile38/blob/master/tests/keys_test.go#L17 should be fine.
To update core, edit the core/commands.json file and add the WHEREIN keyword for the commands that use it. Then run core/gen.sh to refresh the Go files. This will update the tile38-cli autocomplete and help menus. Also the tile38.com website uses core to help with populating the commands with the correct fields.
Thanks!

Makes sense, however I'm unclear on how to express WHEREIN syntax in commands.json file, because WHEREIN will take an unknown number of values.  Should I just use ["field","num_vals", "val0", "val1", "..."]?

I had to make a quick update to the master branch to allow for a variable number of values on the last argument.
Adding the following to a command arguments should work:
      {
        "command": "WHEREIN",
        "name": ["field","count","value"],
        "type": ["string","integer","double"],
        "optional": true,
        "multiple": true,
        "variadic": true
      },

... which will print:
[WHEREIN field count value [value ...] ...]

Great, thanks!
How do I run the tests?

make test from root will do a full build and run all tests. It's exhaustive and slow. If you are only modifying _test.go files in the tests directory then I recommend cd'ing into the tests directory and running go test.

Merged. :)

Thanks!  Should I also update the docs now?

Sure. The https://github.com/tile38/tile38.github.io repo is the tile38.com website.
We probably just need to add a description about the WHEREIN option to the src/website/root/commands/intersects.md file.
Then run the ./build.sh to generate the site.
Or ./build.sh -port 8080 to generate and test at http://localhost:8080/


Fix label for "Enable test results" on assignment form

Label has the wrong "for", so you can't click on it to check the checkbox.

I'll do it.


How to deploy .app file to the client

I have created test application which has one list page and i have to delploy that application on to business central without giving any kind of source code.

Set "showMyCode" : false in app.json and then deploy using the Upload button on Extension Management page.

I am working on on premises through docker image then what are the steps for deploying code

If you install the NavContainerHelper module via PowerShell (on the Docker host) you can use the following script to publish and install an app:
$containerName = 'myContainer'
$appFile = 'C:\_dev\myApp.app'
$tenant = 'default'

Publish-NavContainerApp -containerName $containerName -appFile $appFile -tenant $tenant -skipVerification -sync -install

I used this command but i was unable to unpublished that application through it everytime i have to fire Unpublish-NAVApp command

Uninstalling and unpublishing an app would look like this:
$containerName = 'myContainer'
$appName = 'myApp'

UnPublish-NavContainerApp -appName $appName -containerName $containerName -ErrorAction SilentlyContinue -unInstall

Thank you


Installing should default first launch to selected language

VSCode Version: Windows 10
OS Version: 1.0.0-alpha

Steps to Reproduce:

If you have VS Code installed, uninstall.
Run setup
Select another language (apart from English)
Launch after setup

Actual:
VS Code is launched in English (or if you have previously set the language, it will launch in that)
Expected:
By default it should launch in the language you selected during install.

@joaomoreno we discussed this once. If we want to do this the installer has to write the locale.json file during installation. What do you think ?

I think we will rely on Inno's ability to detect the language from the system and not show the selection box.


Bjorncs/cloud token authz model

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

FYI @vekterli


Testing/0.8.4

@ericLemanissier this build is broken, could you please take a look?
https://travis-ci.com/bincrafters/conan-xkbcommon/jobs/258981515#L1051

the error is a direct consequence of https://github.com/conan-io/conan-center-index/issues/213 https://travis-ci.com/bincrafters/conan-xkbcommon/jobs/258981515#L1062
Do you want me to check meson's deprecation warning anyway ?

@uilianries the error is a direct consequence of conan-io/conan-center-index#213 https://travis-ci.com/bincrafters/conan-xkbcommon/jobs/258981515#L1062
Do you want me to check meson's deprecation warning anyway ?


Error exporting CSVT file, division by zero

Steps to reproduce the behaviour

Export > transactions since all time > press export

Expected behaviour
Transactions get exported to desired format
Actual behaviour
Get a message saying
Error exporting CSVT file
Division by zero
Software specifications

GnuCash Android version: 2.4.1 beta 2
System Android version: Android 10
Device type: OnePlus 6t

It may be related to
https://github.com/codinguser/gnucash-android/blob/a9fcb9fcd16c883d235c59abd0ea8684a2124730/app/src/main/java/org/gnucash/android/export/csv/CsvTransactionsExporter.java#L137
This issue doesn't occur when you export to qif or XML.

Error still actual on v2.4.1-beta3

Error still actual on v2.4.1-beta3

I get this error too in the same version. My device is a OnePlus 7T running Android 10 (Oxygen OS 10.0.11.HD65AA).


Add new item

Hello all how I am suppose to add new items with that library can anyone give me any hint because notifydatasetchanged is not working as I can see ?

Here's an example of doing so in the sample:
https://github.com/bignerdranch/expandable-recycler-view/blob/master/sampleapp/src/main/java/com/ryanbrooks/expandablerecyclerviewsample/linear/horizontal/HorizontalLinearRecyclerViewSampleActivity.java#L193
What you'll need to do is add the item to the List that you passed in to the adapter, then notify the adapter of the change with one of the specific parent/children notify methods that we have available.

@paul-turner  Hi Paul,
I was trying that but one problem appeared each time I type adapter.notifyParentItemInserted(data.size() - 1); even when adapter change hasn't changed a new parent item appear at the bottom of the list.
All I do is:
loadHeaderData(); -> this will add two elements to the list
adapter.notifyParentItemInserted(data.size() - 1); will update the data passed in

if loadHeaderData() is adding two items then you probably want to say:
adapter.notifyParentItemRangeInserted(data.size() - 2, 2);

In order to have the adapter update for both (or you can call the single version twice with each index).
Not sure about the issue of calling notifyParentItemInserted always adding a parent item at the bottom even if the adapter hasn't changed. Probably should call the notify method if nothing is changed, the behaviour around that is undefined right now (might result in crashes, might add a duplicate item).


Instantiating Separate Session for Each GPU

I'm trying to speed up Tensorflow inference by using multiple GPUs and instantiating a separate Session for each GPU.
I am using Tensorflow 1.7 and 2 Quadro GV100's for this. The GV100's are device 0 and device 1, respectively.
My C++ code looks something like the following:
auto options0 = SessionOptions();
options0.config.mutable_gpu_options()->set_visible_device_list("0");
NewSession(options0, &m_session0);
auto options1 = SessionOptions();
options1.config.mutable_gpu_options()->set_visible_device_list("1");
NewSession(options1, &m_session1);
However, when I execute this code, I get the following error message:
name: Quadro GV100 major: 7 minor: 0 memoryClockRate(GHz): 1.627 pciBusID: 0000:18:00.0 totalMemory: 31.87GiB freeMemory: 31.33GiB 2019-01-07 17:56:09.453901: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1423] Adding visible gpu devices: 0 2019-01-07 17:56:10.196800: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:911] Device interconnect StreamExecutor with strength 1 edge matrix: 2019-01-07 17:56:10.202994: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:917] 0 2019-01-07 17:56:10.206965: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:930] 0: N 2019-01-07 17:56:10.211407: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1041] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 30421 MB memory) -> physical GPU (device: 0, name: Quadro GV100, pci bus id: 0000:18:00.0, compute capability: 7.0) 17:56:11.099: Choosing GPU: 1 2019-01-07 17:56:11.280313: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1344] Found device 0 with properties: name: Quadro GV100 major: 7 minor: 0 memoryClockRate(GHz): 1.627 pciBusID: 0000:3b:00.0 totalMemory: 31.87GiB freeMemory: 31.33GiB 2019-01-07 17:56:11.291274: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1423] Adding visible gpu devices: 1 2019-01-07 17:56:12.076807: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:911] Device interconnect StreamExecutor with strength 1 edge matrix: 2019-01-07 17:56:12.082561: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:917] 1 2019-01-07 17:56:12.088587: I C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:930] 1: N 2019-01-07 17:56:12.095142: F C:\tensorflow_1_7\tensorflow\tensorflow\core\common_runtime\gpu\gpu_id_manager.cc:45] Check failed: cuda_gpu_id.value() == result.first->second (1 vs. 0)Mapping the same TfGpuId to a different CUDA GPU id. TfGpuId: 0 Existing mapped CUDA GPU id: 0 CUDA GPU id being tried to map to: 1
My question is, what is the proper way to assign/dedicate a GPU to each Tensorflow session?
Thank you very much for your help in advance!

@msymp Are you still blocked on this?  If yes, can you please provide a full reproducer (i.e. something I can run myself to reproduce the problem)?


Local event bus (mediator pattern)

[ ] add test case to cover 2 missing lines when no subscribers are set

@gtoselli I preferred to use a class like we did in the past with PublicEvent anyway the library is compatible with a plain object that matches the interface, what do you think?

@lucagiove Did you get the code from Golee?
The names could be better.
The bus is a message bus. Events are a type of message.
Messages passing from the bus must be deserialized to json. So even if we used classes they would go parsed. Does it make sense?

@lucagiove Did you get the code from Golee?

Partially yes.
I compared it with other similar kotlin solutions seen in viteSicure.
Is it a problem?

The names could be better. The bus is a message bus. Events are a type of message.

Since this is a ddd toolkit I think we should use domain names like "event" instead of message.
Publish / Subscribe is a standard and known pattern that's why I opted for it.
Moreover this could be an external interface, internally there might be a more infrastructural layer where events are converted to messages.
Since it's not a real bus maybe we could use something like:

EventsMediator <- probably my favorite choice
EventsDispatcher
but the same interface could be transformed to a bus easily.

Messages passing from the bus must be deserialized to json. So even if we used classes they would go parsed. Does it make sense?

Mah it's a matter of taste, I prefer classes to enforce different type not based on name strings.
I wouldn't serialize anything for this local implementation, types are shared, easy.
In case a different bus is needed there will be an adapter that does the serialization but only of the payload so no matter if is a plain object or a class, payload will stay a plain object.
I'm wondering whether we should enforce an event field for the AggregateId or Id, what do you think?
Following ddd make sense, in case of more generic usage probably not.

Since this is a ddd toolkit I think we should use domain names like "event" instead of message.
Publish / Subscribe is a standard and known pattern that's why I opted for it.

That makes sense, but my point is another.
Conceptually, this is a message bus that is now used for events but can also be used for commands. The mediator pattern is the implementation chosen for the local implementation of the message bus. Do you agree?

I'm wondering whether we should enforce an event field for the AggregateId or Id, what do you think?
Following ddd make sense, in case of more generic usage probably not.

The application could probably have a DomainEvent class (which is a special kind of message) that requires an aggregateId field.
Since this library is a toolkit, it should offer things as generic as possible that everyone can use as they wish.
If one day we want to implement an improved version of this bus e.g. by implementing retry or something like 'dead letter queue' I would like it to be generic, so that I can use it both for input (commands) and output (events) from my bounded context.

@lucagiove I found a little error that I fix with commit b57a0dd.
The problem was that the subscribe method takes an instance of the Event class and not the class itself as second argument:
Before
eventBus.subscribe(new HandlerOk(), new FooEvent({ foo: 'bar' }));

After
eventBus.subscribe(new FooEventHandlerOk(), FooEvent);

With commit 3a2c794 I made asynchronous handlers execution towards publish method.
Publish method now doesn't wait for handlers fulfillment (or rejection).
If one of the handlers fail, the publish method does not fail.

 All attempts are logged with warn level. If all attempts fail a message is logged with level error. This allows us to configure log-side alarms (like dead-letter-queue tecnique).

If you read these pr comments first you might be worried that this local-event-bus is getting too complicated.
If you read the code first, however, you will be surprised at the simplicity of the implementation!

 All attempts are logged with warn level. If all attempts fail a message is logged with level error. This allows us to configure log-side alarms (like dead-letter-queue tecnique).

If you read these pr comments first you might be worried that this local-event-bus is getting too complicated. If you read the code first, however, you will be surprised at the simplicity of the implementation!

It is getting too complicated but code is simple.
I would finalize this version and publish the Event only code, then we will introduce the new abstraction layer for generic message what do you think? So we can start using this immediately.

@lucagiove I found a little error that I fix with commit b57a0dd.
The problem was that the subscribe method takes an instance of the Event class and not the class itself as second argument:
Before
eventBus.subscribe(new FooEventHandlerOk(), new FooEvent({ foo: 'bar' }));

After
eventBus.subscribe(new FooEventHandlerOk(), FooEvent);

Right but this forces to use the class :(
Doing something like this does not make sense anyway?
subscribe<E extends IEvent<unknown>>(handler: IEventHandler<E>, event: Pick<E, 'name'>): void;

Other option is to rely on a string for the event name, maybe more generic..

I implemented publishAndWaitForHandlers  after some discussions I opted not to introduce exceptions in case of handlers failure but only the wait part to avoid async drawbacks without spoiling the event idea.
In cases where locally you want to use mediator and throwing exceptions probably


[bug]src/BlackBoneDrv/Remap.c line 229

hello,
return status == STATUS_INVALID_PARAMETER ? STATUS_SUCCESS : status;

It's intended, Win7 workaround.

sorry,I made a mistake.


error: Microsoft Visual C++ 14.2 or greater is required

In case building CuPy 9.3 on Windows with Visual Studio 2019 and CUDA SDK 11.4 (and probably other versions) fails with error: Microsoft Visual C++ 14.2 or greater is required. Get it with "Microsoft C++ Build Tools ..., this patch worked for me on Python 3.7-10:
diff --git a/cupy_setup_build.py b/cupy_setup_build.py
index b363c1026..0d77f34aa 100644
--- a/cupy_setup_build.py
+++ b/cupy_setup_build.py
@@ -2,7 +2,7 @@ import argparse
 import copy
 from distutils import ccompiler
 from distutils import errors
-from distutils import msvccompiler
+from distutils import _msvccompiler as msvccompiler
 from distutils import sysconfig
 from distutils import unixccompiler
 import os

Hi and thanks a lot for the report!
We have seen issues with distutils versions so maybe this one has to do with that ...
We will look in-depth into this.

I confirmed this issue with the latest Build Tools for Visual Studio 2019.


Leaflet draws symbols incorrectly after map pans

Draw very large symbols across north america.
Zoom out as far as you can.
Start panning the map from right to left. as you move across the symbols you drew, the symbols get mangled and draw across the entire map instead of wrapping around.
This looks to be a serious issue.

To test use.

Startup Validator with leaflet.
Plot large multipoint TG. (The size of the US). Include graphics on the IDL.
Zoom and Pan the map in different directions.
The graphics should render properly.


simple channel redemption display in chat, display cheer text in chat

Added a simple feature to show channel redemptions in gray text. This color should eventually be editable in the generator.
Added a basic form of displaying Cheers in chat. The cheer text should eventually be replaced with Cheermotes.

Sorry for taking a while to look at this, I'm a bit bound up. I'll test this hopefully later this week. Until then I already put comments where you forgot to remove console.logs 🙈😅


User Agent parser (IDEA)

Maybe we could add a new variable to get information about the user-agent, something like:
"USER_AGENT": {
  "vendor": "Google",
  "version": "...",
  "javascript_engine": "",
  "is_browser": true,
  "features": [...]
}

We could perform validations like:
SecRule USER_AGENT:is_browser "@eq 1" "...msg:'user is user a web browser'"

Could you describe the use case? Also, what would be the source of truth to
detect the user agent and determining the vendor,  js_engine and if it is
browser or not and how are we maintaining that list. Is this somehow
described in CRS? Cc @fzipri
On Wed, 14 Dec 2022, 19:14 Juan Pablo Tosso, @.***>
wrote:

Maybe we could add a new variable to get information about the user-agent,
something like:
"USER_AGENT": {
"vendor": "Google",
"version": "...",
"javascript_engine": "",
"is_browser": true
}
We could perform validations like:
SecRule USER_AGENT:is_browser @.*** 1" "...msg:'user is user a web browser'"
—
Reply to this email directly, view it on GitHub
https://github.com/corazawaf/coraza/issues/530, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYAVLF26LBOVAFDSYYHDWNIE6TANCNFSM6AAAAAAS6ZJVLI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Split dependencies on Unity3d UPM

With the unity package manager it is possible to disable large parts of the dependencies on unity modules. However, UniRx currently requires a lot of modification when removing unity packages. In particular:

WWW
Physics2D
Animation

Please try to structure the Extension methods and triggers in a way, that makes it easier to remove those parts of UniRx when removing those packages from a project.
I guess this won't be urgent, as it will take quite some time until sufficient people pick up those UPM features, but I guess it makes sense to begin as early as possible to take this into consideration.
Unity clearly needs to make it easier to work with stripped projects. There are no scripting defines as far as I know to know if a (official) upm package is enabled or not...

Sure.
It is a bit difficult to separate methods but maybe I can use ENABLE_WWW or others.

Same problem. My app use UniRx becouse has large UI composition, but currently it use TextmeshPro only.
Animation module is largest, but UniRx require it (same as WebRequests, Physics2D, AssetBundle, Audio)

I just came across this and I'd like to point out that defines like ENABLE_WWW are still there even if it's disabled from Package Manager as of Unity 2018.3.6f1. It will result in compiler errors like these:
The type name 'WWW' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.UnityWebRequestWWWModule, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Asset Bundle', which is required by package 'Unity Web Request WWW', in the Package Manager window to fix this error.
error CS1069: Assets/UniRx/Async/UnityAsyncExtensions.cs(68,48)

It is not just help game developer but also help plugin developer who wish to write plugin base on UniRx since UPM has dependency resolution which makes writing plugin based on UniRx easier.


Updated to latest versions of GFE repos.

Some tweaks in yaFyaml and pFlogger are necessary for pFlogger to work
in GEOS.  Other updates are just to keep things current.

@tclune I'm a bit confused. Are any of these actually releases with versions? The commit hash for, say, fArgParse, doesn't correspond to any known release that I can find. I try to keep Baselibs with actual versions (where I do git checkout vx.y.z).

My releases had little documentation issues in them like putting month in the change log as 03 instead of 04.    I did not feel it warranted a new actual release number, but it was much easier to pull master on the various submodules than to look up the version tags.   There should be no code differences.
If this is important, I can issue new releases.

Will attempt to do  a new cleaner PR.


Chromecast button no longer available?

I have tried this code: https://github.com/clappr/clappr-chromecast-plugin
but it doesn't show the Chromecast button in Windows 10 or Android 9.
My Chromecast is always on; If I open Chrome for Windows and I click "Send", I see the Chromecast connection ... also with Netflix for Android.

@hijuuijj It seems like the Chromecast requirements have changed, and you need to serve your content over HTTPS to have access to the Chromecast extension.
I'll try to confirm that, and will let you know if there's something wrong with the plugin. Other than that, the plugin needs to be updated to use the CAF sender library (v3) instead of the v2.

Is there any news? I miss Chromecast plugin

keep it open

@hijuuijj @leandromoreira I checked the Chromecast plugin demo page and it worked on all devices.
I confirmed that there is a requirement to serve the page over HTTPS (the button won't work on HTTP URLs). There's no need to update the sender library.
Another thing to be aware of is that the Receiver should be published, or the cast button won't be shown.

If you use the default Clappr Receiver (9DFB77C0) you'll be ok. If you are running local tests, make sure you're loading the sender page using HTTPS. Otherwise, you'll only be able to test using localhost.


wip: refactor(userspace/libsinsp): remove unused check_id from events

Signed-off-by: Jason Dellaluce<EMAIL_ADDRESS>What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area libsinsp
What this PR does / why we need it:
Since merging https://github.com/falcosecurity/falco/pull/2017, the set_check_id and get_check_id methods are not required in events anymore. The check id was an historically instrumental for Falco to figure out which rule and filtercheck matched a given event. This is now not used anymore because the rule-event matching is a responsiblity of the Falco Engine exclusively. Removing this also saves the cost of many memory writes at each filtercheck evaluation.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
NONE

/retest

LGTM label has been added.  Git tree hash: 6ce3f7728a8d69dbb96707a96b18de2f9a073c0b


Add support for Azure Virtual Desktop

From this PR comment:
alikhajeh1: Looking at https://azure.microsoft.com/en-us/pricing/details/virtual-desktop/, I assume the user has to provision the VMs so we'll show costs for those, and there's no additional fee for "configuring" the VMs with desktop apps? Sorry if that's a dump question, I haven't used these resources before...
Theragus: Usually, the Host Pool is where the charges will apply because that's where the "work" is being done.
These are the infrastructure costs that are not influenced by the amount of Desktop Apps or Remote Apps that are configured. The other cost part is related to M365/O365 Licensing, which is not showing up in any Azure Bill.

A small note on this one.
For AVD, the costs are basically the same as any VM, Microsoft does not charge any additional costs, apart from the O365/M365 licenses, and the usual stuff like Managed Disks etc...
For AVD there is only the host pool that uses x times the same VM Size.

@Theragus I started looking into this as @vdmgolub was looking for an issue to work on... Looking into  https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_desktop_host_pool it looks like we might want to add it as a free resource since as you mentioned, the license costs are separate from Azure bills, and the rest is already resources we cover.
Or do you think something like the Azure Price Calc for AVD is useful, where users define the same input params as the calculator in the usage file and we calculate the costs? That risks outputting the VM costs twice but it does enable easy/quick what-if analysis, and the estimates could then be checked into the repo so they can be adjusted and tracked vs actuals later on.

@alikhajeh1 I'm currently looking into it and I'm a little bit confused how terraform is actually handling the VMs here. For me, it seems like there is no way from the azurerm provider side to control the number or size of the VMs that are added to the host pool. In the API and in the Portal it sure is possible to create a host pool without creating VMs, see the screenshot.

I'm currently testing how HashiCorp is expecting us to add the VMs to this Host Pool via terraform, because I also can't see any way in the provider to add the VMs afterwards. Either it has to be done manually afterwards or I'm completely overlooking something here.
Usually, you can just define the VM size alongside the host pool and then you could just take the size of the VMs and check that against your existing VM Pricing API.
If this is not the case with this resource then you could go ahead and define it as a free resource.

Thanks @Theragus! I really appreciate you digging into this, once we know the outcome of that investigation we'll add it to the project board (either to be added as a free resource or coded with cost components).

@alikhajeh1 I looked into this now and I think I get the picture now.
after looking at the terraform azurerm provider repo and also at this post here https://www.nathannellans.com/post/deploying-azure-wvd-with-terraform it seems that there is only a registration token generated that is then used by normal VMs to connect and register to the Host Pool.
Therefore the Host Pool incurs no charges itself and could be added as a free resource since VMs are already covered. I'm gonna add it to the repo later today and open a PR.